Slashdot Mirror


Webcam Jigsaw Solver in 200 Lines of Python

leighklotz writes "Jeff Breidenbach and 200 lines of Python code have brought us the Glyphsaw Puzzle solver. Hold a puzzle piece up to a webcam, and the display sgiws exactly where in the puzzle the piece belongs. The solver uses the Python Imaging Library (PIL), Numerical Python, and the PARC DataGlyph Toolkit. By the way, you can make your own DataGlyphs."

2 of 199 comments (clear)

  1. Re:its by MattJakel · · Score: 0, Troll

    But it's still misleading to say "only 200 lines of Python" when really all of the module imports add up to thousands of lines. This isn't a downside of course, but such a description makes the program sound simpler than it is.

  2. Heh by Dwonis · · Score: 0, Troll
    That's nothing! I can write a powerful 3D first-person shooter in *two* lines of python!
    import os
    os.execl("/usr/games/nethack", "doom4")