Even with the proliferation of electronic forms, many companies still use paper forms. Companies recognize that users often do not have easy access to a computer and so give users a paper form to fill out. Once the form is filled out, companies often want to store the user-entered data electronically. To store this user-entered data, another person can read the paper form and type the data into a computer. But this is time consuming and tedious.
Some computer programs, such as optical character recognition (OCR) programs, are designed to recognize user-entered data on a form. A computer program can be written specifically for a particular paper form but this requires software programming, which can be expensive and time consuming. Other programs may be more generic, and so are not custom made for each paper form, but these programs often fail to accurately recognize user-entered data.
Systems and/or methods (“tools”) are described that enable a recognition system to recognize user-entered data conforming to a data rule. The tools may do so by providing data regions for a document. With these data regions, the recognition system may better determine what information on the document is user-entered and what is not. Each of these data regions has a data rule governing data for that region. With the data rule, the recognition system may better recognize data from each region. The tools may ascertain these data regions and rules from an electronic form having controls laid out similarly to data-entry areas of the document.
This Summary is provided to introduce a selection of concepts in a simplified form that are further described below in the Detailed Description. This Summary is not intended to identify key or essential features of the claimed subject matter, nor is it intended to be used as an aid in determining the scope of the claimed subject matter.
The same numbers are used throughout the disclosure and figures to reference like components and features.
Overview
Systems and/or methods (“tools”) are described that enable a recognition system to recognize user-entered data conforming to a data rule. The tools provide data regions with corresponding data rules to a recognition system. These regions and rules may be based on controls of an electronic form having a two-dimensional layout similar to the layout of data-entry areas of a document having user-entered data.
In some cases a user builds the electronic form based on the document, after which the tools ascertain two-dimensional regions of the electronic form that are of interest, as well as data rules for data in these regions. The tools can send these regions and rules to a recognition system, which enables the system to differentiate between user-entered and default data, as well as better recognize the user-entered data in these regions.
Exemplary Operating Environment
Before describing the tools in detail, the following discussion of an exemplary operating environment is provided to assist the reader in understanding where and how the tools may be employed. The description provided below constitutes but one example and is not intended to limit application of the tools to any one particular operating environment.
Operating environment 100 also comprises an electronic form 114. This electronic form has controls (e.g., data-entry fields) oriented in two-dimensions similarly to document 112's layout of areas in which user-entered data may reside. The electronic form may be created based on document 112 or a similar document. Or, it may be the source of the document, such as when the electronic form is printed and a user types or writes data onto the printed version of the electronic form resulting in a printed document having user-entered data.
Two-dimensional regions 116 and corresponding data rules 118 are also shown. In one embodiment described below, these regions and rules are ascertained from the electronic form by the data region and rule module.
An exemplary printed document 112 is illustrated in
An exemplary electronic form 114 is illustrated in
Enumerating Data Regions and Data Rules
The following discussion describes exemplary ways in which the tools enumerate data regions and data rules.
Block 402 builds an electronic form having a layout of controls oriented in two dimensions similarly to a layout of user-entry areas of a document, such as a printed document intended to be analyzed by a recognition system. This electronic form may be built automatically or with a person's interaction. In some cases, for instance, a blank version of the document to be analyzed is used to build an electronic form automatically. An application can recognize data-entry fields in the document and assign a position to these fields, infer or assign data rules (e.g., schema) governing these fields, and build the electronic form based on these data-entry fields and their inferred rules.
In some other cases a person builds the electronic form. In the illustrated embodiment a user studies document 112 in
The electronic form, whether the source of the document or built based on the document, has controls with two-dimensional regions having a layout similar to that of user-entry areas of the document. These controls also have associated rules, such as those mentioned above, and may have others, such as those requiring certain patterns (like social security numbers, postal codes, phone numbers, etc.) or user-specified restrictions.
Block 404 receives an electronic form having a similar layout to that of a document. The electronic form shown in
Block 406 ascertains, based on a two-dimensional layout of an electronic form, two-dimensional regions 116 of the electronic form permitting entry of data. The electronic form has a layout similar to that of the document, thereby permitting the two-dimensional regions to map to user-entry areas of the document. Block 406 can determine these two-dimensional regions based on view information of the electronic form.
Here electronic form 114 has view information written in HyperText Markup Language (HTML). The electronic form's schema (written in eXtensible Markup Language (XML)) is transformed based on the electronic form's transform (written in XML Stylesheet Language (XSL)). Transforming the schema with the XSL results in the HTML view information. This view information has view-oriented (e.g., two-dimensional layout) information that data region and rule module 108 analyzes. Module 108 can parse the HTML to find two-dimensional regions 116 shown in
The module can determine the exact coordinates bounding the portion of the control permitting or intended for a user's data entry, such as the controls shown in
Block 406 may also build a set of two-dimensional regions for an electronic rendering. For an electronic 2-D view, the two-dimensional regions may be arranged in the view differently than a printed version—such as is shown in the difference between the layout of
Block 408 ascertains data rules corresponding to two-dimensional regions of the electronic form. These data rules (e.g., data rules 118 of
Here module 108 ascertains data rules 118 based on the electronic form's schema. Each of the controls of the electronic form has corresponding two-dimensional regions 116. Each of the controls is also governed by a portion of the schema of the electronic form. Based on the portion of the schema governing a particular control, module 108 can ascertain the data rule(s) for that control, and thus correspond a data rule to the two-dimensional region for that control.
Enabling Recognition of and Recognizing Data
The following discussion describes exemplary ways in which the tools enable a recognition system to recognize data conforming to a data rule. In the process described below, the tools enable this recognition with data regions and data rules. This process also describes ways in which the recognition system may recognize data based on these regions and rules.
Block 502 requests two-dimensional regions and corresponding data rules. Here recognition system 110 requests these regions and rules from module 108 using a publicly-accessible Application Program Interface (API). The requested regions and rules are for a particular type of document, thereby indicating what regions and rules are appropriate. The recognition system may have determined the two-dimensional format of the document, such as whether it is an electronic rendering or printed on a page (e.g., on 8½×11 paper). In this case the recognition system may request a particular set of two-dimensional regions appropriate to the two-dimensional format.
Block 504 provides two-dimensional regions and corresponding data rules to a recognition system. These regions and rules may be provided in a programmatically accessible enumeration of controls of an electronic form, such as those of electronic form 114.
Here module 108 either sends multiple sets of data regions, such as those appropriate to multiple two-dimensional formats for a document, or a particular set of data regions if the format is known. Each data rule or rules for a region may enable the recognition system to recognize user-entered data on the document that conforms to the data rule. The data region may also enable the recognition system to differentiate between various pieces of information extracted, or what to extract, from the document.
For example, the data region may indicate what information on the document is important (e.g., user-entered data) and what is not. Referring back to
The data rule enables the recognition system to extract user-entered data conforming to the data rule. This can help the recognition system to correctly recognize user-entered data. For example, assume that the recognition system determines that the typed data at 202 (“Jill Steinberg”) is user-entered data based on its two-dimension location on the page. Assume also that the recognition system does not know whether or not this user-entered data should be “Jill Steinberg” or “1111 St Einberg”. If the data rule indicates that the data should be a street address, the recognition system may recognize the data as “1111 St. Einberg”. Instead, the data rule indicates that the data must be a string of non-numerical characters. Because of the rule, the recognition system may recognize the data correctly as “Jill Steinberg”.
Block 506 extracts information from a document at two-dimensional regions on the document. Block 506 can extract information at the received two-dimensional regions or extract information and then differentiate between information at the two-dimensional region and other information. Here the recognition system extracts all of the text of document 112 shown in
Block 508 recognizes user-entered data conforming to a data rule. The recognition system recognizes data conforming to a rule corresponding to its two-dimensional region. In the illustrated embodiment, the recognition system correctly recognizes the following user-entered data for document 112 of
Block 510 receives user-entered data conforming to a data rule. Here module 108 receives the above-listed user-entered data. The module may also receive an indication of the control (e.g., the two-dimensional location or a data rule identifier) to which the recognized data belongs. Thus, the module can receive “Jill Steinberg” and an indication that it is associated with control 302 of
Block 512 retains user-entered data. The module can retain the user-entered data in a database or in a more structured format. In some cases the module retains the data in the corresponding node of a data instance for electronic form 114. In this illustrated embodiment, the module may build a data instance for the electronic form having the following data correctly conforming to its required data rule:
Conclusion
The above-described systems and methods enable recognition systems to recognize user-entered data on a document conforming to a data rule. This permits the recognition system to extract and recognize data from many different types of documents. Although the system and method has been described in language specific to structural features and/or methodological acts, it is to be understood that the system and method defined in the appended claims is not necessarily limited to the specific features or acts described. Rather, the specific features and acts are disclosed as exemplary forms of implementing the claimed system and method.