You are on page 1of 4

3.

3 INPUT AND OUTPUT DESIGN

Form 1: Image Upload

This form is used to upload the scanned image by the user. Clicking on the browse button
an image can be selected and the image can be uploaded to the picture box. On clicking the apply
filter button the image after applying filteration is displayed in the second picture box. On
clicking the conversion button the resultant form is displayed.

IMAGE UPLOAD FORM

Browse

Apply filter Clear Conversion

13
Form 2: RESULT

This is an output form for the user to view the resultant text in the textbox. On clicking
the convert button the resultant text is displayed in the richtextbox. The result can be saved to the
system using the save button. The suggest button can be used if the user wishes to replace any
words viewed in the resultant text.

RESULT FORM

Resultant text

Convert Save

14
SYSTEM CODING

15
4. SYSTEM CODING
System coding of Geometric feature points based optical character recognition mainly
consists of two portions. They are the preprocessing stage and the feature extraction stage. This
is a windows application which can be implemented in the field of data entry, postal code
identification etc. Thus the application doesn’t require any special authentication to use it. The
optical character recognition is the process of detecting characters from a scanned image and
converts it into an editable format. For this purpose the methodology used is to extract the
geometric feature points. At first the scanned image which is the input is undergone the
preprocessing stage. This stage is for performing the various processes such as the Noise
removal, thresholding and the thinning operation. Each alphabet is considered to be made up of
three geometric entities; they are corners, endings and bifurcations. The values thus extracted are
compared with the database values and the characters are identified. The windows application is
developed using the Asp.NET package.

4.1 Code Description

Apart from the usual .Net packages, important packages used for the development of this
application are:

1. using System.Data
2. using System.Data.SqlClient
3. using AForge.Imaging.Filters
4. using System.Drawing.Imaging
5. using System.Drawing
6. using System.IO

The database connection is established as shown below.

class dbop
{SqlConnection con = new SqlConnection (@"Data
Source=.\SQLEXPRESS;AttachDbFilename=C:\Users\user\Documents\ocr.mdf;Int
egrated Security=True;Connect Timeout=30;User Instance=True"); }

16

You might also like