Bill recognition method, device, equipment and storage medium

By preprocessing and multi-scale feature extraction of bill images, combined with multi-branch fusion algorithms and natural language processing, the problem of poor bill recognition in the existing technology is solved, and accurate recognition and recognition of complex backgrounds and multiple types of bills are achieved. Judgment of authenticity.

CN118552973BActive Publication Date: 2024-09-27SHENZHEN QIANHAIZEJIN IND & FINANCE TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411004551.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-25
Publication Date
2024-09-27
Estimated Expiration
2044-07-25

AI Technical Summary

Technical Problem

Existing bill recognition methods have poor recognition results when faced with complex backgrounds and multiple types of bills. They are difficult to cope with changes in different bill templates and formats, and are susceptible to interference from counterfeiting technology, leading to recognition errors.

Method used

By preprocessing the bill image, locating the key information area, performing multi-scale feature extraction and attention enhancement, using a multi-branch fusion algorithm for information recognition and authenticity judgment, combined with optical character recognition and natural language processing, to achieve a comprehensive understanding of the bill Identification and authenticity judgment.

Benefits of technology

It improves the accuracy and efficiency of bill recognition, can better handle complex backgrounds and multiple types of bills, reduces the interference of counterfeiting technology, enhances the detection ability of local important areas of bills, and achieves more accurate authenticity judgments.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118552973B
    Figure CN118552973B
Patent Text Reader

Abstract

The present invention provides a bill recognition method, device, equipment and storage medium, wherein the method comprises: positioning the key information area of ​​the preprocessed image of the bill image; performing multi-scale feature extraction on multiple key information areas to obtain multi-scale attention enhancement features, and obtaining local important area images based on the attention enhancement features; using a multi-branch fusion algorithm to perform bill information recognition based on the attention enhancement features and the key information areas to obtain bill information recognition results; performing authenticity recognition based on the bill information recognition results and the local important area images to obtain bill authenticity recognition results. The method preprocesses the bill image to accurately locate the key information area in the bill, uses multi-scale feature extraction and attention enhancement technology to strengthen the detection of local important areas of the bill, and uses a multi-branch fusion algorithm to integrate multiple feature information to achieve comprehensive recognition and authenticity judgment of the bill.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

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

[0002] With the rapid development and widespread application of commerce, bills, as an important voucher, are widely used in many fields of commercial transactions. However, with the increasing popularity of bill use, the problem of bill counterfeiting has become increasingly serious, bringing huge economic losses and legal risks to enterprises and individuals. Traditional bill recognition methods mainly rely on manual review and simple image processing technology. When faced with a large number of bills, these methods have problems such as low efficiency, low accuracy, and susceptibility to human factors. Especially in the context of increasingly advanced bill counterfeiting technology, relying solely on manual and simple image processing technology can no longer meet actual needs. In order to improve the accuracy and efficiency of bill recognition, intelligent bill recognition technology has emerged.

[0003] In recent years, with the development of deep learning and computer vision technology, bill recognition methods based on image processing and machine learning have made significant progress. These methods can automatically identify the key information areas of bills and make authenticity judgments by extracting features and recognizing patterns on bill images. However, existing bill recognition methods still have some shortcomings. For example, the recognition effect is poor for complex backgrounds and multiple types of bills, it is difficult to cope with changes in different bill templates and formats, and when dealing with bill authenticity recognition, it is easily interfered by counterfeiting technology, resulting in recognition errors. Summary of the invention

[0004] The main purpose of the present invention is to solve the technical problems that the existing bill recognition method has poor recognition effect on complex backgrounds and multiple types of bills, and is difficult to cope with changes in different bill templates and formats.

[0005] A first aspect of the present invention provides a bill recognition method, the bill recognition method comprising:

[0006] Acquire a bill image of a target bill, preprocess the bill image to obtain a preprocessed image, and locate key information areas in the preprocessed image to obtain multiple key information areas in the preprocessed image;

[0007] Performing multi-scale feature extraction on the multiple key information areas to obtain multi-scale attention enhancement features of the preprocessed image, and detecting local important areas in the bill image based on the attention enhancement features to obtain a local important area image;

[0008] Using a multi-branch fusion algorithm to perform bill information recognition on the pre-processed image according to the attention enhancement feature and the key information area, and obtain a bill information recognition result;

[0009] According to the bill information recognition result and the local important area image, the bill image is authenticated to obtain a bill authenticity recognition result, and the bill information recognition result and the bill authenticity recognition result are used as the bill recognition result of the target bill.

[0010] Optionally, in a first implementation of the first aspect of the present invention, the acquiring of the bill image of the target bill, preprocessing the bill image to obtain a preprocessed image, and locating key information areas of the preprocessed image, and obtaining multiple key information areas in the preprocessed image include:

[0011] Acquire a bill image of a target bill, and preprocess the bill image to obtain a preprocessed image, wherein the preprocessing includes adaptive threshold binarization processing, perspective correction processing, rotation adjustment processing, and image contrast enhancement processing;

[0012] Performing edge detection on the preprocessed image to obtain a bill edge map, and using Hough transform to detect horizontal and vertical lines in the bill edge map to obtain internal structure lines of the bill;

[0013] Performing text line detection on the pre-processed image by projection analysis method to obtain a preliminary text area, and performing template matching on the pre-processed image according to a preset bill template and the internal structure line of the bill to obtain the initial position of each information field;

[0014] The pre-processed image is subjected to a connected domain analysis by combining the preliminary text region and the initial positions of each information field through a region growing algorithm to determine a plurality of key information regions in the pre-processed image.

[0015] Optionally, in a second implementation of the first aspect of the present invention, the multi-scale feature extraction is performed on the multiple key information areas to obtain the multi-scale attention enhancement features of the preprocessed image, and the local important areas in the bill are detected according to the attention enhancement features to obtain the local important area image, which includes:

[0016] Inputting the multiple key information areas into a preset hybrid attention model to obtain corresponding channel attention features and spatial attention features;

[0017] Performing feature fusion on the channel attention feature and the spatial attention feature through an element-wise product operation to obtain an attention-weighted feature map;

[0018] Performing global feature extraction and class activation map generation on the feature map to obtain a heat map of the target bill;

[0019] Threshold segmentation and connected domain analysis are performed on the heat map, a number of connected domains with the largest areas are selected, and image regions corresponding to the selected connected domains are cropped from the preprocessed image to obtain a local important region image.

[0020] Optionally, in a third implementation of the first aspect of the present invention, the multi-branch fusion algorithm is used to perform bill information recognition on the pre-processed image according to the attention enhancement feature and the key information area, and the bill information recognition result obtained includes:

[0021] Performing global branch processing on the attention enhancement feature, and obtaining a preliminary recognition result based on global information through a fully connected layer operation;

[0022] According to the key information area, the pre-processed image is cropped in a local area to obtain a plurality of local key area images;

[0023] Applying an optical character recognition algorithm to the multiple local key area images to extract text information and obtain text content, and performing semantic analysis on the text content through a natural language processing model to obtain semantic features of each field on the target bill;

[0024] Performing feature fusion on the semantic features and the preliminary recognition results, and processing them through a multi-layer perceptron to obtain a comprehensive feature representation;

[0025] The conditional random field model is used to extract structured information from each field of the bill according to the comprehensive feature representation to obtain the final bill information recognition result.

[0026] Optionally, in a fourth implementation of the first aspect of the present invention, the performing authenticity identification on the bill image according to the bill information identification result and the local important area image to obtain the bill authenticity identification result includes:

[0027] Applying a dual-path multi-scale network to the local important area image to obtain edge features and visual features;

[0028] Performing multi-scale feature extraction on the edge features and visual features to obtain a feature representation of a multi-scale receptive field, and performing multi-scale feature fusion on the feature representation of the multi-scale receptive field to obtain a fused global feature map;

[0029] Performing feature enhancement on the global feature map and the bill information recognition result through a cross-attention mechanism to obtain a context-aware feature representation;

[0030] Applying an adaptive threshold segmentation algorithm to the context-aware feature representation to obtain a binary mask of the suspicious area;

[0031] The bill authenticity recognition result is generated according to the binary mask and the bill image through the region growing algorithm and the morphological post-processing algorithm.

[0032] Optionally, in a fifth implementation manner of the first aspect of the present invention, performing multi-scale feature extraction on the edge features and the visual features to obtain a feature representation of a multi-scale receptive field, and performing multi-scale feature fusion on the feature representation of the multi-scale receptive field to obtain a fused global feature map includes:

[0033] Applying variant convolution units to the edge features and visual features respectively to obtain an initial multi-scale feature representation, and performing a pyramid pooling operation on the initial multi-scale feature representation to obtain a feature representation of a multi-scale receptive field;

[0034] Applying a self-attention mechanism to each scale level of the feature representation of the multi-scale receptive field to obtain an intra-scale enhanced feature representation;

[0035] An initial feature map of multi-scale fusion is obtained by performing cross-scale feature aggregation on the enhanced feature representation within the scale;

[0036] Residual connection and normalization operations are applied to the initial feature map, and adaptive feature selection processing is performed to obtain a global feature map.

[0037] Optionally, in a sixth implementation of the first aspect of the present invention, the step of performing feature enhancement on the global feature map and the bill information recognition result through a cross attention mechanism to obtain a context-aware feature representation includes:

[0038] Reshaping the spatial dimension of the global feature map to obtain a serialized feature representation, and performing an embedding layer conversion on the bill information recognition result to obtain a corresponding semantic feature vector;

[0039] Applying a multi-head attention mechanism to the serialized feature representation and the semantic feature vector to obtain preliminary cross-attention features;

[0040] According to the preliminary cross attention features, an optimized cross attention feature is obtained through residual connection and layer normalization;

[0041] A feedforward neural network is applied to the optimized cross-attention features to obtain an enhanced feature representation, and the enhanced feature representation is dynamically weighted and reorganized through an adaptive feature fusion module to obtain a final context-aware feature representation.

[0042] A second aspect of the present invention provides a bill recognition device, the bill recognition device comprising:

[0043] A key area positioning module is used to obtain a bill image of a target bill, preprocess the bill image to obtain a preprocessed image, and locate key information areas on the preprocessed image to obtain multiple key information areas in the preprocessed image;

[0044] An important area detection module is used to perform multi-scale feature extraction on the multiple key information areas to obtain multi-scale attention enhancement features of the pre-processed image, and detect local important areas in the bill based on the attention enhancement features to obtain a local important area image;

[0045] An information recognition module, configured to use a multi-branch fusion algorithm to perform bill information recognition on the pre-processed image according to the attention enhancement feature and the key information area, and obtain a bill information recognition result;

[0046] The authenticity recognition module is used to perform authenticity recognition on the bill image according to the bill information recognition result and the local important area image to obtain a bill authenticity recognition result, and use the bill information recognition result and the bill authenticity recognition result as the bill recognition result of the target bill.

[0047] The third aspect of the present invention provides a bill identification device, comprising: a memory and at least one processor, wherein instructions are stored in the memory, and the memory and the at least one processor are interconnected via lines; the at least one processor calls the instructions in the memory so that the bill identification device executes the steps of the above-mentioned bill identification method.

[0048] A fourth aspect of the present invention provides a computer-readable storage medium, wherein the computer-readable storage medium stores instructions, which, when executed on a computer, enable the computer to execute the steps of the above-mentioned bill identification method.

[0049] The above-mentioned bill recognition method, device, equipment and storage medium locate the key information area of ​​the preprocessed image of the bill image; perform multi-scale feature extraction on multiple key information areas to obtain multi-scale attention enhancement features, and obtain local important area images based on the attention enhancement features; use a multi-branch fusion algorithm to perform bill information recognition based on the attention enhancement features and key information areas to obtain bill information recognition results; perform authenticity recognition based on the bill information recognition results and the local important area images to obtain bill authenticity recognition results. This method accurately locates the key information area in the bill by preprocessing the bill image, uses multi-scale feature extraction and attention enhancement technology to strengthen the detection of local important areas of the bill, and uses a multi-branch fusion algorithm to integrate multiple feature information to achieve comprehensive recognition and authenticity judgment of the bill.

[0050] Other features and advantages of the present invention will be described in the following description, and partly become apparent from the description, or understood by practicing the present invention. The purpose and other advantages of the present invention are realized and obtained by the structures particularly pointed out in the description, claims and drawings.

[0051] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, preferred embodiments are given below and described in detail with reference to the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0052] Figure 1 This is a schematic diagram of a first embodiment of a bill recognition method according to an embodiment of the present invention;

[0053] Figure 2 A schematic diagram of an embodiment of a bill recognition device in an embodiment of the present invention;

[0054] Figure 3 The figure is a schematic diagram of an embodiment of a bill recognition device in an embodiment of the present invention. DETAILED DESCRIPTION

[0055] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the accompanying drawings. Obviously, the described embodiments are 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.

[0056] The terms "including" and "having" and any variations thereof mentioned in the embodiments of the present invention are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device end including a series of steps or units is not limited to the listed steps or units, but may optionally include other steps or units that are not listed, or may optionally include other steps or units that are inherent to these processes, methods, products or device ends.

[0057] To facilitate understanding of this embodiment, a bill recognition method disclosed in an embodiment of the present invention is first described in detail. Figure 1 As shown, the method comprises the following steps:

[0058] 101. Acquire a bill image of a target bill, preprocess the bill image to obtain a preprocessed image, and locate key information regions of the preprocessed image to obtain multiple key information regions in the preprocessed image;

[0059] In one embodiment of the present invention, the process of acquiring a bill image of a target bill, preprocessing the bill image to obtain a preprocessed image, and locating key information areas on the preprocessed image to obtain multiple key information areas in the preprocessed image includes: acquiring a bill image of a target bill, preprocessing the bill image to obtain a preprocessed image, wherein the preprocessing includes adaptive threshold binarization, perspective correction, rotation adjustment, and image contrast enhancement; performing edge detection on the preprocessed image to obtain a bill edge map, and using Hough transform to detect horizontal and vertical lines in the bill edge map to obtain bill internal structure lines; performing text line detection on the preprocessed image by a projection analysis method to obtain a preliminary text area, and performing template matching on the preprocessed image according to a preset bill template and the bill internal structure lines to obtain the initial position of each information field; performing connected domain analysis on the preprocessed image in combination with the preliminary text area and the initial position of each information field by a region growing algorithm to determine multiple key information areas in the preprocessed image.

[0060] Specifically, for the preprocessing step, the adaptive threshold binarization process uses the Otsu algorithm or the local adaptive threshold method to convert the image into black and white. The perspective correction process uses the Hough transform to detect the edge of the bill, and then applies the perspective transformation matrix to correct the tilted image. The rotation adjustment process calculates the directional moment of the image, finds the main direction, and then rotates the corresponding angle. The image contrast enhancement uses the histogram equalization or adaptive histogram equalization method. Next, the preprocessed image is edge detected, and the commonly used algorithms include the Canny edge detector or the Sobel operator. After obtaining the edge map, the Hough transform is used to detect the straight line. The Hough transform transforms the points in the image space to the parameter space, and detects the straight line by finding the local maximum value in the parameter space. Here, the focus is on detecting the straight lines in the horizontal and vertical directions to obtain the internal structural lines of the bill. The text line detection adopts the projection analysis method. This method first calculates the horizontal and vertical projection histograms of the image. The horizontal projection reflects the pixel density of each row, and the vertical projection reflects the pixel density of each column. By analyzing the peaks and valleys of these histograms, the position of the text line can be preliminarily determined. The template matching process uses a predefined bill template. This template contains information about the standard layout of different types of bills. The system compares the preprocessed image to the template, using methods such as correlation matching or feature point matching. The matching process takes into account previously detected internal structure lines to improve the accuracy of the match. The matching results give the initial positions of each information field (such as date, amount, signature, etc.). Finally, the region growing algorithm is used to accurately divide the key information area. The algorithm starts with the initial text area and field position as seed points. For each seed point, the algorithm checks the surrounding pixels and adds them to the current region if they meet certain similarity criteria (such as similar grayscale values). This process is repeated until no new pixels can be added. At the same time, the algorithm takes connectivity into account to ensure that the divided areas are continuous.

[0061] 102. Perform multi-scale feature extraction on multiple key information areas to obtain multi-scale attention enhancement features of the preprocessed image, and detect local important areas in the bill image based on the attention enhancement features to obtain a local important area image;

[0062] In one embodiment of the present invention, multi-scale feature extraction is performed on the multiple key information areas to obtain multi-scale attention enhancement features of the preprocessed image, and based on the attention enhancement features, local important areas in the bill are detected to obtain local important area images, including: inputting the multiple key information areas into a preset hybrid attention model to obtain corresponding channel attention features and spatial attention features; performing feature fusion on the channel attention features and the spatial attention features through element-wise multiplication operation to obtain an attention-weighted feature map; performing global feature extraction and class activation map generation on the feature map to obtain a heat map of the target bill; performing threshold segmentation and connected domain analysis on the heat map to select several connected domains with the largest area, and cropping the image area corresponding to the selected connected domains from the preprocessed image to obtain a local important area image.

[0063] Specifically, the multiple key information areas that have been located are input into the preset hybrid attention model. This hybrid attention model is usually based on the convolutional neural network architecture and includes two key components: channel attention mechanism and spatial attention mechanism. The channel attention mechanism aims to learn the importance of different feature channels. It usually compresses the spatial dimension through global average pooling operation, and then uses a fully connected layer or a 1x1 convolution layer to learn the dependencies between channels. The spatial attention mechanism focuses on the importance of different spatial positions in the feature map. It usually generates spatial attention weights through cross-channel operations (such as maximum pooling or average pooling). The two attention mechanisms work together to enable the model to pay attention to the importance of the channel dimension and spatial dimension of the feature at the same time. After obtaining the channel attention feature and the spatial attention feature, the system fuses the two features through element-wise product operation. This process can be understood as weighting the original feature map, where the weight is determined by the channel attention and spatial attention. Specifically, each position on each feature map is assigned a weight, which is the product of the channel attention weight and the spatial attention weight. This fusion method can comprehensively consider the importance of the feature in both channel and spatial dimensions, thereby obtaining an attention-weighted feature map. Next, the system performs global feature extraction and class activation map generation on this attention-weighted feature map. Global feature extraction usually involves using global average pooling or global maximum pooling operations to compress the entire feature map into a vector that contains global information about the entire feature map. Class activation map generation is a visualization technique that usually uses gradient-weighted class activation mapping (Grad-CAM) or similar methods. This method first calculates the gradient of the target category score with respect to the feature map, and then globally average pools these gradients in the channel dimension to obtain the importance weight of each channel. Finally, these weights are multiplied with the corresponding feature maps and summed in the channel dimension to obtain a class activation map, also known as a heat map. This heat map highlights the image areas that are most important for predicting the target category. After obtaining the heat map, the system performs threshold segmentation and connected domain analysis on it. Threshold segmentation is to use heat Figure 2 In the binarization process, the Otsu method or the fixed threshold method is usually used to determine the appropriate threshold. Areas above the threshold are considered important areas, and areas below the threshold are considered background. Connected domain analysis processes the binarized image to find the area composed of all connected pixels. After completing the connected domain analysis, the system selects several connected domains with the largest area. This step is based on the assumption that larger connected areas are more likely to correspond to important information areas. The number of selections can be fixed (such as top-k) or dynamically determined based on the area threshold. Finally, the system crops the original preprocessed image according to the selected connected domain to obtain an image of the local important area. This cropping process requires mapping the coordinates on the heat map back to the coordinate system of the original image.

[0064] 103. Using a multi-branch fusion algorithm to perform bill information recognition on the pre-processed image according to the attention enhancement features and key information areas, the bill information recognition result is obtained;

[0065] In one embodiment of the present invention, the multi-branch fusion algorithm is used to perform bill information recognition on the pre-processed image according to the attention enhancement feature and the key information area, and the bill information recognition result is obtained, which includes: performing global branch processing on the attention enhancement feature, and obtaining a preliminary recognition result based on global information through a fully connected layer operation; performing local area cropping on the pre-processed image according to the key information area to obtain multiple local key area images; applying an optical character recognition algorithm to the multiple local key area images to extract text information to obtain text content, and performing semantic analysis on the text content through a natural language processing model to obtain semantic features of each field on the target bill; performing feature fusion on the semantic features and the preliminary recognition result, and obtaining a comprehensive feature representation through multi-layer perceptron processing; extracting structured information from each field of the bill according to the comprehensive feature representation through a conditional random field model to obtain a final bill information recognition result.

[0066] Specifically, the system performs a global branch on the attention enhancement features. In this process, the attention enhancement features are processed through a series of fully connected layers. The fully connected layers usually include linear transformations followed by nonlinear activation functions (such as ReLU), and operations such as batch normalization and dropout are added to improve the generalization ability of the model. The purpose of this global branch is to capture the high-level semantic information of the entire bill and obtain a preliminary recognition result based on global information. This result includes macro information such as bill type and overall layout. At the same time, the system performs local area cropping on the preprocessed image according to the key information areas previously located. This process uses a predefined cropping algorithm, which can be a simple rectangular cropping or an irregular cropping based on contours. The cropped multiple local key area images contain specific fields on the bill, such as date, amount, payee, etc. Next, the system applies an optical character recognition (OCR) algorithm to these local key area images. The OCR process usually includes several steps of image preprocessing (such as binarization, denoising), text detection, character segmentation, and character recognition. Commonly used OCR libraries such as Tesseract or commercial OCR API can be used for this step. The output of OCR is the text content of each key area. After obtaining the text content, the system uses a natural language processing (NLP) model to perform semantic analysis on these texts. This NLP model can be a rule-based system or a deep learning-based model such as BERT or GPT. The task of the NLP model is to understand the meaning of the text and identify the semantics of each field, such as identifying "May 1, 2023" as a date field and "10,000 yuan" as an amount field. This process outputs the semantic features of each field, which are usually high-dimensional vectors that encode the semantic information of the text. The system then fuses these semantic features with the preliminary recognition results based on global information obtained previously. The fusion method can be a simple splicing or a more complex attention mechanism or gated unit. The fused features are processed by a multi-layer perceptron (MLP). MLP is a feedforward neural network composed of multiple fully connected layers, and there are usually nonlinear activation functions between each layer. The role of MLP is to further extract and combine features to obtain a comprehensive feature representation. This comprehensive feature representation contains both global information and local details of the bill. Finally, the system uses a conditional random field (CRF) model to extract structured information from each field of the bill. CRF is a probabilistic graph model that is particularly suitable for handling sequence labeling problems. In this scenario, the CRF model takes into account the dependencies between fields, for example, the date field usually comes before the amount field. The CRF model receives a comprehensive feature representation as input and outputs the most likely label sequence for each field. This process not only considers the local characteristics of each field, but also the global consistency between fields.

[0067] 104. According to the bill information recognition result and the local important area image, the bill image is authenticated to obtain the bill authenticity recognition result, and the bill information recognition result and the bill authenticity recognition result are used as the bill recognition result of the target bill.

[0068] In one embodiment of the present invention, the authenticity of the bill image is identified based on the bill information recognition result and the local important area image to obtain the bill authenticity recognition result, which includes: applying a dual-path multi-scale network to the local important area image to obtain edge features and visual features; performing multi-scale feature extraction on the edge features and visual features to obtain a feature representation of a multi-scale receptive field, and performing multi-scale feature fusion on the feature representation of the multi-scale receptive field to obtain a fused global feature map; performing feature enhancement on the global feature map and the bill information recognition result through a cross-attention mechanism to obtain a context-aware feature representation; applying an adaptive threshold segmentation algorithm to the context-aware feature representation to obtain a binary mask of the suspicious area; and generating a bill authenticity recognition result based on the binary mask and the bill image through a region growing algorithm and a morphological post-processing algorithm.

[0069] Specifically, the local important area image is input into a dual-path multi-scale network. This network architecture usually contains two parallel processing paths: one focuses on extracting edge features and the other extracts visual features. The edge feature path uses techniques similar to the Canny edge detector or Sobel operator, but in the deep learning framework, these operations are designed as learnable convolutional layers. The visual feature path uses a standard convolutional neural network structure, such as a variant of the ResNet or VGG network. These two paths work together to enable the network to focus on both the structural information (edges) and content information (visual features) of the image. Next, the system performs multi-scale feature extraction and fusion on the obtained edge features and visual features. This process involves using convolution kernels of different sizes or dilated convolutions to capture information at multiple scales, and then combining these multi-scale features into a global feature map through some fusion mechanism (such as feature splicing or weighted sum). Subsequently, the system uses a cross-attention mechanism to enhance the features of this global feature map with the previously obtained ticket information recognition results to generate a context-aware feature representation. After obtaining the context-aware feature representation, the system applies an adaptive threshold segmentation algorithm to generate a binary mask of the suspicious area. The adaptive threshold segmentation algorithm does not use a global fixed threshold, but dynamically adjusts the threshold according to the local area characteristics of the image. A common method is to use the local mean as the threshold, that is, for each pixel in the image, calculate the average value of the pixels within a certain range around it, and use the average value as the threshold of the pixel. This method can adapt to the brightness changes in different areas of the image and is particularly suitable for processing images with uneven lighting. In this scenario, the adaptive threshold segmentation algorithm converts the context-aware feature representation into a binary image, where the area above the threshold is marked as a suspicious area (value 1) and the area below the threshold is marked as the background (value 0). The system then uses the region growing algorithm to further process the binary mask. Region growing is a method that starts from a seed point and gradually incorporates similar surrounding pixels into a region. In this process, the algorithm first selects some seed points in the binary mask, usually those pixels that are marked as suspicious areas. Then, for each seed point, the algorithm checks its neighboring pixels. If the neighboring pixel is also marked as a suspicious area, or its characteristics are similar enough to the current area, it is added to the current area. This process is repeated until no new pixels can be added to any region. A key advantage of the region growing algorithm is that it can effectively segment continuous, irregularly shaped regions, which is particularly useful when identifying forgeries on bills, as forged regions usually do not have a fixed shape. Finally, the system applies a morphological post-processing algorithm to further optimize the results of region growing. Morphological operations are a set of shape-based image processing operations, commonly used including dilation, erosion, opening operations, and closing operations. In this scenario, morphological operations can be used to smooth region boundaries, fill small holes, remove small isolated areas, etc.For example, a dilation operation can be performed first to fill small holes in the region, and then an erosion operation can be performed to remove small protrusions on the edge. Such an opening operation can smooth the region boundary. Alternatively, an erosion operation can be performed first to disconnect small connections, and then a dilation operation can be performed to restore the size of the main region. Such a closing operation can remove small isolated regions. The specific parameters of these morphological operations (such as the size and shape of the structural element) need to be adjusted according to the actual situation to achieve the best processing effect. Through this series of processing, the system finally obtains an optimized binary image, in which the white area (value 1) represents the possible counterfeit area, and the black area (value 0) represents the original area. Combined with the original bill image, this optimized binary image constitutes the final result of bill authenticity recognition. The system will further analyze the characteristics of these suspicious areas, such as size, shape, position, etc., and combine the previous bill information recognition results to give a more detailed authenticity judgment, such as indicating which specific fields may be tampered with, or giving a counterfeit probability score.

[0070] Furthermore, the multi-scale feature extraction is performed on the edge features and visual features to obtain a feature representation of a multi-scale receptive field, and the multi-scale feature fusion is performed on the feature representation of the multi-scale receptive field to obtain a fused global feature map, including: applying variant convolution units to the edge features and visual features respectively to obtain an initial multi-scale feature representation, and performing a pyramid pooling operation on the initial multi-scale feature representation to obtain a feature representation of a multi-scale receptive field; applying a self-attention mechanism to each scale level of the feature representation of the multi-scale receptive field to obtain an intra-scale enhanced feature representation; obtaining a multi-scale fused initial feature map by performing cross-scale feature aggregation on the intra-scale enhanced feature representation; applying residual connection and normalization operations to the initial feature map, and performing adaptive feature selection processing to obtain a global feature map.

[0071] Specifically, variant convolution units are applied to the edge features and visual features obtained previously. The variant convolution unit is a special convolution structure that usually contains multiple parallel convolution operations, each of which uses a different convolution kernel size or dilation rate. This design allows the network to capture information at multiple scales in a single layer. For example, a variant convolution unit can simultaneously contain 3x3, 5x5 standard convolutions and 3x3, 5x5 dilated convolutions, where the dilation rate of the dilated convolution can be 2 or 3. In this way, the network is able to expand the receptive field without significantly increasing the number of parameters, thereby capturing richer multi-scale features. After applying the variant convolution unit, the system obtains the initial multi-scale feature representation. Next, the system performs pyramid pooling operations on these feature representations. Pyramid pooling is a multi-scale feature extraction technique that performs pooling operations on feature maps at different spatial scales. Specifically, the system downsamples the feature map multiple times, and performs a pooling operation (such as average pooling or maximum pooling) after each downsampling. In this way, the system obtains a series of feature maps of different resolutions, forming a feature pyramid. Each layer of this feature pyramid represents the feature representation of the input image at different scales, thus forming a feature representation of the multi-scale receptive field. After obtaining the feature representation of the multi-scale receptive field, the system applies a self-attention mechanism to each scale level. The self-attention mechanism allows the model to focus on the most important parts of the feature map, and it does this by calculating the relationship between each position in the feature map and all other positions. In practice, this is usually done by calculating the query, key, and value matrices, followed by matrix multiplication and softmax operations. Through this process, the features of each scale level are enhanced, which is called the intra-scale enhanced feature representation. This enhancement makes the features of each scale level more focused on the most important information at that scale. Next, the system needs to fuse these enhanced features of different scales. This is achieved through cross-scale feature aggregation. The goal of cross-scale feature aggregation is to effectively combine information from different scales. A common approach is to use a feature pyramid network (FPN) structure, which fuses features layer by layer from top to bottom while combining detailed information from the bottom layer. Another approach is to directly upsample features of different scales to the same spatial resolution and then concatenate or sum them element-wise. Regardless of the method used, the output of this step is an initial feature map that contains multi-scale information. To further optimize this initial feature map, the system applies residual connections and normalization operations. Residual connections are a common technique in deep learning that alleviates the gradient vanishing problem by adding skip connections in the network while allowing the network to learn a residual function, which is usually easier than directly learning the original function. In this scenario, the residual connection adds the initial multi-scale feature representation directly to the processed features.Normalization operations, such as batch normalization or layer normalization, help stabilize the feature distribution, speed up the training process, and enhance the generalization ability of the model to a certain extent. Finally, the system performs adaptive feature selection. The purpose of this step is to select the most relevant and discriminative features from the fused feature map. Adaptive feature selection can be achieved in many ways, such as using an attention mechanism to dynamically adjust the weights of different feature channels, or using a gating mechanism to control the flow of information. Another way is to use a 1x1 convolutional layer to let the network learn how to combine and select features by itself. Through this adaptive feature selection process, the system finally obtains a highly optimized global feature map. This global feature map is the final output of the entire multi-scale feature extraction and fusion process. It contains the information of the original edge features and visual features at multiple scales, enhanced by self-attention, fused across scales, and adaptively selected.

[0072] Furthermore, the feature enhancement of the global feature map and the bill information recognition result through the cross-attention mechanism to obtain a context-aware feature representation includes: reshaping the global feature map in spatial dimension to obtain a serialized feature representation, and performing an embedding layer conversion on the bill information recognition result to obtain a corresponding semantic feature vector; applying a multi-head attention mechanism to the serialized feature representation and the semantic feature vector to obtain preliminary cross-attention features; based on the preliminary cross-attention features, obtaining optimized cross-attention features through residual connection and layer normalization; applying a feedforward neural network to the optimized cross-attention features to obtain an enhanced feature representation, and dynamically assigning weights and reorganizing features of the enhanced feature representation through an adaptive feature fusion module to obtain a final context-aware feature representation.

[0073] Specifically, the spatial dimension of the global feature map is reshaped. This operation usually involves rearranging the three-dimensional feature map (height × width × number of channels) into a two-dimensional sequence form (sequence length × feature dimension). For example, if the size of the original feature map is 20×20×512, it can be reshaped into a 400×512 sequence. This reshaping operation allows the feature map to be viewed as a series of feature vectors, each of which corresponds to a spatial position in the original image. This form is more suitable for subsequent attention calculations. At the same time, the system performs an embedding layer conversion on the bill information recognition results. The bill information recognition results are usually a series of structured data, such as the category and content of each field. The role of the embedding layer is to convert these discrete, possibly categorical data into continuous vector representations. This process involves using a pre-trained word embedding model (such as Word2Vec or GloVe) to process text content, and using a learnable embedding matrix to process category information. After the conversion, a set of semantic feature vectors is obtained, each of which represents an element (such as a field or a word) in the bill information. Next, the system applies a multi-head attention mechanism to the serialized feature representation and semantic feature vectors. Multi-head attention is a powerful attention mechanism that allows the model to learn the relationship between features from multiple perspectives simultaneously. In this process, the system first linearly projects the input into multiple subspaces (usually called "heads"), and then calculates the attention independently in each subspace. Specifically, for each head, the system calculates the query, key, and value matrices, then calculates the attention weights through matrix multiplication and softmax operations, and finally concatenates the results of all heads and performs a linear transformation. The output of this process is a preliminary cross-attention feature, which combines the visual information of the global feature map and the semantic information of the bill recognition result. After obtaining the preliminary cross-attention feature, the system optimizes it through residual connection and layer normalization. Residual connection is achieved by adding the input directly to the output, which helps to alleviate the gradient vanishing problem in deep networks and allows information to flow more directly in the network. Layer normalization standardizes the features of each sample, which helps to stabilize the feature distribution, speed up the training process, and improve the generalization ability of the model to a certain extent. Through these two operations, the system obtains the optimized cross-attention feature. Then, the system applies a feedforward neural network to the optimized cross-attention feature. This feedforward network usually consists of two linear transformation layers with a nonlinear activation function (such as ReLU) in the middle. The purpose of this step is to further process and transform the features, increase the nonlinear ability of the model, and thus obtain a richer and more abstract feature representation. This output is called the enhanced feature representation. Finally, the system uses the adaptive feature fusion module to dynamically assign weights and reorganize features for the enhanced feature representation. The core idea of ​​this module is to dynamically adjust the importance of different features based on the characteristics of the current input.Dynamic weight assignment can be achieved through a small neural network that accepts the enhanced feature representation as input and outputs the weights of each feature dimension. Feature reorganization is the process of weighting and recombining features according to these weights. This process can be seen as an adaptive feature selection mechanism that allows the model to flexibly adjust its focus based on different inputs. Through this series of complex operations, the system finally obtains a context-aware feature representation. This feature representation not only contains the visual information in the original global feature map, but also incorporates the semantic information in the bill information recognition result. More importantly, through the cross-attention mechanism, these two types of information are deeply interacted and fused. For example, the visual features are enhanced according to the semantic information, and the semantic information is also adjusted according to the visual features. This two-way information flow makes the final feature representation powerful and can capture the complex relationship between the visual and semantic levels. This context-aware feature representation is particularly important for the bill authenticity recognition task. It helps the model consider both the visual appearance and semantic content of the bill, so as to more accurately identify possible forgery traces. For example, some forgeries may look real visually but inconsistent with the semantic information of the bill; or vice versa, they may look normal semantically but have problems with visual details. Through this deeply fused feature representation, the model can more comprehensively evaluate the authenticity of the bill, greatly improving the accuracy and reliability of authenticity identification.

[0074] In this embodiment, the key information area is located by preprocessing the image of the bill; multi-scale feature extraction is performed on multiple key information areas to obtain multi-scale attention enhancement features, and local important area images are obtained based on the attention enhancement features; a multi-branch fusion algorithm is used to identify the bill information based on the attention enhancement features and the key information areas to obtain the bill information identification results; authenticity identification is performed based on the bill information identification results and the local important area images to obtain the bill authenticity identification results. This method accurately locates the key information areas in the bill by preprocessing the bill image, uses multi-scale feature extraction and attention enhancement technology to strengthen the detection of local important areas of the bill, and uses a multi-branch fusion algorithm to integrate multiple feature information to achieve comprehensive identification and authenticity judgment of the bill.

[0075] The above describes the bill recognition method in the embodiment of the present invention. The following describes the bill recognition device in the embodiment of the present invention. Figure 2 In one embodiment of the present invention, a bill recognition device includes:

[0076] The key area positioning module 201 is used to obtain a bill image of a target bill, preprocess the bill image to obtain a preprocessed image, and locate key information areas on the preprocessed image to obtain multiple key information areas in the preprocessed image;

[0077] The important area detection module 202 is used to perform multi-scale feature extraction on the multiple key information areas to obtain multi-scale attention enhancement features of the pre-processed image, and detect the local important areas in the bill according to the attention enhancement features to obtain the local important area image;

[0078] An information recognition module 203 is used to use a multi-branch fusion algorithm to perform bill information recognition on the pre-processed image according to the attention enhancement feature and the key information area to obtain a bill information recognition result;

[0079] The authenticity identification module 204 is used to identify the authenticity of the bill image according to the bill information identification result and the local important area image, obtain a bill authenticity identification result, and use the bill information identification result and the bill authenticity identification result as the bill identification result of the target bill.

[0080] In an embodiment of the present invention, the bill recognition device runs the above-mentioned bill recognition method, and the bill recognition device locates the key information area of ​​the preprocessed image of the bill image; extracts multi-scale features of multiple key information areas to obtain multi-scale attention enhancement features, and obtains local important area images based on the attention enhancement features; uses a multi-branch fusion algorithm to perform bill information recognition based on the attention enhancement features and the key information areas to obtain bill information recognition results; performs authenticity recognition based on the bill information recognition results and the local important area images to obtain bill authenticity recognition results. This method accurately locates the key information area in the bill by preprocessing the bill image, uses multi-scale feature extraction and attention enhancement technology to strengthen the detection of local important areas of the bill, and uses a multi-branch fusion algorithm to integrate multiple feature information to achieve comprehensive recognition and authenticity judgment of the bill.

[0081] above Figure 2 The bill recognition device in the embodiment of the present invention is described in detail from the perspective of modular functional entities, and the bill recognition device in the embodiment of the present invention is described in detail from the perspective of hardware processing.

[0082] Figure 3: is a structural diagram of a bill recognition device provided by an embodiment of the present invention. The bill recognition device 300 may have relatively large differences due to different configurations or performances, and may include one or more processors (central processing units, CPU) 310 (for example, one or more processors) and a memory 320, and one or more storage media 330 (for example, one or more mass storage device terminals) storing application programs 333 or data 332. Among them, the memory 320 and the storage medium 330 can be short-term storage or permanent storage. The program stored in the storage medium 330 may include one or more modules (not shown in the figure), and each module may include a series of instruction operations in the bill recognition device 300. Furthermore, the processor 310 may be configured to communicate with the storage medium 330, and execute a series of instruction operations in the storage medium 330 on the bill recognition device 300 to implement the steps of the above-mentioned bill recognition method.

[0083] The bill recognition device 300 may also include one or more power supplies 340, one or more wired or wireless network interfaces 350, one or more input and output interfaces 360, and / or one or more operating systems 331, such as Windows Server, Mac OS X, Unix, Linux, FreeBSD, etc. It will be appreciated by those skilled in the art that Figure 3 The structure of the bill recognition device shown does not constitute a limitation on the bill recognition device provided by the present invention, and may include more or fewer components than shown in the figure, or a combination of certain components, or a different arrangement of components.

[0084] The present invention also provides a computer-readable storage medium, which may be a non-volatile computer-readable storage medium or a volatile computer-readable storage medium. Instructions are stored in the computer-readable storage medium. When the instructions are executed on a computer, the computer executes the steps of the bill identification method.

[0085] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working process of the above-described system, device, or unit can refer to the corresponding process in the aforementioned method embodiment and will not be repeated here.

[0086] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art or the whole or part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions to enable a computer device (which can be a personal computer, server, or network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk and other media that can store program code.

[0087] As described above, the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit the same. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features thereof may be replaced by equivalents. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A bill recognition method, characterized in that: The bill recognition method comprises: Acquire a bill image of a target bill, preprocess the bill image to obtain a preprocessed image, and locate key information areas in the preprocessed image to obtain multiple key information areas in the preprocessed image; Performing multi-scale feature extraction on the multiple key information areas to obtain multi-scale attention enhancement features of the pre-processed image, and detecting local important areas in the bill image based on the attention enhancement features to obtain local important area images; performing multi-scale feature extraction on the multiple key information areas to obtain multi-scale attention enhancement features of the pre-processed image, and detecting local important areas in the bill image based on the attention enhancement features to obtain local important area images includes: inputting the multiple key information areas into a preset hybrid attention model to obtain corresponding channel attention features and spatial attention features; performing feature fusion on the channel attention features and spatial attention features through element-wise product operation to obtain an attention-weighted feature map; performing global feature extraction and class activation map generation on the feature map to obtain a heat map of the target bill; performing threshold segmentation and connected domain analysis on the heat map, selecting several connected domains with the largest area, and cropping the image area corresponding to the selected connected domains from the pre-processed image to obtain a local important area image; Using a multi-branch fusion algorithm to perform bill information recognition on the pre-processed image according to the attention enhancement feature and the key information area, and obtain a bill information recognition result; According to the bill information recognition result and the local important area image, the bill image is authenticated to obtain the bill authenticity recognition result, and the bill information recognition result and the bill authenticity recognition result are used as the bill recognition result of the target bill; according to the bill information recognition result and the local important area image, the bill image is authenticated to obtain the bill authenticity recognition result, including: applying a dual-path multi-scale network to the local important area image to obtain edge features and visual features; performing multi-scale feature extraction on the edge features and visual features to obtain feature representation of multi-scale receptive fields, and performing multi-scale feature fusion on the feature representation of multi-scale receptive fields to obtain a fused global feature map; performing feature enhancement on the global feature map and the bill information recognition result through a cross-attention mechanism to obtain a context-aware feature representation; applying an adaptive threshold segmentation algorithm to the context-aware feature representation to obtain a binary mask of the suspicious area; generating a bill authenticity recognition result according to the binary mask and the bill image through a region growing algorithm and a morphological post-processing algorithm.

2. The bill recognition method according to claim 1, characterized in that: The process of acquiring a bill image of a target bill, preprocessing the bill image to obtain a preprocessed image, and locating key information areas of the preprocessed image to obtain a plurality of key information areas in the preprocessed image includes: Acquire a bill image of a target bill, and preprocess the bill image to obtain a preprocessed image, wherein the preprocessing includes adaptive threshold binarization processing, perspective correction processing, rotation adjustment processing, and image contrast enhancement processing; Performing edge detection on the preprocessed image to obtain a bill edge map, and using Hough transform to detect horizontal and vertical lines in the bill edge map to obtain internal structure lines of the bill; Performing text line detection on the pre-processed image by projection analysis method to obtain a preliminary text area, and performing template matching on the pre-processed image according to a preset bill template and the internal structure line of the bill to obtain the initial position of each information field; The pre-processed image is subjected to a connected domain analysis by combining the preliminary text region and the initial positions of each information field through a region growing algorithm to determine a plurality of key information regions in the pre-processed image.

3. The bill recognition method according to claim 1, characterized in that: The multi-branch fusion algorithm is used to perform bill information recognition on the pre-processed image according to the attention enhancement feature and the key information area, and the bill information recognition result obtained includes: Performing global branch processing on the attention enhancement feature, and obtaining a preliminary recognition result based on global information through a fully connected layer operation; According to the key information area, the pre-processed image is cropped in a local area to obtain a plurality of local key area images; Applying an optical character recognition algorithm to the multiple local key area images to extract text information and obtain text content, and performing semantic analysis on the text content through a natural language processing model to obtain semantic features of each field on the target bill; Performing feature fusion on the semantic features and the preliminary recognition results, and processing them through a multi-layer perceptron to obtain a comprehensive feature representation; The conditional random field model is used to extract structured information from each field of the bill according to the comprehensive feature representation to obtain the final bill information recognition result.

4. The bill recognition method according to claim 1, characterized in that: The performing multi-scale feature extraction on the edge features and the visual features to obtain a feature representation of a multi-scale receptive field, and performing multi-scale feature fusion on the feature representation of the multi-scale receptive field to obtain a fused global feature map includes: Applying variant convolution units to the edge features and visual features respectively to obtain an initial multi-scale feature representation, and performing a pyramid pooling operation on the initial multi-scale feature representation to obtain a feature representation of a multi-scale receptive field; Applying a self-attention mechanism to each scale level of the feature representation of the multi-scale receptive field to obtain an intra-scale enhanced feature representation; An initial feature map of multi-scale fusion is obtained by performing cross-scale feature aggregation on the enhanced feature representation within the scale; Residual connection and normalization operations are applied to the initial feature map, and adaptive feature selection processing is performed to obtain a global feature map.

5. The bill recognition method according to claim 1, characterized in that: The feature enhancement of the global feature map and the bill information recognition result by the cross attention mechanism to obtain the context-aware feature representation includes: Reshaping the global feature map in terms of spatial dimension to obtain a serialized feature representation, and performing an embedding layer conversion on the bill information recognition result to obtain a corresponding semantic feature vector; Applying a multi-head attention mechanism to the serialized feature representation and the semantic feature vector to obtain preliminary cross-attention features; According to the preliminary cross attention features, an optimized cross attention feature is obtained through residual connection and layer normalization; A feedforward neural network is applied to the optimized cross-attention features to obtain an enhanced feature representation, and the enhanced feature representation is dynamically weighted and reorganized through an adaptive feature fusion module to obtain a final context-aware feature representation.

6. A bill recognition device, characterized in that: The bill recognition device comprises: A key area positioning module is used to obtain a bill image of a target bill, preprocess the bill image to obtain a preprocessed image, and locate key information areas on the preprocessed image to obtain multiple key information areas in the preprocessed image; The important area detection module is used to perform multi-scale feature extraction on the multiple key information areas to obtain multi-scale attention enhancement features of the pre-processed image, and detect the local important areas in the bill according to the attention enhancement features to obtain the local important area image. The multi-scale feature extraction on the multiple key information areas to obtain the multi-scale attention enhancement features of the pre-processed image, and detect the local important areas in the bill image according to the attention enhancement features to obtain the local important area image includes: inputting the multiple key information areas into a preset hybrid attention model to obtain corresponding channel attention features and spatial attention features; performing feature fusion on the channel attention features and spatial attention features through element-level product operation to obtain an attention-weighted feature map; performing global feature extraction and class activation map generation on the feature map to obtain a heat map of the target bill; performing threshold segmentation and connected domain analysis on the heat map, selecting several connected domains with the largest area, and cropping the image area corresponding to the selected connected domain from the pre-processed image to obtain the local important area image; An information recognition module, configured to use a multi-branch fusion algorithm to perform bill information recognition on the pre-processed image according to the attention enhancement feature and the key information area, and obtain a bill information recognition result; The authenticity recognition module is used to perform authenticity recognition on the bill image according to the bill information recognition result and the local important area image to obtain the bill authenticity recognition result, and use the bill information recognition result and the bill authenticity recognition result as the bill recognition result of the target bill; the authenticity recognition on the bill image according to the bill information recognition result and the local important area image to obtain the bill authenticity recognition result includes: applying a dual-path multi-scale network to the local important area image to obtain edge features and visual features; performing multi-scale feature extraction on the edge features and visual features to obtain feature representation of multi-scale receptive fields, and performing multi-scale feature fusion on the feature representation of multi-scale receptive fields to obtain a fused global feature map; performing feature enhancement on the global feature map and the bill information recognition result through a cross-attention mechanism to obtain a context-aware feature representation; applying an adaptive threshold segmentation algorithm to the context-aware feature representation to obtain a binary mask of a suspicious area; and generating a bill authenticity recognition result according to the binary mask and the bill image through a region growing algorithm and a morphological post-processing algorithm.

7. A bill recognition device, characterized in that: The bill recognition device comprises: a memory and at least one processor, wherein instructions are stored in the memory; The at least one processor calls the instructions in the memory so that the bill recognition device executes the steps of the bill recognition method as described in any one of claims 1-5.

8. A computer-readable storage medium having instructions stored thereon, characterized in that: When the instructions are executed by the processor, the steps of the bill identification method as described in any one of claims 1 to 5 are implemented.