nemanja-m / gaps Goto Github PK
View Code? Open in Web Editor NEWA Genetic Algorithm-Based Solver for Jigsaw Puzzles :cyclone:
License: MIT License
A Genetic Algorithm-Based Solver for Jigsaw Puzzles :cyclone:
License: MIT License
└─# pip install -r requirements.txt
Collecting numpy==1.22.0
Using cached numpy-1.22.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (16.8 MB)
ERROR: Could not find a version that satisfies the requirement opencv-python==4.2.0.32 (from versions: 3.4.0.14, 3.4.10.37, 3.4.11.39, 3.4.11.41, 3.4.11.43, 3.4.11.45, 3.4.13.47, 3.4.15.55, 3.4.16.57, 3.4.16.59, 3.4.17.61, 3.4.17.63, 3.4.18.65, 4.3.0.38, 4.4.0.40, 4.4.0.42, 4.4.0.44, 4.4.0.46, 4.5.1.48, 4.5.3.56, 4.5.4.58, 4.5.4.60, 4.5.5.62, 4.5.5.64, 4.6.0.66)
ERROR: No matching distribution found for opencv-python==4.2.0.32
when i want to install gaps................
Installed /usr/local/lib/python3.10/dist-packages/gaps-1.0-py3.10.egg
Processing dependencies for gaps==1.0
Searching for opencv-python
Reading https://pypi.org/simple/opencv-python/
error: The read operation timed out
I have installed this
opencv_python-4.5.4.60-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64
from https://mirrors.tuna.tsinghua.edu.cn/pypi/web/simple/opencv-python/
numpy==1.21.5
opencv-python==4.5.4.60
matplotlib==3.5.1
pytest==6.2.5
pillow==9.0.1
python version is 3.10.4
kali-linux 2022.2
tks
Hi, I just want to ask a quick question, why are you using your own implementation of GA? There are several libraries already implementing a plethora of GA algorithms, one being pymoo.
Hello @nemanja-m, today while exploring GitHub looking for interesting projects found yours and I would love to contribute by designing a logo for it. I'm a designer in development and an open source enthusiast. We would be working together to create the design that fits best. Of course it's totally free and you can quit whenever you want. In case you agree, please let me know any preferences you may have about colors, shapes, etc you may have.
Kind regards.
Hello. Please tell me the version of Python
Thanks in advance
I'm looking to use your solver with same dimensions pieces but not necessarily squared. Is there any parameter for this ?
Need it to work with random size jigsaw pieces. When the image is broken down into square based jigsaw pieces it works wonderfully. Was wondering how to change the code to break an image into random jigsaw puzzle and how to run the code to automatically solve the jigsaw pieces.
Is there a way to deal with the difference in length and width at present??
Thanks so much for sharing this great code
But you didn't mention what is the name of the paper of this code?
The colored images are working neatly, but the second you throw a black and white image it feels kind of scattered around and not accurate at all
Is there any implementation for direct metric or neighbor metric?
what metric is used here?
Traceback (most recent call last):
File "./gaps", line 43, in <module>
image = cv2.cvtColor(image, cv2.COLOR_BGR2RGB)
cv2.error: OpenCV(3.4.2) /io/opencv/modules/imgproc/src/color.hpp:253: error: (-215:Assertion failed) VScn::contains(scn) && VDcn::contains(dcn) && VDepth::contains(depth) in function 'CvtHelper'
I might try to see if I can solve this later.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.