Text recognition model training method, text recognition method, device and equipment
A text recognition and model training technology, applied in the field of image recognition, can solve the problems of weak model feature extraction, long-term and short-term dependence, and insufficient effective coding, so as to solve the problems of effective coding and long-term and short-term dependence, and improve the generalization ability of recognition and robustness, the effect of improving feature extraction capabilities
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0082] The embodiment of the present invention provides a kind of text recognition model training method, and its executor can be server, and server can adopt independent server or server cluster, such as figure 1 As shown, the method may include:
[0083] Step 101, acquire an image sample set, wherein the image samples in the image sample set include text images and text labels associated with the text images.
[0084] In this embodiment, when preparing an image sample, the ratio of the area of the text area in the text image to the area of the entire text image needs to exceed a preset ratio, for example, the preset ratio is set to 80%, and at the same time prepare a text image with the same name and a different suffix The annotation file stores the content of the field to be recognized in the text image, that is, the text label associated with the text image.
[0085] Step 102, performing sample expansion on the image sample set, and dividing the sample-expanded image ...
Embodiment 2
[0154] Based on the text recognition model trained in the first embodiment above, the embodiment of the present invention also provides a text recognition method, such as Figure 7 As shown, the method may include:
[0155] Step 701, preprocessing the input text image to be recognized.
[0156] Step 702, input the preprocessed text image to be recognized into the pre-trained text recognition model for text recognition, and output the text recognition result of the text image to be recognized;
[0157] Wherein, the pre-trained text recognition model is trained based on the method in the first embodiment.
[0158] Specifically, the text images in the test set are preprocessed, and the preprocessing here does not need to enhance the text images, but only sets the image size to 64*256, and normalizes the images, and converts the pixel values Scale to (-1, 1). Input the preprocessed text image into the text recognition model after iterative training, including initializing the n...
Embodiment 3
[0166] Based on the first embodiment above, the embodiment of the present invention provides a text recognition model training device, such as Figure 8 As shown, the device includes:
[0167] The sample acquisition module 81 is used to acquire an image sample set, and the image samples in the image sample set include text images and text labels associated with the text images;
[0168] A sample expansion module 82, configured to perform sample expansion on the image sample set;
[0169] The sample division module 83 is used to divide the image sample set after the sample expansion into a training set, a verification set and a test set;
[0170] The iterative training module 84 is used to iteratively train the text recognition model according to the training set and the verification set, wherein the text recognition model replaces the original VGG network in the CRNN network model with the SE-ResNet network, and is combined with the BiLSTM network layer and The attention mec...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com