neeru1207 / AI_Sudoku

GUI based Smart Sudoku Solver that tries to extract a sudoku puzzle from a photo and solve it
Creative Commons Zero v1.0 Universal
999 stars 153 forks source link

Doesn't reveal solution #3

Closed vj68 closed 4 years ago

vj68 commented 4 years ago

Amazing work!

But it doesn't solve the sudoku. It says invalid board for every image.

neeru1207 commented 4 years ago

Thanks a lot for raising the issue. I have rectified the issue and committed the changes. Kindly check again.

vj68 commented 4 years ago

@neeru1207 It still doesn't work

Tried this image : sudoku2

Got this :

sudoku-ai-not-working

@neeru1207 Maybe the KNN isn't good enough with k=3?

davixcky commented 4 years ago

I found the error. Look the squares 3 and 6, both have the 8 in the same column

davixcky commented 4 years ago

The error is because, the 9 of the square 6 (2,1) , was changed by 8

neeru1207 commented 4 years ago

The detection and recognition isn't 100% accurate obviously. So I had provided an option for the user to rectify the entries. So manually rectify the entries and click on reveal solutions