Card Recording Device
The card recording device employs machine learning to accurately detect card orientation and authenticity, correcting orientation issues before printing, thus ensuring correct information placement.
Patent Information
- Application Number
- JP2020188960
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Filing Date
- 2020-11-12
- Publication Date
- 2024-10-08
- Estimated Expiration
- 2040-11-12
AI Technical Summary
Existing card printers face difficulties in accurately detecting the orientation and authenticity of ID cards due to surface dirt and misalignment, leading to incorrect printing.
A card recording device uses machine learning to analyze the silhouette of a card's image, determining its orientation and authenticity through a discriminant, allowing for accurate detection and correction of orientation before printing.
Enables precise detection of card orientation and authenticity, preventing incorrect printing and ensuring information is recorded in the correct position, even with variations in silhouette position, angle, or brightness.
Smart Images

Figure 0007563123000001 
Figure 0007563123000002 
Figure 0007563123000003
Abstract
Description
[Technical field]
[0001] The present invention relates to a card recording device for performing recording on a card by printing or the like. [Background technology]
[0002] In recent years, the number of people carrying My Number cards and residence cards has been increasing, and with these ID cards used for identity verification, there is a rule that when there are changes to information about the card holder (hereafter referred to as the user), such as the address, the changes must be recorded on the back of the card.
[0003] Recently, it has become common to use card printers such as those in Patent Document 1 to record the changes. A card is inserted into a card printer installed in a government office, etc., and the changes can be printed on the card by the printing unit inside the card printer.
[0004] In order for the card printer to correctly print the changes, the card needs to be inserted into the card printer in the correct position according to the configuration of the printing unit, etc., and then transported to the printing unit.
[0005] For example, if a user inserts a card into a card printer in the wrong orientation, the card printer may not be able to print correctly, and if the orientation of the card is incorrect, the card printer needs to detect this as an error and take appropriate action. For example, Patent Document 2 describes a method of optically detecting the front and back and the front and back of a card using a reflective optical sensor. [Prior art documents] [Patent documents]
[0006] [Patent Document 1] JP 2010-262420 A [Patent Document 2] JP 2010-134571 A Summary of the Invention [Problem to be solved by the invention]
[0007] However, when using a reflective optical sensor as in Patent Document 2, it is difficult to stably detect authenticity with high accuracy depending on the degree of dirt on the face of the bill, etc. Also, authenticity may not be detected if the position where the detection light hits is shifted.
[0008] The present invention has been made in consideration of the above problems, and has an object to provide a card recording device and the like that can accurately detect whether the orientation of a card is correct. [Means for solving the problem]
[0009] The present invention, which aims to solve the above-mentioned problems, is a card recording device that records on a card, and uses a discriminant obtained in advance by performing machine learning on an image of the card to determine whether the orientation of the card is correct from the characteristics of an image of the card, and when the result of the determination shows that the orientation of the card is correct, records on the card. The discriminant is obtained by performing machine learning on an image showing only the silhouette of a card, and the judgment is performed using an image showing only the silhouette of the card obtained by photographing the card. The card recording device is characterized by the above.
[0010] In the present invention, a discriminant obtained in advance by machine learning is used to determine whether the orientation of a card is correct or not from the characteristics of an image of the card, and if the orientation of the card is correct, it is recorded on the card. In this way, by using the discriminant obtained by machine learning, it is possible to accurately detect whether the orientation of a card is correct or not.
[0011] The discriminant formula may be obtained by performing machine learning on an image of a portion of the card, and the judgment may be made using the image of the portion of the card obtained by photographing the card. This makes it possible to reduce the size of the image used for correctness detection, making it possible to miniaturize the camera and shorten the imaging time.
[0012] In the present invention, The discriminant is the silhouette of the card Show onlyThe determination is made by performing machine learning on the image, and the silhouette of the card is obtained by photographing the card. Show only This is done using images. R . The card recording device of the present invention has, for example, a light-projecting unit and a light-receiving unit arranged to sandwich the card, and a camera that photographs the card by receiving light emitted from the light-projecting unit with the light-receiving unit. In the case of cards with distinctive shapes, authenticity can be detected from the silhouette (outline) image, enabling highly accurate judgment that is not influenced by the image information on the face of the card. Authenticity detection can also be performed effectively even if there are variations in the silhouette's position, angle, and brightness, or if the silhouette is distorted.
[0013] It is also preferable to determine whether the front and back of the card are correct based on the presence or absence of a facial image in the photographed image of the card, and if the result of the determination shows that the front and back and orientation of the card are correct, record this on the card. This allows us to determine whether the front and back of the card are correct, as well as the orientation of the card. Furthermore, since the detection of whether the front and back of the card are correct is performed based on the presence or absence of a face image, machine learning only needs to be performed on the orientation of the card, and the burden of creating a discriminant equation does not increase.
[0014] The card recording device performs recording on the card by, for example, printing. The card recording device records on a card by printing, such as the card printer, and by carrying out the correctness detection process, printing in the wrong position is prevented.
[0015] It is also preferable that, if the orientation of the card is incorrect, the card recording device corrects the orientation of the characters to be printed and prints on the card. If the orientation of the card is incorrect, the orientation of the characters to be printed can be corrected and then printed on the card, allowing printing to be performed correctly even if the card orientation is incorrect. Effect of the Invention
[0016] According to the present invention, it is possible to provide a card recording device and the like that can accurately detect whether the orientation of a card is correct or incorrect. [Brief description of the drawings]
[0017] [Figure 1] FIG. 1 shows a schematic configuration of a print system 10. [Diagram 2] FIG. 2 is a diagram showing the hardware configuration of a control device 11. [Diagram 3] FIG. 2 shows the hardware configuration of a computer 2. [Figure 4] A diagram showing card 3. [Diagram 5] 4 is a flowchart showing the operation of the card printer 1. [Figure 6] Example of image 100 for card 3. [Figure 7] A diagram explaining machine learning. [Figure 8] An example of rotating change C etc. by 180 degrees. [Figure 9] FIG. 2 is a diagram for explaining correct / incorrect detection using an image 100 of a portion of a card 3. [Figure 10] FIG. 2 is a diagram for explaining true / false detection using a silhouette image 100. [Figure 11] 4 is a flowchart showing the operation of the card printer 1. [Figure 12] A diagram explaining machine learning. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0018] Hereinafter, preferred embodiments of the present invention will be described in detail with reference to the drawings.
[0019] (1. Print System 10) 1 is a diagram showing a schematic configuration of a printing system 10 having a card printer 1 according to an embodiment of the present invention. As shown in FIG.
[0020] The card printer 1 is a card recording device that performs recording by printing on a card 3. The card 3 is, for example, an ID card (identification card) such as a residence card, a My Number card, a special permanent resident card, or a driver's license, used to verify the identity of a user who possesses the card 3. The card printer 1 of this embodiment prints the details of changes made to information about a user (hereinafter referred to as user information), such as an address, on the back of the card 3, and is installed, for example, in a government office.
[0021] The card printer 1 has a control device 11, a camera 12, a printing unit 13, a transport unit 14, etc. housed within a housing 15.
[0022] The control device 11 controls each section of the card printer 1. Figure 2 is a diagram showing the hardware configuration of the control device 11, which has a configuration in which a control section 111, a storage section 112, a communication section 113, etc. are connected via a bus. However, the configuration of the control device 11 is not limited to this.
[0023] The control unit 111 is composed of a CPU, a ROM, a RAM, etc. The CPU loads programs related to the processing of the control device 11 stored in a storage medium such as the storage unit 112 or the ROM into a work area on the RAM and executes them. The ROM is a non-volatile memory, and permanently stores programs such as a boot program and a BIOS, data, etc. The RAM is a volatile memory, and temporarily stores programs and data loaded from the storage unit 112 or the ROM, etc., and has a work area used by the control unit 111 to perform various processes.
[0024] The storage unit 112 is a hard disk drive, a solid state drive, a flash memory, or the like, and stores programs executed by the control device 11, data necessary for executing the programs, an OS, etc. These programs and data are read and executed by the control unit 111 as necessary.
[0025] The communication unit 113 is a communication interface that mediates communication, and performs communication between each part of the card printer 1 and the computer 2, etc.
[0026] Returning to the explanation of Figure 1, the camera 12 photographs the card 3, and may be, for example, an area camera including an optical lens, an imaging element such as a CCD (Charge Coupled Device) or a CMOS (Complementary Metal-Oxide Semiconductor), an A / D (Analog / Digital) converter, etc.
[0027] The printing unit 13 prints on the card 3, and may be, for example, a known thermal transfer printer. However, the printing unit 13 is not limited to this.
[0028] The transport section 14 transports, within the housing 15, the card 3 that has been inserted into the housing 15 through an insertion port 16 of the housing 15.
[0029] In the figure, the symbol a indicates the transport path of the card 3 inside the housing 15, and in the transport unit 14, rollers 141, 142 rotate while holding the card 3 from above and below, thereby transporting the card 3 along the transport path a. In this embodiment, the rollers 141, 142 rotate forwards and backwards, causing the card 3 to travel back and forth along the transport path a, and the card 3 inserted from the insertion slot 16 is ejected from the insertion slot 16 after printing. However, the transport unit 14 is not limited to this. For example, the transport unit 14 may be one that grips the card 3 with a transport claw and transports it.
[0030] The computer 2 accepts input of changes to user information. Fig. 3 is a diagram showing the hardware configuration of the computer 2, in which a control unit 21, a storage unit 22, a display unit 23, an input unit 24, a communication unit 25, etc. are connected via a bus. However, the configuration of the computer 2 is not limited to this.
[0031] The control unit 21, the storage unit 22, and the communication unit 25 have substantially the same configurations as the control unit 111, the storage unit 112, and the communication unit 113. The display unit 23 includes a liquid crystal display or the like. The input unit 24 inputs various types of data to the computer 2, and may be, for example, a touch panel provided on the liquid crystal display of the display unit 23.
[0032] (2. Card 3) 4(a) is a schematic diagram showing an example of the front surface of the card 3. The card 3 is a substantially rectangular card substrate on which the name of the card 3, an issue number, a facial image 31 of the user, a seal of the issuer of the card 3, etc. are printed.
[0033] Figure 4(b) is a schematic diagram showing an example of the back side of card 3. The user's name, address, etc. are printed on the back side of card 3. A space 32 for entering changes to user information is also formed in a prescribed position on the back side of card 3. Card printer 1 prints and records changes to the user information, for example, changes to the user's address, in space 32.
[0034] As shown in Figure 1, the camera 12 and printing unit 13 of the card printer 1 are installed above the transport path a, and the changes to the user information are printed on the back of the card 3 as described above. Therefore, the card 3 is inserted through the insertion slot 16 with the back side facing up, as shown in Figure 4(b). In this embodiment, the correct orientation of the card 3 at this time is the orientation shown in Figure 4(b), and if the card 3 is inserted into the insertion slot 16 in an orientation rotated 180 degrees on a plane, for example, the changes cannot be printed in the correct position on the back of the card 3.
[0035] Therefore, in this embodiment, if the orientation of the card 3 inserted into the card printer 1 is incorrect, this is detected as an error by the process described below. By carrying out appropriate processing according to the detection result, it is possible to correctly print and record the changes to the user information in the entry field 32 on the back of the card 3.
[0036] (3. Processing performed by card printer 1) 5 is a flow chart showing the process carried out by card printer 1 when recording changes to user information. Each step in FIG. 5 is carried out by control device 11 of card printer 1 controlling each section of card printer 1.
[0037] When card 3 is inserted into housing 15 through insertion slot 16, card printer 1 transports card 3 to the position of camera 12, and camera 12 photographs card 3 from above to obtain an image (S1). Figure 6 shows image 100 when card 3 is correctly inserted, in which the back side of card 3 placed in the correct orientation is photographed.
[0038] The card printer 1 calculates features that indicate the characteristics of this image 100 (S2), and determines whether the card 3 has been inserted in the correct orientation using a discriminant for the features that has been obtained in advance through machine learning (S3).
[0039] Machine learning is a known process and a detailed description will be omitted, but in brief, as shown in Fig. 7(a), a large number of images 200 linked to information on whether the orientation of the card 3 is correct or incorrect are input to a computer, and a discriminant equation for the feature amounts of the images 200 that can distinguish between correct and incorrect orientations is obtained. For example, as shown in Fig. 7(b), the computer can use machine learning to find feature amounts X and Y suitable for distinguishing between correct and incorrect orientations of the card 3, and a boundary equation aX+bY=Z (a and b are constants) that uses these feature amounts X and Y to distinguish between images 200 in which the orientation of the card 3 is correct and images 200 in which the orientation of the card 3 is incorrect.
[0040] In S3, the left side of the above equation, aX+bY, is used as a discriminant, and the values X1 and Y1 of the feature quantities X and Y of image 100 calculated in S2 are substituted into the discriminant to determine whether the value of the discriminant indicates the correct orientation of card 3. In the example of Fig. 7(b), if the value of the discriminant is greater than Z, it is determined that the orientation of card 3 is correct (S4; YES), and the process proceeds to printing the changes to the user information.
[0041] At this point, card printer 1 sends image 100 captured earlier to computer 2 (S5), and computer 2 displays image 100 on display unit 23 as part of an editing screen (not shown). On the editing screen, computer 2 accepts input of changes to user information and settings for the print area for the changes, and sends the changes and information about the print area (referred to as changes, etc.) to card printer 1. When card printer 1 receives the changes, etc. (S6), it transports card 3 to printing unit 13, prints the changes in the print area in entry field 32 on the back of card 3 (S7), and ejects the printed card 3 into insertion slot 16 (S8).
[0042] On the other hand, if the value of the discriminant does not indicate the correct orientation of the card 3, for example in the example of Figure 7(b) if the value of the discriminant is smaller than Z, the card printer 1 will determine that the orientation of the card 3 is incorrect (an error) (S4; NO), will not print in the printing unit 13, and will simply eject the card 3 from the insertion slot 16 (S8), ending the process. At this time, it is also possible to output a message such as "Please insert the card correctly" on the monitor or speaker (not shown) of the card printer 1.
[0043] Note that if the orientation of the card 3 is incorrect, rather than ejecting it without printing, it is possible to carry out processing to match the orientation and then print in an appropriate position on the card 3. For example, by carrying out the processing of S5 to S6 described above and rotating the changes C received in S6 and their printing area D by 180 degrees around the center of the card 3 as shown in Figure 8, it is possible to print in the position of the entry field 32 shown in Figure 4(b).
[0044] As described above, in this embodiment, a discriminant obtained in advance by machine learning is used to determine whether the orientation of the card 3 is correct from the features of the image 100 obtained by photographing the card 3, and if the orientation of the card 3 is correct, it is recorded on the card 3. In this way, by using a discriminant obtained by machine learning, it is possible to accurately detect whether the orientation of the card 3 is correct, and this prevents printing in an incorrect position.
[0045] Furthermore, if the orientation of card 3 is incorrect, the orientation of the characters to be printed as change content C can be corrected as shown in Figure 8 and printed on card 3, thereby enabling correct printing even if the orientation of card 3 is incorrect.
[0046] However, the present invention is not limited to the above embodiment. For example, in this embodiment, the correctness of the orientation of the card 3 is determined from the image 100 of the entire back side of the card 3, but as shown in Fig. 9(a), the correctness of the orientation of the card 3 can also be determined from the image 100 of a part of the back side of the card 3, and by reducing the size of the image 100 used for correctness detection, it is possible to reduce the size of the camera 12 and shorten the imaging time. In this case, the discriminant used in S3 (see Fig. 5) is also created using the image 200 of the range corresponding to the above-mentioned part of the card 3, as shown in Fig. 9(b).
[0047] Furthermore, the image 100 used to determine the orientation of the card 3 is not limited to one in which the face of the card is revealed, and may be an image 100 showing only the silhouette (outline) of the card 3, as shown in Fig. 10(a). As the camera 12 for capturing the image 100, one that receives light b irradiated from a light projecting unit 121 with a light receiving unit 122, as shown in Fig. 10(b), can be used, and the image 100 of the silhouette of the card 3 is obtained when the card 3 transported in the direction shown by the arrow c in the figure blocks the light b.
[0048] In this case, the discriminant used in S3 (see FIG. 5) is also created using silhouette images 200 of cards 3 as shown in FIG. 10(c). These images 200 include images with variations in the position, angle, and brightness of the silhouette, as well as distortion.
[0049] In the case of a card 3 having a distinctive shape, authenticity can be detected from the silhouette image 100 in this way, enabling highly accurate judgment that is not influenced by the image information on the face of the card. Furthermore, by using a discriminant obtained by machine learning, authenticity can be suitably detected even if there is variation or distortion in the position, angle, and brightness of the silhouette in the image 100 captured by the camera 12. As in the example of FIG. 9, it is also possible to detect whether the orientation of the card 3 is authentic by using an image of a portion of the silhouette.
[0050] In addition, in this embodiment, a discriminant equation is obtained by performing supervised machine learning using an image 200 linked to information on whether the card 3 is true or false, but by using a deep learning technique, a discriminant equation can also be obtained by performing unsupervised machine learning from an image 200 that is not linked to the information.
[0051] Furthermore, although the card printer 1 of this embodiment records changes to user information by printing them on the back of the card 3, the contents to be recorded and the surface on which they are recorded are not limited to those described above, and the recording method is not limited to printing. For example, when recording on a contact-type IC chip carried by the card 3, it is possible to perform correctness detection in the same manner as described above, and use the result to record correctly.
[0052] In this embodiment, authenticity is detected from the image 100 of the back side of the card 3, but authenticity can also be detected from the image of the front side of the card 3. The card 3 is not limited to the above-mentioned ID card.
[0053] In addition, the card printer 1 of this embodiment is a small one installed in government offices, etc., and is used to record changes to user information on ID cards, but the configuration of the card printer 1 of this embodiment can also be applied to large card printers used in factories when issuing new cards 3, and is useful for printing information such as the user's name in the correct position on the card 3.
[0054] Furthermore, the configuration of the card printer 1 is not particularly limited, and for example, the printing unit 13 may be located below the transport path a of the card 3. Whether the orientation of the card 3 is correct or not depends on the configuration of the card printer 1.
[0055] Another example of the present invention will be described below as a second embodiment. The second embodiment will be described focusing on the differences from the first embodiment, and a description of the similarities between the first embodiment and the second embodiment will be omitted.
[0056] [Second embodiment] The second embodiment is an example that determines not only the orientation of the card 3, but also whether the front and back of the card 3 are correct. That is, as described above, if the card printer 1 is designed to insert the card 3 with the back side facing up, when the card 3 is inserted with the front side facing up, this is detected as an error.
[0057] 11 is a flow chart showing the processing performed by card printer 1 when recording changes to user information in the second embodiment. Each step in FIG. 11 is executed by control device 11 of card printer 1 controlling each section of card printer 1.
[0058] In this embodiment as well, when a card 3 is inserted into the housing 15 through the insertion slot 16, the card printer 1 transports the card 3 to the position of the camera 12, and the camera 12 photographs the card 3 from above to obtain an image 100 (S11). Then, in the same manner as above, the feature amounts of the image 100 are calculated (S12).
[0059] Furthermore, the card printer 1 detects a facial image 31 from this image 100 (S13), and determines whether the front or back and orientation of the card 3 are correct based on the feature values calculated in S12 and the detection results of the facial image 31 in S13 (S14).
[0060] In this embodiment, since there is no facial image 31 on the back of card 3 as shown in FIG. 4(b), if a facial image 31 is not detected from image 100, the front and back of card 3 is determined to be correct (back side facing up), and if a facial image 31 is detected, the front and back of card 3 is determined to be incorrect.
[0061] As in the first embodiment, the correctness of the orientation of the card 3 can be determined by using a discriminant for the above-mentioned feature amounts obtained in advance by performing machine learning.
[0062] If the front and back and orientation of the card 3 are correct (S15; YES), the card printer 1 carries out processes S16 to S18 to print the changes to the user information, and ejects the printed card 3 into the insertion slot 16 (S19). The processes of S16 to S18 are similar to the processes of S5 to S7 (see FIG. 5) described in the first embodiment, so a description thereof will be omitted.
[0063] On the other hand, if either the front / back or orientation of the card 3 is incorrect (S15; NO), the card printer 1 does not print in the printing unit 13, but simply ejects the card 3 from the insertion slot 16 (S19), and ends the process. As before, it is also possible to output a message such as "Please insert the card correctly" on the monitor or speaker (not shown) of the card printer 1.
[0064] If the front and back of card 3 are incorrect, instead of ejecting it without printing, a process that matches the front and back of card 3 is performed and printing can be performed in an appropriate position on card 3. For example, if the orientation of card 3 is correct and only the front and back of card 3 are incorrect, the processes of S16 to S17 are performed, and then a card 3 reversal mechanism (not shown) provided in card printer 1 is used to reverse the front and back of card 3, so that printing can be performed correctly in entry field 32 on the back of card 3. If both the front and back and the orientation of card 3 are incorrect, the process described in FIG. 8 is further performed to allow printing to be performed correctly in the position of entry field 32 on card 3.
[0065] It is also possible to use a discriminant obtained by machine learning to determine whether not only the orientation of the card 3 but also the front and back of the card 3 are correct from the feature amount of the image 100 of the card 3. In this case, as shown in Fig. 12, a large number of images 200 linked to information on the front and back and orientation of the card 3 are input to a computer, and machine learning is performed to obtain a discriminant for the feature amount of the image 200 that can distinguish between correct and incorrect.
[0066] In this case, however, it is necessary to prepare images of the front and back of the card 3 in order to create the discriminant equation, which is time-consuming. On the other hand, in the example of Fig. 11, the front and back of the card 3 are detected as correct or incorrect based on the presence or absence of the face image 31, so machine learning only needs to be performed on the orientation of the card 3, and the burden of creating the discriminant equation does not increase.
[0067] In addition, it is also possible to use a discriminant obtained by machine learning to determine whether the type of card 3, such as a residence card, My Number card, special permanent resident card, or driver's license, is correct from the features of the image 100 of the card 3. If the card 3 inserted into the card printer 1 is not the correct type of card, it is also possible to eject it without printing.
[0068] Although the preferred embodiment of the present invention has been described above with reference to the accompanying drawings, the present invention is not limited to the above examples. It is clear that a person skilled in the art can come up with various modified or altered examples within the scope of the technical ideas disclosed in this application, and it is understood that these also naturally belong to the technical scope of the present invention. [Explanation of symbols]
[0069] 1: Card printer 2: Computer 3: Cards 10: Printing system 11: Control device 12: Camera 13: Printing Department 14: Transport section 15: Housing 16: Insertion port 31:Facial image 32: Entry column 100, 200: Images
Claims
1. A card recording device for recording on a card, Using a discriminant equation obtained by performing machine learning on images of the cards in advance, the system determines whether the card orientation is correct or incorrect based on the characteristics of the image of the card. If the result of the determination is that the card is in the correct orientation, recording is performed on the card; The discriminant formula is obtained by performing machine learning on an image showing only the silhouette of a card, The card recording device is characterized in that the judgment is made using an image showing only the silhouette of the card obtained by photographing the card.
2. The discriminant formula is obtained by performing machine learning on a part of the image of the card, 2. The card recording device according to claim 1, wherein the determination is made using an image of the portion of the card obtained by photographing the card.
3. A card recording device as described in claim 1 or claim 2, characterized in that it has a light-emitting unit and a light-receiving unit arranged to sandwich the card, and has a camera that photographs the card by receiving light irradiated from the light-emitting unit with the light-receiving unit.
4. The front and back of the card are judged to be correct based on whether or not a face image is present in the photographed image of the card.
4. The card recording device according to claim 1, wherein if the determination result shows that the front and back sides and orientation of the card are correct, recording is performed on the card.
5. 5. The card recording device according to claim 1, wherein recording is performed on the card by printing.
6. 6. The card recording device according to claim 5, wherein if the orientation of the card is incorrect, the orientation of the characters to be printed is corrected and then the characters are printed on the card.
Citation Information
Patent Citations
printer
JP2006062321A
Device and method for counterfeit prevention using miniature security mark
JP2007168435A
Image processor and image processing method
JP2008293062A
Image processor and camera
JP2009294902A
Card processor and ticket issuing machine
JP2010134571A
