ivapylibs/puzzle_solver

Update test scripts for adjacent class

Closed this issue · 3 comments

Uio96 commented
  • The current test script uses the image of six shapes, which are not adjacent. Need to simulate a new image with adjacent pieces.
  • Also the testAdj function in the board needs to be updated.
Uio96 commented

Solved with 91b37d8

pv33 commented

Remember to note that adjacency is based on a threshold. That means it is possible to have an image of separated objects get treated as adjacent by having a slightly higher threshold for adjacency.

It also shouldn't be too hard to make a puzzle with just nine squares that have different colors and are close to each other but not touching. Makes it easy to calibrate and then to solve.

Uio96 commented

Remember to note that adjacency is based on a threshold. That means it is possible to have an image of separated objects get treated as adjacent by having a slightly higher threshold for adjacency.

It also shouldn't be too hard to make a puzzle with just nine squares that have different colors and are close to each other but not touching. Makes it easy to calibrate and then to solve.

Yep, I understand. I just thought the previous visualization was not that good so I created a new one for the adjacent case.