Continuous number condition verification method and device based on bill code number

The laser scanner and text detection model are used to identify bill information, combined with the tilt detection algorithm and image segmentation technology, to solve the problems of bill recognition result verification and serial number analysis, achieving efficient and accurate bill information processing and serial number detection, meeting the needs of meet business process requirements.

CN118762372APending Publication Date: 2024-10-11SHANGHAI XINGHAN INFORMATION TECH CO LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202410769454.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-14
Publication Date
2024-10-11

AI Technical Summary

Technical Problem

The existing technology cannot effectively verify the accuracy of the bill image recognition results and the serial numbers of the bills, and it is difficult to meet the needs of the business process.

Method used

Obtain bill image information through a laser scanner, use tilt detection algorithm and image segmentation technology to extract the seal area, combine with text detection model for identification and verification, classify bill serial number types, determine bill serial number status, and compare with historical database , calculate the proportion of consecutively numbered bills.

Benefits of technology

It improves the efficiency and accuracy of bill identification, ensures data accuracy, reduces manual review workload, flexibly adapts to different industry rules, detects consecutive bill numbers in a timely manner, and enhances business authenticity.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118762372A_ABST
    Figure CN118762372A_ABST
Patent Text Reader

Abstract

The invention discloses a continuous number condition verification method and device based on a bill code number, and relates to the technical field of information digitization, and the method comprises the steps: S1, obtaining bill information, S2, recognizing the bill information, S3, dividing continuous number types, S4, carrying out preliminary bill continuous number processing, and S5, carrying out secondary bill continuous number processing. According to the invention, the obtained bill image is rotated through a tilt detection algorithm, so that the subsequent positioning of the bill information can be smoothly carried out, a function of manually checking an identification result is provided, the accuracy of data is ensured, an operator can check specific item information according to own requirements, and the accuracy of the data is ensured. Meanwhile, when the continuous number condition of the bills is judged, different continuous number types are determined according to different bill codes more flexibly and reasonably, meanwhile, the bills in the same list are analyzed during detection, related bills in a historical database can be called for detection, and continuous numbers of the bills can be found in time.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of information digitization, and in particular to a method and device for checking the serial number status based on bill code numbers. Background Art

[0002] The bill code is a set of characters or numbers defined by the issuing institution or payment institution to distinguish different types of bills. The bill number is a serial number or number that uniquely identifies a specific bill. Bills also have consecutive numbers. In the invention patent with application number 202310899018.9, "a bill recognition result verification method, device, equipment and storage medium are disclosed, which relate to the field of image information digitization technology. The method includes: obtaining an image recognition result; the image recognition result includes information obtained after image recognition of the bill by an image recognition model; performing recognition accuracy verification on the image recognition result based on a preset accuracy verification rule to obtain an accuracy verification result; the accuracy verification result is used to indicate whether the image recognition result has passed the verification of the accuracy verification rule or the image recognition result has not passed the verification of the accuracy verification rule; and determining the verification confidence of the image recognition result based on the accuracy verification result. Through the above method, the accuracy of the image recognition result can be automatically verified and a reference to the accuracy of the image recognition result can be given, which reduces the process of manually determining the accuracy of the image recognition result and improves the accuracy verification efficiency and accuracy of the image recognition result."

[0003] The above-mentioned existing technology solves the problems of manual input and identification of information contained in bills, but the method does not review the image recognition results during use. Once the data obtained is wrong, it is difficult to ensure the accuracy of subsequent analysis. At the same time, the method can only judge the authenticity of the bill, and cannot analyze the serial numbers between bills. When a bill that violates the business process appears, it is difficult to use this method to verify it, so it cannot meet people's needs. Summary of the invention

[0004] The purpose of the present invention is to provide a method and device for checking the serial number of bill code numbers to solve the problems raised in the above background technology.

[0005] To achieve the above object, the present invention provides the following technical solution: a method for checking the consecutive number of bill codes, comprising the following steps:

[0006] S1. Obtaining bill information: After scanning all bills with a laser scanner, the acquired image information is transmitted to a storage device, the acquired image information is preprocessed, the length of all horizontal lines in the image is analyzed by a tilt detection algorithm, and the horizontal lines that reach the length value are placed in a straight line set. The image processing software is used to determine whether there is a horizontal line in the straight line set that intersects with the other horizontal lines. If so, the horizontal line is deleted. If not, the tilt detection algorithm is used to calculate the tilt angle of each horizontal line, and the average value is the tilt angle of the bill. The seal area on the bill is extracted by image segmentation technology, the text information in the seal area is parsed and spliced, and the re-acquired image information is transmitted to a storage device;

[0007] S2. Identify bill information: obtain image information in the storage device, analyze the image information using the text detection model, thereby determining the position coordinates of all text lines in the bill, identify the image information according to the position coordinates of all text lines using the text recognition function, and transmit the recognition result to the visual interface. When manually reviewing the content of the recognition result, extract the content that meets the review items in the recognition result through the application program and output it using the visual interface. If the review result is not passed, adjust the recognition result using the application software, and transmit it and the bill image information to the database. After retrieving the recognition result and the bill image information in the database, use the bill verification software to verify the bill information contained in the recognition result. If the verification fails, delete the recognition result and the bill image information from the database.

[0008] S3. Classification of serial number types: The serial number types of bills are divided into three types, namely, the first type, the second type and the third type. The first type refers to that the numbers of multiple bills are the same except for the last digit, and the last digits are continuous. The second type refers to setting a specific value, and the interval number between multiple bill numbers is less than or equal to the specific value. The third type refers to that the time and issuance information of multiple bills are consistent;

[0009] S4. Preliminary bill serial number processing: Determine the serial number type of the bill according to the bill code. If the bill code belongs to the first type, when there are two or more bills with the same number except the last digit, and the last digits are continuous, it is determined to be a bill serial number. If the bill code belongs to the second type, set the feature value. If the bill code belongs to the third type, set the bill issue item information. Determine the text information, code and number related information of the bill according to the recognition result. Classify all bill information by bill code, store bill information with the same bill code in the same list, and judge the serial number of each bill information in the list according to the serial number type of the bill code. If it is determined that there is no bill serial number, retrieve all bill information with the same bill code stored in the historical information database.

[0010] S5. Secondary bill serial number processing: The bill information in the list is compared with the bill information stored in the historical information database to determine whether the bills have serial numbers. If there are serial numbers, the bill information and serial number type are output through a visual interface, and the processor is used to calculate the proportion of serial number bills in the list.

[0011] Preferably, the S1 comprises the following steps:

[0012] S101, after scanning all bills with a laser scanner, the acquired image information is transmitted to a storage device;

[0013] S102, graying the collected image information, removing the existing noise in the image by Gaussian filtering, and then performing edge detection on the image information from front to back and from left to right by using the Sobel edge detection operator, and removing all vertical lines in the bill image by weighted operation, while retaining the horizontal lines.

[0014] Preferably, the S1 further comprises the following steps:

[0015] S103, the lengths of all horizontal lines in the image are analyzed by using a tilt detection algorithm, the length value is set in advance, and the horizontal lines that reach the length value are placed in a straight line set. The image processing software is used to determine whether there is a horizontal line in the straight line set that intersects with the other horizontal lines. If so, the horizontal line is deleted. If not, the tilt detection algorithm is used to calculate the tilt angle of each horizontal line, and the average value is the tilt angle of the bill. The image is rotated according to the tilt angle. The tilt detection algorithm is specifically:

[0016]

[0017] In the formula, (x, y) represents the coordinates of the original image pixel point P, (x1, y1) represents the coordinates of the current image pixel point P1, and θ represents the image rotation angle;

[0018] S104, extracting the seal area on the bill using image segmentation technology, setting a color threshold, parsing the text information in the seal area, splicing it with the original image, and transmitting the re-acquired image information to a storage device.

[0019] Preferably, S2 comprises the following steps:

[0020] S201, acquiring image information in a storage device, analyzing the image information using a text detection model, and deleting redundant model parameters using a model pruning technique, thereby determining the position coordinates of all text lines in the bill, identifying the image information according to the position coordinates of all text lines using a text recognition function, and transmitting the recognition result to a visualization interface, wherein the text detection model includes a position prediction algorithm, and the position prediction algorithm is specifically:

[0021]

[0022] In the formula, {v c ,v h} represents the predicted coordinates, represents the real coordinates, Indicates the y-axis coordinate of the fixed anchor point, h a Indicates the height of the fixed anchor point, c y represents the predicted y-axis coordinate, and h represents the predicted height. represents the real y-axis coordinate, h * Indicates the true height;

[0023] S202. When manually reviewing the contents of the recognition results, it is necessary to set the review items, use the application to extract the contents of the recognition results that meet the review items, and output them through a visual interface. If the review result is passed, the recognition result and the bill image information are transmitted to the database. If the review result is not passed, the recognition result and the bill image information are adjusted by the application software and then transmitted to the database.

[0024] Preferably, the S2 further comprises the following steps:

[0025] S203. After retrieving the recognition results and bill image information from the database, the bill information contained in the recognition results is verified using the bill verification software. If the verification passes, no operation is performed. If the verification fails, it is output using a visual interface and the recognition results and bill image information are deleted from the database.

[0026] Preferably, S4 comprises the following steps:

[0027] S401. Determine the serial number type of the bill according to the bill code. If the bill code belongs to the first type, when there are two or more bills with the same number except the last digit, and the last digits are continuous, the bills are determined to be serial numbers. If the bill code belongs to the second type, set a characteristic value. When the interval between the numbers of multiple bills is less than or equal to the value, the bills are determined to be serial numbers. If the bill code belongs to the third type, set the ticket item information. When the time and the designated item information of multiple bills are the same, the bills are determined to be serial numbers.

[0028] S402, obtaining all recognition results and bill image information from the database, and determining the bill text information, code and number-related information according to the recognition results.

[0029] Preferably, the S4 further comprises the following steps:

[0030] S403, traversing all the bill information through the processor, classifying all the bill information by bill codes, and storing the bill information with the same bill code in the same list;

[0031] S404. Determine the serial number status of each bill information in the list according to the serial number type of the bill code. If it is determined that the bill serial number exists, the bill information with the serial number and the serial number type are output through a visual interface. If it is determined that the bill serial number does not exist, all bill information with the same bill code stored in the historical information database is retrieved.

[0032] Preferably, S5 comprises the following steps:

[0033] S501, determining whether the bill information in the list is serially numbered with the bill information stored in the historical information database. If it is determined that there is no serial number of bills, all the bill information in the list is stored in the historical database. If there is a serial number of bills, the bill information of the serial number and the serial number type are output through a visual interface;

[0034] S502: Utilize the processor to calculate the proportion of the bills with serial numbers in the list. If the proportion is higher than a preset value, it is determined that the list is abnormal. Otherwise, no operation is performed.

[0035] A device for checking the serial number of a bill code number, comprising:

[0036] The information collection module uses a laser scanner to scan all the bills and transmits the acquired image information to a storage device;

[0037] The image processing module pre-processes the collected image information, calculates the tilt angle of each horizontal line in the image using the tilt detection algorithm, and takes the average value as the tilt angle of the bill. It uses the image segmentation technology to extract the seal area on the bill, parses and splices the text information in the seal area, and transmits the re-acquired image information to the storage device;

[0038] The bill recognition module uses the text detection model to analyze the image information, thereby determining the coordinates of all text lines in the bill, and uses the text recognition function to recognize the image information according to the coordinates of all text lines, and transmits the recognition results to the visualization interface. The bill verification software is used to verify the bill information contained in the recognition results;

[0039] The bill analysis module determines the serial number type of the bill according to the bill code, analyzes the text information, code and number-related information of the bill according to the recognition result, classifies all bill information by using the bill code, stores the bill information with the same bill code in the same list, and judges the serial number situation of each bill information in the list according to the serial number type of the bill code. If it is determined that there is no serial number of the bill, all the bill information with the same bill code stored in the historical information database is retrieved, the serial number situation of the bill information in the list and the bill information stored in the historical information database are judged, and the processor is used to calculate the proportion of bills with serial numbers in the list.

[0040] Compared with the prior art, the present invention has the following beneficial effects:

[0041] The present invention rotates the acquired bill image through a tilt detection algorithm, so that the subsequent positioning of the bill information can be smoothly carried out, and the text detection model can be used to more accurately and quickly obtain the positions of all text lines in the bill information, thereby improving the efficiency of bill recognition. Since a function of manually reviewing the recognition results is provided, the accuracy of the data is guaranteed. At the same time, in order to reduce the workload of manual review, it is not necessary to check all the information in the bill. The operator can check specific item information according to his own needs. At the same time, when judging the serial number situation of the bill, different serial number types will be determined according to different bill codes. In the detection process, different rules can be adopted for analysis of bills in different industries, which is more flexible and reasonable. At the same time, during the detection, not only the bills in the same list are analyzed, but also the relevant bills in the historical database are retrieved for detection. When the bill has a serial number, it can be discovered in time, thereby increasing the authenticity of the corresponding business of the bill. BRIEF DESCRIPTION OF THE DRAWINGS

[0042] Figure 1Provide an overall method flow chart for an embodiment of the present invention;

[0043] Figure 2 Provide a flow chart for obtaining bill information for an embodiment of the present invention;

[0044] Figure 3 Provides a flow chart for identifying bill information for an embodiment of the present invention;

[0045] Figure 4 A preliminary bill serial number processing flow chart is provided for an embodiment of the present invention;

[0046] Figure 5 A flowchart of secondary bill serial number processing is provided for an embodiment of the present invention. DETAILED DESCRIPTION

[0047] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0048] See also Figure 1-5 The present invention provides a technical solution: a method for checking the consecutive number of bill code numbers, comprising the following steps:

[0049] S1. Obtaining bill information: After scanning all bills with a laser scanner, the acquired image information is transmitted to a storage device, the acquired image information is preprocessed, the length of all horizontal lines in the image is analyzed by a tilt detection algorithm, and the horizontal lines that reach the length value are placed in a straight line set. The image processing software is used to determine whether there is a horizontal line in the straight line set that intersects with the other horizontal lines. If so, the horizontal line is deleted. If not, the tilt detection algorithm is used to calculate the tilt angle of each horizontal line, and the average value is the tilt angle of the bill. The seal area on the bill is extracted by image segmentation technology, the text information in the seal area is parsed and spliced, and the re-acquired image information is transmitted to a storage device;

[0050] S2. Identify bill information: obtain image information in the storage device, analyze the image information using the text detection model, thereby determining the position coordinates of all text lines in the bill, identify the image information according to the position coordinates of all text lines using the text recognition function, and transmit the recognition result to the visual interface. When manually reviewing the content of the recognition result, extract the content that meets the review items in the recognition result through the application program and output it using the visual interface. If the review result is not passed, adjust the recognition result using the application software, and transmit it and the bill image information to the database. After retrieving the recognition result and the bill image information in the database, use the bill verification software to verify the bill information contained in the recognition result. If the verification fails, delete the recognition result and the bill image information from the database.

[0051] S3. Classification of serial number types: The serial number types of bills are divided into three types, namely, the first type, the second type and the third type. The first type refers to that the numbers of multiple bills are the same except for the last digit, and the last digits are continuous. The second type refers to setting a specific value, and the interval number between multiple bill numbers is less than or equal to the specific value. The third type refers to that the time and issuance information of multiple bills are consistent;

[0052] S4. Preliminary bill serial number processing: Determine the serial number type of the bill according to the bill code. If the bill code belongs to the first type, when there are two or more bills with the same number except the last digit, and the last digits are continuous, it is determined to be a bill serial number. If the bill code belongs to the second type, set the feature value. If the bill code belongs to the third type, set the bill issue item information. Determine the text information, code and number related information of the bill according to the recognition result. Classify all bill information by bill code, store bill information with the same bill code in the same list, and judge the serial number of each bill information in the list according to the serial number type of the bill code. If it is determined that there is no bill serial number, retrieve all bill information with the same bill code stored in the historical information database.

[0053] S5. Secondary bill serial number processing: The bill information in the list is compared with the bill information stored in the historical information database to determine whether the bills have serial numbers. If there are serial numbers, the bill information and serial number type are output through a visual interface, and the processor is used to calculate the proportion of serial number bills in the list.

[0054] S1 includes the following steps:

[0055] S101, after scanning all bills with a laser scanner, the acquired image information is transmitted to a storage device;

[0056] S102, graying the collected image information, removing the existing noise in the image by Gaussian filtering, and then performing edge detection on the image information from front to back and from left to right by using the Sobel edge detection operator, and removing all vertical lines in the bill image by weighted operation, while retaining the horizontal lines.

[0057] S1 also includes the following steps:

[0058] S103, the lengths of all horizontal lines in the image are analyzed by using a tilt detection algorithm, the length value is set in advance, and the horizontal lines that reach the length value are placed in a straight line set. The image processing software is used to determine whether there is a horizontal line in the straight line set that intersects with the other horizontal lines. If so, the horizontal line is deleted. If not, the tilt detection algorithm is used to calculate the tilt angle of each horizontal line, and the average value is the tilt angle of the bill. The image is rotated according to the tilt angle. The tilt detection algorithm is specifically as follows:

[0059]

[0060] In the formula, (x, y) represents the coordinates of the original image pixel point P, (x1, y1) represents the coordinates of the current image pixel point P1, and θ represents the image rotation angle;

[0061] S104, extracting the seal area on the bill using image segmentation technology, setting a color threshold, parsing the text information in the seal area, splicing it with the original image, and transmitting the re-acquired image information to a storage device.

[0062] S2 includes the following steps:

[0063] S201, obtaining image information in a storage device, analyzing the image information using a text detection model, and deleting redundant model parameters using a model pruning technique, thereby determining the position coordinates of all text lines in the bill, identifying the image information according to the position coordinates of all text lines using a text recognition function, and transmitting the recognition results to a visualization interface. The text detection model includes a position prediction algorithm, which is specifically:

[0064]

[0065] In the formula, {v c ,v h} represents the predicted coordinates, represents the real coordinates, Indicates the y-axis coordinate of the fixed anchor point, h a Indicates the height of the fixed anchor point, c y represents the predicted y-axis coordinate, and h represents the predicted height. represents the real y-axis coordinate, h * Indicates the true height;

[0066] The text detection model includes a classification loss algorithm, which is as follows:

[0067]

[0068] In the formula, represents the classification loss, represents the regression loss in the vertical direction, represents the regression loss in the horizontal direction, {s i ,v j ,o k} represents the network prediction output, represents the true value label, {λ1, λ2} represents the weight coefficient, {N s ,N v ,N o} represents the normalization parameter, L represents the horizontal offset;

[0069] S202. When manually reviewing the contents of the recognition results, it is necessary to set the review items, use the application to extract the contents of the recognition results that meet the review items, and output them through a visual interface. If the review result is passed, the recognition result and the bill image information are transmitted to the database. If the review result is not passed, the recognition result and the bill image information are adjusted by the application software and then transmitted to the database.

[0070] S2 also includes the following steps:

[0071] S203. After retrieving the recognition results and bill image information from the database, the bill information contained in the recognition results is verified using the bill verification software. If the verification passes, no operation is performed. If the verification fails, it is output using a visual interface and the recognition results and bill image information are deleted from the database.

[0072] S4 includes the following steps:

[0073] S401. Determine the serial number type of the bill according to the bill code. If the bill code belongs to the first type, when there are two or more bills with the same number except the last digit, and the last digits are continuous, the bills are determined to be serial numbers. If the bill code belongs to the second type, set a characteristic value. When the interval between the numbers of multiple bills is less than or equal to the value, the bills are determined to be serial numbers. If the bill code belongs to the third type, set the ticket item information. When the time and the designated item information of multiple bills are the same, the bills are determined to be serial numbers.

[0074] S402, obtaining all recognition results and bill image information from the database, and determining the bill text information, code and number-related information according to the recognition results.

[0075] S4 also includes the following steps:

[0076] S403, traversing all the bill information through the processor, classifying all the bill information by bill codes, and storing the bill information with the same bill code in the same list;

[0077] S404. Determine the serial number status of each bill information in the list according to the serial number type of the bill code. If it is determined that the bill serial number exists, the bill information with the serial number and the serial number type are output through a visual interface. If it is determined that the bill serial number does not exist, all bill information with the same bill code stored in the historical information database is retrieved.

[0078] S5 includes the following steps:

[0079] S501, determining whether the bill information in the list is serially numbered with the bill information stored in the historical information database. If it is determined that there is no serial number of bills, all the bill information in the list is stored in the historical database. If there is a serial number of bills, the bill information of the serial number and the serial number type are output through a visual interface;

[0080] S502: Utilize the processor to calculate the proportion of the bills with serial numbers in the list. If the proportion is higher than a preset value, it is determined that the list is abnormal. Otherwise, no operation is performed.

[0081] A device for checking the serial number of a bill code number, comprising:

[0082] The information collection module uses a laser scanner to scan all the bills and transmits the acquired image information to a storage device;

[0083] The image processing module pre-processes the collected image information, calculates the tilt angle of each horizontal line in the image using the tilt detection algorithm, and takes the average value as the tilt angle of the bill. It uses the image segmentation technology to extract the seal area on the bill, parses and splices the text information in the seal area, and transmits the re-acquired image information to the storage device;

[0084] The bill recognition module uses the text detection model to analyze the image information, thereby determining the coordinates of all text lines in the bill, and uses the text recognition function to recognize the image information according to the coordinates of all text lines, and transmits the recognition results to the visualization interface. The bill verification software is used to verify the bill information contained in the recognition results;

[0085] The bill analysis module determines the serial number type of the bill according to the bill code, analyzes the text information, code and number-related information of the bill according to the recognition result, classifies all bill information by using the bill code, stores the bill information with the same bill code in the same list, and judges the serial number situation of each bill information in the list according to the serial number type of the bill code. If it is determined that there is no serial number of the bill, all the bill information with the same bill code stored in the historical information database is retrieved, the serial number situation of the bill information in the list and the bill information stored in the historical information database are judged, and the processor is used to calculate the proportion of bills with serial numbers in the list.

[0086] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device.

[0087] Although embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that various changes, modifications, substitutions and variations may be made to the embodiments without departing from the principles and spirit of the present invention, and that the scope of the present invention is defined by the appended claims and their equivalents.

Claims

1. A method for checking the serial number based on the bill code number. Features: The following steps are involved: S1. Obtaining bill information: After scanning all bills with a laser scanner, the acquired image information is transmitted to a storage device, the acquired image information is preprocessed, the length of all horizontal lines in the image is analyzed by a tilt detection algorithm, and the horizontal lines that reach the length value are placed in a straight line set. The image processing software is used to determine whether there is a horizontal line in the straight line set that intersects with the other horizontal lines. If so, the horizontal line is deleted. If not, the tilt detection algorithm is used to calculate the tilt angle of each horizontal line, and the average value is the tilt angle of the bill. The seal area on the bill is extracted by image segmentation technology, the text information in the seal area is parsed and spliced, and the re-acquired image information is transmitted to a storage device; S2. Identify bill information: obtain image information in the storage device, analyze the image information using the text detection model, thereby determining the position coordinates of all text lines in the bill, identify the image information according to the position coordinates of all text lines using the text recognition function, and transmit the recognition result to the visual interface. When manually reviewing the content of the recognition result, extract the content that meets the review items in the recognition result through the application program and output it using the visual interface. If the review result is not passed, adjust the recognition result using the application software, and transmit it and the bill image information to the database. After retrieving the recognition result and the bill image information in the database, use the bill verification software to verify the bill information contained in the recognition result. If the verification fails, delete the recognition result and the bill image information from the database. S3. Classification of serial number types: The serial number types of bills are divided into three types, namely, the first type, the second type and the third type. The first type refers to that the numbers of multiple bills are the same except for the last digit, and the last digits are continuous. The second type refers to setting a specific value, and the interval number between multiple bill numbers is less than or equal to the specific value. The third type refers to that the time and issuance information of multiple bills are consistent; S4. Preliminary bill serial number processing: Determine the serial number type of the bill according to the bill code. If the bill code belongs to the first type, when there are two or more bills with the same number except the last digit, and the last digits are continuous, it is determined to be a bill serial number. If the bill code belongs to the second type, set the feature value. If the bill code belongs to the third type, set the bill issue item information. Determine the text information, code and number related information of the bill according to the recognition result. Classify all bill information by bill code, store bill information with the same bill code in the same list, and judge the serial number of each bill information in the list according to the serial number type of the bill code. If it is determined that there is no bill serial number, retrieve all bill information with the same bill code stored in the historical information database. S5. Secondary bill serial number processing: The bill information in the list is compared with the bill information stored in the historical information database to determine whether the bills have serial numbers. If there are serial numbers, the bill information and serial number type are output through a visual interface, and the processor is used to calculate the proportion of serial number bills in the list.

2. A method for checking the serial number of a bill code number according to claim 1, Features: The S1 comprises the following steps: S101, after scanning all bills with a laser scanner, the acquired image information is transmitted to a storage device; S102, graying the collected image information, removing the existing noise in the image by Gaussian filtering, and then performing edge detection on the image information from front to back and from left to right by using the Sobel edge detection operator, and removing all vertical lines in the bill image by weighted operation, while retaining the horizontal lines.

3. A method for checking the serial number of a bill code number according to claim 1, Features: The S1 further comprises the following steps: S103, analyzing the lengths of all horizontal lines in the image by using a tilt detection algorithm, setting a length value in advance, placing horizontal lines that reach the length value into a straight line set, and using image processing software to determine whether there is a horizontal line in the straight line set that intersects with the other horizontal lines. If so, delete the horizontal line; if not, calculate the tilt angle of each horizontal line by using a tilt detection algorithm, and take the average value as the tilt angle of the bill, and rotate the image according to the tilt angle; S104, extracting the seal area on the bill using image segmentation technology, setting a color threshold, parsing the text information in the seal area, splicing it with the original image, and transmitting the re-acquired image information to a storage device.

4. A method for checking the serial number of a bill code number according to claim 1, Features: The S2 comprises the following steps: S201, acquiring image information in a storage device, analyzing the image information using a text detection model, and deleting redundant model parameters using a model pruning technique, thereby determining the position coordinates of all text lines in the bill, recognizing the image information according to the position coordinates of all text lines using a text recognition function, and transmitting the recognition results to a visualization interface; S202. When manually reviewing the contents of the recognition results, it is necessary to set the review items, use the application to extract the contents of the recognition results that meet the review items, and output them through a visual interface. If the review result is passed, the recognition result and the bill image information are transmitted to the database. If the review result is not passed, the recognition result and the bill image information are adjusted by the application software and then transmitted to the database.

5. A method for checking the serial number based on the bill code number according to claim 1, Features: The S2 further comprises the following steps: S203. After retrieving the recognition results and bill image information from the database, the bill information contained in the recognition results is verified using the bill verification software. If the verification passes, no operation is performed. If the verification fails, it is output using a visual interface and the recognition results and bill image information are deleted from the database.

6. A method for checking the serial number of a bill code number according to claim 1, Features: The S4 comprises the following steps: S401. Determine the serial number type of the bill according to the bill code. If the bill code belongs to the first type, when there are two or more bills with the same number except the last digit, and the last digits are continuous, the bills are determined to be serial numbers. If the bill code belongs to the second type, set a characteristic value. When the interval between the numbers of multiple bills is less than or equal to the value, the bills are determined to be serial numbers. If the bill code belongs to the third type, set the ticket item information. When the time and the designated item information of multiple bills are the same, the bills are determined to be serial numbers. S402, obtaining all recognition results and bill image information from the database, and determining the bill text information, code and number-related information according to the recognition results.

7. A method for checking the serial number of a bill code number according to claim 1, Features: The S4 further comprises the following steps: S403, traversing all the bill information through the processor, classifying all the bill information by bill codes, and storing the bill information with the same bill code in the same list; S404. Determine the serial number status of each bill information in the list according to the serial number type of the bill code. If it is determined that the bill serial number exists, the bill information with the serial number and the serial number type are output through a visual interface. If it is determined that the bill serial number does not exist, all bill information with the same bill code stored in the historical information database is retrieved.

8. A method for checking the serial number based on the bill code number according to claim 1, Features: The S5 comprises the following steps: S501, determining whether the bill information in the list is serially numbered with the bill information stored in the historical information database. If it is determined that there is no serial number of bills, all the bill information in the list is stored in the historical database. If there is a serial number of bills, the bill information of the serial number and the serial number type are output through a visual interface; S502: Utilize the processor to calculate the proportion of the bills with serial numbers in the list. If the proportion is higher than a preset value, it is determined that the list is abnormal. Otherwise, no operation is performed.

9. A device for checking the serial number of a bill code number, It is characterized in that include: The information collection module uses a laser scanner to scan all the bills and transmits the acquired image information to a storage device; The image processing module pre-processes the collected image information, calculates the tilt angle of each horizontal line in the image using the tilt detection algorithm, and takes the average value as the tilt angle of the bill. It uses the image segmentation technology to extract the seal area on the bill, parses and splices the text information in the seal area, and transmits the re-acquired image information to the storage device; The bill recognition module uses the text detection model to analyze the image information, thereby determining the coordinates of all text lines in the bill, and uses the text recognition function to recognize the image information according to the coordinates of all text lines, and transmits the recognition results to the visualization interface. The bill verification software is used to verify the bill information contained in the recognition results; The bill analysis module determines the serial number type of the bill according to the bill code, analyzes the text information, code and number-related information of the bill according to the recognition result, classifies all bill information by using the bill code, stores the bill information with the same bill code in the same list, and judges the serial number situation of each bill information in the list according to the serial number type of the bill code. If it is determined that there is no serial number of the bill, all the bill information with the same bill code stored in the historical information database is retrieved, the serial number situation of the bill information in the list and the bill information stored in the historical information database are judged, and the processor is used to calculate the proportion of bills with serial numbers in the list.

Citation Information

Cited By

  • Non-intrusive invoice data acquisition and consecutive number violation intelligent identification and early warning system and method

    CN122019819A