Thursday, September 22, 2011

Activity 12 – Preprocessing of Handwritten Text

I know this is very late but I have managed to finish this activity long ago. This late blogging is due to my laziness from the time this activity was done. Sorry for this one. Anyway. Here it goes.

Figure 1 shows the (a) original image and the (b) rotated image to align the texts horizontally. The rotation was done using mogrify function of scilab.

image

Figure 1. (a)Original image and (b) rotated image

After the rotating the image, the image was cropped shown in Figure 2(a,top) and the horizontal lines found in the cropped image was removed by taking the Fourier Transform of the rotated image and masking the  y – axis of the Fourier plane shown in Figure 2(b,bottom).

image

Figure 2. (top row) (a) cropped image and (b) processed image. (bottom row) FT of the top row of (a) and (b).

The binarized image is shown in Figure 3.

image

Figure 3. Binarized cropped image.

The next tasked was to find another circumstance in the image file that the word DESCRIPTION occurs. It was done by correlating an image that has the word DESCRIPTION with the rotated image. This image is shown in Figure 4.

image

Figure 4. (top) Binarized cropped image of the original image, (middle) template for the word DESCRIPTION and (bottom) the correlation of the first two images

I will give myself of 7.5. Thank you for reading this.

1 activity down, 5 more to go. I hope I can finish blogging the remaining 5 activities tomorrow.

Good Day!

No comments:

Post a Comment