vsoch / puzzles

robot puzzle solver, maybe
https://nbviewer.jupyter.org/github/vsoch/puzzles/blob/master/examples/avocado-puzzle.ipynb
Mozilla Public License 2.0
3 stars 1 forks source link

adding support to build puzzle from pieces #7

Open vsoch opened 2 years ago

vsoch commented 2 years ago

This is a quick 30 minutes of programming to add support for creating (and solving) a puzzle from already generated square pieces! Since the algorithm is based on edge matching, this will not work for images with constant/uniform color at most edges, or those that don't fit nicely into squares/rectangles of equal size.

I haven't tested this against the original PhotoSolver so I probably won't merge, but it's here for anyone that wants to hack on it :)

Signed-off-by: vsoch vsoch@users.noreply.github.com