Unlock instant, AI-driven research and patent intelligence for your innovation.

A method and equipment for improving a user-defined template recognition rate based on OCR template normalization

A normalization and self-defined technology, applied in character and pattern recognition, character recognition, instruments, etc., can solve the problems of bill content position offset, crop not recognized area, incomplete frame, etc., to achieve image normalization , Improve the image quality, the effect of accurate pixel value after transformation

Pending Publication Date: 2019-04-02
厦门商集网络科技有限责任公司
View PDF5 Cites 1 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

For example, the angle, height, and camera parameters are different when taking a mobile photo, which will cause the position of the photo to be shifted.
If the position is offset, if the fixed template is used, there will be problems such as inaccurate frame and incomplete frame, and then the correct recognition area will not be cropped.

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • A method and equipment for improving a user-defined template recognition rate based on OCR template normalization
  • A method and equipment for improving a user-defined template recognition rate based on OCR template normalization
  • A method and equipment for improving a user-defined template recognition rate based on OCR template normalization

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0046] see figure 2 , a method for improving the recognition rate of a custom template based on OCR template normalization, comprising the following steps:

[0047] To obtain the image to be recognized and create a template image, please refer to Figure 4 , the picture to be recognized is a bill image that needs to be automatically recognized, and the picture to be recognized can be obtained by scanning or shooting; please refer to image 3 , the template image is the bill image generated by the bill template;

[0048] Extract all fixed regions in the template map to regenerate a template feature map, such as Figure 5 shown;

[0049] Carry out image recognition on the image to be recognized and the template feature map, and record the recognized character information, including characters and character coordinates; the existing commonly used image recognition method is to use OCR recognition to obtain character information;

[0050] Traverse all the characters in the im...

Embodiment 2

[0083] A device for improving the recognition rate of a custom template based on OCR template normalization, including a memory and a processor, the memory stores instructions, and the instructions are suitable for being loaded by the processor and performing the following steps, please refer to figure 2 :

[0084] To obtain the image to be recognized and create a template image, please refer to Figure 4 , the picture to be recognized is a bill image that needs to be automatically recognized, and the picture to be recognized can be obtained by scanning or shooting; please refer to image 3 , the template image is the bill image generated by the bill template;

[0085] Extract all fixed regions in the template map to regenerate a template feature map, such as Figure 5 shown;

[0086] Carry out image recognition on the image to be recognized and the template feature map, and record the recognized character information, including characters and character coordinates; the ex...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention relates to a method for improving the recognition rate of a custom template based on OCR template normalization, and the method comprises the following steps: obtaining a to-be-recognized graph and creating a template graph, and generating a template feature graph; respectively carrying out image recognition on the to-be-recognized image and the template feature image, traversing characters in all the to-be-recognized images, and recording a character group; selecting at least four character groups, and calculating a perspective transformation matrix by utilizing a perspective transformation formula; and calculating a pixel value of each transformed pixel point in the to-be-identified image by using the perspective transformation matrix so as to obtain a perspective transformation image and realize image normalization. According to the method, the corresponding feature points on the to-be-identified image and the template image are extracted, the perspective transformation matrix is calculated, the transformed pixel values of all the pixel points in the to-be-identified image are calculated through the perspective transformation matrix, and therefore the perspective transformation image is obtained, the format difference problem existing in the to-be-identified image is solved, and image normalization is achieved.

Description

technical field [0001] The invention relates to a method and equipment for improving the recognition rate of a self-defined template based on OCR template normalization, and belongs to the field of bill automatic recognition. Background technique [0002] For notes typesetting in a fixed format, the printed paper notes will also have a fixed format, please refer to figure 1 , such as special value-added tax invoices, all have fixed areas such as "buyer", "password area", "seller", and "remarks". Therefore, bills also have overprinting areas that need to be identified, and these overprinting areas also have relatively fixed positions. [0003] Using template automatic recognition is to design a set of reusable templates based on a bill with a fixed format. This template includes the position and width and height of each area that needs to be recognized in a specific mark. According to the position in the template, the electronic version of the bill obtained after scanning o...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
IPC IPC(8): G06K9/00G06K9/32
CPCG06V30/414G06V10/25G06V30/10
Inventor 吴建杭庄国金杜保发周文贵陈文传
Owner 厦门商集网络科技有限责任公司