A Genetic Algorithm-Based Solver for Jigsaw Puzzles 🌀
Requirements:
python 2.6+
numpy
scipy
Install with:
git clone https://github.com/nemanja-m/genetic-jigsaw-solver.git
cd genetic-jigsaw-solver/
pip install -e .
Create puzzle from image:
create_puzzle <image> [--piece-size] [--destination]
Run solver:
solve [--image] [--generations] [--population] [--size] [--verbose]
i.e.
create_puzzle images/lena.jpg --piece-size=32 --destination=puzzle.jpg
# => Puzzle output to 'puzzle.jpg'
solve --image=puzzle.jpg --size=32 --generations=30 --population=300 --verbose=True
# => Solver started