CN-116092093-B - Identification cutting method and system for mixed-pasting bill
Abstract
The invention provides a method and a system for identifying and cutting mixed bills, wherein the method comprises the steps of obtaining mask data of a plurality of single bills after bill detection, filtering the mask data according to a set threshold value to obtain mask data meeting the conditions, calculating a minimum outsourcing rectangle after mask combination of the mask data meeting the conditions, and cutting the obtained minimum outsourcing rectangle position in an array mode. The identification and cutting method for the mixed-pasting notes detects different notes, has high accuracy without missed detection, effectively improves the efficiency and accuracy of document classification, saves labor and has huge application value.
Inventors
- YANG JIANLI
Assignees
- 金科览智科技(北京)有限公司
Dates
- Publication Date
- 20260505
- Application Date
- 20230224
Claims (6)
- 1. The identification and cutting method for the mixed-pasting bill is characterized by comprising the following steps of: obtaining mask data of a plurality of single notes after note detection, and filtering the mask data according to a set threshold value to obtain mask data meeting the conditions; after the mask data meeting the conditions are subjected to mask combination, calculating a minimum outsourcing rectangle, and cutting the obtained position of the minimum outsourcing rectangle by using an array mode; Using MaskRCNN as a basic network structure and swin-transfomer as a backbone network to detect the bill; The mask merging method comprises merging the obtained mask data with respect to the mask data divided into a plurality of parts; calculating a minimum bounding rectangle using findContours and MINAREARECT; the method for calculating the minimum outsourcing rectangle comprises the following steps: Mapping the detected results of the bills to obtain corresponding bill classifications, classifying the bills of the same category, respectively calculating the area of each bill in each category, and arranging the formed area from large to small; And carrying out region screening on the formed multiple region areas, wherein the region screening standard is that each region area corresponds to a region mask formed after the mask merging operation, and the misjudged region mask is filtered.
- 2. The identification cutting method according to claim 1, wherein the method of region screening comprises: And respectively carrying out two-by-two calculation on the area of the bill of the same category, calculating the ratio of the intersection area inter of the two areas to the area of the larger area, when the ratio is smaller than Thr2, considering the two areas as different bills, and if the ratio is larger than Thr2, considering the two areas as belonging to the same bill, and filtering out the area of the smaller area.
- 3. The identification and cutting method according to claim 2, wherein before bill detection, a solid color frame is added to the input picture to obtain a mixed-pasting bill picture to be detected.
- 4. A recognition cutting system employing the recognition cutting method of any one of claims 1 to 3, characterized by comprising: the mask processing module is used for obtaining mask data of a plurality of single notes after the notes are detected, and filtering the mask data according to a set threshold value to obtain mask data meeting the conditions; And the cutting module is used for carrying out mask combination on the mask data meeting the conditions, calculating a minimum outsourcing rectangle, and cutting the obtained position of the minimum outsourcing rectangle by using an array mode.
- 5. A computer readable storage medium having stored thereon a computer program, wherein the program when executed performs the steps of identifying and cutting a mixed ticket as claimed in any one of claims 1 to 3.
- 6. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor performs the steps of identifying and cutting a tamper evident ticket according to any one of claims 1 to 3 when the program is executed by the processor.
Description
Identification cutting method and system for mixed-pasting bill Technical Field The invention relates to the field of mixed-pasting bill processing, in particular to a method and a system for identifying and cutting mixed-pasting bills. Background In business operations, there have been a wide variety of notes, including value-added tax invoices, rating invoices, general machine invoices, travel reimbursement invoices, and the like. In the filing and sorting process of finance, the statistics and sorting of the information of the mixed and pasted notes are always heavy work by using a manual mode, errors are easy to occur, and the complexity of the environment also affects the accuracy of note identification and classification especially in the scene that a large number of mixed and pasted notes are identified. The problems of mixed-pasting bill identification in the prior art are that (1) the background of mixed-pasting bill is complex, the overlapping degree of the bills after pasting is high, the detection of the bills is greatly interfered, and (2) the variety of the bill types is a problem for detecting different types of bills. The operation methods of the existing bill identification and cutting methods are single, and the detection omission is easy to cause under the actual application environment. In view of this, the present invention has been made. Disclosure of Invention In view of the above, the invention discloses a method for identifying and cutting mixed-pasting notes, which fully utilizes an image processing technology, has simple operation in the whole image processing process, realizes detection of different notes in a classification cutting mode, has high accuracy, effectively improves the efficiency and accuracy of document classification, saves labor and has huge application value. Specifically, the invention is realized by the following technical scheme: In a first aspect, the invention discloses a method for identifying and cutting a mixed-pasting bill, which comprises the following steps: obtaining mask data of a plurality of single notes after note detection, and filtering the mask data according to a set threshold value to obtain mask data meeting the conditions; And after the mask data meeting the conditions are subjected to mask combination, calculating a minimum outsourcing rectangle, and cutting the obtained position of the minimum outsourcing rectangle by using an array mode. In a second aspect, the invention discloses a system for identifying and cutting a mixed note, which comprises the following steps: the mask processing module is used for obtaining mask data of a plurality of single notes after the notes are detected, and filtering the mask data according to a set threshold value to obtain mask data meeting the conditions; And the cutting module is used for carrying out mask combination on the mask data meeting the conditions, calculating a minimum outsourcing rectangle, and cutting the obtained position of the minimum outsourcing rectangle by using an array mode. In a third aspect, the present invention discloses a computer readable storage medium having stored thereon a computer program which when executed by a processor performs the steps of the identification and cutting method of a mixed ticket according to the first aspect. In a fourth aspect, the present invention discloses a computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the steps of the identification and cutting method for mixed-label notes according to the first aspect when executing the program. In a word, by adopting the identification and cutting method and the system for the mixed-pasting bill, the aim of accurately identifying and cutting the mixed-pasting bill by combining mask information and image feature matching is fulfilled. Drawings Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The drawings are only for purposes of illustrating the preferred embodiments and are not to be construed as limiting the invention. Also, like reference numerals are used to designate like parts throughout the figures. In the drawings: FIG. 1 is an operation flow chart of a method for identifying and cutting a mixed note provided by an embodiment of the invention; Fig. 2 is a schematic structural diagram of an identification and cutting system for a mixed bill according to an embodiment of the present invention; Fig. 3 is a schematic flow chart of a computer device according to an embodiment of the present invention. Detailed Description Reference will now be made in detail to exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numbers in different drawings refer to the same or simila