Disclosure of Invention
The technical problem solved by the invention is as follows: a currency detecting method and a system for identifying an ultraviolet image are constructed, and the technical problem that the ultraviolet false distinguishing detection result is low in precision in the prior art is solved.
The technical scheme of the invention is as follows: the currency detecting method for identifying the ultraviolet light image comprises the following steps:
and (3) irradiating the paper money: irradiating the pre-verified paper money by using an ultraviolet light source;
acquiring a scanning image: scanning the paper money to obtain a scanned image of the paper money under ultraviolet light;
extracting image features: setting a threshold value for the bright point gray value of the scanned image according to the anti-counterfeiting characteristic of the ultraviolet fluorescence effect of the paper money, and acquiring image pixels larger than the threshold value for the scanned image;
and (3) verifying authenticity: according to the anti-counterfeiting characteristic of the ultraviolet fluorescence effect of the paper currency, image pixels of bright point gray values of template paper currency in an image under ultraviolet light, which are larger than the threshold value, are obtained, similarity measure calculation is carried out on the image pixels of the obtained scanned image of the paper currency to be detected, which are larger than the threshold value, and the image pixels of the scanned image of the template paper currency, which are larger than the threshold value, are obtained, and the authenticity of the paper currency to be detected is judged according to the calculation result and the preset similarity threshold value.
The further technical scheme of the invention is as follows: the extraction of the image pixel values is saved in a matrix form.
The further technical scheme of the invention is as follows: in the step of authenticity verification, the similarity measure of image pixels is calculated by a correlation function, wherein the correlation function is as follows:
wherein,
is the ultraviolet image pixel of the paper money to be detected,
the ultraviolet image pixels of the template paper currency are shown, the row number of m image pixels is shown, and n is the column number of the image pixels.
The further technical scheme of the invention is as follows: in the step of extracting the image characteristics, the method also comprises the step of extracting image pixels of the paper money red and blue fibers under ultraviolet light according to the anti-counterfeiting characteristics of the paper money red and blue fibers, and in the step of verifying the authenticity, the method also comprises the step of judging the authenticity of the paper money to be detected according to the existence of the image pixels of the paper money red and blue fibers under the ultraviolet light.
The technical scheme of the invention is as follows: the money detecting system comprises an irradiation unit for irradiating a paper money image, a scanning unit for scanning the paper money image, an image feature extraction unit for extracting image features and a verification unit for verifying authenticity of the paper money, wherein the irradiation unit irradiates pre-verified paper money by using an ultraviolet light source, the scanning unit scans the paper money to obtain a scanned image of the paper money under ultraviolet light, the image feature extraction unit sets a threshold value for a bright point gray value of the scanned image according to the anti-counterfeiting feature of the ultraviolet fluorescence effect of the paper money, image pixels larger than the threshold value are obtained for the scanned image, the verification unit obtains image pixels with the bright point gray value larger than the threshold value in an image of a template paper money under ultraviolet light according to the anti-counterfeiting feature of the ultraviolet fluorescence effect of the paper money, and the obtained image pixels with the scanned image of the paper money to be detected larger than the threshold value and the obtained scanned image of the template paper money are used for obtaining the scanned image And performing similarity measure calculation on the image pixels larger than the threshold value, and judging the authenticity of the paper money to be detected according to the calculation result and a preset similarity threshold value.
The further technical scheme of the invention is as follows: the image feature extraction unit comprises a first storage module which stores the extracted image pixels in a matrix form.
The further technical scheme of the invention is as follows: the verification unit comprises an image feature extraction module for extracting template paper money, and the image feature extraction module acquires image pixels of which the gray value of bright points in an image of the template paper money under ultraviolet light is greater than the threshold value according to the anti-counterfeiting feature of the ultraviolet fluorescence effect of the paper money.
The further technical scheme of the invention is as follows: the verification unit comprises a second storage module, and the second storage module stores image pixels of which the bright point gray scale value of the template paper money in the image under ultraviolet light is larger than the threshold in a matrix form.
The further technical scheme of the invention is as follows: the currency detecting system also comprises an image pixel red and blue fiber extracting unit for extracting the red and blue fibers of the paper currency under ultraviolet light.
The further technical scheme of the invention is as follows: the currency detecting system also comprises a red and blue fiber verifying module for judging the truth of the paper currency to be detected according to the existence of the image pixels of the paper currency red and blue fibers under ultraviolet light.
The invention has the technical effects that: constructing a currency detecting method and system for identifying ultraviolet images, irradiating pre-verified paper currency by an ultraviolet light source to obtain a scanned image of the paper currency under ultraviolet light, the image feature extraction unit sets a threshold value for the bright point gray value of the scanned image according to the anti-counterfeiting feature of the ultraviolet fluorescence effect of the paper money, acquiring image pixels larger than the threshold value from the scanned image, acquiring image pixels of which the bright point gray value in the template paper money image is larger than the threshold value under ultraviolet light according to the anti-counterfeiting characteristic of the ultraviolet fluorescence effect of the paper money, performing similarity measure calculation on the acquired image pixels of which the scanned image of the paper money to be detected is larger than the threshold value and the acquired image pixels of which the scanned image of the template paper money is larger than the threshold value, and judging the authenticity of the paper money to be detected according to the calculation result and the preset similarity threshold value. The invention relates to a currency detecting method and system for identifying an ultraviolet image, which can effectively improve the inspection level of a currency detecting module of automatic teller equipment on ultraviolet anti-counterfeiting characteristics and can realize the inspection of red and blue fibers randomly embedded in paper currency.
Detailed Description
The technical solution of the present invention is further illustrated below with reference to specific examples.
As shown in fig. 1, the specific embodiment of the present invention is: the currency detecting method for identifying the ultraviolet light image comprises the following steps:
step 100: illuminating the banknote, i.e. illuminating the pre-validated banknote with an ultraviolet light source. The method comprises the following steps of irradiating the pre-verified paper money by ultraviolet light to obtain an image of the paper money under the irradiation of an ultraviolet light source. One of the anti-counterfeiting areas of the paper money has an ultraviolet fluorescence effect, so that the area with the ultraviolet fluorescence effect becomes very bright for the ultraviolet image of the whole paper money.
Step 200: scanning images, namely scanning the paper money, and acquiring the scanned images of the paper money under ultraviolet light.
Step 300: and (3) extracting image features, namely setting a threshold value for the bright point gray value of the scanned image according to the anti-counterfeiting features of the ultraviolet fluorescence effect of the paper money, and acquiring image pixels larger than the threshold value for the scanned image. In a specific embodiment, the extraction of the image pixel values is saved in a matrix form. Because one anti-counterfeiting area of the paper money has the ultraviolet fluorescence effect, the area with the ultraviolet fluorescence effect becomes very bright for the ultraviolet image of the whole paper money, so that the ultraviolet image of the interested paper money can be obtained by setting a threshold value and extracting the bright areas, which can be called as an ultraviolet excited image of the paper money. Because the red and blue fibers are randomly distributed in the paper money, and the images obtained by scanning the red and blue fibers under the irradiation of ultraviolet light are relatively bright, the existence of the red and blue fibers is mainly detected in anti-counterfeiting detection.
Step 400: and (3) authenticity verification, namely acquiring image pixels of which the gray value of bright points in an image of the template paper money under ultraviolet light is greater than the threshold value according to the anti-counterfeiting characteristics of the ultraviolet fluorescence effect of the paper money, performing similarity measure calculation on the acquired image pixels of which the scanned image of the paper money to be detected is greater than the threshold value and the acquired image pixels of which the scanned image of the template paper money is greater than the threshold value, and judging the authenticity of the paper money to be detected according to the calculation result and a preset similarity threshold value. In a specific embodiment, the similarity measure of the image pixels is calculated by a correlation function, where the correlation function is:
wherein,
is the ultraviolet image pixel of the paper money to be detected,
for the template banknote ultraviolet image pixels, R (i, j) is the similarity measure, m is the number of rows of image pixels, and n is the number of columns of image pixels.
And setting the similarity measure to be larger than a threshold value according to the similarity measure of the calculation result, namely the true banknote is judged, and the false banknote is judged if the similarity measure is smaller than or equal to the threshold value.
The invention relates to a currency detecting method for identifying an ultraviolet image, which irradiates a pre-verified paper currency with an ultraviolet light source to obtain a scanned image of the paper currency under ultraviolet light, the image feature extraction unit sets a threshold value for the bright point gray value of the scanned image according to the anti-counterfeiting feature of the ultraviolet fluorescence effect of the paper money, acquiring image pixels larger than the threshold value from the scanned image, acquiring image pixels of which the bright point gray value in the template paper money image is larger than the threshold value under ultraviolet light according to the anti-counterfeiting characteristic of the ultraviolet fluorescence effect of the paper money, performing similarity measure calculation on the acquired image pixels of which the scanned image of the paper money to be detected is larger than the threshold value and the acquired image pixels of which the scanned image of the template paper money is larger than the threshold value, and judging the authenticity of the paper money to be detected according to the calculation result and the preset similarity threshold value. The invention relates to a currency detecting method and system for identifying an ultraviolet image, which can effectively improve the inspection level of a currency detecting module of automatic teller equipment on ultraviolet anti-counterfeiting characteristics and can realize the inspection of red and blue fibers randomly embedded in paper currency.
As shown in fig. 2, the technical solution of the present invention is: a currency detecting system for identifying an ultraviolet light image is constructed, and comprises an irradiation unit 1 for irradiating a paper currency image, a scanning unit 2 for scanning the paper currency image, an image feature extraction unit 3 for extracting image features, and a verification unit 4 for verifying the authenticity of the paper currency, wherein the irradiation unit 1 irradiates pre-verified paper currency with an ultraviolet light source, the scanning unit 2 scans the paper currency to obtain a scanned image of the paper currency under the ultraviolet light, the image feature extraction unit 3 sets a threshold value for a bright point gray value of the scanned image according to the anti-counterfeiting feature of the ultraviolet fluorescence effect of the paper currency, obtains image pixels larger than the threshold value for the scanned image, the verification unit 4 obtains image pixels of which the bright point gray value is larger than the threshold value in the image of the paper currency under the ultraviolet light according to the anti-counterfeiting feature of the ultraviolet fluorescence effect of the paper currency, the verification unit 4 performs similarity measure calculation on image pixels of the acquired banknote to be detected scanned image, which are larger than the threshold value, and image pixels of the template banknote scanned image, which are larger than the threshold value, and the verification unit 4 judges the authenticity of the banknote to be detected according to the calculation result and a preset similarity threshold value.
As shown in fig. 3, the specific implementation process of the present invention is: the currency detecting system comprises a currency conveying channel 5, an irradiation unit 1, a trigger sensor 6, a scanning unit 2, an image feature extraction unit 3, a verification unit 4, an upper computer 7 and a transmission unit 4. When currency enters through the currency passing channel 5, the triggering sensor 6 senses the currency, the irradiation unit 1 irradiates the currency with ultraviolet light, and as one of the anti-counterfeiting areas of the currency has an ultraviolet fluorescence effect, the area with the ultraviolet fluorescence effect becomes very bright for the ultraviolet light image of the whole currency. Then the scanning unit 2 scans the currency in the currency conveying channel 5 under the irradiation of ultraviolet light to obtain a scanning image excited by an ultraviolet light source of the currency. The image characteristic extraction unit 3 sets a threshold value for the gray value of the bright point in the ultraviolet image according to the anti-counterfeiting characteristic of the ultraviolet fluorescence effect of the paper money, extracting image pixels larger than the threshold value according to the image scanned by the scanning unit, acquiring image pixels with bright point gray scale values larger than the threshold value in the template banknote ultraviolet image by the verification unit 4 according to the anti-counterfeiting characteristics of the banknote ultraviolet image, the verification unit 4 obtains image pixels of which the gray value of bright points in the ultraviolet light image of the template paper money is greater than the threshold value according to the anti-counterfeiting characteristics of the paper money ultraviolet fluorescence effect, the verification unit 4 performs similarity measure calculation on the image pixels of the acquired banknote scanning image to be detected which are larger than the threshold value and the image pixels of the template banknote scanning image which are acquired which are larger than the threshold value, and the verification unit 4 judges the authenticity of the paper money to be detected according to the calculation result and a preset similarity threshold value. In a specific embodiment, the image feature extraction unit 3 includes a first storage module 31, and the first storage module 31 stores the extracted image pixels in a matrix form. The verification unit 4 comprises an image feature extraction module 41 for extracting template banknote image features, the image feature extraction module 41 extracts the template banknote image feature extraction module, and the image feature extraction module acquires image pixels of which the bright point gray values in the template banknote image under ultraviolet light are larger than the threshold value according to the anti-counterfeiting features of the banknote ultraviolet fluorescence effect. The verification unit 4 comprises a second storage module 42, and the second storage module 42 stores image pixels of template paper money with bright point gray scale values larger than the threshold in an ultraviolet light image in a matrix form. The banknote checking system further comprises an image pixel red-blue fiber extraction unit 32 for extracting the banknote red-blue fibers under ultraviolet light, and the banknote checking system further comprises a red-blue fiber verification module 43 for judging the authenticity of the banknote to be detected through the existence of the image pixels of the banknote red-blue fibers under the ultraviolet light.
In a specific embodiment, the similarity measure of the pixels of the two images is calculated by a correlation function, where the correlation function is:
wherein,
is the ultraviolet image pixel of the paper money to be detected,
for template banknote ultraviolet image pixels, R (i, j) is a measure of pixel similarity of two image images, m is the number of rows of image pixels, and n is the number of columns of image pixels.
And setting the similarity measure to be larger than a threshold value according to the similarity measure of the calculation result, namely the true banknote is judged, and the false banknote is judged if the similarity measure is smaller than or equal to the threshold value.
The invention has the technical effects that: constructing a currency detecting method and system for identifying ultraviolet images, irradiating pre-verified paper currency by an ultraviolet light source to obtain a scanned image of the paper currency under ultraviolet light, the image feature extraction unit sets a threshold value for the bright point gray value of the scanned image according to the anti-counterfeiting feature of the ultraviolet fluorescence effect of the paper money, acquiring image pixels larger than the threshold value from the scanned image, acquiring image pixels of which the bright point gray value in the template paper money image is larger than the threshold value under ultraviolet light according to the anti-counterfeiting characteristic of the ultraviolet fluorescence effect of the paper money, performing similarity measure calculation on the acquired image pixels of which the scanned image of the paper money to be detected is larger than the threshold value and the acquired image pixels of which the scanned image of the template paper money is larger than the threshold value, and judging the authenticity of the paper money to be detected according to the calculation result and the preset similarity threshold value. The invention relates to a currency detecting method and system for identifying an ultraviolet image, which can effectively improve the inspection level of a currency detecting module of automatic teller equipment on ultraviolet anti-counterfeiting characteristics and can realize the inspection of red and blue fibers randomly embedded in paper currency.
The foregoing is a more detailed description of the invention in connection with specific preferred embodiments and it is not intended that the invention be limited to these specific details. For those skilled in the art to which the invention pertains, several simple deductions or substitutions can be made without departing from the spirit of the invention, and all shall be considered as belonging to the protection scope of the invention.