prajwalkr / SnapSudoku

Extract and solve Sudoku from an image
MIT License
250 stars 40 forks source link

Fails to replicate result with the image from the README #25

Open hnstr opened 8 years ago

hnstr commented 8 years ago

Hi,

Thanks for providing this! I might be doing something wrong here though, because after cloning your repo and installing the right packages, I tried to run it with the image provided in the README. However, I did not get the same output, but instead:

Image loaded.
Preprocessing... done.
Cropping out Sudoku... done.
Straightening image... done.
Extracting cells... done.
No solution found.  Please rescan the puzzle.

Do you know what might be the issue? What might I be doing wrong?

prajwalkr commented 8 years ago

That's surprising. Could you please uncomment the following lines in scripts/sudokuExtractor.py:

Line 19, 21 23

and run it again to see the outputs after preprocessing, after cropping out sudoku grid and final sudoku grid?

Are the intermediate outputs as expected?

hnstr commented 8 years ago

Yes, that all seems to be working as intended.

See final sudoku grid:

screen shot 2016-09-15 at 14 04 27

However, when I print out the grid, it shows me this:

screen shot 2016-09-15 at 14 05 22

It seems like the number recognition is not working as intended?

ghost commented 7 years ago

fu

I get this error after uncommenting lines 19,21,23...

Navdevl commented 7 years ago

@Arvindsinc2 Are you running in cloud ??

ghost commented 7 years ago

NO, but i am running this on VM-ware with ubuntu server 16.04.

kami83 commented 6 years ago

Hi,

same problem here. Did anyone solved it? My recognition is not working?

Thanks a lot.

Cu kami