Professional Documents
Culture Documents
Abid Rahman K
Sudoku Solver - Part 1 Follow 1k
Actually I started this a few months ago, but got stuck at final part, more specifically, the OCR 1k
part. But after a little hacks, I could find a simple method for OCR using kNN. Hope you have
read that article !!!
Total Pageviews
In this post, I will tell you what exactly I did to develop a "Sudoku Solver".
1,426,951
What exactly it does?
Google+ Followers
OpenCV Python
Follow
Followers
Follow
Blog Archive
2011 (2)
2012 (26)
March (1)
April (3)
May (5)
June (12)
We will deal with each of one of the steps above:
Sudoku Solver - Part 1
1. Reading the Image : It is our normal image reading in OpenCV Difference between Matrix Arithmetic in
OpenCV and...
2. Image Pre-processing : It includes noise removal, brightness/contrast adjustment,
thresholding etc. Smoothing Techniques in OpenCV
3. Find Sudoku Square & Corners : Here we find outer border of Sudoku square and its Sudoku Solver - Some Common
corners. Questions
1 of 3 7/6/17, 12:12 PM
OpenCV-Python: Sudoku Solver - Part 1 http://opencvpython.blogspot.in/2012/06/sudoku...
4. Image Transformation : Here we reshape irregular Sudoku in input image to a perfect Sudoku Solver - Part 2
square. Image Derivatives and its Applications
5. Recognize the digit (OCR) : Recognizes the digits in input image and place them in
Fast Array Manipulation in Numpy
correct position
Contours - 1 : Getting Started
6. Solve the Sudoku : Here, real solving of Sudoku take place.
Contours - 2 : Brotherhood
7. Project back the Result : We project the solved Sudoku to image as shown in demo.
Contours - 3 : Extraction
In some steps, we take some practical assumptions. One, I would like to tell you now :
Contours - 4 : Ultimate
Sudoku Solver - Part 3
The biggest square in the image should be Sudoku Square. In short, image should be
taken close to Sudoku, as you can see in the input image of demo. ( Reason, I will tell in July (3)
upcoming posts).
December (2)
That is all the theory about this. From next post onwards, we get into practicals on how to 2013 (10)
implement this.
Top comments
Reply
+1 Reply
Reply
Reply
2 of 3 7/6/17, 12:12 PM
OpenCV-Python: Sudoku Solver - Part 1 http://opencvpython.blogspot.in/2012/06/sudoku...
Latex
3 of 3 7/6/17, 12:12 PM