End-to-end text recognition method
By introducing key point detection and graph reasoning modules into the end-to-end text recognition model, combined with feature extraction and text detection, the problem of recognition performance degradation caused by font diversity is solved, and high-accuracy recognition of artistic text is achieved.
Patent Information
- Application Number
- PCT/CN2023/137182
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-04-21
- Filing Date
- 2023-12-07
- Publication Date
- 2024-10-24
AI Technical Summary
Existing end-to-end text recognition methods ignore the problem of font diversity when processing word art text images, resulting in reduced recognition performance and lack of solutions based on geometric priors.
Adopt an end-to-end text recognition model, combine the feature extraction network, text detection branch and single word recognition branch, introduce key point detection and graph reasoning modules, and improve the accuracy and robustness of text recognition through key point detection and graph structure fusion features. .
It improves the accuracy and robustness of text recognition and can effectively identify text content in a variety of scenarios. It performs particularly well in scenarios with diverse fonts, significantly improving recognition performance.
Smart Images

Figure CN2023137182_24102024_PF_FP_ABST
Abstract
Description
An end-to-end text recognition method Technical Field
[0001] The present invention relates to the technical field of text recognition, and more particularly, to an end-to-end text recognition method. Background Art
[0002] End-to-end text recognition, which aims to detect and recognize text in an end-to-end manner, is an emerging topic in the field of computer vision and can be widely used in fields such as machine translation, image retrieval, and autonomous driving.
[0003] End-to-end text spotting typically consists of text detection and recognition modules. Earlier work treated text detection and recognition as two separate and distinct tasks. In recent years, a growing body of work has integrated text detection and recognition into the same end-to-end trainable network, allowing the two components to complement each other and improve model performance. This is known as end-to-end text spotting.
[0004] Currently, end-to-end text recognition primarily focuses on scene text. Brightness variations and directional diversity in scene text have been extensively studied. However, because most characters in natural images are presented in standard print, recent work has overlooked the impact of shape differences between different fonts on recognition. This issue, also known as font diversity, becomes more prominent in the recognition of artistic text images.
[0005] In the prior art, there are a variety of end-to-end text recognition methods. For example, RoI Polling is first used to associate detection and recognition features through end-to-end training, but this method can only process horizontal text. As another example, RoIRotate is proposed to process tilted text and effectively connects detection and recognition by sharing convolutional features. As another example, a curved text detection model based on Mask R-CNN and attention mechanism is proposed, which extracts features through RoI masking operations. However, in these methods, the importance of geometric priors in text localization is ignored, resulting in reduced text recognition performance. Geometric priors can help deep learning models improve performance, such as shape completion, position embedding, and key point detection. Key point detection can be used as structural information to assist network learning, but in the prior art, there is no text recognition solution based on geometric priors. Technical issues
[0006] In summary, text diversity is a key challenge in text recognition tasks. Existing work has proposed a variety of methods to deal with the diversity of lighting and orientation in scene text. However, due to the inherent diversity of characters, that is, font diversity, the shape differences of the same characters in different fonts can lead to a significant decrease in the performance of reading text. Therefore, current text recognition methods still need to be improved. Technical Solutions
[0007] The purpose of the present invention is to overcome the above-mentioned shortcomings of the prior art and provide an end-to-end text recognition method. The method comprises the following steps:
[0008] Get the text image to be recognized;
[0009] Inputting the text image into a trained text recognition model to obtain a text recognition result;
[0010] The text recognition model includes a feature extraction network, a text detection branch and a single-word recognition branch. The feature extraction network is used to extract text candidate features and single-word candidate features. The text detection branch predicts a text bounding box based on the text candidate features. The single-word recognition branch predicts the bounding box and single-word content of a single word by performing key point detection on the single-word candidate features. The text recognition result is obtained by combining the single words that fall within the text bounding box. Beneficial effects
[0011] Compared with existing technologies, the present invention has the advantage of using an end-to-end text recognition model to predict text bounding boxes, as well as the bounding boxes and content of individual words. The text recognition results are then combined with the words that fall within the text bounding boxes, improving text recognition accuracy. Furthermore, key point detection is introduced for predicting the bounding boxes and content of individual words, further enhancing the robustness of text recognition. This allows for accurate recognition of text content in a variety of scenarios, particularly those with diverse fonts.
[0012] Further features and advantages of the present invention will become apparent from the following detailed description of exemplary embodiments of the present invention with reference to the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0013] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments of the invention and, together with the description, serve to explain the principles of the invention.
[0014] FIG1 is a flow chart of an end-to-end text recognition method according to an embodiment of the present invention;
[0015] FIG2 is a process diagram of an end-to-end text recognition method according to an embodiment of the present invention;
[0016] FIG3 is a schematic diagram of a key point detection module according to an embodiment of the present invention;
[0017] FIG4 is a schematic diagram of a process of a single-word recognition branch according to an embodiment of the present invention;
[0018] FIG5 is a schematic diagram of an application process of a text recognition method according to an embodiment of the present invention;
[0019] FIG6 is a schematic diagram of text recognition effects according to an embodiment of the present invention. Modes for Carrying Out the Invention
[0020] Various exemplary embodiments of the present invention will now be described in detail with reference to the accompanying drawings. It should be noted that unless otherwise specifically stated, the relative arrangement of components and steps, numerical expressions and numerical values set forth in these embodiments do not limit the scope of the present invention.
[0021] The following description of at least one exemplary embodiment is merely illustrative in nature and is in no way intended to limit the invention, its application, or uses.
[0022] Technologies, methods, and equipment known to ordinary technicians in the relevant art may not be discussed in detail, but where appropriate, the technologies, methods, and equipment should be considered part of the specification.
[0023] In all examples shown and discussed herein, any specific values should be interpreted as merely exemplary and not limiting. Therefore, other examples of the exemplary embodiments may have different values.
[0024] It should be noted that like reference numerals and letters refer to like items in the following figures, and therefore, once an item is defined in one figure, it need not be further discussed in subsequent figures.
[0025] As shown in FIG1 , the provided end-to-end text recognition method includes the following steps.
[0026] Step S110: Build an end-to-end text recognition model.
[0027] Specifically, as shown in Figure 2, the text recognition model as a whole includes a feature extraction network, a text detection branch, and a single-word recognition branch. The feature extraction network is used to extract text candidate features and single-word candidate features. The text detection branch predicts the text bounding box based on the text candidate features. The single-word recognition branch predicts the bounding box and single-word content of a single word based on the single-word candidate features. The final text recognition result is a fusion of the results output by the text detection branch and the results output by the single-word recognition branch, that is, it is obtained by combining the single words that fall within the text bounding box.
[0028] As shown in Figure 2, the single-word recognition branch includes functional modules such as the keypoint detection module, the graph reasoning module, and the detection and recognition module. The keypoint detection module combines the single-word candidate features with the extracted keypoint position information to obtain position-enhanced features. The graph reasoning module fuses the position-enhanced features with the corresponding single-word features to obtain fused single-word features. The detection and recognition module then extracts the bounding box and content of the single word.
[0029] Figure 3 is an example of a key point detection module, which specifically includes two key point detection networks and a feature geometry transformation module. One of the key point detection networks is used to obtain a key point probability map from single-word features, and the other key point detection network is used to obtain an estimated key point probability map from single-word features after feature geometry transformation. The number of key points detected can be set according to actual needs, and each key point reflects the importance of single-word or character detection. By introducing key point detection into text recognition, the key position of each character (the position with deformation invariance) is located, thereby enhancing the recognition of different fonts of the same character.
[0030] In Figure 3, It is the single word feature obtained after the RoIAlign (region of interest alignment) operation. Represents the features obtained after feature geometric transformation, and The original word features are and geometric transformation features The key point feature map obtained by the key point detection network, Identify key points (landmarks). Used to align two feature maps, Used to ensure that the key points of alignment are separated from each other; align and div indicate that the purpose of this objective function is alignment and separation respectively.
[0031] It should be understood that in practical applications, the two keypoint detection networks can use the same or different structures, or can be considered the same network. For example, the keypoint detection network simply uses three convolutional layers, with the first two convolutional layers followed by batch normalization (BN) and ReLU activation. The keypoint detection network can also use other network structures.
[0032] In one embodiment, the geometric transformation (affine transformation) uses operations such as translation, rotation, and scaling, and limits the amplitude. In practical applications, other transformation forms can also be set. Unsupervised training key points through geometric transformation are used to detect character key points, further improving the recognition ability of individual words.
[0033] Figure 4 shows an example of using the graph reasoning module in the single-word recognition branch to obtain fused single-word features, illustrating the graph-based single-word feature fusion process. Graph reasoning is an efficient graph-based relational reasoning method. It obtains fused single-word features through feature mapping (including dimension mapping and node mapping), global reasoning, and feature demapping. Specifically, it maps features into a new space, performs global reasoning, and then demaps them back to the original space.
[0034] In one embodiment, node mapping and node demapping can be achieved through 2D 1×1 convolutions, and global reasoning is achieved through 1D 1×1 convolutions. Specifically, single-word features and keypoint features are concatenated and projected into a new space. Global reasoning is performed in this new space using 1×1 1D convolutions, and then projected back into the original space. Currently, no work in the field of text detection and recognition has utilized graph structures for feature fusion.
[0035] In Figure 4, It is the single word feature obtained after the RoIAlign operation. Represents the position enhancement feature obtained after key point position extraction. and is a 1×1 convolution, is the feature obtained after splicing, is the incidence matrix of the graph neural network, are learnable weights. It is the feature obtained after graph convolution. It is from The character features extracted from It is the fused single-word feature obtained after dimension inverse mapping.
[0036] It should be understood that the method of fusing key point features and single-word features is not limited to graph networks. Methods such as direct addition (summation) and feature concatenation (concatenation) can also be used. However, it has been fully verified that text recognition performance based on graph networks is the best.
[0037] For the sake of clarity, the specific process of the end-to-end recognition method is still described below with reference to FIG2 , including the following steps:
[0038] In step S1, the input image (a) is subjected to feature extraction by the backbone feature extraction network, and then the feature regions that may contain text and single words are selected by the RPN (region proposal network), obtaining text candidate features (b) and single word candidate features (c) and (d) respectively.
[0039] It should be noted that the difference between single-word candidate features (c) and (d) is their sizes. In order to facilitate the extraction of key points, the size of single-word candidate feature (d) can be enlarged. Text candidate feature (b), as well as single-word candidate features (c) and (d) can only be the coordinates of the region. The features of the region are extracted from the features obtained through backbone through ROIAlign.
[0040] In step S2, in the text detection branch, the text region features obtained by ROIAlign are passed through the detection network to obtain a text score (representing the probability that the box contains text) and a bounding box. The bounding box is passed through the mask module to find its minimum inscribed rectangle to obtain a more accurate bounding box.
[0041] In step S3, the single-word feature (h) is passed through the key point detection network to obtain a key point probability map (containing K channels, each channel determines a key point, and the maximum value position in the channel is the key point position). Then, K key point positions are extracted, and the features of these K positions are extracted from the single-word feature (h) to obtain the position enhancement feature (m).
[0042] The position enhancement feature (m) and the single word feature (g) are sent to the graph reasoning module for feature fusion to obtain the fused single word feature (k), which is then sent to the detection and recognition module to obtain the bounding box and single word content of the single word.
[0043] In step S4, the IOU (Intersection Over Union) is calculated based on the bounding box of the word and the bounding box of the text to determine whether the word falls within the area of the text box. The words that fall within the area are then combined in order to obtain the final text.
[0044] In Figure 2, and It is the single word feature obtained after the RoIAlign operation. The key point feature map obtained by the key point detection network, Identify key points (landmarks). represents the number of key points, Represents the position enhancement feature obtained after key point position extraction.
[0045] It should be noted that the above steps can be implemented sequentially or in parallel, and the present invention is not limited to this. For example, steps S2 and S3 can be executed in parallel.
[0046] In summary, treating key points as geometric information about characters can improve the model's generalization capabilities. It also leverages the reasoning capabilities of graph convolution to fuse character features with corresponding key point features, further improving the accuracy and efficiency of single-word recognition. This is because key point detection uses key points to locate the important locations of individual characters (positions that tend to remain unchanged despite font deformation), which serves as auxiliary information for subsequent text recognition tasks. Furthermore, since the extracted key point features are sparse, projecting key point features and single-word features into a new graph space facilitates information fusion through global reasoning, a process known as graph reasoning.
[0047] Step S120: construct a data set for the font diversity problem and train a text recognition model.
[0048] Because the fonts in most current scene text images are still close to standard fonts, the importance of font diversity has received limited attention. To illustrate this issue, an experiment was conducted to examine the generalization ability of text recognition in complex font scenarios. Specifically, 100 Chinese fonts, ranging from simple, medium, and hard, were selected and randomly divided into two groups (labeled as A set and B set), each containing 50 fonts (the ratio of simple, medium, and hard fonts in both groups remained unchanged at 8:11:6). In the experiment, 50,000 text images were generated using the fonts in Group A. These were then split into 40,000 training images and 10,000 test images. Based on the test images in Group A, fonts from Group B were randomly selected to generate test images with the same content as the test images in Group A. AE TextSpotter (Wang, W., Liu, X., Ji, X., Xie, E., Liang, D., Yang, Z., Lu, T., Shen, C., Luo, P.: AE textspotter: learning visual and linguistic representation for ambiguous text spotting. In: European Conference on Computer Vision. pp. 457–473. Springer (2020)) was then trained on the training images, and recognition performance was tested on test images from Groups A and B. As shown in Table 1, recognition performance dropped by approximately 6% on the Group B test set, where the model had never seen fonts before. Table 1 also summarizes the number of image pairs correctly recognized by Group A but incorrectly recognized by Group B. Analysis of the font difficulty distribution of incorrectly recognized images revealed that higher font difficulty increases the likelihood of misrecognition. Therefore, font diversity is a major challenge facing current text recognition models.
[0049] Table 1 Font recognition effect
[0050]
[0051] In Table 1, ED represents the edit distance; the closer it is to 1, the better the recognition performance. N1 represents the number of images that were completely correctly recognized, N2 represents the number of image pairs that were correctly recognized by Group A but incorrectly recognized by Group B, and Font Difficulty Distribution represents the distribution of font difficulty in image pairs that were correctly recognized by Group A but incorrectly recognized by Group B.
[0052] To address the problem of font diversity, in one embodiment of the present invention, a Chinese artistic character dataset (called ARText) was constructed, focusing on font diversity and deformation in text recognition. It contains 33,000 artistic character images with rich shape deformation and font diversity, with text annotations and single-character annotations.
[0053] The text recognition model constructed in step S110 is trained based on this dataset to obtain optimized model parameters. The provided text recognition model or method is deformation-robust, or referred to as a deformation-robust end-to-end text recognition method (DR TextSpotter), which addresses the problem of recognizing complex deformations of characters in different fonts. Specifically, an unsupervised keypoint detection network is used to leverage geometric priors to highlight important character features. Furthermore, a graph convolutional network is constructed to fuse character features and keypoint features, and semantic reasoning is then performed to enhance the discrimination of different characters.
[0054] In summary, this is the first dataset of Chinese artistic characters to be constructed, focusing on the diversity and deformation of fonts used in text recognition. Based on the fact that the basic geometric relationships of the same character remain unchanged across different fonts, a geometric prior is introduced to highlight these key locations, enabling unsupervised keypoint detection. Furthermore, due to the sparsity of keypoint features, keypoint features and single-character features are embedded in a graph space, and the graph structure is then used for semantic reasoning. With the geometric prior, the graph network can enhance the model's discernibility of inter-character features and the stability of intra-character features, thereby improving the recognition of characters from different fonts.
[0055] It should be noted that those skilled in the art may make appropriate changes or modifications to the above embodiments without departing from the spirit and scope of the present invention. For example, although the keypoint detection network is trained in an unsupervised manner, this training method is not exclusive. Other unsupervised keypoint localization schemes, or even semi-supervised or supervised methods, are also possible. The provided model extracts a keypoint from each channel of the obtained features, and other keypoint representations are also possible.
[0056] Step S130: using the trained text recognition model to recognize the target text image.
[0057] As shown in Figure 5, in actual model applications, text images are collected or uploaded target text images are received; simple preprocessing such as normalization and flipping are performed on the images; the model body extracts features from the images; the text detection branch predicts text boxes, and the single-word recognition branch detects and recognizes single words, and then the final text recognition result is formed by combining the single words that fall within the text boundary box.
[0058] The above model training process can be performed offline on a server or in the cloud. Embedding the trained model into an electronic device can achieve real-time text recognition. The electronic device can be a terminal device or a server. Terminal devices include any terminal devices such as mobile phones, tablets, personal digital assistants (PDAs), point-of-sale (POS) terminals, in-vehicle computers, smart wearable devices (smart watches, virtual reality glasses, virtual reality headsets, etc.). Servers include, but are not limited to, application servers or web servers, and can be independent servers, cluster servers, or cloud servers, etc.
[0059] To further verify the effectiveness of the present invention, experiments were conducted. The experimental results show that there is an improvement of nearly one point compared to the baseline on the dataset provided by the present invention.
[0060] Table 2 Experimental Results
[0061] Method VENNE Performance Improvement CharNet ICCV2019 3% MaskTextSpotter v3 ECCV2019 1% ABCNet v2 TPAMI2021 1% AE TextSpotter (special dataset) ECCV2020 4%
[0062] Figure 6 shows the recognition effect on the proposed ARText dataset. The left figure is the recognition result under the baseline. It can be seen that "村" and "情" are misrecognized as "顺" and "传". The right figure is the recognition result of the present invention, with correct correction.
[0063] In summary, compared with the prior art, the present invention has the following advantages:
[0064] 1) Introducing key point detection into end-to-end text recognition, by fusing key point features and single character features, the accuracy and robustness of text recognition are improved. Since key point features and single character features belong to different feature spaces, by trying various fusion methods, it is finally proved that the global inference method based on graph structure can achieve the best text effect.
[0065] 2) Since there is no work that has introduced key points into text recognition yet, there is no key point annotation in all existing public datasets, and only an unsupervised method can be used to train the key point detection network. After sufficient experiments, the present invention finally uses the deformation robustness of key point features, and the result obtained by unsupervised training of the key point detection network through affine transformation is the best.
[0066] 3) This is the first dataset of Chinese artistic characters to be constructed, focusing on font diversity and deformation in text recognition. Comparative experiments on the provided dataset and the publicly available IC19-ReCTS dataset demonstrate that the text recognition model proposed in this paper, when combined with the provided dataset, achieves the best text recognition performance.
[0067] 4) The dataset and text recognition model provided by this invention can be open-sourced in the future to provide a reference for subsequent research.
[0068] The present invention may be a system, a method and / or a computer program product. The computer program product may include a computer-readable storage medium carrying computer-readable program instructions for causing a processor to implement various aspects of the present invention.
[0069] A computer-readable storage medium can be a tangible device that can hold and store instructions used by an instruction execution device. Computer-readable storage media can be, for example, but not limited to, an electrical storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination thereof. More specific examples (a non-exhaustive list) of computer-readable storage media include: a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a static random access memory (SRAM), a portable compact disc read-only memory (CD-ROM), a digital versatile disk (DVD), a memory stick, a floppy disk, a mechanical encoding device, such as a punch card or a raised structure within a groove on which instructions are stored, and any suitable combination thereof. As used herein, a computer-readable storage medium is not to be construed as a transient signal per se, such as a radio wave or other freely propagating electromagnetic wave, an electromagnetic wave propagating through a waveguide or other transmission medium (e.g., a light pulse passing through a fiber optic cable), or an electrical signal transmitted through an electrical wire.
[0070] The computer-readable program instructions described herein can be downloaded from a computer-readable storage medium to each computing / processing device, or downloaded to an external computer or external storage device via a network, such as the Internet, a local area network, a wide area network, and / or a wireless network. The network can include copper transmission cables, fiber optic transmission, wireless transmission, routers, firewalls, switches, gateway computers, and / or edge servers. The network adapter card or network interface in each computing / processing device receives the computer-readable program instructions from the network and forwards the computer-readable program instructions to be stored in the computer-readable storage medium in each computing / processing device.
[0071] The computer program instructions for performing the operations of the present invention may be assembly instructions, instruction set architecture (ISA) instructions, machine instructions, machine-dependent instructions, microcode, firmware instructions, state setting data, or source code or object code written in any combination of one or more programming languages, including object-oriented programming languages such as Smalltalk, C++, Python, and conventional procedural programming languages such as "C" or similar programming languages. The computer-readable program instructions may be executed entirely on the user's computer, partially on the user's computer, as a stand-alone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer via any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider). In some embodiments, the state information of the computer-readable program instructions is used to personalize an electronic circuit, such as a programmable logic circuit, a field programmable gate array (FPGA), or a programmable logic array (PLA), so that the electronic circuit can execute the computer-readable program instructions, thereby implementing various aspects of the present invention.
[0072] Various aspects of the present invention are described herein with reference to flowcharts and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the present invention. It should be understood that each block of the flowcharts and / or block diagrams, and combinations of blocks in the flowcharts and / or block diagrams, can be implemented by computer-readable program instructions.
[0073] These computer-readable program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, thereby producing a machine, so that when these instructions are executed by the processor of the computer or other programmable data processing device, a device is generated that implements the functions / actions specified in one or more blocks in the flowchart and / or block diagram. These computer-readable program instructions can also be stored in a computer-readable storage medium, where these instructions cause the computer, programmable data processing device, and / or other device to operate in a specific manner. Thus, the computer-readable medium storing the instructions comprises an article of manufacture that includes instructions for implementing various aspects of the functions / actions specified in one or more blocks in the flowchart and / or block diagram.
[0074] Computer-readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other device so that a series of operational steps are performed on the computer, other programmable data processing apparatus, or other device to produce a computer-implemented process, thereby causing the instructions executed on the computer, other programmable data processing apparatus, or other device to implement the functions / actions specified in one or more blocks in the flowchart and / or block diagram.
[0075] The flowcharts and block diagrams in the accompanying drawings show the possible implementation architecture, functions and operations of the systems, methods and computer program products according to multiple embodiments of the present invention. In this regard, each box in the flowchart or block diagram can represent a module, program segment or part of an instruction, and the module, program segment or part of the instruction contains one or more executable instructions for implementing the specified logical function. In some alternative implementations, the functions marked in the box can also occur in an order different from that marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flowchart, and the combination of boxes in the block diagram and / or flowchart, can be implemented by a dedicated hardware-based system that performs the specified function or action, or can be implemented by a combination of dedicated hardware and computer instructions. It is well known to those skilled in the art that implementation by hardware, implementation by software, and implementation by a combination of software and hardware are all equivalent.
[0076] While various embodiments of the present invention have been described above, the foregoing description is intended to be illustrative, non-exhaustive, and not limited to the disclosed embodiments. Many modifications and variations will be apparent to those skilled in the art without departing from the scope and spirit of the described embodiments. The terminology used herein is selected to best explain the principles of the embodiments, their practical applications, or technological improvements in the marketplace, or to enable others skilled in the art to understand the embodiments disclosed herein. The scope of the present invention is defined by the appended claims.
Claims
1. An end-to-end text recognition method, comprising the following steps: Get the text image to be recognized; Inputting the text image into a trained text recognition model to obtain a text recognition result; The text recognition model includes a feature extraction network, a text detection branch and a single-word recognition branch. The feature extraction network is used to extract text candidate features and single-word candidate features. The text detection branch predicts a text bounding box based on the text candidate features. The single-word recognition branch predicts a bounding box and a single-word content of a single word by performing key point detection on the single-word candidate features. The text recognition result is obtained by combining the single words that fall within the text bounding box.
2. The method according to claim 1, characterized in that The feature extraction network includes a backbone feature extraction network and a region candidate network. The backbone feature extraction network performs feature extraction on the input text image, and then selects feature regions containing text and single words through the region candidate network to obtain the text candidate features and the single word candidate features respectively.
3. The method according to claim 1, characterized in that The single-word recognition branch includes a key point detection module, a graph reasoning module, and a detection and recognition module, wherein the key point detection module is used to extract multiple key point positions from the input single-word features to enhance the positions of the single-word features to obtain position enhanced features, the graph reasoning module fuses the position enhanced features and the corresponding single-word features to obtain the fused single-word features, and then uses the detection and recognition module to extract the bounding box and single-word content of the single word.
4. The method according to claim 1, characterized in that: In the text detection branch, the text area features obtained by the region of interest alignment operation are passed through the detection network to obtain the text score and bounding box. The bounding box obtains the minimum inscribed rectangle through the mask module, and then the final text bounding box is predicted.
5. The method according to claim 3, characterized in that: The key point detection module includes a first key point detection network, a feature geometric transformation module and a second key point detection network. The first key point detection network is used to obtain a key point probability map from single-word features, and the second key point detection network is used to obtain an estimated key point probability map from single-word features after geometric transformation.
6. The method according to claim 5, characterized in that The geometric transformation includes translation, rotation or scaling within a set amplitude range.
7. The method according to claim 5, characterized in that The first key point detection network and the second key point detection network have the same structure, including three layers of convolution, and a batch normalization layer and activation processing are arranged after the first two convolution layers.
8. The method according to claim 1, characterized in that The text recognition result is based on the bounding box of the single word and the text bounding box. The intersection over union (IOU) is calculated to determine whether the single word falls within the area of the text box. The single words that fall within the area are then combined in order to obtain the final text recognition result.
9. A computer-readable storage medium having a computer program stored thereon, wherein: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 8 are implemented.
10. A computer device comprising a memory and a processor, wherein a computer program capable of running on the processor is stored in the memory, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 8 are implemented.
Citation Information
Patent Citations
End-to-end identification method for scene text with random shape
CN108549893A
End-to-end character recognition method and device, computer equipment and readable medium
CN110458011A
Text recognition method and device, electronic equipment and storage medium
CN112464798A
Text recognition method and device, text recognition model training method and device and storage medium
CN115909376A
End-to-end text recognition method
CN116580388A
Cited By
Method, system and device for analyzing real-time picture information by using AI platform
CN121074908A
