A kind of smart card is counted card device and number chucking method
Technical field
The present invention relates to intellective IC card detection technique field, particularly a kind of several card devices that can accurately be counted to the quantity of smart card and number chucking method.
Background technology
Application development along with the information system management technology, increasing sector application IC-card or smart card manage user's identity, because the information of the built-in chip record of this smart card can be modified by special use setting and software cooperation, data can upgrade in time, just with centralized management, its application is more and more extensive.
Smart card needs to be packed after production completes, and avoids it to damage in transportation, accurate in order to ensure the quantity of smart card packing, therefore before packing, needs the quantity of smart card is counted.
Current smart card counting device, be mainly to adopt continuous-flow type to count, and on the smart card transport tape, is provided with photoelectric sensor, triggers the signal of counting when the smart card moved by each passes through photoelectric sensor and counted, and realizes accurately counting.Although this counting device can be counted accurately to the quantity of smart card, but streamline that need to be longer when it is counted, its space taken is larger, the displacement of two intelligent stuck point cards is longer, at least length or the width of a smart card, make the speed of invocation point card relevant with the translational speed of transport tape, and then the speed of impact point card.
Summary of the invention
The technical matters that the present invention mainly solves is to provide a kind of smart card and counts card system and number chucking method, it is larger that this smart card is counted card device and count chucking method the space of needs in the time of can avoiding continuous-flow type to count, the problem that the efficiency of counting is lower, improve the efficiency of accurately counting of counting, its structure takes up room also less.
In order to address the above problem, to the invention provides a kind of smart card and count the card system.This smart card is counted the card system and is comprised: frame and be located at this frame the smart card pickup groove, smart card is pressed to oblique pressure ramp and the severals card devices that move horizontally, and control to press ramp and count the control device of card device co-ordination; Described several card device comprises the some kelly be rotationally connected with frame or smart card pickup groove, the smart card that this kelly one end is oblique with a plurality of pressures contacts, the other end coordinates with optical sensor, also is provided with on this kelly and makes a kelly one end and the elastomeric element of pressing oblique smart card close contact.
Say further, described pressure ramp comprises the shifting board of being located at smart card pickup groove two ends, and this shifting board and driving mechanism are in transmission connection.
Say further, described elastomeric element comprises spring or shell fragment.
Say further, described some kelly is L-shaped.
The present invention also provides a kind of smart card to count the card system, this smart card is counted the card system and is comprised: frame and the smart card pickup groove of being located at this frame, be provided with on this smart card pickup groove and make the hold down gag that smart card is compressed, be provided with the image acquisition and processing device be connected with the output unit of counting above the smart card pickup groove, this image acquisition and processing device is connected with control device respectively with the control hold down gag.
Say further, described hold down gag comprises the pressing plate of being located at least one end of smart card pickup groove, and this pressing plate is connected with the driving mechanism that controlled device is controlled.
Say further, described image acquisition and processing device comprises:
Image capture module, for gathering the smart card side image of a plurality of compressions, be converted to electric signal by the picture signal of collection;
Image processing module, carry out binary conversion treatment for the image to the image capture module collection, generates the binary conversion treatment image, and the threshold value that this binary conversion treatment image is corresponding with default smart card side image is compared;
Output module, export the image processing module result.
Say further the assembly average that described default threshold value corresponding to smart card side image is single smart card side.
The present invention also provides a kind of smart card to count chucking method, comprising:
Gather the smart card image, gather the smart card side image information of stack continuously;
Image binaryzation is processed, the image information gathered is carried out to binary conversion treatment, generate binary image;
Binary image and default threshold value are compared, and the threshold value that binary image is corresponding with default smart card side image is compared, and determines and exports quantity corresponding with default threshold value in binary image.
Say further average gray during the binaryzation of side correspondence image when described default threshold value corresponding to smart card side image is single smart card.
Smart card of the present invention is counted card device, comprise frame and be located at this frame the smart card pickup groove, smart card is pressed to oblique pressure ramp and number card device, and the control device of control pressing ramp and the co-ordination of number card device; Described several card device comprises the some kelly be rotationally connected with frame or smart card pickup groove, the smart card that this kelly one end is oblique with a plurality of pressures contacts, the other end coordinates with optical sensor, also is provided with on this kelly and makes a kelly one end and the elastomeric element of pressing oblique smart card close contact.During work, due to oblique by pressing ramp that smart card is pressed, make between the side of adjacent smart card and laciniation occurs, when a kelly one end moves in the smart card side, between each card, the out-of-flatness meeting produces vibration, at the other end of a kelly to the corresponding signal of sensor, thereby the signal of sensor collection can be converted to corresponding quantity.The space needed in the time of can avoiding continuous-flow type to count due to this system is larger, and the inefficient problem of counting improves the efficiency of accurately counting of counting, and its structure takes up room also less.
The accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, below will the accompanying drawing of required use in embodiment or description of the Prior Art be briefly described, apparently, and the accompanying drawing in describing is some embodiments of the present invention, to those skilled in the art, under the prerequisite of not paying creative work, can also obtain other accompanying drawings according to these accompanying drawings.
Fig. 1 is that smart card of the present invention is counted a kind of example structure schematic diagram of card system.
Fig. 2 is that smart card of the present invention is counted another example structure schematic diagram of card system.
Fig. 3 is image acquisition and processing device embodiment electrical structure schematic diagram of the present invention.
Fig. 4 is that smart card of the present invention is counted the chucking method schematic flow sheet.
Below in conjunction with embodiment, and with reference to accompanying drawing, realization, functional characteristics and the advantage of the object of the invention is described further.
Embodiment
For make the invention purpose, technical scheme and advantage clearer, below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is a part of embodiment of invention, rather than whole embodiment.Embodiment based in the present invention, the every other embodiment that those of ordinary skills obtain under the prerequisite of not making creative work, belong to the scope of protection of the invention.
As shown in Figure 1, the invention provides a kind of smart card and count the card system embodiment.
This smart card is counted the card system and is comprised: frame (accompanying drawing does not indicate) and be located at this frame smart card pickup groove 1, smart card is pressed to oblique pressure ramp 5 and the several card devices that move horizontally, and the control device (accompanying drawing does not indicate) of control pressing ramp 5 and the co-ordinations of number card device; Described several card device comprises the some kelly 3 be rotationally connected with frame or smart card pickup groove 1, the smart card A that this kelly 3 one ends are oblique with a plurality of pressures contacts, the other end coordinates with optical sensor 2, also is provided with on this kelly 3 and makes a kelly one end and the elastomeric element 4 of pressing oblique smart card A close contact.
Specifically, described elastomeric element 4 comprises spring, shell fragment or other parts that can make a kelly 3 contact with the smart card lateral surface compressing.Described pressure ramp 5 comprises the shifting board 5 of being located at smart card pickup groove 1 two ends, and at least one shifting board 5 is in transmission connection with driving mechanism 6.
During work, first by driving mechanism 6, make to press ramp 5 to tilt, under the effect of moving baffle plate 5, make the smart card A that is positioned at smart card pickup groove 1 also in heeling condition.Now laciniation appears in the side of smart card A.While counting, the number card device makes it move along the smart card vergence direction under the drive of driving mechanism.Point kelly one end contacted with the smart card lateral surface compressing produces vibration because of the out-of-flatness meeting, at the other end of a kelly to the corresponding signal of sensor, all can produce vibration during due to a smart card of every movement, the signal number of times of sensor collection can be converted to corresponding quantity, realize the quantity of smart card is accurately counted.The space needed in the time of can avoiding continuous-flow type to count due to this system is larger, and the inefficient problem of counting improves the efficiency of accurately counting of counting, and its structure takes up room also less.
As shown in Figure 2, the invention provides another kind of smart card and count the card system embodiment.
This smart card is counted the card system and is comprised: frame and the smart card pickup groove 1 of being located at this frame, this smart card pickup groove 1 is provided with and makes the hold down gag that smart card is compressed, be provided with the image acquisition and processing device 7 be connected with the output unit of counting above smart card pickup groove 1, this image acquisition and processing device 7 and hold down gag are connected with pneumatic or/and electrical components control device respectively.
Specifically, described hold down gag comprises the pressing plate 8 of being located at smart card pickup groove 1 at least one end, and this pressing plate 8 is connected with the driving mechanism 6 that controlled device is controlled, and during work, this pressing plate 8 can move horizontally along smart card pickup groove 1.
As shown in Figure 3, described image acquisition and processing device comprises: image capture module 71, for gathering the smart card side image of a plurality of compressions, is converted to electric signal by the picture signal of collection; Image processing module 72, carry out binary conversion treatment for the image to the image capture module collection, generates the binary conversion treatment image, and the threshold value that this binary conversion treatment image is corresponding with default smart card side image is compared.
During work, gather the image of the smart card side compressed by image processing module 71, and carry out binary conversion treatment by image processing module 72, generate binary image.By this binary conversion treatment image, the threshold value corresponding with default smart card side image compared again, comparison result exported to output unit and exported.The average gray during binaryzation of side correspondence image when described default threshold value corresponding to smart card side image is single smart card.
Because the material of identical smart card is identical, therefore the binaryzation average gray that the image of its side is corresponding is basic identical, even because impression on smart card causes the larger gap of existence between two smart cards, because the gray scale in gap can not be identical with the side gray-scale value of smart card or be close, therefore as long as determine in image in binary image that the gray-scale value region quantity identical or close with default threshold value just can be determined the quantity of smart card, and then can to smart card, be counted more accurately.
As shown in Figure 4, the present invention also provides a kind of smart card to count chucking method, comprising:
The S10 step, gather the smart card image, specifically, and the smart card side image information that can superpose continuously by the camera collection;
The S11 step, process image binaryzation, specifically, the image gathered in the S10 step carried out to binary conversion treatment, generates binary image;
The S12 step, binary image and default threshold value are compared, specifically, the binary image threshold value corresponding with default smart card side image generated in the S11 step compared, determine and export quantity corresponding with default threshold value in binary image, the average gray during binaryzation of side correspondence image when wherein, described default threshold value corresponding to smart card side image is single smart card.Can preset respectively corresponding threshold value according to different intelligent card material.
Counting chucking method due to smart card is the image that first gathers the side of smart card, then image is carried out to binary conversion treatment generation binary image, makes the gray-scale value of the gap binary image between adjacent smart card different from the gray-scale value of the side image of smart card.Just can determine the quantity of the smart card comprised in image by the quantity of determining the zone that in binary image, gray-scale value is identical with default threshold value, and then the number card of realizing counting.With the existing several card modes existing higher precision of counting efficiency of counting mutually.
Above embodiment only, in order to technical scheme of the present invention to be described, is not intended to limit; Although with reference to previous embodiment, the present invention is had been described in detail, those of ordinary skill in the art is to be understood that: its technical scheme that still can put down in writing aforementioned each embodiment is modified, perhaps part technical characterictic wherein is equal to replacement, and these modifications or replacement do not make the essence of appropriate technical solution break away from the spirit and scope of various embodiments of the present invention technical scheme.