Detects a green LEGO backplane, crops it, and normalizes perspective.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
images
src
.gitignore
CMakeLists.txt
LICENSE
README.md

README.md

LEGO Warp

Detects a green lego backplane, then crops and warps the image to isolate the backplane.

Used primarily with my LEGO schedule system.

Building

    mkdir build
    cd build
    cmake ..
    make

Usage

    ./lego-detect [path to images] # Detects green lego backplanes. Outputs images as result-[000-999].jpg
    ./sched-read result-*.jpg # Reads resulting images and detects color of brick in each spot. Hardcoded to 64x32 resolution for now.