Friday, 12 June 2015

Where should you start to image-process?

If you are interested in image-processing, download MATLAB from torrents. Probably it is the only place you can get it for free. But the problem is you don't get hardware support packages cracked. So if you want to start anew, start with OpenCV. I will be soon moving to OpenCV because it is open-source.
For tutorials, you can go through,
1. https://www.youtube.com/playlist…
The above playlist covers only very simple basics that will comfort you with the environment. The key is MATLAB documentation. Open up an example go through it and search for every function, read its syntax and what it does.
The problem with this project is it is not very robust. It will occasionally pick noises or wipe out a number from Sudoku image. My image processing techniques work but they ain't fool-proof. To counter that I have provided a manual correction method within the code.

You scroll down the blog what problems were faced earlier, what alternate solutions I came with, why I discarded some etc.

Right now, I am working on a Finger controlled Ping Pong game, integrating C and MATLAB. Till now I am successful to object track and make a ping-pong game in C. Will soon integrate them and blog. Feel free to share your views. :)

Friday, 5 June 2015

Finalized my Sudoku Solver project.

So finally, I was able to solve a few Sudoku problems from newspapers using my program. The Sudoku solving algorithm seems fool-proof till now yet image-processing not satisfactory to me.
You may look out for my project in the CustomizationOfGrid branch of following link to GitHub here. Don't forget to view README.md.

Following are raw ideas of my image-processing script :
1. Cropping the image by finding the corners of the cleared border image.
2. Straightening by finding mean corners.
3. Perform Contrast enhancement, Connected components analysis and filter.
4. Setting up ROIs for each Sudoku cell and prompt menu to adjust ROI manually if found incorrectly placed w.r.t. the number in cell or surrounding cell.
5. Perform OCR.
6. For characters below certain Confidence levels print 'x' and the user must amend to it.

Don't forget to comment any better methods to image process such images of puzzles.