Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Only 4 pieces #1

Open
jumpjack opened this issue Aug 8, 2022 · 3 comments
Open

Only 4 pieces #1

jumpjack opened this issue Aug 8, 2022 · 3 comments

Comments

@jumpjack
Copy link

jumpjack commented Aug 8, 2022

It finds and locks only 4 pieces, then what? Should I do something else after running first time?
image

@MaximTerleev
Copy link
Owner

Dear Jumpjack! Kindly open the notebook via Google Colab link (it is at the top of .py file), upload the picture to Colab and run. This will guarantee the result.

Otherwise your local machine setup may transform the image or Python interpreter may differ from the one in Colab and due to this demonstrate a slightly different behavior.

Generally, this code is a reference code for the TowardsDataScience publication and is designed exclusively to demonstrate the principal algorithm. In this way it has no wrapping to restart after fails, on-the-go reparametrization (parameters are pre-fixed in matchTiles() function) etc, etc... You can take it as a basis and wrap it into your own logic... Try playing with LENGTH, PRECISION, STEP_A, STEP_B parameters...

@jumpjack
Copy link
Author

jumpjack commented Aug 9, 2022

I don't know how to use colab and how to upload images, once I'm here what should I do ?

image

@jumpjack
Copy link
Author

jumpjack commented Aug 9, 2022

ah ok, it was easier than I thought.
It works with demo image... but with my images it find just 1 piece!

Real puzzle:

image

Result:

image

Handmade on PC:

image

Result:
image

I'll try tuning some parameters, thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants