JP7722073B2 - Authenticity determination device and program - Google Patents
Authenticity determination device and programInfo
- Publication number
- JP7722073B2 JP7722073B2 JP2021145311A JP2021145311A JP7722073B2 JP 7722073 B2 JP7722073 B2 JP 7722073B2 JP 2021145311 A JP2021145311 A JP 2021145311A JP 2021145311 A JP2021145311 A JP 2021145311A JP 7722073 B2 JP7722073 B2 JP 7722073B2
- Authority
- JP
- Japan
- Prior art keywords
- character
- authenticity
- image
- identification card
- pixel
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Landscapes
- Image Analysis (AREA)
Description
本発明は、真贋判定装置とそのプログラムに関する。 The present invention relates to an authenticity determination device and a program therefor.
金融機関では口座開設時に運転免許証等のIDカード(本人確認証)による本人確認が必要であるが、特殊詐欺などの犯罪目的から別人になりすまして口座開設を行うためにIDカードを偽造、変造等するケースが増えつつある。 Financial institutions require identification by ID card (personal identification) such as a driver's license when opening an account, but there has been an increase in cases where ID cards are forged or altered in order to open accounts under the guise of another person for criminal purposes such as special fraud.
通常の金融機関では、ユーザが金融機関に出向いてIDカードを提出し、金融機関側は提出されたIDカードを用いて対面により本人確認するのが一般的である。この場合、IDカードをじっくりと観察でき、カードの触感でも不自然さを検出できる。 At typical financial institutions, users go to the institution and submit their ID card, and the financial institution then uses the submitted ID card to verify the user's identity in person. In this case, the ID card can be carefully observed, and any anomalies can be detected by the feel of the card.
また特許文献1、2にはIDカードの券面をスキャナ等の読取装置で読取って得た画像からIDカードの真贋を判定する真贋判定装置が記載されており、提出されたIDカードをスキャナ等の読取装置で読取ることでIDカードの真贋判定を行うことも可能である。 Patent documents 1 and 2 also describe an authenticity determination device that determines the authenticity of an ID card from the image obtained by reading the face of the ID card with a reading device such as a scanner, and it is also possible to determine the authenticity of an ID card by reading a submitted ID card with a reading device such as a scanner.
最近ではネット銀行などインターネット上の金融機関も一般的になってきている。この種の金融機関では、スマートフォン等のカメラでIDカードの券面を撮影し、その撮影画像を金融機関に送ることで本人確認が行われるものもある。 Recently, online banks and other online financial institutions have become common. Some of these financial institutions verify identity by taking a photo of the face of your ID card with a camera on a smartphone or other device and sending the image to the financial institution.
この場合、本人確認は対面でなく画像だけで行われるので、偽造を見破るための工夫が望まれている。しかしながら、IDカードの撮影画像から偽造を検出することは難しく、オンラインでの申請等における課題となっていた。特に偽造対策としてホログラムが形成された本人確認証の場合、撮影画像にホログラムが映り込むことにより判定精度が低下するケースがあった。 In this case, identity verification is performed solely by image, rather than face-to-face, so there is a need for methods to detect counterfeits. However, it is difficult to detect counterfeits from photographed images of ID cards, posing a challenge when applying online. In particular, in the case of identity cards that incorporate holograms as a countermeasure against counterfeiting, there have been cases where the accuracy of the detection has decreased due to the hologram being visible in the photographed image.
本発明は上記の問題に鑑みてなされたものであり、本人確認証の真贋判定を好適に行うことのできる真贋判定装置等を提供することを目的とする。 The present invention was made in consideration of the above problems, and aims to provide an authenticity determination device and the like that can suitably determine the authenticity of identification cards.
前述した課題を解決するための第1の発明は、ホログラムが形成された本人確認証の真贋判定装置であって、前記本人確認証を撮影した撮影画像の所定の色成分による色画像を用い、前記本人確認証の所定範囲に形成された検査対象の文字の輪郭部分を、正の文字の輪郭部分と比較することにより、前記本人確認証の真贋判定を行う真贋判定手段を有し、前記真贋判定手段は、前記撮影画像をグレースケール変換した画像を用い、検査対象の文字の輪郭部分を正の文字の輪郭部分と比較して前記本人確認証の真贋判定を行い、前記本人確認証が真とされなかった場合に、前記色画像を用いた真贋判定を行うことを特徴とする真贋判定装置である。 The first invention for solving the above-mentioned problems is an authenticity determination device for an identification card on which a hologram is formed, which has an authenticity determination means that uses a color image of a predetermined color component of a photographed image of the identification card to determine the authenticity of the identification card by comparing the outline of a character to be inspected, which is formed in a predetermined area of the identification card, with the outline of a correct character, and the authenticity determination means uses an image obtained by converting the photographed image to grayscale to determine the authenticity of the identification card by comparing the outline of the character to be inspected with the outline of a correct character, and if the identification card is not determined to be authentic, performs an authenticity determination using the color image .
本人確認証に形成される文字は、そのフォントが予め定められている。そのため、本人確認証の所定範囲に形成された検査対象の文字の輪郭部分を正の文字の輪郭部分と比較して真贋判定を行うことで、検査対象の文字が所定のフォントで形成された真の本人確認証と、検査対象の文字が所定のフォント以外のフォントで形成された偽の本人確認証とを好適に判別できる。また撮影画像の所定の色成分による色画像を判定に用いることで、文字へのホログラムの映り込みによる判定精度の低下を抑えることができる。また、色画像による判定は、グレースケール画像による判定を行った上で本人確認証が真とされなかった場合に限定し、ホログラムの映り込みの影響が予想されない場合は色画像による判定を行わないことで、真贋判定を全体として短時間で終了できる。 The font of the characters printed on the ID card is predetermined. Therefore, authenticity determination is performed by comparing the outline of the character to be inspected, which is printed within a predetermined area of the ID card, with the outline of the correct character. This makes it possible to effectively distinguish between a genuine ID card in which the character to be inspected is printed in a predetermined font and a counterfeit ID card in which the character to be inspected is printed in a font other than the predetermined font. Furthermore, by using a color image based on a predetermined color component of the captured image for the determination, it is possible to prevent a decrease in determination accuracy due to the reflection of a hologram in the characters. Furthermore, determination using the color image is limited to cases in which the ID card is not determined to be genuine after determination using a grayscale image. If the influence of the reflection of a hologram is not expected, determination using the color image is not performed. This allows the overall authenticity determination to be completed in a short time.
第2の発明は、ホログラムが形成された本人確認証の真贋判定装置であって、前記本人確認証を撮影した撮影画像の所定の色成分による色画像を用い、前記本人確認証の所定範囲に形成された検査対象の文字の輪郭部分を、正の文字の輪郭部分と比較することにより、前記本人確認証の真贋判定を行う真贋判定手段を有し、前記真贋判定手段は、複数の前記色成分のそれぞれによる複数の前記色画像を用いた真贋判定を行うことを特徴とする真贋判定装置である。
本人確認証に形成される文字は、そのフォントが予め定められている。そのため、本人確認証の所定範囲に形成された検査対象の文字の輪郭部分を正の文字の輪郭部分と比較して真贋判定を行うことで、検査対象の文字が所定のフォントで形成された真の本人確認証と、検査対象の文字が所定のフォント以外のフォントで形成された偽の本人確認証とを好適に判別できる。また撮影画像の所定の色成分による色画像を判定に用いることで、文字へのホログラムの映り込みによる判定精度の低下を抑えることができる。また、ホログラムの映り込みの影響は、ある色成分による色画像を見たときには現れるが、別の色成分による色画像を見たときには現れないということもある。そのため、複数の色成分による複数の色画像を用いることで、真贋判定の精度を向上させることができる。
The second invention is an authenticity determination device for an identification card on which a hologram is formed, which has an authenticity determination means that determines the authenticity of the identification card by using a color image of a predetermined color component of a photographed image of the identification card and comparing the outline of a character to be inspected, which is formed in a predetermined area of the identification card, with the outline of a correct character, and is characterized in that the authenticity determination means performs authenticity determination using a plurality of color images of each of the plurality of color components.
The font of the characters formed on the identification card is predetermined. Therefore, by comparing the outline of the character to be inspected, which is formed within a predetermined area of the identification card, with the outline of the correct character, authenticity determination can be performed, thereby suitably distinguishing between a genuine identification card in which the character to be inspected is formed in a predetermined font and a counterfeit identification card in which the character to be inspected is formed in a font other than the predetermined font. Furthermore, by using a color image based on a predetermined color component of the captured image for determination, a decrease in determination accuracy due to the reflection of a hologram on the characters can be suppressed. Furthermore, the effect of the reflection of a hologram may be apparent when viewing a color image based on one color component, but not when viewing a color image based on another color component. Therefore, the accuracy of authenticity determination can be improved by using multiple color images based on multiple color components.
第3の発明は、ホログラムが形成された本人確認証の真贋判定装置であって、前記本人確認証を撮影した撮影画像の所定の色成分による色画像を用い、前記本人確認証の所定範囲に形成された検査対象の文字の輪郭部分を、正の文字の輪郭部分と比較することにより、前記本人確認証の真贋判定を行う真贋判定手段を有し、前記真贋判定手段は、正の文字の文字領域の画像において、原点から輪郭画素までのベクトルを算出し、検査対象の文字の文字領域の画像において、原点を始点とする前記ベクトルの先にある対応画素を検出し、前記対応画素が輪郭画素でない場合、前記対応画素の外側の範囲の画素を探索することで検出された輪郭画素と前記対応画素の位置の差を差異ベクトルとして算出し、前記差異ベクトルに基づく判定値により、前記本人確認証の真贋判定を行うことを特徴とする真贋判定装置である。
本人確認証に形成される文字は、そのフォントが予め定められている。そのため、本人確認証の所定範囲に形成された検査対象の文字の輪郭部分を正の文字の輪郭部分と比較して真贋判定を行うことで、検査対象の文字が所定のフォントで形成された真の本人確認証と、検査対象の文字が所定のフォント以外のフォントで形成された偽の本人確認証とを好適に判別できる。また撮影画像の所定の色成分による色画像を判定に用いることで、文字へのホログラムの映り込みによる判定精度の低下を抑えることができる。また、検査対象の文字の輪郭部分と正の文字の輪郭部分との差異を差異ベクトルによって適切に評価し、真贋判定を好適に行うことができる。
A third invention is an authenticity determination device for an identification card on which a hologram is formed, which has an authenticity determination means that determines the authenticity of the identification card by using a color image of predetermined color components in a photographed image of the identification card and comparing the outline portion of the character to be inspected, which is formed in a predetermined range on the identification card, with the outline portion of the correct character, and the authenticity determination means calculates a vector from the origin to a contour pixel in the image of the character area of the correct character, detects a corresponding pixel at the end of the vector starting from the origin in the image of the character area of the character to be inspected, and if the corresponding pixel is not a contour pixel, searches for pixels in a range outside the corresponding pixel to calculate the difference in position between the detected contour pixel and the corresponding pixel as a difference vector, and determines the authenticity of the identification card using a determination value based on the difference vector.
The font of the characters formed on the identification card is predetermined. Therefore, by comparing the outline of the character to be inspected, which is formed in a predetermined area of the identification card, with the outline of the correct character to perform authenticity determination, it is possible to appropriately distinguish between a genuine identification card in which the character to be inspected is formed in a predetermined font and a counterfeit identification card in which the character to be inspected is formed in a font other than the predetermined font. Furthermore, by using a color image based on a predetermined color component of the captured image for determination, it is possible to suppress a decrease in determination accuracy due to the reflection of a hologram on the character. Furthermore, the difference between the outline of the character to be inspected and the outline of the correct character can be appropriately evaluated using a difference vector, allowing for appropriate authenticity determination.
検査対象の文字の輪郭画素は、当該文字を第1の階調値、背景を第2の階調値とした二値画像において、注目画素が第1の階調値であり且つ注目画素の周囲8画素の全てが第1の階調値でない場合、注目画素を第2の階調値とし、それ以外の場合、注目画素を第1の階調値とする処理を行うことで、第2の階調値の画素として得られ、正の文字の輪郭画素は、当該文字を第1の階調値、背景を第2の階調値とした二値画像において、注目画素が第1の階調値であり且つ注目画素の上下左右の4画素の全てが第1の階調値でない場合、注目画素を第2の階調値とし、それ以外の場合、注目画素を第1の階調値とする処理を行うことで、第2の階調値の画素として得られることも望ましい。
前記した差異ベクトルの算出方法は、正の文字の輪郭画素に対応する検査対象の文字領域の画素を探索するものであるため、画素の探索回数が正の文字の輪郭画素の数に対応し、検査対象の文字の輪郭画素の数が多ければ1回の探索が早期に終了する。従って、上記のように、厳しい基準により正の文字の輪郭画素を少なくする一方、緩めの基準により検査対象の文字の輪郭画素を多くすることで、真贋判定を高速に行い、且つ真の本人確認証を偽と誤判定するのを抑制できる。
The contour pixels of the character to be inspected are obtained as pixels of the second gradation value by performing processing in which, in a binary image in which the character is set to a first gradation value and the background is set to a second gradation value, if the pixel of interest has the first gradation value and all of the eight pixels surrounding the pixel of interest are not the first gradation value, and the pixel of interest is set to the first gradation value in other cases; and the contour pixels of a positive character are obtained as pixels of the second gradation value by performing processing in which, in a binary image in which the character is set to a first gradation value and the background is set to a second gradation value, if the pixel of interest has the first gradation value and all of the four pixels above, below, left, and right of the pixel of interest are not the first gradation value, and the pixel of interest is set to the first gradation value in other cases.
Since the above-mentioned method of calculating the difference vector searches for pixels in the character area to be inspected that correspond to the contour pixels of the positive character, the number of pixel searches corresponds to the number of contour pixels of the positive character, and the larger the number of contour pixels of the character to be inspected, the earlier one search will be completed. Therefore, as described above, by using strict criteria to reduce the number of contour pixels of the positive character and using looser criteria to increase the number of contour pixels of the character to be inspected, it is possible to quickly determine whether the identity card is genuine and to prevent erroneous determination of a genuine identity card as fake.
前記真贋判定装置は、前記撮影画像をユーザ端末から受信する受信手段を有することが望ましい。
これにより、ユーザ端末から送信された本人確認証の撮影画像の真贋判定を真贋判定装置によって行う真贋判定システムをネットワークを利用して構築できる。
It is desirable that the authenticity determination device has a receiving means for receiving the captured image from a user terminal.
This makes it possible to construct an authenticity determination system using a network in which an authenticity determination device determines the authenticity of a photographed image of an identification card sent from a user terminal.
第4の発明は、コンピュータを、ホログラムが形成された本人確認証の真贋判定装置であって、前記本人確認証を撮影した撮影画像の所定の色成分による色画像を用い、前記本人確認証の所定範囲に形成された検査対象の文字の輪郭部分を、正の文字の輪郭部分と比較することにより、前記本人確認証の真贋判定を行う真贋判定手段を有する真贋判定装置として機能させるためのプログラムであって、前記真贋判定手段は、前記撮影画像をグレースケール変換した画像を用い、検査対象の文字の輪郭部分を正の文字の輪郭部分と比較して前記本人確認証の真贋判定を行い、前記本人確認証が真とされなかった場合に、前記色画像を用いた真贋判定を行うことを特徴とするプログラムである。
第5の発明は、コンピュータを、ホログラムが形成された本人確認証の真贋判定装置であって、前記本人確認証を撮影した撮影画像の所定の色成分による色画像を用い、前記本人確認証の所定範囲に形成された検査対象の文字の輪郭部分を、正の文字の輪郭部分と比較することにより、前記本人確認証の真贋判定を行う真贋判定手段を有する真贋判定装置として機能させるためのプログラムであって、前記真贋判定手段は、複数の前記色成分のそれぞれによる複数の前記色画像を用いた真贋判定を行うことを特徴とするプログラムである。
第6の発明は、コンピュータを、ホログラムが形成された本人確認証の真贋判定装置であって、前記本人確認証を撮影した撮影画像の所定の色成分による色画像を用い、前記本人確認証の所定範囲に形成された検査対象の文字の輪郭部分を、正の文字の輪郭部分と比較することにより、前記本人確認証の真贋判定を行う真贋判定手段を有する真贋判定装置として機能させるためのプログラムであって、前記真贋判定手段は、正の文字の文字領域の画像において、原点から輪郭画素までのベクトルを算出し、検査対象の文字の文字領域の画像において、原点を始点とする前記ベクトルの先にある対応画素を検出し、前記対応画素が輪郭画素でない場合、前記対応画素の外側の範囲の画素を探索することで検出された輪郭画素と前記対応画素の位置の差を差異ベクトルとして算出し、前記差異ベクトルに基づく判定値により、前記本人確認証の真贋判定を行うことを特徴とするプログラムである。
The fourth invention is a program for causing a computer to function as an authenticity determination device for an identification card having a hologram formed thereon, the authenticity determination device having an authenticity determination means for determining the authenticity of the identification card by using a color image of a predetermined color component of a photographed image of the identification card and comparing the outline of a character to be inspected formed in a predetermined area of the identification card with the outline of a correct character , wherein the authenticity determination means uses an image obtained by converting the photographed image to grayscale and determines the authenticity of the identification card by comparing the outline of the character to be inspected with the outline of a correct character, and if the identification card is not determined to be authentic, performs an authenticity determination using the color image .
The fifth invention is a program for causing a computer to function as an authenticity determination device for an identification card having a hologram formed thereon, the authenticity determination device having an authenticity determination means for determining the authenticity of the identification card by using a color image of a predetermined color component of a photographed image of the identification card and comparing the outline of a character to be inspected formed in a predetermined area of the identification card with the outline of a correct character, the program being characterized in that the authenticity determination means performs authenticity determination using a plurality of color images of each of the plurality of color components.
A sixth invention is a program for causing a computer to function as an authenticity determination device for an identification card on which a hologram is formed, the authenticity determination device having an authenticity determination means that determines the authenticity of the identification card by using a color image of predetermined color components in a photographed image of the identification card and comparing the outline portion of the character to be inspected, which is formed in a predetermined range on the identification card, with the outline portion of the correct character, wherein the authenticity determination means calculates a vector from the origin to a contour pixel in the image of the character area of the correct character, detects a corresponding pixel at the end of the vector starting from the origin in the image of the character area of the character to be inspected, and if the corresponding pixel is not a contour pixel, calculates the difference in position between the detected contour pixel and the corresponding pixel by searching for pixels in a range outside the corresponding pixel as a difference vector, and determines the authenticity of the identification card using a determination value based on the difference vector.
本発明により、本人確認証の真贋判定を好適に行うことのできる真贋判定装置等を提供することができる。 The present invention provides an authenticity determination device that can effectively determine the authenticity of personal identification cards.
以下、図面に基づいて本発明の好適な実施形態について詳細に説明する。 The following describes in detail a preferred embodiment of the present invention with reference to the drawings.
(1.真贋判定システム1)
図1は、本発明の実施形態に係る真贋判定装置3を有する真贋判定システム1を示す図である。真贋判定システム1は、真贋判定装置3とユーザ端末5とをネットワークを介して通信可能に接続して構成される。真贋判定システム1では、ユーザのIDカード10を撮影した撮影画像をユーザ端末5から真贋判定装置3に送信し、真贋判定装置3にて当該撮影画像からIDカード10の真贋判定を行う。
(1. Authenticity Determination System 1)
1 is a diagram showing an authenticity determination system 1 having an authenticity determination device 3 according to an embodiment of the present invention. The authenticity determination system 1 is configured by connecting the authenticity determination device 3 and a user terminal 5 via a network so that they can communicate with each other. In the authenticity determination system 1, a photographed image of a user's ID card 10 is sent from the user terminal 5 to the authenticity determination device 3, and the authenticity determination device 3 determines the authenticity of the ID card 10 from the photographed image.
図2は真贋判定装置3のハードウェア構成を示す図である。真贋判定装置3は、制御部31、記憶部32、通信部33等をバス等で接続して構成されたコンピュータにより実現できる。ただしこれに限ることは無く適宜様々な構成をとることができ、複数のコンピュータによって真贋判定装置3を実現することも可能である。 Figure 2 shows the hardware configuration of the authenticity determination device 3. The authenticity determination device 3 can be implemented by a computer configured by connecting a control unit 31, a memory unit 32, a communication unit 33, etc. via a bus or the like. However, this is not limited to this and various other configurations can be used as appropriate, and the authenticity determination device 3 can also be implemented by multiple computers.
制御部31はCPU、ROM、RAMなどから構成される。CPUは、記憶部32、ROMなどの記憶媒体に格納された真贋判定装置3の処理に係るプログラムをRAM上のワークエリアに呼び出して実行する。ROMは不揮発性メモリであり、ブートプログラムやBIOSなどのプログラム、データなどを恒久的に保持している。RAMは揮発性メモリであり、記憶部32、ROMなどからロードしたプログラムやデータを一時的に保持するとともに、制御部31が各種処理を行うために使用するワークエリアを備える。 The control unit 31 is composed of a CPU, ROM, RAM, etc. The CPU loads programs related to the processing of the authenticity determination device 3 stored in storage media such as the memory unit 32 and ROM into a work area on the RAM and executes them. The ROM is non-volatile memory and permanently stores programs such as the boot program and BIOS, as well as data. The RAM is volatile memory and temporarily stores programs and data loaded from the memory unit 32, ROM, etc., and also has a work area used by the control unit 31 to perform various processes.
記憶部32はハードディスクドライブやソリッドステートドライブ、フラッシュメモリ等であり、後述する処理に際し真贋判定装置3が実行するプログラム、プログラム実行に必要なデータ、OSなどが格納される。 The memory unit 32 is a hard disk drive, solid state drive, flash memory, etc., and stores the programs executed by the authenticity determination device 3 during the processing described below, data required for program execution, the OS, etc.
通信部33はネットワークを介した通信を媒介する通信インタフェースであり、ユーザ端末5との間で通信を行う。 The communication unit 33 is a communication interface that mediates communication via a network and communicates with the user terminal 5.
ユーザ端末5はユーザの所持する端末であり、IDカード10を撮影してその撮影画像を真贋判定装置3に送信する。ユーザ端末5としては、例えばスマートフォンやタブレット端末等の携帯端末などが用いられる。 The user terminal 5 is a terminal carried by the user, which takes a picture of the ID card 10 and transmits the captured image to the authenticity determination device 3. The user terminal 5 may be, for example, a mobile terminal such as a smartphone or tablet.
図3はユーザ端末5のハードウェア構成を示す図である。図3に示すように、ユーザ端末5は、制御部51、記憶部52、表示部53、入力部54、通信部55、カメラ56、音声入出力部57等をバス等により接続して構成される。ただしこれに限ることは無く、適宜様々な構成をとることができる。 Figure 3 is a diagram showing the hardware configuration of the user terminal 5. As shown in Figure 3, the user terminal 5 is configured by connecting a control unit 51, a memory unit 52, a display unit 53, an input unit 54, a communication unit 55, a camera 56, an audio input/output unit 57, etc. via a bus or the like. However, this is not limited to this, and various other configurations can be used as appropriate.
制御部51、記憶部52、通信部55は上述した制御部31、記憶部32、通信部33と略同様である。また表示部53は液晶パネル等のディスプレイ装置を有し、ユーザ端末5に入力を行うための入力部54としてタッチパネルが設けられている。音声入出力部57は、音声の入出力に用いるマイクやスピーカーを備える。 The control unit 51, memory unit 52, and communication unit 55 are substantially the same as the control unit 31, memory unit 32, and communication unit 33 described above. The display unit 53 has a display device such as an LCD panel, and a touch panel is provided as the input unit 54 for inputting data to the user terminal 5. The audio input/output unit 57 includes a microphone and speaker used for audio input and output.
カメラ56は、光学レンズ、CCD(Charge Coupled Device)やCMOS(Complementary Metal-Oxide Semiconductor)等の撮像素子、A/D(Analog/Digital)変換部等から構成されるエリアカメラである。カメラ56は、光学レンズを介して入力された被写体像を撮像素子により光電変換し、アナログ画像信号を生成する。そして、A/D変換部によりアナログ画像信号をデジタル画像データに変換する。 Camera 56 is an area camera composed of an optical lens, an imaging element such as a CCD (Charge Coupled Device) or CMOS (Complementary Metal-Oxide Semiconductor), an A/D (Analog/Digital) converter, etc. Camera 56 photoelectrically converts the subject image input through the optical lens using the imaging element to generate an analog image signal. The A/D converter then converts the analog image signal into digital image data.
図4は、真贋判定装置3の機能を示すブロック図である。真贋判定装置3は、受信手段301、真贋判定手段302等を有する。 Figure 4 is a block diagram showing the functions of the authenticity determination device 3. The authenticity determination device 3 has a receiving means 301, an authenticity determination means 302, etc.
受信手段301は、真贋判定装置3の制御部31が、通信部33を介してユーザ端末5からIDカード10の撮影画像を受信するものである。 The receiving means 301 allows the control unit 31 of the authenticity determination device 3 to receive a captured image of the ID card 10 from the user terminal 5 via the communication unit 33.
真贋判定手段302は、真贋判定装置3の制御部31が、ユーザ端末5から受信したIDカード10の撮影画像を用い、IDカード10の真贋判定を行うものである。この真贋判定の詳細については後述する。 The authenticity determination means 302 determines the authenticity of the ID card 10 using a photographed image of the ID card 10 received by the control unit 31 of the authenticity determination device 3 from the user terminal 5. Details of this authenticity determination will be described later.
(2.IDカード10)
IDカード10は、本実施形態において真贋判定の対象となる本人確認証である。本人確認証は、金融機関や携帯電話キャリア、各種の行政機関等で本人確認に用いられる媒体をいい、例えば在留カード、運転免許証、マイナンバーカード、特別永住者カードなどである。また本実施形態ではIDカード10に偽造対策としてホログラムが形成されているものとする。
(2. ID Card 10)
In this embodiment, the ID card 10 is an identification card that is the subject of authentication determination. An identification card is a medium used for identity verification by financial institutions, mobile phone carriers, various administrative agencies, etc., such as a residence card, driver's license, My Number card, special permanent resident card, etc. In this embodiment, the ID card 10 is assumed to have a hologram formed thereon as an anti-counterfeit measure.
図5はIDカード10(在留カード)の概略を示す図であり、IDカード10の券面情報を一部省略して模式的に示したものである。 Figure 5 is a diagram showing an outline of the ID card 10 (residence card), and is a schematic illustration with some of the information on the face of the ID card 10 omitted.
IDカード10には様々な券面情報が印刷により形成され、例えば在留カードについては、カード発行国11、在留番号12、カード所持者の生年月日13、顔画像14、在留資格15、就労制限の有無16、カードの交付年月日17、有効期限18などが券面情報の例として挙げられる。 Various information is printed on the ID card 10. For example, for a residence card, examples of the information on the card include the country of issue 11, residence number 12, date of birth of the card holder 13, facial image 14, residence status 15, whether or not there are employment restrictions 16, date of issuance of the card 17, and expiration date 18.
このうち、在留番号12、生年月日13、顔画像14、在留資格15、就労制限の有無16、交付年月日17、有効期限18などは個々のIDカード10によって異なるオンデマンド情報である。 Of these, residence number 12, date of birth 13, facial image 14, residence status 15, presence or absence of employment restrictions 16, date of issue 17, expiration date 18, etc. are on-demand information that differ depending on the individual ID card 10.
一方、在留番号12、生年月日13、在留資格15、就労制限の有無16、交付年月日17、有効期限18の記載欄を示す「番号」「生年月日」「在留資格」「就労制限の有無」「交付年月日」「このカードは…」などの文字、およびカード発行国11やIDカード10の名称(「在留カード」)等は、各IDカード10で共通に使用される。これらの文字は、オンデマンド情報の印刷前にカード基材上の決まった位置に予め形成され、プレ印刷部分と呼ばれる。 On the other hand, characters such as "number," "date of birth," "residence status," "employment restriction status," "issue date," and "this card is..." that indicate the entry fields for residence number 12, date of birth 13, residence status 15, employment restriction status 16, date of issue 17, and expiration date 18, as well as the name of the card issuing country 11 and ID card 10 ("residence card"), are common to all ID cards 10. These characters are formed in advance in a predetermined position on the card substrate before the on-demand information is printed, and are called pre-printed portions.
IDカード10は、予め上記のプレ印刷部分を形成したカード基材に前記のオンデマンド情報を印刷することで製造される。オンデマンド情報やプレ印刷部分がどのような構成となるかは、在留カード、運転免許証、マイナンバーカード、特別永住者カードなどIDカード10の種類によって異なる。 ID card 10 is manufactured by printing the on-demand information on a card substrate on which the pre-printed portion has already been formed. The configuration of the on-demand information and pre-printed portion varies depending on the type of ID card 10, such as a residence card, driver's license, My Number card, or special permanent resident card.
(3.真贋判定システム1の処理の概略)
図6は、真贋判定システム1で実行される処理の概略を示すフローチャートである。図6のS1~S2、S7~S8はユーザ端末5の制御部51がユーザ端末5の各部を制御して実行する処理であり、S3~S6は真贋判定装置3の制御部31が真贋判定装置3の各部を制御して実行する処理である。
(3. Overview of the processing of the authenticity determination system 1)
Fig. 6 is a flowchart showing an outline of the processing executed by the authenticity determination system 1. S1 to S2 and S7 to S8 in Fig. 6 are processing executed by the control unit 51 of the user terminal 5 by controlling each unit of the user terminal 5, and S3 to S6 are processing executed by the control unit 31 of the authenticity determination device 3 by controlling each unit of the authenticity determination device 3.
本実施形態では、まずユーザがユーザ端末5を操作して記憶部52に予め格納された専用のアプリケーションプログラムを立ち上げる。すると、ユーザ端末5は表示部53にメニュー画面(不図示)を表示させ、メニュー画面でのユーザの選択に応じてカメラ56を起動し、IDカード10の券面を撮影する(S1)。 In this embodiment, the user first operates the user terminal 5 to launch a dedicated application program pre-stored in the memory unit 52. The user terminal 5 then displays a menu screen (not shown) on the display unit 53, activates the camera 56 in accordance with the user's selection on the menu screen, and photographs the face of the ID card 10 (S1).
図7はこの時のIDカード10の撮影画面の例である。本実施形態では、カメラ起動時にユーザ端末5の表示部53にインストラクションを表示するなどして、所定の枠531内にIDカード10を収めるよう促してIDカード10の撮影を行う。 Figure 7 shows an example of the ID card 10 capture screen at this time. In this embodiment, when the camera is started, instructions are displayed on the display unit 53 of the user terminal 5 to prompt the user to place the ID card 10 within a specified frame 531 before capturing the ID card 10.
ユーザ端末5は、IDカード10を撮影すると、撮影画像を真贋判定装置3に送信する(S2)。撮影画像は、画素の色をR(赤)、G(緑)、B(青)の各成分の階調値により定めたカラー画像(RGB画像)である。真贋判定装置3は、IDカード10の撮影画像を受信する(S3)と、撮影画像を用いてIDカード10の真贋を判定する(S4)。 When the user terminal 5 photographs the ID card 10, it transmits the photographed image to the authenticity determination device 3 (S2). The photographed image is a color image (RGB image) in which the pixel colors are determined by the gradation values of the R (red), G (green), and B (blue) components. The authenticity determination device 3 receives the photographed image of the ID card 10 (S3) and uses the photographed image to determine the authenticity of the ID card 10 (S4).
本実施形態の真贋判定は、真のIDカード10では券面の文字に所定のフォントが使用されることに基づいて行う。真贋判定方法の詳細については後述する。 In this embodiment, authenticity is determined based on the fact that a genuine ID card 10 uses a specific font for the characters on the face of the card. Details of the authenticity determination method will be described later.
真贋判定装置3は、IDカード10が真でないと判定した場合(S5;NO)、IDカード10が真でない旨をユーザ端末5に送信する(S6)。ユーザ端末5は、IDカード10が真でない旨を受信すると(S7)、これを表示部53に表示し(S8)、処理を終了する。 If the authenticity determination device 3 determines that the ID card 10 is not genuine (S5; NO), it transmits a message to the user terminal 5 indicating that the ID card 10 is not genuine (S6). When the user terminal 5 receives a message indicating that the ID card 10 is not genuine (S7), it displays this on the display unit 53 (S8) and ends the process.
一方、真贋判定装置3は、IDカード10を真と判定した場合(S5;YES)、真贋判定処理を完了する。例えばインターネット上の金融機関で口座を開設する際の本人確認として上記真贋判定を行う場合、真贋判定処理の後、口座開設に必要な情報としてIDカード10の券面のユーザ情報(氏名や生年月日など)をIDカード10の撮影画像から取得してその登録を行い、記憶部52にユーザ情報を記憶することができる。 On the other hand, if the authenticity determination device 3 determines that the ID card 10 is authentic (S5; YES), it completes the authenticity determination process. For example, when performing the above-mentioned authenticity determination as identity verification when opening an account at an online financial institution, after the authenticity determination process, user information (such as name and date of birth) on the face of the ID card 10 can be obtained from a photographed image of the ID card 10 as information required to open the account, and this information can be registered, and the user information can be stored in the memory unit 52.
(3-1.文字の形状面に基づく真贋判定)
前記したように、本実施形態では、真のIDカード10の券面の文字に所定のフォントが使用されることに基づいて、文字の形状面からS4(図6参照)の真贋判定を行う。
(3-1. Authenticity determination based on character shape)
As described above, in this embodiment, the authenticity of the genuine ID card 10 is determined in step S4 (see FIG. 6) based on the shape of the characters, which are printed on the face of the genuine ID card 10 using a predetermined font.
すなわち、IDカード10のプレ印刷部分やオンデマンド情報の文字は、所定範囲に所定のフォントで形成されている。従って、IDカード10の撮影画像から抽出した所定範囲の文字と、真のIDカード10で当該所定範囲に使用されている正の文字とを形状面から比較することで、正のIDカード10とは異なるフォントを用いた偽のIDカード10を判別することができる。 In other words, the characters in the pre-printed portion of the ID card 10 and on-demand information are printed in a specified font within a specified range. Therefore, by comparing the shape of the characters within a specified range extracted from the photographed image of the ID card 10 with the correct characters used in that specified range on the genuine ID card 10, it is possible to identify a fake ID card 10 that uses a different font than the correct ID card 10.
図8は、前記のS4(図6参照)における真贋判定方法の手順を示すフローチャートである。 Figure 8 is a flowchart showing the steps of the authenticity determination method in S4 (see Figure 6).
本実施形態では、S4において、まずIDカード10の撮影画像(RGB画像)の所定範囲をグレースケール変換し、グレースケール画像を作成する。また撮影画像の所定範囲に関し、所定の色成分としてB成分、R成分を抽出し、これらの色成分による色画像、すなわちB成分の階調値による画像(以下、B画像という)とR成分の階調値による画像(以下、R画像という)を作成する(S401)。上記の所定範囲は、検査対象の文字が存在する範囲として予め設定することができ、本実施形態では前記したプレ印刷部分の文字が形成された範囲とする。 In this embodiment, in S4, a predetermined range of the captured image (RGB image) of the ID card 10 is first converted to grayscale to create a grayscale image. Furthermore, for the predetermined range of the captured image, the B component and R component are extracted as predetermined color components, and color images based on these color components, i.e., an image based on the gradation values of the B component (hereinafter referred to as the B image) and an image based on the gradation values of the R component (hereinafter referred to as the R image), are created (S401). The above-mentioned predetermined range can be set in advance as the range in which the characters to be inspected exist, and in this embodiment, it is the range in which the characters in the pre-printed portion described above are formed.
次に、真贋判定装置3は、グレースケール画像を二値化する(S402)。グレースケール画像は、画素の明度を0~255の階調値で示す画像とし、階調値0を黒、階調値255を白とする。また二値画像は、文字部分を黒の画素(第1の階調値の画素)とし、背景部分を白の画素(第2の階調値の画素)とした画像とする。これは後述する他の二値画像でも同様である。ただし、グレースケール画像の仕様や二値画像の表現は上記に限らない。 Next, the authenticity determination device 3 binarizes the grayscale image (S402). A grayscale image is an image in which pixel brightness is expressed using a gradation value between 0 and 255, with a gradation value of 0 being black and a gradation value of 255 being white. A binary image is an image in which the text portion is represented by black pixels (pixels with a first gradation value) and the background portion is represented by white pixels (pixels with a second gradation value). This is also true for other binary images, which will be described later. However, the specifications of grayscale images and the representation of binary images are not limited to those described above.
次に、真贋判定装置3は、二値化後の画像について、検査対象の文字の範囲(文字範囲という)を切り出す(S403)。 Next, the authenticity determination device 3 extracts the range of characters to be inspected (referred to as the character range) from the binarized image (S403).
切り出し方法は特に限定されないが、本実施形態では、まず、図9(a)に示すように、二値化後の画像100において黒画素が存在する列101と行102を検出する。そして、図9(b)に示すように、黒画素の存在する列101が画像100の中心に近い位置で所定数以上連続する領域を101aとし、黒画素の存在する行102が、同じく画像100の中心に近い位置で所定数以上連続する領域を102aとし、領域101a、102aからなる範囲100aを抽出する。 The extraction method is not particularly limited, but in this embodiment, first, as shown in Figure 9(a), columns 101 and rows 102 containing black pixels are detected in the binarized image 100. Then, as shown in Figure 9(b), a region 101a is defined as a region where a predetermined number or more of columns 101 containing black pixels are consecutive and located near the center of the image 100, and a region 102a is defined as a region where a predetermined number or more of rows 102 containing black pixels are consecutive and located near the center of the image 100, and a range 100a consisting of regions 101a and 102a is extracted.
真贋判定装置3は、必要に応じて、抽出した範囲100aについて図9(a)、(b)の処理を行い、図9(c)に示すように最終的に抽出された範囲200を文字範囲とする。上記の所定数は例えば10ドットとするが、これに限定されない。図10(a)は、検査対象の文字をIDカード10のプレ印刷部分の「留」の文字とし、S402~S403の処理により「留」の文字範囲200を切り出した例である。 The authenticity determination device 3 performs the processes shown in Figures 9(a) and (b) on the extracted range 100a as necessary, and determines the final extracted range 200 as shown in Figure 9(c) as the character range. The above-mentioned predetermined number is, for example, 10 dots, but is not limited to this. Figure 10(a) shows an example in which the character to be inspected is the character "tome" in the pre-printed portion of the ID card 10, and the character range 200 of "tome" is extracted by the processes of S402 and S403.
真贋判定装置3は、図10(b)に示すように、文字範囲200の切り出しを行った元のグレースケール画像20について、その解像度(dpi)を、上記の文字範囲200が所定サイズとなるように変換する(S404)。 As shown in Figure 10(b), the authenticity determination device 3 converts the resolution (dpi) of the original grayscale image 20 from which the character range 200 was extracted so that the character range 200 has a predetermined size (S404).
本実施形態では、上記の所定サイズとして、縦横のドット数を複数(本実施形態では89、90、91の3つ)設定し、文字範囲200がこれらのサイズとなるように変換した複数のグレースケール画像20’について後述するS405~S410の処理を行う。これは撮影画像のノイズの影響を減らし、判定精度を向上させるためである。しかしながら、上記の所定サイズは1つとしてもよいし、具体的なサイズも特に限定されない。解像度変換時の倍率は、上記のドット数に、元のグレースケール画像20の文字範囲200の縦横のドット数のうち大きい方のドット数を合わせる倍率とし、解像度変換には例えばBicubic法を用いることができる。 In this embodiment, the predetermined size is set to multiple numbers of dots in both the vertical and horizontal directions (in this embodiment, three numbers: 89, 90, and 91), and the processing of S405 to S410 described below is performed on multiple grayscale images 20' converted so that the character range 200 has these sizes. This is to reduce the influence of noise in the captured image and improve judgment accuracy. However, the predetermined size may be set to one, and the specific size is not particularly limited. The magnification during resolution conversion is set to a magnification that combines the above number of dots with the larger of the number of dots in both the vertical and horizontal directions of the character range 200 in the original grayscale image 20, and the resolution conversion can be performed using, for example, the bicubic method.
真贋判定装置3は、次に、グレースケール画像20’から検査対象の文字を再度切り出し、文字画像を作成する(S405)。ここでは、図10(c)に示すように、文字画像300の範囲を、その中心Cがグレースケール画像20’における文字範囲200の中心と一致する、前記所定サイズよりも大きいサイズ(例えば縦横104ドット)の範囲とするが、これに限ることはない。 The authenticity determination device 3 then re-extracts the character to be inspected from the grayscale image 20' and creates a character image (S405). Here, as shown in Figure 10(c), the range of the character image 300 is set to a range whose center C coincides with the center of the character range 200 in the grayscale image 20' and is larger than the predetermined size (for example, 104 dots vertically and horizontally), but is not limited to this.
次に、真贋判定装置3は、文字画像300についてノイズ除去処理を行う(S406)。本実施形態では、ノイズ除去処理としてローパスフィルタ処理と膨張収縮処理を行い、これにより高周波の階調値変化(ノイズ)を除去する。 Next, the authenticity determination device 3 performs noise removal processing on the character image 300 (S406). In this embodiment, low-pass filtering and expansion/contraction processing are performed as noise removal processing, thereby removing high-frequency gradation value changes (noise).
本実施形態では、S406において、まず、文字画像300のローパスフィルタ処理を行う。ローパスフィルタ処理は既知であるが、例えば本実施形態では、下式(1)に示すように、文字画像300の注目画素を中心とする一定範囲の各画素の階調値pnに、各画素の位置に応じた係数kn(重み付け係数)を掛けてその総和Σ(pn×kn)を算出し、この総和Σ(pn×kn)を係数knの総和Σknで割って注目画素の階調値p0’とする処理を、文字画像300の各画素を注目画素として行う。
p0’=Σ(pn×kn)/Σkn…(1)
In this embodiment, in S406, first, low-pass filtering is performed on the character image 300. Low-pass filtering is a known technique, but in this embodiment, for example, as shown in the following equation (1), the gradation value pn of each pixel in a certain range centered on a pixel of interest in the character image 300 is multiplied by a coefficient kn (weighting coefficient) corresponding to the position of each pixel to calculate the sum Σ(pn×kn), and this sum Σ(pn×kn) is then divided by the sum Σkn of the coefficients kn to obtain the gradation value p0′ of the pixel of interest, and this process is performed with each pixel of the character image 300 as the pixel of interest.
p0'=Σ(pn×kn)/Σkn…(1)
ただし本実施形態では、上記の総和Σ(pn×kn)、Σknを、上記一定範囲内の画素のうち、その階調値pnと注目画素の元の階調値p0との差が所定値未満である画素について算出する。総和Σ(pn×kn)、Σknの算出にあたり、注目画素との階調値の差が大きい画素を考慮しないことで、文字周囲のエッジがボケないようにローパスフィルタ処理を実行できる。上記の所定値は例えば30とするが、これに限ることはない。 However, in this embodiment, the above sums Σ(pn×kn) and Σkn are calculated for pixels within the above range where the difference between their gradation value pn and the original gradation value p0 of the pixel of interest is less than a predetermined value. By not taking into account pixels with gradation values that differ greatly from the pixel of interest when calculating the sums Σ(pn×kn) and Σkn, low-pass filtering can be performed to prevent the edges around the characters from becoming blurred. The above predetermined value is, for example, 30, but is not limited to this.
S406では、ローパスフィルタ処理後の文字画像300について、さらに、文字部分の膨張収縮処理を行う。膨張収縮処理は既知であるが、例えば本実施形態では、注目画素の階調値を、注目画素を中心とする一定範囲の画素の階調値のうち最も大きな値に置き換える処理を、文字画像300の各画素を注目画素として行う。これにより文字部分を収縮させた後、上記とは逆に、注目画素の階調値を、注目画素を中心とする一定範囲の画素の階調値のうち最も小さい値に置き換える処理を、文字画像300の各画素を注目画素として行う。こうして収縮後の文字部分を膨張させることで、文字部分の輪郭が整形されてノイズが減少する。 In S406, the character portion of the character image 300 after low-pass filtering is further expanded or contracted. Expansion or contraction processes are known, but in this embodiment, for example, the process replaces the gradation value of a pixel of interest with the largest gradation value of pixels in a certain range centered on the pixel of interest, with each pixel of the character image 300 serving as the pixel of interest. After contracting the character portion in this way, the reverse process is performed, whereby the gradation value of the pixel of interest is replaced with the smallest gradation value of pixels in a certain range centered on the pixel of interest, with each pixel of the character image 300 serving as the pixel of interest. By expanding the character portion after contraction in this way, the outline of the character portion is shaped and noise is reduced.
最後に、文字画像300のトリミング処理を行うことで、S406の処理を終了する。トリミングにより除去する部分は、文字画像300の外縁の所定幅の部分とし、その幅はS407の処理で設定した各一定範囲のサイズに応じて定める。 Finally, the processing in S406 is terminated by performing a trimming process on the character image 300. The portion to be trimmed away is a predetermined width of the outer edge of the character image 300, and this width is determined according to the size of each fixed range set in the processing in S407.
その後、真贋判定装置3は、文字画像300の二値化処理を行う(S407)。 Then, the authenticity determination device 3 performs binarization processing on the character image 300 (S407).
本実施形態では、真贋判定に用いる正のデータとして、検査対象の文字(本実施形態では「留」)の正の二値画像が予め真贋判定装置3の記憶部32に登録されている。S407では、正のデータとの比較の上で最適な二値化を行うため、二値化の際の閾値を正のデータとの比較により決定する。 In this embodiment, a positive binary image of the character to be inspected (in this embodiment, "tome") is registered in advance in the memory unit 32 of the authenticity determination device 3 as the positive data to be used for authenticity determination. In S407, the threshold value for binarization is determined by comparison with the positive data to perform optimal binarization after comparison with the positive data.
より具体的には、まず文字画像300について、階調値ごとの画素数を示すヒストグラムを作成する。そして、図11(a)に示すように、文字画像300に登場する階調値Vの最小値と最大値の間を均等に分割し、その分割値Dnと各分割区間Dの中心値Cnを設定する。設定方法は様々であるが、この例では分割区間D内の最小の階調値Vが分割値Dnとなっており、分割値Dnの最大値は文字画像300に登場する階調値Vの最大値より1大きい。また中心値Cnは上下の分割値Dnの平均により算出できる。分割区間Dの数は実際には16程度とするが、図11の例では説明のためその数を3としている。 More specifically, a histogram showing the number of pixels for each gradation value is first created for character image 300. Then, as shown in Figure 11(a), the range between the minimum and maximum gradation values V appearing in character image 300 is equally divided, and the division values Dn and the center value Cn of each division interval D are set. There are various methods for setting this, but in this example, the minimum gradation value V within division interval D is the division value Dn, and the maximum value of division value Dn is 1 greater than the maximum gradation value V appearing in character image 300. The center value Cn can also be calculated by averaging the upper and lower division values Dn. In reality, the number of division intervals D is approximately 16, but for the sake of explanation, the number is set to 3 in the example of Figure 11.
次に、それぞれの分割区間Dについて、分割区間D内の各階調値V、および、各階調値Vの画素数Sを用い、下式(2)により重心値Mnを算出する。そして、図11(b)に示すように、上下の分割区間Dの重心値Mnの平均により新たな分割値Dnを算出し、これにより前記の分割値Dn(分割値Dnの最大値と最小値を除く)を更新する。
Mn=Σ(V・S)/ΣS…(2)
Next, for each divided section D, the center of gravity value Mn is calculated using the following formula (2) using each gradation value V within the divided section D and the number of pixels S for each gradation value V. Then, as shown in Figure 11(b), a new divided value Dn is calculated by averaging the center of gravity values Mn of the upper and lower divided sections D, and the divided value Dn (excluding the maximum and minimum values of the divided value Dn) is updated accordingly.
Mn = Σ(V・S)/ΣS…(2)
そして、図11(c)に示すように、更新後の新たな分割値Dnを用いて前記と同様に新たな中心値Cnを算出し、これにより前記の中心値Cnを更新する。図11(a)~(c)の処理を、新たな中心値Cnと更新前の中心値Cnの間に差異が無くなるまで繰り返し、処理終了時の分割値Dn(分割値Dnの最小値を除く)を閾値に設定する。これにより複数の閾値が得られる。なお重心値Mn以外の各値は整数値であり、上記の処理においては、算出された値を必要に応じて四捨五入等により整数化する。 Then, as shown in Figure 11(c), a new center value Cn is calculated in the same manner as above using the new updated divided value Dn, and the center value Cn is updated accordingly. The processes in Figures 11(a) to (c) are repeated until there is no difference between the new center value Cn and the center value Cn before the update, and the divided value Dn at the end of the process (excluding the smallest divided value Dn) is set as the threshold. This results in multiple thresholds. Note that all values other than the center of gravity value Mn are integer values, and in the above process, the calculated values are rounded off or otherwise converted to integers as necessary.
真贋判定装置3は、各閾値により文字画像300を二値化し、その際の黒の画素の数を正のデータの黒の画素の数と比較し、差が最も小さくなる閾値を、最終的な閾値とする。S407では、この閾値により文字画像300を二値化することで、正のデータとの比較の上で最適な二値化を行うことができる。 The authenticity determination device 3 binarizes the character image 300 using each threshold value, compares the number of black pixels obtained in this process with the number of black pixels in the positive data, and determines the threshold value that produces the smallest difference as the final threshold value. In S407, the character image 300 is binarized using this threshold value, thereby enabling optimal binarization in comparison with the positive data.
図12(a)はS407の処理で得られる二値画像400の例であり、真贋判定装置3は、この二値画像400について、ノッチ削除処理を行う(S408)。 Figure 12(a) is an example of a binary image 400 obtained by processing in S407, and the authenticity determination device 3 performs notch removal processing on this binary image 400 (S408).
削除するノッチは細かな(例えば1ドット単位の)凹凸であり、本実施形態では、二値画像400の注目画素を中心とする一定範囲について、図12(b)に示すように、ノッチの存在するパターンを検出した時に当該パターンをノッチの存在しないパターンに置き換える処理を、二値画像400の各画素を注目画素として行う。ノッチの存在するパターンとノッチの存在しないパターンは1対1で対応し、白の画素のノッチと黒の画素のノッチのそれぞれについて図12(b)の例以外にも複数用意される。 The notches to be removed are fine (for example, one-dot) irregularities, and in this embodiment, for a certain range centered on a pixel of interest in binary image 400, as shown in Figure 12(b), when a pattern with a notch is detected, the pattern is replaced with a pattern without a notch, and this process is performed with each pixel of binary image 400 as the pixel of interest. There is a one-to-one correspondence between patterns with notches and patterns without notches, and multiple notches for white pixels and black pixels are prepared in addition to the example shown in Figure 12(b).
本実施形態では、上記の置き換え処理を行った後の二値画像400について、必要に応じて、再度同じ置き換え処置を行う。これにより、二値画像400に存在する細かな凹凸を確実に削除し、真贋判定の精度を向上させることができる。 In this embodiment, the same replacement process is performed again, if necessary, on the binary image 400 after the above replacement process. This ensures that any small irregularities present in the binary image 400 are removed, improving the accuracy of authenticity determination.
次に、真贋判定装置3は、ノッチ削除後の二値画像400について、文字の輪郭抽出処理を行って検査画像を作成する(S409)。 Next, the authenticity determination device 3 performs character contour extraction processing on the binary image 400 after notch removal to create an inspection image (S409).
本実施形態では、図13(a)に示すように、二値画像400の注目画素について、注目画素が黒(第1の階調値)であり且つ注目画素の周囲8画素の少なくともいずれかが白(第2の階調値)の場合、注目画素を白とし、それ以外の場合は注目画素を黒とする処理を、二値画像400の各画素を注目画素として行う。これにより、図13(b)に示すように文字の輪郭画素を白で示す検査画像500を作成する。 In this embodiment, as shown in Figure 13(a), for a pixel of interest in binary image 400, if the pixel of interest is black (first gradation value) and at least one of the eight pixels surrounding the pixel of interest is white (second gradation value), the pixel of interest is set to white; otherwise, the pixel of interest is set to black. This process is performed on each pixel of binary image 400 as the pixel of interest. This creates an inspection image 500 in which the outline pixels of characters are shown in white, as shown in Figure 13(b).
一方、本実施形態では、図13(c)に示すように、正のデータについても、同様の輪郭抽出処理を行って正の輪郭画像を得る。ただし、輪郭抽出の際の条件は上記とは異なり、正のデータ(二値画像)の注目画素について、注目画素が黒(第1の階調値)であり且つ注目画素の上下左右の4画素の少なくともいずれかが白(第2の階調値)の場合、注目画素を白とし、それ以外の場合は注目画素を黒とする。これにより、正のデータについても、図13(d)に示すように文字の輪郭画素を白で示す正の輪郭画像Rが作成される。 In contrast, in this embodiment, as shown in Figure 13(c), a similar contour extraction process is performed on positive data to obtain a positive contour image. However, the conditions for contour extraction are different from those described above. For a pixel of interest in positive data (binary image), if the pixel of interest is black (first gradation value) and at least one of the four pixels above, below, left, and right of the pixel of interest is white (second gradation value), the pixel of interest is set to white; otherwise, the pixel of interest is set to black. As a result, a positive contour image R is created for positive data as well, as shown in Figure 13(d), in which the contour pixels of the character are shown in white.
図13(a)と図13(c)の比較で分かるように、輪郭抽出時の条件は、注目画素の上下左右の4画素のみで白の画素を探索する正のデータの方が、注目画素の周囲8画素で白の画素を探索する二値画像400よりも厳しくなっており、そのため正の輪郭画像Rでは、検査画像500よりも輪郭画素の数が少なくなっている。 As can be seen from a comparison of Figures 13(a) and 13(c), the conditions for contour extraction are stricter for the positive data, which searches for white pixels within only the four pixels above, below, left, and right of the pixel of interest, than for the binary image 400, which searches for white pixels within the eight pixels surrounding the pixel of interest. As a result, the positive contour image R has fewer contour pixels than the inspection image 500.
真贋判定装置3は、次に、検査画像500の輪郭部分と正の輪郭画像Rの輪郭部分とを比較し、これらの輪郭部分の差異に基づき、真贋判定に用いる判定値を算出する(S410)。 The authenticity determination device 3 then compares the contour portion of the inspection image 500 with the contour portion of the correct contour image R, and calculates a determination value to be used for authenticity determination based on the difference between these contour portions (S410).
本実施形態では、まず図14(a)に示すように、検査画像500と正の輪郭画像Rのそれぞれについて、輪郭画素に外接する矩形領域を文字領域t、rとして抽出する。文字領域t、rは、画像(検査画像500、正の輪郭画像R)内で最も左に位置する輪郭画素と最も右に位置する輪郭画素との間を横方向の範囲、画像内で最も上に位置する輪郭画素と最も下に位置する輪郭画素との間を縦方向の範囲とした領域となる。 In this embodiment, as shown in Figure 14(a), rectangular regions circumscribing the contour pixels are first extracted as character regions t and r for each of the inspection image 500 and the positive contour image R. The character regions t and r are regions whose horizontal range is between the leftmost and rightmost contour pixels in the image (inspection image 500, positive contour image R) and whose vertical range is between the topmost and bottommost contour pixels in the image.
真贋判定装置3は、図14(b)に示すように、正の輪郭画像Rの文字領域rの輪郭画素について、文字領域rの原点о(Xr0,Yr0)からのベクトルv(xr,yr)を求める。そして、図14(c)に示すように、検査画像500の文字領域tの原点501(Xt0,Yt0)を始点とする上記ベクトルvの先にある対応画素502を検出する。 As shown in Figure 14(b), the authenticity determination device 3 calculates a vector v (xr, yr) from the origin o (Xr0, Yr0) of the character region r for the contour pixels of the character region r in the positive contour image R. Then, as shown in Figure 14(c), it detects the corresponding pixel 502 at the end of the vector v, which starts from the origin 501 (Xt0, Yt0) of the character region t in the inspection image 500.
対応画素502が輪郭画素でない場合、対応画素502を中心とする文字領域tの一定範囲(以下、探索範囲ということがある)において、対応画素502の近傍から外側に向かって順に画素を探索する。具体的な探索順は特に限定されない。そして、最初に検出された輪郭画素と対応画素502の位置の差を差異ベクトルVec(x,y)として記憶部32に記録する。対応画素502が輪郭画素の場合は、(0,0)を差異ベクトルVec(x,y)として記録する。なお原点о(Xr0,Yr0)、原点501(Xt0,Yt0)はそれぞれ文字領域r、tの左上部分の画素とするが、これに限らない。 If the corresponding pixel 502 is not a contour pixel, pixels are searched for in a certain range of the character area t centered on the corresponding pixel 502 (hereinafter sometimes referred to as the search range), starting from the vicinity of the corresponding pixel 502 and moving outwards. The specific search order is not particularly limited. The difference in position between the first detected contour pixel and the corresponding pixel 502 is then recorded in the memory unit 32 as a difference vector Vec(x,y). If the corresponding pixel 502 is a contour pixel, (0,0) is recorded as the difference vector Vec(x,y). Note that the origin o(Xr0,Yr0) and origin 501(Xt0,Yt0) are pixels in the upper left corners of the character areas r and t, respectively, but are not limited to this.
真贋判定装置3は、正の輪郭画像Rの文字領域rの各輪郭画素について上記の手順で差異ベクトルVec(x,y)を算出し、その総和ΣVec(x,y)を求め、Vec(x,y)の平均値avgVec(x,y)を以下の式(3)で算出する。Nは差異ベクトルVecの総数すなわち文字領域rの輪郭画素の数である。
avgVec(x,y)=(1/N)ΣVec(x,y)…(3)
The authenticity determination device 3 calculates the difference vector Vec(x,y) for each contour pixel in the character region r of the positive contour image R using the above procedure, calculates the sum ΣVec(x,y), and calculates the average value avgVec(x,y) of Vec(x,y) using the following equation (3), where N is the total number of difference vectors Vec, i.e., the number of contour pixels in the character region r.
avgVec(x,y)=(1/N)ΣVec(x,y)…(3)
真贋判定装置3は、avgVecの両要素x,yの絶対値が0.5未満であれば処理を終了し、当該avgVecを得た時の差異ベクトルVec(x,y)の長さの平均値に100を掛けたものを判定値Resultとし、判定値Resultを以下の式(4)により算出する。
Result=(100/N)Σ(Vec(x)2+Vec(y)2)1/2…(4)
If the absolute values of both elements x and y of avgVec are less than 0.5, the authenticity determination device 3 terminates the processing, and determines the judgment value Result as the average value of the lengths of the difference vector Vec(x, y) when the avgVec was obtained, multiplied by 100, and calculates the judgment value Result using the following equation (4).
Result=(100/N)Σ(Vec(x) 2 +Vec(y) 2 ) 1/2 …(4)
一方、真贋判定装置3は、avgVecの要素x,yのいずれかあるいは双方の絶対値が0.5以上の場合、図14(d)に示すように、検査画像500の原点501を、avgVec(x,y)の各要素x,yを四捨五入等により整数化したベクトルIntavgVec(x,y)分だけ補正(オフセット)し、前記の手順により正の輪郭画像Rの文字領域rの各輪郭画素について差異ベクトルVec(x,y)を再度算出する。そして、これらの差異ベクトルVec(x,y)から式(4)により判定値Resultを算出する。なお、式(4)では差異ベクトルVec(x,y)の長さの平均値に100を掛けているが、100を掛けない値を判定値Resultとして用いることもできる。 On the other hand, if the absolute value of either or both of the x and y elements of avgVec is 0.5 or greater, the authenticity determination device 3 corrects (offsets) the origin 501 of the inspection image 500 by the vector IntavgVec(x,y), which is obtained by rounding off each of the x and y elements of avgVec(x,y) to integers, as shown in Figure 14(d), and recalculates the difference vector Vec(x,y) for each contour pixel in the character region r of the positive contour image R using the procedure described above. Then, the determination value Result is calculated from these difference vectors Vec(x,y) using equation (4). Note that although equation (4) multiplies the average length of the difference vectors Vec(x,y) by 100, a value not multiplied by 100 can also be used as the determination value Result.
S405~S410の処理は、S404の解像度変換で得た3つのグレースケール画像20’(図10(b)参照)について行われ、真贋判定装置3は、各グレースケール画像20’について得た判定値Resultのうち最も小さい値を最終的な判定値として決定し、その判定値Resultを利用した真贋判定を行う(S411)。真贋判定の手順については後述する。 The processes of S405 to S410 are performed on the three grayscale images 20' obtained by the resolution conversion of S404 (see Figure 10(b)). The authenticity determination device 3 determines the smallest of the determination values Result obtained for each grayscale image 20' as the final determination value, and performs authenticity determination using that determination value Result (S411). The procedure for authenticity determination will be described later.
判定値Resultの基本的な算出手順については上記の通りであるが、S410では、正の輪郭画像Rの文字領域rと検査画像500の文字領域tのサイズの違いを考慮し、ベクトルvや原点501の位置(Xt0,Yt0)の補正を行うことも望ましい。 The basic calculation procedure for the judgment value Result is as described above, but in S410, it is also desirable to correct the vector v and the position (Xt0, Yt0) of the origin 501, taking into account the difference in size between the character area r in the positive contour image R and the character area t in the inspection image 500.
例えばベクトルvの補正については、両文字領域r、tのサイズの違いを、横方向の倍率magXおよび縦方向の倍率magYとして下式(5)、(6)により算出し、magXとmagYのうち1に近い方を比較倍率magとして求める。
magX=(文字領域tの横方向のサイズ)/(文字領域rの横方向のサイズ)…(5)
magY=(文字領域tの縦方向のサイズ)/(文字領域rの縦方向のサイズ)…(6)
For example, to correct the vector v, the difference in size between the two character regions r and t is calculated as the horizontal magnification magX and the vertical magnification magY using the following equations (5) and (6), and the one of magX and magY that is closer to 1 is determined as the comparison magnification mag.
magX = (horizontal size of character area t)/(horizontal size of character area r) (5)
magY=(vertical size of character area t)/(vertical size of character area r) (6)
そして、図15に示すように、検査画像500の文字領域t内で対応画素502を検出する際に用いるベクトルv(xr,yr)を、各要素xr,yrに比較倍率magを掛けたベクトルv・magとして補正する。なおベクトルv・magの各要素(xr・mag,yr・mag)については、四捨五入等による整数化を行う。検査画像500の文字領域tの原点501に関しても、上記の比較倍率magを考慮した位置の補正を行うことができ、例えば比較倍率magの値に応じて、原点501の位置が文字領域tの中心に近づくあるいは文字領域tの中心から遠ざかるようにオフセットを行う。 Then, as shown in Figure 15, the vector v(xr, yr) used to detect corresponding pixels 502 within the character region t of the inspection image 500 is corrected as the vector v·mag, where each element xr, yr is multiplied by the comparison magnification mag. Note that each element of the vector v·mag (xr·mag, yr·mag) is converted to an integer by rounding or other methods. The position of the origin 501 of the character region t of the inspection image 500 can also be corrected taking into account the above-mentioned comparison magnification mag. For example, the position of the origin 501 is offset so that it moves closer to or farther from the center of the character region t depending on the value of the comparison magnification mag.
その他、文字領域tにおける画素の探索(図14(c)参照)に関しても、文字領域tの輪郭画素のそれぞれについて、検出回数(差異ベクトルVecの算出対象となった回数)を記録するようにし、探索時には、探索対象の画素が輪郭画素であることに加え、当該画素の検出回数が所定値以下であることを検出条件としてもよい。例えば上記の所定値を2とする場合、検出回数が3以上の画素についてはそれが輪郭画素であっても差異ベクトルVecの算出対象として検出せず、前記の探索順に従って次の画素を探索する。 Furthermore, with regard to the search for pixels in the character region t (see Figure 14(c)), the number of times each contour pixel in the character region t has been detected (the number of times it has been subject to calculation of the difference vector Vec) can be recorded, and during the search, the detection condition can be that the pixel being searched for is a contour pixel, and that the number of times that pixel has been detected is less than a predetermined value. For example, if the above predetermined value is 2, a pixel that has been detected 3 or more times will not be detected as a subject to calculation of the difference vector Vec, even if it is a contour pixel, and the next pixel will be searched for according to the search order described above.
また、探索範囲を全て探索し終わっても差異ベクトルVecの算出対象の輪郭画素を検出できなかった場合には、例えば差異ベクトルVec(x,y)を、輪郭画素を検出できなかった回数がその探索時も含めて偶数回の場合(8,8)、奇数回の場合(-8,-8)と記録することができる。こうして同絶対値、異符号の値を偶奇に応じて記録することにより、差異ベクトルVecの総和ΣVec(x,y)を算出する際の影響を小さくできる。なお絶対値は探索範囲のサイズ等を考慮して定めることができ、上記のように8に限定されることはない。また探索範囲の大きさ、形状等も限定されず、例えば形状に関しては、探索範囲を正方形状の範囲としてもよいし、円形の範囲としてもよい。 Furthermore, if the contour pixel for which the difference vector Vec is to be calculated cannot be detected even after searching the entire search range, the difference vector Vec(x,y) can be recorded as (8,8) if the number of times the contour pixel could not be detected, including the search, is even, or (-8,-8) if the number of times is odd. By recording values with the same absolute value and opposite sign according to whether it is even or odd, the impact on calculating the sum ΣVec(x,y) of the difference vectors Vec can be reduced. Note that the absolute value can be determined taking into account the size of the search range, etc., and is not limited to 8 as described above. The size and shape of the search range are also not limited; for example, the search range could be a square or circular area.
(3-2.判定値Resultを利用した真贋判定の手順)
前記したように、S411(図8参照)では判定値Resultを利用した真贋判定を行う。この判定値ResultはS401で作成したグレースケール画像20から最終的に得られたものであるが、本実施形態では必要に応じてS401で作成したR画像、B画像も判定に利用するので、その手順について以下説明する。
(3-2. Procedure for authenticity determination using the judgment value Result)
As described above, in S411 (see FIG. 8), authenticity is determined using the determination value Result. This determination value Result is the final value obtained from the grayscale image 20 created in S401, but in this embodiment, the R image and B image created in S401 are also used for determination as needed, and the procedure for doing so will be described below.
図16は、S411における真贋判定の手順を示すフローチャートである。本実施形態では、判定値Resutを所定の基準値と比較し、判定値Resultが基準値より小さい場合(S4110;YES)、IDカード10を真とする(S4111)。基準値は判定精度等を考慮して適宜定めることができる。 Figure 16 is a flowchart showing the steps for determining authenticity in S411. In this embodiment, the determination value Resut is compared with a predetermined reference value, and if the determination value Result is smaller than the reference value (S4110; YES), the ID card 10 is determined to be authentic (S4111). The reference value can be set appropriately taking into account the accuracy of determination, etc.
一方、判定値Resutが基準値以上の場合(S4110;NO)は、IDカード10を真とはしない。ただし本実施形態では、図17に示すように、IDカード10の撮影画像へのホログラムの映り込みにより二値画像400の文字が大きく欠け、判定値Resultを誤算出した可能性を考慮し、判定値Resultが一定値以上の場合(S4112;YES)は、B画像についてS402~S410の処理を行い、検査対象の文字の輪郭部分と正の文字の輪郭部分との比較に基づく判定値Resultを算出する(S4113)。 On the other hand, if the judgment value Resut is equal to or greater than the reference value (S4110; NO), the ID card 10 is not deemed to be authentic. However, in this embodiment, as shown in FIG. 17, taking into consideration the possibility that the hologram is reflected in the captured image of the ID card 10, causing a large portion of the character in the binary image 400 to be missing, resulting in an incorrect calculation of the judgment value Result, if the judgment value Result is equal to or greater than a certain value (S4112; YES), the processes of S402 to S410 are performed on image B, and the judgment value Result is calculated based on a comparison between the outline of the character being inspected and the outline of the authentic character (S4113).
これは、IDカード10の撮影画像のRGB成分をグレースケール化したグレースケール画像20とは異なり、IDカード10の撮影画像の個々の色成分、特にR成分やB成分を見た場合には、ホログラムの色が現れず、文字への影響が少ないことがあるためである。例えば撮影画像におけるホログラムの色が赤である場合、撮影画像のB成分を見た時に文字への影響が少なくなり、ホログラムの色が青である場合、R成分を見た時に文字への影響が少なくなる。上記の一定値は基準値より大きな値とし、具体的な値は判定精度等を考慮して適宜定めることができる。 This is because, unlike grayscale image 20, which is created by grayscaling the RGB components of the captured image of ID card 10, when viewing the individual color components of the captured image of ID card 10, particularly the R and B components, the color of the hologram does not appear and the impact on the text may be minimal. For example, if the color of the hologram in the captured image is red, viewing the B component of the captured image will have less impact on the text, and if the color of the hologram is blue, viewing the R component will have less impact on the text. The above fixed value is set to a value greater than the reference value, and the specific value can be determined as appropriate taking into account factors such as judgment accuracy.
真贋判定装置3は、S4113により得られた判定値Resultが上記の一定値以上でない場合(S4114;NO)、その判定値Resultを所定の基準値と比較し、判定値Resultが基準値より小さい場合(S4115;YES)、IDカード10を真とする(S4116)。 If the judgment value Result obtained in S4113 is not equal to or greater than the above-mentioned certain value (S4114; NO), the authenticity determination device 3 compares the judgment value Result with a predetermined reference value, and if the judgment value Result is smaller than the reference value (S4115; YES), it determines that the ID card 10 is authentic (S4116).
なお、S4112で判定値Resultが一定値より小さい場合(S4112;NO)およびS4115で判定値Resultが基準値以上の場合(S4115;NO)は、いずれもIDカード10を偽とする(S4117)。 In addition, if the judgment value Result is smaller than a certain value in S4112 (S4112; NO) or if the judgment value Result is equal to or greater than the reference value in S4115 (S4115; NO), the ID card 10 is determined to be false (S4117).
一方、S4114で判定値Resultが一定値以上の場合(S4114;YES)は、さらに、R画像についてS402~S410の処理を行い、検査対象の文字の輪郭部分と正の文字の輪郭部分との比較に基づく判定値Resultを算出し(S4118)、グレースケール画像20、B画像、R画像から得られた判定値Resultのうち最も小さいものを最終判定値として決定する(S4119)。 On the other hand, if the judgment value Result is equal to or greater than a certain value in S4114 (S4114; YES), the processes of S402 to S410 are further performed on the R image, and a judgment value Result is calculated based on a comparison between the outline of the character being inspected and the outline of the correct character (S4118), and the smallest of the judgment values Result obtained from the grayscale image 20, B image, and R image is determined to be the final judgment value (S4119).
そして、その判定値Resultが基準値より小さい場合(S4115;YES)、IDカード10を真とし(S4116)、判定値Resultが基準値以上の場合(S4115;NO)はIDカード10を偽とする(S4117)。 If the judgment value Result is smaller than the reference value (S4115; YES), the ID card 10 is determined to be true (S4116); if the judgment value Result is equal to or greater than the reference value (S4115; NO), the ID card 10 is determined to be false (S4117).
以上説明したように、本実施形態では、IDカード10に形成される文字のフォントが予め定められていることを利用し、IDカード10の所定範囲に形成された検査対象の文字の輪郭部分を正の文字の輪郭部分と比較して真贋判定を行うことで、検査対象の文字が所定のフォントで形成された真のIDカード10と、検査対象の文字が所定のフォント以外のフォントで形成された偽のIDカード10とを好適に判別できる。 As described above, in this embodiment, the font of the characters formed on the ID card 10 is predetermined, and authenticity is determined by comparing the outline of the character to be inspected, which is formed in a predetermined area on the ID card 10, with the outline of the correct character. This makes it possible to effectively distinguish between a genuine ID card 10 in which the characters to be inspected are formed in a predetermined font and a fake ID card 10 in which the characters to be inspected are formed in a font other than the predetermined font.
本実施形態の真贋判定方法は、特に、ホログラムなどの偽造防止策がとられているため単純なコピーが難しいIDカード10に対して有効であり、券面を一から作成するような変造が行われた偽のIDカード10を好適に判別できる。また本実施形態では、撮影画像の所定の色成分による色画像を判定に用いることで、文字へのホログラムの映り込みによる判定精度の低下を抑えることができる。 The authenticity determination method of this embodiment is particularly effective for ID cards 10 that are difficult to copy simply because they incorporate anti-counterfeiting measures such as holograms, and can effectively distinguish counterfeit ID cards 10 that have been altered, such as by creating the card face from scratch. Furthermore, in this embodiment, by using a color image based on a specified color component of the captured image for determination, it is possible to prevent a decrease in determination accuracy due to the hologram being reflected in the text.
また色画像による判定は、グレースケール画像20による判定を行った上でIDカード10が真とされなかった場合に限定し、ホログラムの映り込みの影響が予想されない場合は色画像による判定を行わないことで、真贋判定を全体として短時間で終了できる。 In addition, the determination using the color image is limited to cases where the ID card 10 is not deemed authentic after a determination using the grayscale image 20 has been made, and by not performing a determination using the color image if the influence of hologram reflections is not expected, the overall authenticity determination can be completed in a short time.
ホログラムの映り込みの影響は、ある色成分による色画像を見たときには現れるが、別の色成分による色画像を見たときには現れないということもある。そのため、複数の色成分(本実施形態ではB成分、R成分)による複数の色画像を用いることで、真贋判定の精度を向上させることができる。 The effect of hologram reflections may be apparent when viewing a color image based on one color component, but not when viewing a color image based on another color component. Therefore, using multiple color images based on multiple color components (in this embodiment, the B and R components) can improve the accuracy of authenticity determination.
なお、本実施形態では検査対象の文字をプレ印刷部分の文字としている。プレ印刷部分の文字については、どの範囲にどの文字が形成されるかが予め決まっているので、比較対象となる正の文字が予め分かっており、正のデータが少数で済む。また形状面での比較を行うことにより、フォントが異なる場合だけでなく、文字自体が異なる場合にも偽のIDカード10として検出できる。 In this embodiment, the characters to be inspected are the characters in the pre-printed portion. For the characters in the pre-printed portion, the range in which each character will be printed is predetermined, so the correct characters to be compared are known in advance, and only a small amount of correct data is required. Furthermore, by comparing shapes, a fake ID card 10 can be detected not only when the font is different, but also when the characters themselves are different.
また本実施形態では、図14等で説明した手法により算出した差異ベクトルVecにより、検査対象の文字の輪郭部分と正の文字の輪郭部分との差異を適切に評価し、真贋判定を好適に行うことができる。 In addition, in this embodiment, the difference vector Vec calculated using the method described in Figure 14 etc. can be used to appropriately evaluate the difference between the outline of the character being inspected and the outline of the correct character, allowing for optimal authentication.
ここで、図14等で説明した差異ベクトルVecの算出方法は、正の文字の輪郭画素に対応する検査対象の文字領域tの画素を探索するものであるため、画素の探索回数が正の文字の輪郭画素の数に対応し、検査対象の文字の輪郭画素の数が多ければ1回の探索が早期に終了する。従って、図13等で説明したように、厳しい基準により正の文字の輪郭画素を少なくする一方、緩めの基準により検査対象の文字の輪郭画素を多くすることで、真贋判定を高速に行い、且つ真のIDカード10を偽と誤判定するのを抑制できる。 Here, the method of calculating the difference vector Vec described in Figure 14 etc. searches for pixels in the character area t to be inspected that correspond to the contour pixels of the positive character, so the number of pixel searches corresponds to the number of contour pixels of the positive character, and if the number of contour pixels of the character to be inspected is large, one search will end quickly. Therefore, as described in Figure 13 etc., by using strict criteria to reduce the number of contour pixels of the positive character and using looser criteria to increase the number of contour pixels of the character to be inspected, it is possible to quickly determine authenticity and reduce the risk of erroneously determining a genuine ID card 10 as fake.
しかしながら、本発明は以上の実施形態で説明したものに限らない。例えば本実施形態では口座開設時の本人確認として真贋判定を行うことについて例示したが、本実施形態の真贋判定の適用場面あるいは適用目的は特に限定されない。 However, the present invention is not limited to the embodiments described above. For example, in this embodiment, authenticity determination is performed as a means of identity verification when opening an account, but the application scenarios or purposes of authenticity determination in this embodiment are not particularly limited.
また本実施形態では、検査対象の文字をプレ印刷部分の文字としたが、オンデマンド情報の文字としてもよい。この場合、検査対象の文字を含む撮影画像の所定範囲について既知のOCR(Optical Character Recognition)処理を行って文字を認識したうえで、当該文字に対応する正のデータを真贋判定に用いる。 In this embodiment, the characters to be inspected are characters in the pre-printed portion, but they may also be characters in on-demand information. In this case, a known OCR (Optical Character Recognition) process is performed on a specified area of the captured image containing the characters to be inspected to recognize the characters, and the positive data corresponding to those characters is used to determine authenticity.
ただし、オンデマンド情報に関しては、撮影画像の所定範囲に形成される文字が個々のIDカード10によって異なるので、準備すべき正のデータが多くなる。しかしながら、オンデマンド情報としては、生年月日など0から9の数字のみ形成される範囲や、AからZのアルファベットのみ形成される範囲も存在するので、当該範囲の文字を真贋判定に用いる場合は、正のデータが比較的少数で済む。 However, with on-demand information, the characters formed within a specified range of the captured image differ for each individual ID card 10, so a large amount of positive data must be prepared. However, on-demand information also includes ranges consisting only of numbers 0 to 9, such as date of birth, and ranges consisting only of letters A to Z. Therefore, when using characters within these ranges to determine authenticity, a relatively small amount of positive data is required.
また本実施形態では、S407(図8参照)での文字画像300の二値化にあたり、二値化時の黒画素の数を正のデータの黒画素の数と比較することにより複数の閾値のなかから最終的な閾値を定めたが、全ての閾値あるいはそのうち二値化時の黒画素の数が正のデータの黒画素の数に近い複数の閾値により二値化を行った各二値画像について、前記した手順により式(4)による判定値Resultの算出まで行い、判定値Resultが最も小さいものを最終的な閾値として決定しても良い。 In addition, in this embodiment, when binarizing the character image 300 in S407 (see Figure 8), the final threshold value was determined from among multiple threshold values by comparing the number of black pixels during binarization with the number of black pixels in positive data. However, for each binary image that has been binarized using all threshold values or multiple threshold values where the number of black pixels during binarization is close to the number of black pixels in positive data, the above-mentioned procedure can be followed up to calculating the judgment value Result using equation (4), and the smallest judgment value Result can be determined as the final threshold value.
また本実施形態では検査対象の文字を1つとしているが、検査対象の文字を複数とし、全ての文字について前記の真贋判定手順でIDカード10が真とされるか、あるいは、IDカード10が真とされる文字が所定数以上の場合に、IDカード10が真であると最終的に決定してもよい。 In addition, while this embodiment tests for one character, it is also possible to test for multiple characters and ultimately determine that the ID card 10 is genuine if the above-described authenticity determination procedure determines that the ID card 10 is genuine for all characters, or if the number of characters that determine that the ID card 10 is genuine is a predetermined number or more.
また本実施形態では撮影画像のG成分を真贋判定に用いていないが、これはG成分による画像(G画像)がグレースケール画像20に近いためである。ただし、グレースケール画像20からの真贋判定を省略することもでき、この場合は、R画像、B画像、G画像のそれぞれについてS402~S410の手順で算出した判定値Resultを比較し、そのうち最も小さいものを基準値と比較して真贋判定を行っても良い。 In this embodiment, the G component of the captured image is not used in determining authenticity because the image based on the G component (G image) is similar to the grayscale image 20. However, it is also possible to omit determining authenticity from the grayscale image 20. In this case, the determination values Result calculated for each of the R image, B image, and G image in steps S402 to S410 can be compared, and the smallest of these can be compared with a reference value to determine authenticity.
以上、添付図面を参照して、本発明の好適な実施形態について説明したが、本発明は係る例に限定されない。当業者であれば、本願で開示した技術的思想の範疇内において、各種の変更例または修正例に想到し得ることは明らかであり、それらについても当然に本発明の技術的範囲に属するものと了解される。 Preferred embodiments of the present invention have been described above with reference to the accompanying drawings, but the present invention is not limited to these examples. It is clear that those skilled in the art will be able to conceive of various modifications and alterations within the scope of the technical ideas disclosed in this application, and it is understood that these also naturally fall within the technical scope of the present invention.
1:真贋判定システム
3:真贋判定装置
5:ユーザ端末
10:IDカード
301:受信手段
302:真贋判定手段
1: Authenticity determination system 3: Authenticity determination device 5: User terminal 10: ID card 301: Receiving means 302: Authenticity determination means
Claims (8)
前記本人確認証を撮影した撮影画像の所定の色成分による色画像を用い、前記本人確認証の所定範囲に形成された検査対象の文字の輪郭部分を、正の文字の輪郭部分と比較することにより、前記本人確認証の真贋判定を行う真贋判定手段を有し、
前記真贋判定手段は、前記撮影画像をグレースケール変換した画像を用い、検査対象の文字の輪郭部分を正の文字の輪郭部分と比較して前記本人確認証の真贋判定を行い、前記本人確認証が真とされなかった場合に、前記色画像を用いた真贋判定を行う
ことを特徴とする真贋判定装置。 An apparatus for determining the authenticity of an identification card on which a hologram is formed,
an authenticity determination means for determining the authenticity of the identification card by using a color image of a predetermined color component of a photographed image of the identification card and comparing the outline of a character to be inspected formed in a predetermined area of the identification card with the outline of a genuine character ;
The authenticity determination means uses an image obtained by converting the photographed image into a grayscale image, compares the outline of the character to be inspected with the outline of the correct character, and determines the authenticity of the identification card. If the identification card is not determined to be authentic, the authenticity determination means performs an authenticity determination using the color image.
An authenticity determination device characterized by:
前記本人確認証を撮影した撮影画像の所定の色成分による色画像を用い、前記本人確認証の所定範囲に形成された検査対象の文字の輪郭部分を、正の文字の輪郭部分と比較することにより、前記本人確認証の真贋判定を行う真贋判定手段を有し、
前記真贋判定手段は、複数の前記色成分のそれぞれによる複数の前記色画像を用いた真贋判定を行う
ことを特徴とする真贋判定装置。 An apparatus for determining the authenticity of an identification card on which a hologram is formed,
an authenticity determination means for determining the authenticity of the identification card by using a color image of a predetermined color component of a photographed image of the identification card and comparing the outline of a character to be inspected formed in a predetermined area of the identification card with the outline of a genuine character ;
The authenticity determination means performs authenticity determination using a plurality of color images for each of the plurality of color components.
An authenticity determination device characterized by:
前記本人確認証を撮影した撮影画像の所定の色成分による色画像を用い、前記本人確認証の所定範囲に形成された検査対象の文字の輪郭部分を、正の文字の輪郭部分と比較することにより、前記本人確認証の真贋判定を行う真贋判定手段を有し、
前記真贋判定手段は、
正の文字の文字領域の画像において、原点から輪郭画素までのベクトルを算出し、
検査対象の文字の文字領域の画像において、原点を始点とする前記ベクトルの先にある対応画素を検出し、
前記対応画素が輪郭画素でない場合、前記対応画素の外側の範囲の画素を探索することで検出された輪郭画素と前記対応画素の位置の差を差異ベクトルとして算出し、
前記差異ベクトルに基づく判定値により、前記本人確認証の真贋判定を行う
ことを特徴とする真贋判定装置。 An apparatus for determining the authenticity of an identification card on which a hologram is formed,
an authenticity determination means for determining the authenticity of the identification card by using a color image of a predetermined color component of a photographed image of the identification card and comparing the outline of a character to be inspected formed in a predetermined area of the identification card with the outline of a genuine character ;
The authenticity determining means
In the image of the character region of the positive character, a vector from the origin to the contour pixel is calculated;
In an image of a character region of the character to be inspected, a corresponding pixel at the end of the vector starting from the origin is detected;
If the corresponding pixel is not a contour pixel, a difference between the position of the contour pixel detected by searching for pixels in a range outside the corresponding pixel and the position of the corresponding pixel is calculated as a difference vector;
The authenticity of the personal identification card is determined based on a determination value based on the difference vector.
An authenticity determination device characterized by:
当該文字を第1の階調値、背景を第2の階調値とした二値画像において、注目画素が第1の階調値であり且つ注目画素の周囲8画素の少なくともいずれかが第2の階調値である場合、注目画素を第2の階調値とし、それ以外の場合、注目画素を第1の階調値とする処理を行うことで、第2の階調値の画素として得られ、
正の文字の輪郭画素は、
当該文字を第1の階調値、背景を第2の階調値とした二値画像において、注目画素が第1の階調値であり且つ注目画素の上下左右の4画素の少なくともいずれかが第2の階調値である場合、注目画素を第2の階調値とし、それ以外の場合、注目画素を第1の階調値とする処理を行うことで、第2の階調値の画素として得られることを特徴とする請求項3記載の真贋判定装置。 The contour pixels of the character to be inspected are
In a binary image in which the character has a first gradation value and the background has a second gradation value, if the pixel of interest has the first gradation value and at least one of the eight pixels surrounding the pixel of interest has the second gradation value, the pixel of interest is set to the second gradation value, and in other cases, the pixel of interest is set to the first gradation value, thereby obtaining a pixel of the second gradation value;
The positive character contour pixels are
The authenticity determination device according to claim 3, characterized in that in a binary image in which the character is a first gradation value and the background is a second gradation value, if the pixel of interest has the first gradation value and at least one of the four pixels above, below, left, and right of the pixel of interest has the second gradation value, the pixel of interest is set to the second gradation value, and in all other cases, the pixel of interest is set to the first gradation value, thereby obtaining a pixel of the second gradation value.
ホログラムが形成された本人確認証の真贋判定装置であって、
前記本人確認証を撮影した撮影画像の所定の色成分による色画像を用い、前記本人確認証の所定範囲に形成された検査対象の文字の輪郭部分を、正の文字の輪郭部分と比較することにより、前記本人確認証の真贋判定を行う真贋判定手段を有する真贋判定装置として機能させるためのプログラムであって、
前記真贋判定手段は、前記撮影画像をグレースケール変換した画像を用い、検査対象の文字の輪郭部分を正の文字の輪郭部分と比較して前記本人確認証の真贋判定を行い、前記本人確認証が真とされなかった場合に、前記色画像を用いた真贋判定を行う
ことを特徴とするプログラム。 Computer,
An apparatus for determining the authenticity of an identification card on which a hologram is formed,
A program for causing the device to function as an authenticity determination device having an authenticity determination means for determining the authenticity of the identification card by using a color image of a predetermined color component of a photographed image of the identification card and comparing the outline of a character to be inspected formed in a predetermined area of the identification card with the outline of a correct character ,
The authenticity determination means uses an image obtained by converting the photographed image into a grayscale image, compares the outline of the character to be inspected with the outline of the correct character, and determines the authenticity of the identification card. If the identification card is not determined to be authentic, the authenticity determination means performs an authenticity determination using the color image.
A program characterized by:
ホログラムが形成された本人確認証の真贋判定装置であって、
前記本人確認証を撮影した撮影画像の所定の色成分による色画像を用い、前記本人確認証の所定範囲に形成された検査対象の文字の輪郭部分を、正の文字の輪郭部分と比較することにより、前記本人確認証の真贋判定を行う真贋判定手段を有する真贋判定装置として機能させるためのプログラムであって、
前記真贋判定手段は、複数の前記色成分のそれぞれによる複数の前記色画像を用いた真贋判定を行う
ことを特徴とするプログラム。 Computer,
An apparatus for determining the authenticity of an identification card on which a hologram is formed,
A program for causing the device to function as an authenticity determination device having an authenticity determination means for determining the authenticity of the identification card by using a color image of a predetermined color component of a photographed image of the identification card and comparing the outline of a character to be inspected formed in a predetermined area of the identification card with the outline of a correct character ,
The authenticity determination means performs authenticity determination using a plurality of color images for each of the plurality of color components.
A program characterized by:
ホログラムが形成された本人確認証の真贋判定装置であって、
前記本人確認証を撮影した撮影画像の所定の色成分による色画像を用い、前記本人確認証の所定範囲に形成された検査対象の文字の輪郭部分を、正の文字の輪郭部分と比較することにより、前記本人確認証の真贋判定を行う真贋判定手段を有する真贋判定装置として機能させるためのプログラムであって、
前記真贋判定手段は、
正の文字の文字領域の画像において、原点から輪郭画素までのベクトルを算出し、
検査対象の文字の文字領域の画像において、原点を始点とする前記ベクトルの先にある対応画素を検出し、
前記対応画素が輪郭画素でない場合、前記対応画素の外側の範囲の画素を探索することで検出された輪郭画素と前記対応画素の位置の差を差異ベクトルとして算出し、
前記差異ベクトルに基づく判定値により、前記本人確認証の真贋判定を行う
ことを特徴とするプログラム。 Computer,
An apparatus for determining the authenticity of an identification card on which a hologram is formed,
A program for causing the device to function as an authenticity determination device having an authenticity determination means for determining the authenticity of the identification card by using a color image of a predetermined color component of a photographed image of the identification card and comparing the outline of a character to be inspected formed in a predetermined area of the identification card with the outline of a correct character ,
The authenticity determining means
In the image of the character region of the positive character, a vector from the origin to the contour pixel is calculated;
In an image of a character region of the character to be inspected, a corresponding pixel at the end of the vector starting from the origin is detected;
If the corresponding pixel is not a contour pixel, a difference between the position of the contour pixel detected by searching for pixels in a range outside the corresponding pixel and the position of the corresponding pixel is calculated as a difference vector;
The authenticity of the personal identification card is determined based on a determination value based on the difference vector.
A program characterized by:
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2021145311A JP7722073B2 (en) | 2021-09-07 | 2021-09-07 | Authenticity determination device and program |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2021145311A JP7722073B2 (en) | 2021-09-07 | 2021-09-07 | Authenticity determination device and program |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JP2023038534A JP2023038534A (en) | 2023-03-17 |
| JP7722073B2 true JP7722073B2 (en) | 2025-08-13 |
Family
ID=85514875
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2021145311A Active JP7722073B2 (en) | 2021-09-07 | 2021-09-07 | Authenticity determination device and program |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP7722073B2 (en) |
Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2014103520A (en) | 2012-11-20 | 2014-06-05 | National Printing Bureau | Printed matter manufacturing method, printed matter and authenticity discrimination method |
| JP2019117549A (en) | 2017-12-27 | 2019-07-18 | 大日本印刷株式会社 | Authenticity determination device, reader, authenticity determination system, and program |
| JP2020177368A (en) | 2019-04-16 | 2020-10-29 | 大日本印刷株式会社 | Authenticity tester and program |
Family Cites Families (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP3178305B2 (en) * | 1995-06-29 | 2001-06-18 | オムロン株式会社 | Image processing method and apparatus, copier, scanner and printer equipped with the same |
-
2021
- 2021-09-07 JP JP2021145311A patent/JP7722073B2/en active Active
Patent Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2014103520A (en) | 2012-11-20 | 2014-06-05 | National Printing Bureau | Printed matter manufacturing method, printed matter and authenticity discrimination method |
| JP2019117549A (en) | 2017-12-27 | 2019-07-18 | 大日本印刷株式会社 | Authenticity determination device, reader, authenticity determination system, and program |
| JP2020177368A (en) | 2019-04-16 | 2020-10-29 | 大日本印刷株式会社 | Authenticity tester and program |
Non-Patent Citations (1)
| Title |
|---|
| 田中 賢一、石附 英昭,"計算機ホログラムのディザ画像への埋め込み",画像ラボ,日本,日本工業出版株式会社,2007年07月01日,Vol.18, No.7,pp.64-67 |
Also Published As
| Publication number | Publication date |
|---|---|
| JP2023038534A (en) | 2023-03-17 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US12260700B1 (en) | System, computing device, and method for document detection and deposit processing | |
| US12499423B2 (en) | Mobile check deposit | |
| US11341739B2 (en) | Image processing device, image processing method, and program recording medium | |
| KR20090038882A (en) | Document authentication using template matching with fast masked canonical cross correlation | |
| JP7322485B2 (en) | Authenticity determination device and program | |
| EP4202857B1 (en) | Texture-based authentication of digital identity documents | |
| CN114820476A (en) | Identification card identification method based on compliance detection | |
| Hu et al. | Document recapture detection based on a unified distortion model of halftone cells | |
| CN108197624A (en) | The recognition methods of certificate image rectification and device, computer storage media | |
| CN112396058B (en) | A document image detection method, device, equipment and storage medium | |
| CN114359923A (en) | Certificate character recognition method and device, computer and storage medium | |
| CN115410191B (en) | Text image recognition method, device, equipment and storage medium | |
| JP7803176B2 (en) | Authenticity determination device and program | |
| JP6860151B2 (en) | Printed matter reading inspection method and its equipment, and printed matter reading inspection software | |
| JP7722073B2 (en) | Authenticity determination device and program | |
| JP7722072B2 (en) | Authenticity determination device and program | |
| CN111126283A (en) | Rapid in-vivo detection method and system for automatically filtering fuzzy human face | |
| EP4379677A1 (en) | Image processing system, image processing method, and program | |
| JP7750074B2 (en) | Authenticity determination device and program | |
| JP7844884B2 (en) | Authenticity determination device and program | |
| CN114639130A (en) | Visible light living body detection method | |
| JP7815984B2 (en) | Authenticity determination device, program, and scanner | |
| RU2840316C1 (en) | Method and system for authenticating face on image | |
| Hu | Channel Modeling and System Design for Display-Camera Communications and Document Image Recapture Detection | |
| JP2025074849A (en) | Authenticity determination device and program |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20240729 |
|
| A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20250415 |
|
| A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20250422 |
|
| A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20250522 |
|
| TRDD | Decision of grant or rejection written | ||
| A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 Effective date: 20250701 |
|
| A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20250714 |
|
| R150 | Certificate of patent or registration of utility model |
Ref document number: 7722073 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 |