-
Notifications
You must be signed in to change notification settings - Fork 110
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
13 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,43 +1,28 @@ | ||
# About | ||
# gaps | ||
|
||
A Genetic Algorithm-Based Solver for Jigsaw Puzzles :cyclone: | ||
Automatic Genetic Algorithm-Based Solver for Jigsaw Puzzles. | ||
|
||
# Usage | ||
<p align="center"> | ||
<img src="images/lena.gif" alt="demo" /> | ||
</p> | ||
|
||
Requirements: | ||
# Installation | ||
|
||
- `python 2.6+` | ||
- `numpy` | ||
- `scipy` | ||
|
||
Install with: | ||
|
||
``` bash | ||
git clone https://github.com/nemanja-m/genetic-jigsaw-solver.git | ||
cd genetic-jigsaw-solver/ | ||
pip install -e . | ||
``` | ||
|
||
Create puzzle from image: | ||
Clone repo: | ||
|
||
``` bash | ||
create_puzzle <image> [--piece-size] [--destination] | ||
git clone https://github.com/nemanja-m/gaps.git | ||
cd gaps | ||
``` | ||
|
||
Run solver: | ||
Install requirements: | ||
|
||
``` bash | ||
solve [--image] [--generations] [--population] [--size] [--verbose] | ||
pip install -r requirements.txt | ||
``` | ||
|
||
i.e. | ||
Install project in editable mode: | ||
|
||
``` bash | ||
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 | ||
pip install -e . | ||
``` |