Solving a Sudoku puzzle

Remember the Sudoku puzzle project in Chapter 2, Detecting Basic Features in Images? Now is the perfect time to revisit this project and see whether we can use anything that we learnt in this chapter to complete this application. So, in Chapter 2, Detecting Basic Features in Images, we had successfully detected the Sudoku puzzle. Only two things were left in that application: recognizing digits and solving the Sudoku puzzle.

Recognizing digits in the puzzle

Let's pick up from where we left in Chapter 2, Detecting Basic Features in Images. After detecting the grid successfully, we need to further break down the grid into 81 small squares. There are many possible ways of doing this, but here, we will look at only three techniques. ...

Get Mastering OpenCV Android Application Programming now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.