Cover text recognition method, device, electronic device and storage medium

By performing preset format conversion and zero-padding enhancement processing on text images, combined with the non-maximum suppression algorithm and PSE text detection network, the problem of low accuracy of covered text recognition in the existing technology is solved, and high accuracy of text in the covered area is achieved. Identify.

CN112016560BActive Publication Date: 2024-09-17CHINA PING AN PROPERTY INSURANCE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202010880879.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-08-27
Publication Date
2024-09-17
Estimated Expiration
2040-08-27

AI Technical Summary

Technical Problem

When the existing text recognition system processes text covered by a seal or card, it cannot effectively recognize the covered text, resulting in a recognition accuracy of less than 30% and unable to meet the expected text recognition effect.

Method used

By converting the target text image into a preset format and performing zero-padding enhancement processing, predicting the coverage area and the candidate area of ​​the covering text, using the non-maximum suppression algorithm to extract the candidate area, and combining the first-level and second-level PSE text detection networks for recognition processing, and correction processing is performed to obtain the final recognition result.

Benefits of technology

The accuracy of text recognition in the coverage area is significantly improved, and the detection accuracy is increased to at least 70%, reducing the frequency of manual verification in the later stage.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112016560B
    Figure CN112016560B
Patent Text Reader

Abstract

The invention relates to artificial intelligence and provides a covered text recognition method, comprising: converting a picture of a target text into a preset format picture, and performing zero-filling enhancement processing on the preset format picture to form a data enhancement picture; predicting candidate areas of a covered location and covered text in the data enhancement picture, and extracting the candidate areas through a non-maximum suppression algorithm to obtain a first detection result; extracting an ROI from the picture of the target text by corresponding the first detection result, and sending the ROI to a preset secondary PSE text detection network to obtain a second detection result; performing recognition processing on the target text using the second detection result to obtain an intermediate recognition result, and correcting the intermediate recognition result through a correction means to obtain a final recognition result, thereby increasing the receptive field of the covered text area and overcoming the situation in which text overlaps and text characters are small and difficult to recognize in covered texts similar to stamps.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to artificial intelligence, and more particularly to a method for intelligently identifying covered text, and more particularly to a covered text recognition method, device, electronic device and computer-readable storage medium. Background Art

[0002] Recognition of covered text is extremely common in daily life. For example, in many office scenarios today, seals and card stamps are often used as the basis for verifying the fairness of text. In order to avoid text falsification, covering marks such as seals or card stamps usually cover the normal text in the document. Therefore, when the text of the seal or card stamp is uploaded or detected, the expected text recognition effect is usually not achieved. For example, when a document with a seal is subjected to text recognition or converted into a word document, the text covered by the seal cannot usually be accurately recognized.

[0003] Existing text recognition or data entry systems generally use a convolutional neural network to build an end-to-end detection and recognition network, through which the entire text (including the covered part and the uncovered part) is directly recognized and detected. The seal-covered part and the uncovered part are usually treated consistently. Therefore, for the covered part, its text overlaps with the covered part such as the seal, or the font of the covered part is smaller, and the character spacing is different from the main text. As a result, the text or character detection and recognition results of this type of text are poor, and the accuracy is even less than 30%.

[0004] Therefore, there is an urgent need for a covered text recognition method that can separate the covering surface and the covered surface of the covering area (covered area and covered text) so as to improve the accuracy of text recognition in the covered area. Summary of the invention

[0005] The present invention provides a method and device for recognizing covered text, an electronic device and a computer-readable storage medium, the main purpose of which is to improve the accuracy of recognizing text in a covered area.

[0006] To achieve the above object, the present invention provides a covered text recognition method, comprising:

[0007] Converting the image of the target text into a preset format image, and performing zero-filling enhancement processing on the preset format image to form a data enhanced image;

[0008] Predicting candidate regions of covered areas and covered text in the data augmented image, and extracting the candidate regions by a non-maximum suppression algorithm to obtain a first detection result;

[0009] Corresponding the first detection result to the image of the target text to extract the ROI, and sending the ROI to a preset secondary PSE text detection network to obtain a second detection result;

[0010] The target text is recognized using the second detection result to obtain an intermediate recognition result, and the intermediate recognition result is corrected by a correction method to obtain a final recognition result.

[0011] Optionally, the process of converting the image of the target text into an image in a preset format includes:

[0012] Using a reader to read in the image of the target text;

[0013] Converting the target text image into a preset format image;

[0014] The preset format is the tensor format.

[0015] Optionally, the process of performing zero-padding enhancement processing on the preset format picture includes:

[0016] Filling the remaining part of the preset format picture with zeros to form a square picture with the longest side of the preset format picture as the side length;

[0017] The square image is scaled to a preset size, and then data enhancement is performed on the square image reaching the preset size to form a data enhanced image.

[0018] Optionally, the process of predicting candidate regions of covered locations and covered texts in the data augmented image includes:

[0019] Build a convolutional layer network as a first-level detector;

[0020] Collect detector samples to perform convolutional layer training on the first-level detector to form a detector;

[0021] The detector predicts the data augmented image to obtain candidate regions of coverage and coverage text.

[0022] Optionally, the non-maximum suppression algorithm is:

[0023] Obtaining the confidence of the candidate region, and sorting the confidence of all candidate regions in descending order;

[0024] Selecting the region with the highest confidence in the sorting, judging whether the region with the highest confidence is a correct prediction, and if it is an incorrect prediction, reselecting the region with the highest confidence and judging again until it is a correct prediction; if it is a correct prediction, calculating the IOU between the region with the highest confidence and other candidate regions;

[0025] The candidate regions whose IOU is greater than the set threshold are deleted, and the remaining candidate regions are sorted in descending order of confidence again, and the candidate regions whose IOU is greater than the set threshold are removed again, and so on, until the number of candidate regions whose IOU is greater than the set threshold is zero.

[0026] Optionally, the process of sending the ROI to a preset secondary PSE text detection network to obtain a second detection result includes:

[0027] Preset secondary PSE text detection network;

[0028] Inputting the ROI into the secondary PSE text detection network;

[0029] The ROI is converted into channel feature maps of multiple channels by the secondary PSE text detection network, and the channel feature maps are shrunk according to different proportions to form channel feature maps shrunk by different proportions, and then the channel feature maps shrunk by different proportions are merged to obtain a detection frame by a progressive expansion algorithm;

[0030] The detection frame is subjected to non-maximum suppression processing by a non-maximum suppression algorithm to obtain a second detection result.

[0031] Optionally, the process of presetting the secondary PSE text detection network includes:

[0032] The multi-channel processing layer is used as the basic feature network layer, and the data layer is used as the additional network layer to form a residual network;

[0033] The residual network performs multi-channel processing on the collected sample data to form a channel feature map including multiple channels, and compares the channel feature map shrunk according to different proportions with the data of the data layer to perform residual learning, thereby forming a secondary PSE text detection network.

[0034] In order to solve the above problem, the present invention further provides a covered text recognition device, the device comprising:

[0035] A data enhancement module, used to convert a picture of a target text into a picture in a preset format, and perform zero-filling enhancement processing on the picture in the preset format to form a data enhanced picture;

[0036] A first detection module, used to predict candidate regions of covered areas and covered texts in the data augmented image, and extract the candidate regions by a non-maximum suppression algorithm to obtain a first detection result;

[0037] A second detection module, configured to extract a ROI from the image of the target text corresponding to the first detection result, and send the ROI to a preset secondary PSE text detection network to obtain a second detection result;

[0038] The text recognition module is used to use the second detection result to perform recognition processing on the target text to obtain an intermediate recognition result, and to correct the intermediate recognition result by correction means to obtain a final recognition result.

[0039] In order to solve the above problem, the present invention further provides an electronic device, the electronic device comprising:

[0040] a memory storing at least one instruction; and

[0041] The processor executes the instructions stored in the memory to implement the above-mentioned covered text recognition method.

[0042] In order to solve the above problem, the present invention further provides a computer-readable storage medium, wherein the computer-readable storage medium stores at least one instruction, and the at least one instruction is executed by a processor in an electronic device to implement the above-mentioned covered text recognition method.

[0043] The embodiment of the present invention extracts a first detection result from the candidate area predicted by the data enhancement image, that is, obtains the position information of the covered area, then extracts the ROI by corresponding the first detection result to the image of the target text, and sends the ROI to the preset secondary PSE text detection network to obtain a second detection result, that is, intelligently identifies the covered area and the text to obtain the text information of the covered area, and then uses the second detection result to identify the target text to obtain an intermediate recognition result, and corrects the intermediate recognition result by correction means to obtain the final recognition result, thereby obtaining the text data of the entire complete text. BRIEF DESCRIPTION OF THE DRAWINGS

[0044] Figure 1 A schematic diagram of a flow chart of a covered text recognition method provided by an embodiment of the present invention;

[0045] Figure 2 A schematic diagram of modules of a covered text recognition device provided by an embodiment of the present invention;

[0046] Figure 3 A schematic diagram of the internal structure of an electronic device for implementing a covered text recognition method provided by an embodiment of the present invention;

[0047] The realization of the purpose, functional features and advantages of the present invention will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

[0048] It should be understood that the specific embodiments described herein are only used to explain the present invention, and are not used to limit the present invention.

[0049] The present invention provides a method for recognizing covered text. Figure 1 FIG. 1 is a flow chart of a covered text recognition method provided by an embodiment of the present invention. The method can be executed by a device, and the device can be implemented by software and / or hardware.

[0050] In this embodiment, the coverage text recognition method includes:

[0051] S1: converting the image of the target text into a preset format image, and performing zero-filling enhancement processing on the preset format image to form a data enhanced image;

[0052] Specifically, the process of converting the target text image into a preset format image includes:

[0053] S11: Use a reader to read the image of the target text. The reader is not specifically limited and can be any text or image collector with a reading function. In this embodiment, the reader uses an opencv library.

[0054] S12: Convert the target text image into a preset format image. The specific conversion behavior is not specifically limited. In this embodiment, the target text image is converted into a preset format image through the pytorch library. The preset format is not specifically limited here. The preset format can be any format of an image that can be processed by a preset neural network. In this embodiment, the preset format image uses a tensor format image that conforms to a preset fixed format, and the target text can be directly converted into a tensor format image according to the code provided by the pytorch library. The specific code is:

[0055] def imshow(tensor,title=None):

[0056] image=tensor.cpu().clone()#we clone the tensor to not do changes onit

[0057] image=image.squeeze(0)#remove the fake batch dimension

[0058] image=unloader(image)

[0059] plt.imshow(image)

[0060] if title is not None:

[0061] plt.title(title)

[0062] plt.pause(0.001)#pause a bit so that plots are updated.

[0063] S13: Perform zero-filling enhancement on the preset format picture; wherein,

[0064] The process of performing zero-filling enhancement processing on a preset format image includes:

[0065] The remaining part of the preset format image is filled with zeros to form a square image with the longest side of the preset format image as the side length; the square image is scaled to a preset specification, and then data enhancement is performed on the square image reaching the preset specification to form a data enhanced image.

[0066] S2: predicting candidate regions of covered areas (such as seals and handprints) and covered text (text covered by seals or handprints) in the data augmented image, and extracting the candidate regions by a non-maximum suppression algorithm to obtain a first detection result, including:

[0067] S21: predicting candidate regions of covered areas (such as seals and handprints) and covered text (text covered by seals or handprints) in the data augmented image;

[0068] S22: extracting the candidate region by a non-maximum suppression algorithm to obtain a first detection result;

[0069] Specifically, in S21, the process of predicting candidate regions of coverage and coverage text in the data enhancement image includes:

[0070] S211: Build a convolutional layer network as a first-level detector;

[0071] S212: Collect detector samples and perform convolutional layer training on the first-level detector to form a detector;

[0072] S213: The detector predicts the data augmented image to obtain candidate regions of the coverage and the coverage text.

[0073] In step S211, there is no specific restriction on the specific construction method of building a convolutional layer network as a first-level detector. In this embodiment, an open source framework is used for construction, and in this embodiment, the open source framework adopts the Darknet framework, and the convolutional layer network adopts the yolo v3 network, that is, the Darknet framework is used to build the yolo v3 network as a first-level detector, and then the convolutional layer network is repeatedly trained by collecting detector samples to form a detector, and the detector predicts the data augmented image to obtain the candidate area of ​​the covered area and the covered text. For example, if the text is covered by a seal, the candidate area of ​​the text covered by the seal can be obtained by predicting the data augmented image through the first-level detector.

[0074] Among them, in a specific embodiment of the present invention, the process of building a yolo v3 network using the Darknet framework includes:

[0075] Obtain and run an annotation tool, annotate images and edit text in the annotation tool, and save the text in XML format;

[0076] Pull Darknet, modify the configuration file in the Darknet to form the required Darknet framework, input the XML formatted text and annotated images into the corresponding directory of the Darknet framework, and run the script in the corresponding directory to generate training data;

[0077] Download the yolo v3 pre-trained model, modify the voc.data file and yolov3-voc.cfg file under the Darknet framework, and then use the training data to train the yolo v3 pre-trained model to form a yolo v3 training model;

[0078] The yolo v3 training model is tested. If the test meets the standard, a yolo v3 network is formed. If the test does not meet the standard, the training weights are modified for retraining until a yolo v3 network consistent with the preset parameters is formed.

[0079] In step S22, in the process of extracting the candidate region by a non-maximum suppression algorithm to obtain the first detection result, the non-maximum suppression algorithm is:

[0080] S221: Obtain confidences of the candidate regions, and sort the confidences of all the candidate regions in descending order; wherein the confidences are obtained by a confidence function, which is a pre-set function and in which confidence calculation rules and calculation parameters are set;

[0081] S222: Select the region with the highest confidence in the sorting, and determine whether the region with the highest confidence is a correct prediction. If it is an incorrect prediction, reselect the region with the highest confidence and make another determination until it is a correct prediction. If it is a correct prediction, calculate the IOU (intersect over union, the ratio of the intersection and union of the target prediction box and the true box) of the region with the highest confidence and other candidate regions. area(A) represents the area of ​​box A, area(B) represents the area of ​​box B, ∩ is the mathematical symbol for intersection, and ∪ is the mathematical symbol for union. In this embodiment, box A and box B are respectively the predicted box and the true box of the region with the highest confidence and other candidate regions. The specific selection method of the predicted box and the true box is adaptively generated according to preset rules and will not be described in detail here;

[0082] S223: Delete the candidate areas whose IOU is greater than the set threshold, and sort the remaining candidate areas in descending order of confidence again, and remove the candidate areas whose IOU is greater than the set threshold again, and so on, until the number of candidate areas whose IOU is greater than the set threshold is zero, that is, until there are no candidate areas whose IOU is greater than the set threshold, and the selected candidate areas whose IOU is not greater than the set threshold are the first detection results, which include the detection results of the covered area and the text, that is, the coordinate information of the covered area and the text, such as the coordinate information of the seal and the text covered by the seal in the seal text, so as to lock the area for intelligent recognition, and then judge the text in the covered area to realize artificial intelligence image recognition; wherein, the set threshold is a preset value, and its specific value is not specifically limited.

[0083] S3: The first detection result is matched to the image of the target text to extract the ROI, and the ROI is sent to the preset secondary PSE text detection network to obtain the second detection result, so as to realize artificial intelligence target detection.

[0084] Specifically, in the process of extracting ROI from the image of the target text corresponding to the first detection result, the ROI (Region of Interest) is the region of interest, that is, the coverage area and text area in the target text. It should be noted that the difference between it and the first detection result is that the first detection result is the coordinate information of the coverage area, and the region of interest is the subject content in the coordinate information.

[0085] The process of sending the ROI to a preset secondary PSE text detection network to obtain a second detection result includes:

[0086] S31: Preset secondary PSE text detection network;

[0087] S32: input the ROI into the secondary PSE text detection network;

[0088] S33: converting the ROI into channel feature maps of multiple channels through the secondary PSE text detection network, shrinking the channel feature maps according to different proportions to form channel feature maps shrunk at different proportions, and then merging the channel feature maps shrunk at different proportions through a progressive expansion algorithm to obtain a detection frame;

[0089] S34: Perform non-maximum suppression processing on the detection frame using a non-maximum suppression algorithm to obtain a second detection result; wherein the second detection result at least includes the text covered by the covered area.

[0090] The process of presetting the secondary PSE text detection network includes:

[0091] A residual network is formed by using a multi-channel processing layer as a basic feature network layer and a data layer as an additional network layer; the residual network performs multi-channel processing on the collected sample data to form a channel feature map including multiple channels, and compares the channel feature map shrunk according to different proportions with the data of the data layer to perform residual learning, so as to form a secondary PSE text detection network; wherein, the specific network layer of the multi-channel processing layer is not specifically limited, and in this embodiment, the form of ResNet50+FPN network is used as the basic feature part; in the process of comparing the channel feature map shrunk according to different proportions with the data of the data layer, channel feature maps shrunk according to different proportions are sequentially formed by a progressive expansion algorithm, specifically, the progressive expansion algorithm is: gradually expanding a smaller channel feature map (i.e., the sample text map has a larger shrinkage degree) to a larger channel feature map (i.e., the sample text map has a smaller shrinkage degree) until it expands to the largest channel feature map (i.e., the size of the input sample text map), and outputting all the channel feature maps; wherein, the second detection result is the text information covered in the coverage area, such as the date, inscription, signature, etc. covered by the seal.

[0092] S4: using the second detection result to perform recognition processing on the target text to obtain an intermediate recognition result, and correcting the intermediate recognition result by a correction means to obtain a final recognition result.

[0093] Specifically, the process of first using the second detection result to identify the target text through the SAR network to obtain the recognition result is: first, the position of the second detection result is locked to obtain the position coordinates of the second detection result; then the second ROI is selected according to the position coordinates, and the second ROI is sent to the recognition network to identify the specific text; a mapping between the position coordinates and the specific text extracted by the second ROI is constructed, and the text information on the original image is extracted according to the mapping, and the extracted text information is sent to the SAR network recognition module, and then the text information is corrected and supplemented through regularization and other correction methods to obtain the final recognition result.

[0094] The above-mentioned covered text recognition method increases the receptive field of the covered area through the cascade detection method, overcomes the problems of text overlap and small text characters in the covered text to a certain extent, realizes end-to-end detection, and improves the detection accuracy to at least 70%, thereby improving the overall detection accuracy of text recognition and reducing the frequency of subsequent manual verification.

[0095] like Figure 2 As shown, the present invention provides a covered text recognition device 100, which can be installed in an electronic device. According to the functions to be implemented, the covered text recognition device 100 may include a data enhancement module 101, a first detection module 102, a second detection module 103, and a text recognition module 104. The module described in the present invention may also be referred to as a unit, which refers to a series of computer program segments that can be executed by an electronic device processor and can complete fixed functions, and is stored in the memory of the electronic device.

[0096] In this embodiment, the functions of each module / unit are as follows:

[0097] The data enhancement module 101 is used to convert the image of the target text into a preset format image, and perform zero-filling enhancement processing on the preset format image to form a data enhanced image;

[0098] A first detection module 102 is used to predict candidate regions of covered areas and covered text in the data enhanced image, and extract the candidate regions by a non-maximum suppression algorithm to obtain a first detection result;

[0099] The second detection module 103 is used to extract ROI from the image of the target text corresponding to the first detection result, and send the ROI to a preset secondary PSE text detection network to obtain a second detection result;

[0100] The text recognition module 104 is used to use the second detection result to perform recognition processing on the target text to obtain an intermediate recognition result, and to correct the intermediate recognition result by a correction method to obtain a final recognition result.

[0101] like Figure 3 As shown, the present invention provides an electronic device 1 for implementing a covered text recognition method.

[0102] The electronic device 1 may include a processor 10 , a memory 11 and a bus, and may also include a computer program stored in the memory 11 and executable on the processor 10 , such as covered text recognition 12 .

[0103] The memory 11 includes at least one type of readable storage medium, and the readable storage medium includes a flash memory, a mobile hard disk, a multimedia card, a card-type memory (e.g., SD or DX memory, etc.), a magnetic memory, a disk, an optical disk, etc. In some embodiments, the memory 11 may be an internal storage unit of the electronic device 1, such as a mobile hard disk of the electronic device 1. In other embodiments, the memory 11 may also be an external storage device of the electronic device 1, such as a plug-in mobile hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc. equipped on the electronic device 1. Further, the memory 11 may also include both an internal storage unit of the electronic device 1 and an external storage device. The memory 11 may not only be used to store application software and various types of data installed in the electronic device 1, such as the code covering the text recognition program, etc., but also be used to temporarily store data that has been output or is to be output.

[0104] The processor 10 may be composed of an integrated circuit in some embodiments, for example, a single packaged integrated circuit, or a plurality of packaged integrated circuits with the same or different functions, including one or more central processing units (CPUs), microprocessors, digital processing chips, graphics processors, and combinations of various control chips, etc. The processor 10 is the control core (Control Unit) of the electronic device, and uses various interfaces and lines to connect various components of the entire electronic device, and executes or executes programs or modules (such as overlay text recognition programs, etc.) stored in the memory 11, and calls data stored in the memory 11 to execute various functions of the electronic device 1 and process data.

[0105] The bus may be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus, etc. The bus may be divided into an address bus, a data bus, a control bus, etc. The bus is configured to realize connection and communication between the memory 11 and at least one processor 10, etc.

[0106] Figure 3 Only an electronic device with components is shown, and those skilled in the art will understand that Figure 3 The structure shown does not constitute a limitation on the electronic device 1, and may include fewer or more components than shown in the figure, or combine certain components, or arrange the components differently.

[0107] For example, although not shown, the electronic device 1 may also include a power source (such as a battery) for supplying power to each component. Preferably, the power source may be logically connected to the at least one processor 10 through a power management device, so that the power management device can realize functions such as charging management, discharging management, and power consumption management. The power source may also include any components such as one or more DC or AC power sources, recharging devices, power failure detection circuits, power converters or inverters, and power status indicators. The electronic device 1 may also include a variety of sensors, Bluetooth modules, Wi-Fi modules, etc., which will not be repeated here.

[0108] Furthermore, the electronic device 1 may also include a network interface. Optionally, the network interface may include a wired interface and / or a wireless interface (such as a WI-FI interface, a Bluetooth interface, etc.), which is generally used to establish a communication connection between the electronic device 1 and other electronic devices.

[0109] Optionally, the electronic device 1 may further include a user interface, which may be a display, an input unit (such as a keyboard), or a standard wired interface or a wireless interface. Optionally, in some embodiments, the display may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, and an OLED (Organic Light-Emitting Diode) touch device. The display may also be appropriately referred to as a display screen or a display unit, which is used to display information processed in the electronic device 1 and to display a visual user interface.

[0110] It should be understood that the embodiment is for illustration only and the scope of the patent application is not limited to this structure.

[0111] The covered text recognition program 12 stored in the memory 11 of the electronic device 1 is a combination of multiple instructions, and when running in the processor 10, it can achieve:

[0112] Converting the image of the target text into a preset format image, and performing zero-filling enhancement processing on the preset format image to form a data enhanced image;

[0113] An open source framework is used to predict candidate regions of coverage and coverage text in the data augmentation image, and the candidate regions are extracted by a non-maximum suppression algorithm to obtain a first detection result;

[0114] Corresponding the first detection result to the image of the target text to extract the ROI, and sending the ROI to the preset secondary PSE text detection network to obtain the second detection result;

[0115] The target text is recognized using the second detection result to obtain an intermediate recognition result, and the intermediate recognition result is corrected by a correction method to obtain a final recognition result.

[0116] Specifically, the specific implementation method of the processor 10 for the above instructions can refer to Figure 1 The description of the relevant steps in the corresponding embodiment is not repeated here. It should be emphasized that in order to further ensure the privacy and security of the above-mentioned overlay text recognition, the above-mentioned overlay text recognition data can also be stored in the node of the blockchain.

[0117] Furthermore, if the module / unit integrated in the electronic device 1 is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. The computer-readable medium may include: any entity or device capable of carrying the computer program code, a recording medium, a USB flash drive, a mobile hard disk, a magnetic disk, an optical disk, a computer memory, and a read-only memory (ROM).

[0118] In the several embodiments provided by the present invention, it should be understood that the disclosed devices, apparatuses and methods can be implemented in other ways. For example, the device embodiments described above are only schematic, for example, the division of the modules is only a logical function division, and there may be other division methods in actual implementation.

[0119] The modules described as separate components may or may not be physically separated, and the components shown as modules may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0120] In addition, each functional module in each embodiment of the present invention may be integrated into one processing unit, each unit may exist physically separately, or two or more units may be integrated into one unit. The above integrated unit may be implemented in the form of hardware or in the form of hardware plus software functional modules.

[0121] It is obvious to those skilled in the art that the present invention is not limited to the details of the above exemplary embodiments, and that the present invention can be implemented in other specific forms without departing from the spirit or essential characteristics of the present invention.

[0122] Therefore, no matter from which point of view, the embodiments should be regarded as illustrative and non-restrictive, and the scope of the present invention is limited by the appended claims rather than the above description, so it is intended that all changes falling within the meaning and scope of the equivalent elements of the claims are included in the present invention. Any attached figure mark in the claims should not be regarded as limiting the claims involved.

[0123] The blockchain referred to in this invention is a new application mode of computer technologies such as distributed data storage, peer-to-peer transmission, consensus mechanism, encryption algorithm, etc. Blockchain is essentially a decentralized database, a string of data blocks generated by cryptographic methods. Each data block contains a batch of network transaction information, which is used to verify the validity of its information (anti-counterfeiting) and generate the next block. Blockchain can include the underlying blockchain platform, platform product service layer, and application service layer.

[0124] In addition, it is clear that the word "comprising" does not exclude other units or steps, and the singular does not exclude the plural. Multiple units or devices stated in the system claim can also be implemented by one unit or device through software or hardware. The second and other words are used to indicate names, but not to indicate any particular order.

[0125] Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the preferred embodiments, those skilled in the art should understand that the technical solution of the present invention can be modified or replaced by equivalents without departing from the spirit and scope of the technical solution of the present invention.

Claims

1. A covered text recognition method, characterized in that: The method comprises: Converting the image of the target text into a preset format image, and performing zero-filling enhancement processing on the preset format image to form a data enhanced image; Predicting candidate regions of covered areas and covered text in the data augmented image, and extracting the candidate regions by a non-maximum suppression algorithm to obtain a first detection result; Corresponding the first detection result to the image of the target text to extract the ROI, and sending the ROI to a preset secondary PSE text detection network to obtain a second detection result; The target text is recognized using the second detection result to obtain an intermediate recognition result, and the intermediate recognition result is corrected by a correction method to obtain a final recognition result.

2. The method for recognizing covered text according to claim 1, characterized in that: The process of converting the target text image into a preset format image includes: Using a reader to read in the image of the target text; The image of the target text is converted into an image in a preset format; The preset format is the tensor format.

3. The method for recognizing covered text according to claim 1, characterized in that: The process of performing zero-filling enhancement processing on the preset format picture includes: Filling the remaining part of the preset format picture with zeros to form a square picture with the longest side of the preset format picture as the side length; The square image is scaled to a preset size, and then data enhancement is performed on the square image reaching the preset size to form a data enhanced image.

4. The method for recognizing covered text according to claim 1, wherein: The process of predicting candidate regions of coverage and coverage text in the data augmented image includes: Build a convolutional layer network as a first-level detector; Collect detector samples to perform convolutional layer training on the first-level detector to form a detector; The detector predicts the data augmented image to obtain candidate regions of coverage and coverage text.

5. The method for recognizing covered text according to claim 1, characterized in that: The non-maximum suppression algorithm is: Obtaining the confidence of the candidate region, and sorting the confidence of all candidate regions in descending order; Selecting the region with the highest confidence in the sorting, and judging whether the region with the highest confidence is a correct prediction; if it is an incorrect prediction, reselecting the region with the highest confidence and judging again until it is a correct prediction; If it is a correct prediction, the IOU of the region with the highest confidence and other candidate regions is calculated; The candidate regions whose IOU is greater than the set threshold are deleted, and the remaining candidate regions are sorted in descending order of confidence again, and the candidate regions whose IOU is greater than the set threshold are removed again, and so on, until the number of candidate regions whose IOU is greater than the set threshold is zero.

6. The method for recognizing covered text according to claim 1, characterized in that: The process of sending the ROI into a preset secondary PSE text detection network to obtain a second detection result includes: Preset secondary PSE text detection network; Inputting the ROI into the secondary PSE text detection network; The ROI is converted into channel feature maps of multiple channels by the secondary PSE text detection network, and the channel feature maps are shrunk according to different proportions to form channel feature maps shrunk by different proportions, and then the channel feature maps shrunk by different proportions are merged to obtain a detection frame by a progressive expansion algorithm; The detection frame is subjected to non-maximum suppression processing by a non-maximum suppression algorithm to obtain a second detection result.

7. The method for recognizing covered text according to claim 6, characterized in that: The process of presetting the secondary PSE text detection network includes: The multi-channel processing layer is used as the basic feature network layer, and the data layer is used as the additional network layer to form a residual network; The residual network performs multi-channel processing on the collected sample data to form a channel feature map including multiple channels, and compares the channel feature map shrunk according to different proportions with the data of the data layer to perform residual learning, thereby forming a secondary PSE text detection network.

8. A covered text recognition device, characterized in that: The device comprises: A data enhancement module, used to convert a picture of a target text into a picture in a preset format, and perform zero-filling enhancement processing on the picture in the preset format to form a data enhanced picture; A first detection module, used to predict candidate regions of covered areas and covered texts in the data augmented image, and extract the candidate regions by a non-maximum suppression algorithm to obtain a first detection result; A second detection module, configured to extract a ROI from the image of the target text corresponding to the first detection result, and send the ROI to a preset secondary PSE text detection network to obtain a second detection result; The text recognition module is used to use the second detection result to perform recognition processing on the target text to obtain an intermediate recognition result, and to correct the intermediate recognition result by correction means to obtain a final recognition result.

9. An electronic device, characterized in that: The electronic device comprises: at least one processor; and, a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the covered text recognition method according to any one of claims 1 to 5.

10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the covered text recognition method according to any one of claims 1 to 7 is implemented.