Monday, October 10, 2016

Exer7: Optical Character Recognition Part 1


In this exercise we were tasked to detect what number is present on the input image.

To do so we used a set of training images as basis. For each number, we made five samples thus resulting in 50 control images.

We used Euclidean Distance Formula:


This formula is used on the training data images and on the input image. The lower the result, the closest it is to the input image.




Training Data
Sample Input Images Used
Correct output!
Incorrect output :(

Although we were able to detect the connected components, some of the numbers resulted to the wrong output. Perhaps the features that we used aren't enough.

Exer6: Erosion-Dilation

For this exercise we were tasked to detect the shaded and count the shaded circles in the evaluation forms.

There were the following problems/concerns in the exercise:
  • 'x' marks exist in some forms where the answers were changed. 'x' marks should not be detected as a circle
  • some circles are lightly shaded
In order to get the desired output, we used a lot of preprocessing techniques (blurring, erosion, dilation, binarization, etc.) to enhance the image before detecting the circles.

Successfully detected image!

Unable to distinguish 'x' marks from circles

As seen on the second image, we were not able to distinguish the 'x' marks.