CN106570979A - Image identification method and device - Google Patents
Image identification method and device Download PDFInfo
- Publication number
- CN106570979A CN106570979A CN201610941637.XA CN201610941637A CN106570979A CN 106570979 A CN106570979 A CN 106570979A CN 201610941637 A CN201610941637 A CN 201610941637A CN 106570979 A CN106570979 A CN 106570979A
- Authority
- CN
- China
- Prior art keywords
- pulse signal
- amplitude
- negative
- detected
- thing
- 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.)
- Pending
Links
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/16—Testing the dimensions
- G07D7/164—Thickness
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Image Processing (AREA)
Abstract
The invention discloses an image identification method and device. The method comprises steps that a to-be-detected object is scanned through a sensor in a preset direction; a first direction pulse signal of the to-be-detected object is acquired in the preset direction, and whether the first direction pulse signal changes is determined within the first scanning time; if yes, a second direction pulse signal is acquired; whether an amplitude direction of the second direction pulse signal is identical to an amplitude direction of the first direction pulse signal is determined; if yes, a scanning region of the to-be-detected object is determined to have an applying foreign matter in the first scanning time. Through the method, a technical problem of inaccurate bank note thickness characteristics acquired through calculation on the basis of an absolute thickness value in the prior art is solved.
Description
Technical field
The present invention relates to image identification technical field, in particular to a kind of image-recognizing method and device.
Background technology
In banknote thickness detection field, current various detection means are either mechanical or contactless, greatly
All it is the absolute thickness value for testing bank note, i.e. when foreign body is posted on bank note, detection means detection is bank note and foreign body superposition
Thickness, the data for exporting by this way are fairly simple in follow-up recognition methodss, i.e., thickness data numerical value is more than preset value
Where to there is a foreign body, value data is less than being defect where preset value.
But, above-mentioned numerical value exports method determination methods because the thickness of the new and old simple bank note for causing of bank note is poor
Different, needs are completed by calculating, and the characteristics of image of a bank note is then obtained by analytical data, and process is loaded down with trivial details, it is impossible to directly perceived
Output bank note characteristics of image, the characteristics of image can include:Defect and/or post foreign body that note surface is present.So as to
The absolute value for testing bank note is caused to have deviation so that the identification to foreign body is inaccurate.
Ask because the feature for being calculated banknote thickness by absolute thickness value in correlation technique is inaccurate for above-mentioned
Topic, not yet proposes at present effective solution.
The content of the invention
A kind of image-recognizing method and device are embodiments provided, at least to solve due to passing through in correlation technique
Absolute thickness value is calculated the inaccurate technical problem of feature of banknote thickness.
A kind of one side according to embodiments of the present invention, there is provided image-recognizing method, including:By sensor foundation
Preset direction scans thing to be detected;The first direction pulse signal of thing to be detected is obtained according to preset direction, and in the first scanning
Judge whether first direction pulse signal changes in time;Judging the situation that first direction pulse signal changes
Under, obtain second direction pulse signal;Judge the amplitude direction of second direction pulse signal whether with first direction pulse signal
Amplitude direction it is identical;In the amplitude direction of second direction pulse signal and the amplitude direction identical of first direction pulse signal
In the case of, obtain the foreign body of the region presence laminating that thing to be detected is scanned within the first sweep time;In second direction pulse letter
Number amplitude direction it is different from the amplitude direction of first direction pulse signal in the case of, obtain thing to be detected first scan when
There is defect in the region of interior scanning.
Optionally, in the case where preset direction includes forward scanning or reverse scan, obtain to be checked according to preset direction
Surveying the first direction pulse signal of thing includes:In the case where preset direction is forward to scan, scan thing to be detected plays initial line
Edge, obtains first direction pulse signal for direct impulse signal;In the case where preset direction is reverse scan, scan to be detected
The terminating edge of thing, obtains first direction pulse signal for negative-going pulse signal.
Further, optionally, judge within the first sweep time first direction pulse signal whether change including:
In the case where preset direction is forward to scan, and within the first sweep time, the terminating edge of thing to be detected does not leave biography
In the case of sensor, whether the amplitude for judging direct impulse signal changes;In the case where preset direction is reverse scan, and
Within the first sweep time, in the case that the start edge of thing to be detected does not leave sensor, the width of negative-going pulse signal is judged
Whether degree changes.
Optionally, in the amplitude direction of second direction pulse signal and the amplitude direction identical of first direction pulse signal
In the case of, obtaining the foreign body of the region presence laminating that thing to be detected is scanned within the first sweep time includes:When second scans
It is interior, in the case where preset direction is forward to scan, by sensor scan thing to be detected, obtain the width of direct impulse signal
Degree change, second direction pulse signal be the first direct impulse signal, wherein, the amplitude direction of the first direct impulse signal with just
Amplitude direction to pulse signal is identical, obtains thing to be detected and there is laminating foreign body, becomes the first direct impulse signal is detected
For the first negative-going pulse signal when, the image of the foreign body that obtains fitting according to the first direct impulse signal and the first negative-going pulse signal
Size;Within the second sweep time, in the case where preset direction is reverse scan, by sensor scan thing to be detected, obtain
Amplitude to negative-going pulse signal changes, and second direction pulse signal is the second negative-going pulse signal, wherein, the second negative-going pulse
The amplitude direction of signal is identical with the amplitude direction of negative-going pulse signal, obtains thing to be detected and there is laminating foreign body, is detecting
When second negative-going pulse signal is changed into the second direct impulse signal, according to the second negative-going pulse signal and the second direct impulse signal
Obtain the image size of laminating foreign body.
Optionally, it is different from the amplitude direction of first direction pulse signal in the amplitude direction of second direction pulse signal
In the case of, obtain the region that thing to be detected scans within the first sweep time and there is defect including:Within the second sweep time,
In the case that preset direction is forward to scan, by sensor scan thing to be detected, the amplitude for obtaining direct impulse signal changes,
Second direction pulse signal is the 3rd negative-going pulse signal, wherein, the amplitude direction of the 3rd negative-going pulse signal and direct impulse
The amplitude of signal is in opposite direction, obtains thing to be detected and there is defect, and the 3rd negative-going pulse signal is detected, to be changed into the 3rd positive
During pulse signal, according to the 3rd negative-going pulse signal and the 3rd negative-going pulse signal the image size of defect is obtained;Sweep second
Retouch in the time, in the case where preset direction is reverse scan, by sensor scan thing to be detected, obtain negative-going pulse signal
Amplitude change, second direction pulse signal be the 4th direct impulse signal, wherein, the amplitude direction of the 4th direct impulse signal
It is in opposite direction with the amplitude of negative-going pulse signal, obtain thing to be detected and there is defect, become the 4th direct impulse signal is detected
For the 4th negative-going pulse signal when, the image for obtaining defect according to the 4th direct impulse signal and the 4th negative-going pulse signal is big
It is little.
Optionally, the image-recognizing method that the application is provided also includes:Judging that first direction pulse signal changes
In the case of change, judge whether first direction pulse signal changes within the 3rd sweep time;Pulse in a first direction is believed
When number being changed into three pulse signals, the terminating edge of thing to be detected is by sensor, the end of scan;Wherein, first direction pulse
The amplitude of signal is identical with the amplitude of the 3rd pulse signal, and the amplitude direction of first direction pulse signal and the 3rd pulse signal
Amplitude it is in opposite direction.
Another aspect according to embodiments of the present invention, additionally provides a kind of pattern recognition device, including:Scan module, uses
In by sensor foundation preset direction scanning thing to be detected;First judge module, for obtaining to be detected according to preset direction
The first direction pulse signal of thing, and judge whether first direction pulse signal changes within the first sweep time;Obtain
Module, in the case where judging that first direction pulse signal changes, obtaining second direction pulse signal;Second judges
Whether module, the amplitude direction for judging second direction pulse signal is identical with the amplitude direction of first direction pulse signal;
First determination module, for identical with the amplitude direction of first direction pulse signal in the amplitude direction of second direction pulse signal
In the case of, obtain the foreign body of the region presence laminating that thing to be detected is scanned within the first sweep time;Second determination module, uses
In in the case where the amplitude direction of second direction pulse signal is different from the amplitude direction of first direction pulse signal, treated
There is defect in the region that detectable substance is scanned within the first sweep time.
Optionally, the first judge module includes:First scanning element, for including forward scanning or reverse in preset direction
In the case of scanning, in the case where preset direction is forward to scan, the start edge of thing to be detected is scanned, obtain first direction
Pulse signal is direct impulse signal;Second scanning element, in the case of being reverse scan in preset direction, scans to be checked
The terminating edge of thing is surveyed, first direction pulse signal is obtained for negative-going pulse signal.
Further, optionally, the first judge module includes:First judging unit, in preset direction forward to sweep
In the case of retouching, and within the first sweep time, in the case that the terminating edge of thing to be detected does not leave sensor, judge just
Whether change to the amplitude of pulse signal;Second judging unit, in the case of being reverse scan in preset direction, Yi Ji
In first sweep time, in the case that the start edge of thing to be detected does not leave sensor, the amplitude of negative-going pulse signal is judged
Whether change.
Optionally, the first determination module includes:First identifying unit, within the second sweep time, in preset direction
In the case of forward scanning, by sensor scan thing to be detected, the amplitude for obtaining direct impulse signal changes, second direction
Pulse signal is the first direct impulse signal, wherein, the amplitude direction of the first direct impulse signal and the width of direct impulse signal
Degree direction is identical, obtains thing to be detected and there is laminating foreign body, and the first direct impulse signal is detected the first negative-going pulse is changed into
During signal, according to the first direct impulse signal and the first negative-going pulse signal the image size of laminating foreign body is obtained;Second judges
Unit, it is to be detected by sensor scan in the case where preset direction is reverse scan within the second sweep time
Thing, the amplitude for obtaining negative-going pulse signal changes, and second direction pulse signal is the second negative-going pulse signal, wherein, second is negative
It is identical to the amplitude direction of pulse signal and the amplitude direction of negative-going pulse signal, obtain thing to be detected and there is laminating foreign body,
When detecting the second negative-going pulse signal and being changed into the second direct impulse signal, according to the second negative-going pulse signal and the second positive arteries and veins
Rush the image size that signal obtains laminating foreign body.
Optionally, the second determination module includes:3rd identifying unit, within the second sweep time, in preset direction
In the case of forward scanning, by sensor scan thing to be detected, the amplitude for obtaining direct impulse signal changes, second direction
Pulse signal is the 3rd negative-going pulse signal, wherein, the amplitude direction of the 3rd negative-going pulse signal and the width of direct impulse signal
Degree is in opposite direction, obtains thing to be detected and there is defect, and the 3rd negative-going pulse signal is detected the 3rd direct impulse signal is changed into
When, obtain the image size of defect according to the 3rd negative-going pulse signal and the 3rd negative-going pulse signal;4th identifying unit, is used for
Within the second sweep time, in the case where preset direction is reverse scan, by sensor scan thing to be detected, negative sense is obtained
The amplitude of pulse signal changes, and second direction pulse signal is the 4th direct impulse signal, wherein, the 4th direct impulse signal
Amplitude direction is in opposite direction with the amplitude of negative-going pulse signal, obtains thing to be detected and there is defect, is detecting the 4th positive arteries and veins
When rushing signal and being changed into the 4th negative-going pulse signal, according to the 4th direct impulse signal and the 4th negative-going pulse signal defect is obtained
Image size.
Optionally, the pattern recognition device that the application is provided also includes:3rd judge module, for judging first direction
In the case that pulse signal does not change, judge whether first direction pulse signal changes within the 3rd sweep time;
Detection module, for when in a first direction pulse signal is changed into three pulse signals, the terminating edge of thing to be detected to be by sensing
Device, the end of scan;Wherein, the amplitude of first direction pulse signal is identical with the amplitude of the 3rd pulse signal, and first direction arteries and veins
The amplitude direction for rushing signal is in opposite direction with the amplitude of the 3rd pulse signal.
In embodiments of the present invention, thing to be detected is scanned according to preset direction by sensor;Obtain according to preset direction
The first direction pulse signal of thing to be detected, and judge whether first direction pulse signal changes within the first sweep time
Become;In the case where judging that first direction pulse signal changes, second direction pulse signal is obtained;Judge second direction arteries and veins
Whether the amplitude direction for rushing signal is identical with the amplitude direction of first direction pulse signal;In the amplitude of second direction pulse signal
In the case of the amplitude direction identical of direction and first direction pulse signal, obtain thing to be detected and scan within the first sweep time
Region exist laminating foreign body;In the amplitude direction of second direction pulse signal and the amplitude direction of first direction pulse signal
In the case of difference, obtain the region that thing to be detected scans within the first sweep time and there is defect, reached by positive and negative arteries and veins
The purpose that signal obtains the characteristics of image of bank note is rushed, it is achieved thereby that lifting the technology effect of the Image Feature Detection efficiency of bank note
Really, and then solve the inaccurate technology of feature due to being calculated banknote thickness by absolute thickness value in correlation technique and ask
Topic.
Description of the drawings
Accompanying drawing described herein is used for providing a further understanding of the present invention, constitutes the part of the application, this
Bright schematic description and description does not constitute inappropriate limitation of the present invention for explaining the present invention.In the accompanying drawings:
Fig. 1 is the schematic flow sheet of image-recognizing method according to embodiments of the present invention;
Fig. 2 is the bank note scanning schematic diagram of offer according to embodiments of the present invention;
Fig. 3 be it is according to embodiments of the present invention forward walk thickness transducer a in paper money, each pixel test data and right at g
Answer the schematic diagram of identification data;
Fig. 4 be it is according to embodiments of the present invention forward walk thickness transducer b in paper money, d, at f each pixel test data and
The schematic diagram of correspondence identification data;
Fig. 5 is according to embodiments of the present invention forward to walk in paper money each pixel test data and correspondence at thickness transducer c
The schematic diagram of identification data;
Fig. 6 is according to embodiments of the present invention forward to walk in paper money each pixel test data and correspondence at thickness transducer e
The schematic diagram of identification data;
Fig. 7 is according to embodiments of the present invention reversely to walk paper money, thickness transducer a, each pixel test data and correspondence at g
The schematic diagram of identification data;
Fig. 8 be it is according to embodiments of the present invention reversely walk thickness transducer b in paper money, d, at f each pixel test data and
The schematic diagram of correspondence identification data;
Fig. 9 is according to embodiments of the present invention reversely to walk in paper money each pixel test data and correspondence at thickness transducer c
The schematic diagram of identification data;
Figure 10 is according to embodiments of the present invention reversely to walk in paper money each pixel test data and correspondence at thickness transducer e
The schematic diagram of identification data;
Figure 11 is thickness transducer a according to embodiments of the present invention, the schematic diagram of pixel test data between b;
Figure 12 is thickness transducer b according to embodiments of the present invention, the schematic diagram of pixel test data between c;
Figure 13 is thickness transducer c according to embodiments of the present invention, the schematic diagram of pixel test data between d;
Figure 14 is thickness transducer d according to embodiments of the present invention, the schematic diagram of pixel test data between e;
Figure 15 is thickness transducer e according to embodiments of the present invention, the schematic diagram of pixel test data between f;
Figure 16 is thickness transducer f according to embodiments of the present invention, the schematic diagram of pixel test data between g;
Figure 17 is thickness transducer f according to embodiments of the present invention, the schematic diagram of pixel test data between g;
Figure 18 is the structural representation of pattern recognition device according to embodiments of the present invention.
Specific embodiment
In order that those skilled in the art more fully understand the present invention program, below in conjunction with the embodiment of the present invention
Accompanying drawing, is clearly and completely described to the technical scheme in the embodiment of the present invention, it is clear that described embodiment is only
The embodiment of a part of the invention, rather than the embodiment of whole.Based on the embodiment in the present invention, ordinary skill people
The every other embodiment that member is obtained under the premise of creative work is not made, should all belong to the model of present invention protection
Enclose.
It should be noted that description and claims of this specification and the term " first " in above-mentioned accompanying drawing, "
Two " it is etc. the object for distinguishing similar, without for describing specific order or precedence.It should be appreciated that so using
Data can exchange in the appropriate case, so as to embodiments of the invention described herein can with except illustrating here or
Order beyond those of description is implemented.Additionally, term " comprising " and " having " and their any deformation, it is intended that cover
Lid is non-exclusive to be included, and for example, process, method, system, product or the equipment for containing series of steps or unit is not necessarily limited to
Those steps clearly listed or unit, but may include clearly not list or for these processes, method, product
Or intrinsic other steps of equipment or unit.
Embodiment one
According to embodiments of the present invention, there is provided a kind of embodiment of the method for image-recognizing method, it should be noted that attached
The step of flow process of figure is illustrated can perform in the such as computer system of one group of computer executable instructions, though also,
Logical order is so shown in flow charts, but in some cases, can be performed with the order being different from herein shown
Or the step of description.
Fig. 1 is the schematic flow sheet of image-recognizing method according to embodiments of the present invention, as shown in figure 1, the method includes
Following steps:
Step S100, thing to be detected is scanned by sensor according to preset direction;
Step S102, according to preset direction the first direction pulse signal of thing to be detected is obtained, and in the first sweep time
It is interior to judge whether first direction pulse signal changes;
Step S104, in the case where judging that first direction pulse signal changes, obtains second direction pulse signal;
Step S106, judges the amplitude direction of the second direction pulse signal whether amplitude side with first direction pulse signal
To identical;
Step S108 is identical with the amplitude direction of first direction pulse signal in the amplitude direction of second direction pulse signal
In the case of, obtain the foreign body of the region presence laminating that thing to be detected is scanned within the first sweep time;
Step S110 is different from the amplitude direction of first direction pulse signal in the amplitude direction of second direction pulse signal
In the case of, obtain the region that thing to be detected scans within the first sweep time and there is defect.
With reference to step S102 to step S110, the image-recognizing method that the embodiment of the present application is provided goes for bank note
Image recognition, wherein, the sensor that the embodiment of the present application is provided can include:Thickness transducer;Specifically, implement in the application
By to a piece of paper coin carrying out thickness scanning respectively on different scanning directions in example, by start edge and terminating edge
Positive pulse signal between inverted burst signal and positive back pulse obtains the characteristics of image of bank note, and here the embodiment of the present application is provided
Characteristics of image includes:Foreign body is fitted with defect and/or bank note.
For example, there is the part of defect part and laminating foreign body on a piece of paper coin;
1. when preset direction is forward to scan, i.e. bank note is moved to into the right by the left side of thickness transducer and is swept
Retouch, and set detection bank note start edge signal as direct impulse signal, and set detect bank note terminating edge signal as
Negative-going pulse signal, and negative-going pulse signal is exported when scanning is to defect part, export just in the defect part end of scan
To pulse signal;Direct impulse signal is exported when scanning is to laminating foreign body part, it is defeated at the end of laminating foreign body partial scan
Go out negative-going pulse signal;Negative-going pulse signal is exported by carrying out the forward end of scan to a piece of paper coin, a piece of paper coin is obtained
Thickness characteristics of image, can obtain the bank note with the presence or absence of being fitted with foreign body on defect and/or bank note;
2. in the same manner, when preset direction is reverse scan, i.e. bank note is entered by the left side is moved on the right of thickness transducer
Row scanning, and the signal of detection bank note start edge is set as negative-going pulse signal, and set the letter of detection bank note terminating edge
Number be direct impulse signal, and scanning to defect part when export direct impulse signal, it is defeated in the defect part end of scan
Go out negative-going pulse signal;Negative-going pulse signal is exported when scanning is to laminating foreign body part, is terminated in laminating foreign body partial scan
When export direct impulse signal;Terminate to export direct impulse signal by carrying out a piece of paper coin reverse scan, obtain a piece of paper
The thickness characteristics of image of coin, can obtain the bank note with the presence or absence of being fitted with foreign body on defect and/or bank note.
To sum up, the test data for being obtained by the sensor can correspondingly generate identification data, in the embodiment of the present application
The characteristics of image of the bank note for obtaining just can be generated according to identification data and obtained, i.e. assume bank note parallel to thickness transducer
When border has just enter into thickness transducer, one amplitude of output is M1 direct impulses, and bank note is tested during imageing sensor
Data keep initial intermediate value, when bank note walks out imageing sensor parallel to the border of imageing sensor, export an amplitude
For the negative-going pulse of M1.During image recognition, the gradient of identification data lifting identification data at direct impulse, identification data value is
A+M1, the identification data is always maintained at, and reduces the gradient of identification data again at negative-going pulse, and identification data value is reduced to
Initial value A;
In the same manner, when defect is detected, parallel to thickness transducer bank note edge enter thickness transducer when, output one
Amplitude is the direct impulse of M1, and identification data correspondence increases M1 gradients, thickness is entered parallel to thickness transducer edge at defect
During sensor, output amplitude is the negative-going pulse of M1, and identification data correspondence reduces M1 gradients, and the identification data is always maintained at, directly
Thickness transducer is walked out parallel to thickness transducer edge at defect, now thickness transducer exports forward direction of the amplitude for M1
Pulse, identification data correspondence increases M1 gradients, and hereafter identification data is always maintained at, until bank note is parallel to thickness transducer edge
Till walking out thickness transducer, now test data exports negative-going pulse of the amplitude for M1, and it is terraced that identification data correspondence reduces M1
Degree.
When laminating foreign body is detected, first amplitude characterizes bank note and enters thickness transducer for the direct impulse of M1, right
It is A+M1 to answer identification data to increase M1 gradients, when adhesive tape enters thickness transducer parallel to the edge of thickness transducer, test
The amplitude of data output one is the direct impulse of M2, and it is A+M1+M2 that identification data correspondence increases M2 gradients, and the identification data is protected always
Hold adhesive tape and walk out thickness transducer parallel to thickness transducer edge, now test data exports negative sense arteries and veins of the amplitude for M2
Punching, it is A+M1 that identification data correspondence reduces M2 gradients.The identification data is always maintained at bank note parallel to thickness transducer edge
Thickness transducer is walked out, test data output amplitude is the direct impulse of M1, and now identification data correspondence reduces M1 gradients, is just
Initial value A.So far all pixels point identification data can be combined into piece image.
Explanation is needed exist for, can be passed into thickness for bank note the first sweep time mentioned in the embodiment of the present application
The moment that the pulse signal in a flash of sensor changes.
In the image-recognizing method that the embodiment of the present application is provided, thing to be detected is scanned according to preset direction by sensor;
The first direction pulse signal of thing to be detected is obtained according to preset direction, and first direction pulse is judged within the first sweep time
Whether signal changes;In the case where judging that first direction pulse signal changes, second direction pulse signal is obtained;
Judge whether the amplitude direction of second direction pulse signal is identical with the amplitude direction of first direction pulse signal;In second direction
In the case of the amplitude direction of pulse signal and the amplitude direction identical of first direction pulse signal, thing to be detected is obtained first
In sweep time there is the foreign body of laminating in the region of scanning;In the amplitude direction of second direction pulse signal and first direction pulse
In the case of the amplitude direction difference of signal, obtain the region that thing to be detected scans within the first sweep time and there is defect, reach
To the purpose of the characteristics of image that bank note is obtained by positive negative pulse stuffing signal, it is achieved thereby that lifting the Image Feature Detection of bank note
The technique effect of efficiency, and then solve feature due to being calculated banknote thickness by absolute thickness value in correlation technique not
Accurate technical problem.
Optionally, in the case where preset direction includes forward scanning or reverse scan, according to default side in step S102
Include to the first direction pulse signal for obtaining thing to be detected:
Step1, in the case where preset direction is forward to scan, scans the start edge of thing to be detected, obtains first party
It is direct impulse signal to pulse signal;
Step2, in the case where preset direction is reverse scan, scans the terminating edge of thing to be detected, obtains first party
It is negative-going pulse signal to pulse signal.
Further, optionally, judge whether first direction pulse signal is sent out within the first sweep time in step S102
Raw change includes:
Step1, in the case where preset direction is forward to scan, and within the first sweep time, the end of thing to be detected
In the case that only edge does not leave sensor, whether the amplitude for judging direct impulse signal changes;
Step2, in the case where preset direction is reverse scan, and within the first sweep time, thing to be detected rises
In the case that initial line edge does not leave sensor, whether the amplitude for judging negative-going pulse signal changes.
Optionally, in the amplitude direction of second direction pulse signal and the amplitude of first direction pulse signal in step S108
In the case of the identical of direction, obtaining the foreign body of the region presence laminating that thing to be detected is scanned within the first sweep time includes:
Step1, within the second sweep time, in the case where preset direction is forward to scan, is treated by sensor scan
Detectable substance, the amplitude for obtaining direct impulse signal changes, and second direction pulse signal is the first direct impulse signal, wherein, the
The amplitude direction of one direct impulse signal is identical with the amplitude direction of direct impulse signal, obtains thing presence laminating to be detected different
Thing, when detecting the first direct impulse signal and being changed into the first negative-going pulse signal, according to the first direct impulse signal and first
Negative-going pulse signal obtains the image size of laminating foreign body;
Step2, within the second sweep time, in the case where preset direction is reverse scan, is treated by sensor scan
Detectable substance, the amplitude for obtaining negative-going pulse signal changes, and second direction pulse signal is the second negative-going pulse signal, wherein, the
The amplitude direction of two negative-going pulse signals is identical with the amplitude direction of negative-going pulse signal, obtains thing presence laminating to be detected different
Thing, when detecting the second negative-going pulse signal and being changed into the second direct impulse signal, according to the second negative-going pulse signal and second
Direct impulse signal obtains the image size of laminating foreign body.
Optionally, in the amplitude direction of second direction pulse signal and the amplitude of first direction pulse signal in step S110
In the case of the difference of direction, obtain the region that thing to be detected scans within the first sweep time and there is defect including:
Step1, within the second sweep time, in the case where preset direction is forward to scan, is treated by sensor scan
Detectable substance, the amplitude for obtaining direct impulse signal changes, and second direction pulse signal is the 3rd negative-going pulse signal, wherein, the
The amplitude direction of three negative-going pulse signals is in opposite direction with the amplitude of direct impulse signal, obtains thing to be detected and there is defect,
When detecting the 3rd negative-going pulse signal and being changed into the 3rd direct impulse signal, according to the 3rd negative-going pulse signal and the 3rd negative sense arteries and veins
Rush the image size that signal obtains defect;
Step2, within the second sweep time, in the case where preset direction is reverse scan, is treated by sensor scan
Detectable substance, the amplitude for obtaining negative-going pulse signal changes, and second direction pulse signal is the 4th direct impulse signal, wherein, the
The amplitude direction of four direct impulse signals is in opposite direction with the amplitude of negative-going pulse signal, obtains thing to be detected and there is defect,
When detecting the 4th direct impulse signal and being changed into the 4th negative-going pulse signal, according to the 4th direct impulse signal and the 4th negative sense arteries and veins
Rush the image size that signal obtains defect.
It is that thickness transducer detects bank note after the first sweep time in the embodiment of the present application the second sweep time
The detection time that changes of thickness, wherein, the thickness change including:In Step1 and Step2 in step S108
There is laminating foreign body in bank note;And, there is defect in the bank note in Step1 and Step2 in step S110.
Optionally, the image-recognizing method that the embodiment of the present application is provided also includes:
Step S112, in the case where judging that first direction pulse signal does not change, sentences within the 3rd sweep time
Whether disconnected first direction pulse signal changes;
Step S114, when in a first direction pulse signal is changed into three pulse signals, the terminating edge of thing to be detected passes through
Sensor, the end of scan;Wherein, the amplitude of first direction pulse signal is identical with the amplitude of the 3rd pulse signal, and first party
Amplitude direction to pulse signal is in opposite direction with the amplitude of the 3rd pulse signal.
Explanation is needed exist for, thickness " can be walked out " for bank note the 3rd sweep time mentioned in the embodiment of the present application
The moment that the pulse signal in a flash of sensor changes.
To sum up, the image-recognizing method that the embodiment of the present application is provided is implemented as follows:
The image-recognizing method that the embodiment of the present application is provided include direct impulse and negative-going pulse by output data this
A pair of pulses are determining thickness change gradient direction.It is parallel with bank note because thickness imageing sensor is only detected at abrupt changes in thickness
As a example by the edge of thickness transducer length direction, fixed thickness imageing sensor direction, when forward walking paper money, bank note edge is entered
During thickness transducer, the pixel output data under bank note is direct impulse data, and bank note other edge walks out thickness transducer
When, the pixel output data under bank note is negative-going pulse data, and thickness gradient increases between this direct impulse and negative-going pulse
Plus;
When paper money is reversely walked, when bank note edge enters thickness transducer, the pixel output data under bank note is negative sense arteries and veins
Data are rushed, when bank note other edge walks out thickness transducer, the pixel output data under bank note is direct impulse data, this
Thickness gradient increases between negative-going pulse and direct impulse.
When foreign body is posted on bank note, when forward walking paper money, the pixel of scanning to foreign body is sensed in bank note parallel to thickness
A pair of direct impulse data and negative sense arteries and veins are had between direct impulse data that the edge in device direction causes and negative-going pulse data
Rush data, this direct impulse and negative-going pulse for foreign body feature pulse pair, thickness ladder increases between pulse pair.
When foreign body is posted on bank note, when reversely walking paper money, the pixel of scanning to foreign body is sensed in bank note parallel to thickness
A pair of negative-going pulse data and positive arteries and veins are had between negative-going pulse data that the edge in device direction causes and direct impulse data
Rush data, this negative-going pulse and direct impulse for foreign body feature pulse pair, thickness ladder increases between pulse pair.
When there is defect on bank note, when forward walking paper money, the pixel output negative-going pulse of defect is just detected, defect is walked out
Direct impulse is exported during pixel, this negative-going pulse and direct impulse for defect feature pulse pair, thickness between pulse pair
Gradient reduces.
When there is defect on bank note, when inversely walking paper money, the pixel output direct impulse of defect is just detected, defect is walked out
Negative-going pulse is exported during pixel, this direct impulse and negative-going pulse for defect feature pulse pair, thickness between pulse pair
Gradient reduces.
The image-recognizing method that the embodiment of the present application is provided also includes changing by the amplitude of direct impulse and negative-going pulse
Size is big to determine the size of thickness change gradient, i.e. pulse amplitude variations, and thickness gradient changes greatly.
The image-recognizing method that the embodiment of the present application is provided also include according to the lasting high data output of some pixels and
Low data output is determined parallel to the bank note or foreign body border for walking paper money direction.
The recognizable border for scanning object of image-recognizing method provided by the embodiment of the present application, and by image sensing
The relative thickness data convert of device output is absolute thickness data, facilitates observation station to scan the thickness chart picture of object.
Specific example is as follows, and in the embodiment of the present application transverse axis is the time in Fig. 2 to Figure 16, and the longitudinal axis is pixel value:
Example 1:
Fig. 2 is the bank note scanning schematic diagram of offer according to embodiments of the present invention, and scanning is illustrated as shown in Fig. 21 is thickness
Sensor, exports the test data after analog digital conversion, and 2 is bank note, and 3 is the defect on bank note, and 4 is the adhesive tape attached on bank note,
Bank note forward walks paper money, and by position X position Y is moved horizontally to, for purposes of illustration only, by the pixel on thickness transducer according to scanning
Adhesive tape and defect are whether there is on bank note, is divided into a, b, c, d, e, f, g, 7 part.
Fig. 3 be it is according to embodiments of the present invention forward walk thickness transducer a in paper money, each pixel test data and right at g
The schematic diagram of identification data is answered, as shown in figure 3, each pixel is not detected by bank note at a, g, its test data values is 128 left
The right side, at this each pixel scanning paper currency during this corresponding identification data be relatively low initial value A.
Fig. 4 be it is according to embodiments of the present invention forward walk thickness transducer b in paper money, d, at f each pixel test data and
The schematic diagram of correspondence identification data, as shown in figure 4, thickness transducer b, d, each pixel detects the data that bank note passes through at f,
When i.e. bank note has just enter into thickness transducer parallel to the border of thickness transducer, one amplitude of output be M1 direct impulses, bank note Jing
During crossing imageing sensor, test data keeps initial intermediate value, when bank note is walked parallel to the border of imageing sensor
When going out imageing sensor, negative-going pulse of the amplitude for M1 is exported.During image recognition, identification data lifting at direct impulse is known
The gradient of other data, identification data value is A+M1, and the identification data is always maintained at, and reduces again recognizing number at negative-going pulse
According to gradient, identification data value is reduced to initial value A.
Fig. 5 is according to embodiments of the present invention forward to walk in paper money each pixel test data and correspondence at thickness transducer c
The schematic diagram of identification data, as shown in figure 5, at scanning paper currency defect each pixel test data, parallel to thickness transducer
Bank note edge enter thickness transducer when, export an amplitude for M1 direct impulse, identification data correspondence increase M1 gradients, lack
When entering thickness transducer parallel to thickness transducer edge at damage, output amplitude is the negative-going pulse of M1, and identification data is corresponding
Reduce M1 gradients, the identification data is always maintained at, and thickness transducer is walked out parallel to thickness transducer edge at defect, this
When thickness transducer export direct impulse of the amplitude for M1, identification data correspondence increases M1 gradients, and hereafter identification data is always
Keep, till bank note walks out thickness transducer parallel to thickness transducer edge, now one amplitude of test data output is
The negative-going pulse of M1, identification data correspondence reduces M1 gradients.
Fig. 6 is according to embodiments of the present invention forward to walk in paper money each pixel test data and correspondence at thickness transducer e
The schematic diagram of identification data, as shown in fig. 6, post the test data of each pixel of tape portion on scanning paper currency, in the same manner first
Individual amplitude characterizes bank note and enters thickness transducer for the direct impulse of M1, and it is A+M1 that correspondence identification data increases M1 gradients, works as glue
When band enters thickness transducer parallel to the edge of thickness transducer, test data exports direct impulse of the amplitude for M2, knows
It is A+M1+M2 that other data correspondence increases M2 gradients, and the identification data is always maintained to adhesive tape being walked parallel to thickness transducer edge
Go out thickness transducer, now test data exports negative-going pulse of the amplitude for M2, and it is A+ that identification data correspondence reduces M2 gradients
M1.The identification data is always maintained at walking out thickness transducer, test data output width parallel to thickness transducer edge to bank note
The direct impulse for M1 is spent, now identification data correspondence reduces M1 gradients, is initial value A.So far all pixels point can be recognized
Data are combined into piece image, and as shown in figure 17, white represents banknote thickness shown in 2, and left oblique frame shown in 3 represents defect thickness, and 4
Shown right oblique frame represents the thickness for posting adhesive tape.
Example 2:
Scanning is illustrated as shown in Fig. 2 same, and 1 is thickness transducer, exports the test data after analog digital conversion, and 2 is paper
Coin, 3 is the defect on bank note, and 4 is the adhesive tape attached on bank note, and difference is that bank note reversely walks paper money, is moved by position Y levels
Move to position X,
Fig. 7 is according to embodiments of the present invention reversely to walk paper money, thickness transducer a, each pixel test data and correspondence at g
The schematic diagram of identification data, as shown in fig. 7, each pixel is not detected by bank note at a, g, its test data values is 128 or so,
At this each pixel scanning paper currency during this corresponding identification data be relatively low initial value A.
Fig. 8 be it is according to embodiments of the present invention reversely walk thickness transducer b in paper money, d, at f each pixel test data and
The schematic diagram of correspondence identification data, as shown in figure 8, thickness transducer b, d, each pixel detects the data that bank note passes through at f,
When i.e. bank note has just enter into thickness transducer parallel to the border of thickness transducer, one amplitude of output be M1 negative-going pulses, bank note Jing
During crossing imageing sensor, test data keeps initial intermediate value, when bank note is walked parallel to the border of imageing sensor
When going out imageing sensor, direct impulse of the amplitude for M1 is exported.During image recognition, identification data lifting at negative-going pulse is known
The gradient of other data, identification data value is A+M1, and the identification data is always maintained at, and reduces again recognizing number at direct impulse
According to gradient, identification data value is reduced to initial value A.
Fig. 9 is according to embodiments of the present invention reversely to walk in paper money each pixel test data and correspondence at thickness transducer c
The schematic diagram of identification data, as shown in figure 9, at scanning paper currency defect each pixel test data, parallel to thickness transducer
Bank note edge enter thickness transducer when, export an amplitude for M1 negative-going pulse, identification data correspondence increase M1 gradients, lack
When entering thickness transducer parallel to thickness transducer edge at damage, output amplitude is the direct impulse of M1, and identification data is corresponding
Reduce M1 gradients, the identification data is always maintained at, and thickness transducer is walked out parallel to thickness transducer edge at defect, this
When thickness transducer export negative-going pulse of the amplitude for M1, identification data correspondence increases M1 gradients, and hereafter identification data is always
Keep, till bank note walks out thickness transducer parallel to thickness transducer edge, now one amplitude of test data output is
The direct impulse of M1, identification data correspondence reduces M1 gradients, returns to initial value A.
Figure 10 is according to embodiments of the present invention reversely to walk in paper money each pixel test data and correspondence at thickness transducer e
The schematic diagram of identification data, as shown in Figure 10, posts the test data of each pixel of tape portion, first width on scanning paper currency
Spend the negative-going pulse for M1 and characterize bank note and enter thickness transducer, correspondence identification data increases M1 gradients, is A+M1, when adhesive tape it is flat
When the edge of thickness transducer enters thickness transducer, test data exports negative-going pulse of the amplitude for M2 to row, recognizes number
Increase M2 gradients according to correspondence, be A+M1+M2, the identification data is always maintained at walking out thickness parallel to thickness transducer edge to adhesive tape
Degree sensor, one amplitude of now test data output is the direct impulse of M2, and identification data correspondence reduces M2 gradients, is A+M1.
The identification data is always maintained at walking out thickness transducer parallel to thickness transducer edge to bank note, and test data output amplitude is
The direct impulse of M1, now identification data correspondence reduction M1 gradients, are initial value A.So far can be by all pixels point identification data
Piece image is combined into, Figure 17 is thickness transducer f according to embodiments of the present invention, the signal of pixel test data between g
Figure, as shown in figure 17, whiteness shown in 2 represents banknote thickness, and left oblique frame shown in 3 represents defect thickness, and right oblique frame is represented shown in 4
Post the thickness of adhesive tape.
Example 3:
The data that the thickness transducer that the embodiment is adopted is exported in addition to the characteristic with embodiment 1 and embodiment 2,
The characteristics of the test data of bank note, adhesive tape or defect perpendicular to the edge of thickness transducer has itself.Walk paper money schematic diagram still such as
Shown in Fig. 2, paper money is forward walked, bank note is moved horizontally to Y by X.Figure 11 is thickness transducer a according to embodiments of the present invention, between b
The schematic diagram of pixel test data, thickness transducer a, the pixel test data between b as shown in figure 11, i.e., is hung down in bank note
When the straight top edge in thickness transducer enters thickness transducer, a, the test data of the pixel between b declines M1 gradients, and
Be always maintained at the Grad, till bank note walks out thickness transducer perpendicular to the top edge of thickness transducer, now a, b it
Between pixel test data rise M1 gradients, return to intermediate value.
Figure 12 is thickness transducer b according to embodiments of the present invention, the schematic diagram of pixel test data, thickness between c
Sensor b, the pixel test data between c is as shown in figure 12, i.e., when the top edge of bank note defect enters thickness transducer,
The test data of the pixel between b, c rises M1 gradients, and is always maintained at the Grad, until the top edge of bank note defect is walked
Till going out thickness transducer, now b, the test data decline M1 gradients of the pixel between c, return to intermediate value.
Figure 13 is thickness transducer c according to embodiments of the present invention, the schematic diagram of pixel test data, thickness between d
Sensor c, the pixel test data between d is as shown in figure 13, i.e., when the lower limb of bank note defect enters thickness transducer,
The test data of the pixel between c, d declines M1 gradients, and is always maintained at the Grad, until the lower limb of bank note defect is walked
Till going out thickness transducer, now c, the test data rising M1 gradients of the pixel between d, return to intermediate value.
Figure 14 is thickness transducer d according to embodiments of the present invention, the schematic diagram of pixel test data, thickness between e
Sensor d, as shown in figure 14, i.e., the top edge in bank note adhesive tape enters thickness transducer to the pixel test data between e
When, d, the test data of the pixel between e declines M2 gradients, and is always maintained at the Grad, upper until bank note adhesive tape
Till thickness transducer is walked out at edge, now d, the test data rising M2 gradients of the pixel between e, return to intermediate value.
Figure 15 is thickness transducer e according to embodiments of the present invention, the schematic diagram of pixel test data, thickness between f
Sensor e, as shown in figure 15, i.e., the lower limb in bank note adhesive tape enters thickness transducer to the pixel test data between f
When, e, the test data of the pixel between f rises M2 gradients, and is always maintained at the Grad, under bank note adhesive tape
Till thickness transducer is walked out at edge, now e, the test data decline M2 gradients of the pixel between f, return to intermediate value.
Figure 16 is thickness transducer f according to embodiments of the present invention, the schematic diagram of pixel test data, thickness between g
Sensor f, the pixel test data between g as shown in figure 16, i.e., when bank note lower limb enters thickness transducer, f, g it
Between the test data of pixel rise M1 gradients, and the Grad is always maintained at, until bank note lower limb walks out thickness sensing
Till device, now f, the test data decline M1 gradients of the pixel between g, return to intermediate value.It is above-mentioned when paper money is reversely walked
Pixel change between each section is consistent, and this is not being repeated.Can assist in identifying data using the feature, pick out perpendicular to thickness
The border of sensor orientation, makes identification more accurate.
To sum up combine Fig. 2 to Figure 17, can obtain the image-recognizing method of the embodiment of the present application offer according to bank note edge,
The corresponding positive negative pulse stuffing signal in defect edge and foreign body edge, obtains corresponding identification data, final according to identification data life
Into thickness chart picture.
Embodiment two
Figure 18 is the structural representation of pattern recognition device according to embodiments of the present invention, as shown in figure 18, the device bag
Include:Scan module 1800, the first judge module 1802, acquisition module 1804, the second judge module 1806, the first determination module
1808 and second determination module 1810, wherein,
Scan module 1800, for scanning thing to be detected according to preset direction by sensor;
First judge module 1802, for the first direction pulse signal that foundation preset direction obtains thing to be detected, and
Judge whether first direction pulse signal changes in first sweep time;
Acquisition module 1804, in the case where judging that first direction pulse signal changes, obtaining second direction
Pulse signal;
Second judge module 1806, for judge the amplitude direction of second direction pulse signal whether with first direction pulse
The amplitude direction of signal is identical;
First determination module 1808, in the amplitude direction of second direction pulse signal and first direction pulse signal
In the case of the identical of amplitude direction, the foreign body of the region presence laminating that thing to be detected is scanned within the first sweep time is obtained;
Second determination module 1810, in the amplitude direction of second direction pulse signal and first direction pulse signal
In the case of the difference of amplitude direction, obtain the region that thing to be detected scans within the first sweep time and there is defect.
In the pattern recognition device that the embodiment of the present application is provided, thing to be detected is scanned according to preset direction by sensor;
The first direction pulse signal of thing to be detected is obtained according to preset direction, and first direction pulse is judged within the first sweep time
Whether signal changes;In the case where judging that first direction pulse signal changes, second direction pulse signal is obtained;
Judge whether the amplitude direction of second direction pulse signal is identical with the amplitude direction of first direction pulse signal;In second direction
In the case of the amplitude direction of pulse signal and the amplitude direction identical of first direction pulse signal, thing to be detected is obtained first
In sweep time there is the foreign body of laminating in the region of scanning;In the amplitude direction of second direction pulse signal and first direction pulse
In the case of the amplitude direction difference of signal, obtain the region that thing to be detected scans within the first sweep time and there is defect, reach
To the purpose of the characteristics of image that bank note is obtained by positive negative pulse stuffing signal, it is achieved thereby that lifting the Image Feature Detection of bank note
The technique effect of efficiency, and then solve feature due to being calculated banknote thickness by absolute thickness value in correlation technique not
Accurate technical problem.
Optionally, the first judge module 1802 includes:First scanning element, for preset direction include forward scanning or
In the case of reverse scan, in the case where preset direction is forward to scan, the start edge of thing to be detected is scanned, obtain first
Direction pulse signal is direct impulse signal;Second scanning element, in the case of being reverse scan in preset direction, scanning
The terminating edge of thing to be detected, obtains first direction pulse signal for negative-going pulse signal.
Further, optionally, the first judge module 1802 includes:First judging unit, for being suitable in preset direction
To scanning in the case of, and within the first sweep time, in the case that the terminating edge of thing to be detected does not leave sensor, sentence
Whether the amplitude of disconnected direct impulse signal changes;Second judging unit, in the case of being reverse scan in preset direction, with
And within the first sweep time, in the case that the start edge of thing to be detected does not leave sensor, judge negative-going pulse signal
Whether amplitude changes.
Optionally, the first determination module 1808 includes:First identifying unit, within the second sweep time, default
In the case that direction is forward to scan, by sensor scan thing to be detected, the amplitude for obtaining direct impulse signal changes, and second
Direction pulse signal is the first direct impulse signal, wherein, amplitude direction and the direct impulse signal of the first direct impulse signal
Amplitude direction it is identical, obtain thing to be detected and there is laminating foreign body, be changed into the first negative sense the first direct impulse signal is detected
During pulse signal, according to the first direct impulse signal and the first negative-going pulse signal the image size of laminating foreign body is obtained;Second
Identifying unit, it is to be checked by sensor scan in the case where preset direction is reverse scan within the second sweep time
Thing is surveyed, the amplitude for obtaining negative-going pulse signal changes, second direction pulse signal is the second negative-going pulse signal, wherein, second
The amplitude direction of negative-going pulse signal is identical with the amplitude direction of negative-going pulse signal, obtains thing to be detected and there is laminating foreign body,
It is positive according to the second negative-going pulse signal and second when detecting the second negative-going pulse signal and being changed into the second direct impulse signal
Pulse signal obtains the image size of laminating foreign body.
Optionally, the second determination module 1810 includes:3rd identifying unit, within the second sweep time, default
In the case that direction is forward to scan, by sensor scan thing to be detected, the amplitude for obtaining direct impulse signal changes, and second
Direction pulse signal is the 3rd negative-going pulse signal, wherein, amplitude direction and the direct impulse signal of the 3rd negative-going pulse signal
Amplitude it is in opposite direction, obtain thing to be detected and there is defect, be changed into the 3rd direct impulse the 3rd negative-going pulse signal is detected
During signal, according to the 3rd negative-going pulse signal and the 3rd negative-going pulse signal the image size of defect is obtained;4th identifying unit,
For within the second sweep time, in the case where preset direction is reverse scan, by sensor scan thing to be detected, obtaining
The amplitude of negative-going pulse signal changes, and second direction pulse signal is the 4th direct impulse signal, wherein, the 4th direct impulse letter
Number amplitude direction it is in opposite direction with the amplitude of negative-going pulse signal, obtain thing to be detected and there is defect, detecting the 4th just
When being changed into the 4th negative-going pulse signal to pulse signal, lacked according to the 4th direct impulse signal and the 4th negative-going pulse signal
The image size of damage.
Optionally, the pattern recognition device that the application is provided also includes:3rd judge module, for judging first direction
In the case that pulse signal does not change, judge whether first direction pulse signal changes within the 3rd sweep time;
Detection module, for when in a first direction pulse signal is changed into three pulse signals, the terminating edge of thing to be detected to be by sensing
Device, the end of scan;Wherein, the amplitude of first direction pulse signal is identical with the amplitude of the 3rd pulse signal, and first direction arteries and veins
The amplitude direction for rushing signal is in opposite direction with the amplitude of the 3rd pulse signal.
The embodiments of the present invention are for illustration only, do not represent the quality of embodiment.
In the above embodiment of the present invention, the description to each embodiment all emphasizes particularly on different fields, and does not have in certain embodiment
The part of detailed description, may refer to the associated description of other embodiment.
In several embodiments provided herein, it should be understood that disclosed technology contents, can pass through other
Mode is realized.Wherein, device embodiment described above is only schematic, such as the division of described unit, Ke Yiwei
A kind of division of logic function, can there is an other dividing mode when actually realizing, such as multiple units or component can with reference to or
Person is desirably integrated into another system, or some features can be ignored, or does not perform.Another, shown or discussed is mutual
Between coupling or direct-coupling or communication connection can be INDIRECT COUPLING or communication link by some interfaces, unit or module
Connect, can be electrical or other forms.
The unit as separating component explanation can be or may not be it is physically separate, it is aobvious as unit
The part for showing can be or may not be physical location, you can with positioned at a place, or can also be distributed to multiple
On unit.Some or all of unit therein can according to the actual needs be selected to realize the purpose of this embodiment scheme.
In addition, each functional unit in each embodiment of the invention can be integrated in a processing unit, it is also possible to
It is that unit is individually physically present, it is also possible to which two or more units are integrated in a unit.Above-mentioned integrated list
Unit both can be realized in the form of hardware, it would however also be possible to employ the form of SFU software functional unit is realized.
If the integrated unit is realized using in the form of SFU software functional unit and as independent production marketing or used
When, during a computer read/write memory medium can be stored in.Based on such understanding, technical scheme is substantially
The part for contributing to prior art in other words or all or part of the technical scheme can be in the form of software products
Embody, the computer software product is stored in a storage medium, including some instructions are used so that a computer
Equipment (can be personal computer, server or network equipment etc.) perform the whole of each embodiment methods described of the invention or
Part steps.And aforesaid storage medium includes:USB flash disk, read only memory (ROM, Read-Only Memory), random access memory are deposited
Reservoir (RAM, Random Access Memory), portable hard drive, magnetic disc or CD etc. are various can be with store program codes
Medium.
The above is only the preferred embodiment of the present invention, it is noted that for the ordinary skill people of the art
For member, under the premise without departing from the principles of the invention, some improvements and modifications can also be made, these improvements and modifications also should
It is considered as protection scope of the present invention.
Claims (12)
1. a kind of image-recognizing method, it is characterised in that include:
Thing to be detected is scanned according to preset direction by sensor;
The first direction pulse signal of the thing to be detected is obtained according to the preset direction, and is judged within the first sweep time
Whether the first direction pulse signal changes;
In the case where judging that the first direction pulse signal changes, second direction pulse signal is obtained;
Judge the amplitude direction of the second direction pulse signal whether amplitude direction phase with the first direction pulse signal
Together;
In the amplitude direction identical feelings of the amplitude direction of the second direction pulse signal and the first direction pulse signal
Under condition, the foreign body of the region presence laminating that the thing to be detected is scanned within first sweep time is obtained;
In the amplitude direction of the second direction pulse signal feelings different from the amplitude direction of the first direction pulse signal
Under condition, obtain the region that the thing to be detected scans within first sweep time and there is defect.
2. method according to claim 1, it is characterised in that include forward scanning or reverse scan in the preset direction
In the case of, the first direction pulse signal for obtaining the thing to be detected according to the preset direction includes:
In the case where the preset direction is forward to scan, the start edge of the thing to be detected is scanned, obtain described first
Direction pulse signal is direct impulse signal;
In the case where the preset direction is reverse scan, the terminating edge of the thing to be detected is scanned, obtain described first
Direction pulse signal is negative-going pulse signal.
3. method according to claim 2, it is characterised in that described that the first direction is judged within the first sweep time
Pulse signal whether change including:
In the case where the preset direction is forward to scan, and within first sweep time, the thing to be detected
In the case that the terminating edge does not leave the sensor, whether the amplitude for judging the direct impulse signal changes;
In the case where the preset direction is reverse scan, and within first sweep time, the thing to be detected
In the case that the start edge does not leave the sensor, whether the amplitude for judging the negative-going pulse signal changes.
4. method according to claim 3, it is characterised in that the amplitude direction in the second direction pulse signal
In the case of the amplitude direction identical of the first direction pulse signal, obtain the thing to be detected described first scan when
The foreign body that the region of interior scanning has laminating includes:
Within the second sweep time, in the case where the preset direction is forward to scan, by described in the sensor scan
Thing to be detected, the amplitude for obtaining the direct impulse signal changes, and the second direction pulse signal is the first direct impulse letter
Number, wherein, the amplitude direction of the first direct impulse signal is identical with the amplitude direction of the direct impulse signal, obtains institute
State thing to be detected and there is laminating foreign body, when detecting the first direct impulse signal and being changed into the first negative-going pulse signal, according to
The image size of the laminating foreign body is obtained according to the first direct impulse signal and the first negative-going pulse signal;
Within the second sweep time, in the case where the preset direction is reverse scan, by described in the sensor scan
Thing to be detected, the amplitude for obtaining the negative-going pulse signal changes, and the second direction pulse signal is the second negative-going pulse letter
Number, wherein, the amplitude direction of the second negative-going pulse signal is identical with the amplitude direction of the negative-going pulse signal, obtains institute
State thing to be detected and there is laminating foreign body, when detecting the second negative-going pulse signal and being changed into the second direct impulse signal, according to
The image size of the laminating foreign body is obtained according to the second negative-going pulse signal and the second direct impulse signal.
5. method according to claim 3, it is characterised in that in the amplitude direction of the second direction pulse signal and institute
In the case of stating the amplitude direction difference of first direction pulse signal, the thing to be detected is obtained within first sweep time
The region of scanning has defect to be included:
Within the second sweep time, in the case where the preset direction is forward to scan, by described in the sensor scan
Thing to be detected, the amplitude for obtaining the direct impulse signal changes, and the second direction pulse signal is the 3rd negative-going pulse letter
Number, wherein, the amplitude direction of the 3rd negative-going pulse signal is in opposite direction with the amplitude of the direct impulse signal, obtains institute
State thing to be detected and there is defect, when detecting the 3rd negative-going pulse signal and being changed into the 3rd direct impulse signal, according to institute
State the 3rd negative-going pulse signal and the 3rd negative-going pulse signal obtains the image size of the defect;
Within the second sweep time, in the case where the preset direction is reverse scan, by described in the sensor scan
Thing to be detected, the amplitude for obtaining the negative-going pulse signal changes, and the second direction pulse signal is the 4th direct impulse letter
Number, wherein, the amplitude direction of the 4th direct impulse signal is in opposite direction with the amplitude of the negative-going pulse signal, obtains institute
State thing to be detected and there is defect, when detecting the 4th direct impulse signal and being changed into the 4th negative-going pulse signal, according to institute
State the 4th direct impulse signal and the 4th negative-going pulse signal obtains the image size of the defect.
6. method according to claim 1, it is characterised in that methods described also includes:
In the case where judging that the first direction pulse signal does not change, within the 3rd sweep time described first is judged
Whether direction pulse signal changes;
When the first direction pulse signal is changed into three pulse signals, the terminating edge of the thing to be detected is by the biography
Sensor, the end of scan;Wherein, the amplitude of the first direction pulse signal is identical with the amplitude of the 3rd pulse signal, and
The amplitude direction of the first direction pulse signal is in opposite direction with the amplitude of the 3rd pulse signal.
7. a kind of pattern recognition device, it is characterised in that include:
Scan module, for scanning thing to be detected according to preset direction by sensor;
First judge module, for obtaining the first direction pulse signal of the thing to be detected according to the preset direction, and
Judge whether the first direction pulse signal changes in first sweep time;
Acquisition module, in the case where judging that the first direction pulse signal changes, obtaining second direction pulse
Signal;
Second judge module, for judge the amplitude direction of the second direction pulse signal whether with the first direction pulse
The amplitude direction of signal is identical;
First determination module, in the amplitude direction of the second direction pulse signal and the first direction pulse signal
In the case of the identical of amplitude direction, the region presence laminating that the thing to be detected is scanned within first sweep time is obtained
Foreign body;
Second determination module, in the amplitude direction of the second direction pulse signal and the first direction pulse signal
In the case of the difference of amplitude direction, obtain the region that the thing to be detected scans within first sweep time and there is defect.
8. device according to claim 7, it is characterised in that first judge module includes:
First scanning element, in the case of including forward scanning or reverse scan in the preset direction, described default
In the case that direction is forward to scan, the start edge of the thing to be detected is scanned, obtaining the first direction pulse signal is
Direct impulse signal;
Second scanning element, in the case of being reverse scan in the preset direction, scans the termination of the thing to be detected
Edge, obtains the first direction pulse signal for negative-going pulse signal.
9. device according to claim 8, it is characterised in that first judge module includes:
First judging unit, in the case of in the preset direction forward to scan, and in first sweep time
It is interior, in the case that the terminating edge of the thing to be detected does not leave the sensor, judge the direct impulse signal
Whether amplitude changes;
Second judging unit, in the case of being reverse scan in the preset direction, and in first sweep time
It is interior, in the case that the start edge of the thing to be detected does not leave the sensor, judge the negative-going pulse signal
Whether amplitude changes.
10. device according to claim 9, it is characterised in that first determination module includes:
First identifying unit, within the second sweep time, in the case where the preset direction is forward to scan, by institute
Thing to be detected described in sensor scan is stated, the amplitude for obtaining the direct impulse signal changes, the second direction pulse signal
For the first direct impulse signal, wherein, the width of the amplitude direction of the first direct impulse signal and the direct impulse signal
Degree direction is identical, obtains the thing to be detected and there is laminating foreign body, and the first direct impulse signal is detected first is changed into
During negative-going pulse signal, according to the first direct impulse signal and the first negative-going pulse signal the laminating foreign body is obtained
Image size;
Second identifying unit, within the second sweep time, in the case where the preset direction is reverse scan, by institute
Thing to be detected described in sensor scan is stated, the amplitude for obtaining the negative-going pulse signal changes, the second direction pulse signal
For the second negative-going pulse signal, wherein, the width of the amplitude direction of the second negative-going pulse signal and the negative-going pulse signal
Degree direction is identical, obtains the thing to be detected and there is laminating foreign body, and the second negative-going pulse signal is detected second is changed into
During direct impulse signal, according to the second negative-going pulse signal and the second direct impulse signal the laminating foreign body is obtained
Image size.
11. devices according to claim 9, it is characterised in that second determination module includes:
3rd identifying unit, within the second sweep time, in the case where the preset direction is forward to scan, by institute
Thing to be detected described in sensor scan is stated, the amplitude for obtaining the direct impulse signal changes, the second direction pulse signal
For the 3rd negative-going pulse signal, wherein, the amplitude direction of the 3rd negative-going pulse signal and the width of the direct impulse signal
Degree is in opposite direction, obtains the thing to be detected and there is defect, and the 3rd negative-going pulse signal is detected, to be changed into the 3rd positive
During pulse signal, the image for obtaining the defect according to the 3rd negative-going pulse signal and the 3rd negative-going pulse signal is big
It is little;
4th identifying unit, within the second sweep time, in the case where the preset direction is reverse scan, by institute
Thing to be detected described in sensor scan is stated, the amplitude for obtaining the negative-going pulse signal changes, the second direction pulse signal
For the 4th direct impulse signal, wherein, the amplitude direction of the 4th direct impulse signal and the width of the negative-going pulse signal
Degree is in opposite direction, obtains the thing to be detected and there is defect, and the 4th direct impulse signal is detected the 4th negative sense is changed into
During pulse signal, the image for obtaining the defect according to the 4th direct impulse signal and the 4th negative-going pulse signal is big
It is little.
12. devices according to claim 7, it is characterised in that described device also includes:
3rd judge module, in the case where judging that the first direction pulse signal does not change, in the 3rd scanning
Judge whether the first direction pulse signal changes in time;
Detection module, for when the first direction pulse signal is changed into three pulse signals, the termination of the thing to be detected
Edge is by the sensor, the end of scan;Wherein, the amplitude of the first direction pulse signal and the 3rd pulse signal
Amplitude it is identical, and the amplitude direction of the first direction pulse signal is in opposite direction with the amplitude of the 3rd pulse signal.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610941637.XA CN106570979A (en) | 2016-10-31 | 2016-10-31 | Image identification method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610941637.XA CN106570979A (en) | 2016-10-31 | 2016-10-31 | Image identification method and device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106570979A true CN106570979A (en) | 2017-04-19 |
Family
ID=58536180
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610941637.XA Pending CN106570979A (en) | 2016-10-31 | 2016-10-31 | Image identification method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106570979A (en) |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2009037418A (en) * | 2007-08-01 | 2009-02-19 | Fuji Electric Retail Systems Co Ltd | Discrimination apparatus |
EP2199987A1 (en) * | 2008-12-18 | 2010-06-23 | NCR Corporation | Optical sensor |
CN203825703U (en) * | 2014-05-13 | 2014-09-10 | 威海华菱光电股份有限公司 | Bank note thickness detection tool |
CN105051798A (en) * | 2013-03-15 | 2015-11-11 | 德拉瑞北美有限公司 | Systems and methods for detecting a document attribute using acoustics |
CN105321254A (en) * | 2015-11-06 | 2016-02-10 | 威海华菱光电股份有限公司 | Equipment, method and device for detecting thickness of measured object |
CN105809813A (en) * | 2016-04-14 | 2016-07-27 | 广州市汇研微电子技术有限公司 | Banknote detection device |
-
2016
- 2016-10-31 CN CN201610941637.XA patent/CN106570979A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2009037418A (en) * | 2007-08-01 | 2009-02-19 | Fuji Electric Retail Systems Co Ltd | Discrimination apparatus |
EP2199987A1 (en) * | 2008-12-18 | 2010-06-23 | NCR Corporation | Optical sensor |
CN105051798A (en) * | 2013-03-15 | 2015-11-11 | 德拉瑞北美有限公司 | Systems and methods for detecting a document attribute using acoustics |
CN203825703U (en) * | 2014-05-13 | 2014-09-10 | 威海华菱光电股份有限公司 | Bank note thickness detection tool |
CN105321254A (en) * | 2015-11-06 | 2016-02-10 | 威海华菱光电股份有限公司 | Equipment, method and device for detecting thickness of measured object |
CN105809813A (en) * | 2016-04-14 | 2016-07-27 | 广州市汇研微电子技术有限公司 | Banknote detection device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
KR102207533B1 (en) | Bill management method and system | |
CN107657249A (en) | Method, apparatus, storage medium and the processor that Analysis On Multi-scale Features pedestrian identifies again | |
CN106446952B (en) | A kind of musical score image recognition methods and device | |
CN101271515B (en) | Image detection device capable of recognizing multi-angle objective | |
CN104772289B (en) | A kind of detection method of target product | |
CN105182350B (en) | A kind of multibeam sonar object detection method of application signature tracking | |
CN103377509B (en) | Media validator and the method that defect is classified | |
CN106407924A (en) | Binocular road identifying and detecting method based on pavement characteristics | |
CN102928435A (en) | Aircraft skin damage identification method and device based on image and ultrasound information fusion | |
CN104077577A (en) | Trademark detection method based on convolutional neural network | |
CN105913040A (en) | Real time double cameras provided pedestrian detection system for use under scotopic vision conditions | |
CN105046808A (en) | Banknote multi-spectral high-resolution image acquisition system and acquisition method | |
CN106548558B (en) | A kind of detection method and device of bill one-dimensional signal | |
CN101604384A (en) | Individualized fingerprint identification method | |
Kälviäinen et al. | An extension to the randomized Hough transform exploiting connectivity | |
CN108921209A (en) | Image identification method, device and electronic equipment | |
CN115239737B (en) | Corrugated paper defect detection method based on image processing | |
CN108986125A (en) | Object edge extracting method, device and electronic equipment | |
CN110210503A (en) | A kind of seal recognition methods and device and equipment | |
CN105070094B (en) | A kind of parking stall measure system and method for detecting parking stalls based on machine vision | |
CN108052909A (en) | A kind of thin fibrous cap patch automatic testing method and device based on cardiovascular OCT images | |
EP0946051A3 (en) | Apparatus and method for attribute indentification in color reproduction devices | |
CN108133175A (en) | Fingerprint identification method, device and system, electronic equipment | |
CN101859381A (en) | Gabor filter, image recognition apparatus and method, program and recording medium | |
CN106570979A (en) | Image identification method and device |
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 | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20170419 |