CN108510640B - Dynamic security thread-based currency detection method and device, currency detector and storage medium - Google Patents
Dynamic security thread-based currency detection method and device, currency detector and storage medium Download PDFInfo
- Publication number
- CN108510640B CN108510640B CN201810175480.3A CN201810175480A CN108510640B CN 108510640 B CN108510640 B CN 108510640B CN 201810175480 A CN201810175480 A CN 201810175480A CN 108510640 B CN108510640 B CN 108510640B
- Authority
- CN
- China
- Prior art keywords
- light
- similarity
- color light
- image
- color
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000001514 detection method Methods 0.000 title claims abstract description 24
- 238000003860 storage Methods 0.000 title claims abstract description 15
- 239000003086 colorant Substances 0.000 claims abstract description 69
- 238000005286 illumination Methods 0.000 claims description 29
- 238000000034 method Methods 0.000 claims description 18
- 238000004364 calculation method Methods 0.000 claims description 14
- 238000012545 processing Methods 0.000 claims description 5
- 239000011248 coating agent Substances 0.000 claims description 4
- 238000000576 coating method Methods 0.000 claims description 4
- 238000002360 preparation method Methods 0.000 claims description 4
- 238000010200 validation analysis Methods 0.000 claims description 2
- 230000015654 memory Effects 0.000 description 12
- 230000006870 function Effects 0.000 description 5
- 238000010586 diagram Methods 0.000 description 4
- 238000009826 distribution Methods 0.000 description 3
- 239000013598 vector Substances 0.000 description 3
- 230000001678 irradiating effect Effects 0.000 description 2
- 230000006978 adaptation Effects 0.000 description 1
- 238000004458 analytical method Methods 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 238000003708 edge detection Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000007477 logistic regression Methods 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 239000000463 material Substances 0.000 description 1
- 238000010295 mobile communication Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 239000007787 solid Substances 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 238000012795 verification Methods 0.000 description 1
- 230000000007 visual effect Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G07—CHECKING-DEVICES
- G07D—HANDLING OF COINS OR VALUABLE PAPERS, e.g. TESTING, SORTING BY DENOMINATIONS, COUNTING, DISPENSING, CHANGING OR DEPOSITING
- G07D7/00—Testing specially adapted to determine the identity or genuineness of valuable papers or for segregating those which are unacceptable, e.g. banknotes that are alien to a currency
- G07D7/20—Testing patterns thereon
- G07D7/202—Testing patterns thereon using pattern matching
- G07D7/2041—Matching statistical distributions, e.g. of particle sizes orientations
Landscapes
- Engineering & Computer Science (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Image Processing (AREA)
- Inspection Of Paper Currency And Valuable Securities (AREA)
Abstract
The embodiment of the invention discloses a dynamic security thread-based currency detection method and device, a currency detector and a storage medium. The embodiment of the invention provides a currency detection method based on a dynamic safety line, which comprises the following steps: when paper money to be detected passes through, four frames of images of the paper money are collected through two cameras under the irradiation of light with two colors, and the shooting angles of the two cameras are different; intercepting images of the regions where the dynamic safety lines are located from the four frames of images, and counting gray data of the intercepted images; calculating the similarity of colors according to gray data of two frames of images acquired by the same camera under the irradiation of different colors of light; calculating the similarity of the patterns according to the gray data of two frames of images collected by two cameras under the irradiation of the same color light; and if the similarity of the color and the pattern is within the preset true banknote similarity value range, determining that the banknote is a true banknote. The embodiment of the invention realizes the simultaneous detection of the color and the pattern of the dynamic security thread and improves the efficiency and the accuracy of paper money detection.
Description
Technical Field
The embodiment of the invention relates to a dynamic security thread technology, in particular to a currency detecting method and device based on a dynamic security thread, a currency detector and a storage medium.
Background
The dynamic security thread is a micro-optical material used on paper money, the image of the security thread can be changed according to the change of the visual angle, the dynamic image of the change can be changed according to the change of the appearance, the inclination angle and the direction of the image, and the security thread can be perceived even under dim light. The dynamic safety line is taken as an implanted anti-counterfeiting technical means, is integrated into paper in the manufacturing process of the banknote paper, which means that the dynamic safety line is taken as a part of the banknote and fulfills the safety anti-counterfeiting function of the banknote for a whole life until the banknote disappears.
However, the identification of the dynamic security thread belongs to the human eye observation characteristic at present, and the dynamic security thread cannot be identified through a machine so as to determine the authenticity of the paper money.
Disclosure of Invention
The embodiment of the invention provides a dynamic security thread-based currency detection method, a dynamic security thread-based currency detection device, a currency detector and a storage medium, so that the color and the pattern of the dynamic security thread can be detected simultaneously, and the efficiency and the accuracy of paper currency detection are improved.
In a first aspect, an embodiment of the present invention provides a banknote detection method based on a dynamic security thread, including:
when paper money to be detected passes through, acquiring four frames of images of the paper money through two cameras under the irradiation of light of two colors, wherein the two cameras have different shooting angles;
respectively intercepting images of the areas where the dynamic safety lines are located from the four frames of images, and counting gray data of each intercepted image;
calculating the similarity of colors respectively presented by the dynamic safety line under the irradiation of light with two colors according to the gray data of two frames of images acquired by the same camera under the irradiation of light with different colors;
calculating the similarity of patterns respectively shown by the dynamic safety line at different angles according to the gray data of two frames of images collected by two cameras under the irradiation of the same color light;
and if the similarity of the colors and the similarity of the patterns are within a preset true banknote similarity value range, determining that the paper currency is true banknote.
Optionally, two kinds of colour lights include first colour light and second colour light, two cameras include first camera and second camera, four frame images include under the illumination of first colour light the first image that first camera was gathered under the illumination of first colour light the second image that the second camera was gathered under the illumination of first colour light the third image that the first camera was gathered with under the illumination of second colour light the fourth image that the second camera was gathered.
Optionally, the gray scale data includes gray scale data corresponding to the first color light or gray scale data corresponding to the second color light.
Optionally, the calculating, according to the gray data of two frames of images acquired by the same camera under the irradiation of different color lights, the similarity of the colors respectively exhibited by the dynamic security line under the irradiation of two color lights includes:
calculating the similarity of colors of the dynamic safety line respectively presented under the irradiation of the first color light and the second color light according to the gray data corresponding to the first color light in the first image and the gray data corresponding to the second color light in the third image; and a process for the preparation of a coating,
and calculating the similarity of colors of the dynamic safety line respectively presented under the irradiation of the first color light and the second color light according to the gray data corresponding to the first color light in the second image and the gray data corresponding to the second color light in the fourth image.
Optionally, the calculating, according to the gray data of two frames of images acquired by two cameras under the irradiation of the same color light, the similarity of the patterns respectively presented by the dynamic security line at different angles includes:
calculating the similarity of patterns presented by the dynamic safety line under the respective shooting angles of the first camera and the second camera according to the gray data corresponding to the first color light in the first image and the gray data corresponding to the first color light in the second image; and a process for the preparation of a coating,
and calculating the similarity of the patterns of the dynamic safety line respectively presented at the respective shooting angles of the first camera and the second camera according to the gray data corresponding to the second color light in the third image and the gray data corresponding to the second color light in the fourth image.
Optionally, the first color light is red light, and the second color light is green light.
Optionally, the shooting angle set by the first camera is 90 °, and the shooting angle set by the second camera is 30 °.
Optionally, the similarity of the colors is expressed by mahalanobis distance, and the similarity of the patterns is expressed by euclidean distance.
In a second aspect, an embodiment of the present invention provides a banknote checking apparatus based on a dynamic security thread, including:
the device comprises a shooting module, a detection module and a display module, wherein the shooting module is used for acquiring four frames of images of paper money under the irradiation of light with two colors respectively when the paper money to be detected passes through, and the shooting angles of the two cameras are different;
the statistical module is used for respectively intercepting images of the areas where the dynamic safety lines are located from the four frames of images and counting the gray data of each intercepted image;
the color calculation module is used for calculating the similarity of colors respectively presented by the dynamic safety line under the irradiation of light with two colors according to the gray data of two frames of images acquired by the same camera under the irradiation of light with different colors;
the pattern calculation module is used for calculating the similarity of patterns respectively shown by the dynamic safety line at different angles according to the gray data of two frames of images collected by two cameras under the irradiation of light with the same color;
and the processing module is used for determining that the paper money is true paper money if the similarity of the colors and the similarity of the patterns are within a preset true paper money similarity value range.
Optionally, two kinds of colour lights include first colour light and second colour light, two cameras include first camera and second camera, four frame images include under the illumination of first colour light the first image that first camera was gathered under the illumination of first colour light the second image that the second camera was gathered under the illumination of first colour light the third image that the first camera was gathered with under the illumination of second colour light the fourth image that the second camera was gathered.
Optionally, the gray scale data includes gray scale data corresponding to the first color light or gray scale data corresponding to the second color light.
Optionally, the color calculation module is specifically configured to calculate, according to the grayscale data corresponding to the first color light in the first image and the grayscale data corresponding to the second color light in the third image, a similarity of colors presented by the dynamic security line under the irradiation of the first color light and the second color light respectively; and calculating the similarity of the colors of the dynamic safety line respectively under the irradiation of the first color light and the second color light according to the gray data corresponding to the first color light in the second image and the gray data corresponding to the second color light in the fourth image.
Optionally, the pattern calculating module is specifically configured to calculate, according to the grayscale data corresponding to the first color light in the first image and the grayscale data corresponding to the first color light in the second image, similarities of patterns that the dynamic security thread respectively presents at the respective shooting angles of the first camera and the second camera; and calculating the similarity of the patterns of the dynamic safety line respectively presented under the respective shooting angles of the first camera and the second camera according to the gray data corresponding to the second color light in the third image and the gray data corresponding to the second color light in the fourth image.
Optionally, the first color light is red light, and the second color light is green light.
Optionally, the shooting angle set by the first camera is 90 °, and the shooting angle set by the second camera is 30 °.
Optionally, the similarity of the colors is expressed by mahalanobis distance, and the similarity of the patterns is expressed by euclidean distance.
In a third aspect, an embodiment of the present invention provides a banknote checking apparatus, where the apparatus includes:
one or more processors;
storage means for storing one or more programs;
the camera is used for collecting images;
the LED lamp is used for providing light rays for shooting images;
when executed by the one or more processors, the one or more programs cause the one or more processors to implement the lively security thread-based currency detection method as described in any one of the first aspects above.
In a fourth aspect, embodiments of the present invention provide a storage medium containing executable instructions, which when executed by a processor, are configured to perform a method for currency detection based on an animated security thread as described in any one of the first aspects above.
According to the embodiment of the invention, the change of the pattern of the dynamic security thread is detected by shooting the paper money at double angles, and the change of the color of the dynamic security thread is detected by irradiating the paper money with double-color light, so that the simultaneous detection of the color and the pattern of the dynamic security thread is realized, and the efficiency and the accuracy of paper money detection are improved.
Drawings
Fig. 1 is a flowchart of a banknote detection method based on a dynamic security thread according to an embodiment of the present invention;
fig. 2 is a schematic structural diagram of a banknote detection apparatus based on a dynamic security thread according to a second embodiment of the present invention;
fig. 3 is a schematic structural diagram of a banknote validator according to a third embodiment of the present invention.
Detailed Description
The embodiments of the present invention will be described in further detail with reference to the drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of and not restrictive on the broad invention. It should be further noted that, for convenience of description, only some structures, not all structures, relating to the embodiments of the present invention are shown in the drawings.
Example one
Fig. 1 is a flowchart of a banknote verification method based on a dynamic security thread according to an embodiment of the present invention, where this embodiment is applicable to a case of performing a counterfeit detection on a banknote into which a dynamic security thread is implanted, and the method may be executed by a banknote verifier, and specifically includes the following steps:
101, when paper money to be detected passes through, acquiring four frames of images of the paper money through two cameras under the irradiation of light with two colors, wherein the two cameras have different shooting angles;
because the color and the pattern of the dynamic security thread can change under different angles, images can be watched at two angles when the pattern change is detected, and two kinds of reflected light are needed to better highlight the color change of the dynamic security thread. The embodiment of the invention collects the images of the paper money from two angles, namely the paper money detector is provided with two cameras, preferably one camera shoots the paper money from a vertical direction at an angle of 90 degrees, and the other camera shoots the paper money from a lateral direction at an angle of 30 degrees. Meanwhile, the currency detector is provided with an LED lamp which can emit light with two colors, preferably a red light and a green light. The two cameras are respectively used for shooting the paper money under the light of two colors (red light and green light), so that four frames of images can be collected, including a first image collected by the first camera under the illumination of the light of the first color (an image shot at 90 degrees under the red light), a second image collected by the second camera under the illumination of the light of the first color (an image shot at 30 degrees under the red light), a third image collected by the first camera under the illumination of the light of the second color (an image shot at 90 degrees under the green light) and a fourth image collected by the second camera under the illumination of the light of the second color (an image shot at 30 degrees under the green light).
102, respectively intercepting images of areas where dynamic safety lines are located from four frames of images, and counting gray data of the intercepted images;
the whole image of the paper currency is shot by the camera, only the image of the area where the dynamic security thread is located in the whole image can be intercepted in order to reduce the calculation amount, the specific intercepting range depends on the paper currency to be detected, for example, U.S. dollars, pounds, korean elements and the like determine the area needing intercepting according to the position of the dynamic security thread design, the gray data of each intercepted image is counted, the gray data comprises the gray data corresponding to the light of a first color or the gray data corresponding to the light of a second color, namely the first image and the second image are shot under red light, the image intercepted from the first image and the second image is counted to the gray data Hr (comprising gray distribution, gray value and the like) corresponding to the red light, the third image and the fourth image are shot under green light, and the image intercepted from the third image and the fourth image is counted to the gray data Hg (comprising gray distribution, green light distribution and, Gray scale values, etc.).
103, calculating the similarity of colors respectively presented by the dynamic security line under the irradiation of the light with two colors according to the gray data of two frames of images acquired by the same camera under the irradiation of the light with different colors;
calculating the similarity of colors of the dynamic security line respectively presented under the irradiation of the first color light and the second color light according to the gray data corresponding to the first color light in the first image and the gray data corresponding to the second color light in the third image; and calculating the similarity of the colors of the dynamic safety line respectively under the irradiation of the first color light and the second color light according to the gray data corresponding to the first color light in the second image and the gray data corresponding to the second color light in the fourth image.
According to the embodiment of the invention, images shot by the same camera under the light of two colors are compared, theoretically, the paper money is shot under the irradiation of the light of the two colors at the same angle, and the paper money can show two colors according to the characteristics of the dynamic safety line, so that the first image and the third image are divided into one group for comparison, and the second image and the fourth image are divided into one group for comparison. And (3) recording the data obtained at the optimal matching position as vectors Vr and Vg corresponding to two colors respectively by sliding two gray scale data in the group, calculating the similarity of the two gray scale data, wherein the two gray scale data can be regarded as two one-dimensional matrixes L and K, assuming that the position of the K is fixed, gradually sliding the L, calculating the matching degree of each sliding according to the following formula, and taking the L and the K corresponding to the highest value as the optimal position according to the calculation result.
In the embodiment of the present invention, Mahalanobis Distance (Mahalanobis Distance) is preferably used to represent the similarity of the colors of the dynamic security threads, and a larger value indicates a larger difference of the colors.
104, calculating the similarity of patterns respectively shown by the dynamic safety line at different angles according to the gray data of two frames of images collected by two cameras under the irradiation of the same color light;
calculating the similarity of patterns presented by the dynamic security line under the respective shooting angles of the first camera and the second camera according to the gray data corresponding to the first color light in the first image and the gray data corresponding to the first color light in the second image; and calculating the similarity of the patterns of the dynamic safety line respectively presented under the respective shooting angles of the first camera and the second camera according to the gray data corresponding to the second color light in the third image and the gray data corresponding to the second color light in the fourth image.
In the embodiment of the invention, the images shot by the two cameras under the illumination of the same color of light are compared, the paper money is shot at different angles theoretically, and different patterns can be presented according to the characteristics of the dynamic safety line, so that the first image and the second image are divided into one group for comparison, and the third image and the fourth image are divided into one group for comparison. The differential images Sr and Sg of the pattern edge are respectively obtained by adopting a sobel operator, the similarity of the differential images Sr and Sg is calculated, wherein the sobel operator is one of the most important operators in the pixel image edge detection algorithm and is a discrete first-order differential operator and used for calculating the approximate value of the first-order gradient of the image brightness function, and the gradient vector corresponding to the point or the normal vector thereof can be generated by using the sobel operator at any point of the image. According to the embodiment of the invention, the Euclidean distance is preferably adopted to represent the similarity of the patterns of the dynamic security thread, and the larger the value is, the larger the difference of the patterns is.
And 105, if the similarity of the colors and the similarity of the patterns are within a preset true banknote similarity value range, determining that the banknote is a true banknote.
The similarity range of the real banknote shot by the dynamic security threads in different colors or different angles can be obtained through analysis and statistics of relevant data of colors and patterns of a large number of dynamic security threads of the real banknote in advance, and the banknote is represented as the real banknote by taking the similarity range as a reference threshold value as long as the similarity of the colors and the similarity of the patterns of the banknote to be detected fall within the similarity range. The range of the true banknote similarity value is not constant, and the range can be continuously updated by adopting a logistic regression method in the process of detecting the banknotes, so that the range of the true banknote similarity value with continuously improved accuracy is maintained, and the accuracy of banknote detection is improved.
According to the technical scheme, the change of the patterns of the dynamic security threads is detected by shooting the paper money at double angles, the change of the colors of the dynamic security threads is detected by irradiating the paper money with double-color light, the simultaneous detection of the colors and the patterns of the dynamic security threads is realized, and the efficiency and the accuracy of paper money detection are improved.
Example two
Fig. 2 is a schematic structural diagram of a banknote detection apparatus based on a dynamic security thread according to a second embodiment of the present invention, and referring to fig. 2, the apparatus includes: the device comprises a shooting module 11, a counting module 12, a color calculation module 13, a pattern calculation module 14 and a processing module 15, wherein the shooting module 11 is used for collecting four frames of images of paper money under the irradiation of light with two colors respectively when the paper money to be detected passes through, and the shooting angles set by the two cameras are different; the statistical module 12 is configured to respectively intercept images of regions where dynamic security threads are located from the four frames of images, and to count grayscale data of each intercepted image; the color calculation module 13 is configured to calculate, according to the gray data of two frames of images acquired by the same camera under the illumination of different color lights, the similarity of colors respectively exhibited by the dynamic security line under the illumination of two color lights; the pattern calculation module 14 is configured to calculate similarity of patterns respectively presented by the dynamic security line at different angles according to the gray data of two frames of images acquired by two cameras under the irradiation of light with the same color; and the processing module 15 is configured to determine that the banknote is a genuine banknote if the similarity of the colors and the similarity of the patterns are within a preset genuine banknote similarity value range.
On the basis of the technical scheme, two kinds of colour lights include first colour light and second colour light, two cameras include first camera and second camera, four frame images include under the illumination of first colour light the first image that first camera was gathered under the illumination of first colour light the second image that the second camera was gathered under the illumination of second colour light the third image that first camera was gathered with under the illumination of second colour light the fourth image that the second camera was gathered.
On the basis of the above technical solution, the gray scale data includes gray scale data corresponding to the first color light or gray scale data corresponding to the second color light.
On the basis of the above technical solution, the color calculation module 13 is specifically configured to calculate, according to the gray data corresponding to the first color light in the first image and the gray data corresponding to the second color light in the third image, a similarity of colors exhibited by the dynamic security thread under the irradiation of the first color light and the second color light, respectively; and calculating the similarity of the colors of the dynamic safety line respectively under the irradiation of the first color light and the second color light according to the gray data corresponding to the first color light in the second image and the gray data corresponding to the second color light in the fourth image.
On the basis of the above technical solution, the pattern calculation module 14 is specifically configured to calculate, according to the gray data corresponding to the first color light in the first image and the gray data corresponding to the first color light in the second image, similarity of patterns that the dynamic security thread respectively presents at the respective shooting angles of the first camera and the second camera; and calculating the similarity of the patterns of the dynamic safety line respectively presented under the respective shooting angles of the first camera and the second camera according to the gray data corresponding to the second color light in the third image and the gray data corresponding to the second color light in the fourth image.
On the basis of the technical scheme, the first color light is red light, and the second color light is green light.
On the basis of the technical scheme, the shooting angle of the first camera is 90 degrees, and the shooting angle of the second camera is 30 degrees.
On the basis of the technical scheme, the similarity of the colors is represented by the Mahalanobis distance, and the similarity of the patterns is represented by the Euclidean distance.
The currency detecting device based on the dynamic safety line provided by the embodiment of the invention can execute the currency detecting method based on the dynamic safety line provided by any embodiment of the invention, and has corresponding functional modules and beneficial effects of the executing method.
EXAMPLE III
Fig. 3 is a schematic structural diagram of a banknote validator according to a third embodiment of the present invention, as shown in fig. 3, the banknote validator includes a processor 20, a memory 21, an input device 22, an output device 23, a camera 24, and an LED lamp 25; the number of the processors 20 in the currency detector can be one or more, and one processor 20 is taken as an example in fig. 3; the processor 20, memory 21, input device 22, output device 23, camera 24 and LED light 25 in the validator may be connected by a bus or other means, as exemplified by the bus connection in fig. 3.
The memory 21 is a computer-readable storage medium, and can be used for storing software programs, computer-executable programs, and modules, such as program instructions/modules corresponding to the dynamic security thread-based banknote checking method in the embodiment of the present invention. The processor 20 executes various functional applications and data processing of the banknote validator by running software programs, instructions and modules stored in the memory 21, that is, the banknote validation method based on the dynamic security thread is realized.
The memory 21 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store data created according to the use of the terminal, and the like. Further, the memory 21 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device. In some examples, the memory 21 may further include a memory remotely located from the processor 20, and these remote memories may be connected to the bill validator via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The input device 22 may be used to receive entered numeric or character information and to generate key signal inputs relating to user settings and function controls of the validator. The output device 23 may include a display device such as a display screen.
The camera 24 may comprise two cameras, one of which may photograph the banknote at a 90 angle from the vertical and the other of which may photograph the banknote at a 30 angle from the side.
The LED lamp can be used for emitting light with two colors, one light can be red light, the other light can be green light, and the two colors of light can be switched when the camera shoots the paper money so as to shoot images of the paper money under the irradiation of different colors of light.
Example four
The fourth embodiment of the present invention further provides a storage medium containing executable instructions, where the executable instructions, when executed by a processor, are configured to perform the auspicious light operation provided by any embodiment of the currency detecting method based on dynamic security threads provided by the fourth embodiment of the present invention.
From the above description of the embodiments, it is obvious for those skilled in the art that the embodiments of the present invention can be implemented by software and necessary general hardware, and certainly can be implemented by hardware, but the former is a better implementation in many cases. Based on such understanding, the technical solutions of the embodiments of the present invention may be embodied in the form of a software product, which may be stored in a computer-readable storage medium, such as a floppy disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a FLASH Memory (FLASH), a hard disk or an optical disk of a computer, and includes several instructions to make a computer device (which may be a personal computer, a server, or a network device) perform the methods described in the embodiments of the present invention.
It should be noted that, in the embodiment of the above currency detecting apparatus based on a dynamic security thread, each unit and each module included in the embodiment are only divided according to functional logic, but are not limited to the above division, as long as the corresponding function can be realized; in addition, specific names of the functional units are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the embodiment of the invention.
It should be noted that the foregoing is only a preferred embodiment of the present invention and the technical principles applied. Those skilled in the art will appreciate that the embodiments of the present invention are not limited to the specific embodiments described herein, and that various obvious changes, adaptations, and substitutions are possible, without departing from the scope of the embodiments of the present invention. Therefore, although the embodiments of the present invention have been described in more detail through the above embodiments, the embodiments of the present invention are not limited to the above embodiments, and many other equivalent embodiments may be included without departing from the concept of the embodiments of the present invention, and the scope of the embodiments of the present invention is determined by the scope of the appended claims.
Claims (9)
1. A currency detection method based on a dynamic safety line is characterized by comprising the following steps:
when paper money to be detected passes through, acquiring four frames of images of the paper money through two cameras under the irradiation of light of two colors, wherein the two cameras have different shooting angles;
respectively intercepting images of the areas where the dynamic safety lines are located from the four frames of images, and counting gray data of each intercepted image;
calculating the similarity of colors respectively presented by the dynamic safety line under the irradiation of light with two colors according to the gray data of two frames of images acquired by the same camera under the irradiation of light with different colors; the similarity of the colors is represented by the Mahalanobis distance;
calculating the similarity of patterns respectively shown by the dynamic safety line at different angles according to the gray data of two frames of images collected by two cameras under the irradiation of the same color light; the similarity of the patterns is expressed by Euclidean distance;
and if the similarity of the colors and the similarity of the patterns are within a preset true banknote similarity value range, determining that the paper currency is true banknote.
2. The method of claim 1, wherein the two color lights comprise a first color light and a second color light, the two cameras comprise a first camera and a second camera, the four frames of images comprise a first image captured by the first camera under the illumination of the first color light, a second image captured by the second camera under the illumination of the first color light, a third image captured by the first camera under the illumination of the second color light, and a fourth image captured by the second camera under the illumination of the second color light, and the gray scale data comprises gray scale data corresponding to the first color light or gray scale data corresponding to the second color light.
3. The method according to claim 2, wherein the calculating of the similarity of the colors respectively presented by the dynamic security thread under the illumination of the two colors of lights according to the gray data of the two frames of images acquired by the same camera under the illumination of the lights with different colors comprises:
calculating the similarity of colors of the dynamic safety line respectively presented under the irradiation of the first color light and the second color light according to the gray data corresponding to the first color light in the first image and the gray data corresponding to the second color light in the third image; and a process for the preparation of a coating,
and calculating the similarity of colors of the dynamic safety line respectively presented under the irradiation of the first color light and the second color light according to the gray data corresponding to the first color light in the second image and the gray data corresponding to the second color light in the fourth image.
4. The method according to claim 2, wherein the calculating the similarity of the patterns respectively presented by the dynamic security thread at different angles according to the gray data of two frames of images acquired by two cameras under the irradiation of the same color light comprises:
calculating the similarity of patterns presented by the dynamic safety line under the respective shooting angles of the first camera and the second camera according to the gray data corresponding to the first color light in the first image and the gray data corresponding to the first color light in the second image; and a process for the preparation of a coating,
and calculating the similarity of the patterns of the dynamic safety line respectively presented at the respective shooting angles of the first camera and the second camera according to the gray data corresponding to the second color light in the third image and the gray data corresponding to the second color light in the fourth image.
5. The utility model provides a currency examine device based on active safety line which characterized in that includes:
the device comprises a shooting module, a detection module and a display module, wherein the shooting module is used for acquiring four frames of images of paper money under the irradiation of light with two colors respectively when the paper money to be detected passes through, and the shooting angles of the two cameras are different;
the statistical module is used for respectively intercepting images of the areas where the dynamic safety lines are located from the four frames of images and counting the gray data of each intercepted image;
the color calculation module is used for calculating the similarity of colors respectively presented by the dynamic safety line under the irradiation of light with two colors according to the gray data of two frames of images acquired by the same camera under the irradiation of light with different colors; the similarity of the colors is represented by the Mahalanobis distance;
the pattern calculation module is used for calculating the similarity of patterns respectively shown by the dynamic safety line at different angles according to the gray data of two frames of images collected by two cameras under the irradiation of light with the same color; the similarity of the patterns is expressed by Euclidean distance;
and the processing module is used for determining that the paper money is true paper money if the similarity of the colors and the similarity of the patterns are within a preset true paper money similarity value range.
6. The device of claim 5, wherein the two colors of light comprise a first color of light and a second color of light, the two cameras comprise a first camera and a second camera, the four frames of images comprise a first image captured by the first camera under illumination of the first color of light, a second image captured by the second camera under illumination of the first color of light, a third image captured by the first camera under illumination of the second color of light, and a fourth image captured by the second camera under illumination of the second color of light, and the grayscale data comprises grayscale data corresponding to the first color of light or grayscale data corresponding to the second color of light.
7. The apparatus according to claim 6, wherein the color calculation module is specifically configured to calculate, according to gray scale data corresponding to the first color light in the first image and gray scale data corresponding to the second color light in the third image, a similarity of colors exhibited by the dynamic security thread under the irradiation of the first color light and the second color light, respectively; and calculating the similarity of the colors of the dynamic safety line respectively under the irradiation of the first color light and the second color light according to the gray data corresponding to the first color light in the second image and the gray data corresponding to the second color light in the fourth image.
8. The apparatus according to claim 6, wherein the pattern calculating module is specifically configured to calculate, according to the grayscale data corresponding to the first color light in the first image and the grayscale data corresponding to the first color light in the second image, similarities of patterns that the dynamic security thread respectively presents at the respective shooting angles of the first camera and the second camera; and calculating the similarity of the patterns of the dynamic safety line respectively presented under the respective shooting angles of the first camera and the second camera according to the gray data corresponding to the second color light in the third image and the gray data corresponding to the second color light in the fourth image.
9. A banknote validating apparatus, the apparatus comprising:
one or more processors;
storage means for storing one or more programs;
the camera is used for collecting images;
the LED lamp is used for providing light rays for shooting images;
when executed by the one or more processors, cause the one or more processors to implement the animated security thread-based currency validation method of any one of claims 1-4.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810175480.3A CN108510640B (en) | 2018-03-02 | 2018-03-02 | Dynamic security thread-based currency detection method and device, currency detector and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810175480.3A CN108510640B (en) | 2018-03-02 | 2018-03-02 | Dynamic security thread-based currency detection method and device, currency detector and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108510640A CN108510640A (en) | 2018-09-07 |
CN108510640B true CN108510640B (en) | 2021-01-01 |
Family
ID=63377221
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810175480.3A Active CN108510640B (en) | 2018-03-02 | 2018-03-02 | Dynamic security thread-based currency detection method and device, currency detector and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108510640B (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
GB2575333B (en) * | 2018-12-21 | 2020-09-09 | Imagination Tech Ltd | Double-angle gradients |
CN110415424B (en) * | 2019-06-17 | 2022-02-11 | 众安信息技术服务有限公司 | Anti-counterfeiting identification method and device, computer equipment and storage medium |
CN113255658B (en) * | 2020-12-31 | 2023-05-30 | 深圳怡化电脑股份有限公司 | Medium authentication method and device, electronic equipment and storage medium |
Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5295196A (en) * | 1990-02-05 | 1994-03-15 | Cummins-Allison Corp. | Method and apparatus for currency discrimination and counting |
JPH10185690A (en) * | 1996-12-26 | 1998-07-14 | Toshiba Corp | Two-color sensor device |
JP2000194901A (en) * | 1998-12-25 | 2000-07-14 | Kobayashi Kirokushi Co Ltd | Authenticity inspecting device of ticket or the like |
CN102903173A (en) * | 2012-09-29 | 2013-01-30 | 我查查信息技术(上海)有限公司 | Ticket authentication method and device based on image identification, and mobile equipment |
CN204990480U (en) * | 2015-08-16 | 2016-01-20 | 浙江维融电子科技股份有限公司 | A smooth pattern differentiation system that becomes of luster for 2015 editions RMB |
CN205788435U (en) * | 2016-05-13 | 2016-12-07 | 北京新岸线数字图像技术有限公司 | Banknote anti-counterfeiting detecting device |
CN107305713A (en) * | 2016-04-20 | 2017-10-31 | 北京新岸线数字图像技术有限公司 | The method and apparatus that anti-counterfeiting detection is realized by color-shifting images |
CN107393114A (en) * | 2016-05-13 | 2017-11-24 | 北京新岸线数字图像技术有限公司 | Banknote false-proof detection method and device |
CN107393121A (en) * | 2016-05-13 | 2017-11-24 | 北京新岸线数字图像技术有限公司 | A kind of paper money discrimination method |
-
2018
- 2018-03-02 CN CN201810175480.3A patent/CN108510640B/en active Active
Patent Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5295196A (en) * | 1990-02-05 | 1994-03-15 | Cummins-Allison Corp. | Method and apparatus for currency discrimination and counting |
JPH10185690A (en) * | 1996-12-26 | 1998-07-14 | Toshiba Corp | Two-color sensor device |
JP2000194901A (en) * | 1998-12-25 | 2000-07-14 | Kobayashi Kirokushi Co Ltd | Authenticity inspecting device of ticket or the like |
CN102903173A (en) * | 2012-09-29 | 2013-01-30 | 我查查信息技术(上海)有限公司 | Ticket authentication method and device based on image identification, and mobile equipment |
CN204990480U (en) * | 2015-08-16 | 2016-01-20 | 浙江维融电子科技股份有限公司 | A smooth pattern differentiation system that becomes of luster for 2015 editions RMB |
CN107305713A (en) * | 2016-04-20 | 2017-10-31 | 北京新岸线数字图像技术有限公司 | The method and apparatus that anti-counterfeiting detection is realized by color-shifting images |
CN205788435U (en) * | 2016-05-13 | 2016-12-07 | 北京新岸线数字图像技术有限公司 | Banknote anti-counterfeiting detecting device |
CN107393114A (en) * | 2016-05-13 | 2017-11-24 | 北京新岸线数字图像技术有限公司 | Banknote false-proof detection method and device |
CN107393121A (en) * | 2016-05-13 | 2017-11-24 | 北京新岸线数字图像技术有限公司 | A kind of paper money discrimination method |
Also Published As
Publication number | Publication date |
---|---|
CN108510640A (en) | 2018-09-07 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9292990B2 (en) | Systems and methods for spectral authentication of a feature of a document | |
CN104298989B (en) | Counterfeiting method and system based on infrared image features of zebra crossing | |
CN107610322B (en) | Banknote version identification method and device, electronic equipment and storage medium | |
US20150310268A1 (en) | Media item validation | |
CN108510640B (en) | Dynamic security thread-based currency detection method and device, currency detector and storage medium | |
CN104616392B (en) | A kind of paper money discrimination method based on local binary patterns | |
Baek et al. | Detection of counterfeit banknotes using multispectral images | |
CN103761795A (en) | Method for identifying counterfeit money of paper money anti-counterfeit feature database | |
CN106952393B (en) | Paper money identification method and device, electronic equipment and storage medium | |
CN107038794B (en) | Method, device and equipment for identifying authenticity of paper money and storage medium | |
CA3130324C (en) | Evaluating currency in areas using image processing | |
CN107578526B (en) | Banknote identification method and device, terminal equipment and readable storage medium | |
KR20130035849A (en) | Single image-based fake face detection | |
KR102038576B1 (en) | Method of detecting fraud of an iris recognition system | |
CN106056752A (en) | Banknote authentication method based on random forest | |
JP5315581B1 (en) | Bill discriminating method, bill discriminating software, and bill discriminating apparatus | |
CN106600812B (en) | Paper money identification method and device | |
Shinde et al. | Identification of fake currency using soft computing | |
CN107527423B (en) | Paper money anti-counterfeiting identification method and paper money identification device | |
CN107784729A (en) | A kind of paper money discrimination method based on honorable optically variable anti-counterfeiting feature | |
Abbas | An image processor bill acceptor for Iraqi currency | |
CN111462392A (en) | Method and device for identifying paper money based on multispectral image similarity algorithm | |
CN108428279B (en) | Paper money identification method and device | |
KR101812206B1 (en) | Counterfeit discrimnation and tracking system and method performing thereof | |
CN113807159B (en) | Face recognition processing method, device, equipment and storage medium thereof |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |