JP2019062499A - Code recognition apparatus, code recognition method, and code recognition program - Google Patents

Code recognition apparatus, code recognition method, and code recognition program Download PDF

Info

Publication number
JP2019062499A
JP2019062499A JP2017187790A JP2017187790A JP2019062499A JP 2019062499 A JP2019062499 A JP 2019062499A JP 2017187790 A JP2017187790 A JP 2017187790A JP 2017187790 A JP2017187790 A JP 2017187790A JP 2019062499 A JP2019062499 A JP 2019062499A
Authority
JP
Japan
Prior art keywords
code
code recognition
image
control unit
information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2017187790A
Other languages
Japanese (ja)
Inventor
哉樹 遠藤
Kanaki Endo
哉樹 遠藤
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
SHIFT KK
Original Assignee
SHIFT KK
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by SHIFT KK filed Critical SHIFT KK
Priority to JP2017187790A priority Critical patent/JP2019062499A/en
Publication of JP2019062499A publication Critical patent/JP2019062499A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Editing Of Facsimile Originals (AREA)

Abstract

To provide a code recognition apparatus, a code recognition method, and a code recognition program, for efficiently determining authenticity using code images.SOLUTION: A user terminal 10 includes a control unit 11, an imaging unit 13, and an illumination unit 14. Then, the control unit 11 detects a code image area in a first image photographed using ambient light, decodes first code recognition information in the code image area, detects the code image area in a second image photographed using the illumination unit 14, decodes second code recognition information in the same code image area included in the first image, and, when the first code recognition information and the second code recognition information are different, determines that the second code recognition information is authentic and specifies the code information.SELECTED DRAWING: Figure 1

Description

本発明は、コード画像から情報を取得するためのコード認識装置、コード認識方法及びコード認識プログラムに関する。   The present invention relates to a code recognition apparatus, code recognition method and code recognition program for acquiring information from a code image.

各種情報を提供するために、バーコードや二次元コード等のコード画像が用いられている。このようなコード画像を撮影し、識別コード情報を読み取る技術も検討されている(例えば、特許文献1参照)。   In order to provide various information, code images such as barcodes and two-dimensional codes are used. A technique for capturing such a code image and reading identification code information is also being studied (see, for example, Patent Document 1).

また、複数のカラーを用いた二次元コードも検討されている(例えば、特許文献2参照。)。この文献に記載された技術においては、画像に含まれる物品に付された二次元コードのうち検出対象の物品に対応する二次元コードの領域それぞれを特定する。具体的には、取得された画像(原画像)から生成されたエッジ画像に基づき、このエッジ画像中における候補領域の抽出、この抽出した候補領域に対応する原画像中の対応領域それぞれに特徴的なパターンが含まれているか否かの判定を経て、原画像中から二次元コードの領域を検出する。また、検出した二次元コードの領域の各セルの領域について色判定処理を行ない、各セルの領域の色の判定結果に基づきコード化された情報を識別する。   In addition, a two-dimensional code using a plurality of colors has also been studied (see, for example, Patent Document 2). In the technique described in this document, each of the two-dimensional code regions corresponding to the item to be detected is specified among the two-dimensional code attached to the item included in the image. Specifically, based on an edge image generated from an acquired image (original image), extraction of candidate regions in the edge image, characteristic features of corresponding regions in the original image corresponding to the extracted candidate regions After determining whether or not any pattern is included, the area of the two-dimensional code is detected in the original image. Also, color determination processing is performed on the area of each cell of the detected two-dimensional code area, and the encoded information is identified based on the determination result of the color of the area of each cell.

特開2009−198266号公報JP, 2009-198266, A 特開2012−33033号公報JP 2012-33033 A

しかしながら、特許文献2に記載された技術では、コード画像の真偽を判定するために、デコードを行なう必要がある。また、コード画像は、常時、視認可能であるため、真偽を判定する方法が限られていた。   However, in the technique described in Patent Document 2, it is necessary to perform decoding in order to determine the authenticity of the code image. Moreover, since the code image is always visible, the method of determining the authenticity is limited.

上記課題を解決するコード認識装置は、撮影部及び制御部を備える。前記制御部が、第1光源を用いて撮影した第1画像において、コード画像領域を検出し、前記コード画像領域における第1コード認識情報の復号を行ない、第2光源を用いて撮影した第2画像において、コード画像領域を検出し、前記第1画像に含まれる同じコード画像領域で第2コード認識情報の復号を行ない、前記第1コード認識情報と前記第2コード認識情報とが異なる場合、前記第2コード認識情報を真正と判定して、コード情報を特定する。   A code recognition device that solves the above-mentioned problems includes an imaging unit and a control unit. The control unit detects a code image area in a first image captured using a first light source, decodes the first code recognition information in the code image area, and captures a second image captured using a second light source. In the image, a code image area is detected, and second code recognition information is decoded in the same code image area included in the first image, and the first code recognition information and the second code recognition information are different, The second code recognition information is determined to be authentic, and code information is specified.

本発明によれば、コード画像を用いて、効率的に真偽を判定することができる。   According to the present invention, the code image can be used to efficiently determine authenticity.

本実施形態のシステム概略図。BRIEF DESCRIPTION OF THE DRAWINGS The system schematic of this embodiment. 本実施形態の処理手順の説明図。Explanatory drawing of the process sequence of this embodiment. 本実施形態の処理手順の説明図であって、(a)は通常撮影した真正なコード画像、(b)はフラッシュ撮影した真正なコード画像、(c)は通常撮影した偽物のコード画像、(d)はフラッシュ撮影した偽物のコード画像、(e)は通常撮影した他の偽物のコード画像、(f)はフラッシュ撮影した他の偽物のコード画像の説明図。It is explanatory drawing of the process sequence of this embodiment, Comprising: (a) is a genuine code image usually taken, (b) is a genuine code image shot in flash, (c) is a code image of a fake normally photographed, ( d) An illustration of a fake code image captured in flash, (e) a code image of other fake captured normally, and (f) a code image of another fake captured in flash. 他の実施形態の処理手順の説明図。Explanatory drawing of the process sequence of other embodiment. 他の実施形態の処理手順の説明図。Explanatory drawing of the process sequence of other embodiment.

以下、本発明を具体化した一実施形態を、図1〜図3に従って説明する。本実施形態では、コード画像を利用して情報を取得する場合に用いるコード認識装置、コード認識方法及びコード認識プログラムとして説明する。本実施形態では、コード画像の真偽を判定できるセキュリティコード画像を用いる。   An embodiment of the present invention will now be described with reference to FIGS. 1 to 3. In the present embodiment, a code recognition apparatus, a code recognition method, and a code recognition program used when acquiring information using a code image will be described. In the present embodiment, a security code image that can determine the authenticity of the code image is used.

図3(a)に示すように、セキュリティコード画像(コード画像300)として、複数領域に分割され、各領域に着色された画像(カラーコード画像)を用いる。このカラーコード画像としては、例えば、特許文献2に開示されている技術を用いることが可能である。このカラーコード画像は、コード画像領域を規定するフレーム301に囲まれた複数の領域(セル302)が、予め定められた複数のカラーで着色され、この着色の組み合わせにより、各コード画像を識別できる。本実施形態では、コード画像300の各セル302は、可視光では視認できない(見えない)が、フラッシュライトによって着色を識別できるインク(以下、再帰反射性インクという)により印刷される。このため、図3(a)に示すように、通常撮影したコード画像300はフレーム301のみの画像となる。この再帰反射性インクを用いることにより、特定方向からの入射光が、入射方向と同じ方向に反射することにより、図3(b)に示すように、コード画像310のフレーム301に囲まれた各セル302のカラー(コード要素)を浮き出させることができる。なお、図3(b)では各カラーを網掛けの違いで表現している。
このようなコード画像300を用いて情報を提供するために、本実施形態では、コード認識装置としてユーザ端末10を用いる。
As shown in FIG. 3A, as a security code image (code image 300), an image (color code image) divided into a plurality of areas and colored in each area is used. As the color code image, for example, the technology disclosed in Patent Document 2 can be used. In this color code image, a plurality of areas (cells 302) surrounded by a frame 301 defining a code image area are colored in a plurality of predetermined colors, and the combination of the colors allows each code image to be identified. . In the present embodiment, each cell 302 of the code image 300 is printed with an ink (hereinafter referred to as retroreflective ink) which can not be seen (not seen) by visible light but can be identified by flashlight. Therefore, as shown in FIG. 3A, the code image 300 captured normally is an image of only the frame 301. By using the retroreflective ink, incident light from a specific direction is reflected in the same direction as the incident direction, as shown in FIG. The color (code element) of the cell 302 can be raised. In FIG. 3 (b), each color is represented by a difference of hatching.
In order to provide information using such a code image 300, in the present embodiment, the user terminal 10 is used as a code recognition device.

図1に示すように、ユーザ端末10は、スマートフォン端末やタブレット端末等、ユーザが利用する情報処理端末である。このユーザ端末は、制御部11、タッチパネルディスプレイ12、撮影部13、照明部14等を備えている。タッチパネルディスプレイ12は、入力部及び出力部として機能する。撮影部13は、コード画像を撮影し、このカラー画像を取得する。照明部14は、光源(フラッシュライト)を発光する。   As shown in FIG. 1, the user terminal 10 is an information processing terminal used by a user, such as a smartphone terminal or a tablet terminal. The user terminal includes a control unit 11, a touch panel display 12, an imaging unit 13, an illumination unit 14, and the like. The touch panel display 12 functions as an input unit and an output unit. The imaging unit 13 captures a code image and acquires this color image. The illumination unit 14 emits a light source (flash light).

制御部11は、制御手段(CPU、RAM、ROM等)を備え、コード解析処理を行なう。そのため、記憶部に格納されたコード認識プログラムを実行することにより、制御部11は、画像取得部111、照明制御部112、コード解析部113として機能する。   The control unit 11 includes control means (CPU, RAM, ROM, etc.) and performs code analysis processing. Therefore, the control unit 11 functions as the image acquisition unit 111, the illumination control unit 112, and the code analysis unit 113 by executing the code recognition program stored in the storage unit.

画像取得部111は、環境光(第1光源)における撮影部13から撮影画像(カラー画像)を取得する処理を実行する。ここで、環境光は、照明部14を発光させない場合の環境光を意味する。更に、画像取得部111は、後述する照明部14の発光と連動して撮影画像を取得する。   The image acquisition unit 111 executes a process of acquiring a photographed image (color image) from the photographing unit 13 in ambient light (first light source). Here, ambient light means ambient light when the illumination unit 14 is not caused to emit light. Furthermore, the image acquisition unit 111 acquires a captured image in conjunction with light emission of the illumination unit 14 described later.

照明制御部112は、照明部14のフラッシュライト(第2光源としてのフラッシュ光源)を制御する処理を実行する。
コード解析部113は、デコーダとして機能し、取得したカラー画像において、カラーコードのエッジ画像(レイアウトパターン)によりコード画像のフレームを特定し、コード画像を抽出する。そして、コード解析部113は、発色したコード画像を復号してコード情報を取得する。
The illumination control unit 112 executes a process of controlling a flash light (a flash light source as a second light source) of the illumination unit 14.
The code analysis unit 113 functions as a decoder, specifies a frame of the code image by an edge image (layout pattern) of the color code in the acquired color image, and extracts the code image. Then, the code analysis unit 113 decodes the colored code image to acquire code information.

次に、図2に従って、上記のように構成されたシステムを用いて、セキュリティコード画像のコード認識方法の処理手順を説明する。
まず、ユーザ端末10の制御部11は、通常撮影処理を実行する(ステップS1−1)。具体的には、ユーザが、セキュリティコード画像の真偽の判定を希望する場合、ユーザ端末10において、セキュリティコード画像を確認するためのコード認識プログラムを起動する。そして、ユーザ端末10の撮影部13で、セキュリティコード画像を撮影する。この場合、制御部11の画像取得部111は、撮影部13を用いて撮影された撮影画像(カラー画像)を取得する。この場合には、照明部14においてフラッシュライトを発光させず、環境光を用いる。
Next, the processing procedure of the code recognition method of the security code image will be described according to FIG. 2 using the system configured as described above.
First, the control unit 11 of the user terminal 10 executes a normal shooting process (step S1-1). Specifically, when the user desires to determine the authenticity of the security code image, the user terminal 10 activates a code recognition program for confirming the security code image. Then, the imaging unit 13 of the user terminal 10 captures a security code image. In this case, the image acquisition unit 111 of the control unit 11 acquires a photographed image (color image) photographed using the photographing unit 13. In this case, the illumination unit 14 does not emit the flash light, and ambient light is used.

次に、ユーザ端末10の制御部11は、フレーム検出処理を実行する(ステップS1−2)。具体的には、制御部11のコード解析部113は、撮影画像において、レイアウトパターン認識により、コード画像のフレームを検出する。   Next, the control unit 11 of the user terminal 10 performs frame detection processing (step S1-2). Specifically, the code analysis unit 113 of the control unit 11 detects a frame of a code image in the captured image by layout pattern recognition.

次に、ユーザ端末10の制御部11は、コード認識可能かどうかについての判定処理を実行する(ステップS1−3)。具体的には、制御部11のコード解析部113は、撮影画像(第1画像)において検出したコード画像の各セルにおいて、デコード可能かどうかを判定する。コード情報(第1コード認識情報)を取得できたことにより、デコードできた場合には、コード認識可能と判定する。   Next, the control unit 11 of the user terminal 10 executes determination processing as to whether or not code recognition is possible (step S1-3). Specifically, the code analysis unit 113 of the control unit 11 determines whether or not decoding is possible in each cell of the code image detected in the captured image (first image). If code information (first code recognition information) can be obtained and thus decoding is possible, it is determined that code recognition is possible.

コード認識可能と判定した場合(ステップS1−3において「YES」の場合)、ユーザ端末10の制御部11は、偽物判定処理を実行する(ステップS1−4)。具体的には、制御部11のコード解析部113は、タッチパネルディスプレイ12において、セキュリティコード画像ではないことを示すメッセージを出力する。そして、コード認識処理を終了する。   When it is determined that the code can be recognized (in the case of “YES” in step S1-3), the control unit 11 of the user terminal 10 executes fake determination processing (step S1-4). Specifically, the code analysis unit 113 of the control unit 11 outputs a message indicating that the image is not a security code image on the touch panel display 12. Then, the code recognition process is ended.

一方、コード認識不可と判定した場合(ステップS1−3において「NO」の場合)、ユーザ端末10の制御部11は、フラッシュ撮影処理を実行する(ステップS1−5)。具体的には、制御部11の照明制御部112は、照明部14に対して、フラッシュライトの発光を指示する。この場合、画像取得部111は、撮影部13から、フラッシュライトの発光時の撮影画像(第2画像)を取得する。   On the other hand, when it is determined that the code recognition is not possible (in the case of “NO” in step S1-3), the control unit 11 of the user terminal 10 executes the flash photographing process (step S1-5). Specifically, the illumination control unit 112 of the control unit 11 instructs the illumination unit 14 to emit the flash light. In this case, the image acquisition unit 111 acquires from the imaging unit 13 a captured image (second image) when the flash light is emitted.

次に、ユーザ端末10の制御部11は、フレーム検出処理を実行する(ステップS1−6)。具体的には、制御部11のコード解析部113は、ステップS1−2において検出したフレーム位置と同じ位置で、フラッシュライトの発光時の撮影画像においてフレームを検出する。   Next, the control unit 11 of the user terminal 10 executes frame detection processing (step S1-6). Specifically, the code analysis unit 113 of the control unit 11 detects a frame in the captured image when the flash light is emitted at the same position as the frame position detected in step S1-2.

次に、ユーザ端末10の制御部11は、ステップS1−3と同様に、コード認識可能かどうかについての判定処理を実行する(ステップS1−7)。ここでは、コード情報(第2コード認識情報)を取得できたことにより、デコードできた場合には、コード認識可能と判定する。   Next, as in step S1-3, the control unit 11 of the user terminal 10 executes determination processing as to whether or not code recognition is possible (step S1-7). Here, when the code information (the second code recognition information) can be obtained and thus the code information can be decoded, it is determined that the code can be recognized.

コード認識可能と判定した場合(ステップS1−7において「YES」の場合)、ユーザ端末10の制御部11は、真正判定処理を実行する(ステップS1−8)。具体的には、制御部11のコード解析部113は、セキュリティコード画像であると判定し、デコード結果をタッチパネルディスプレイ12に出力する。
一方、コード認識不可と判定した場合(ステップS1−7において「NO」の場合)も、ユーザ端末10の制御部11は、偽物判定処理を実行する(ステップS1−4)。
When it is determined that the code can be recognized (in the case of “YES” in step S1-7), the control unit 11 of the user terminal 10 executes an authenticity determination process (step S1-8). Specifically, the code analysis unit 113 of the control unit 11 determines that the image is a security code image, and outputs the decoding result to the touch panel display 12.
On the other hand, also when it is determined that the code can not be recognized (in the case of “NO” in step S1-7), the control unit 11 of the user terminal 10 executes fake determination processing (step S1-4).

図3を用いて、撮影されたコード画像を説明する。
通常撮影処理(ステップS1−1)において、図3(a)に示すコード画像300を取得し、フラッシュ撮影処理(ステップS1−5)において、図3(b)に示すコード画像300を取得した場合には、真正判定処理を実行する(ステップS1−8)。
The photographed code image will be described with reference to FIG.
When the code image 300 shown in FIG. 3A is obtained in the normal shooting process (step S1-1), and the code image 300 shown in FIG. 3B is obtained in the flash shooting process (step S1-5) In step S1-8, an authenticity determination process is performed (step S1-8).

通常撮影処理(ステップS1−1)において、図3(c)に示すコード画像310を取得し、フラッシュ撮影処理(ステップS1−5)において、図3(d)に示すコード画像310を取得した場合には、偽物判定処理を実行する(ステップS1−4)。   When the code image 310 shown in FIG. 3C is obtained in the normal shooting process (step S1-1), and the code image 310 shown in FIG. 3D is obtained in the flash shooting process (step S1-5) In step S1-4, a fake determination process is performed (step S1-4).

なお、通常撮影処理(ステップS1−1)において、図3(e)に示すコード画像320を取得した場合、偽物判定処理を実行する(ステップS1−4)。この場合、フラッシュ撮影処理(ステップS1−5)を行なった場合にも、図3(f)に示すコード画像320を取得することにより、図3(e)に示すコード画像320と同じになり、セキュリティコード画像でない。   When the code image 320 shown in FIG. 3E is acquired in the normal shooting process (step S1-1), the fake object determination process is executed (step S1-4). In this case, even when the flash shooting process (step S1-5) is performed, the code image 320 shown in FIG. 3 (f) is obtained to be the same as the code image 320 shown in FIG. 3 (e), It is not a security code image.

本実施形態によれば、以下のような効果を得ることができる。
(1)本実施形態においては、コード画像300として、複数のセル302に分割され、各セル302に着色された画像(カラーコード画像)を用いる。コード画像300は、可視光では視認できない(見えない)が、フラッシュライトによって着色を識別できる再帰反射性インクにより印刷される。再帰反射性インクを用いることにより、環境光(第1光源)及びフラッシュライト(第2光源)を用いて撮影した画像により、セキュリティコード画像の真偽を判定することができる。
According to the present embodiment, the following effects can be obtained.
(1) In the present embodiment, as the code image 300, an image (color code image) divided into a plurality of cells 302 and colored in each cell 302 is used. The code image 300 is printed with retroreflective ink which is invisible (invisible) with visible light but whose color can be identified by flashlight. By using the retroreflective ink, it is possible to determine the authenticity of the security code image from the image captured using the ambient light (first light source) and the flash light (second light source).

(2)本実施形態においては、コード認識可能と判定した場合(ステップS1−3において「YES」の場合)、ユーザ端末10の制御部11は、偽物判定処理を実行する(ステップS1−4)。これにより、セキュリティコード画像でないことを示す情報を速やかに出力することができる。   (2) In the present embodiment, when it is determined that code recognition is possible (in the case of “YES” in step S1-3), the control unit 11 of the user terminal 10 executes fake determination processing (step S1-4) . Thus, information indicating that the image is not a security code image can be quickly output.

(3)本実施形態においては、ユーザ端末10の制御部11は、フレーム検出処理(ステップS1−6)、コード認識可能かどうかについての判定処理(ステップS1−7)を実行する。コード認識可能と判定した場合(ステップS1−7において「YES」の場合)、ユーザ端末10の制御部11は、真正判定処理を実行する(ステップS1−8)。これにより、セキュリティコード画像であることを示す情報を出力することができる。   (3) In the present embodiment, the control unit 11 of the user terminal 10 executes frame detection processing (step S1-6) and determination processing (step S1-7) as to whether or not code recognition is possible. When it is determined that the code can be recognized (in the case of “YES” in step S1-7), the control unit 11 of the user terminal 10 executes an authenticity determination process (step S1-8). Thereby, information indicating that it is a security code image can be output.

また、上記実施形態は、以下のように変更してもよい。
・上記実施形態では、ユーザ端末10の制御部11は、通常撮影処理(ステップS1−1)の後で、フラッシュ撮影処理(ステップS1−5)を実行する。複数種類の光源を用いての撮影を行なう場合には、その順番は限定されるものではない。例えば、フラッシュ撮影処理の後で、通常撮影処理を行なうようにしてもよい。この場合にも、同じ位置のコード画像のフレームにおいて、それぞれの撮影画像においてデコードを行なう。
The above embodiment may be modified as follows.
In the above embodiment, the control unit 11 of the user terminal 10 executes the flash shooting process (step S1-5) after the normal shooting process (step S1-1). When photographing using a plurality of types of light sources, the order is not limited. For example, the normal shooting process may be performed after the flash shooting process. Also in this case, decoding is performed on each captured image in the frame of the code image at the same position.

・上記実施形態では、第2光源として照明部14を用いたが、第2光源としては、ユーザ端末10の照明部14に限定されるものではない。例えば、ユーザ端末10の制御部11が制御可能な外部の光源を用いてもよい。   -Although the illumination part 14 was used as a 2nd light source in the said embodiment, it is not limited to the illumination part 14 of the user terminal 10 as a 2nd light source. For example, an external light source that can be controlled by the control unit 11 of the user terminal 10 may be used.

・上記実施形態では、コード認識可能と判定した場合(ステップS1−3において「YES」の場合)、ユーザ端末10の制御部11は、偽物判定処理を実行する(ステップS1−4)。これに代えて、通常撮影及びフラッシュ撮影の両撮影を行なってから、セキュリティコード画像の真偽を判定するようにしてもよい。この場合には、コード解析部113に、コード画像の撮影回数について許容回数に関するデータを保持させておく。   In the above embodiment, when it is determined that the code can be recognized (in the case of “YES” in step S1-3), the control unit 11 of the user terminal 10 executes the fake determination process (step S1-4). Instead of this, it is also possible to determine whether the security code image is true or false after performing both the normal shooting and the flash shooting. In this case, the code analysis unit 113 holds data on the allowable number of times of photographing of the code image.

図4を用いて、コード認識処理を説明する。
まず、ユーザ端末10の制御部11は、ステップS1−1、S1−2と同様に、通常撮影処理(ステップS2−1)、フレーム検出処理(ステップS2−2)を実行する。
The code recognition process will be described with reference to FIG.
First, similarly to steps S1-1 and S1-2, the control unit 11 of the user terminal 10 executes a normal shooting process (step S2-1) and a frame detection process (step S2-2).

次に、ユーザ端末10の制御部11は、デコード処理を実行する(ステップS2−3)。具体的には、制御部11のコード解析部113は、検出したフレームによって構成されたコード画像をデコードする。そして、コード解析部113は、デコード結果をメモリに仮記憶する。   Next, the control unit 11 of the user terminal 10 executes a decoding process (step S2-3). Specifically, the code analysis unit 113 of the control unit 11 decodes the code image configured by the detected frame. Then, the code analysis unit 113 temporarily stores the decoding result in the memory.

次に、ユーザ端末10の制御部11は、ステップS1−5、S1−6と同様に、フラッシュ撮影処理(ステップS2−4)、フレーム検出処理(ステップS2−5)を実行する。   Next, the control unit 11 of the user terminal 10 executes the flash photographing process (step S2-4) and the frame detection process (step S2-5) as in steps S1-5 and S1-6.

次に、ユーザ端末10の制御部11は、ステップS2−3と同様に、デコード処理を実行する(ステップS2−6)。具体的には、制御部11のコード解析部113は、検出したフレームによって構成されたコード画像をデコードする。   Next, as in step S2-3, the control unit 11 of the user terminal 10 executes the decoding process (step S2-6). Specifically, the code analysis unit 113 of the control unit 11 decodes the code image configured by the detected frame.

次に、ユーザ端末10の制御部11は、コード照合処理を実行する(ステップS2−7)。具体的には、制御部11のコード解析部113は、通常撮影のコード画像から取得し、メモリに仮記憶したコードと、フラッシュ撮影のコード画像から取得したコードとを比較する。   Next, the control unit 11 of the user terminal 10 executes code comparison processing (step S2-7). Specifically, the code analysis unit 113 of the control unit 11 compares the code acquired from the code image for normal imaging and temporarily stored in the memory with the code acquired from the code image for flash imaging.

次に、ユーザ端末10の制御部11は、認識完了かどうかについての判定処理を実行する(ステップS2−8)。具体的には、制御部11のコード解析部113は、通常撮影においてデコードできず、フラッシュ撮影においてデコードした場合には完了と判定する。   Next, the control unit 11 of the user terminal 10 executes a determination process as to whether or not the recognition is completed (step S2-8). Specifically, the code analysis unit 113 of the control unit 11 can not decode in the normal shooting, and determines that the decoding is completed when the decoding is performed in the flash shooting.

認識完了と判定した場合(ステップS2−8において「YES」の場合)、ユーザ端末10の制御部11は、ステップS1−8と同様に、真正判定処理を実行する(ステップS2−9)。   When it is determined that the recognition is completed (in the case of “YES” in step S2-8), the control unit 11 of the user terminal 10 executes the authenticity determination process as in step S1-8 (step S2-9).

一方、認識未了と判定した場合(ステップS2−8において「NO」の場合)、ユーザ端末10の制御部11は、撮影回数のカウントアップ処理を実行する(ステップS2−10)。具体的には、制御部11のコード解析部113は、メモリに記録した撮影回数に「1」を加算する。   On the other hand, when it is determined that the recognition is not completed (in the case of “NO” in step S2-8), the control unit 11 of the user terminal 10 executes count-up processing of the number of times of imaging (step S2-10). Specifically, the code analysis unit 113 of the control unit 11 adds “1” to the number of times of shooting recorded in the memory.

次に、ユーザ端末10の制御部11は、認識エラーかどうかについての判定処理を実行する(ステップS2−11)。具体的には、制御部11のコード解析部113は、メモリに記録した撮影回数と許容回数とを比較する。撮影回数が許容回数を超えている場合には、認識エラーと判定する。   Next, the control unit 11 of the user terminal 10 executes determination processing as to whether or not it is a recognition error (step S2-11). Specifically, the code analysis unit 113 of the control unit 11 compares the number of times of photographing recorded in the memory with the allowable number of times. If the number of times of photographing exceeds the allowable number of times, it is determined as a recognition error.

認識エラーと判定した場合(ステップS2−11において「YES」の場合)、ユーザ端末10の制御部11は、ステップS1−4と同様に、偽物判定処理を実行する(ステップS2−12)。   When it is determined that a recognition error has occurred (in the case of “YES” in step S2-11), the control unit 11 of the user terminal 10 executes fake determination processing as in step S1-4 (step S2-12).

一方、撮影回数が許容回数以下で、認識エラーでないと判定した場合(ステップS2−11において「NO」の場合)、ユーザ端末10の制御部11は、通常撮影処理(ステップS2−1)に戻る。これにより、通常撮影とフラッシュ撮影とを繰り返して、セキュリティコード画像の真偽を判定することができる。   On the other hand, when it is determined that the number of times of photographing is equal to or less than the allowable number and it is not a recognition error (in the case of "NO" in step S2-11), the control unit 11 of the user terminal 10 returns to the normal photographing process (step S2-1). . Thus, it is possible to determine whether the security code image is true or false by repeating normal shooting and flash shooting.

・上記実施形態では、セキュリティコード画像のコード認識処理を実行する。これに加えて、通常のコード画像のコード認識処理と併用してもよい。
図5を用いて、コード認識処理を説明する。
まず、ユーザ端末10の制御部11は、ステップS1−1〜S1−3と同様に、通常撮影処理(ステップS3−1)、フレーム検出処理(ステップS3−2)、コード認識可能かどうかについての判定処理(ステップS3−3)を実行する。
In the above embodiment, code recognition processing of the security code image is executed. In addition to this, it may be used together with code recognition processing of a normal code image.
The code recognition process will be described with reference to FIG.
First, as in steps S1-1 to S1-3, the control unit 11 of the user terminal 10 determines whether the normal imaging process (step S3-1), the frame detection process (step S3-2), and the code recognition are possible. The determination process (step S3-3) is performed.

コード認識可能と判定した場合(ステップS3−3において「YES」の場合)、ユーザ端末10の制御部11は、通常対応処理を実行する(ステップS3−4)。具体的には、制御部11のコード解析部113は、タッチパネルディスプレイ12において、通常のコード画像であることを示すメッセージ及びデコードしたコード情報を出力する。   When it is determined that the code can be recognized (in the case of “YES” in step S3-3), the control unit 11 of the user terminal 10 executes normal handling processing (step S3-4). Specifically, the code analysis unit 113 of the control unit 11 causes the touch panel display 12 to output a message indicating that the code image is a normal code image and decoded code information.

一方、コード認識不可と判定した場合(ステップS3−3において「NO」の場合)、ユーザ端末10の制御部11は、ステップS1−5〜S1−7と同様に、フラッシュ撮影処理(ステップS3−5)、フレーム検出処理(ステップS3−6)、コード認識可能かどうかについての判定処理(ステップS3−7)を実行する。   On the other hand, when it is determined that the code can not be recognized (in the case of “NO” in step S3-3), the control unit 11 of the user terminal 10 performs flash photographing processing (step S3-3) as in steps S1-5 to S1-7. 5) A frame detection process (step S3-6) and a determination process (step S3-7) as to whether or not the code can be recognized are executed.

コード認識可能と判定した場合(ステップS3−7において「YES」の場合)、ユーザ端末10の制御部11は、S1−8と同様に、真正判定処理を実行する(ステップS3−8)。   When it is determined that the code can be recognized (in the case of “YES” in step S3-7), the control unit 11 of the user terminal 10 executes the authenticity determination process (step S3-8) as in the case of S1-8.

コード認識不可と判定した場合(ステップS3−7において「NO」の場合)、ユーザ端末10の制御部11は、エラー処理を実行する(ステップS3−9)。具体的には、制御部11のコード解析部113は、タッチパネルディスプレイ12に、エラーメッセージを出力する。これにより、通常のコード画像とセキュリティコード画像のデコードを併用することができる。   When it is determined that the code can not be recognized (in the case of “NO” in step S3-7), the control unit 11 of the user terminal 10 executes an error process (step S3-9). Specifically, the code analysis unit 113 of the control unit 11 outputs an error message to the touch panel display 12. Thus, decoding of the normal code image and the security code image can be used in combination.

・上記実施形態では、コード画像としてカラーコード画像を用いたが、コード画像はこれに限定されるものではない。例えば、バーコードや2次元コード画像を用いることも可能である。この場合には、コード画像を印字した領域に、コード画像を構成し、第1光源及び第2光源で視認可能なフレームを設けておく。そして、第1光源でフレームが印字された領域を撮影し、この領域を第2光源で撮影した画像により、セキュリティコード画像の真偽を判定する。   In the above embodiment, a color code image is used as the code image, but the code image is not limited to this. For example, it is also possible to use a barcode or a two-dimensional code image. In this case, the code image is configured in the area where the code image is printed, and a frame visible by the first light source and the second light source is provided. Then, the area where the frame is printed is photographed by the first light source, and the authenticity of the security code image is determined by the image of the area photographed by the second light source.

・上記実施形態では、環境光においては、フレームのみを視認できるようにする。これに代えて、コード画像のフレームの一部にコード要素を埋め込むようにしてもよい。この場合、通常撮影(第1光源を用いた撮影)で取得した第1コード要素と、フラッシュ撮影(第2光源を用いた撮影)で取得した第2コード要素とをメモリに仮記憶し、両者を組み合わせて復号を行なう。例えば、第1コード要素と第2コード要素とを用いて四則演算したり、第1コード要素に基づいて第2コード要素の復号方法を変更したりする。これにより、第1光源での撮影画像から取得した情報と、第2光源での撮影画像から取得した情報を用いて、セキュリティコード画像の真偽の判定やデコードを行なうことができる。   In the above embodiment, only the frame is visible in ambient light. Alternatively, the code element may be embedded in part of the frame of the code image. In this case, the first code element acquired by normal photographing (photographing using the first light source) and the second code element acquired by flash photographing (photographing using the second light source) are temporarily stored in the memory, Decode by combining. For example, arithmetic operations are performed using the first code element and the second code element, or the decoding method of the second code element is changed based on the first code element. Thereby, the authenticity determination and decoding of the security code image can be performed using the information acquired from the photographed image by the first light source and the information acquired from the photographed image by the second light source.

10…ユーザ端末、11…制御部、12…タッチパネルディスプレイ、13…撮影部、14…照明部、300,310,320…コード画像、301…フレーム、302…セル。   DESCRIPTION OF SYMBOLS 10 ... User terminal, 11 ... Control part, 12 ... Touch-panel display, 13 ... Photography part, 14 ... Illumination part, 300, 310, 320 ... Code image, 301 ... Frame, 302 ... Cell.

Claims (6)

撮影部及び制御部を備えたコード認識装置であって、
前記制御部が、
第1光源を用いて撮影した第1画像において、コード画像領域を検出し、前記コード画像領域における第1コード認識情報の復号を行ない、
第2光源を用いて撮影した第2画像において、コード画像領域を検出し、前記第1画像に含まれる同じコード画像領域で第2コード認識情報の復号を行ない、
前記第1コード認識情報と前記第2コード認識情報とが異なる場合、前記第2コード認識情報を真正と判定して、コード情報を特定することを特徴とするコード認識装置。
A code recognition apparatus comprising an imaging unit and a control unit, wherein
The control unit
Detecting a code image area in a first image photographed using a first light source, and decoding first code recognition information in the code image area;
A code image area is detected in a second image captured using a second light source, and second code recognition information is decoded in the same code image area included in the first image;
A code recognition apparatus characterized in that, when the first code recognition information and the second code recognition information are different, the second code recognition information is determined to be authentic and the code information is specified.
前記第1光源は環境光であり、前記第2光源はフラッシュ光源であることを特徴とする請求項1に記載のコード認識装置。   The code recognition apparatus according to claim 1, wherein the first light source is ambient light, and the second light source is a flash light source. 前記第1コード認識情報の復号の結果に基づいて、前記第2コード認識情報の復号を行なうことを特徴とする請求項1又は2に記載のコード認識装置。   3. The code recognition device according to claim 1, wherein the second code recognition information is decoded based on the result of the decoding of the first code recognition information. 前記コード画像領域には、フレーム内に配置された複数のセルにおける着色の組み合わせからなるカラーコードを用いることを特徴とする請求項1〜3の何れか一項に記載のコード認識装置。   The code recognition device according to any one of claims 1 to 3, wherein the code image area uses a color code which is a combination of coloring in a plurality of cells arranged in a frame. 撮影部及び制御部を備えたコード認識装置を用いたコード認識方法であって、
前記制御部が、
第1光源を用いて撮影した第1画像において、コード画像領域を検出し、前記コード画像領域における第1コード認識情報の復号を行ない、
第2光源を用いて撮影した第2画像において、コード画像領域を検出し、前記第1画像に含まれる同じコード画像領域で第2コード認識情報の復号を行ない、
前記第1コード認識情報と前記第2コード認識情報とが異なる場合、前記第2コード認識情報を真正と判定して、コード情報を特定することを特徴とするコード認識方法。
A code recognition method using a code recognition device comprising an imaging unit and a control unit,
The control unit
Detecting a code image area in a first image photographed using a first light source, and decoding first code recognition information in the code image area;
A code image area is detected in a second image captured using a second light source, and second code recognition information is decoded in the same code image area included in the first image;
A code recognition method characterized in that, when the first code recognition information and the second code recognition information are different, the second code recognition information is judged as genuine and the code information is specified.
撮影部及び制御部を備えたコード認識装置に用いるコード認識プログラムであって、
前記制御部を、
第1光源を用いて撮影した第1画像において、コード画像領域を検出し、前記コード画像領域における第1コード認識情報の復号を行ない、
第2光源を用いて撮影した第2画像において、コード画像領域を検出し、前記第1画像に含まれる同じコード画像領域で第2コード認識情報の復号を行ない、
前記第1コード認識情報と前記第2コード認識情報とが異なる場合、前記第2コード認識情報を真正と判定して、コード情報を特定する手段として機能させることを特徴とするコード認識プログラム。
A code recognition program for use in a code recognition apparatus comprising an imaging unit and a control unit, the code recognition program comprising:
The control unit is
Detecting a code image area in a first image photographed using a first light source, and decoding first code recognition information in the code image area;
A code image area is detected in a second image captured using a second light source, and second code recognition information is decoded in the same code image area included in the first image;
A code recognition program characterized in that, when the first code recognition information and the second code recognition information are different, the second code recognition information is determined to be authentic to function as means for specifying code information.
JP2017187790A 2017-09-28 2017-09-28 Code recognition apparatus, code recognition method, and code recognition program Pending JP2019062499A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2017187790A JP2019062499A (en) 2017-09-28 2017-09-28 Code recognition apparatus, code recognition method, and code recognition program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2017187790A JP2019062499A (en) 2017-09-28 2017-09-28 Code recognition apparatus, code recognition method, and code recognition program

Publications (1)

Publication Number Publication Date
JP2019062499A true JP2019062499A (en) 2019-04-18

Family

ID=66177735

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2017187790A Pending JP2019062499A (en) 2017-09-28 2017-09-28 Code recognition apparatus, code recognition method, and code recognition program

Country Status (1)

Country Link
JP (1) JP2019062499A (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007192883A (en) * 2006-01-17 2007-08-02 Shiseido Co Ltd Information-recorded laminated material, article having same stuck thereto, method and apparatus for reading information
JP2009020813A (en) * 2007-07-13 2009-01-29 Three M Innovative Properties Co Tag and article identification system using the same
JP2014026643A (en) * 2012-06-20 2014-02-06 Denso Wave Inc Information code and information code reading apparatus

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007192883A (en) * 2006-01-17 2007-08-02 Shiseido Co Ltd Information-recorded laminated material, article having same stuck thereto, method and apparatus for reading information
JP2009020813A (en) * 2007-07-13 2009-01-29 Three M Innovative Properties Co Tag and article identification system using the same
JP2014026643A (en) * 2012-06-20 2014-02-06 Denso Wave Inc Information code and information code reading apparatus

Similar Documents

Publication Publication Date Title
JP6951056B2 (en) Acceleration-based motion tolerance and predictive coding
JP5084718B2 (en) Combination detection of position coding pattern and barcode
US8011583B2 (en) Systems, devices, and/or methods for managing data matrix lighting
CN109086694B (en) Face recognition system and method
JP2016119052A (en) Image recognition apparatus and commodity information processing apparatus
US20200394399A1 (en) System and method for the identification of objects
JP2017151969A (en) Enhanced matrix symbol error correction method
RU2009124522A (en) INFORMATION PROCESSING DEVICE AND INFORMATION PROCESSING METHOD
US11288475B2 (en) Two-dimensional barcode generating method, verification method, server and two-dimensional barcode
US20180220023A1 (en) Image scanning device
US10489621B2 (en) Reading device and mobile terminal
JP6361265B2 (en) Information code reader
JP2019062499A (en) Code recognition apparatus, code recognition method, and code recognition program
JP4675636B2 (en) Fingerprint verification device
JP7119799B2 (en) Authenticity judgment system
EP3076332A2 (en) Method to check the authenticity of articles, each provided with at least one optical reading marking
US11449699B2 (en) Information code reading system
JP2013106238A (en) Marker detection and tracking device
US11120238B2 (en) Decoding color barcodes
JP5962720B2 (en) Light irradiation apparatus and program
JP5293853B1 (en) Bar code reader
JP6398809B2 (en) Information code reader
JP6486813B2 (en) Code reader
JP5920048B2 (en) Information code and information code reader
JP6305241B2 (en) Article management system, terminal device, storage and collation device, and article management method

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20200903

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20210525

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20210608

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20211207