Business audit method, device, electronic device, and storage medium based on SSD

Through the SSD-based business review method, image recognition technology is used to automatically calculate the total cash amount and determine the business type, solving the problem of low manual confirmation efficiency in traditional cash deposit and withdrawal business, and achieving a more efficient automated review.

CN113971664BActive Publication Date: 2024-09-13PING AN TECH (SHENZHEN) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111266601.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-10-28
Publication Date
2024-09-13
Estimated Expiration
2041-10-28

AI Technical Summary

Technical Problem

The traditional cash deposit and withdrawal business relies on manual operations, resulting in low audit efficiency. Although the existing image recognition technology improves the efficiency of cash quantity identification, it still requires manual confirmation and is not highly intelligent.

Method used

Adopting an SSD-based business review method, the pre-trained SSD model performs digital detection and waist strip detection on the top and side images, identifies the denomination information and the number of waist strips, automatically calculates the target total and determines the business type to achieve automatic review.

Benefits of technology

It effectively reduces manual operations, improves the efficiency and intelligence of business review, and significantly improves the automation of cash review.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113971664B
    Figure CN113971664B
Patent Text Reader

Abstract

The present invention provides a business audit method, device, electronic device, and storage medium based on SSD, including: obtaining information to be audited, including the total amount to be audited, the type of business to be audited, a top image, and a side image; inputting the top image and the side image into the SSD model, generating a first target frame in the top image and identifying the denomination information, generating a second target frame in the side image, determining the target total amount according to the denomination information and the number of second target frames, and determining the target business type by performing text recognition on the second target frame; when the business type to be audited matches the target business type, the audit result is obtained by comparing the total amount to be audited with the target total amount. According to the technical solution of this embodiment, the SSD model can be used to identify the target total amount and the target business, and the information required for the audit can be automatically obtained by image recognition, which provides an information basis for automatic audit, can effectively reduce manual operations, and improve the efficiency and intelligence of business audits.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of artificial intelligence single-shot detection technology (Single Shot MultiBox Detector, SSD), and in particular to a business audit method, device, electronic device, and storage medium based on SSD. Background Art

[0002] For banks and other financial institutions, cash deposits and withdrawals are basic businesses, and determining the amount of cash is the most important step in cash deposits and withdrawals. The traditional method is for tellers to bundle cash according to the specified number, count and enter the number of bundles, and then submit it to the remote authorization center for video review. After the remote authorization center counts and confirms, it authorizes the teller to perform subsequent operations. Although cash counting can be achieved, it relies too much on manual operations. In order to ensure that there are no mistakes, both the teller and the remote authorization center need to spend a lot of time to confirm, and the efficiency of handling business is relatively low.

[0003] Since the number of cash in each bundle is usually fixed, for example, 100 bills are commonly found in a bundle, and each bundle of cash is tied with a waist band, with the development of artificial intelligence technology, some technical solutions have emerged that use image recognition technology to identify waist bands and determine the total amount of cash by determining the number of cash bundles. Although this has effectively improved the efficiency of cash quantity recognition, the existing solutions still require tellers to perform subsequent procedures after determining the amount, and the degree of intelligence is not high. Summary of the invention

[0004] The following is a summary of the subject matter described in detail herein. This summary is not intended to limit the scope of the claims.

[0005] The embodiments of the present invention provide a business audit method, device, electronic device, and storage medium based on SSD, which can improve the efficiency and automation of business audit.

[0006] In a first aspect, an embodiment of the present invention provides a service audit method based on SSD, including:

[0007] Acquire information to be reviewed, wherein the information to be reviewed includes a total amount to be reviewed, a business type to be reviewed, and a cash image, wherein the cash image includes a top image and a side image;

[0008] Inputting the top image and the side image into a pre-trained SSD model;

[0009] Performing digital detection on the top image by using the SSD model to generate a first target frame, and identifying denomination information from the first target frame;

[0010] Perform waist strip detection on the side image by using the SSD model, generate a second target frame for each waist strip, determine the target total amount according to the number of the second target frames and the denomination information, and determine the target business type by performing text recognition on the second target frames;

[0011] When the business type to be audited matches the target business type, the audit result is obtained by comparing the total amount to be audited with the target total amount.

[0012] In some embodiments, the detecting waist bars of the side image by using the SSD model and generating a second target frame for each waist bar includes:

[0013] Performing banknote bundle detection on the side image by using the SSD model, and generating a third target frame for each banknote bundle;

[0014] Waist strip detection is performed in each of the third target frames to generate the second target frame.

[0015] In some embodiments, before performing waist bar detection in each of the third target frames, the method further includes:

[0016] Performing image comparison on two adjacent third target frames to obtain an image overlap ratio;

[0017] When the image overlap ratio is greater than a preset ratio, the two third target frames corresponding to the image overlap ratio are merged.

[0018] In some embodiments, obtaining the audit result by comparing the total amount to be audited with the target total amount includes:

[0019] When the total amount to be audited matches the target total amount, the audit result is determined to be audit passed;

[0020] When the total amount to be reviewed does not match the target total amount, the review is terminated and a prompt message is generated, and the manual review result obtained after the prompt message is generated is determined as the review result.

[0021] In some embodiments, before inputting the top image and the side image into a pre-trained SSD model, the method further comprises:

[0022] Performing image recognition on the top image, determining a first cash area in the top image, and cropping the top image according to the first cash area;

[0023] Image recognition is performed on the side image to determine a second cash area in the side image, and the top image is cropped according to the second cash area.

[0024] In some embodiments, the performing digital detection on the top image by the SSD model to generate a first target frame includes:

[0025] Obtaining a pre-set digital reference area;

[0026] Digital detection is performed in the first cash area according to the digital reference area, and if a number is detected, the first target frame is generated.

[0027] In some embodiments, after obtaining the information to be reviewed, the method further includes:

[0028] Get the preset size threshold;

[0029] When the size of the top image is greater than or equal to the size threshold, determining that the top image is valid;

[0030] When the size of the side image is greater than or equal to the size threshold, it is determined that the side image is valid.

[0031] In a second aspect, an embodiment of the present invention provides a service audit device based on an SSD, comprising:

[0032] A collection unit, used to obtain information to be reviewed, wherein the information to be reviewed includes a total amount to be reviewed, a business type to be reviewed, and a cash image, wherein the cash image includes a top image and a side image;

[0033] An image input unit, used for inputting the top image and the side image into a pre-trained SSD model;

[0034] A first recognition unit, configured to perform digital detection on the top image through the SSD model, generate a first target frame, and recognize denomination information from the first target frame;

[0035] A second recognition unit is used to perform waist strip detection on the side image by using the SSD model, generate a second target frame for each waist strip, determine the target total amount according to the number of the second target frames and the denomination information, and determine the target business type by performing text recognition on the second target frames;

[0036] The audit unit is used to obtain an audit result by comparing the total amount to be audited with the target total amount when the business type to be audited matches the target business type.

[0037] In a third aspect, an embodiment of the present invention provides an electronic device, comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the SSD-based business audit method as described in the first aspect is implemented.

[0038] In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium storing computer-executable instructions, wherein the computer-executable instructions are used to execute the SSD-based business audit method as described in the first aspect.

[0039] The embodiment of the present invention includes: obtaining information to be audited, the information to be audited includes the total amount to be audited, the business type to be audited and a cash image, the cash image includes a top image and a side image; inputting the top image and the side image into a pre-trained SSD model; performing digital detection on the top image through the SSD model to generate a first target frame, and identifying the denomination information from the first target frame; performing waist strip detection on the side image through the SSD model, generating a second target frame for each waist strip, determining the target total amount according to the number of the second target frames and the denomination information, and determining the target business type by performing text recognition on the second target frame; when the business type to be audited matches the target business type, the audit result is obtained by comparing the total amount to be audited with the target total amount. According to the technical solution of this embodiment, the target total amount can be identified by using the SSD model, and the target business can be determined by identifying the text on the waist strip, and the information required for the audit can be automatically obtained by image recognition, thereby providing an information basis for automatic audit, which can effectively reduce manual operations and improve the efficiency and intelligence of business audits.

[0040] 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 can be realized and obtained by the structures particularly pointed out in the description, claims and drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0041] The accompanying drawings are used to provide a further understanding of the technical solution of the present invention and constitute a part of the specification. Together with the embodiments of the present invention, they are used to explain the technical solution of the present invention and do not constitute a limitation on the technical solution of the present invention.

[0042] Figure 1 is a flow chart of a business audit method based on SSD provided by an embodiment of the present invention;

[0043] Figure 2 is a structural example diagram of an SSD model provided by another embodiment of the present invention;

[0044] Figure 3 is a schematic diagram of a second target frame provided by another embodiment of the present invention;

[0045] Figure 4 is a flowchart of generating a second target frame provided by another embodiment of the present invention;

[0046] Figure 5 is a schematic diagram of a third target frame provided by another embodiment of the present invention;

[0047] Figure 6 is a flowchart of merging a third target frame provided by another embodiment of the present invention;

[0048] Figure 7 is a flow chart of determining audit results provided by another embodiment of the present invention;

[0049] Figure 8 is a flowchart of cropping an image provided by another embodiment of the present invention;

[0050] Fig. 9 is a schematic diagram of a first cash area and a second cash area provided by another embodiment of the present invention;

[0051] Fig.10 is a flowchart of generating a first target frame provided by another embodiment of the present invention;

[0052] Fig.11 is a flowchart of determining the validity of an image according to a size threshold provided by another embodiment of the present invention;

[0053] Fig.12 is a structural diagram of a service audit device based on SSD provided by another embodiment of the present invention;

[0054] Fig.13 is a device diagram of an electronic device provided by another embodiment of the present invention. DETAILED DESCRIPTION

[0055] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention.

[0056] It should be noted that, although the functional modules are divided in the device schematic diagram and the logical order is shown in the flowchart, in some cases, the steps shown or described may be performed in a different order than the module division in the device or the order in the flowchart. The terms "first", "second", etc. in the specification, claims or the above drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence.

[0057] The present invention provides a business audit method, device, electronic device, and storage medium based on SSD. The business audit method based on SSD includes: obtaining information to be audited, the information to be audited includes the total amount to be audited, the business type to be audited, and a cash image, and the cash image includes a top image and a side image; inputting the top image and the side image into a pre-trained SSD model; performing digital detection on the top image through the SSD model to generate a first target frame, and identifying the denomination information from the first target frame; performing waist bar detection on the side image through the SSD model, generating a second target frame for each waist bar, determining the target total amount according to the number of the second target frames and the denomination information, and determining the target business type by performing text recognition on the second target frame; when the business type to be audited matches the target business type, the audit result is obtained by comparing the total amount to be audited with the target total amount. According to the technical solution of this embodiment, the target total amount can be identified by using the SSD model, and the target business can be determined by identifying the text on the waist bar, and the information required for the audit can be automatically obtained by image recognition, thereby providing an information basis for automatic audit, which can effectively reduce manual operations and improve the efficiency and intelligence of business audit.

[0058] The embodiments of the present application can acquire and process relevant data based on artificial intelligence technology. Among them, artificial intelligence (AI) is the theory, method, technology and application system that uses digital computers or machines controlled by digital computers to simulate, extend and expand human intelligence, perceive the environment, acquire knowledge and use knowledge to obtain the best results.

[0059] AI basic technologies generally include sensors, dedicated AI chips, cloud computing, distributed storage, big data processing technology, operation / interaction systems, mechatronics, etc. AI software technologies mainly include computer vision technology, robotics technology, biometrics technology, speech processing technology, natural language processing technology, and machine learning / deep learning.

[0060] It should be noted that the data of the embodiments of the present invention can be stored in a server. The server can be an independent server or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content delivery networks (CDN), as well as big data and artificial intelligence platforms.

[0061] like Figure 1 As shown, Figure 1An SSD-based service audit method provided by an embodiment of the present invention includes but is not limited to the following steps:

[0062] Step S110, obtaining information to be reviewed, the information to be reviewed includes the total amount to be reviewed, the business type to be reviewed and the cash image, the cash image includes the top image and the side image;

[0063] Step S120, inputting the top image and the side image into a pre-trained SSD model;

[0064] Step S130, performing digital detection on the top image through the SSD model, generating a first target frame, and identifying denomination information from the first target frame;

[0065] Step S140, performing waist strip detection on the side image through the SSD model, generating a second target frame for each waist strip, determining the target total amount according to the number and denomination information of the second target frames, and determining the target business type by performing text recognition on the second target frames;

[0066] Step S150: When the business type to be audited matches the target business type, the audit result is obtained by comparing the total amount to be audited with the target total amount.

[0067] It should be noted that in order to realize business audit, the SSD-based business audit method of this embodiment can be applied to a remote authorization center. Of course, it can also be applied to a cloud server with the authority to audit cash business. Technical personnel in this field are motivated to adjust the specific carrier according to actual conditions. No further limitations are made here. Unless otherwise specified, the following embodiments are described using deployment in a remote authorization center as an example.

[0068] It should be noted that the message to be reviewed can be obtained through a terminal device, for example, a terminal device is connected to a remote authorization center for communication. In the process of handling cash business, the teller enters the message to be reviewed in the terminal device and uploads it to the remote authorization center through the network. The terminal device can be a common computer, mobile device, etc., as long as it can realize information input, and no further limitation is made here. It can be understood that the message to be reviewed can be directly generated by the terminal device, or it can be a pre-configured information template issued by the remote authorization center, and the teller enters the corresponding information in the terminal device according to the information template. For example, the information template includes multiple input options, corresponding to the total amount to be reviewed, the type of business to be reviewed, the top image and the side image, and the teller manually enters the total amount to be reviewed and the type of business to be reviewed, and then uses the shooting device to shoot the top image and side image of the cash to be processed, such as shooting with a high-speed camera commonly used by financial institutions, and then uploads the corresponding image through the information template, thereby completing the reporting of the information to be reviewed. It can be understood that the information template can effectively ensure that the input information to be reviewed complies with the specifications. For example, the type of business to be reviewed can be selected in the form of a drop-down menu to ensure that the remote authorization center can correctly match the corresponding business. The layout and input method of the information template can also be adjusted according to actual needs. This embodiment does not impose any restrictions on this.

[0069] It should be noted that, since the technical solution of this embodiment is applied to the scenario of a financial institution, cash is usually bundled according to certain standards, such as 100 bills per bundle. Of course, if there is actual demand, the amount of cash in each bundle can also be adjusted, and the amount of cash in each bundle can be reported through the information template described in the above embodiment, so that the remote authorization center can calculate the total amount per bundle of cash. For example, if 50 bills are in a bundle, the corresponding information is entered in the information template and reported to the remote authorization center, so that the remote authorization center can recognize that the total amount is calculated as 50 bills per bundle for this audit, and other quantities are similar, which will not be elaborated here.

[0070] It is worth noting that the front and back of the cash are printed with the amount of money, and the bundles of cash in the financial institution must be of the same denomination, so the top image can be photographed by the high-speed scanner, so as to determine the denomination of the cash corresponding to the business through digital detection, for example, if the number obtained by digital detection and recognition is 100, then the denomination of the bundle of cash can be determined to be 100 yuan. In addition, for most financial institutions, the waistband used to bundle cash is usually printed with the business logo corresponding to the cash, such as deposit or withdrawal, and the business logo is usually located on the side of the waistband, so the side image obtained includes the business logo, thereby providing an image basis for text recognition. It is worth noting that in the field of image processing based on artificial intelligence, it is very likely that the collected image does not contain the target to be detected, and the image usually needs to be pre-processed or pre-judged, but because the operating specifications in the financial field are relatively strict, and the image acquisition is completed by the teller operating the high-speed scanner, it is difficult to have the situation that the top image does not have the denomination and the side image does not have the business logo, so in this embodiment, the step of judging whether the image has the image to be detected can be omitted, which is conducive to reducing the calculation steps of the SSD model and improving the detection efficiency.

[0071] Those skilled in the art can understand that SSD technology is a target detection algorithm that directly predicts the coordinates and categories of the target box. It does not generate candidate boxes and can use multi-scale feature maps for target detection, improve target detection accuracy, and maintain high efficiency. In addition, the main network structure of the SSD model is usually VGG16. The two fully connected layers FC6 and FC7 of VGG-16 are replaced with convolutional layers conv6 and conv7, and four convolutional layers are added to construct the network structure. Figure 2 The network structure of the SSD model shown provides an optional SSD network model example, which does not limit the technical solution of this embodiment but is only a principle example. Those skilled in the art are motivated to adjust the network structure of the SSD model according to actual needs.

[0072] refer to Figure 2In the network structure of the SSD model, the feature layers select the convolution layers conv4_3, conv7, conv8_2, conv9_2, conv10_2 and conv11_2 of VGG-16, where the convolution kernel of conv4_3 can be 3×3×1024, the convolution kernel of conv7 can be 1×1×1024, the convolution kernel of conv8_2 can be 1×1×256, the convolution kernel of conv9_2 can be 1×1×128, the convolution kernel of conv10_2 can be 1×1×128, and the convolution kernel of conv11_2 can be 1×1×128. On the basis of the above 6 feature layers for target detection, when the size of the input image is 300*300, the scales of the above 6 feature layers can be scale=[38,19,10,5,3,1] respectively. In addition, the SSD model can also be configured with a priori boxes, which can generate multiple anchor boxes for each pixel of the selected feature layer. The aspect ratio of the priori box can be selected as h / w=[1,2,1 / 2,3,1 / 3] and the aspect ratio is 1 corresponding to two sizes, where h is height and w is width; different feature layers correspond to different priori box sizes. Relative to the original image size, smin=0.2, smax=0.9, the conv4_2 layer size is calculated separately, and other size calculations are obtained by the following formula: Among them, k∈[1,m], m is the number of selected feature layers; in addition, the loss function of the SSD model can include category loss and LOC loss, among which the category loss can use the softmax function and use the selected part of the anchor as the loss, and the loc loss can use the positive examples containing the target in the anchor as the regression loss.

[0073] It should be noted that, since the SSD model has the characteristics of fast detection speed and high accuracy in detecting small targets, the SSD model can be used to quickly complete digital detection from the top image, thereby generating a first target frame in the area corresponding to the cash denomination, and determining the denomination information through simple image recognition. At the same time, each stripe is identified from the side image, and a second target frame is generated for each stripe. The number of second target frames is the number of stripes, so the total amount can be calculated based on this, for example Figure 3 In the side image shown, the number of the recognized second target frames 300 is 10, the denomination recognized from the first target frame is 100, the number of each banknote bundle is 100, and the total amount is 100*10*100=100000.

[0074] It should be noted that, based on the above description, the text information in the second target box is a business identifier, so the target business type can be determined through simple text recognition. The specific recognition method is not an improvement made in this embodiment, and will not be elaborated here. It is sufficient to realize text recognition in a specific area.

[0075] It is worth noting that the target total amount and target business type are obtained based on cash image recognition. Therefore, the recognition process of the above SSD model is equivalent to applying artificial intelligence technology to replace the manual confirmation process of the remote control center in the prior art. Since the detection speed of the SSD model greatly exceeds the speed of manual confirmation, it can effectively improve the audit process. It is understandable that since the total amount to be audited and the business type to be audited are obtained through teller input, when the business type to be audited is consistent with the target business type, the audit result can be determined by judging whether the total amount to be audited is consistent with the target total amount obtained by identification. For the financial field, if the total amount to be audited is consistent with the target total amount, the audit is passed, and no further elaboration will be given here.

[0076] In addition, in one embodiment, referring to Figure 4 , Figure 1 Step S140 of the embodiment also includes but is not limited to the following steps:

[0077] Step S410, performing banknote bundle detection on the side image by using the SSD model, and generating a third target frame for each banknote bundle;

[0078] Step S420: Perform waist strip detection in each third target frame to generate a second target frame.

[0079] It should be noted that banknote bundles are usually Figure 5 The banknotes are stacked in the manner shown, and the position of the waistband of each banknote bundle is not necessarily the same. Therefore, in order to ensure the accuracy of the waistband detection, the banknote bundle detection can be performed from the side image first, and a third target frame for each banknote bundle is generated. The banknote bundle detection can be determined by the distance between the cash. For example, if the distance between two cash bills is greater than a certain threshold, it can be determined that the two cash bills belong to different banknote bundles. The upper and lower boundaries of the waistband can also be identified, and the upper boundary of the waistband is determined as the upper boundary of the third target frame, and the lower boundary of the waistband is determined as the lower boundary of the third target frame. For example Figure 5 As shown, through banknote bundle detection, 10 third target frames 510 can be identified, and the specific detection method can be adjusted according to actual needs as long as banknote bundle detection can be achieved.

[0080] It is worth noting that after obtaining the third target frame, square image detection can be performed in the third target frame to achieve waist detection. The specific method can be adjusted according to actual needs.

[0081] In addition, in one embodiment, referring to Figure 6 , in execution Figure 4 Before step S420 of the embodiment, the following steps are also included but not limited to:

[0082] Step S610, performing image comparison on two adjacent third target frames to obtain an image overlap ratio;

[0083] Step S620: When the image overlap ratio is greater than a preset ratio, two third target frames corresponding to the image overlap ratio are merged.

[0084] It should be noted that since cash is paper banknotes, it may be tilted even if placed in a stack. At this time, it is very likely that the banknote bundles corresponding to the two third target frames are the same banknote bundle. When the banknote bundle is tilted, the two adjacent third target frames are likely to overlap with each other. In order to prevent the tilt of cash from affecting the accuracy of detection, after the third target frame is generated, the image of the adjacent third target frames can be compared. When the obtained image overlap ratio is greater than the preset ratio, the two adjacent third target frames actually correspond to the same banknote bundle, and the above two third target frames can be merged.

[0085] It should be noted that the value of the preset ratio can be adjusted according to the needs of the moment. For example, when the size of the third target frame is large, the preset ratio can be appropriately increased. Those skilled in the art are familiar with how to adjust the preset ratio so that the SSD model can accurately identify the overlapping of banknote bundles caused by the tilted cash placement.

[0086] In addition, in one embodiment, referring to Figure 7 , Figure 1 Step S150 of the embodiment also includes but is not limited to the following steps:

[0087] Step S710, when the total amount to be reviewed matches the target total amount, the review result is determined to be approved;

[0088] Step S720: When the total amount to be reviewed does not match the target total amount, the review is terminated and a prompt message is generated, and the manual review result obtained after the prompt message is generated is determined as the review result.

[0089] It should be noted that in the financial field, the focus of cash business audits is on the verification of the amount. Therefore, when the total amount to be audited matches the target total amount, it can be determined that the total amount to be audited entered by the teller is correct, thereby determining that the audit result is passed. There is no need for manual confirmation again, which effectively shortens the audit process and improves audit efficiency.

[0090] It should be noted that when the total amount to be audited does not match the target total amount, it may be that there is an error in the recognition of the SSD model or that there is an error in the total amount to be audited. In this case, the SSD model can be used for two consecutive recognitions. When the results of the two recognitions are both a match, it can be determined that the root cause of the first mismatch lies in the error of the SSD model, and the audit result is determined to be passed. Of course, based on the rigor of the financial industry, the automatic audit process can also be terminated, and a prompt message can be generated to prompt the auditor to intervene. The manual audit result can be entered in the remote authorization center through manual review, and the manual review result can be used as the final audit result to complete the audit process to ensure the accuracy of the business audit.

[0091] In addition, in one embodiment, referring to Figure 8 , in execution Figure 4 Before step S420 of the embodiment, the following steps are also included but not limited to:

[0092] Step S810, performing image recognition on the top image, determining a first cash area in the top image, and cropping the top image according to the first cash area;

[0093] Step S820: perform image recognition on the side image, determine the second cash area in the side image, and crop the top image according to the second cash area.

[0094] It should be noted that, since the shooting range of high-speed scanners is usually large, it is likely to capture images other than cash, such as Fig. 9 As shown, in Fig. 9 In the example, the input cash image includes a top image 910 and a side image 920, and the banknote bundle occupies only a part of the area in both images, and also includes the external environment. Since the SSD model does not include a candidate box, the external environment has a greater impact on the accuracy. Therefore, after obtaining the cash image, the boundary of the cash can be identified to determine the cash area. For example, Fig. 9 In the present invention, the boundary of cash is identified in the top image 910 to obtain the first cash area 911, and image recognition for cash is performed in the side image 920 to obtain the second cash area 921. The top image 910 and the side image 920 are cropped so that only the first cash area 911 remains in the top image 910 and the second cash area 921 remains in the side image 920. The first cash area 911 and the second cash area 921 are used as the input of the SSD model, which can effectively reduce the interference of complex environment, reduce the amount of calculation, and improve the accuracy of target detection.

[0095] It should be noted that the first cash area or the second cash area can be obtained by simple image recognition technology. Those skilled in the art are familiar with how to recognize banknotes with fixed and known shapes in images, and the image recognition technology will not be elaborated herein.

[0096] It should be noted that in order to avoid accidentally cropping off part of the banknote bundle, appropriate redundancy can be introduced when determining the first cash area and the second cash area, and the target boxes of the first cash area and the second cash area can be expanded. Those skilled in the art are familiar with how to configure redundancy to avoid cropping off the banknote bundle image, and no further details will be given here.

[0097] In addition, in one embodiment, referring to Fig.10 , Figure 1 Step S130 of the embodiment also includes but is not limited to the following steps:

[0098] Step S1010, obtaining a preset digital reference area;

[0099] Step S1020, performing digital detection in the first cash area according to the digital reference area, and generating the first target frame if a digital is detected.

[0100] It should be noted that, unlike common AI image recognition, the target of image recognition for cash business is cash, and the digital area of ​​cash is known, so the digital reference area can be set in advance, which can improve the efficiency of digital detection, for example Fig. 9 In the top image 910 shown, the digital areas on the back of the RMB 100 cash are at the two top corners on the upper side and the lower left area. The corresponding areas can be configured as digital reference areas, and digital detection can be performed directly in the digital reference areas, effectively improving the efficiency of digital detection.

[0101] It is worth mentioning that due to the large number of cash currencies, you can also Figure 1 The information template described in the illustrated embodiment is used for determination. For example, when handling U.S. dollar business, the currency entered in the information template is U.S. dollars. The reference area can improve the detection efficiency. Those skilled in the art can adjust the method for determining the digital reference area according to actual needs, which will not be elaborated here.

[0102] In addition, in one embodiment, referring to Fig.11 , in execution Figure 1 After step S110 of the embodiment, the following steps are also included but not limited to:

[0103] Step S1110, obtaining a preset first size threshold and a second size threshold;

[0104] Step S1120, when the size of the top image is greater than or equal to the first size threshold, determining that the top image is valid;

[0105] Step S1130: When the size of the side image is greater than or equal to the second size threshold, it is determined that the side image is valid.

[0106] It should be noted that for Figure 1 The SSD model shown in the figure uses convolutional layers. Although it allows input of images of different sizes, different image sizes will result in different numbers of final anchor boxes, which will have a certain impact on the detection accuracy. Therefore, the first size threshold and the second size threshold can be set in advance. After obtaining the cash image, the image size can be judged to avoid the image being too small to affect the detection accuracy. For example, based on Figure 1 For the SSD model shown in FIG. 1 , the first size threshold can be set to 300*300, that is, the top image needs to be greater than or equal to 300*300. For example, based on Figure 8 In the embodiment shown, the cash area needs to be cropped, and the cropped area can also be limited to be greater than or equal to 300*300, that is, the first cash area and the second cash area are both greater than or equal to 300*300. It can be understood that the values ​​of the first size threshold and the second size threshold can be the same, or can be set to different values ​​according to needs, and no further limitation is made here.

[0107] In addition, in one embodiment, referring to Fig.12 The present invention also provides a service audit device based on SSD. The service audit device based on SSD 1200 includes but is not limited to the following devices:

[0108] The collection unit 1210 is used to obtain the information to be reviewed, which includes the total amount to be reviewed, the business type to be reviewed and the cash image, and the cash image includes the top image and the side image;

[0109] An image input unit 1220, used to input the top image and the side image into a pre-trained SSD model;

[0110] The first recognition unit 1230 is used to perform digital detection on the top image through the SSD model, generate a first target frame, and recognize the denomination information from the first target frame;

[0111] The second recognition unit 1240 is used to detect waistbands on the side image through the SSD model, generate a second target frame for each waistband, determine the target total amount according to the number and denomination information of the second target frames, and determine the target business type by performing text recognition on the second target frames;

[0112] The audit unit 1250 is used to obtain the audit result by comparing the total amount to be audited with the target total amount when the business type to be audited matches the target business type.

[0113] In addition, refer to Fig.13 An embodiment of the present invention further provides an electronic device, the electronic device 1300 comprising: a memory 1310, a processor 1320, and a computer program stored in the memory 1310 and executable on the processor 1320.

[0114] The processor 1320 and the memory 1310 may be connected via a bus or in other ways.

[0115] The non-transient software program and instructions required to implement the SSD-based service audit method of the above embodiment are stored in the memory 1310. When executed by the processor 1320, the SSD-based service audit method applied to the device in the above embodiment is executed, for example, the above-described Figure 1 Steps S110 to S150 of the method, Figure 4 Steps S410 to S420 of the method, Figure 6 Steps S610 to S620 of the method, Figure 7 Steps S710 to S720 of the method, Figure 8 Steps S710 to S820 of the method, Fig.10 Steps S1010 to S1020 of the method, Fig.11 The method comprises steps S1110 to S1130.

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

[0117] In addition, an embodiment of the present invention further provides a computer-readable storage medium, which stores computer-executable instructions, which are executed by a processor or a controller, for example, by a processor in the above electronic device embodiment, so that the above processor can execute the SSD-based business audit method applied to the electronic device in the above embodiment, for example, to execute the above-described Figure 1 Steps S110 to S150 of the method, Figure 4 Steps S410 to S420 of the method, Figure 6 Steps S610 to S620 of the method, Figure 7Steps S710 to S720 of the method, Figure 8 Steps S710 to S820 of the method, Fig.10 Steps S1010 to S1020 of the method, Fig.11 Method steps S1110 to S1130 in the method. It will be appreciated by those skilled in the art that all or some of the steps and devices in the method disclosed above may be implemented as software, firmware, hardware, and appropriate combinations thereof. Some physical components or all physical components may be implemented as software executed by a processor, such as a central processing unit, a digital signal processor, or a microprocessor, or may be implemented as hardware, or may be implemented as an integrated circuit, such as an application-specific integrated circuit. Such software may be distributed on a computer-readable storage medium, which may include a computer storage medium (or a non-transitory storage medium) and a communication storage medium (or a temporary storage medium). As known to those skilled in the art, the term computer storage medium includes volatile and non-volatile, removable and non-removable storage media implemented in any method or technology for storing information (such as computer-readable instructions, data structures, program modules, or other data). Computer storage media include, but are not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, digital versatile disk (DVD) or other optical disk storage, magnetic cassettes, magnetic tapes, disk storage or other magnetic storage devices, or any other storage medium that may be used to store desired information and may be accessed by a computer. Furthermore, it is well known to those skilled in the art that communication storage media generally contain computer-readable instructions, data structures, program modules, or other data in a modulated data signal such as a carrier wave or other transport mechanism, and may include any information delivery storage media.

[0118] The present application can be used in many general or special computer system environments or configurations. For example: personal computers, server computers, handheld or portable devices, tablet devices, multiprocessor systems, microprocessor-based systems, set-top boxes, programmable consumer electronics, network PCs, minicomputers, mainframe computers, distributed computing environments including any of the above systems or devices, etc. The present application can be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types. The present application can also be practiced in distributed computing environments, in which tasks are performed by remote processing devices connected through a communication network. In a distributed computing environment, program modules can be located in local and remote computer storage media including storage devices.

[0119] The above is a specific description of the preferred implementation of the present invention, but the present invention is not limited to the above-mentioned implementation mode. Technical personnel familiar with the field can also make various equivalent deformations or substitutions without violating the spirit of the present invention. These equivalent deformations or substitutions are all included in the scope defined by the claims of the present invention.

Claims

1. A business audit method based on SSD, characterized in that: include: Acquire information to be reviewed, wherein the information to be reviewed includes a total amount to be reviewed, a business type to be reviewed, and a cash image, wherein the cash image includes a top image and a side image; Input the top image and the side image into a pre-trained SSD model; Performing digital detection on the top image by using the SSD model to generate a first target frame, and identifying denomination information from the first target frame; Performing banknote bundle detection on the side image by using the SSD model, when the distance between two adjacent banknotes is greater than a first threshold, taking the two banknotes as the boundaries of the corresponding banknote bundle, and generating a third target frame for each banknote bundle; Performing image comparison on two adjacent third target frames to obtain an image overlap ratio; When the image overlap ratio is greater than a preset ratio, merging the two third target frames corresponding to the image overlap ratio; Perform waist strip detection in each of the third target frames, and generate a second target frame for each waist strip; Determine the target total amount according to the number of the second target boxes and the denomination information, and determine the target business type by performing text recognition on the second target boxes; When the business type to be audited matches the target business type, the audit result is obtained by comparing the total amount to be audited with the target total amount; The SSD model is obtained by replacing the fully connected layer of the VGG16 network structure. The SSD model includes the first convolutional layer, the second convolutional layer, the third convolutional layer, the fourth convolutional layer, the fifth convolutional layer and the sixth convolutional layer in sequence. The convolution kernel of the first convolutional layer is 3×3×1024, the convolution kernel of the second convolutional layer is 1×1×1024, the convolution kernel of the third convolutional layer is 1×1×256, the convolution kernel of the fourth convolutional layer is 1×1×128, the convolution kernel of the fifth convolutional layer is 1×1×128, and the convolution kernel of the sixth convolutional layer is 1×1×128. The SSD model is also configured with a priori box, the length and width ratio of the priori box satisfies h / w=[1,2,1 / 2,3,1 / 3], where h is the length of the priori box and w is the width of the priori box. The priori box size of each convolutional layer of the SSD model is calculated by the following formula: , where k∈[1,m], m is the number of selected feature layers, is the prior box size, is the minimum size of the prior box, is the maximum size of the prior box, and the first convolutional layer satisfies =0.9 and =0.

2.

2. The SSD-based business audit method according to claim 1, characterized in that: The audit result is obtained by comparing the total amount to be audited with the target total amount, including: When the total amount to be audited matches the target total amount, the audit result is determined to be audit passed; When the total amount to be reviewed does not match the target total amount, the review is terminated and a prompt message is generated, and the manual review result obtained after the prompt message is generated is determined as the review result.

3. The SSD-based business audit method according to claim 1, characterized in that: Before inputting the top image and the side image into the pre-trained SSD model, the method further includes: Performing image recognition on the top image, determining a first cash area in the top image, and cropping the top image according to the first cash area; Image recognition is performed on the side image to determine a second cash area in the side image, and the top image is cropped according to the second cash area.

4. The SSD-based business audit method according to claim 3, characterized in that: The performing digital detection on the top image by using the SSD model to generate a first target frame includes: Obtaining a pre-set digital reference area; Digital detection is performed in the first cash area according to the digital reference area, and if a number is detected, the first target frame is generated.

5. The SSD-based business audit method according to claim 1 or 3, characterized in that: After obtaining the information to be reviewed, the method further includes: Obtaining a preset first size threshold and a second size threshold; When the size of the top image is greater than or equal to the first size threshold, determining that the top image is valid; When the size of the side image is greater than or equal to the second size threshold, it is determined that the side image is valid.

6. A business audit device based on SSD, characterized in that: include: A collection unit, used to obtain information to be reviewed, wherein the information to be reviewed includes a total amount to be reviewed, a business type to be reviewed, and a cash image, wherein the cash image includes a top image and a side image; An image input unit, used for inputting the top image and the side image into a pre-trained SSD model; A first recognition unit, configured to perform digital detection on the top image through the SSD model, generate a first target frame, and recognize denomination information from the first target frame; The second recognition unit is used to detect banknote bundles in the side image by using the SSD model, and when the distance between two adjacent banknotes is greater than a first threshold, the two banknotes are used as the boundaries of the corresponding banknote bundle, and a third target frame is generated for each banknote bundle; image comparison is performed on two adjacent third target frames to obtain an image overlap ratio; when the image overlap ratio is greater than a preset ratio, the two third target frames corresponding to the image overlap ratio are merged; Perform waist strip detection in each of the third target frames, and generate a second target frame for each waist strip; Determine the target total amount according to the number of the second target boxes and the denomination information, and determine the target business type by performing text recognition on the second target boxes; An audit unit, configured to obtain an audit result by comparing the total amount to be audited with the target total amount when the business type to be audited matches the target business type; The SSD model is obtained by replacing the fully connected layer of the VGG16 network structure. The SSD model includes the first convolutional layer, the second convolutional layer, the third convolutional layer, the fourth convolutional layer, the fifth convolutional layer and the sixth convolutional layer in sequence. The convolution kernel of the first convolutional layer is 3×3×1024, the convolution kernel of the second convolutional layer is 1×1×1024, the convolution kernel of the third convolutional layer is 1×1×256, the convolution kernel of the fourth convolutional layer is 1×1×128, the convolution kernel of the fifth convolutional layer is 1×1×128, and the convolution kernel of the sixth convolutional layer is 1×1×128. The SSD model is also configured with a priori box, the length and width ratio of the priori box satisfies h / w=[1,2,1 / 2,3,1 / 3], where h is the length of the priori box and w is the width of the priori box. The priori box size of each convolutional layer of the SSD model is calculated by the following formula: , where k∈[1,m], m is the number of selected feature layers, is the prior box size, is the minimum size of the prior box, is the maximum size of the prior box, and the first convolutional layer satisfies =0.9 and =0.

2.

7. An electronic device comprising: A memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the SSD-based business audit method as described in any one of claims 1 to 5 when executing the computer program.

8. A computer-readable storage medium storing computer-executable instructions, characterized in that: The computer executable instructions are used to execute the SSD-based business audit method as described in any one of claims 1 to 5.