Sh arm a

Form Field Location and Boundary Removal for Gurmukhi Script Based Form Processing System Dharam Veer Sharma Lecturer, Dept. of Computer Science and Engineering, Punjabi University, Patiala [email protected] Abstract

expected in case of common forms. The use of vowels (matras), half vowels, half characters and the line connecting the different characters of a words used in some Indian scripts add to the complexity of recognition manifolds.

The history of handwrit ten text recognition dates back to 1957, when T. L. Dimond presented devices for reading handwritten Characters at the Eastern Computer Conference. Recognition of handwritten text up to 100% accuracy is illusionary and should not be the dead goal of research, as even humans are not able to recognize every handwritten text, unambiguously, with 100% accuracy.

Ve er

Automation of hand-filled form data recognition is a challenging task. Form processing involves many activities including form field location, field frame boundary removal and data image extraction, segmentation, feature extraction, classification and recognition. The paper proposes an algorithm for removal of the field frame boundary of the hand filled form. Because of the structural characteristics of the Gurmukhi script and varied writing styles the filled data may overlapping the field frame boundaries, which makes it difficult to r emove the field frame boundaries while preserving the filled in data. The algorithm has been developed and tested for Gurmukhi script however with minor or no changes it can be applied to scripts having structural features similar to that of Gurmukhi script. Keywords: form processing, frame line removal, frame boundary removal, frame removal, field frame removal.

ara m

1. Introduction Forms are information carriers and frequently used for collecting data from different sources and then the collected data is entered in computers for processing. Forms may vary from paper based to online. Manual keying-in data, for processing, requires manpower and is prone to errors. It costs in terms of time and money. However, it will be useful to deploy automated systems for reading data from paper based forms and storing it in a form which can be modified and processed. Reading of data from paper based forms requires converting the form data into digital format , which can be recognized and processed by computers. This can be done by feeding the paper forms to a system which recognizes the image of the paper form and converts it into fields consisting of set of characters. Various processes are applied on this digitised data to convert it into an editable form.

Dh

Examination of literature reveals that the recognition of handwritten characters is relatively difficult task, because of the large number of classes, especially if we consider that well formed characters can not be

Data extraction and recognition of paper based forms has some inherent difficulties. The basic problem is the variation among the writing styles of different persons. T he other problems include script characteristics, differences between form template data and user filled data. Even one person may be writing in different styles at different points of time. Further there are problems of locating fields and extracting data image from fields for pre-processing which includes, slant correction, segmentation, feature extraction, classification and recognition. For the purpose of recognition the data can be categorized as follows: i. Constrained: When location of data or text to be recognized is bounded or stored using some spatial constraints. ii. Unconstrained: When location of data or text can not be pre-specified. It may be lying anywhere in the image. iii. Isolated characters: Data may consist of set of isolated characters. The process of machine recognition of hand-filled forms can be divided into four phases: I. Image scanning: First the image of the paper based form is scanned and stored in some image file in the form of bitmaps. For the purpose of research binary images have been preferred over gray scale or coloured images primarily because of

1 of 5

Sh arm a image and slant in the text must be detected and corrected. vi . Segmentation: Text is normally written in form of words, which are divided into single characters and sub characters for recognition. III. Recognition: Using the refined image after applying some pre-processing activities on the image the recognition of data or text is done. This includes feature extraction, classification and recognition. It may be based on i. Neural networks ii. Statistical methods iii. Template matching iv. Markov models IV. Post-processing: Post-processing is applied to further refine the results. Post-processing may include v. Contextual processing vi. Dictionary matching vii. Phonetics viii. Validation (Range or domain)

Ve er

the image size and reduced complexity of processing binary images. II. Pre -processing: Some pre-processing of the image, containing text or data to be recognized, is required for improving the recognition accuracy. The pre-processing activities may include some or all of the following: i. Search object for recognition: If the data form is pre-designed then first a form must be scanned and used as a template. Objects to be recognized should be marked as fields of different types (alphabetic, numeric alphanumeric, date etc.) Even domains can be specified for the different fields. If the form has been designed keeping in view the later recognition of its data then the location, data type and validation constraints, if any, of recognizable fields can be stored and used for extraction of fields. This information is stored as form fields schema. ii. Form Frame Line Removal: Having located the form fields, next step is to remove the field frame for data image extraction. For this purpose many methods can be adopted, e.g. Colour dropout: Conventional form processing system uses dropout color on the frame to separate the frame and handwrit ten and requires color reading/printing environment. Hence, monochrome copiers and monochrome facsimiles cannot be emp loyed in this process. Form Template: Under this technique a template of the form is used indicating the relative position of the fields with in the form. These distance parameters are used on forms for locating fields.

Dh

ara m

In the second method we need to remove the field frame line, which can be a difficult task if hand filled data over laps the frame boundaries. And this is the objective of the present study. iii. Noise removal: Noise may be introduced in the image at the time of scanning of the image. This noise may mislead the recognition system and must be removed to the maximum extent. iv. Skeletonization or thinning: Skeletonization of the image means reducing the width of the line of character to one pixel only. This helps in better extraction of features from the text images. v. Slant and skew correction: At the time of scanning the form may get tilted while feeding it in the scanner which may cause the image to be skewed. The writing style of the individuals may also have slant in the text. For better recognition of the text, the skewness of

Figure 1: Overview of Form Processing System

2. Review of literature: I. Form Processing Considerable work has been done for extracting data from hand-filled forms. Some well developed systems are available for recognising and processing data of hand-filled paper forms. The work mainly relates to the European and Oriental languages. There is no work reported for recognition and extraction of hand-filled text from paper based form for Indian scripts. Lam, S.W. et al. [1] have described a structure for a form reader whose performance is based on supervised learning. The system depends on training and processing of forms. The recognition is based on contexts. Lorie, R. A. et al. [2] have proposed a system

2 of 5

Sh arm a character size. However due to the difference of forms and resolution of scanners, the width or height of characters varies greatly from 10 pixels to more than 100 pixels. In most literature, this important threshold is input by users [11] or is a constant value [10, 13].

3. Objective : It’s been found that a large variety of forms use frame lines to determine their layout structure and satisfy the following three conditions: 1. The frame lines are straight and continuous. Horizontal lines are perpendicular to vertical lines and vice versa. 2. The form has two horizontal frame lines acting as top boundary and bottom boundary respectively. 3. Each item is enclosed by a box formed by 4 frame lines. Frame line detection is the most important and difficult step of form recognition. Hough transform [9] and vectorization [12] are two kinds of widely used line detection methods. As a global approach, Hough transform can detect dashed or broken lines. However, it is too slow to be applied in form recognition. Most of the frame lines on forms are horizontal or vertical. So in the (?,?) transformed space, we can narrow the search range of ? to small areas around 0o and 90o. Such modified Hough transforms are just projection approaches [10,13]. Though fast, projection approaches have some problems. First, they cannot detect diagonal lines and frame lines with large skew angles. Second, when characters overlap or merge with frame lines, the projection of frame lines are overwhelmed in the projection of characters. Such lines cannot be detected correctly. Third, some frame lines in a scanned image, especially those on the image borders, are deformed. With some kind of cursive, they are not straight now. Projection methods fail to detect such curved lines too. As the other kind of algorithms widely used, vectorization approaches [12] extract vectors from images first. By merging these vectors, the whole objects are detected. Such bottom-to-up approaches can solve the above problems of projection approaches.

Ve er

for automating data entry system by recognising data from forms. Authors have suggested use of contexts in post-processing for improvement of recognition results and involvements of user intervention to verify the results of fields which are difficult to recognise. Ning, L. W. et al. [3] have suggested a design for automated data entry from handwritten forms, which is based on design of a template form for capturing regions of interest only from the forms. A self-organising neural network known as fuzzy ARTMAP has been used for classification and recognition of isolated characters. Kavallieratos, E. et al. [4], in their paper, have presented a reading system for extracting the handwritten text from application forms and of recognising the alphanumeric characters. The system is based on hidden Markov models. After lexical confirmations of the result of recognition achieved were 97%. Ye, X. et al. [5] have proposed a general system for extraction and cleaning of data from handwritten forms. The items of interest are located from the form for which a model template is generated from a blank form, which is used to remove the form frame from the actual forms to be used for recognition. Morphological operations based on statistical features are used to clean the handwriting touching the pre-printed text. A recognition rate of 95.5% has been reported to be achieved. Srihari, S.N. et al. [6] have proposed a system for reading names and addressed from tax forms of the Internal Revenue Services of United States. The system has been named “Name and Address Block Reader (NABR)”. The system is capable of recognising machine-printed as well as hand-printed data. An OCR correct rate of 89.53% and 97.86% for hand-printed and machine-printed data respectively has been achieved. Sako, H. et al. [7] have proposed a form reading technology based on form type identification and formdata recognition. A recognition rate of 97% has been reported.

ara m

II. Field Frame Line Detection and Removal Zheng, Y. et al.[8] have presented a kind of vectorization algorithm, which uses a novel image structure element named “Directional Single-Connected Chain (DSCC)” as the elementary vector. DSCC bears appropriate size and can be easily stored and processed, in addition to the capability to solve most types of character-line crossing problems. By merging DSCCs under some constraints, most of the frame lines can be detected correctly. However, there may still exist two kinds of misdetection, i.e., the pseudo lines and the broken lines. Generally, vectorization approaches are much slower than projection approaches due to the large number of vectors.

Dh

In most frame line detection algorithms, a critical threshold is used to remove any short lines formed by character strokes. This threshold represents the

In form’s case only horizontal and vertical frame lines are to be detected. After projecting in both horizontal and vertical directions, line positions are indicated by the projection values that are local maximums greater than a threshold. This threshold determines the minimum length of frame line to be detected. Then the endpoints of the lines can be determined through searching along the projection lines at the local peak projection values. However, the real image is usually of a little skew, to which the peak projection values of frame lines are very sensitive. Therefore, projection should be performed at the skew angle [14]. The angle can be estimated according to the slope of the top horizontal frame line, which can be reliably detected.

3 of 5

Sh arm a

Another issue is about short frame lines, which may be missed by the projection threshold. The line detection method should solve this problem too.

the filled in data. An approach based on ‘T’ and ‘+’ junctions finding on the field frame boundary has been used to identify and remove the field frame boundary.

In their paper Shimamura, T . et al. [15] have suggested carrying out erosion several times for removal of field frame lines if frame lines are thinner than the handwritten data. After applying erosion the frame boundaries will disappear and then dilation can be applied for the same number of times as was erosion applied then the handwritten data will be almost of the same thickness as it was before applying erosion. Application of this approach is practically not possible as handwritten data may be of varying thickness and in some cases it may be thinner than the frame boundaries. In such cases the handwritten data will be lost before the removal of the frame lines.

4. Proposed Method: The method, proposed in the paper, is primarily intended for Gurmukhi script but can be applied to other scripts as well with no or minor modification.

First the field bounding rectangle is identified, which may exceed actual width if some left or right (fig. 2. (a) & (b)) line overlapping is there. It may exceed the actual height if some top or bottom overlapping is there (fig. 2 (c) & (d)).

Ve er

There is an experimental evidence of the fact that humans write outside such boxes. Therefore, it is necessary to cope with the problem of extracting correctly the letters or words they write, even outside the strict regions they are supposed not to exceed. Simoncini, L. et al.[16] have suggest ed that in order to remove the box, a set of regions of each edge be extracted and a standard line fitting technique be used to parameterize them. The deletion of the lines is carried out, leading to an excessive erosion of the crossing strokes. At the end, they must be repaired and the crossing characters reconstructed.

Skewness, in the form images, is only detected and correction is deferred till field extraction. Actually skewness is not corrected at all if the skew angle is not very large. The slope is used for line tracing along horizontal and vertical runs. At the time of extraction of field data image only the skewness is corrected. This saves considerable amount of time.

ara m

Yoo, J. Y. et al. [17] have suggested tracing the top and bottom of the black run. First, the top and bottom of the black run are traced only in the forward direction. If a black pixel is in the below or over the black pixel under consideration, it is checked whether another black pixel exists above or below that point. If such a point exists, the algorithm removes the line in the forward direction. The algorithm also searches in the below or over the pixel under consideration for a junction point until it finds a black pixel. If the distance between the top and the bottom of the black run exceeds the threshold, the point is stored as a contacting point.

Problems of hand filled forms in Gurm ukhi Script: Some of the Indian scripts have very complex structures e.g. Punjabi, Hindi, Bengali etc. Use of head line, appearance of vowels, parts of vowel or half characters over headline and below the normal characters (in foot) and compound characters makes the segmentation and consequently recognition tasks very difficult. Recognition rates of 95 and more are very high considering the structural complexity of these scripts.

Dh

Further, because of the characteristics of the Gurmukhi script the data filled by used may overlap the field frame boundaries. Then there is an additional task of removing the field frame boundary, while preserving

(a)

(b)

(c)

(d)

Figure 2: Examples of overlapping on all four sides

The problem becomes even more difficult to handle when the head line of a word is merged with the top frame line. Gurmukhi script has set of some characters which vary only on the basis of present or absence of head line. The present algorithm can not help in distinguishing amongst these characters.

Figure 3: Merger of head line with top line of frame

Figure 4: Wider field area than the filled in data

Frame boundaries removal is done by carrying out the following steps 1. Locating field bounding rectangle. 2. Finding LeftTop, LeftBottom, TopRight and BottomRight points from the frame boundaries. 3. If no overlapping of filled data with frame boundaries is there then remove the bounding rectangle by calculating the projection profiles and ignoring the areas inside the bounding rectangle using some threshold value. The threshold value can be calculated by using a constant for frame line thickness or it can be input by the user. It is doubled for (top and bottom or left and right lines of a rectangle) for setting the threshold value. 4. If some overlapping occurs then the lines where the data is overlapping the frame boundaries are identified and all other lines where no overlapping is encountered are removed using step 3.

4 of 5

Sh arm a

5.

For lines with overlapping data the points calculated in step 2 are used for tracing and removing lines. While tracing wherever overlapping is encountered at a point, the junction are located and if a junction is like any of the junctions given in fig. 5 then such points of line are not removed, as this may lead to breaking of characters. 1 1 1 1 a

1 1 1 1 1 b

1 1 1 1 c

1 1 1

1 1 1

1 1 1

d

e

f

1 1 1 g

[1] Lam, S.W., Javanbakht, L., Srihari, S.N., "Anatomy of a form reader", Proc. of the 2 nd Int. Conf. on Document Analysis and Recognition, pp. 506-509, 20-22 Oct. 1993. [2] Lorie, R. A., Riyaz, V. P., Truong, T. K., "A system for automated data entry from forms", Proc. of the 13th Int. Conf. on Pattern Recognition, vol. 3, pp. 686 – 690, 25-29 Aug. 1996. [3] Ning, L. W., Siah, Y. K., Khalid, M., Yusof, M., "Design of an automated data entry system for hand-filled forms", Proc. TENCON 2000, vol. 1, pp. 162 – 166, 24-27 Sept. 2000. [4] Kavallieratos, E., Antoniades, N., Fakotakis, N., Kokkinakis, G., "Extraction and Recognition of Handwritten Alphanumeric Characters From Application Forms", 13th Int. Conf. on Digital Signal Processing Proceedings, (DSP'97), vol. 2, pp. 695 – 698, 2-4 July 1997. [5] Ye, X., Cheriet, M., Suen, C. Y., "A Generic system to Extract and Clean Handwritten Data from Business Forms", Proc. of 7th Int. Workshop on Frontiers in Handwriting Recognition, pp 63-72, Sept 11-13, 2000. [6] Srihari, S.N., Shin, Y. C., Ramanaprasad, V., Lee, D. S., "A system to read names and addresses on tax forms", Proc. of the IEEE, vol. 84, issue. 7, pp. 1038-1049, July 1996. [7] Sako, H., Seki, M., Furukawa, N., Ikeda, H., Imaizumi, A., "Form reading based on form-type identification and form -data recognition", Proc. of the 7th Int. Conf. on Document Analysis and Recognition, pp. 926–930, Aug. 3-6, 2003. [8] Zheng, Y., Liu, C., Ding, X., Pan, S., “Form Frame Line Detection with Directional Single- Connected Chain”, Proc. of the 6 th Int. Conf. on Document Analysis and Recognition (ICDAR’01). [9] J. Illingworth and J. Kittler, “A Survey of the Hough Transform”, Computer Vision, Graphics, & Image Processing, vol.44, 1988, pp.87-116. [10] Jinhui Liu, Xiaoqing Ding, Youshou Wu, “Description and Recognition of Form and Automated Form Data Entry”, In Proc of 3rd ICDAR, Montreal, Canada, 1995, pp. 579-582. [11] Shiyan Pan, “Research and Realization of a General Form Recognition System”, Master thesis of Tsinghua University, June, 1999. [12] Wenyin Liu, Dov Dori, “From Raster to Vectors: Extracting Visual Information from Line Drawings”, Pattern Analysis & Application, No.2, 1999, pp.10-21. [13] Jiun-Lin Chen, Hsi-Jian Lee, “An Efficient Algorithm for Form Structure Extraction Using Strip Projection”, Pattern Recognition, Vol.31, No.9, 1998, pp.1353-1368. [14] Liu, J, Ding, X and Wu, Y., “Description and Recognition of Form and Automated Form Data Entry”, Proc. of the 3 rd Int . Conf. on Document Analysis and Recognition (ICDAR '95) [15] Shimamura, T., Zhu, B., Masuda, A., Onuma, M., Sakurada, T., Nakagawa, M., “ A Prototype of an Active Form System”, Proc. of 7th Int. Conf. on Document Analysis and Recognition, 2003. [16] Simoncini, L., Kovbcs- V, Zs. M., “A System for Reading USA Census ‘90 Hand-Written Fields”, Proc. of the 3 rd Int. Conf. on Document Analysis and Recognition (ICDAR '95). [17] Yoo, J. Y., Kim, M. K., Han, S. Y. and Kwon, Y. B., “Line Removal and Restoration of Handwritten Characters on the Form Documents”, IEEE.

Ve er

Figure 5: Possible set of junctions at a point

References:

Figure 6: Sample form

ara m

5. Results and discussions For the purpose of testing the algorithm, a total of 60 forms of same type were used. Each form consisted of 92 fields (figure 6). The forms were filled by different persons with their natural handwriting. The average time required for field detection and field frame removal is 21 seconds for a form containing 92 fields scanned under 300 resolution as bi-level image s (PIV 2.66 Ghz, 256 MB). The algorithm produced fairly good results and no breaking of characters or loss of significant data is witnessed. Figure 7 displays the various results obtained by applying the algorithm. (b)

(c)

(d)

(e)

(f)

Dh

(a)

Figure 7: Results of field frame boundary removal

5 of 5

Form Frame Boundary Removal

Automation of hand-filled form data recognition is a challenging task. ... boundary removal and data image extraction, .... data entry from handwritten forms, which is based on ..... Extract and Clean Handwritten Data from Business Forms",.

265KB Sizes 3 Downloads 174 Views

Recommend Documents

custom frame form 2014 copy.pdf
Email is best: [email protected]. Price, delivery, deposit: A frame and fork, painted the normal way,with the normal custom extras, costs $3,500, or about $1000.

Frame by Frame Language Identification in ... - Research at Google
May 20, 2014 - Google Services. Reported results .... Figure 1: DNN network topology. EM iterations .... eral Google speech recognition services such as Voice.

Web application security frame
Feb 14, 2006 - tion environment to determine the application type, for example ... intelligence (AI) component that infers an action that a user ...... Files, paths,.

Frame Relay.pdf
LES TOPOLOGIE FRAME RELAY : • Maillage global : Chaque extrémité est reliée par l'intermédiaire d'un PVC distinct vers chaque autre. destination. • Maillage ...

Web application security frame
Feb 14, 2006 - web application security frame component can be applied to. Chen et a1' ...... attacker successfully gains access as a legitimate user or host,.

Boundary estimates for solutions of non-homogeneous boundary ...
values of solutions to the non-homogeneous boundary value problem in terms of the norm of the non-homogeneity. In addition the eigenparameter dependence ...

Boundary Final.pdf
BOYD LAKE. WELD COUNTY. ROAD 62 ... POWELL. SANCTUARY. SEA GULL. GOLDCO GRUMMAN. DRAFT. HORSE ... Page 1 of 1. Boundary Final.pdf.

Waste Removal Bins.pdf
Email: [email protected]. Phone: 778-929-1023. Website: http://www.disposal-queen.com. Page 3 of 3. Waste Removal Bins.pdf. Waste Removal Bins.

Tree Removal Procedure.pdf
Red squirrel poking out of a. den tree savoring a nut. dropped by ... Tree Removal Procedure.pdf. Tree Removal Procedure.pdf. Open. Extract. Open with. Sign In.

Removal Miami, FL.pdf
Moving to a new home means a fresh start – and less junk! To avoid junking up your loved. one's new home with chipped dinnerware, broken electronics and other useless items, call. 1-800-GOT-JUNK to schedule an at-home pick-up. This junk removal ser

boundary layer
RH and OH not only depends on the strength and spatial distribution of the. RH emissions ..... Any present-day numerical model is only capable of sim- ulating 2 ...

Boundary Final.pdf
Effective. 29 May, 2016. Page 1 of 1. Boundary Final.pdf. Boundary Final.pdf. Open. Extract. Open with. Sign In. Main menu. Displaying Boundary Final.pdf.

Growing Garlic - Boundary Garlic
on time and curing properly are all important for producing bulbs with good ... Grain straw is not recommended because it can host wheat curl mite which will ...

1950s Frame It.pdf
Whoops! There was a problem loading more pages. Retrying... 1950s Frame It.pdf. 1950s Frame It.pdf. Open. Extract. Open with. Sign In. Main menu. Displaying ...

Noncoherent Frame Synchronization
Also, the advantage of (24) is still large when compared to noncoherent correlation, .... of the IEEE Communication Society and past Editor of Wireless Communi-.

Bicycle with improved frame configuration
Jul 24, 2006 - Page 10 .... While some bicycle frame builders have merely substi tuted tubes made .... combination, at the top of said airfoil seat tube, and rear.

Space Frame Structures - Semantic Scholar
13.1 Introduction to Space Frame Structures. General Introduction • Definition of the Space Frame • Basic. Concepts• Advantages of Space Frames• Preliminary Planning. Guidelines. 13.2 Double Layer Grids. Types and Geometry • Type Choosing â

ten frame puzzle.pdf
Page 1 of 3. 1 one. 3 three 4 four. 2 two. Page 1 of 3. Page 2 of 3. 5 five. 7 seven 8 eight. 6 six. Page 2 of 3. Page 3 of 3. 9 nine 10 ten. Page 3 of 3. ten frame puzzle.pdf. ten frame puzzle.pdf. Open. Extract. Open with. Sign In. Main menu. Displ

1960s Frame It.pdf
Whoops! There was a problem loading more pages. Retrying... 1960s Frame It.pdf. 1960s Frame It.pdf. Open. Extract. Open with. Sign In. Main menu. Displaying ...

Multi-plane compound folding frame
Feb 2, 2007 - The combination of beam hinges 16 and center hinge 17 alloW for each support beam to fold horiZontally. inWard. Although this embodiment ...

Tree Removal Procedure.pdf
Article credit: http://wdfw.wa.gov/living/snags/. Requesting to Remove Trees: All trees within 100' of a wetland or 200' of a River/perennial stream require.

School District Boundary Task Force
A request was made for the department to gather information about how other ... Disclaimer: Staffing of the task force by the Department of Education and ...