Summary of the invention
Primary technical matters to be solved by this invention is to provide a kind of coin quality of edges detection method.
Another technical matters to be solved by this invention is to provide a kind of coin quality of edges pick-up unit.
In order to reach above-mentioned goal of the invention, the present invention adopts following technical scheme:
A coin quality of edges detection method, comprises the steps:
(1) detect coin and whether enter detection station, result when being, light source and camera in unlatching optical imaging system;
(2) by the limit portion catoptron in optical imaging system and telecentric lens, obtain the limit portion enlarged image of coin;
(3) by image processing system, the data model of described limit portion's enlarged image and image is compared, the quality of edges of judgement coin.
Wherein more preferably, in described step (1), by industry, pipe is detected to described coin and whether enter detection station.
Wherein more preferably, in described step (2), the annular sphere lens that described limit portion catoptron is comprised of two concentric hemisphere faces, wherein, outer hemispherical top is a upper mounting plate that is parallel to described coin surface, and the hemispherical lower edge of described skin connects into the hemispherical lower edge of internal layer the lower platform that another is parallel to described coin surface; And the part limit portion reflection ray of described coin changes imaging behind the direction of propagation via described outer hemisphere face and described internal layer hemisphere face secondary, form the described limit portion enlarged image of described coin.
Wherein more preferably, in described step (3), described image processing system described limit portion enlarged image is positioned cut apart, rotation correction and image ratio pair, and according to the data model of image, the quality of edges of coin is differentiated.
Meanwhile, it is a kind of for realizing the coin quality of edges pick-up unit of above-mentioned detection method that the present invention also provides, and comprises optical imaging system, light-source control system, signal detection system and image processing system; Wherein, described signal detection system is connected with described light-source control system, and described light-source control system is connected with described optical imaging system, and described optical imaging system is connected with described image processing system;
Described signal detection system is the coin trigger pip through producing during ad-hoc location on coin transfer passage for detection of coin, and send described coin trigger pip to described light-source control system, described light-source control system is for controlling the light source break-make of described optical imaging system, described optical imaging system is for obtaining the view data of the limit portion enlarged image that comprises described coin, and described image processing system is used for receiving described view data and described view data is analyzed.
Wherein more preferably, described optical imaging system comprises smart camera, light source and the limit portion catoptron with telecentric lens, and described limit portion catoptron is arranged at the upside of described coin, and the described telecentric lens of described smart camera is arranged at portion's catoptron top, described limit.
Wherein more preferably, the annular sphere lens that described limit portion catoptron is comprised of two concentric hemisphere faces, wherein, outer hemispherical top is a upper mounting plate that is parallel to described coin surface, and the hemispherical lower edge of described skin connects into the hemispherical lower edge of internal layer the lower platform that another is parallel to described coin surface; The part limit portion reflection ray of described coin changes imaging behind the direction of propagation via described outer hemisphere face and described internal layer hemisphere face secondary, forms the described limit portion enlarged image of described coin.
Wherein more preferably, described smart camera comprises digital signal processor and described telecentric lens.
Wherein more preferably, described signal detection system comprises for detection of the industry of described coin trigger pip pipe, described industry is connected with described optical control pipe, described industry is arranged at the top of coin transfer passage to pipe, and, described industry with respect to described light source imaging system, is arranged at forward position on described coin transfer passage to pipe.
Wherein more preferably, described light-source control system comprises signal flip flop equipment and light source controller, described signal flip flop equipment is for receiving the described coin trigger pip of described industry to pipe, and described light source controller is for carrying out the control of light source break-make according to the output of described signal flip flop equipment.
Coin quality of edges detection method provided by the invention and pick-up unit, on the one hand by accurate light path design, carry out a certain proportion of amplification to the limit portion image of coin, improved the accuracy of detection of coin quality of edges; Adopt on the other hand telecentric lens imaging, eliminated the limit portion of coin at the imaging difference of different imaging surfaces, and guaranteed that, in the situation of detection of dynamic, the migrated image of coin is undistorted, thereby improved the detectability to the coin limit figure of portion line quality and limit portion anti-counterfeiting characteristic.This detection method and pick-up unit go for the side of various column structures and the quality testing of limit portion thereof, are particularly useful for the situation that coin height is less.
Embodiment
Below in conjunction with the drawings and specific embodiments, technology contents of the present invention is elaborated.
Coin quality of edges detection method provided by the invention, by obtaining the limit portion enlarged image of coin, and by it the data model contrast judgement quality of edges with image, realize the detection to the quality of edges of coin.Specifically, first, detect coin and whether enter detection station, result when being, light source and camera in unlatching optical imaging system; Then, by the limit portion catoptron in optical imaging system and telecentric lens, obtain the limit portion enlarged image of coin; Finally, by image processing system, the data model of this limit portion enlarged image and image is compared, the quality of edges of judgement coin.
In this detection method, by industry, pipe is detected to coin and whether enter detection station, when detecting coin to pipe, industry is about to enter detection station, and control optical imaging system and postpone imaging.In optical imaging system, the part limit portion reflection ray of coin, through limit portion catoptron secondary reflection, changes behind twice direction of propagation, arrives telecentric lens imaging.The lens ring that this limit portion catoptron can be comprised of two concentric hemisphere faces, wherein, outer hemispherical top is a upper mounting plate that is parallel to coin surface, and outer hemispherical lower edge connects into the hemispherical lower edge of internal layer the lower platform that another is parallel to coin surface.The part limit portion reflection ray of coin enters limit portion catoptron from lower platform, after outer hemisphere face primary event, is arrived internal layer hemisphere face, and by internal layer hemisphere face secondary reflection, finally from upper mounting plate, penetrates and arrive telecentric lens, forms the limit portion enlarged image of coin.In this communication process, the direction of propagation of coin limit portion reflection ray, is changed by outer hemisphere face and internal layer hemisphere face successively.
In this detection method, image processing system this limit portion enlarged image is positioned cut apart, rotation correction and the data model of this limit portion enlarged image and image is carried out to image ratio pair, and according to the data model of image, the quality of edges of coin is differentiated.
Below, the coin quality of edges pick-up unit (abbreviation pick-up unit) in is by reference to the accompanying drawings described above-mentioned detection method.In this embodiment, take the coin of distribution in certain 2011 describes as example.As shown in Figure 1, this pick-up unit 100 is arranged on the top of coin transmission channel 200.Coin 300 is positioned in coin transmission channel 200, and is sent into successively the detection station of pick-up unit 100 belows, accepts detection.When coin 300 is sent to the detection station on right side from left side, along the direction of transfer of coin 300, coin transmission channel 200 is divided into the upstream position that is positioned at Fig. 1 left side and the downstream position that is positioned at Fig. 1 right side successively.
Known in conjunction with Fig. 1 and Fig. 2, this pick-up unit 100, comprises optical imaging system, light-source control system, signal detection system and image processing system.Wherein, signal detection system is connected with light-source control system, and light-source control system is connected with optical imaging system, and optical imaging system is connected with image processing system.In this pick-up unit 100, signal detection system, with respect to light source imaging system, is arranged at the upstream position of coin transfer passage 200.Signal detection system is the coin trigger pip through producing during ad-hoc location on coin transfer passage for detection of coin, and sends coin trigger pip to light-source control system.Light-source control system is for controlling the light source break-make of optical imaging system, optical imaging system is for obtaining the view data of the limit portion enlarged image that comprises coin 300, and image processing system is for receiving the view data of optical imaging system and view data being analyzed.Specifically, by this pick-up unit 100, can gather the upper surface image of coin and the limit portion enlarged image of coin simultaneously.
Referring to Fig. 1, optical imaging system comprises light source 101, limit portion catoptron 102, and the smart camera 104 with telecentric lens 103.Light source 101 comprises the limit portion of irradiating coin 300 for irradiating coin 300(), light source 101 can be arranged at upside or the downside of coin 300, or the upper and lower sides at coin 300 arranges light source 101 simultaneously as required, in order to irradiate the surrounding of coin 300, light source 101 can be annular light source, light source 101 select the common practise that belongs to those skilled in the art, do not repeat them here.Limit portion catoptron 102 can adopt spherical lens or non-spherical lens, limit portion catoptron 102 is arranged at the top of coin 300, the telecentric lens 103 of smart camera 104 is arranged at limit portion catoptron 102 tops, thereby form limit portion under telecentric lens 103 and limit portion catoptron 102, detects station.When coin 300 enters detection station, the part limit portion reflection ray of coin 300 enters telecentric lens 103 via 102 liang of secondary reflections of limit portion catoptron are laggard, and finally imaging in smart camera 104, forms limit portion enlarged image.This pick-up unit 100 adopts telecentric lens 103 imagings, eliminated the limit portion of coin 300 at the imaging difference of different imaging surfaces, and guaranteed in detection of dynamic situation, the migrated image of coin 300 is undistorted, thereby has greatly improved the detectability of pick-up unit to the coin limit figure of portion line quality and limit portion anti-counterfeiting characteristic.
Referring to Fig. 2, in this embodiment, in order to obtain the limit portion enlarged image of coin 300, limit portion catoptron 102 adopts the annular sphere lens that are comprised of two concentric hemisphere face 102A and 102B, wherein, the top of outer hemisphere face 102B is a upper mounting plate 102D who is parallel to coin 300 surfaces, and the lower edge of outer hemisphere face 102B connects into the lower edge of internal layer hemisphere face 102A the lower platform 102C that another is parallel to coin 300 surfaces.
When light source 101 is irradiated to coin 300 surperficial, its upper surface and the reflection ray S2 of part limit portion enter limit portion catoptron 102 via internal layer hemisphere face 102A, and penetrate from upper mounting plate 102D, arrive telecentric lens 103 direct imagings, form the general image (referring to the middle part general image in Fig. 3) of coin; And the reflection ray S1 of remainder limit portion enters limit portion catoptron 102 from lower platform 102C, after outer hemisphere face 102B primary event, arrived internal layer hemisphere face 102A, and by internal layer hemisphere face 102A secondary reflection, finally from upper mounting plate 102D, penetrate and arrive telecentric lens 103, in smart camera 104, form limit portion enlarged image (being positioned at the limit portion enlarged image of middle part general image surrounding in referring to Fig. 3).In the communication process of the reflection ray S1 of this coin limit portion, its direction of propagation is changed by outer hemisphere face and internal layer hemisphere face successively, thereby obtains the limit portion enlarged image with larger enlargement factor at telecentric lens 103.Referring to Fig. 3, in this limit portion enlarged image, can see the side enlarged image of coin, wherein, clearly demonstrated the limit portion feature " W " and " V " that are arranged at coin side.And, in this limit portion enlarged image, also clearly shown and be positioned at coin surface by the time sign " 2011 " of near part to there is obvious amplification with respect to the time sign " 2011 " in the general image of middle part.As can be seen here, with respect to the direct reflected image (being the middle part general image in Fig. 3) of coin, limit portion enlarged image has obvious amplification effect, and this limit portion enlarged image can clearly demonstrate the anti-counterfeiting characteristic that is arranged at Bu Ji side, coin limit.By this limit portion enlarged image and data model are compared, can obtain testing result accurately.
In this pick-up unit 100, remove outside optical imaging system, also comprise light-source control system, signal detection system and image processing system.Wherein, signal detection system comprises that industry for detection of coin trigger pip is to managing 105, and industry is connected with optical control managing 105.Industry is arranged at coin transfer passage 200 tops to managing 105, and with respect to light source imaging system, this industry, to managing 105 upstream positions that are arranged at coin transfer passage 200, is arranged at position forward on coin transfer passage 200.Industry can detect to managing 105 the limit portion detection station that coin 300 is about to enter optical imaging system below, and send coin trigger pip to light-source control system and image processing system, thereby by DSP(digital signal processor) 106 time delay counting controls the break-make of the exposure of smart camera 104 and light source.
Light-source control system comprises signal flip flop equipment and light source controller, signal flip flop equipment is for receiving industry to managing 105 coin trigger pip, light source controller, for carrying out the control of light source break-make according to the output of signal flip flop equipment, comprises the break-make moment and the make-and-break time length of controlling light source.
Image processing system receives view data and carries out real-time analysis processing, and carries out coin quality of edges and anti-counterfeiting characteristic detects by the contrast with data model.Image processing system can be realized by the DSP106 being arranged in smart camera 104.At this image processing system, carry out in the process of image processing, adopt algorithm as shown in Figure 4 to judge the quality of edges of coin.In this deterministic process, first image is carried out to pre-service, then by coin limit portion Region Segmentation, image polar coordinate transform, texture character zone location scheduling algorithm, extract figure line and the anti-counterfeiting characteristic of coin limit portion, finally utilize image alignment algorithm to compare to texture character and template, differentiate figure line and the anti-counterfeiting characteristic of image limit portion, and export comparing result.
Specifically, in Detecting of coin process, coin 300 is partly delivered to coin quality of edges by the belt gear as shown in 1 successively and detects station.When industry is to managing 105 while coin trigger pip being detected, by output lead, coin trigger pip is sent in smart camera, and by the time delay counting of DSP106, the break-make of the exposure of smart camera 104 and light source is controlled.
When coin 300 by belt transport under limit portion catoptron 102 time, DSP106 triggers the image acquisition part of light source 101 and smart camera 104, the image to coin through secondary reflection gathers, and obtains collection result as shown in Figure 3.On the one hand, this pick-up unit can gather the limit portion enlarged image of coin 300; On the other hand, also can gather the surface image of coin 300.
Then, DSP106 utilizes advanced image processing techniques to position the coin limit portion image gathering to cut apart, rotation correction, image ratio peer processes, obtains comparing result output, thereby the quality of edges of coin is detected.
In sum, coin quality of edges detection method provided by the invention and pick-up unit thereof, on the one hand by accurate light path design, carry out a certain proportion of amplification to the limit portion image of coin, improved the accuracy of detection of coin quality of edges; Adopt on the other hand telecentric lens imaging, guaranteed that, in the situation of detection of dynamic, the migrated image of coin is undistorted, thereby improved the detectability to the coin limit figure of portion line quality and limit portion anti-counterfeiting characteristic.This detection method and pick-up unit go for the side of various column structures and the quality testing showing, are particularly useful for the situation that coin height is less.
Above coin quality of edges detection method provided by the present invention and pick-up unit thereof are had been described in detail.For one of ordinary skill in the art, any apparent change of under the prerequisite that does not deviate from connotation of the present invention, it being done, all will form infringement of patent right of the present invention, will bear corresponding legal liabilities.