CN112950837A - Banknote damage condition identification method and device based on deep learning - Google Patents
Banknote damage condition identification method and device based on deep learning Download PDFInfo
- Publication number
- CN112950837A CN112950837A CN202110232998.8A CN202110232998A CN112950837A CN 112950837 A CN112950837 A CN 112950837A CN 202110232998 A CN202110232998 A CN 202110232998A CN 112950837 A CN112950837 A CN 112950837A
- Authority
- CN
- China
- Prior art keywords
- defect
- data
- image
- banknote
- training
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Images
Classifications
-
- G—PHYSICS
- G07—CHECKING-DEVICES
- G07D—HANDLING OF COINS OR VALUABLE PAPERS, e.g. TESTING, SORTING BY DENOMINATIONS, COUNTING, DISPENSING, CHANGING OR DEPOSITING
- G07D7/00—Testing specially adapted to determine the identity or genuineness of valuable papers or for segregating those which are unacceptable, e.g. banknotes that are alien to a currency
- G07D7/181—Testing mechanical properties or condition, e.g. wear or tear
- G07D7/187—Detecting defacement or contamination, e.g. dirt
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06N—COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06N3/00—Computing arrangements based on biological models
- G06N3/02—Neural networks
- G06N3/04—Architecture, e.g. interconnection topology
- G06N3/045—Combinations of networks
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06N—COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06N3/00—Computing arrangements based on biological models
- G06N3/02—Neural networks
- G06N3/04—Architecture, e.g. interconnection topology
- G06N3/048—Activation functions
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06N—COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06N3/00—Computing arrangements based on biological models
- G06N3/02—Neural networks
- G06N3/08—Learning methods
-
- G—PHYSICS
- G07—CHECKING-DEVICES
- G07D—HANDLING OF COINS OR VALUABLE PAPERS, e.g. TESTING, SORTING BY DENOMINATIONS, COUNTING, DISPENSING, CHANGING OR DEPOSITING
- G07D7/00—Testing specially adapted to determine the identity or genuineness of valuable papers or for segregating those which are unacceptable, e.g. banknotes that are alien to a currency
- G07D7/20—Testing patterns thereon
- G07D7/202—Testing patterns thereon using pattern matching
- G07D7/206—Matching template patterns
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02P—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
- Y02P90/00—Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
- Y02P90/30—Computing systems specially adapted for manufacturing
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- General Physics & Mathematics (AREA)
- General Health & Medical Sciences (AREA)
- Molecular Biology (AREA)
- Biophysics (AREA)
- Computational Linguistics (AREA)
- Data Mining & Analysis (AREA)
- Evolutionary Computation (AREA)
- Artificial Intelligence (AREA)
- Biomedical Technology (AREA)
- Computing Systems (AREA)
- General Engineering & Computer Science (AREA)
- Life Sciences & Earth Sciences (AREA)
- Mathematical Physics (AREA)
- Software Systems (AREA)
- Health & Medical Sciences (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Image Analysis (AREA)
Abstract
The invention provides a method and a device for identifying a paper money damage condition based on deep learning, which belong to the field of artificial intelligence and can be used in the financial field and other fields, wherein the method comprises the following steps: acquiring image information of paper money, and respectively intercepting a defect image block and a standard image block in the image information to generate defect data and non-defect data; filtering and/or amplifying the defect data and the non-defect data to generate a training image, calibrating the damaged position of the paper currency in the defect data to generate defect type data, and generating training set data according to the training image and the defect type data; training a preset YOLOv3 network through the training set data to obtain a banknote detection model, and inputting a banknote image to be detected into the banknote detection model to obtain characteristic parameters; and calculating according to the characteristic parameters to obtain a paper currency defect ratio, and comparing the paper currency defect ratio with a preset threshold value to obtain the damage condition of the paper currency.
Description
Technical Field
The invention relates to the field of artificial intelligence, is applicable to the financial field and other fields, and particularly relates to a banknote damage condition identification method and device based on deep learning.
Background
During the printing or circulation process of the paper money, the defects of spots, pits, scratches, color difference, defects and the like are inevitably generated, and the paper money with similar defects is found and recovered in time. How to solve the problems of real-time property of paper money damage, large detection difficulty caused by small defect of paper money damage and the like is a key and difficult point of defect detection. In the conventional defect detection, a corresponding light source is generally selected, and a proper illumination method is selected through a lighting test to obtain a good image. Then, an extraction algorithm is designed according to the defect characteristics of the actual imaging picture, and the characteristics commonly used by the extraction algorithm comprise: haar, SIFT, HOG, etc.; the defect classification algorithm is usually a neural network (MLP), a Support Vector Machine (SVM), Adaboost and the like. The similar method has the defects of single detectable defect type, weak generalization capability and poor identification effect on small-area damage conditions.
Disclosure of Invention
The invention aims to provide a method and a device for identifying the damage condition of paper money based on deep learning, which are used for overcoming the defects of single detectable defect type and weak generalization capability in the prior art, monitoring the damage state of the paper money in real time and effectively monitoring the damage defect of the paper money in a small area.
To achieve the above object, the present invention provides a method for recognizing banknote breakage based on deep learning, comprising: acquiring image information of paper money, and respectively intercepting a defect image block and a standard image block in the image information to generate defect data and non-defect data; filtering and/or amplifying the defect data and the non-defect data to generate a training image, calibrating the damaged position of the paper currency in the defect data to generate defect type data, and generating training set data according to the training image and the defect type data; training a preset YOLOv3 network through the training set data to obtain a banknote detection model, and inputting a banknote image to be detected into the banknote detection model to obtain characteristic parameters; and calculating according to the characteristic parameters to obtain a paper currency defect ratio, and comparing the paper currency defect ratio with a preset threshold value to obtain the damage condition of the paper currency.
In the method for recognizing banknote damage based on deep learning, it is preferable that the acquiring of the image information of the banknote includes: and collecting a paper money image through CDD visual detection equipment, and converting the paper money image into a gray image to obtain image information.
In the banknote breakage recognition method based on the deep learning, it is preferable that the generating of the training image by performing the filtering and/or amplification processing on the defect data and the non-defect data includes: replacing the particle noise of the defect data and the defect-free data by utilizing a low-pass or high-pass filter according to the weighted average value of each pixel in the pixel point field of the particle noise in the defect data and the defect-free data; and performing amplification on the defect data and the non-defect data by one or more combinations of rotating according to a preset angle, adjusting brightness and contrast and adding Gaussian white noise.
In the banknote breakage recognition method based on the deep learning, the defect type data preferably includes a picture path, a breakage type, and coordinate position information.
In the banknote breakage recognition method based on the deep learning, the preset YOLOv3 network preferably includes: darknet-53 in the YOLOv3 network structure was replaced by a dense connection network DenseNet.
In the method for recognizing banknote damage based on deep learning, preferably, the calculating and obtaining the banknote defect ratio from the feature parameters includes: acquiring position parameters in the characteristic parameters, and calculating to obtain length and width data of the paper money according to the position parameters; and substituting the length and width data and the confidence level and the defect classification probability in the characteristic parameters into a preset sigmoid function to calculate and obtain the defect ratio of the paper money.
The present invention also provides a banknote breakage recognition apparatus based on deep learning, the apparatus including: the device comprises an image acquisition module, a preprocessing module, a training module and an identification module; the image acquisition module is used for acquiring image information of paper money, and respectively intercepting a defect image block and a standard image block in the image information to generate defect data and non-defect data; the preprocessing module is used for carrying out filtering and/or amplification processing on the defect data and the non-defect data to generate a training image, calibrating the damaged position of the paper currency in the defect data to generate defect type data, and generating training set data according to the training image and the defect type data; the training module is used for training a preset Yolov3 network through the training set data to obtain a banknote detection model, and inputting a banknote image to be detected into the banknote detection model to obtain characteristic parameters; the recognition module is used for calculating according to the characteristic parameters to obtain a paper currency defect ratio, and comparing the paper currency defect ratio with a preset threshold value to obtain a paper currency damage condition.
In the banknote breakage recognition apparatus based on the deep learning, preferably, the image capture module includes: and collecting a paper money image through CDD visual detection equipment, and converting the paper money image into a gray image to obtain image information.
In the banknote breakage recognition apparatus based on the deep learning, preferably, the preprocessing module includes a filtering unit and an amplifying unit; the filtering unit is used for replacing the particle noise points of the defect data and the defect-free data by utilizing a low-pass or high-pass filter through the weighted average value of each pixel in the pixel point field of the particle noise points in the defect data and the defect-free data; the amplification unit is used for amplifying one or more combinations of rotating the defect data and the non-defect data according to a preset angle, adjusting brightness and contrast and adding Gaussian white noise.
In the banknote damage condition recognition device based on deep learning, preferably, the recognition module includes a calculation unit, and the calculation unit is configured to acquire a position parameter in the feature parameters, and calculate length and width data of the banknote according to the position parameter; and substituting the length and width data and the confidence level and the defect classification probability in the characteristic parameters into a preset sigmoid function to calculate and obtain the defect ratio of the paper money.
The invention also provides a computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the method when executing the computer program.
The present invention also provides a computer-readable storage medium storing a computer program for executing the above method.
The invention has the beneficial technical effects that: aiming at the small-size damage condition of the paper money, the original three original prediction scales of Yolov3 cannot meet the requirements, so the 4 th prediction scale is added. The feature map of [52, 255] is up-sampled and connected to the feature map of [104,104,255] size in the convolution process, which is a 4-fold down-sampled size of the input image and whose receptive field is suitable for detecting the smaller-sized defect location among the banknote defects. The dense connection network DenseNet is used for replacing an original network structure Darknet-53, each layer of the DenseNet can receive all the previous layers as additional input of the DenseNet, multi-layer characteristic reuse can be better realized, the problem of gradient disappearance in the original structure is relieved, and the network computing efficiency is improved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the invention and together with the description serve to explain the principles of the invention. In the drawings:
fig. 1 is a schematic flowchart of a banknote breakage recognition method based on deep learning according to an embodiment of the present invention;
FIG. 2 is a schematic flow chart of image preprocessing according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of a YOLOv3 feature extraction network according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of DenseNet according to an embodiment of the present invention;
FIG. 5 is a schematic view illustrating a process of calculating a defect ratio of a banknote according to an embodiment of the present invention;
FIG. 6 is a schematic structural diagram of a banknote breakage recognition apparatus based on deep learning according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
The following detailed description of the embodiments of the present invention will be provided with reference to the drawings and examples, so that how to apply the technical means to solve the technical problems and achieve the technical effects can be fully understood and implemented. It should be noted that, unless otherwise specified, the embodiments and features of the embodiments of the present invention may be combined with each other, and the technical solutions formed are within the scope of the present invention.
Additionally, the steps illustrated in the flow charts of the figures may be performed in a computer system such as a set of computer-executable instructions and, although a logical order is illustrated in the flow charts, in some cases, the steps illustrated or described may be performed in an order different than here.
Referring to fig. 1, the method for recognizing banknote damage based on deep learning provided by the present invention specifically includes:
s101, acquiring image information of paper money, and respectively intercepting a defect image block and a standard image block in the image information to generate defect data and non-defect data;
s102, filtering and/or amplifying the defect data and the non-defect data to generate a training image, calibrating the damaged position of the paper currency in the defect data to generate defect type data, and generating training set data according to the training image and the defect type data;
s103, training a preset YOLOv3 network through the training set data to obtain a banknote detection model, and inputting a banknote image to be detected into the banknote detection model to obtain characteristic parameters;
s104, calculating according to the characteristic parameters to obtain a paper currency defect ratio, and comparing the paper currency defect ratio with a preset threshold value to obtain a paper currency damage condition.
The defect type data comprises a picture path, a damage type and coordinate position information.
In the above embodiment, acquiring the image information of the bill includes: and collecting a paper money image through CDD visual detection equipment, and converting the paper money image into a gray image to obtain image information. Specifically, in actual work, a CCD visual inspection device can be used for collecting a paper money image and converting the paper money image into a gray image, a defect image block is respectively intercepted on the paper money gray image to serve as defect data, and a normal image is intercepted to serve as non-defect data. The truncated image requires resize to a size of 416x 416.
Referring to fig. 2, in an embodiment of the invention, the filtering and/or amplifying the defect data and the non-defect data to generate a training image includes:
s201, replacing the particle noise points of the defect data and the defect-free data by utilizing a low-pass or high-pass filter through the weighted average value of each pixel in the pixel point field of the particle noise points in the defect data and the defect-free data;
s202, amplifying the defect data and the non-defect data by one or more combinations of rotating according to a preset angle, adjusting brightness and contrast and adding Gaussian white noise.
Specifically, in actual work, aiming at the characteristic that the collection of a paper money image domain is easily influenced by internal noise such as particle noise on an image collecting instrument and an optical negative film, a low-pass or high-pass filter is used, and the weighted average value of each pixel in a certain pixel point domain is used for replacing the original pixel value.
The image set is expanded by rotating the original image by 90 degrees, 180 degrees and 270 degrees and adjusting the contrast and the brightness; the number of image samples is further extended by adding white gaussian noise. The number of the extended defect data and defect-free data samples is about 2500, the ratio of the number of the images in the training set to the number of the images in the testing set is 8:2, and the types of the defects comprise spots, scratches and defects.
In an embodiment of the present invention, in the step S102, the banknote damage location in the defect data is calibrated to generate defect type data, the location of the banknote damage in the training picture can be calibrated by using labelImg software, and an XML file corresponding to a passacal format is generated, where the generated XML file includes the picture path, the type of the damage and the coordinate location information. The training set is composed of images and XML files corresponding to the images.
In an embodiment of the present invention, the predetermined YOLOv3 network includes: darknet-53 in the YOLOv3 network structure was replaced by a dense connection network DenseNet. Specifically, in actual work, the YOLOv3 network firstly divides an input picture into a plurality of cells, and if the center of an object to be detected falls in a certain cell, the cell is responsible for predicting the object and outputting various attributes (including the position, width and height of a central point, confidence and category information) of the object. The YOLOv3 feature extraction network is shown in fig. 3. In order to improve the feature extraction capability, a dense connection network DenseNet is used for replacing an original network structure Darknet-53, and the structure diagram of the DenseNet is shown in figure 4.
The formula is used to show that the output of the DenseNet network at the l layer is:
xl=Hl([x0,x1,...,xl-1]);
wherein xlRepresents the output of the l-th neural network, HlRepresenting a non-linear function. It can be seen that each layer of the DenseNet can accept all the previous layers as additional input, so that the reuse of characteristics among multiple layers can be better realized, the problem of gradient disappearance in the original structure is relieved, and the network calculation efficiency is improved.
An input picture with the size of 416X416 enters a DenseNet network to obtain 3 original branches, and the branches are subjected to a series of operations such as convolution, upsampling and combination to finally obtain three characteristic pictures of y1, y2 and y3 with different sizes in a characteristic diagram 4, wherein the three characteristic pictures correspond to 32-time downsampling, 16-time downsampling and 8-time downsampling respectively. The shapes are [13, 255], [26, 255] and [52, 255] respectively, which correspond to detection targets of large size, medium size and small size respectively. However, for the small-size damage of the paper money, the original three original prediction scales of Yolov3 cannot meet the requirements, so the 4 th prediction scale is added. The feature map of [52, 255] is up-sampled and connected to the feature map of [104,104,255] size in the convolution process, which is a 4-fold down-sampled size of the input image and whose receptive field is suitable for detecting the smaller-sized defect location among the banknote defects.
Referring to fig. 5, in an embodiment of the present invention, the calculating the banknote defect ratio according to the characteristic parameters includes:
s501, acquiring position parameters in the characteristic parameters, and calculating to obtain length and width data of the paper money according to the position parameters;
and S502, according to the length and width data, the confidence level and the defect classification probability in the characteristic parameters, the preset sigmoid function is substituted to calculate and obtain the defect ratio of the paper money.
Specifically, in actual operation, the output bounding box of a neural network is typically represented by a set of 6-element vectors. Respectively, 4 location parameters center _ x, center _ y, w, h, and 1 confidence (1 or 0) and 1 defect classification probability p (i) ([1,0,0,0,0 … ], [0,1,0,0,0 … ]). Wherein center _ x and center _ y are the abscissa and ordinate of the central position of the output bounding box; w and h are length and width information of the output bounding box. The confidence level represents whether the current bounding box has an object. If the confidence of the frame is less than a given threshold, the frame is considered to contain no object, a sigmoid function is mainly used, the function can restrict the result output by the feature layer to the interval of [0, 1], if the decimal obtained by the result continuously passing through the sigmoid function is greater than the set threshold, the result belongs to the category, otherwise, the boundary frame is deleted and the follow-up processing is not considered. The boxes whose confidence levels are equal to or greater than the confidence level threshold are then subjected to non-maximum suppression (NMS) processing. Therefore, whether the paper money is damaged to a certain degree and needs to be recovered can be judged according to the following formula:
where n is the number of output bounding boxes, P (object) is the corresponding confidence, w, h are the length and width of the output bounding boxes, W, H is the length and width of the banknote, and X is the quotient of the detected defect area and the total banknote area. And comparing the X with a set threshold value, and if the ratio of the sum of the detected defect areas to the total area of the paper money is larger than or equal to the set threshold value, determining that the damage of the paper money reaches a certain degree and needing to be recycled.
Referring to fig. 6, the present invention further provides a banknote breakage recognition apparatus based on deep learning, the apparatus including: the device comprises an image acquisition module, a preprocessing module, a training module and an identification module; the image acquisition module is used for acquiring image information of paper money, and respectively intercepting a defect image block and a standard image block in the image information to generate defect data and non-defect data; the preprocessing module is used for carrying out filtering and/or amplification processing on the defect data and the non-defect data to generate a training image, calibrating the damaged position of the paper currency in the defect data to generate defect type data, and generating training set data according to the training image and the defect type data; the training module is used for training a preset Yolov3 network through the training set data to obtain a banknote detection model, and inputting a banknote image to be detected into the banknote detection model to obtain characteristic parameters; the recognition module is used for calculating according to the characteristic parameters to obtain a paper currency defect ratio, and comparing the paper currency defect ratio with a preset threshold value to obtain a paper currency damage condition.
In the above embodiment, the image capturing module includes: and collecting a paper money image through CDD visual detection equipment, and converting the paper money image into a gray image to obtain image information. In another embodiment, the pretreatment module comprises a filtration unit and an amplification unit; the filtering unit is used for replacing the particle noise points of the defect data and the defect-free data by utilizing a low-pass or high-pass filter through the weighted average value of each pixel in the pixel point field of the particle noise points in the defect data and the defect-free data; the amplification unit is used for amplifying one or more combinations of rotating the defect data and the non-defect data according to a preset angle, adjusting brightness and contrast and adding Gaussian white noise.
In an embodiment of the present invention, the identification module includes a calculation unit, and the calculation unit is configured to obtain a position parameter in the characteristic parameters, and calculate length and width data of the banknote according to the position parameter; and substituting the length and width data and the confidence level and the defect classification probability in the characteristic parameters into a preset sigmoid function to calculate and obtain the defect ratio of the paper money.
The invention has the beneficial technical effects that: aiming at the small-size damage condition of the paper money, the original three original prediction scales of Yolov3 cannot meet the requirements, so the 4 th prediction scale is added. The feature map of [52, 255] is up-sampled and connected to the feature map of [104,104,255] size in the convolution process, which is a 4-fold down-sampled size of the input image and whose receptive field is suitable for detecting the smaller-sized defect location among the banknote defects. The dense connection network DenseNet is used for replacing an original network structure Darknet-53, each layer of the DenseNet can receive all the previous layers as additional input of the DenseNet, multi-layer characteristic reuse can be better realized, the problem of gradient disappearance in the original structure is relieved, and the network computing efficiency is improved.
The invention also provides a computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the method when executing the computer program.
The present invention also provides a computer-readable storage medium storing a computer program for executing the above method.
As shown in fig. 7, the electronic device 600 may further include: communication module 110, input unit 120, audio processing unit 130, display 160, power supply 170. It is noted that the electronic device 600 does not necessarily include all of the components shown in fig. 7; furthermore, the electronic device 600 may also comprise components not shown in fig. 7, which may be referred to in the prior art.
As shown in fig. 7, the central processor 100, sometimes referred to as a controller or operational control, may include a microprocessor or other processor device and/or logic device, the central processor 100 receiving input and controlling the operation of the various components of the electronic device 600.
The memory 140 may be, for example, one or more of a buffer, a flash memory, a hard drive, a removable media, a volatile memory, a non-volatile memory, or other suitable device. The information relating to the failure may be stored, and a program for executing the information may be stored. And the central processing unit 100 may execute the program stored in the memory 140 to realize information storage or processing, etc.
The input unit 120 provides input to the cpu 100. The input unit 120 is, for example, a key or a touch input device. The power supply 170 is used to provide power to the electronic device 600. The display 160 is used to display an object to be displayed, such as an image or a character. The display may be, for example, an LCD display, but is not limited thereto.
The memory 140 may be a solid state memory such as Read Only Memory (ROM), Random Access Memory (RAM), a SIM card, or the like. There may also be a memory that holds information even when power is off, can be selectively erased, and is provided with more data, an example of which is sometimes called an EPROM or the like. The memory 140 may also be some other type of device. Memory 140 includes buffer memory 141 (sometimes referred to as a buffer). The memory 140 may include an application/function storage section 142, and the application/function storage section 142 is used to store application programs and function programs or a flow for executing the operation of the electronic device 600 by the central processing unit 100.
The memory 140 may also include a data store 143, the data store 143 for storing data, such as contacts, digital data, pictures, sounds, and/or any other data used by the electronic device. The driver storage portion 144 of the memory 140 may include various drivers of the electronic device for communication functions and/or for performing other functions of the electronic device (e.g., messaging application, address book application, etc.).
The communication module 110 is a transmitter/receiver 110 that transmits and receives signals via an antenna 111. The communication module (transmitter/receiver) 110 is coupled to the central processor 100 to provide an input signal and receive an output signal, which may be the same as in the case of a conventional mobile communication terminal.
Based on different communication technologies, a plurality of communication modules 110, such as a cellular network module, a bluetooth module, and/or a wireless local area network module, may be provided in the same electronic device. The communication module (transmitter/receiver) 110 is also coupled to a speaker 131 and a microphone 132 via an audio processor 130 to provide audio output via the speaker 131 and receive audio input from the microphone 132 to implement general telecommunications functions. Audio processor 130 may include any suitable buffers, decoders, amplifiers and so forth. In addition, an audio processor 130 is also coupled to the central processor 100, so that recording on the local can be enabled through a microphone 132, and so that sound stored on the local can be played through a speaker 131.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
The above-mentioned embodiments are intended to illustrate the objects, technical solutions and advantages of the present invention in further detail, and it should be understood that the above-mentioned embodiments are only exemplary embodiments of the present invention, and are not intended to limit the scope of the present invention, and any modifications, equivalent substitutions, improvements and the like made within the spirit and principle of the present invention should be included in the scope of the present invention.
Claims (12)
1. A banknote breakage recognition method based on deep learning, the method comprising:
acquiring image information of paper money, and respectively intercepting a defect image block and a standard image block in the image information to generate defect data and non-defect data;
filtering and/or amplifying the defect data and the non-defect data to generate a training image, calibrating the damaged position of the paper currency in the defect data to generate defect type data, and generating training set data according to the training image and the defect type data;
training a preset YOLOv3 network through the training set data to obtain a banknote detection model, and inputting a banknote image to be detected into the banknote detection model to obtain characteristic parameters;
and calculating according to the characteristic parameters to obtain a paper currency defect ratio, and comparing the paper currency defect ratio with a preset threshold value to obtain the damage condition of the paper currency.
2. The method for recognizing banknote damage based on deep learning of claim 1, wherein the acquiring of the image information of the banknote includes: and collecting a paper money image through CDD visual detection equipment, and converting the paper money image into a gray image to obtain image information.
3. The method for recognizing banknote damage based on deep learning of claim 1, wherein the step of performing filtering and/or amplification processing on the defect data and the non-defect data to generate a training image comprises:
replacing the particle noise of the defect data and the defect-free data by utilizing a low-pass or high-pass filter according to the weighted average value of each pixel in the pixel point field of the particle noise in the defect data and the defect-free data;
and performing amplification on the defect data and the non-defect data by one or more combinations of rotating according to a preset angle, adjusting brightness and contrast and adding Gaussian white noise.
4. The method of claim 1, wherein the defect type data includes a picture path, a damage type, and coordinate position information.
5. The banknote breakage recognition method based on deep learning of claim 1, wherein the preset YOLOv3 network comprises: darknet-53 in the YOLOv3 network structure was replaced by a dense connection network DenseNet.
6. The method for recognizing banknote damage based on deep learning of claim 1, wherein the calculating of the banknote defect ratio based on the feature parameters comprises:
acquiring position parameters in the characteristic parameters, and calculating to obtain length and width data of the paper money according to the position parameters;
and substituting the length and width data and the confidence level and the defect classification probability in the characteristic parameters into a preset sigmoid function to calculate and obtain the defect ratio of the paper money.
7. A banknote breakage recognition apparatus based on deep learning, the apparatus comprising: the device comprises an image acquisition module, a preprocessing module, a training module and an identification module;
the image acquisition module is used for acquiring image information of paper money, and respectively intercepting a defect image block and a standard image block in the image information to generate defect data and non-defect data;
the preprocessing module is used for carrying out filtering and/or amplification processing on the defect data and the non-defect data to generate a training image, calibrating the damaged position of the paper currency in the defect data to generate defect type data, and generating training set data according to the training image and the defect type data;
the training module is used for training a preset Yolov3 network through the training set data to obtain a banknote detection model, and inputting a banknote image to be detected into the banknote detection model to obtain characteristic parameters;
the recognition module is used for calculating according to the characteristic parameters to obtain a paper currency defect ratio, and comparing the paper currency defect ratio with a preset threshold value to obtain a paper currency damage condition.
8. The banknote breakage recognition apparatus based on deep learning of claim 7, wherein the image capture module includes: and collecting a paper money image through CDD visual detection equipment, and converting the paper money image into a gray image to obtain image information.
9. The banknote breakage recognition apparatus based on deep learning of claim 7, wherein the preprocessing module includes a filtering unit and an amplifying unit;
the filtering unit is used for replacing the particle noise points of the defect data and the defect-free data by utilizing a low-pass or high-pass filter through the weighted average value of each pixel in the pixel point field of the particle noise points in the defect data and the defect-free data;
the amplification unit is used for amplifying one or more combinations of rotating the defect data and the non-defect data according to a preset angle, adjusting brightness and contrast and adding Gaussian white noise.
10. The banknote breakage condition recognition device based on deep learning of claim 7, wherein the recognition module comprises a calculation unit, the calculation unit is used for acquiring a position parameter in the characteristic parameters, and calculating length and width data of the banknote according to the position parameter; and substituting the length and width data and the confidence level and the defect classification probability in the characteristic parameters into a preset sigmoid function to calculate and obtain the defect ratio of the paper money.
11. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the method of any one of claims 1 to 6 when executing the computer program.
12. A computer-readable storage medium, characterized in that the computer-readable storage medium stores a computer program for executing the method of any one of claims 1 to 6.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110232998.8A CN112950837B (en) | 2021-03-03 | 2021-03-03 | Banknote breakage condition identification method and device based on deep learning |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110232998.8A CN112950837B (en) | 2021-03-03 | 2021-03-03 | Banknote breakage condition identification method and device based on deep learning |
Publications (2)
Publication Number | Publication Date |
---|---|
CN112950837A true CN112950837A (en) | 2021-06-11 |
CN112950837B CN112950837B (en) | 2023-06-16 |
Family
ID=76247300
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110232998.8A Active CN112950837B (en) | 2021-03-03 | 2021-03-03 | Banknote breakage condition identification method and device based on deep learning |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112950837B (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114255540A (en) * | 2022-01-25 | 2022-03-29 | 中国农业银行股份有限公司 | Method, device, equipment and storage medium for identifying stained paper money |
CN114643209A (en) * | 2022-03-04 | 2022-06-21 | 平安普惠企业管理有限公司 | Clothes sorting method and device, computer readable medium and electronic equipment |
EP4231257A1 (en) * | 2022-02-22 | 2023-08-23 | European Central Bank | Test deck of artificially soiled banknotes, manufacturing process and uses thereof |
CN116912721A (en) * | 2023-09-14 | 2023-10-20 | 众芯汉创(江苏)科技有限公司 | Power distribution network equipment body identification method and system based on monocular stereoscopic vision |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109636772A (en) * | 2018-10-25 | 2019-04-16 | 同济大学 | The defect inspection method on the irregular shape intermetallic composite coating surface based on deep learning |
CN109685968A (en) * | 2018-12-15 | 2019-04-26 | 西安建筑科技大学 | A kind of the identification model building and recognition methods of the banknote image defect based on convolutional neural networks |
CN110689531A (en) * | 2019-09-23 | 2020-01-14 | 云南电网有限责任公司电力科学研究院 | Automatic power transmission line machine inspection image defect identification method based on yolo |
CN110766098A (en) * | 2019-11-07 | 2020-02-07 | 中国石油大学(华东) | Traffic scene small target detection method based on improved YOLOv3 |
CN111402211A (en) * | 2020-03-04 | 2020-07-10 | 广西大学 | High-speed train bottom foreign matter identification method based on deep learning |
US20200364842A1 (en) * | 2019-05-13 | 2020-11-19 | Fujitsu Limited | Surface defect identification method and apparatus |
CN112364721A (en) * | 2020-10-23 | 2021-02-12 | 西安科锐盛创新科技有限公司 | Road surface foreign matter detection method |
-
2021
- 2021-03-03 CN CN202110232998.8A patent/CN112950837B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109636772A (en) * | 2018-10-25 | 2019-04-16 | 同济大学 | The defect inspection method on the irregular shape intermetallic composite coating surface based on deep learning |
CN109685968A (en) * | 2018-12-15 | 2019-04-26 | 西安建筑科技大学 | A kind of the identification model building and recognition methods of the banknote image defect based on convolutional neural networks |
US20200364842A1 (en) * | 2019-05-13 | 2020-11-19 | Fujitsu Limited | Surface defect identification method and apparatus |
CN110689531A (en) * | 2019-09-23 | 2020-01-14 | 云南电网有限责任公司电力科学研究院 | Automatic power transmission line machine inspection image defect identification method based on yolo |
CN110766098A (en) * | 2019-11-07 | 2020-02-07 | 中国石油大学(华东) | Traffic scene small target detection method based on improved YOLOv3 |
CN111402211A (en) * | 2020-03-04 | 2020-07-10 | 广西大学 | High-speed train bottom foreign matter identification method based on deep learning |
CN112364721A (en) * | 2020-10-23 | 2021-02-12 | 西安科锐盛创新科技有限公司 | Road surface foreign matter detection method |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114255540A (en) * | 2022-01-25 | 2022-03-29 | 中国农业银行股份有限公司 | Method, device, equipment and storage medium for identifying stained paper money |
EP4231257A1 (en) * | 2022-02-22 | 2023-08-23 | European Central Bank | Test deck of artificially soiled banknotes, manufacturing process and uses thereof |
CN114643209A (en) * | 2022-03-04 | 2022-06-21 | 平安普惠企业管理有限公司 | Clothes sorting method and device, computer readable medium and electronic equipment |
CN114643209B (en) * | 2022-03-04 | 2024-04-12 | 南京业恒达智能***有限公司 | Clothing sorting method, device, computer readable medium and electronic equipment |
CN116912721A (en) * | 2023-09-14 | 2023-10-20 | 众芯汉创(江苏)科技有限公司 | Power distribution network equipment body identification method and system based on monocular stereoscopic vision |
CN116912721B (en) * | 2023-09-14 | 2023-12-05 | 众芯汉创(江苏)科技有限公司 | Power distribution network equipment body identification method and system based on monocular stereoscopic vision |
Also Published As
Publication number | Publication date |
---|---|
CN112950837B (en) | 2023-06-16 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN112950837B (en) | Banknote breakage condition identification method and device based on deep learning | |
Rahmouni et al. | Distinguishing computer graphics from natural images using convolution neural networks | |
CN108229490B (en) | Key point detection method, neural network training method, device and electronic equipment | |
CN110705583B (en) | Cell detection model training method, device, computer equipment and storage medium | |
CN112686812B (en) | Bank card inclination correction detection method and device, readable storage medium and terminal | |
CN112308095A (en) | Picture preprocessing and model training method and device, server and storage medium | |
US20210166015A1 (en) | Certificate image extraction method and terminal device | |
US9679354B2 (en) | Duplicate check image resolution | |
CN111325717B (en) | Mobile phone defect position identification method and equipment | |
CN110827249A (en) | Electronic equipment backboard appearance flaw detection method and equipment | |
CN111175318A (en) | Screen scratch fragmentation detection method and equipment | |
CN109523527A (en) | The detection method in dirty region, device and electronic equipment in image | |
CN112329702A (en) | Method and device for rapid face density prediction and face detection, electronic equipment and storage medium | |
CN111932510A (en) | Method and device for determining image definition | |
CN113705332A (en) | Method and device for detecting shielding of camera of vehicle-mounted terminal, vehicle-mounted terminal and vehicle | |
CN113947613B (en) | Target area detection method, device, equipment and storage medium | |
CN114462469B (en) | Training method of target detection model, target detection method and related device | |
CN113920434A (en) | Image reproduction detection method, device and medium based on target | |
Rana et al. | Learning-based adaptive tone mapping for keypoint detection | |
CN112287905A (en) | Vehicle damage identification method, device, equipment and storage medium | |
CN115512428B (en) | Face living body judging method, system, device and storage medium | |
Kocdemir et al. | TMO-Det: Deep tone-mapping optimized with and for object detection | |
CN113573137A (en) | Video canvas boundary detection method, system, terminal equipment and storage medium | |
CN114663899A (en) | Financial bill processing method, device, equipment and medium | |
CN114529906A (en) | Method and system for detecting abnormity of digital instrument of power transmission equipment based on character recognition |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |