Method, device, medium and equipment for identifying bill information

By identifying missing characters on bill images and combining word vectors and stroke matching, the problem of low recognition accuracy of optical character recognition methods when dealing with overlapping characters and blurred bills is solved. Effective correction and recognition of missing words are achieved, improving bill quality. Information recognition accuracy.

CN117197828BActive Publication Date: 2024-10-29BANK OF CHINA INSURANCE INFORMATION TECH MANAGEMENT
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202311013293.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-08-11
Publication Date
2024-10-29
Estimated Expiration
2043-08-11

AI Technical Summary

Technical Problem

Existing optical character recognition methods have low recognition accuracy when dealing with bills with defects such as overlapping characters and blurred characters, and cannot effectively identify and correct missing characters.

Method used

Through text recognition of the bill image to be recognized, the missing text area, complete words and missing words are determined, the phrases to be recognized are formed and matched with the preset word library, combined with stroke matching, the candidate and target corrected words are determined, and the complete and corrected words are output to improve Recognition accuracy.

Benefits of technology

It improves the recognition accuracy of bill information and is especially suitable for bills with defects such as missing text, blurred text, and contaminated text, and enhances the ability to identify and correct incomplete text.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117197828B_ABST
    Figure CN117197828B_ABST
Patent Text Reader

Abstract

The present application discloses a bill information recognition method, device, medium and equipment, the method comprising: performing text recognition on a medical bill image to be recognized, determining a text missing area and complete characters and missing characters in the text missing area; forming a phrase to be recognized with complete characters and missing characters, matching word vectors of the phrase to be recognized based on a preset medical word library, and determining a candidate correction character corresponding to the missing character; recognizing the strokes in the missing character, matching the strokes with the candidate correction characters, and determining a target correction character corresponding to the missing character; outputting the recognition information of the medical bill based on the complete characters and the target correction characters. By determining the text missing area in the medical bill image to be recognized, matching the word vectors of the phrases in the text missing area with the phrases in the preset medical word library, and determining the target correction character corresponding to the missing character, the recognition accuracy of the bill information is improved, and it is particularly suitable for bills with defects such as missing characters, blurred characters, and stained characters.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of image processing technology, and in particular to a bill information recognition method, device, medium and equipment. Background Art

[0002] With the development of the economy, people's consumption level continues to improve. In order to safeguard people's consumption rights and protect people's legitimate rights and interests, bills have become a powerful guarantee for consumers and an effective reimbursement voucher. Therefore, relevant staff need to process a large number of bills every day, such as identifying bill information.

[0003] Commonly used bill recognition methods include manual recognition method and optical character recognition method. The manual recognition method has high accuracy but low recognition efficiency, and requires a lot of manpower and energy. Therefore, the optical character recognition method has been widely used in recent years. The optical character recognition method identifies each character in the bill image to determine the bill information contained in the bill image. Since the optical character recognition method can only recognize clear characters, the recognition accuracy of the optical character recognition method is low for bills with defects such as overlapping text and blurred text. Summary of the invention

[0004] In view of this, the present invention provides a bill information recognition method, device, medium and equipment, the main purpose of which is to solve the problem of low recognition accuracy of current optical character recognition methods for bills with defects such as text overlap and text ambiguity.

[0005] According to one aspect of the present application, a method for identifying bill information is provided, the method comprising:

[0006] Performing text recognition on the medical bill image to be recognized, determining the text missing area and the complete characters and missing characters in the text missing area;

[0007] The complete word and the missing word form a phrase to be recognized, and word vector matching is performed on the phrase to be recognized based on a preset medical word library to determine a candidate correcting word corresponding to the missing word;

[0008] Identify the strokes in the missing character, match the strokes with the candidate corrected characters, and determine the target corrected character corresponding to the missing character;

[0009] Based on the complete word and the target corrected word, identification information of the medical bill is output.

[0010] Optionally, the step of combining the complete word and the missing word into a phrase to be recognized, performing word vector matching on the phrase to be recognized based on a preset medical word library, and determining a candidate correcting word corresponding to the missing word includes:

[0011] Combining the complete word and the missing word into a phrase to be recognized;

[0012] Based on the number of characters in the phrase to be recognized, the complete characters and the placeholders of the complete characters, the phrase to be recognized is matched with the phrases in a preset medical word library to determine a candidate phrase;

[0013] Based on the placeholders of the missing characters in the candidate phrases and the phrases to be recognized, candidate correcting characters corresponding to the missing characters are determined.

[0014] Optionally, the identifying strokes in the missing character, performing stroke matching between the strokes and the candidate corrected characters, and determining a target corrected character corresponding to the missing character includes:

[0015] Identify the strokes in the missing character, and generate a character to be corrected according to the positions of the strokes;

[0016] The character to be corrected is matched with the candidate corrected characters by stroke matching to determine the target corrected character corresponding to the missing character.

[0017] Optionally, the step of performing text recognition on the medical bill image to be recognized and determining a text missing region and complete characters and missing characters in the text missing region includes:

[0018] Based on a preset region segmentation model, the medical bill image to be identified is segmented to obtain multiple image regions;

[0019] Based on a preset text setting position and a preset text recognition model, text recognition is performed on each image area respectively;

[0020] Semantic detection is performed on the recognized text, and a text missing area is determined according to the semantic detection result, and complete characters and missing characters in the text missing area are determined based on the recognized text.

[0021] Optionally, after performing semantic detection on the recognized text, the method further includes:

[0022] According to the semantic detection result, a complete text area is determined, and based on the text recognized in the complete text area, identification information of the medical bill is output.

[0023] Optionally, before performing region segmentation on the medical bill image to be identified based on the preset region segmentation model, the method further includes:

[0024] Acquire an initial bill image, and perform table correction on the initial bill image;

[0025] Perform spectral adjustment and color adjustment on the bill image after form correction;

[0026] The bill image after spectrum adjustment and color adjustment is resized and pixel rasterized to obtain a bill image to be recognized.

[0027] Optionally, the text missing area includes at least one of a text and table overlapping area, a text and stamp overlapping area, a text and text overlapping area and a text blurred area.

[0028] According to another aspect of the present application, a bill information recognition device is provided, comprising:

[0029] A missing character region determination module is used to perform character recognition on the medical bill image to be recognized, and determine the missing character region and the complete characters and missing characters in the missing character region;

[0030] A candidate correction character determination module is used to combine the complete character and the missing character into a phrase to be recognized, perform word vector matching on the phrase to be recognized based on a preset medical word library, and determine a candidate correction character corresponding to the missing character;

[0031] A target corrected character determination module is used to identify the strokes in the missing character, match the strokes with the candidate corrected characters, and determine the target corrected character corresponding to the missing character;

[0032] The information output module is used to output the identification information of the medical bill based on the complete word and the target corrected word.

[0033] Optionally, the candidate correction character determination module is further used for:

[0034] Combining the complete word and the missing word into a phrase to be recognized;

[0035] Based on the number of characters in the phrase to be recognized, the complete characters and the placeholders of the complete characters, the phrase to be recognized is matched with the phrases in a preset medical word library to determine a candidate phrase;

[0036] Based on the placeholders of the missing characters in the candidate phrases and the phrases to be recognized, candidate correcting characters corresponding to the missing characters are determined.

[0037] Optionally, the target correction character determination module is further used for:

[0038] Identify the strokes in the missing character, and generate a character to be corrected according to the positions of the strokes;

[0039] The character to be corrected is matched with the candidate corrected characters by stroke matching to determine the target corrected character corresponding to the missing character.

[0040] Optionally, the text-missing area determination module is further used for:

[0041] Based on a preset region segmentation model, the medical bill image to be identified is segmented to obtain multiple image regions;

[0042] Based on a preset text setting position and a preset text recognition model, text recognition is performed on each image area respectively;

[0043] Semantic detection is performed on the recognized text, and a text missing area is determined according to the semantic detection result, and complete characters and missing characters in the text missing area are determined based on the recognized text.

[0044] Optionally, the bill information recognition device further includes:

[0045] A text complete area determination module is used to determine the text complete area according to the semantic detection result;

[0046] The information output module is also used to output identification information of the medical bill based on the text recognized in the complete text area.

[0047] Optionally, before performing region segmentation on the medical bill image to be identified based on the preset region segmentation model, the method further includes:

[0048] Acquire an initial bill image, and perform table correction on the initial bill image;

[0049] Perform spectral adjustment and color adjustment on the bill image after form correction;

[0050] The bill image after spectrum adjustment and color adjustment is resized and pixel rasterized to obtain a bill image to be recognized.

[0051] Optionally, the text missing area includes at least one of a text and table overlapping area, a text and stamp overlapping area, a text and text overlapping area and a text blurred area.

[0052] According to another aspect of the present application, a storage medium is provided, in which at least one executable instruction is stored, and the executable instruction enables a processor to execute operations corresponding to the above-mentioned bill information identification method.

[0053] According to another aspect of the present application, a computer device is provided, comprising: a processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface communicate with each other via the communication bus;

[0054] The memory is used to store at least one executable instruction, and the executable instruction enables the processor to execute operations corresponding to the above-mentioned bill information recognition method.

[0055] By means of the above technical solution, the technical solution provided by the embodiment of the present invention has at least the following advantages:

[0056] The present application provides a bill information recognition method, device, equipment and medium, which performs text recognition on a medical bill image to be recognized, obtains a text missing area and complete characters and missing characters in the text missing area, combines the complete characters and missing characters in the order of characters, generates a phrase to be recognized, matches the phrase to be recognized with a phrase in a preset medical word library through word vectors, determines a candidate correction character corresponding to the missing character, matches the strokes existing in the missing character with the candidate correction characters, determines a target correction character corresponding to the missing character, outputs the complete character and the target correction character in order as the recognition information of the medical bill, improves the recognition accuracy of the bill information by recognizing and correcting the missing characters, and is particularly suitable for bills with defects such as missing characters, blurred characters, and contaminated characters.

[0057] The above description is only an overview of the technical solution of the present invention. In order to more clearly understand the technical means of the present invention, it can be implemented according to the contents of the specification. In order to make the above and other purposes, features and advantages of the present invention more obvious and easy to understand, the specific implementation methods of the present invention are listed below. BRIEF DESCRIPTION OF THE DRAWINGS

[0058] Various other advantages and benefits will become apparent to those of ordinary skill in the art by reading the detailed description of the preferred embodiments below. The accompanying drawings are only for the purpose of illustrating the preferred embodiments and are not to be considered as limiting the present invention. Moreover, the same reference symbols are used throughout the accompanying drawings to represent the same components. In the accompanying drawings:

[0059] Figure 1 A flowchart of a bill information identification method provided by an embodiment of the present application is shown;

[0060] Figure 2 A flowchart of another bill information identification method provided by an embodiment of the present application is shown;

[0061] Figure 3 A flowchart of another bill information identification method provided in an embodiment of the present application is shown;

[0062] Figure 4 A flowchart of another bill information identification method provided by an embodiment of the present application is shown;

[0063] Figure 5 A block diagram showing a bill information identification device provided by an embodiment of the present application is shown;

[0064] Figure 6 A schematic structural diagram of a computer device provided by an embodiment of the present invention is shown.

[0065] in,

[0066] Figure 5 In: 502-text missing area determination module; 504-candidate correction character determination module; 506-target correction character determination module; 508-information output module;

[0067] Figure 6 In it: 602 - processor; 604 - communication interface; 606 - memory; 608 - communication bus; 610 - program. DETAILED DESCRIPTION

[0068] The present invention will be described in detail below with reference to the accompanying drawings and in combination with embodiments. It should be noted that the embodiments and features in the embodiments of the present invention can be combined with each other without conflict.

[0069] In order to further explain the technical means and effects adopted by the present invention to achieve the predetermined invention purpose, the specific implementation methods, structures, features and effects of the present invention application are described in detail below in conjunction with the accompanying drawings and preferred embodiments. In the following description, different "one embodiment" or "embodiment" does not necessarily refer to the same embodiment. In addition, specific features, structures, or characteristics in one or more embodiments may be combined in any suitable form.

[0070] In view of the problem that the current optical character recognition method has a low recognition accuracy rate for bills with defects such as overlapping text and blurred text, the embodiment of the present application provides a bill information recognition method, such as Figure 1 As shown, the method includes:

[0071] 102: Performing text recognition on the medical receipt image to be recognized, and determining a text missing region and complete characters and missing characters in the text missing region;

[0072] In this embodiment, the medical bill image to be identified is a hospital reimbursement document image generated by the user during the medical treatment process, such as a medical invoice, a medical receipt, etc. These medical invoices and medical receipts are used as medical bill images to be identified. Text recognition is performed on the medical bill image to be identified, and semantic detection is performed on the identified text. According to the semantic detection result, the text missing area is determined to facilitate the identification and processing of the missing text in the text missing area. The bill information recognition method of the present application is applied to scenarios such as insurance claims.

[0073] In another embodiment of the present invention, in order to further define and illustrate, as Figure 2 As shown, the medical bill image to be identified is subjected to text recognition, and the text missing area and the complete characters and missing characters in the text missing area are determined, including:

[0074] 202: Based on a preset region segmentation model, perform region segmentation on the medical bill image to be identified to obtain multiple image regions;

[0075] 204: Based on the preset text setting position and the preset text recognition model, perform text recognition on each image area respectively;

[0076] 206: Perform semantic detection on the recognized text, determine the text missing region according to the semantic detection result, and determine the complete characters and missing characters in the text missing region based on the recognized text.

[0077] In this embodiment, based on a preset region segmentation model, the medical bill image to be identified is segmented to obtain multiple image regions, such as a table region, a region containing a stamp, a region containing a bill header, etc. According to the preset text setting position of each region, based on a preset text recognition model, text recognition is performed on each region to further improve the accuracy of text recognition. Preferably, the preset region segmentation model is a neural network model, and the preset text recognition model is an optical character recognition model. The recognized text includes table text, printed text, stamp text, handwritten text, etc. The output recognition information includes completed text, table text, printed text, stamp text, handwritten text, etc.

[0078] Perform semantic detection on the recognized text and determine the text missing area based on the semantic detection result. For example, the characters recognized in a certain image area are Gao, Er and Qi. According to the semantic detection result, Gao, Er and Qi are incomplete phrases. Therefore, the image block is determined as a text missing area. The complete characters in the text missing area are Gao, Er and Qi. There are two missing characters, located between Gao and Er, represented by *.

[0079] In one embodiment, the text missing area includes at least one of a text and table overlapping area, a text and stamp overlapping area, a text and text overlapping area, and a text blurred area.

[0080] In this embodiment, the text missing area can be a text module area, a text perforation area, a text blocked area, a text painted area, a text damaged area, a text and table overlapping area, a text and stamp overlapping area, and a text and text overlapping area. Bill information recognition can be performed on the above text missing areas.

[0081] In one embodiment, based on a preset region segmentation model, before performing region segmentation on the medical bill image to be identified, the method further includes:

[0082] Acquire an initial bill image, and perform table correction on the initial bill image;

[0083] Perform spectral adjustment and color adjustment on the bill image after form correction;

[0084] The bill image after spectrum adjustment and color adjustment is resized and pixel rasterized to obtain a bill image to be recognized.

[0085] In this embodiment, after obtaining the initial bill image, the initial bill image is first preprocessed, such as table correction, spectrum tuning, color scale tuning and color difference tuning, and then the adjusted bill image is resized and pixel rasterized, and the soiled, occluded, overlapped, shadowed, perforated, and hand-signed parts of the bill are processed to ensure that the processed image meets the requirements and further improve the accuracy of bill information recognition.

[0086] In one embodiment, corresponding processing is performed according to defects existing in the initial bill image, and all the above processing is not required. For example, if there is a shadow area in the bill, the bill is subjected to pixel rasterization processing.

[0087] In one embodiment, after performing semantic detection on the recognized text, the method further includes:

[0088] According to the semantic detection result, the complete text area is determined, and based on the text recognized in the complete text area, the identification information of the medical bill is output.

[0089] In this embodiment, the complete text area is determined based on the semantic detection result, and the text in the complete text area is directly output according to the recognition result as the identification information of the bill.

[0090] In one embodiment, based on at least one bill feature, a feature area contained in the target medical bill image is identified, the bill feature includes a text feature and at least one style feature; and a missing text area in the text feature area that overlaps with at least one style feature area is identified.

[0091] Specifically, the style features include at least one of a stamp, a table, and a seal;

[0092] Based on at least one bill feature, identifying a feature area contained in the medical bill image includes:

[0093] Perform bill style recognition on the medical bill image, determine the target bill style of the medical bill image, and obtain bill features corresponding to the target bill style and the area range of each bill feature;

[0094] Based on the region range of each bill feature, a feature region corresponding to each bill feature is identified in the medical bill image.

[0095] In this embodiment, the medical bill image is firstly identified by bill style, for example, it is determined whether the format of the medical bill image is an invoice or a receipt. After the bill format is determined, the bill features corresponding to the target bill style and the feature area range of each bill feature are obtained according to the preset bill format. According to the feature area corresponding to each bill feature, the medical bill image is divided into feature areas corresponding to each bill feature, and then each feature area is identified.

[0096] In one embodiment, if the feature region includes a text feature region and a style feature region, a complete text region that does not overlap with any style feature region and a missing text region that overlaps with at least one style feature region are identified.

[0097] In one embodiment, feature enhancement processing is performed on the missing text area, and text recognition is performed based on the missing text area after the feature enhancement processing.

[0098] 104: Grouping the complete characters and the missing characters into a phrase to be recognized, performing word vector matching on the phrase to be recognized based on a preset medical word library, and determining a candidate correcting character corresponding to the missing character;

[0099] In this embodiment, complete characters and missing characters are grouped into phrases to be recognized according to the position of the characters, the phrases to be recognized are matched with the phrases in the preset medical vocabulary library by word vectors, the phrases with high matching degree are used as candidate phrases, and the candidate correcting characters in each candidate phrase are determined according to the position of the missing characters.

[0100] In one embodiment, the preset medical term library is medical terms obtained based on historical medical bills, including abbreviations, full names, synonyms, standardized terms, etc. of terms in the medical industry and the insurance industry.

[0101] In one embodiment, the preset medical word library is a structured term library established by integrating medical terms and insurance terms (such as hospital name, disease diagnosis, drug specifications, surgery name, laboratory test, etc.). The preset medical word library also includes a claim corpus feature library obtained by sorting and analyzing the pathological description, admission diagnosis, discharge summary, etc. entered in the bill, a stamp feature library obtained by integrating stamps, seals, hand stamps, etc., a text feature library obtained by integrating handwritten text, and a style library obtained by integrating regular hospital reimbursement documents.

[0102] In another embodiment of the present invention, Figure 3 As shown, the complete characters and the missing characters are combined into a phrase to be recognized, and the phrase to be recognized is matched with a word vector based on a preset medical word library to determine the candidate correcting characters corresponding to the missing characters, including:

[0103] 302: Combine the complete characters and the missing characters into a phrase to be recognized;

[0104] 304: Based on the number of characters, the complete characters, and the placeholders of the complete characters in the phrase to be recognized, match the phrase to be recognized with the phrases in the preset medical term library to determine candidate phrases.

[0105] 306: Based on the placeholders of the missing characters in the candidate phrase and the phrase to be recognized, determine the candidate corrective characters corresponding to the missing characters.

[0106] In this embodiment, the complete characters and the missing characters are combined into a phrase to be recognized according to the placeholders of the characters. According to the number of characters, the recognized complete characters, and the placeholders of the complete characters in the phrase to be recognized, match the phrase to be recognized with the phrases in the preset medical term library, and take the phrase with a high matching degree as the candidate phrase. According to the placeholders of the missing characters in the phrase to be recognized, determine the candidate corrective characters in the candidate phrase. For example, the complete characters in the text missing area are "high" and "second stage", and there are two missing characters in the middle, which are marked with *. The phrase to be recognized composed of the complete characters and the missing characters is "high**second stage". Match "high**second stage" with the phrases in the preset medical term library, obtain five-character phrases from the preset medical term library, and the first character of the phrase is high, the fourth character is two, and the fifth character is stage. Take the phrases that meet the conditions as candidate phrases. For example, the matching candidate phrases are "hypertensive second stage", "hyperglycemic second stage", and "hyperlipidemic second stage", etc. Then compare the phrase to be recognized with each candidate phrase respectively, and determine that the candidate corrective characters corresponding to the missing characters are "blood pressure", "blood sugar", and "blood lipid".

[0107] In one embodiment, identify the first complete character group corresponding to the complete text area and the missing character group corresponding to the missing text area; use the preset medical term library to perform feature matching on the missing character group, and complete the missing characters in the missing character group based on the matched medical terms to obtain the second complete character group.

[0108] Using the preset medical term library to perform feature matching on the missing character group includes:

[0109] If the missing character group contains at least one complete character, use the preset medical term library to perform feature matching on the missing character group;

[0110] If the missing character group does not contain complete characters, identify the strokes of the incomplete characters in the missing character group, and based on the strokes of the incomplete characters, use the preset medical term library to perform feature matching on the missing character group.

[0111] 106: Identify the strokes existing in the missing characters, perform stroke matching on the strokes and the candidate corrective characters, and determine the target corrective characters corresponding to the missing characters;

[0112] In this embodiment, the clear strokes in the missing characters are identified, and the clear strokes in the missing characters are matched with the candidate correction characters, and the candidate correction characters with high matching degrees are used as the target correction characters.

[0113] In an embodiment of the present invention, in another embodiment of the present invention, as Figure 4 shown, the strokes existing in the missing characters are identified, and the strokes are matched with the candidate correction characters to determine the target correction characters corresponding to the missing characters, including:

[0114] 402: Identify the strokes existing in the missing characters, and generate a character to be corrected according to the positions of the strokes.

[0115] 404: Match the character to be corrected with the candidate correction characters to determine the target correction characters corresponding to the missing characters.

[0116] In this embodiment, the clear strokes in the missing characters are identified, and these clear strokes are combined according to the positions occupied by the strokes to generate a character to be corrected. The character to be corrected is matched with the candidate correction characters, and the candidate correction characters with high matching degrees are used as the target correction characters. For example, the complete characters in the text missing area are "high" and "phase II", and there are two missing characters. The first missing character has a stroke of a left-falling stroke at the upper part and a horizontal stroke at the lower part, and the second missing character has a horizontal stroke at the upper part and a left-falling stroke at the left side. The candidate correction characters include "blood pressure", "blood sugar", and "blood lipid", etc. The strokes of the first missing character are combined to form the first character to be corrected, and the strokes of the second missing character are combined to form the second character to be corrected. These two characters to be corrected are matched with the candidate correction characters, and the similarity between these two characters to be corrected and each candidate correction character is calculated respectively. Finally, "blood pressure" with high similarity is determined as the target correction character.

[0117] 108: Based on the complete character and the target correction character, output the recognition information of the medical bill.

[0118] In this embodiment, the complete characters and the target correction characters in the text missing block are sequentially combined into a phrase, and the phrase is output as the recognition information of the medical bill, which improves the recognition accuracy of the bill information with text defects.

[0119] The present application provides a bill information recognition method. Compared with the prior art, the method performs text recognition on a medical bill image to be recognized, obtains a text missing area and complete characters and missing characters in the text missing area, combines complete characters and missing characters in character order, generates a phrase to be recognized, matches the phrase to be recognized with a phrase in a preset medical word library by word vector, determines a candidate correction character corresponding to the missing character, matches the strokes existing in the missing character with the candidate correction characters, determines a target correction character corresponding to the missing character, outputs the complete character and the target correction character in order as the recognition information of the medical bill, improves the recognition accuracy of the bill information by recognizing and correcting the missing characters, and is particularly suitable for bills with defects such as missing characters, blurred characters, and contaminated characters.

[0120] Furthermore, as a response to the above Figure 1 The embodiment of the present invention provides a bill information recognition device, such as Figure 5 As shown, the device comprises:

[0121] A missing character region determination module 502 is used to perform character recognition on the medical bill image to be recognized, and determine the missing character region and the complete characters and missing characters in the missing character region;

[0122] A candidate correction character determination module 504 is used to combine the complete characters and the missing characters into a phrase to be recognized, perform word vector matching on the phrase to be recognized based on a preset medical word library, and determine a candidate correction character corresponding to the missing character;

[0123] The target correction character determination module 506 is used to identify the strokes in the missing character, match the strokes with the candidate correction characters, and determine the target correction character corresponding to the missing character;

[0124] The information output module 508 is used to output the identification information of the medical bill based on the complete word and the target corrected word.

[0125] The present application provides a bill information recognition device. Compared with the prior art, the device performs text recognition on a medical bill image to be recognized, obtains a text missing area and complete characters and missing characters in the text missing area, combines complete characters and missing characters in character order, generates a phrase to be recognized, matches the phrase to be recognized with a phrase in a preset medical word library by word vector, determines a candidate correction character corresponding to the missing character, matches the strokes existing in the missing character with the candidate correction character, determines a target correction character corresponding to the missing character, outputs complete characters and target correction characters in order as recognition information of the medical bill, improves the recognition accuracy of bill information by recognizing and correcting missing characters, and is particularly suitable for bills with defects such as missing characters, blurred characters, and text pollution. .

[0126] In one embodiment, the candidate correction character determination module is further configured to:

[0127] Combine complete characters and missing characters into phrases to be recognized;

[0128] Based on the number of characters in the phrase to be recognized, the complete characters, and the placeholders of the complete characters, the phrase to be recognized is matched with the phrases in the preset medical word library to determine the candidate phrases;

[0129] Based on the placeholders of missing characters in the candidate phrases and the phrases to be recognized, candidate correcting characters corresponding to the missing characters are determined.

[0130] In one embodiment, the target correction word determination module is further configured to:

[0131] Identify the strokes in the missing character and generate the corrected character according to the position of the strokes;

[0132] The character to be corrected is matched with the candidate corrected characters by stroke matching to determine the target corrected character corresponding to the missing character.

[0133] In one embodiment, the text missing area determination module is further used to:

[0134] Based on a preset region segmentation model, the medical bill image to be identified is segmented to obtain multiple image regions;

[0135] Based on a preset text setting position and a preset text recognition model, text recognition is performed on each image area respectively;

[0136] The recognized text is subjected to semantic detection, and the text missing region is determined based on the semantic detection result. Based on the recognized text, the complete characters and missing characters in the text missing region are determined.

[0137] In one embodiment, the bill information recognition device further includes:

[0138] A text complete area determination module is used to determine the text complete area according to the semantic detection result;

[0139] The information output module is also used to output identification information of the medical bill based on the text recognized in the complete text area.

[0140] In one embodiment, based on a preset region segmentation model, before performing region segmentation on the medical bill image to be identified, the method further includes:

[0141] Acquire an initial bill image, and perform table correction on the initial bill image;

[0142] Perform spectral adjustment and color adjustment on the bill image after form correction;

[0143] The bill image after spectrum adjustment and color adjustment is resized and pixel rasterized to obtain a bill image to be recognized.

[0144] In one embodiment, the text missing area includes at least one of a text and table overlapping area, a text and stamp overlapping area, a text and text overlapping area, and a text blurred area.

[0145] According to one embodiment of the present invention, a storage medium is provided, wherein the storage medium stores at least one executable instruction, and the computer executable instruction can execute the bill information recognition method in any of the above method embodiments.

[0146] Figure 6 A schematic diagram of the structure of a computer device provided according to an embodiment of the present invention is shown. The specific embodiment of the present invention does not limit the specific implementation of the computer device.

[0147] like Figure 6 As shown, the computer device may include: a processor (processor) 602 , a communication interface (Communications Interface) 604 , a memory (memory) 606 , and a communication bus 608 .

[0148] The processor 602 , the communication interface 604 , and the memory 606 communicate with each other via a communication bus 608 .

[0149] The communication interface 604 is used to communicate with other devices such as clients or other servers.

[0150] The processor 602 is used to execute the program 610, and specifically can execute the relevant steps in the above-mentioned bill information identification method embodiment.

[0151] Specifically, the program 610 may include program codes, which include computer operation instructions.

[0152] The processor 602 may be a central processing unit (CPU), or an application-specific integrated circuit (ASIC), or one or more integrated circuits configured to implement the embodiments of the present invention. The one or more processors included in the computer device may be processors of the same type, such as one or more CPUs; or processors of different types, such as one or more CPUs and one or more ASICs.

[0153] The memory 606 is used to store the program 610. The memory 606 may include a high-speed RAM memory, and may also include a non-volatile memory (non-volatile memory), such as at least one disk memory.

[0154] The program 610 may be specifically configured to enable the processor 602 to perform the following operations:

[0155] Performing text recognition on the medical bill image to be recognized, determining the text missing area and the complete characters and missing characters in the text missing area;

[0156] The complete characters and the missing characters are combined into a phrase to be recognized, and the word vectors of the phrase to be recognized are matched based on a preset medical word library to determine the candidate correcting characters corresponding to the missing characters;

[0157] Identify the strokes in the missing character, match the strokes with the candidate correcting characters, and determine the target correcting character corresponding to the missing character;

[0158] Based on the complete word and the target corrected word, the identification information of the medical bill is output.

[0159] Obviously, those skilled in the art should understand that the above modules or steps of the present invention can be implemented by a general computing device, they can be concentrated on a single computing device, or distributed on a network composed of multiple computing devices. In one embodiment, they can be implemented by a program code executable by a computing device, so that they can be stored in a storage device and executed by the computing device, and in some cases, the steps shown or described can be executed in a different order than here, or they can be made into individual integrated circuit modules, or multiple modules or steps therein can be made into a single integrated circuit module for implementation. Thus, the present invention is not limited to any specific combination of hardware and software.

[0160] The above embodiments are only exemplary embodiments of the present application and are not intended to limit the present application. The protection scope of the present application is defined by the claims. Those skilled in the art may make various modifications or equivalent substitutions to the present application within the essence and protection scope of the present application, and such modifications or equivalent substitutions shall also be deemed to fall within the protection scope of the present application.

Claims

1. A bill information recognition method, characterized in that: include: Performing text recognition on the medical bill image to be recognized, determining the text missing area and the complete characters and missing characters in the text missing area; The complete word and the missing word form a phrase to be recognized, and word vector matching is performed on the phrase to be recognized based on a preset medical word library to determine a candidate correcting word corresponding to the missing word; Identify the strokes in the missing character, match the strokes with the candidate corrected characters, and determine the target corrected character corresponding to the missing character; Outputting identification information of the medical bill based on the complete word and the target corrected word; The step of identifying the strokes in the missing character, matching the strokes with the candidate corrected characters, and determining a target corrected character corresponding to the missing character includes: Identify the strokes in the missing character, and generate a character to be corrected according to the positions of the strokes; The character to be corrected is matched with the candidate corrected characters by stroke matching to determine the target corrected character corresponding to the missing character.

2. The bill information recognition method according to claim 1, characterized in that: The step of combining the complete word and the missing word into a phrase to be recognized, performing word vector matching on the phrase to be recognized based on a preset medical word library, and determining a candidate correcting word corresponding to the missing word includes: Combining the complete word and the missing word into a phrase to be recognized; Based on the number of characters in the phrase to be recognized, the complete characters and the placeholders of the complete characters, the phrase to be recognized is matched with the phrases in a preset medical word library to determine a candidate phrase; Based on the placeholders of the missing characters in the candidate phrases and the phrases to be recognized, candidate correcting characters corresponding to the missing characters are determined.

3. The bill information recognition method according to claim 1, characterized in that: The step of performing text recognition on the medical bill image to be recognized and determining the text missing area and the complete characters and missing characters in the text missing area includes: Based on a preset region segmentation model, the medical bill image to be identified is segmented to obtain multiple image regions; Based on a preset text setting position and a preset text recognition model, text recognition is performed on each image area respectively; Semantic detection is performed on the recognized text, and a text missing area is determined according to the semantic detection result, and complete characters and missing characters in the text missing area are determined based on the recognized text.

4. The bill information recognition method according to claim 3, characterized in that: After performing semantic detection on the recognized text, the method further includes: According to the semantic detection result, a complete text area is determined, and based on the text recognized in the complete text area, identification information of the medical bill is output.

5. The bill information recognition method according to claim 3, characterized in that: Before performing regional segmentation on the medical bill image to be identified based on the preset regional segmentation model, the method further includes: Acquire an initial bill image, and perform table correction on the initial bill image; Perform spectral adjustment and color adjustment on the bill image after table correction; The bill image after spectrum adjustment and color adjustment is resized and pixel rasterized to obtain a bill image to be recognized.

6. The bill information recognition method according to any one of claims 1 to 5, characterized in that: The text missing area includes at least one of a text and table overlapping area, a text and stamp overlapping area, a text and text overlapping area and a text fuzzy area.

7. A bill information recognition device, characterized in that: include: A missing character region determination module is used to perform character recognition on the medical bill image to be recognized, and determine the missing character region and the complete characters and missing characters in the missing character region; A candidate correction character determination module is used to combine the complete character and the missing character into a phrase to be recognized, perform word vector matching on the phrase to be recognized based on a preset medical word library, and determine a candidate correction character corresponding to the missing character; A target corrected character determination module is used to identify the strokes in the missing character, match the strokes with the candidate corrected characters, and determine the target corrected character corresponding to the missing character; An information output module, used for outputting identification information of the medical bill based on the complete character and the target corrected character; The target correction word determination module is also used for: Identify the strokes in the missing character, and generate a character to be corrected according to the positions of the strokes; The character to be corrected is matched with the candidate corrected characters by stroke matching to determine the target corrected character corresponding to the missing character.

8. A storage medium storing at least one executable instruction, wherein the executable instruction enables a processor to execute an operation corresponding to the bill information identification method according to any one of claims 1 to 6.

9. A computer device comprising: A processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface communicate with each other via the communication bus; The memory is used to store at least one executable instruction, and the executable instruction enables the processor to perform operations corresponding to the bill information identification method according to any one of claims 1-6.

Citation Information

Patent Citations

  • Identification method of prefix letter of banknote

    CN105261109A

  • Character recognition method and device

    CN112651402A

  • Character recognition method and system based on Internet of Things

    CN114170604A