Skip to content

Latest commit

 

History

History
43 lines (28 loc) · 691 Bytes

README.md

File metadata and controls

43 lines (28 loc) · 691 Bytes

About

A Genetic Algorithm-Based Solver for Jigsaw Puzzles 🌀

Usage

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