WO2018019041A1 - Pasted paper money detection method and device - Google Patents

Pasted paper money detection method and device Download PDF

Info

Publication number
WO2018019041A1
WO2018019041A1 PCT/CN2017/087838 CN2017087838W WO2018019041A1 WO 2018019041 A1 WO2018019041 A1 WO 2018019041A1 CN 2017087838 W CN2017087838 W CN 2017087838W WO 2018019041 A1 WO2018019041 A1 WO 2018019041A1
Authority
WO
WIPO (PCT)
Prior art keywords
image
banknote
envelope
pasting
score
Prior art date
Application number
PCT/CN2017/087838
Other languages
French (fr)
Chinese (zh)
Inventor
陈春光
邱新华
余元超
赵邢瑜
Original Assignee
广州广电运通金融电子股份有限公司
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by 广州广电运通金融电子股份有限公司 filed Critical 广州广电运通金融电子股份有限公司
Publication of WO2018019041A1 publication Critical patent/WO2018019041A1/en

Links

Images

Classifications

    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07DHANDLING OF COINS OR VALUABLE PAPERS, e.g. TESTING, SORTING BY DENOMINATIONS, COUNTING, DISPENSING, CHANGING OR DEPOSITING
    • G07D7/00Testing 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/20Testing patterns thereon
    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07DHANDLING OF COINS OR VALUABLE PAPERS, e.g. TESTING, SORTING BY DENOMINATIONS, COUNTING, DISPENSING, CHANGING OR DEPOSITING
    • G07D7/00Testing 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/20Testing patterns thereon
    • G07D7/2008Testing patterns thereon using pre-processing, e.g. de-blurring, averaging, normalisation or rotation

Definitions

  • the present invention relates to the field of image processing technologies, and in particular, to a method and apparatus for detecting banknotes.
  • Banknote (banknote) receiving equipment is often used in environments such as ATM equipment, station ticket vending machines, retail stores, and vending machines of various financial institutions. Because people do not understand the use of financial equipment, it is easy to receive a variety of poor quality banknotes during the operation of the equipment, such as the old banknotes that are spliced by the banknotes after the banknotes are broken, or the illegal elements are used to splicing the counterfeit banknotes with real banknotes.
  • the spliced banknotes are collectively referred to herein as spliced notes. If it cannot be detected, it will have a great impact on the reliability and safety of the equipment.
  • the sticking of the banknote is mainly identified by detecting the thickness signal or the reflective signal of the banknote adhesive tape.
  • the detection of the banknote thickness signal requires high precision of the device, and the detection is difficult. It is necessary to install a plurality of thickness detecting sensors, and the device cost is high.
  • the detection method of the banknote reflection signal utilizes the reflective property of the adhesive tape, and it is not only required to add a light sensor, but also when the adhesive tape used does not have the reflective property, the device cannot detect it.
  • an embodiment of the present invention provides a method for detecting a banknote, comprising:
  • the image envelope is detected by a straight line. If it is detected that the image envelope contains two straight lines of non-banknotes, the banknote corresponding to the banknote image is marked as a banknote.
  • the gray-scale histogram statistics are performed on the coarse positioning area image, and the coarse positioning area image is classified according to a gray value interval according to a statistical result, and the coarse positioning area image is divided into multiple gray levels.
  • Level image including:
  • the respective gray level images are separately binarized, and the binarized image is subjected to envelope fitting to obtain an image envelope of each gray level image, including:
  • the image after the opening operation is retrieved in a preset step size in both the horizontal and vertical directions to obtain a boundary point; and the boundary point is fitted to obtain an image envelope.
  • the banknote image comprises a reflected image and a transmitted image.
  • the image envelope is linearly detected. If it is detected that the image envelope contains two straight lines of the non-banknotes, the banknote corresponding to the banknote image is marked as a banknote, including:
  • the obtained pasting score is a first pasting score
  • the obtained pasting score is a second pasting score
  • the banknote image is a transmission image
  • the banknote is determined to be a banknote; otherwise, the banknote is determined to be a non-stick banknote.
  • an embodiment of the present invention further provides a device for detecting a banknote, comprising:
  • An image acquisition module for collecting banknote images
  • a coarse positioning module configured to perform rough positioning on an area that may be pasted in the image of the banknote, and obtain an image of the coarse positioning area
  • a gray level grading module configured to perform gray level histogram statistics on the coarse positioning area image, classify the coarse positioning area image according to a gray value interval according to a statistical result, and divide the coarse positioning area image into multiple Grayscale image;
  • An envelope fitting module is configured to separately perform binarization processing on each grayscale image, and perform envelope fitting on the binarized image to obtain an image envelope of each grayscale image;
  • the line detection module is configured to perform line detection on the image envelope. If it is detected that the image envelope includes two straight lines that are not in the banknote, the banknote corresponding to the banknote image is marked as a banknote.
  • the gray leveling module comprises:
  • a histogram acquisition unit configured to acquire a gray histogram of the image of the coarse positioning area
  • An envelope function obtaining unit configured to connect each vertex of the gray histogram into a curve, perform smoothing on the curve, and acquire an envelope curve function of the gray histogram
  • An extreme point calculation unit configured to derive the envelope curve function and calculate an extreme point of the envelope curve function
  • a gray grading unit configured to calculate a midpoint of two adjacent extreme points, and classify the coarse positioning area image by using the midpoint as a boundary point of the gray value interval, and the coarse positioning area image Divided into multiple grayscale images.
  • the envelope fitting module includes:
  • a binarization unit for respectively performing binarization processing on each grayscale image, and performing an opening operation on the binarized image
  • the boundary fitting unit is configured to retrieve the image after the opening operation in a preset step size in both horizontal and vertical directions to obtain a boundary point; and fit the boundary point to obtain an image envelope.
  • the banknote image comprises a reflected image and a transmitted image.
  • the line detection module comprises:
  • a pasting score calculation unit configured to acquire a pasting score of the banknote image according to a result of the straight line detection
  • the obtained pasting score is a first pasting score
  • the obtained pasting score is a second pasting score
  • the banknote image is a transmission image
  • a comprehensive judging unit configured to perform weighted summation on the first pasting score, the second pasting score, and the third pasting score, and calculate a comprehensive pasting score; if the comprehensive pasting score is greater than a pre- If the pasting threshold is set, the banknote is determined to be a banknote; otherwise, the banknote is determined to be a non-sticker.
  • the invention performs rough positioning on the collected banknote image, obtains a coarse positioning area image in which the pasting situation may exist, performs gray scale histogram statistics on the coarse positioning area image, and classifies according to the gray value interval according to the statistical result,
  • the image of each level is binarized and envelope-fitting, the image envelope of each level of image is obtained, and the image envelope is detected by a straight line, and the image envelope is detected to include two non-banknotes.
  • a straight line especially two parallel straight lines
  • the banknote corresponding to the banknote image is marked as a banknote.
  • the pattern of different gray scale conditions which may be formed by the adhesive tape can correctly position the tape and detect the tape in the case of dirt or multi-layer chromatic aberration. Effectively improve the detection rate of the attached banknotes, the solution is easy to implement, and the equipment cost is saved.
  • FIG. 1 is a flow chart of a method for detecting an embodiment of a method for detecting a banknote according to the present invention
  • FIG. 2 is a schematic view showing a reflection image of a sticking banknote provided by the present invention.
  • FIG. 3 is a schematic view showing a transmission image of a sticking banknote provided by the present invention.
  • FIG. 4 is a schematic view of an image of a rough positioning area of a banknote provided by the present invention.
  • Figure 5 is a gray histogram of the coarse positioning area image A1 shown in Figure 4;
  • Figure 6 is a schematic diagram showing the division of the gray value interval of the gray histogram shown in Figure 5;
  • Figure 7 is a schematic diagram of an image envelope of the second-level image a2 shown in Figure 4;
  • Figure 8 is a block diagram showing the structure of an embodiment of the stick detecting device of the present invention.
  • FIG. 1 a flow chart of a method of an embodiment of a method for detecting a banknote of the present invention is provided.
  • the method includes steps S1 to S5:
  • the banknote image includes a reflected image and a transmitted image, the reflected image being an image in which the light source is reflected in front of the banknote and the light is reflected on the surface of the banknote, as shown in FIG.
  • the transmission image is a dark background image formed by the light source on the back side of the banknote and the light passing through the banknote, as shown in FIG.
  • S2 Perform coarse positioning on the area of the banknote image that may be pasted, and obtain an image of the coarse positioning area.
  • the image of the coarse positioning area where the special color block is located can be quickly and coarsely located on the collected original image, as shown in A1 of FIG. 4, and the positioning of the special color block can be compared with the standard banknote image.
  • the position where the banknotes are folded more is liable to cause damage.
  • the adhesive tape is often in these positions, and these positions can be preferentially checked during rough positioning to improve the detection. effectiveness.
  • the step S3 includes:
  • the coarse positioning area image may be linearly enhanced to enhance the contrast of the coarse positioning area image.
  • the gray histogram of the image of the coarse positioning area shown by A1 in Fig. 4 is as shown in Fig. 5.
  • Each vertical stripe in the gray histogram represents the number of pixels corresponding to the gray value, and the vertices of the stripe are connected to obtain a curve, and then the curve is smoothed to obtain the envelope curve of the gray histogram. function.
  • the envelope curve function obtained is a binary quadratic equation:
  • the series is divided by ⁇ i as the boundary point of each level.
  • the number of levels is recorded as (The maximum number of levels allowed can be set according to the situation).
  • the gradation of the gray histogram in Fig. 5 is as shown in Fig. 6, and the gradation values of 0 to 255 are divided into three sections of Level 1, Level 2, and Level 3.
  • the coarse positioning area image A1 in FIG. 4 is divided into the first level image a1, the second level image a2, and the third level image a3 according to the gray value interval, and each gray level image only contains the gray value. The pixels within the corresponding gray value interval.
  • S4 Perform binarization processing on each grayscale image, and perform envelope fitting on the binarized image to obtain an image envelope of each grayscale image.
  • the step S4 includes:
  • each grayscale image After binarization processing is performed on each grayscale image, a valid interval image can be obtained, and each valid interval image is opened. After corrosion and expansion, the boundary interference and small dirty spots are eliminated. A clearer binarized image is beneficial to improve the accuracy of subsequent envelope fitting.
  • S42 Search for the opened image in a preset step size in two directions, horizontally and vertically, obtain a boundary point, and fit the boundary point to obtain an image envelope.
  • the binarized images of each level after the opening operation are searched in the horizontal and vertical directions respectively in a specific step size, and several boundary points can be found, and the fitting can be performed under the condition that a certain deviation value e is allowed, and the fitting can be obtained.
  • the image envelope of each level of image as shown in Figure 7, is the image envelope of the second level image a2.
  • each level of image is searched for linear traces step by step, and some dirty blocks or interference blocks can be directly excluded during the detection process.
  • the line is searched for translation. It is detected whether there is another straight line parallel to (or nearly parallel to), and the areas formed by the two straight lines are of the same color level (color intervals having the same or similar gray value). If there are two straight lines at the same time, and the spacing between the two lines meets the preset spacing interval (ie tape width), it is marked as a paste.
  • a straight line trace such as an original pattern or a security thread on the banknote
  • the reflection image is taken as an example in the above embodiment, it is known to those skilled in the art that the same operation can be performed on the transmission image to perform the detection of the sticker.
  • the above operations may be performed on the reflected image and the transmitted image of the banknote, respectively, to improve the accuracy of the detection of the deposited banknote. For example, when a straight line having two non-banknotes is detected in the reflected image, and a corresponding straight line is also detected at the same position of the transmitted image, it is confirmed that the position is pasted with a tape-like foreign matter.
  • the comprehensive analysis and judgment can be performed by combining the reflected image and the transmitted image in the following manner:
  • step S5 includes:
  • the acquired pasting score is the first pasting score score1.
  • the acquired pasting score is the second pasting score score2.
  • the banknote image is a transmission image
  • the specific calculation rules for pasting the score can be set as needed. For example, the closer the two lines are to parallel or the clearer the boundary, the higher the paste score; the closer the width between the two lines is to the width of the common adhesive tape, the paste score The higher.
  • a person skilled in the art can select a calculation rule that conforms to the characteristics of the banknote according to actual needs, which is not limited by the present invention.
  • the first pasting score score1 and the second pasting score score2 are calculated as follows: two straight lines are found in the image after binarizing the grayscale image, if the two straight lines are close to each other Parallel, the paste score S1 is given; if the two lines are not parallel, but the area of the image where the two lines are located reaches the set value, the paste score S2 is given; if there is a line boundary and a curve boundary, it can be recorded The score S3 is pasted; wherein the score S1>S2>S3 is pasted.
  • the present invention comprehensively considers the above situation, and uses it as a detection item for sticking banknotes, which is advantageous for further improving the accuracy of detecting the banknotes.
  • S52 Perform weighted summation on the first pasting score score1, the second pasting score score2, and the third pasting score score3, and calculate a comprehensive pasting score final . If the composite pasting score final is greater than the preset pasting threshold set , the banknote is determined to be a banknote; otherwise, the banknote is determined to be a non-sticker.
  • ⁇ , ⁇ , and ⁇ are the weights of the first pasting score score1, the second pasting score score2, and the third pasting score score3, respectively.
  • the invention comprehensively considers the pattern of different gray scale conditions that the tape may form, and excludes non-adhesive interference according to the characteristics thereof, in the presence of dirt or multi-layer chromatic aberration.
  • the position of the tape can be correctly positioned and the tape can be detected, which can effectively improve the detection rate of the stuck banknote, and the solution is easy to implement and saves equipment cost.
  • FIG. 8 is a structural diagram of an apparatus for detecting a banknote detecting apparatus according to the present invention.
  • the principle of the embodiment is the same as that of the embodiment shown in FIG. 1.
  • FIG. A related description in the embodiment is shown.
  • the stick detecting device includes:
  • An image acquisition module 71 is configured to collect an image of a banknote
  • the coarse positioning module 72 is configured to perform coarse positioning on the area of the banknote image that may be pasted, and obtain an image of the coarse positioning area;
  • the gray level grading module 73 is configured to perform gray level histogram statistics on the coarse positioning area image, classify the coarse positioning area image according to a gray value interval according to a statistical result, and divide the coarse positioning area image into multiple Grayscale image;
  • the envelope fitting module 74 is configured to separately perform binarization processing on each gray scale image, and perform envelope fitting on the binarized image to obtain an image envelope of each gray scale image;
  • the line detection module 75 is configured to perform line detection on the image envelope. If it is detected that the image envelope includes two straight lines of the non-banknotes, the banknote corresponding to the banknote image is marked as a banknote.
  • the gray level grading module 73 includes:
  • a histogram obtaining unit 731 configured to acquire a gray histogram of the image of the coarse positioning area
  • An envelope function obtaining unit 732 configured to connect each vertex of the gray histogram into a curve, and smooth the curve, Obtaining an envelope curve function of the gray histogram
  • An extreme point calculation unit 733 configured to derivate the envelope curve function, and calculate an extreme point of the envelope curve function
  • a gray leveling unit 734 configured to calculate a midpoint of two adjacent extreme points, and classify the coarse positioning area image by using the middle point as a boundary point of the gray value interval, and the coarse positioning area is The image is divided into a plurality of grayscale images.
  • the envelope fitting module 74 includes:
  • the binarization unit 741 is configured to separately perform binarization processing on each gray scale image, and perform an open operation on the binarized image;
  • the boundary fitting unit 742 is configured to retrieve the image after the opening operation in a preset step size in both horizontal and vertical directions to acquire a boundary point; and fit the boundary point to obtain an image envelope .
  • the banknote image preferably includes a reflected image and a transmitted image.
  • the line detection module 75 includes:
  • a pasting score calculation unit 751 configured to acquire a pasting score of the banknote image according to a result of the straight line detection
  • the obtained pasting score is a first pasting score
  • the obtained pasting score is a second pasting score
  • the banknote image is a transmission image
  • the comprehensive judging unit 752 is configured to perform weighted summation on the first pasting score, the second pasting score, and the third pasting score, and calculate a comprehensive pasting score; if the comprehensive pasting score is greater than The preset paste is divided into thresholds, and then the banknote is determined to be a banknote; otherwise, the banknote is determined to be a non-sticker.
  • the method and device for detecting the banknotes obtains a coarse positioning area image in which a pasting situation may exist by performing coarse positioning on the collected banknote image, and performs grayscale histogram statistics on the image of the coarse positioning area.
  • the gray value interval is used to classify, and the image of each level is binarized and envelope-fitting, and the image envelope of each level image is obtained, and the image envelope is detected by the straight line, and the image is detected.
  • the banknote corresponding to the banknote image is marked as a banknote.
  • the pattern of different gray scale conditions which may be formed by the adhesive tape can correctly position the tape and detect the tape in the case of dirt or multi-layer chromatic aberration. Effectively improve the detection rate of the attached banknotes, the solution is easy to implement, and the equipment cost is saved.
  • the device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical. Units can be located in one place or distributed to multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
  • the connection relationship between the modules indicates that there is a communication connection between them, and specifically, one or more communication buses or signal lines can be realized.
  • the present invention can be implemented by means of software plus necessary general hardware, and of course, dedicated hardware, dedicated CPU, dedicated memory, dedicated memory, Special components and so on.
  • any function performed by a computer program can be easily implemented with the corresponding hardware, and The specific hardware structure to achieve the same function can also be various, such as analog circuits, digital circuits or dedicated circuits.
  • software program implementation is a better implementation in more cases.
  • the technical solution of the present invention which is essential or contributes to the prior art, can be embodied in the form of a software product stored in a readable storage medium, such as a floppy disk of a computer.
  • U disk mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc., including a number of instructions to make a computer device (may be A personal computer, server, or network device, etc.) performs the methods described in various embodiments of the present invention.
  • a computer device may be A personal computer, server, or network device, etc.

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Image Analysis (AREA)
  • Inspection Of Paper Currency And Valuable Securities (AREA)

Abstract

A pasted paper money detection method and device. The method comprises: collecting a paper money image (S1); performing coarse positioning on an area probably for pasting in the paper money image to acquire a coarse positioning area image (S2); performing grey level histogram statistics on the coarse positioning area image, performing grading on the coarse positioning area image in accordance with a statistical result according to a grey level value interval, and dividing the coarse positioning area image into a plurality of grey level images (S3); respectively performing binarization processing on each of the grey level images, and performing envelopment fitting on the binarized images to acquire an image envelope of each of the grey level images (S4); and performing straight line detection on the image envelope, and if it is detected that the image envelope includes two straight lines not belonging to paper money itself, marking the paper money corresponding to the paper money image as pasted paper money (S5). According to an image feature of pasted paper money shown in a paper money image, with regard to patterns with different grey level conditions probably formed by a pasted tape, the detection rate of the pasted paper money can be effectively improved, the solution is easy to realize, and the equipment costs are economized.

Description

一种粘贴钞检测方法和装置Method and device for detecting banknotes 技术领域Technical field
本发明涉及图像处理技术领域,尤其涉及一种粘贴钞检测方法和装置。The present invention relates to the field of image processing technologies, and in particular, to a method and apparatus for detecting banknotes.
背景技术Background technique
随着金融设备的普遍使用,设备需求量快速上升。钞票(纸币)接收设备经常应用在各种金融机构的ATM设备、车站自动售票机、零售店和自动售货机等环境。由于人们对金融设备的使用不了解,在设备运行过程中很容易接收到各种质量很差的钞票,如钞票破裂后自行粘贴拼接的旧钞,或者是不法分子用真钞拼接假钞而形成的拼接钞,在此统称为粘贴钞。如果无法检测出来,将对设备的可靠性和安全性造成有很大影响。With the widespread use of financial equipment, the demand for equipment has risen rapidly. Banknote (banknote) receiving equipment is often used in environments such as ATM equipment, station ticket vending machines, retail stores, and vending machines of various financial institutions. Because people do not understand the use of financial equipment, it is easy to receive a variety of poor quality banknotes during the operation of the equipment, such as the old banknotes that are spliced by the banknotes after the banknotes are broken, or the illegal elements are used to splicing the counterfeit banknotes with real banknotes. The spliced banknotes are collectively referred to herein as spliced notes. If it cannot be detected, it will have a great impact on the reliability and safety of the equipment.
目前粘贴钞主要通过检测钞票粘贴胶带的厚度信号或者反光信号进行识别。然而,钞票厚度信号的检测对装置的精度要求较高,检测难度较大,需要加装多个厚度检测传感器,装置成本较高。钞票反光信号的检测方法利用的是粘贴胶带的反光特性,不仅需要加装光感传感器,而且当所用粘贴胶带不具备反光特性时,装置将无法检测。At present, the sticking of the banknote is mainly identified by detecting the thickness signal or the reflective signal of the banknote adhesive tape. However, the detection of the banknote thickness signal requires high precision of the device, and the detection is difficult. It is necessary to install a plurality of thickness detecting sensors, and the device cost is high. The detection method of the banknote reflection signal utilizes the reflective property of the adhesive tape, and it is not only required to add a light sensor, but also when the adhesive tape used does not have the reflective property, the device cannot detect it.
发明内容Summary of the invention
本发明的目的在于提供一种粘贴钞检测方法和装置,基于图像处理技术,实现对粘贴钞的有效识别。It is an object of the present invention to provide a method and apparatus for detecting a banknote, which is based on an image processing technique for effective identification of a banknote.
为实现上述目的,本发明实施例提供了一种粘贴钞检测方法,包括:In order to achieve the above object, an embodiment of the present invention provides a method for detecting a banknote, comprising:
采集钞票图像;Collecting banknote images;
对所述钞票图像中可能为粘贴的区域进行粗定位,获取粗定位区域图像;Perform coarse positioning on the area of the banknote image that may be pasted, and obtain an image of the coarse positioning area;
对所述粗定位区域图像进行灰度直方图统计,根据统计结果按灰度值区间对所述粗定位区域图像进行分级,将所述粗定位区域图像划分为多个灰度级图像;Performing gray scale histogram statistics on the coarse positioning area image, classifying the coarse positioning area image according to a gray value interval according to a statistical result, and dividing the coarse positioning area image into a plurality of gray level images;
对各个灰度级图像分别进行二值化处理,并对二值化后的图像进行包络拟合,获取各个灰度级图像的图像包络;Performing binarization processing on each gray level image, and performing envelope fitting on the binarized image to obtain an image envelope of each gray level image;
对所述图像包络进行直线检测,若检测到所述图像包络中包含两条非钞票本身具有的直线,则将所述钞票图像对应的钞票标记为粘贴钞。The image envelope is detected by a straight line. If it is detected that the image envelope contains two straight lines of non-banknotes, the banknote corresponding to the banknote image is marked as a banknote.
优选地,所述对所述粗定位区域图像进行灰度直方图统计,根据统计结果按灰度值区间对所述粗定位区域图像进行分级,将所述粗定位区域图像划分为多个灰度级图像,包括:Preferably, the gray-scale histogram statistics are performed on the coarse positioning area image, and the coarse positioning area image is classified according to a gray value interval according to a statistical result, and the coarse positioning area image is divided into multiple gray levels. Level image, including:
获取所述粗定位区域图像的灰度直方图;Obtaining a gray histogram of the image of the coarse positioning area;
将所述灰度直方图的各个顶点连接成曲线,对所述曲线进行平滑处理,获取所述灰度直方图的包络曲线函数;And connecting respective vertices of the gray histogram into a curve, and smoothing the curve to obtain an envelope curve function of the gray histogram;
对所述包络曲线函数进行求导,并计算所述包络曲线函数的极值点; Deriving the envelope curve function and calculating an extreme point of the envelope curve function;
计算相邻的两个极值点的中点,以所述中点为灰度值区间的分界点对所述粗定位区域图像进行分级,将所述粗定位区域图像划分为多个灰度级图像。Calculating a midpoint of two adjacent extreme points, classifying the coarse positioning area image by using the midpoint as a boundary point of the gray value interval, and dividing the coarse positioning area image into multiple gray levels image.
优选地,所述对各个灰度级图像分别进行二值化处理,并对二值化后的图像进行包络拟合,获取各个灰度级图像的图像包络,包括:Preferably, the respective gray level images are separately binarized, and the binarized image is subjected to envelope fitting to obtain an image envelope of each gray level image, including:
对各个灰度级图像分别进行二值化处理,并对二值化后的图像进行开运算;Performing binarization processing on each grayscale image separately, and performing an opening operation on the binarized image;
在水平和垂直两个方向上以预设的步长对进行开运算后的图像进行检索,获取边界点;并对所述边界点进行拟合,获取图像包络。The image after the opening operation is retrieved in a preset step size in both the horizontal and vertical directions to obtain a boundary point; and the boundary point is fitted to obtain an image envelope.
优选地,所述钞票图像包括反射图像和透射图像。Preferably, the banknote image comprises a reflected image and a transmitted image.
优选地,所述对所述图像包络进行直线检测,若检测到所述图像包络中包含两条非钞票本身具有的直线,则将所述钞票图像对应的钞票标记为粘贴钞,包括:Preferably, the image envelope is linearly detected. If it is detected that the image envelope contains two straight lines of the non-banknotes, the banknote corresponding to the banknote image is marked as a banknote, including:
根据直线检测的结果,获取所述钞票图像的粘贴分值;其中,Obtaining a paste score of the banknote image according to a result of the line detection; wherein
当所述钞票图像为反射图像时,所获取的粘贴分值为第一粘贴分值;When the banknote image is a reflected image, the obtained pasting score is a first pasting score;
当所述钞票图像为透射图像时,所获取的粘贴分值为第二粘贴分值;When the banknote image is a transmission image, the obtained pasting score is a second pasting score;
当所述钞票图像为透射图像时,检测图像包络所在区域的上方和/或下方是否存在灰度值大于预设的灰度阈值的亮点;或者检测所述粗定位区域图像中是否存在灰度值大于预设的灰度阈值的亮线;根据所述亮点或者亮线的检测结果,获取所述钞票图像的第三粘贴分值;When the banknote image is a transmission image, detecting whether there is a bright point above and/or below the area where the image envelope is located, or a gray point whose value is greater than a preset gray level threshold; or detecting whether the gray level is present in the image of the coarse positioning area a bright line whose value is greater than a preset grayscale threshold; acquiring a third pasting score of the banknote image according to the detection result of the bright spot or the bright line;
对所述第一粘贴分值、所述第二粘贴分值和所述第三粘贴分值进行加权求和,计算综合粘贴分值;若所述综合粘贴分值大于预设的粘贴分阈值,则判定所述钞票为粘贴钞;否则,判定所述钞票为非粘贴钞。Performing a weighted summation on the first pasting score, the second pasting score, and the third pasting score, and calculating a comprehensive pasting score; if the comprehensive pasting score is greater than a preset pasting threshold, Then, the banknote is determined to be a banknote; otherwise, the banknote is determined to be a non-stick banknote.
相应地,本发明实施例还提供了一种粘贴钞检测装置,包括:Correspondingly, an embodiment of the present invention further provides a device for detecting a banknote, comprising:
图像采集模块,用于采集钞票图像;An image acquisition module for collecting banknote images;
粗定位模块,用于对所述钞票图像中可能为粘贴的区域进行粗定位,获取粗定位区域图像;a coarse positioning module, configured to perform rough positioning on an area that may be pasted in the image of the banknote, and obtain an image of the coarse positioning area;
灰度分级模块,用于对所述粗定位区域图像进行灰度直方图统计,根据统计结果按灰度值区间对所述粗定位区域图像进行分级,将所述粗定位区域图像划分为多个灰度级图像;a gray level grading module, configured to perform gray level histogram statistics on the coarse positioning area image, classify the coarse positioning area image according to a gray value interval according to a statistical result, and divide the coarse positioning area image into multiple Grayscale image;
包络拟合模块,用于对各个灰度级图像分别进行二值化处理,并对二值化后的图像进行包络拟合,获取各个灰度级图像的图像包络;An envelope fitting module is configured to separately perform binarization processing on each grayscale image, and perform envelope fitting on the binarized image to obtain an image envelope of each grayscale image;
直线检测模块,用于对所述图像包络进行直线检测,若检测到所述图像包络中包含两条非钞票本身具有的直线,则将所述钞票图像对应的钞票标记为粘贴钞。The line detection module is configured to perform line detection on the image envelope. If it is detected that the image envelope includes two straight lines that are not in the banknote, the banknote corresponding to the banknote image is marked as a banknote.
优选地,所述灰度分级模块包括:Preferably, the gray leveling module comprises:
直方图获取单元,用于获取所述粗定位区域图像的灰度直方图;a histogram acquisition unit, configured to acquire a gray histogram of the image of the coarse positioning area;
包络函数获取单元,用于将所述灰度直方图的各个顶点连接成曲线,对所述曲线进行平滑处理,获取所述灰度直方图的包络曲线函数;An envelope function obtaining unit, configured to connect each vertex of the gray histogram into a curve, perform smoothing on the curve, and acquire an envelope curve function of the gray histogram;
极值点计算单元,用于对所述包络曲线函数进行求导,并计算所述包络曲线函数的极值点;An extreme point calculation unit configured to derive the envelope curve function and calculate an extreme point of the envelope curve function;
灰度分级单元,用于计算相邻的两个极值点的中点,以所述中点为灰度值区间的分界点对所述粗定位区域图像进行分级,将所述粗定位区域图像划分为多个灰度级图像。 a gray grading unit, configured to calculate a midpoint of two adjacent extreme points, and classify the coarse positioning area image by using the midpoint as a boundary point of the gray value interval, and the coarse positioning area image Divided into multiple grayscale images.
所述包络拟合模块包括:The envelope fitting module includes:
二值化单元,用于对各个灰度级图像分别进行二值化处理,并对二值化后的图像进行开运算;a binarization unit for respectively performing binarization processing on each grayscale image, and performing an opening operation on the binarized image;
边界拟合单元,用于在水平和垂直两个方向上以预设的步长对进行开运算后的图像进行检索,获取边界点;并对所述边界点进行拟合,获取图像包络。The boundary fitting unit is configured to retrieve the image after the opening operation in a preset step size in both horizontal and vertical directions to obtain a boundary point; and fit the boundary point to obtain an image envelope.
优选地,所述钞票图像包括反射图像和透射图像。Preferably, the banknote image comprises a reflected image and a transmitted image.
优选地,所述直线检测模块包括:Preferably, the line detection module comprises:
粘贴分值计算单元,用于根据直线检测的结果,获取所述钞票图像的粘贴分值;其中,a pasting score calculation unit, configured to acquire a pasting score of the banknote image according to a result of the straight line detection; wherein
当所述钞票图像为反射图像时,所获取的粘贴分值为第一粘贴分值;When the banknote image is a reflected image, the obtained pasting score is a first pasting score;
当所述钞票图像为透射图像时,所获取的粘贴分值为第二粘贴分值;When the banknote image is a transmission image, the obtained pasting score is a second pasting score;
当所述钞票图像为透射图像时,检测图像包络所在区域的上方和/或下方是否存在灰度值大于预设的灰度阈值的亮点;或者检测所述粗定位区域图像中是否存在灰度值大于预设的灰度阈值的亮线;根据所述亮点或者亮线的检测结果,获取所述钞票图像的第三粘贴分值;When the banknote image is a transmission image, detecting whether there is a bright point above and/or below the area where the image envelope is located, or a gray point whose value is greater than a preset gray level threshold; or detecting whether the gray level is present in the image of the coarse positioning area a bright line whose value is greater than a preset grayscale threshold; acquiring a third pasting score of the banknote image according to the detection result of the bright spot or the bright line;
综合判断单元,用于对所述第一粘贴分值、所述第二粘贴分值和所述第三粘贴分值进行加权求和,计算综合粘贴分值;若所述综合粘贴分值大于预设的粘贴分阈值,则判定所述钞票为粘贴钞;否则,判定所述钞票为非粘贴钞。a comprehensive judging unit, configured to perform weighted summation on the first pasting score, the second pasting score, and the third pasting score, and calculate a comprehensive pasting score; if the comprehensive pasting score is greater than a pre- If the pasting threshold is set, the banknote is determined to be a banknote; otherwise, the banknote is determined to be a non-sticker.
本发明通过对采集的钞票图像进行粗定位,获取可能存在粘贴情况的粗定位区域图像,对所述粗定位区域图像进行灰度直方图统计,并根据统计结果按照灰度值区间进行分级,对各级图像进行二值化处理和包络拟合,获取各级图像的图像包络,对所述图像包络进行直线检测,在检测到所述图像包络中包含两条非钞票本身具有的直线(特别是两平行的直线)时,将所述钞票图像对应的钞票标记为粘贴钞。本发明根据粘贴钞在钞票图像中所呈现的图像特征,针对粘贴胶带所可能形成的不同灰度情况的图案,在有脏污或多层色差的情况下,可正确定位胶带位置并检测出胶带,有效提高粘贴钞的检出率,方案易于实现,节约设备成本。The invention performs rough positioning on the collected banknote image, obtains a coarse positioning area image in which the pasting situation may exist, performs gray scale histogram statistics on the coarse positioning area image, and classifies according to the gray value interval according to the statistical result, The image of each level is binarized and envelope-fitting, the image envelope of each level of image is obtained, and the image envelope is detected by a straight line, and the image envelope is detected to include two non-banknotes. In the case of a straight line (especially two parallel straight lines), the banknote corresponding to the banknote image is marked as a banknote. According to the image feature of the pasted banknote in the banknote image, the pattern of different gray scale conditions which may be formed by the adhesive tape can correctly position the tape and detect the tape in the case of dirt or multi-layer chromatic aberration. Effectively improve the detection rate of the attached banknotes, the solution is easy to implement, and the equipment cost is saved.
附图说明DRAWINGS
图1是本发明提供的粘贴钞检测方法的一个实施例的方法流程图;1 is a flow chart of a method for detecting an embodiment of a method for detecting a banknote according to the present invention;
图2是本发明提供的粘贴钞的反射图像示意图;2 is a schematic view showing a reflection image of a sticking banknote provided by the present invention;
图3是本发明提供的粘贴钞的透射图像示意图;3 is a schematic view showing a transmission image of a sticking banknote provided by the present invention;
图4是本发明提供的粘贴钞的粗定位区域图像的示意图;4 is a schematic view of an image of a rough positioning area of a banknote provided by the present invention;
图5是如图4所示粗定位区域图像A1的灰度直方图;Figure 5 is a gray histogram of the coarse positioning area image A1 shown in Figure 4;
图6是如图5所示灰度直方图的灰度值区间划分示意图;Figure 6 is a schematic diagram showing the division of the gray value interval of the gray histogram shown in Figure 5;
图7是如图4所示第二级图像a2的图像包络示意图;Figure 7 is a schematic diagram of an image envelope of the second-level image a2 shown in Figure 4;
图8是本发明提供的粘贴钞检测装置的一个实施例的装置结构图。Figure 8 is a block diagram showing the structure of an embodiment of the stick detecting device of the present invention.
具体实施方式detailed description
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然, 所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions in the embodiments of the present invention will be clearly and completely described in the following with reference to the accompanying drawings in the embodiments of the present invention. The described embodiments are only a part of the embodiments of the invention, and not all of the embodiments. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without creative efforts are within the scope of the present invention.
参见图1,是本发明提供的粘贴钞检测方法的一个实施例的方法流程图。Referring to Fig. 1, a flow chart of a method of an embodiment of a method for detecting a banknote of the present invention is provided.
如图1所示,所述方法包括步骤S1~S5:As shown in FIG. 1, the method includes steps S1 to S5:
S1,采集钞票图像。S1, collecting banknote images.
所述钞票图像包括反射图像和透射图像,所述反射图像为光源在钞票前方,光线在钞票表面反射形成的背景较亮的图像,如图2所示。所述透射图像为光源在钞票背面,光线透过钞票形成的背景较暗的图像,如图3所示。The banknote image includes a reflected image and a transmitted image, the reflected image being an image in which the light source is reflected in front of the banknote and the light is reflected on the surface of the banknote, as shown in FIG. The transmission image is a dark background image formed by the light source on the back side of the banknote and the light passing through the banknote, as shown in FIG.
S2,对所述钞票图像中可能为粘贴的区域进行粗定位,获取粗定位区域图像。S2: Perform coarse positioning on the area of the banknote image that may be pasted, and obtain an image of the coarse positioning area.
由于胶带的使用和拼接位置的不确定性,很难定位胶带粘贴精确位置。在采集到钞票图像后,可在采集得到的原始图像上快速粗定位到特殊色块所在的粗定位区域图像,如图4的A1所示,特殊色块的定位可通过与标准钞票图像的对比获取。此外,钞票折叠较多的位置(如1/2、1/3和1/4等位置)容易造成破损,粘贴胶带往往在这些位置上,在粗定位时可优先检查这些地方,以提高检测的效率。Due to the use of the tape and the uncertainty of the stitching position, it is difficult to position the tape to the precise position. After the banknote image is collected, the image of the coarse positioning area where the special color block is located can be quickly and coarsely located on the collected original image, as shown in A1 of FIG. 4, and the positioning of the special color block can be compared with the standard banknote image. Obtain. In addition, the position where the banknotes are folded more (such as 1/2, 1/3, and 1/4 positions) is liable to cause damage. The adhesive tape is often in these positions, and these positions can be preferentially checked during rough positioning to improve the detection. effectiveness.
S3,对所述粗定位区域图像进行灰度直方图统计,根据统计结果按灰度值区间对所述粗定位区域图像进行分级,将所述粗定位区域图像划分为多个灰度级图像。S3, performing grayscale histogram statistics on the coarse positioning area image, classifying the coarse positioning area image according to a gray value interval according to a statistical result, and dividing the coarse positioning area image into a plurality of gray level images.
在具体实施当中,所述步骤S3,包括:In a specific implementation, the step S3 includes:
S31,获取所述粗定位区域图像的灰度直方图。S31. Acquire a gray histogram of the image of the coarse positioning area.
在进行灰度直方图统计之前,可先对所述粗定位区域图像进行线性增强来增强粗定位区域图像的对比度。图4中A1所示粗定位区域图像的灰度直方图如图5所示。Before the gray histogram statistics are performed, the coarse positioning area image may be linearly enhanced to enhance the contrast of the coarse positioning area image. The gray histogram of the image of the coarse positioning area shown by A1 in Fig. 4 is as shown in Fig. 5.
S32,将所述灰度直方图的各个顶点连接成曲线,对所述曲线进行平滑处理,获取所述灰度直方图的包络曲线函数。S32, connecting each vertex of the gray histogram into a curve, and smoothing the curve to obtain an envelope curve function of the gray histogram.
灰度直方图中每一个纵向条纹代表该灰度值对应的像素数量,将这些条纹的顶点进行连接,可以得到一条曲线,再对曲线进行平滑处理,即可获取灰度直方图的包络曲线函数。获得的包络曲线函数为一个二元二次方程:Each vertical stripe in the gray histogram represents the number of pixels corresponding to the gray value, and the vertices of the stripe are connected to obtain a curve, and then the curve is smoothed to obtain the envelope curve of the gray histogram. function. The envelope curve function obtained is a binary quadratic equation:
y=f(x),x∈(0,255)y=f(x), x∈(0,255)
S33,对所述包络曲线函数进行求导,并计算所述包络曲线函数的极值点。S33, deriving the envelope curve function, and calculating an extreme point of the envelope curve function.
对步骤S2中获得包络曲线函数进行求导,获取导数取值为0处的极值点xi和对应的极值yi
Figure PCTCN2017087838-appb-000001
为0~255的灰度值内极值点的个数,可计算获得包络曲线函数的解析式:
Deriving the envelope curve function obtained in step S2, and obtaining an extremum point x i and a corresponding extremum y i at a derivative value of 0,
Figure PCTCN2017087838-appb-000001
For the number of extreme points in the gray value of 0 to 255, the analytical expression of the envelope curve function can be calculated:
Figure PCTCN2017087838-appb-000002
Figure PCTCN2017087838-appb-000002
S34,计算相邻的两个极值点的中点,以所述中点为灰度值区间的分界点对所述粗定位区域图像进行分级,将所述粗定位区域图像划分为多个灰度级图像。S34. Calculate a midpoint of two adjacent extreme points, and classify the coarse positioning area image by using the midpoint as a boundary point of the gray value interval, and divide the coarse positioning area image into multiple grays. Degree image.
对各相邻的极值点两两求取中点
Figure PCTCN2017087838-appb-000003
以ρi为各级分界点进行级数划分。级数记为
Figure PCTCN2017087838-appb-000004
(该级数最多允许数可以根据情况进行设置)。图5中的灰度直方图的分级情况如图6所示,0~255的 灰度值被划分为Level1、Level2和Level3三个区间。相应地,图4中的粗定位区域图像A1按照灰度值区间被划分为第一级图像a1、第二级图像a2和第三级图像a3,各灰度级图像中仅包含灰度值位于相应灰度值区间内的像素。
Find the midpoint of each adjacent extreme point
Figure PCTCN2017087838-appb-000003
The series is divided by ρ i as the boundary point of each level. The number of levels is recorded as
Figure PCTCN2017087838-appb-000004
(The maximum number of levels allowed can be set according to the situation). The gradation of the gray histogram in Fig. 5 is as shown in Fig. 6, and the gradation values of 0 to 255 are divided into three sections of Level 1, Level 2, and Level 3. Correspondingly, the coarse positioning area image A1 in FIG. 4 is divided into the first level image a1, the second level image a2, and the third level image a3 according to the gray value interval, and each gray level image only contains the gray value. The pixels within the corresponding gray value interval.
S4,对各个灰度级图像分别进行二值化处理,并对二值化后的图像进行包络拟合,获取各个灰度级图像的图像包络。S4: Perform binarization processing on each grayscale image, and perform envelope fitting on the binarized image to obtain an image envelope of each grayscale image.
在具体实施当中,所述步骤S4,包括:In a specific implementation, the step S4 includes:
S41,对各个灰度级图像分别进行二值化处理,并对二值化后的图像进行开运算。S41, performing binarization processing on each grayscale image, and performing an opening operation on the binarized image.
对各个灰度级图像分别进行二值化处理后,可以得到有效区间图像,对每个有效区间图像进行开运算,经过腐蚀和膨胀后,消去了边界的干扰和小的脏污点后可以得到若干个较清晰的二值化后的图像,有利于提高后续包络拟合的准确性。After binarization processing is performed on each grayscale image, a valid interval image can be obtained, and each valid interval image is opened. After corrosion and expansion, the boundary interference and small dirty spots are eliminated. A clearer binarized image is beneficial to improve the accuracy of subsequent envelope fitting.
S42,在水平和垂直两个方向上以预设的步长对进行开运算后的图像进行检索,获取边界点,并对所述边界点进行拟合,获取图像包络。S42: Search for the opened image in a preset step size in two directions, horizontally and vertically, obtain a boundary point, and fit the boundary point to obtain an image envelope.
分别沿水平和垂直方向以特定的步长对进行开运算后的各级二值化图像进行检索,可以找到若干边界点,在允许一定偏差值e的情况下进行拟合,拟合后可获得各级图像的图像包络,如图7所示,其为第二级图像a2的图像包络。The binarized images of each level after the opening operation are searched in the horizontal and vertical directions respectively in a specific step size, and several boundary points can be found, and the fitting can be performed under the condition that a certain deviation value e is allowed, and the fitting can be obtained. The image envelope of each level of image, as shown in Figure 7, is the image envelope of the second level image a2.
S5,对所述图像包络进行直线检测,若检测到所述图像包络中包含两条非钞票本身具有的直线(这里所称的直线包括任何近似直线的线条,并非严格的几何学中的直线),则将所述钞票图像对应的钞票标记为粘贴钞。S5, performing linear detection on the image envelope, if it is detected that the image envelope contains two non-banknotes having straight lines (the line referred to herein includes any approximate straight line, not strictly geometrical The straight line) marks the banknote corresponding to the banknote image as a banknote.
对各级图像的图像包络逐级搜索直线痕迹,检测过程中对于一些脏污块或干扰块就可以直接排除掉。在出现直线形状后,对该直线往进行平移搜索。检测是否存在另一条与之平行(或接近平行)的直线,并且两条直线所形成的区域为同一色级(灰度值相同或相近的颜色区间)。若有两条直线同时存在,且两条直线之间的间距符合预设的间距区间(即胶带宽度),即将其标记为粘贴钞。在具体实施当中,还可以通过与标准钞票图像模板的对比,根据所选区域是否存在钞票本身就具有的直线痕迹(如钞票上原有的图案或安全线等),来判断粘贴胶带的存在。The image envelope of each level of image is searched for linear traces step by step, and some dirty blocks or interference blocks can be directly excluded during the detection process. After the straight line shape appears, the line is searched for translation. It is detected whether there is another straight line parallel to (or nearly parallel to), and the areas formed by the two straight lines are of the same color level (color intervals having the same or similar gray value). If there are two straight lines at the same time, and the spacing between the two lines meets the preset spacing interval (ie tape width), it is marked as a paste. In a specific implementation, it is also possible to determine the presence of the adhesive tape by comparing with the standard banknote image template according to whether there is a straight line trace (such as an original pattern or a security thread on the banknote) that the banknote itself has in the selected area.
上述实施例中虽仅以反射图像为例,但本领域人员知悉,依据相同的原理,可对透射图像进行相同的操作来进行粘贴钞的检测。在具体实施当中,可分别对钞票的反射图像和透射图像进行上述操作,以提高粘贴钞检测的准确度。如当在反射图像中检测到两条非钞票本身具有的直线,同时在透射图像的相同位置也检测到对应的直线,则可确信该位置粘贴有胶带状异物。Although the reflection image is taken as an example in the above embodiment, it is known to those skilled in the art that the same operation can be performed on the transmission image to perform the detection of the sticker. In a specific implementation, the above operations may be performed on the reflected image and the transmitted image of the banknote, respectively, to improve the accuracy of the detection of the deposited banknote. For example, when a straight line having two non-banknotes is detected in the reflected image, and a corresponding straight line is also detected at the same position of the transmitted image, it is confirmed that the position is pasted with a tape-like foreign matter.
具体地,可通过以下方式结合反射图像和透射图像来进行综合分析判断:Specifically, the comprehensive analysis and judgment can be performed by combining the reflected image and the transmitted image in the following manner:
在具体实施当中,所述步骤S5包括:In a specific implementation, the step S5 includes:
S51,根据直线检测的结果,获取所述钞票图像的粘贴分值。其中,S51. Acquire a paste score of the banknote image according to the result of the line detection. among them,
当所述钞票图像为反射图像时,所获取的粘贴分值为第一粘贴分值score1。When the banknote image is a reflected image, the acquired pasting score is the first pasting score score1.
当所述钞票图像为透射图像时,所获取的粘贴分值为第二粘贴分值score2。When the banknote image is a transmission image, the acquired pasting score is the second pasting score score2.
当所述钞票图像为透射图像时,检测图像包络所在区域的上方和下方是否存在灰度值大于第一灰度阈值并且类似于直线排布的亮点;或者,检测所述粗定位区域图像中是否存在灰度值大于第一灰度阈值 的亮线;根据亮点或者亮线的检测结果,获取所述钞票图像的第三粘贴分值score3。When the banknote image is a transmission image, detecting whether there is a bright point above and below the area where the image envelope is located, and the gradation value is greater than the first gradation threshold and is similar to the line arrangement; or detecting the coarse positioning area image Whether there is a gray value greater than the first gray threshold a bright line; according to the detection result of the bright spot or the bright line, the third pasting score score3 of the banknote image is obtained.
粘贴分值的具体计算规则可根据需要进行设定,如两直线越接近平行或边界越清晰,则粘贴分值越高;两直线之间的宽度越接近常用粘贴胶带的宽度,则粘贴分值越高。本领域技术人员可根据实际需要,选取符合粘贴钞特征的计算规则,本发明对此不作限定。在一种具体实施方式当中,第一粘贴分值score1和第二粘贴分值score2计算规则优选如下:在对灰度级图像进行二值化后的图像中找到两条直线,若两条直线近乎平行,则给出粘贴分值S1;若两直线不平行,但两条直线所在图像的面积达到设定值,则给出粘贴分值S2;如果有一条直线边界和一条曲线边界,则可记粘贴分值S3;其中,粘贴分值S1>S2>S3。The specific calculation rules for pasting the score can be set as needed. For example, the closer the two lines are to parallel or the clearer the boundary, the higher the paste score; the closer the width between the two lines is to the width of the common adhesive tape, the paste score The higher. A person skilled in the art can select a calculation rule that conforms to the characteristics of the banknote according to actual needs, which is not limited by the present invention. In a specific implementation manner, the first pasting score score1 and the second pasting score score2 are calculated as follows: two straight lines are found in the image after binarizing the grayscale image, if the two straight lines are close to each other Parallel, the paste score S1 is given; if the two lines are not parallel, but the area of the image where the two lines are located reaches the set value, the paste score S2 is given; if there is a line boundary and a curve boundary, it can be recorded The score S3 is pasted; wherein the score S1>S2>S3 is pasted.
此外,由于粘贴钞本身存在裂缝,通过人为拼接后缝隙也难以完全修补,在透射图像下,容易出现漏光,形成亮点或亮线。本发明综合考虑上述情况,将其作为粘贴钞的检测项,有利于进一步提高粘贴钞检测的准确性。In addition, since there is a crack in the attached banknote itself, it is difficult to completely repair the gap after artificially splicing, and under the transmission image, light leakage is likely to occur, forming a bright spot or a bright line. The present invention comprehensively considers the above situation, and uses it as a detection item for sticking banknotes, which is advantageous for further improving the accuracy of detecting the banknotes.
S52,对所述第一粘贴分值score1、所述第二粘贴分值score2和所述第三粘贴分值score3进行加权求和,计算综合粘贴分值scorefinal。若所述综合粘贴分值scorefinal大于预设的粘贴分阈值scoreset,则判定所述钞票为粘贴钞;否则,判定所述钞票为非粘贴钞。S52: Perform weighted summation on the first pasting score score1, the second pasting score score2, and the third pasting score score3, and calculate a comprehensive pasting score final . If the composite pasting score final is greater than the preset pasting threshold set , the banknote is determined to be a banknote; otherwise, the banknote is determined to be a non-sticker.
综合分析反射图像和透射图像所搜索到图案形状,对所用分项进行加权求和,获取综合粘贴分值:Comprehensively analyze the shape of the pattern searched by the reflected image and the transmitted image, and weight the sum of the used items to obtain the comprehensive pasting score:
scorefinal=α*score1+β*score2+γ*score3Score final =α*score1+β*score2+γ*score3
其中,α、β和γ分别为第一粘贴分值score1、所述第二粘贴分值score2和所述第三粘贴分值score3所占的权重。当scorefinal>scoreset时,则可以判定该钞票为粘贴钞。Wherein, α, β, and γ are the weights of the first pasting score score1, the second pasting score score2, and the third pasting score score3, respectively. When the score final > score set , it can be determined that the banknote is a paste banknote.
本发明根据粘贴钞在反射图像和透视图像中所呈现的图像特征,综合考虑胶带所可能形成的不同灰度情况的图案,根据其特征排除非胶带的干扰,在有脏污或多层色差的情况下,可正确定位胶带位置和检测出胶带,可以有效提高粘贴钞的检出率,方案易于实现,节约设备成本。According to the image features of the pasted banknotes in the reflected image and the fluoroscopic image, the invention comprehensively considers the pattern of different gray scale conditions that the tape may form, and excludes non-adhesive interference according to the characteristics thereof, in the presence of dirt or multi-layer chromatic aberration. In this case, the position of the tape can be correctly positioned and the tape can be detected, which can effectively improve the detection rate of the stuck banknote, and the solution is easy to implement and saves equipment cost.
参见图8,是本发明提供的粘贴钞检测装置的一个实施例的装置结构图,本实施例的原理与图1所示实施例一致,本实施例中为详述之处可参见图1所示实施例中的相关描述。FIG. 8 is a structural diagram of an apparatus for detecting a banknote detecting apparatus according to the present invention. The principle of the embodiment is the same as that of the embodiment shown in FIG. 1. For details in this embodiment, reference may be made to FIG. A related description in the embodiment is shown.
如图8所示,所述粘贴钞检测装置包括:As shown in FIG. 8, the stick detecting device includes:
图像采集模块71,用于采集钞票图像;An image acquisition module 71 is configured to collect an image of a banknote;
粗定位模块72,用于对所述钞票图像中可能为粘贴的区域进行粗定位,获取粗定位区域图像;The coarse positioning module 72 is configured to perform coarse positioning on the area of the banknote image that may be pasted, and obtain an image of the coarse positioning area;
灰度分级模块73,用于对所述粗定位区域图像进行灰度直方图统计,根据统计结果按灰度值区间对所述粗定位区域图像进行分级,将所述粗定位区域图像划分为多个灰度级图像;The gray level grading module 73 is configured to perform gray level histogram statistics on the coarse positioning area image, classify the coarse positioning area image according to a gray value interval according to a statistical result, and divide the coarse positioning area image into multiple Grayscale image;
包络拟合模块74,用于对各个灰度级图像分别进行二值化处理,并对二值化后的图像进行包络拟合,获取各个灰度级图像的图像包络;The envelope fitting module 74 is configured to separately perform binarization processing on each gray scale image, and perform envelope fitting on the binarized image to obtain an image envelope of each gray scale image;
直线检测模块75,用于对所述图像包络进行直线检测,若检测到所述图像包络中包含两条非钞票本身具有的直线,则将所述钞票图像对应的钞票标记为粘贴钞。The line detection module 75 is configured to perform line detection on the image envelope. If it is detected that the image envelope includes two straight lines of the non-banknotes, the banknote corresponding to the banknote image is marked as a banknote.
其中,所述灰度分级模块73包括:The gray level grading module 73 includes:
直方图获取单元731,用于获取所述粗定位区域图像的灰度直方图;a histogram obtaining unit 731, configured to acquire a gray histogram of the image of the coarse positioning area;
包络函数获取单元732,用于将所述灰度直方图的各个顶点连接成曲线,对所述曲线进行平滑处理, 获取所述灰度直方图的包络曲线函数;An envelope function obtaining unit 732, configured to connect each vertex of the gray histogram into a curve, and smooth the curve, Obtaining an envelope curve function of the gray histogram;
极值点计算单元733,用于对所述包络曲线函数进行求导,并计算所述包络曲线函数的极值点;An extreme point calculation unit 733, configured to derivate the envelope curve function, and calculate an extreme point of the envelope curve function;
灰度分级单元734,用于计算相邻的两个极值点的中点,以所述中点为灰度值区间的分界点对所述粗定位区域图像进行分级,将所述粗定位区域图像划分为多个灰度级图像。a gray leveling unit 734, configured to calculate a midpoint of two adjacent extreme points, and classify the coarse positioning area image by using the middle point as a boundary point of the gray value interval, and the coarse positioning area is The image is divided into a plurality of grayscale images.
所述包络拟合模块74包括:The envelope fitting module 74 includes:
二值化单元741,用于对各个灰度级图像分别进行二值化处理,并对二值化后的图像进行开运算;The binarization unit 741 is configured to separately perform binarization processing on each gray scale image, and perform an open operation on the binarized image;
边界拟合单元742,用于在水平和垂直两个方向上以预设的步长对进行开运算后的图像进行检索,获取边界点;并对所述边界点进行拟合,获取图像包络。The boundary fitting unit 742 is configured to retrieve the image after the opening operation in a preset step size in both horizontal and vertical directions to acquire a boundary point; and fit the boundary point to obtain an image envelope .
所述钞票图像优选包括反射图像和透射图像。The banknote image preferably includes a reflected image and a transmitted image.
在具体实施当中,所述直线检测模块75包括:In a specific implementation, the line detection module 75 includes:
粘贴分值计算单元751,用于根据直线检测的结果,获取所述钞票图像的粘贴分值;其中,a pasting score calculation unit 751, configured to acquire a pasting score of the banknote image according to a result of the straight line detection; wherein
当所述钞票图像为反射图像时,所获取的粘贴分值为第一粘贴分值;When the banknote image is a reflected image, the obtained pasting score is a first pasting score;
当所述钞票图像为透射图像时,所获取的粘贴分值为第二粘贴分值;When the banknote image is a transmission image, the obtained pasting score is a second pasting score;
当所述钞票图像为透射图像时,检测图像包络所在区域的上方和/或下方是否存在灰度值大于预设的灰度阈值的亮点;或者检测所述粗定位区域图像中是否存在灰度值大于预设的灰度阈值的亮线;根据所述亮点或者亮线的检测结果,获取所述钞票图像的第三粘贴分值;When the banknote image is a transmission image, detecting whether there is a bright point above and/or below the area where the image envelope is located, or a gray point whose value is greater than a preset gray level threshold; or detecting whether the gray level is present in the image of the coarse positioning area a bright line whose value is greater than a preset grayscale threshold; acquiring a third pasting score of the banknote image according to the detection result of the bright spot or the bright line;
综合判断单元752,用于对所述第一粘贴分值、所述第二粘贴分值和所述第三粘贴分值进行加权求和,计算综合粘贴分值;若所述综合粘贴分值大于预设的粘贴分阈值,则判定所述钞票为粘贴钞;否则,判定所述钞票为非粘贴钞。The comprehensive judging unit 752 is configured to perform weighted summation on the first pasting score, the second pasting score, and the third pasting score, and calculate a comprehensive pasting score; if the comprehensive pasting score is greater than The preset paste is divided into thresholds, and then the banknote is determined to be a banknote; otherwise, the banknote is determined to be a non-sticker.
综上所述,本发明提供的粘贴钞检测方法和装置,通过对采集的钞票图像进行粗定位,获取可能存在粘贴情况的粗定位区域图像,对所述粗定位区域图像进行灰度直方图统计,并根据统计结果按照灰度值区间进行分级,对各级图像进行二值化处理和包络拟合,获取各级图像的图像包络,对所述图像包络进行直线检测,在检测到所述图像包络中包含两条非钞票本身具有的直线(特别是两平行的直线)时,将所述钞票图像对应的钞票标记为粘贴钞。本发明根据粘贴钞在钞票图像中所呈现的图像特征,针对粘贴胶带所可能形成的不同灰度情况的图案,在有脏污或多层色差的情况下,可正确定位胶带位置并检测出胶带,有效提高粘贴钞的检出率,方案易于实现,节约设备成本。In summary, the method and device for detecting the banknotes provided by the present invention obtains a coarse positioning area image in which a pasting situation may exist by performing coarse positioning on the collected banknote image, and performs grayscale histogram statistics on the image of the coarse positioning area. According to the statistical result, the gray value interval is used to classify, and the image of each level is binarized and envelope-fitting, and the image envelope of each level image is obtained, and the image envelope is detected by the straight line, and the image is detected. When the image envelope contains two straight lines (especially two parallel straight lines) which are not in the banknote itself, the banknote corresponding to the banknote image is marked as a banknote. According to the image feature of the pasted banknote in the banknote image, the pattern of different gray scale conditions which may be formed by the adhesive tape can correctly position the tape and detect the tape in the case of dirt or multi-layer chromatic aberration. Effectively improve the detection rate of the attached banknotes, the solution is easy to implement, and the equipment cost is saved.
需说明的是,以上所描述的装置实施例仅仅是示意性的,其中所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部模块来实现本实施例方案的目的。另外,本发明提供的装置实施例附图中,模块之间的连接关系表示它们之间具有通信连接,具体可以实现为一条或多条通信总线或信号线。本领域普通技术人员在不付出创造性劳动的情况下,即可以理解并实施。It should be noted that the device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical. Units can be located in one place or distributed to multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the embodiment. In addition, in the drawings of the device embodiments provided by the present invention, the connection relationship between the modules indicates that there is a communication connection between them, and specifically, one or more communication buses or signal lines can be realized. Those of ordinary skill in the art can understand and implement without any creative effort.
通过以上的实施方式的描述,所属领域的技术人员可以清楚地了解到本发明可借助软件加必需的通用硬件的方式来实现,当然也可以通过专用硬件包括专用集成电路、专用CPU、专用存储器、专用元器件等来实现。一般情况下,凡由计算机程序完成的功能都可以很容易地用相应的硬件来实现,而且,用 来实现同一功能的具体硬件结构也可以是多种多样的,例如模拟电路、数字电路或专用电路等。但是,对本发明而言更多情况下软件程序实现是更佳的实施方式。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在可读取的存储介质中,如计算机的软盘,U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本发明各个实施例所述的方法。Through the description of the above embodiments, those skilled in the art can clearly understand that the present invention can be implemented by means of software plus necessary general hardware, and of course, dedicated hardware, dedicated CPU, dedicated memory, dedicated memory, Special components and so on. In general, any function performed by a computer program can be easily implemented with the corresponding hardware, and The specific hardware structure to achieve the same function can also be various, such as analog circuits, digital circuits or dedicated circuits. However, for the purposes of the present invention, software program implementation is a better implementation in more cases. Based on the understanding, the technical solution of the present invention, which is essential or contributes to the prior art, can be embodied in the form of a software product stored in a readable storage medium, such as a floppy disk of a computer. , U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc., including a number of instructions to make a computer device (may be A personal computer, server, or network device, etc.) performs the methods described in various embodiments of the present invention.
以上所述,仅为本发明的具体实施方式,但本发明的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本发明的保护范围之内。因此,本发明的保护范围应以所述权利要求的保护范围为准。 The above is only a specific embodiment of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily think of changes or substitutions within the technical scope of the present invention. It should be covered by the scope of the present invention. Therefore, the scope of the invention should be determined by the scope of the appended claims.

Claims (10)

  1. 一种粘贴钞检测方法,其特征在于,包括:A method for detecting a banknote, characterized in that it comprises:
    采集钞票图像;Collecting banknote images;
    对所述钞票图像中可能为粘贴的区域进行粗定位,获取粗定位区域图像;Perform coarse positioning on the area of the banknote image that may be pasted, and obtain an image of the coarse positioning area;
    对所述粗定位区域图像进行灰度直方图统计,根据统计结果按灰度值区间对所述粗定位区域图像进行分级,将所述粗定位区域图像划分为多个灰度级图像;Performing gray scale histogram statistics on the coarse positioning area image, classifying the coarse positioning area image according to a gray value interval according to a statistical result, and dividing the coarse positioning area image into a plurality of gray level images;
    对各个灰度级图像分别进行二值化处理,并对二值化后的图像进行包络拟合,获取各个灰度级图像的图像包络;Performing binarization processing on each gray level image, and performing envelope fitting on the binarized image to obtain an image envelope of each gray level image;
    对所述图像包络进行直线检测,若检测到所述图像包络中包含两条非钞票本身具有的直线,则将所述钞票图像对应的钞票标记为粘贴钞。The image envelope is detected by a straight line. If it is detected that the image envelope contains two straight lines of non-banknotes, the banknote corresponding to the banknote image is marked as a banknote.
  2. 如权利要求1所述的粘贴钞检测方法,其特征在于,所述对所述粗定位区域图像进行灰度直方图统计,根据统计结果按灰度值区间对所述粗定位区域图像进行分级,将所述粗定位区域图像划分为多个灰度级图像,包括:The method of detecting a banknote according to claim 1, wherein the gray-scale histogram statistics are performed on the image of the coarse positioning area, and the image of the coarse positioning area is classified according to a gray value interval according to a statistical result. Dividing the coarse positioning area image into a plurality of gray level images, including:
    获取所述粗定位区域图像的灰度直方图;Obtaining a gray histogram of the image of the coarse positioning area;
    将所述灰度直方图的各个顶点连接成曲线,对所述曲线进行平滑处理,获取所述灰度直方图的包络曲线函数;And connecting respective vertices of the gray histogram into a curve, and smoothing the curve to obtain an envelope curve function of the gray histogram;
    对所述包络曲线函数进行求导,并计算所述包络曲线函数的极值点;Deriving the envelope curve function and calculating an extreme point of the envelope curve function;
    计算相邻的两个极值点的中点,以所述中点为灰度值区间的分界点对所述粗定位区域图像进行分级,将所述粗定位区域图像划分为多个灰度级图像。Calculating a midpoint of two adjacent extreme points, classifying the coarse positioning area image by using the midpoint as a boundary point of the gray value interval, and dividing the coarse positioning area image into multiple gray levels image.
  3. 如权利要求1所述的粘贴钞检测方法,其特征在于,所述对各个灰度级图像分别进行二值化处理,并对二值化后的图像进行包络拟合,获取各个灰度级图像的图像包络,包括:The method for detecting a banknote according to claim 1, wherein said each grayscale image is separately binarized, and the binarized image is subjected to envelope fitting to obtain respective grayscale levels. The image envelope of the image, including:
    对各个灰度级图像分别进行二值化处理,并对二值化后的图像进行开运算;Performing binarization processing on each grayscale image separately, and performing an opening operation on the binarized image;
    在水平和垂直两个方向上以预设的步长对进行开运算后的图像进行检索,获取边界点;并对所述边界点进行拟合,获取图像包络。The image after the opening operation is retrieved in a preset step size in both the horizontal and vertical directions to obtain a boundary point; and the boundary point is fitted to obtain an image envelope.
  4. 如权利要求1~3任一项所述的粘贴钞检测方法,其特征在于,所述钞票图像包括反射图像和透射图像。The method of detecting a banknote according to any one of claims 1 to 3, wherein the banknote image comprises a reflected image and a transmitted image.
  5. 如权利要求4所述的粘贴钞检测方法,其特征在于,所述对所述图像包络进行直线检测,若检测到所述图像包络中包含两条非钞票本身具有的直线,则将所述钞票图像对应的钞票标记为粘贴钞,包括:The method for detecting a banknote according to claim 4, wherein said image envelope is linearly detected, and if it is detected that said image envelope contains two straight lines of non-banknotes, The banknote corresponding to the banknote image is marked as a banknote, including:
    根据直线检测的结果,获取所述钞票图像的粘贴分值;其中,Obtaining a paste score of the banknote image according to a result of the line detection; wherein
    当所述钞票图像为反射图像时,所获取的粘贴分值为第一粘贴分值;When the banknote image is a reflected image, the obtained pasting score is a first pasting score;
    当所述钞票图像为透射图像时,所获取的粘贴分值为第二粘贴分值;When the banknote image is a transmission image, the obtained pasting score is a second pasting score;
    当所述钞票图像为透射图像时,检测图像包络所在区域的上方和/或下方是否存在灰度值大于预设的灰度阈值的亮点;或者检测所述粗定位区域图像中是否存在灰度值大于预设的灰度阈值的亮线;根据所述亮点或者亮线的检测结果,获取所述钞票图像的第三粘贴分值; When the banknote image is a transmission image, detecting whether there is a bright point above and/or below the area where the image envelope is located, or a gray point whose value is greater than a preset gray level threshold; or detecting whether the gray level is present in the image of the coarse positioning area a bright line whose value is greater than a preset grayscale threshold; acquiring a third pasting score of the banknote image according to the detection result of the bright spot or the bright line;
    对所述第一粘贴分值、所述第二粘贴分值和所述第三粘贴分值进行加权求和,计算综合粘贴分值;若所述综合粘贴分值大于预设的粘贴分阈值,则判定所述钞票为粘贴钞;否则,判定所述钞票为非粘贴钞。Performing a weighted summation on the first pasting score, the second pasting score, and the third pasting score, and calculating a comprehensive pasting score; if the comprehensive pasting score is greater than a preset pasting threshold, Then, the banknote is determined to be a banknote; otherwise, the banknote is determined to be a non-stick banknote.
  6. 一种粘贴钞检测装置,其特征在于,包括:A sticking banknote detecting device, comprising:
    图像采集模块,用于采集钞票图像;An image acquisition module for collecting banknote images;
    粗定位模块,用于对所述钞票图像中可能为粘贴的区域进行粗定位,获取粗定位区域图像;a coarse positioning module, configured to perform rough positioning on an area that may be pasted in the image of the banknote, and obtain an image of the coarse positioning area;
    灰度分级模块,用于对所述粗定位区域图像进行灰度直方图统计,根据统计结果按灰度值区间对所述粗定位区域图像进行分级,将所述粗定位区域图像划分为多个灰度级图像;a gray level grading module, configured to perform gray level histogram statistics on the coarse positioning area image, classify the coarse positioning area image according to a gray value interval according to a statistical result, and divide the coarse positioning area image into multiple Grayscale image;
    包络拟合模块,用于对各个灰度级图像分别进行二值化处理,并对二值化后的图像进行包络拟合,获取各个灰度级图像的图像包络;An envelope fitting module is configured to separately perform binarization processing on each grayscale image, and perform envelope fitting on the binarized image to obtain an image envelope of each grayscale image;
    直线检测模块,用于对所述图像包络进行直线检测,若检测到所述图像包络中包含两条非钞票本身具有的直线,则将所述钞票图像对应的钞票标记为粘贴钞。The line detection module is configured to perform line detection on the image envelope. If it is detected that the image envelope includes two straight lines that are not in the banknote, the banknote corresponding to the banknote image is marked as a banknote.
  7. 如权利要求6所述的粘贴钞检测装置,其特征在于,所述灰度分级模块包括:The affixing detecting device of claim 6, wherein the gradation grading module comprises:
    直方图获取单元,用于获取所述粗定位区域图像的灰度直方图;a histogram acquisition unit, configured to acquire a gray histogram of the image of the coarse positioning area;
    包络函数获取单元,用于将所述灰度直方图的各个顶点连接成曲线,对所述曲线进行平滑处理,获取所述灰度直方图的包络曲线函数;An envelope function obtaining unit, configured to connect each vertex of the gray histogram into a curve, perform smoothing on the curve, and acquire an envelope curve function of the gray histogram;
    极值点计算单元,用于对所述包络曲线函数进行求导,并计算所述包络曲线函数的极值点;An extreme point calculation unit configured to derive the envelope curve function and calculate an extreme point of the envelope curve function;
    灰度分级单元,用于计算相邻的两个极值点的中点,以所述中点为灰度值区间的分界点对所述粗定位区域图像进行分级,将所述粗定位区域图像划分为多个灰度级图像。a gray grading unit, configured to calculate a midpoint of two adjacent extreme points, and classify the coarse positioning area image by using the midpoint as a boundary point of the gray value interval, and the coarse positioning area image Divided into multiple grayscale images.
  8. 如权利要求6所述的粘贴钞检测装置,其特征在于,所述包络拟合模块包括:The adhesive banknote detecting device according to claim 6, wherein the envelope fitting module comprises:
    二值化单元,用于对各个灰度级图像分别进行二值化处理,并对二值化后的图像进行开运算;a binarization unit for respectively performing binarization processing on each grayscale image, and performing an opening operation on the binarized image;
    边界拟合单元,用于在水平和垂直两个方向上以预设的步长对进行开运算后的图像进行检索,获取边界点;并对所述边界点进行拟合,获取图像包络。The boundary fitting unit is configured to retrieve the image after the opening operation in a preset step size in both horizontal and vertical directions to obtain a boundary point; and fit the boundary point to obtain an image envelope.
  9. 如权利要求6~8任一项所述的粘贴钞检测装置,其特征在于,所述钞票图像包括反射图像和透射图像。The stick detecting device according to any one of claims 6 to 8, wherein the banknote image comprises a reflected image and a transmitted image.
  10. 如权利要求9所述的粘贴钞检测装置,其特征在于,所述直线检测模块包括:The stick detecting device of claim 9, wherein the line detecting module comprises:
    粘贴分值计算单元,用于根据直线检测的结果,获取所述钞票图像的粘贴分值;其中,a pasting score calculation unit, configured to acquire a pasting score of the banknote image according to a result of the straight line detection; wherein
    当所述钞票图像为反射图像时,所获取的粘贴分值为第一粘贴分值;When the banknote image is a reflected image, the obtained pasting score is a first pasting score;
    当所述钞票图像为透射图像时,所获取的粘贴分值为第二粘贴分值;When the banknote image is a transmission image, the obtained pasting score is a second pasting score;
    当所述钞票图像为透射图像时,检测图像包络所在区域的上方和/或下方是否存在灰度值大于预设的灰度阈值的亮点;或者检测所述粗定位区域图像中是否存在灰度值大于预设的灰度阈值的亮线;根据所述亮点或者亮线的检测结果,获取所述钞票图像的第三粘贴分值;When the banknote image is a transmission image, detecting whether there is a bright point above and/or below the area where the image envelope is located, or a gray point whose value is greater than a preset gray level threshold; or detecting whether the gray level is present in the image of the coarse positioning area a bright line whose value is greater than a preset grayscale threshold; acquiring a third pasting score of the banknote image according to the detection result of the bright spot or the bright line;
    综合判断单元,用于对所述第一粘贴分值、所述第二粘贴分值和所述第三粘贴分值进行加权求和,计算综合粘贴分值;若所述综合粘贴分值大于预设的粘贴分阈值,则判定所述钞票为粘贴钞;否则,判定所述钞票为非粘贴钞。 a comprehensive judging unit, configured to perform weighted summation on the first pasting score, the second pasting score, and the third pasting score, and calculate a comprehensive pasting score; if the comprehensive pasting score is greater than a pre- If the pasting threshold is set, the banknote is determined to be a banknote; otherwise, the banknote is determined to be a non-sticker.
PCT/CN2017/087838 2016-07-29 2017-06-10 Pasted paper money detection method and device WO2018019041A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610613991.X 2016-07-29
CN201610613991.XA CN106296974B (en) 2016-07-29 2016-07-29 A kind of stickup paper money detection method and device

Publications (1)

Publication Number Publication Date
WO2018019041A1 true WO2018019041A1 (en) 2018-02-01

Family

ID=57663352

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/087838 WO2018019041A1 (en) 2016-07-29 2017-06-10 Pasted paper money detection method and device

Country Status (2)

Country Link
CN (1) CN106296974B (en)
WO (1) WO2018019041A1 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112233313A (en) * 2020-10-19 2021-01-15 中国工商银行股份有限公司 Paper money identification method, device and equipment
CN116596928A (en) * 2023-07-18 2023-08-15 山东金胜粮油食品有限公司 Quick peanut oil impurity detection method based on image characteristics
CN111462035B (en) * 2020-01-21 2024-03-08 北京明略软件系统有限公司 Picture detection method and device

Families Citing this family (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106296974B (en) * 2016-07-29 2019-05-14 广州广电运通金融电子股份有限公司 A kind of stickup paper money detection method and device
CN106875539B (en) * 2017-01-11 2019-04-26 深圳怡化电脑股份有限公司 The detection method and device of bank note
CN106815810B (en) * 2017-01-12 2021-01-01 深圳怡化电脑股份有限公司 Method and device for determining fitting boundary
CN108320371B (en) * 2017-01-17 2021-01-01 深圳怡化电脑股份有限公司 Method and device for identifying counterfeit paper money
CN106934921B (en) * 2017-02-22 2019-12-31 广州广电运通金融电子股份有限公司 Method and device for detecting sticking of paper foreign matter
CN107134046B (en) * 2017-05-02 2019-08-23 深圳怡化电脑股份有限公司 A kind of banknote thickness abnormity detection method and device
CN108537945B (en) * 2018-03-09 2020-09-15 深圳怡化电脑股份有限公司 Bill watermark detection method and system and self-service equipment
CN108961252B (en) * 2018-07-27 2021-06-08 Oppo(重庆)智能科技有限公司 Method for detecting logo paste failure, electronic device and computer readable storage medium
CN109409387B (en) * 2018-11-06 2022-03-15 深圳增强现实技术有限公司 Acquisition direction determining method and device of image acquisition equipment and electronic equipment
CN111524268B (en) * 2019-01-16 2022-08-30 深圳怡化电脑股份有限公司 Method, device and equipment for detecting paper money adhesive substance
CN111489486A (en) * 2019-01-25 2020-08-04 深圳怡化电脑股份有限公司 Method, device and equipment for detecting pasted bills and storage medium
CN109900719B (en) * 2019-03-04 2020-08-04 华中科技大学 Visual detection method for blade surface knife lines

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020037096A1 (en) * 2000-09-28 2002-03-28 Kabushiki Kaisha Nippon Conlux Money identifying method and device
CN104504802A (en) * 2014-10-23 2015-04-08 深圳怡化电脑股份有限公司 Detection method for paper money splicing signal
CN104751559A (en) * 2015-03-25 2015-07-01 深圳怡化电脑股份有限公司 Money detector and money detecting method
CN105069786A (en) * 2015-07-31 2015-11-18 小米科技有限责任公司 Straight line detection method and straight line detection device
CN105447956A (en) * 2015-11-06 2016-03-30 东方通信股份有限公司 Spliced banknote detection method
CN106296974A (en) * 2016-07-29 2017-01-04 广州广电运通金融电子股份有限公司 A kind of stickup paper money detection method and device

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101590715B1 (en) * 2014-06-30 2016-02-01 주식회사 엘지씨엔에스 Apparatus and method for recognizing media, financial device
CN104361672B (en) * 2014-10-14 2017-03-15 深圳怡化电脑股份有限公司 A kind of method detected by bank note knuckle
CN105139508B (en) * 2015-08-13 2018-07-17 深圳怡化电脑股份有限公司 A kind of method and device of detection bank note
CN105551133B (en) * 2015-11-16 2018-11-23 新达通科技股份有限公司 The recognition methods and system of a kind of bank note splicing seams or folding line

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020037096A1 (en) * 2000-09-28 2002-03-28 Kabushiki Kaisha Nippon Conlux Money identifying method and device
CN104504802A (en) * 2014-10-23 2015-04-08 深圳怡化电脑股份有限公司 Detection method for paper money splicing signal
CN104751559A (en) * 2015-03-25 2015-07-01 深圳怡化电脑股份有限公司 Money detector and money detecting method
CN105069786A (en) * 2015-07-31 2015-11-18 小米科技有限责任公司 Straight line detection method and straight line detection device
CN105447956A (en) * 2015-11-06 2016-03-30 东方通信股份有限公司 Spliced banknote detection method
CN106296974A (en) * 2016-07-29 2017-01-04 广州广电运通金融电子股份有限公司 A kind of stickup paper money detection method and device

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111462035B (en) * 2020-01-21 2024-03-08 北京明略软件系统有限公司 Picture detection method and device
CN112233313A (en) * 2020-10-19 2021-01-15 中国工商银行股份有限公司 Paper money identification method, device and equipment
CN116596928A (en) * 2023-07-18 2023-08-15 山东金胜粮油食品有限公司 Quick peanut oil impurity detection method based on image characteristics
CN116596928B (en) * 2023-07-18 2023-10-03 山东金胜粮油食品有限公司 Quick peanut oil impurity detection method based on image characteristics

Also Published As

Publication number Publication date
CN106296974A (en) 2017-01-04
CN106296974B (en) 2019-05-14

Similar Documents

Publication Publication Date Title
WO2018019041A1 (en) Pasted paper money detection method and device
Jahanshahi et al. Unsupervised approach for autonomous pavement-defect detection and quantification using an inexpensive depth sensor
Cord et al. Automatic road defect detection by textural pattern recognition based on AdaBoost
CN107633516B (en) Method and device for identifying road surface deformation diseases
WO2017197884A1 (en) Banknote management method and system
Nguyen et al. Automatic detection and classification of defect on road pavement using anisotropy measure
JP2022514859A (en) Related methods for assessing the condition of automated inspection systems and shipping containers
CN110598699A (en) Anti-counterfeiting bill authenticity distinguishing system and method based on multispectral image
CN109946303A (en) Check device and method
CN109462999B (en) Visual inspection method based on learning through data balance and visual inspection device using same
US11315229B2 (en) Method for training defect detector
CN108319958A (en) A kind of matched driving license of feature based fusion detects and recognition methods
CN106415608A (en) Methods and a system for verifying the identity of a printed item
CN101995412A (en) Robust glass scratch defect detection method and device thereof
US20180204405A1 (en) Detection method and apparatus for overlapped notes
Ryu et al. Feature-based pothole detection in two-dimensional images
Choi et al. Localizing slab identification numbers in factory scene images
JPH08189904A (en) Surface defect detector
CN106296975B (en) method and device for identifying face value of dollar paper money
Kim Adaptive thresholding technique for binarization of license plate images
US20230342937A1 (en) Vehicle image analysis
Kaul et al. Quantitative performance evaluation algorithms for pavement distress segmentation
Elanangai et al. Automated system for defect identification and character recognition using IR images of SS-plates
JP7356010B2 (en) Surface texture inspection device and surface texture inspection method
Chiu et al. Effective image models for inspecting profile flaws of car mirrors with applications

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 17833345

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205 DATED 25.06.2019)

122 Ep: pct application non-entry in european phase

Ref document number: 17833345

Country of ref document: EP

Kind code of ref document: A1