JP2021015489A - Image analysis device, image analysis system, image analysis method and image analysis program - Google Patents

Image analysis device, image analysis system, image analysis method and image analysis program Download PDF

Info

Publication number
JP2021015489A
JP2021015489A JP2019130251A JP2019130251A JP2021015489A JP 2021015489 A JP2021015489 A JP 2021015489A JP 2019130251 A JP2019130251 A JP 2019130251A JP 2019130251 A JP2019130251 A JP 2019130251A JP 2021015489 A JP2021015489 A JP 2021015489A
Authority
JP
Japan
Prior art keywords
image
code
image analysis
analysis
unit
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
JP2019130251A
Other languages
Japanese (ja)
Inventor
内田 譲
Yuzuru Uchida
譲 内田
和寛 金丸
Kazuhiro Kanemaru
和寛 金丸
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.)
Kyocera Document Solutions Inc
Original Assignee
Kyocera Document Solutions Inc
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 Kyocera Document Solutions Inc filed Critical Kyocera Document Solutions Inc
Priority to JP2019130251A priority Critical patent/JP2021015489A/en
Publication of JP2021015489A publication Critical patent/JP2021015489A/en
Pending legal-status Critical Current

Links

Landscapes

  • Image Analysis (AREA)

Abstract

To provide a technology for detecting forgery of a code image.SOLUTION: An image analysis device includes an image reading part for reading an image including a code image to generate image data, an image analysis part for acquiring at least one piece of code information by executing analysis including error correction of the image data, and a forgery determination part for determining that the code image is forged in the case that the at least one piece of code information acquired on the basis of success of the error correction includes a plurality of pieces of mutually different code information.SELECTED DRAWING: Figure 1

Description

本発明は、コード画像の偽造を検知するための画像解析技術に関する。 The present invention relates to an image analysis technique for detecting forgery of a code image.

近年、QRコード(登録商標)を含む2次元コードが普及している。画像表示技術分野においては、特許文献1は、情報格納画像(たとえば2次元コード)の表示中である場合には、電力消費を軽減するための省エネモードへの移行を禁止し、省エネモードに伴う光源光量を減らす減光制御を予防する技術を提案している。特許文献1は、この技術によれば、減光制御に伴う2次元コードの読取り不能又は読み取り困難な事態を抑制することができるとしている。 In recent years, two-dimensional codes including QR codes (registered trademarks) have become widespread. In the field of image display technology, Patent Document 1 prohibits the transition to the energy saving mode for reducing power consumption when the information storage image (for example, a two-dimensional code) is being displayed, and accompanies the energy saving mode. We are proposing a technology to prevent dimming control that reduces the amount of light from the light source. According to Patent Document 1, according to this technique, it is possible to suppress a situation in which a two-dimensional code cannot be read or is difficult to read due to dimming control.

特開2018−5298号公報JP-A-2018-5298

しかし、コード画像の悪用防止については十分な検討が行われていなかった。 However, sufficient consideration has not been given to the prevention of misuse of code images.

本発明は、このような状況に鑑みてなされたものであり、コード画像の偽造を検知する技術を提供することを目的とする。 The present invention has been made in view of such a situation, and an object of the present invention is to provide a technique for detecting forgery of a code image.

本発明の画像解析装置は、コード画像を含む画像を読み取って画像データを生成する画像読取部と、前記画像データに対してエラー訂正を含む解析を実行することによって少なくとも1つのコード情報を取得する画像解析部と、前記エラー訂正の成功に基づいて取得された前記少なくとも1つコード情報が複数の相互に相違するコード情報を含んでいる場合に、前記コード画像に偽造がなされていると判定する偽造判定部とを備える。 The image analysis apparatus of the present invention acquires at least one code information by performing an image reading unit that reads an image including a code image and generates image data and an analysis including error correction on the image data. When the image analysis unit and the at least one code information acquired based on the success of the error correction include a plurality of mutually different code information, it is determined that the code image is forged. It is equipped with a counterfeit determination unit.

本発明の画像解析システムは、上記画像解析装置と、光を変化させつつ前記コード画像を表示可能な画像表示装置とを備え、前記画像読取部は、前記光を変化させつつ前記画像表示装置に前記コード画像を表示させ、前記表示されたコード画像を読み取って複数の画像データを生成し前記画像解析部は、前記複数の画像データのそれぞれに対して前記解析を実行し、前記偽造判定部は、前記複数の画像データのそれぞれについて前記コード画像に偽造がなされているか否かを判定する。 The image analysis system of the present invention includes the image analysis device and an image display device capable of displaying the code image while changing the light, and the image reading unit is used on the image display device while changing the light. The code image is displayed, the displayed code image is read to generate a plurality of image data, the image analysis unit executes the analysis on each of the plurality of image data, and the counterfeit determination unit , It is determined whether or not the code image is forged for each of the plurality of image data.

本発明の画像解析方法は、コード画像を含む画像を読み取って画像データを生成する画像読取工程と、前記画像データに対してエラー訂正を含む解析を実行することによって少なくとも1つのコード情報を取得する画像解析工程と、前記エラー訂正の成功に基づいて取得された前記少なくとも1つコード情報が複数の相互に相違するコード情報を含んでいる場合に、前記コード画像に偽造がなされていると判定する偽造判定工程とを備える。 The image analysis method of the present invention acquires at least one code information by performing an image reading step of reading an image including a code image to generate image data and an analysis including error correction on the image data. When the at least one code information acquired based on the image analysis step and the success of the error correction contains a plurality of mutually different code information, it is determined that the code image is forged. It is provided with a counterfeit determination step.

本発明は、画像解析装置を制御するための画像解析プログラムを提供する。前記画像解析プログラムは、コード画像を含む画像を読み取って画像データを生成する画像読取部、前記画像データに対してエラー訂正を含む解析を実行することによって少なくとも1つのコード情報を取得する画像解析部、及び前記エラー訂正の成功に基づいて取得された前記少なくとも1つコード情報が複数の相互に相違するコード情報を含んでいる場合に、前記コード画像に偽造がなされていると判定する偽造判定部として前記画像解析装置を機能させる。 The present invention provides an image analysis program for controlling an image analysis device. The image analysis program is an image reading unit that reads an image including a code image to generate image data, and an image analysis unit that acquires at least one code information by executing an analysis including error correction on the image data. , And, when the at least one code information acquired based on the success of the error correction contains a plurality of mutually different code information, the forgery determination unit for determining that the code image is forged. The image analysis device is made to function as.

本発明によれば、コード画像の偽造を検知する技術を提供することができる。 According to the present invention, it is possible to provide a technique for detecting forgery of a code image.

本発明の一実施形態に係る画像解析システム10の機能構成を示すブロックダイアグラムである。It is a block diagram which shows the functional structure of the image analysis system 10 which concerns on one Embodiment of this invention. 比較例に係る2次元コード読取処理の内容を示すフローチャートである。It is a flowchart which shows the content of the 2D code reading process which concerns on a comparative example. 2次元コードの汚損の例を示す説明図である。It is explanatory drawing which shows the example of the pollution of a 2D code. 2次元コードQCの濃度ヒストグラムの例を示す説明図である。It is explanatory drawing which shows the example of the density histogram of 2D code QC. 一実施形態に係る2次元コード読取処理の内容を示すフローチャートである。It is a flowchart which shows the content of the 2D code reading process which concerns on one Embodiment. 一実施形態に係るコード情報取得処理の内容を示すフローチャートである。It is a flowchart which shows the content of the code information acquisition process which concerns on one Embodiment. 一実施形態に係るヒストグラム解析の内容を示す説明図である。It is explanatory drawing which shows the content of the histogram analysis which concerns on one Embodiment. 一実施形態に係る偽造判定処理の内容を示すフローチャートである。It is a flowchart which shows the content of the forgery determination process which concerns on one Embodiment.

以下、本発明を実施するための形態(以下、「実施形態」という)を、図面を参照して説明する。 Hereinafter, embodiments for carrying out the present invention (hereinafter, referred to as “embodiments”) will be described with reference to the drawings.

図1は、本発明の一実施形態に係る画像解析システム10の機能構成を示すブロックダイアグラムである。画像解析システム10は、画像解析装置(この例では、スマートフォン)100とパーソナルコンピュータ200とを備えている。画像解析装置100は、たとえばスマートフォンやタブレットの作動モードの1つとして構成されている。パーソナルコンピュータ200は、画像を表示可能なものであればよく、画像表示装置とも呼ばれる。 FIG. 1 is a block diagram showing a functional configuration of an image analysis system 10 according to an embodiment of the present invention. The image analysis system 10 includes an image analysis device (smartphone in this example) 100 and a personal computer 200. The image analysis device 100 is configured as, for example, one of the operation modes of a smartphone or tablet. The personal computer 200 may be any one capable of displaying an image, and is also called an image display device.

画像解析装置100は、制御部110と、操作表示部130と、記憶部140と、通信インターフェース部(通信I/F部とも呼ばれる。)150と、撮像部160と、LED光源170とを備えている。操作表示部130は、タッチパネルとして機能し、様々なメニューを入力画面として表示し、ユーザーの操作入力を受け付ける。通信インターフェース部150は、Wi−Fiや4G(第4世代携帯電話の無線通信技術)を介してネットワークに接続可能である。撮像部160は、画像読取部とも呼ばれる。 The image analysis device 100 includes a control unit 110, an operation display unit 130, a storage unit 140, a communication interface unit (also referred to as a communication I / F unit) 150, an image pickup unit 160, and an LED light source 170. There is. The operation display unit 130 functions as a touch panel, displays various menus as input screens, and accepts user operation inputs. The communication interface unit 150 can be connected to a network via Wi-Fi or 4G (wireless communication technology of a fourth-generation mobile phone). The image pickup unit 160 is also called an image reading unit.

パーソナルコンピュータ200は、制御部210と、操作表示部230と、記憶部240と、通信インターフェース部(通信I/F部とも呼ばれる。)250とを備えている。パーソナルコンピュータ200は、通信インターフェース部250を使用して画像解析装置100と接続可能である。 The personal computer 200 includes a control unit 210, an operation display unit 230, a storage unit 240, and a communication interface unit (also referred to as a communication I / F unit) 250. The personal computer 200 can be connected to the image analysis device 100 by using the communication interface unit 250.

撮像部160は、露出調整部161を備えている。露出調整部161は、撮影対象の光量に応じて、シャッター速度、絞り値及びISO感度を操作して露出を調整することができる。シャッター速度は、撮像素子が光学系を通した光にさらされる時間(露光時間)である。絞り値は、光学系を通過する光の量の調整量であり、F値で表すことができる。ISO感度は、撮像素子から出力される電気信号の増幅率に相当する。LED光源170は、光照射部とも呼ばれ、撮像部160による撮像時において撮影対象の照射に利用することができる光源である。 The imaging unit 160 includes an exposure adjusting unit 161. The exposure adjustment unit 161 can adjust the exposure by operating the shutter speed, the aperture value, and the ISO sensitivity according to the amount of light to be photographed. The shutter speed is the time (exposure time) that the image sensor is exposed to the light that has passed through the optical system. The aperture value is an adjustment amount of the amount of light passing through the optical system, and can be expressed by an F value. The ISO sensitivity corresponds to the amplification factor of the electric signal output from the image sensor. The LED light source 170 is also called a light irradiation unit, and is a light source that can be used for irradiating an imaging target at the time of imaging by the imaging unit 160.

制御部110は、RAMやROM等の主記憶手段、及びMPU(Micro Processing Unit)やCPU(Central Processing Unit)等の制御手段を備えている。また、制御部110は、各種I/O、USB(ユニバーサル・シリアル・バス)、バス、その他ハードウェア等のインターフェースに関連するコントローラ機能を備えている。制御部110は、画像解析装置100の全体を制御する。制御部110は、さらに、画像解析部111、偽造判定部113及び偽造対応部114を備える。画像解析部111は、エラー訂正部112を有している。 The control unit 110 includes main storage means such as RAM and ROM, and control means such as MPU (Micro Processing Unit) and CPU (Central Processing Unit). In addition, the control unit 110 has controller functions related to interfaces such as various I / O, USB (universal serial bus), bus, and other hardware. The control unit 110 controls the entire image analysis device 100. The control unit 110 further includes an image analysis unit 111, a counterfeit determination unit 113, and a counterfeit response unit 114. The image analysis unit 111 has an error correction unit 112.

記憶部140は、非一時的な記録媒体であるハードディスクドライブやフラッシュメモリー等からなる記憶装置で、それぞれ制御部110が実行する処理の制御プログラムやデータを記憶する。記憶部140には、スマートフォンやタブレットを画像解析装置100として機能させるためにインストールされている画像解析アプリケーションプログラム141(単にアプリケーション又は画像解析プログラムとも呼ばれる。)が記憶されている。 The storage unit 140 is a storage device including a hard disk drive, a flash memory, or the like, which are non-temporary recording media, and stores control programs and data for processing executed by the control unit 110, respectively. The storage unit 140 stores an image analysis application program 141 (also simply referred to as an application or an image analysis program) installed to make a smartphone or tablet function as an image analysis device 100.

図2は、比較例に係る2次元コード読取処理の内容を示すフローチャートである。2次元コード読取処理は、一例としてQRコード(登録商標)を含む2次元コードの画像であるコード画像を読み取って、コード画像に含まれているデータを取得する処理である。QRコード(登録商標)は、JIS(JIS−X−0510)によって規格制定され、標準化されたコード画像である。QRコード(登録商標)には、10×10セル乃至144×144セルの24種類の大きさがある。 FIG. 2 is a flowchart showing the contents of the two-dimensional code reading process according to the comparative example. The two-dimensional code reading process is, for example, a process of reading a code image which is an image of a two-dimensional code including a QR code (registered trademark) and acquiring data included in the code image. The QR code (registered trademark) is a code image standardized by JIS (JIS-X-0510). The QR code (registered trademark) comes in 24 sizes from 10 × 10 cells to 144 × 144 cells.

ステップS10では、画像解析装置100の撮像部160は、撮像処理を実行する。この例では、撮像部160は、LED光源170を点灯すること無く、印刷された2次元コードQCのコード画像を環境光で撮像し、画像データを生成するものとする。 In step S10, the image pickup unit 160 of the image analysis device 100 executes the image pickup process. In this example, the imaging unit 160 captures the printed code image of the two-dimensional code QC with ambient light without turning on the LED light source 170, and generates image data.

図3は、2次元コードの汚損の例を示す説明図である。図3(a)は、2次元コードQCにシミが付着している状態を示している。この例では、シミは、透過性であり、濃度のばらつきを有している。図3(b)は、2次元コードQCに汚れが付着している状態を示している。この例では、汚れは、不透過であり、濃度のばらつきを有している。図3(c)は、2次元コードQCに破損(破れ等)がある状態を示している。この例では、破損は、2次元コードQCが貼られている物品の下地(白)が露出している状態を示している。 FIG. 3 is an explanatory diagram showing an example of contamination of the two-dimensional code. FIG. 3A shows a state in which a stain is attached to the two-dimensional code QC. In this example, the stains are permeable and have varying concentrations. FIG. 3B shows a state in which dirt is attached to the two-dimensional code QC. In this example, the stain is opaque and has varying concentrations. FIG. 3C shows a state in which the two-dimensional code QC is damaged (torn or the like). In this example, the breakage indicates a state in which the base (white) of the article to which the two-dimensional code QC is attached is exposed.

図4は、2次元コードQCの濃度ヒストグラムの例を示す説明図である。濃度ヒストグラムH1、H2は、縦軸がドット頻度、すなわち画像データの画素数を示し、横軸が輝度階調値を示している。輝度階調値は、光量階調値であり、人間の視覚を考慮する必要はなく、たとえばRGBの階調値の平均でもよい。 FIG. 4 is an explanatory diagram showing an example of a density histogram of the two-dimensional code QC. In the density histograms H1 and H2, the vertical axis represents the dot frequency, that is, the number of pixels of the image data, and the horizontal axis represents the luminance gradation value. The luminance gradation value is a light amount gradation value, and it is not necessary to consider human vision, and for example, the average of RGB gradation values may be used.

図4(a)は、汚損無し状態の2次元コードQCの濃度ヒストグラムの一例として濃度ヒストグラムH1を示している。汚損無し状態の濃度ヒストグラムH1には、2次元コードQCの白セルの色の領域を構成する白領域のピークWP1と、2次元コードQCの黒セルの色の領域を構成する黒領域のピークBP1とが含まれている。 FIG. 4A shows the density histogram H1 as an example of the density histogram of the two-dimensional code QC in the unstained state. In the density histogram H1 in the unstained state, the peak WP1 of the white region constituting the color region of the white cell of the two-dimensional code QC and the peak BP1 of the black region constituting the color region of the black cell of the two-dimensional code QC And are included.

図4(b)は、汚損有り状態の2次元コードQCの濃度ヒストグラムの一例として濃度ヒストグラムH2を示している。汚損有り状態の濃度ヒストグラムH2には、白領域のピークWP2と黒領域のピークBP2とに加えて、2次元コードQCのシミがピークを有するシミ分布Sとして現れている。 FIG. 4B shows the density histogram H2 as an example of the density histogram of the two-dimensional code QC in the stained state. In the density histogram H2 in the stained state, in addition to the peak WP2 in the white region and the peak BP2 in the black region, the stain of the two-dimensional code QC appears as a stain distribution S having a peak.

ステップS20では、制御部110の画像解析部111は、画像データに対して2値化処理を実行する。画像解析部111は、汚損無し状態の2次元コードQCを表す画像データに対しては、閾値Th1を使用して2値化処理を実行する。閾値Th1は、汚損無し状態の濃度ヒストグラムH1の白領域のピークWP2と黒領域のピークBP2の中間位置として設定されている。この例では、画像解析部111は、2値化処理の閾値決定にモード法を採用しているものとする。すなわち、画像解析部111は、ヒストグラムにおいて谷を検出して、その谷の値を2値化処理のための閾値としている。 In step S20, the image analysis unit 111 of the control unit 110 executes binarization processing on the image data. The image analysis unit 111 executes binarization processing using the threshold value Th1 for the image data representing the two-dimensional code QC in the unstained state. The threshold Th1 is set as an intermediate position between the peak WP2 in the white region and the peak BP2 in the black region of the density histogram H1 in the unstained state. In this example, it is assumed that the image analysis unit 111 employs the mode method for determining the threshold value of the binarization process. That is, the image analysis unit 111 detects a valley in the histogram and uses the value of the valley as a threshold value for binarization processing.

一方、画像解析部111は、汚損有り状態の2次元コードQCを表す画像データに対しては、閾値Th2を使用して2値化処理を実行する。閾値Th2は、汚損有り状態の濃度ヒストグラムH2の黒領域のピークBP2とシミ分布Sとの間の谷において設定されている。これにより、画像解析部111は、シミによる汚損の影響を排除して2値化処理を実行することができる。 On the other hand, the image analysis unit 111 executes binarization processing using the threshold value Th2 for the image data representing the two-dimensional code QC in the stained state. The threshold Th2 is set in the valley between the peak BP2 in the black region of the density histogram H2 in the stained state and the stain distribution S. As a result, the image analysis unit 111 can execute the binarization process by eliminating the influence of stains caused by stains.

ステップS30では、画像解析部111のエラー訂正部112は、エラー訂正処理を実行する。QRコード(登録商標)には、エラー訂正符号としてリードソロモン符号が採用され、コード画像の一部に汚損があってもデータを損失することなく、データを復元することができる。QRコード(登録商標)では、4レベルのエラー訂正レベルL,M,Q及びHが設定され、それぞれコード画像の7%、15%、25%及び30%の面積の損傷に対応することができる。 In step S30, the error correction unit 112 of the image analysis unit 111 executes the error correction process. A Reed-Solomon code is adopted as an error correction code for the QR code (registered trademark), and even if a part of the code image is soiled, the data can be restored without losing the data. In the QR code (registered trademark), four levels of error correction levels L, M, Q and H are set, and it is possible to deal with damage in an area of 7%, 15%, 25% and 30% of the code image, respectively. ..

ステップS40では、画像解析部111は、エラー訂正に成功した場合には、処理をステップS50に進め、エラー訂正に失敗した場合には、処理を撮像処理(ステップS10)に戻して、撮像処理(ステップS10)からエラー訂正処理(ステップS30)の処理を繰り返す(ステップS40)。このように、コード情報は、エラー訂正の成功に基づいて取得される。 In step S40, if the error correction is successful, the image analysis unit 111 advances the process to step S50, and if the error correction fails, returns the process to the imaging process (step S10) and performs the imaging process (step S10). The process of the error correction process (step S30) is repeated from step S10) (step S40). In this way, the code information is obtained based on the success of error correction.

ステップS50では、画像解析部111は、コード情報利用処理を実行する。コード情報利用処理では、画像解析装置100は、取得したコード情報、たとえばURL(Uniform Resource Locator)を使用して、ウェブサイトに接続を求めることができる。 In step S50, the image analysis unit 111 executes the code information utilization process. In the code information utilization process, the image analysis device 100 can request a connection to the website by using the acquired code information, for example, a URL (Uniform Resource Locator).

図5は、一実施形態に係る2次元コード読取処理の内容を示すフローチャートである。一実施形態に係る2次元コード読取処理は、偽造の検知が可能である点で比較例に係る2次元コード読取処理と相違する。 FIG. 5 is a flowchart showing the contents of the two-dimensional code reading process according to the embodiment. The two-dimensional code reading process according to one embodiment is different from the two-dimensional code reading process according to the comparative example in that counterfeiting can be detected.

偽造判定処理は、2次元コードのユーザー、すなわち2次元コードの提供者(表示者)及び2次元コードの利用者(撮像者)の意図に反して、任意の確率、たとえば数百回あるいは数千回に1回という確率で正当なサイトではなく、フィッシングサイトなどに誘導するための偽造を検知することができる。偽造は、QRコード(登録商標)に採用されているエラー訂正機能の特性を利用することで実現されている。偽造判定処理は、偽造がQRコード(登録商標)に採用されているエラー訂正機能の特性を利用する点に着目して構成されている。 The forgery determination process is performed with an arbitrary probability, for example, hundreds or thousands of times, contrary to the intention of the user of the two-dimensional code, that is, the provider (displayer) of the two-dimensional code and the user (imager) of the two-dimensional code. With a probability of once every time, it is possible to detect counterfeiting to lead to a phishing site instead of a legitimate site. Counterfeiting is realized by utilizing the characteristics of the error correction function adopted in the QR code (registered trademark). The counterfeit determination process is configured by paying attention to the fact that counterfeiting utilizes the characteristics of the error correction function adopted in the QR code (registered trademark).

ステップS100では、画像解析装置100の撮像部160は、撮像処理を実行する。一実施形態に係る撮像処理(ステップS100)と比較例に係る撮像処理(ステップS10)の相違については後述する。 In step S100, the image pickup unit 160 of the image analysis device 100 executes the image pickup process. The difference between the imaging process (step S100) according to the embodiment and the imaging process (step S10) according to the comparative example will be described later.

図6は、一実施形態に係るコード情報取得処理(ステップS200)の内容を示すフローチャートである。図7は、一実施形態に係るヒストグラム解析の内容を示す説明図である。図7(a)は、汚損有り状態の濃度ヒストグラムH2(図4(b)参照)を示している。濃度ヒストグラムH2には、2次元コードQCのシミがピークを有するシミ分布Sとして現れている。図7(b)は、偽造有り状態の濃度ヒストグラムH3を示している。濃度ヒストグラムH3には、偽造に起因するピークを有する偽造分布Fが現れている。 FIG. 6 is a flowchart showing the contents of the code information acquisition process (step S200) according to the embodiment. FIG. 7 is an explanatory diagram showing the contents of the histogram analysis according to the embodiment. FIG. 7A shows a density histogram H2 in a stained state (see FIG. 4B). In the density histogram H2, the stains of the two-dimensional code QC appear as a stain distribution S having a peak. FIG. 7B shows a density histogram H3 in a forged state. In the concentration histogram H3, a counterfeit distribution F having a peak due to counterfeit appears.

ステップS210では、画像解析部111は、第1の2値化処理を実行する。第1の2値化処理では、画像解析部111は、汚損有り状態の2次元コードQCを表す画像データに対しては、閾値Th2(第1の閾値とも呼ばれる。)を使用して2値化処理を実行する。閾値Th2は、汚損有り状態の濃度ヒストグラムH2の黒領域のピークBP2とシミ分布Sとの間の谷において設定されている。本実施形態では、画像解析部111は、2値化処理の閾値決定にモード法を採用しているものとする。 In step S210, the image analysis unit 111 executes the first binarization process. In the first binarization process, the image analysis unit 111 binarizes the image data representing the two-dimensional code QC in the stained state by using the threshold Th2 (also referred to as the first threshold). Execute the process. The threshold Th2 is set in the valley between the peak BP2 in the black region of the density histogram H2 in the stained state and the stain distribution S. In the present embodiment, it is assumed that the image analysis unit 111 employs the mode method for determining the threshold value of the binarization process.

一方、画像解析部111は、偽造有り状態の2次元コード(図示略)を表す画像データに対しては、閾値Th4を使用して2値化処理を実行する。閾値Th4(第1の閾値とも呼ばれる。)は、白領域のピークWP3と黒領域のピークBP3の中間位置として設定されている。すなわち、画像解析部111は、偽造有り状態の濃度ヒストグラムH3の黒領域のピークBP3と偽造分布Fとの間の谷を2値化処理の閾値設定のための有効な谷として判断しなかった、あるいは偽造分布Fのピークや谷を検出しなかったことになる。 On the other hand, the image analysis unit 111 executes a binarization process using the threshold value Th4 for the image data representing the two-dimensional code (not shown) in the forged state. The threshold value Th4 (also referred to as a first threshold value) is set as an intermediate position between the peak WP3 in the white region and the peak BP3 in the black region. That is, the image analysis unit 111 did not determine the valley between the peak BP3 in the black region of the density histogram H3 with forgery and the forgery distribution F as an effective valley for setting the threshold value for the binarization process. Alternatively, the peaks and valleys of the counterfeit distribution F were not detected.

ステップS220では、エラー訂正部112は、エラー訂正処理を実行する。ステップS230では、画像解析部111は、エラー訂正に成功した場合には、処理を第1のデータ取得処理(ステップS240)に進め、エラー訂正に失敗した場合には、第1のデータ取得処理(ステップS240)をスキップして、処理をステップS250に進める。エラー訂正に失敗した場合には、有効なコード情報を取得できないからである。 In step S220, the error correction unit 112 executes the error correction process. In step S230, the image analysis unit 111 proceeds to the first data acquisition process (step S240) when the error correction is successful, and when the error correction fails, the first data acquisition process (step S240). Step S240) is skipped and the process proceeds to step S250. This is because if the error correction fails, valid code information cannot be obtained.

エラー訂正に失敗した場合とは、処理をステップS100(図5参照)に戻し、撮像処理(ステップS100)からエラー訂正処理(ステップS220)の処理を繰り返し、所定の回数又は時間が経過し、タイムアウトとなった場合を意味している(本ルーチンは図示略)。 When the error correction fails, the process is returned to step S100 (see FIG. 5), the process of the imaging process (step S100) to the error correction process (step S220) is repeated, a predetermined number of times or time elapses, and a timeout occurs. (This routine is not shown).

ステップS240では、画像解析部111は、第1のコード情報取得処理を実行する。この例では、画像解析部111は、汚損有り状態の2次元コードQCと偽造有り状態の2次元コードの双方において、エラー訂正に成功し、エラー訂正処理後のデータを取得したものとする。 In step S240, the image analysis unit 111 executes the first code information acquisition process. In this example, it is assumed that the image analysis unit 111 succeeds in error correction in both the two-dimensional code QC in the stained state and the two-dimensional code in the forged state, and acquires the data after the error correction processing.

ステップS250では、画像解析部111は、第2の2値化処理を実行する。第2の2値化処理では、画像解析部111は、第1の2値化処理で使用した第1の閾値と相違する第2の閾値で2値化処理を実行する。 In step S250, the image analysis unit 111 executes the second binarization process. In the second binarization process, the image analysis unit 111 executes the binarization process with a second threshold value different from the first threshold value used in the first binarization process.

第2の2値化処理では、画像解析部111は、汚損有り状態の2次元コードQCを表す画像データに対しては、閾値Th3(第2の閾値とも呼ばれる。)を使用して2値化処理を実行する。閾値Th3は、汚損有り状態の濃度ヒストグラムH2の白領域のピークWP2とシミ分布Sとの間の谷、すなわち第1の閾値の位置からシミ分布Sを跨ぐ谷において設定されている。 In the second binarization process, the image analysis unit 111 binarizes the image data representing the two-dimensional code QC in the stained state by using the threshold value Th3 (also referred to as the second threshold value). Execute the process. The threshold value Th3 is set in the valley between the peak WP2 in the white region of the density histogram H2 in the stained state and the stain distribution S, that is, in the valley that straddles the stain distribution S from the position of the first threshold value.

一方、第2の2値化処理では、画像解析部111は、偽造有り状態の2次元コードを表す画像データに対しては、閾値Th5(第2の閾値とも呼ばれる。)を使用して2値化処理を実行する。閾値Th5(第2の閾値とも呼ばれる。)は、偽造有り状態の濃度ヒストグラムH3の黒領域のピークBP3と偽造分布Fとの間の谷において設定されている。すなわち、画像解析部111は、偽造有り状態の濃度ヒストグラムH3の黒領域のピークBP3と偽造分布Fとの間の谷を2値化処理の閾値設定のための有効な谷として判断したことになる。 On the other hand, in the second binarization process, the image analysis unit 111 uses the threshold value Th5 (also referred to as the second threshold value) for the image data representing the two-dimensional code in the forged state to obtain two values. Execute the conversion process. The threshold value Th5 (also referred to as a second threshold value) is set in the valley between the peak BP3 in the black region of the density histogram H3 in the forged state and the counterfeit distribution F. That is, the image analysis unit 111 determines that the valley between the peak BP3 in the black region of the density histogram H3 with counterfeiting and the counterfeit distribution F is an effective valley for setting the threshold value for the binarization process. ..

ステップS260では、エラー訂正部112は、エラー訂正処理を実行する。ステップS270では、画像解析部111は、エラー訂正に成功した場合には、処理を第2のデータ取得処理(ステップS280)に進め、エラー訂正に失敗した場合には、第2のデータ取得処理(ステップS280)をスキップして、処理をステップS300(図5及び図8参照)に進める。 In step S260, the error correction unit 112 executes the error correction process. In step S270, the image analysis unit 111 proceeds to the second data acquisition process (step S280) if the error correction is successful, and if the error correction fails, the second data acquisition process (step S280). Step S280) is skipped and the process proceeds to step S300 (see FIGS. 5 and 8).

エラー訂正に失敗した場合とは、処理をステップS100(図5参照)に戻し、撮像処理(ステップS100)、第2の2値化処理(ステップS250)及びエラー訂正処理(ステップS260)の処理を繰り返し、所定の回数又は時間が経過し、タイムアウトとなった場合を意味している(本ルーチンは図示略)。 When the error correction fails, the process is returned to step S100 (see FIG. 5), and the imaging process (step S100), the second binarization process (step S250), and the error correction process (step S260) are performed. It means that the time has expired after the predetermined number of times or time has passed repeatedly (this routine is not shown).

ステップS280では、画像解析部111は、第2のコード情報取得処理を実行する。この例では、画像解析部111は、汚損有り状態の2次元コードQCと偽造有り状態の2次元コードの双方において、エラー訂正に成功し、エラー訂正処理後のデータを取得したものとする。 In step S280, the image analysis unit 111 executes the second code information acquisition process. In this example, it is assumed that the image analysis unit 111 succeeds in error correction in both the two-dimensional code QC in the stained state and the two-dimensional code in the forged state, and acquires the data after the error correction processing.

図8は、一実施形態に係る偽造判定処理(ステップS300)の内容を示すフローチャートである。偽造判定処理は、汚損有り状態の2次元コードQC及び偽造有り状態の2次元コードのそれぞれについて実行する。 FIG. 8 is a flowchart showing the contents of the forgery determination process (step S300) according to the embodiment. The forgery determination process is executed for each of the two-dimensional code QC in the stained state and the two-dimensional code in the forged state.

ステップS310では、偽造判定部113は、第1の閾値を使用した2値化処理と第2の閾値を使用した2値化処理とを実行した場合の両方でエラー訂正が成功しているか否かを判定する。偽造判定部113は、両方でエラー訂正が成功している場合には、処理をステップS320に進め、一方でのみエラー訂正に成功している場合には、処理をステップS340に進める。 In step S310, whether or not the forgery determination unit 113 succeeds in error correction in both the case where the binarization process using the first threshold value and the binarization process using the second threshold value are executed. To judge. The counterfeit determination unit 113 proceeds to step S320 if the error correction is successful in both cases, and proceeds to step S340 if only one of them succeeds in error correction.

具体的には、汚損有り状態の2次元コードQCのケースでは、両方でエラー訂正が成功している場合は、第1の閾値Th2を使用した2値化処理では、シミ分布Sの影響が第1の閾値Th2によって排除され、第2の閾値Th3を使用した2値化処理では、シミ分布Sの影響がエラー訂正で排除されていることになる。一方でのみエラー訂正が成功している場合は、第1の閾値Th2を使用した2値化処理では、シミ分布Sの影響が第1の閾値Th2によって排除され、第2の閾値を使用した2値化処理では、シミ分布Sの影響がエラー訂正で排除できなかったことが想定される。いずれの場合についても汚損有り状態の2次元コードQCのケースでは、単一のコード情報が取得されることになる。 Specifically, in the case of the two-dimensional code QC with stains, if the error correction is successful in both cases, the influence of the stain distribution S is the second in the binarization process using the first threshold Th2. It is eliminated by the threshold value Th2 of 1, and in the binarization process using the second threshold value Th3, the influence of the stain distribution S is eliminated by error correction. If the error correction is successful on only one side, in the binarization process using the first threshold Th2, the influence of the stain distribution S is eliminated by the first threshold Th2, and the second threshold is used 2 In the valuation process, it is assumed that the influence of the stain distribution S could not be eliminated by error correction. In either case, in the case of the two-dimensional code QC in the soiled state, a single code information is acquired.

一方、偽造有り状態の2次元コードのケースでは、両方でエラー訂正が成功している場合は、第1の閾値Th4を使用した2値化処理では、偽造分布Fの影響が第1の閾値Th4によって排除され、第2の閾値Th5を使用した2値化処理では、偽造分布Fの影響で別のコード情報を表す2次元コードに偽造された上でエラー訂正に成功している可能性がある。一方でのみエラー訂正が成功している場合は、第1の閾値Th4を使用した2値化処理では、偽造分布Fの影響が第1の閾値Th4によって排除され、第2の閾値を使用した2値化処理では、偽造分布Fの影響でエラー訂正ができなかったことが想定される。 On the other hand, in the case of the two-dimensional code with forgery, if the error correction is successful in both cases, the influence of the forgery distribution F is the first threshold Th4 in the binarization process using the first threshold Th4. In the binarization process using the second threshold Th5, there is a possibility that the error correction is successful after being forged into a two-dimensional code representing another code information due to the influence of the forgery distribution F. .. If the error correction is successful on only one side, in the binarization process using the first threshold Th4, the influence of the counterfeit distribution F is eliminated by the first threshold Th4, and the second threshold is used 2 In the valuation process, it is assumed that the error could not be corrected due to the influence of the forged distribution F.

偽造有り状態の2次元コードのケースでは、相互に相違するコード情報が取得される可能性がある。相互に相違するコード情報の取得は、2次元コードに複数種類のデータが含まれ、その複数種類のデータのそれぞれに対応するエラー訂正符号(リードソロモン符号)が含まれていることになる。2次元コードは、コード情報を表すデータと、そのデータのエラー訂正を行うためのエラー訂正符号を含む画像として構成されている。したがって、複数種類のデータと複数種類のデータにそれぞれ対応するエラー訂正符号とを含む2次元コードが偶然に生成されることは考えられず、意図的に生成(偽造)されたものと推認(判定)できることになる。 In the case of a two-dimensional code with forgery, code information different from each other may be acquired. The acquisition of code information that differs from each other means that the two-dimensional code includes a plurality of types of data, and an error correction code (Reed-Solomon code) corresponding to each of the plurality of types of data is included. The two-dimensional code is configured as an image including data representing code information and an error correction code for performing error correction of the data. Therefore, it is unlikely that a two-dimensional code containing a plurality of types of data and an error correction code corresponding to each of the plurality of types of data is accidentally generated, and it is presumed (determined) that the two-dimensional code was intentionally generated (forged). ) You can do it.

ステップS320では、偽造判定部113は、第1のコード情報取得処理及び第2のコード情報取得処理で取得したコード情報が相互に相違するか否かを判定する。偽造判定部113は、コード情報が相互に相違している場合には、2次元コードが偽造されていると判定して処理をステップS330に進め、コード情報が相互に一致している場合には、2次元コードが偽造されていないと判定して処理をステップS340に進める。 In step S320, the forgery determination unit 113 determines whether or not the code information acquired in the first code information acquisition process and the second code information acquisition process is different from each other. The forgery determination unit 113 determines that the two-dimensional code is forged when the code information is different from each other, proceeds to step S330, and when the code information matches each other, proceeds to the process. It is determined that the two-dimensional code is not forged, and the process proceeds to step S340.

ステップS330では、偽造対応部114は、警告表示処理を実行する。警告表示処理では、偽造対応部114は、第1のコード情報取得処理及び第2のコード情報取得処理で取得したコード情報とともに、2次元コードが偽造されている可能性がある旨を操作表示部130に表示する。これにより、画像解析装置100は、ユーザーのフィッシングサイトなどへの誘導から守ることができる。 In step S330, the counterfeiting response unit 114 executes a warning display process. In the warning display process, the counterfeiting response unit 114 indicates that the two-dimensional code may be forged together with the code information acquired in the first code information acquisition process and the second code information acquisition process. Display on 130. As a result, the image analysis device 100 can protect the user from being guided to a phishing site or the like.

ステップS340では、偽造判定部113は、コード情報決定処理を実行する。コード情報決定処理では、偽造判定部113は、汚損有り状態の2次元コードQCのケースでは、両方でエラー訂正が成功している場合は、相互に一致する唯一のコード情報を利用すべきコード情報に決定する。 In step S340, the forgery determination unit 113 executes the code information determination process. In the code information determination process, the forgery determination unit 113 should use the only code information that matches each other if the error correction is successful in both cases of the two-dimensional code QC in the stained state. To decide.

一方、偽造有り状態の2次元コードのケースでは、一方でエラー訂正が成功している場合は、正当なサイトであると看做して取得した唯一のコード情報を利用すべきコード情報に決定する。2次元コードの偽造は、たとえば数百回あるいは数千回に1回という確率で正当なサイトではなく、フィッシングサイトなどに誘導するように構成されている。したがって、複数の相違する閾値を使用した場合に、偽造によって意図された方向でのみエラー訂正が成功し、他方でタイムアウトするまで失敗し続ける可能性が極めて低いからである。 On the other hand, in the case of a two-dimensional code with forgery, if the error correction is successful, the only code information obtained by regarding it as a legitimate site is determined as the code information to be used. .. Forgery of a two-dimensional code is configured to lead to a phishing site or the like instead of a legitimate site with a probability of, for example, once in hundreds or thousands of times. Therefore, when a plurality of different thresholds are used, it is extremely unlikely that the error correction will succeed only in the direction intended by the forgery and will continue to fail until it times out.

ステップS400では、画像解析部111は、コード情報利用処理を実行する。コード情報利用処理では、画像解析装置100は、取得したコード情報、たとえばURL(Uniform Resource Locator)を使用して、ウェブサイトに接続を求めることができる。 In step S400, the image analysis unit 111 executes the code information utilization process. In the code information utilization process, the image analysis device 100 can request a connection to the website by using the acquired code information, for example, a URL (Uniform Resource Locator).

一実施形態に係る撮像処理(ステップS100)は、以下の点で比較例に係る撮像処理(ステップS10)と相違する。すなわち、一実施形態に係る撮像処理(ステップS100)は、LED光源170を発光させ、その光量を変化させつつ2次元コードを照射可能である。 The imaging process (step S100) according to one embodiment is different from the imaging process (step S10) according to the comparative example in the following points. That is, in the imaging process (step S100) according to one embodiment, the LED light source 170 can emit light, and the two-dimensional code can be irradiated while changing the amount of light.

偽造が極めて小さな確率で正当なサイトではなく、フィッシングサイトなどに誘導するように構成されているためには、2次元コードの読取り環境、すなわち2次元コードの表示状態や環境光、撮像状態(たとえば露出やシャッタースピード)といった撮像環境の変動を利用しているものと推定される。したがって、操作表示部230の光量を変化させつつ2次元コードを表示すれば、偽造判定処理(ステップS300)は、より高い確率で偽造を検知することができる。 In order for the forgery to be configured to lead to a phishing site instead of a legitimate site with a very small probability, the reading environment of the 2D code, that is, the display state, ambient light, and imaging state of the 2D code (for example, It is presumed that the fluctuation of the imaging environment such as exposure and shutter speed is used. Therefore, if the two-dimensional code is displayed while changing the amount of light of the operation display unit 230, the forgery determination process (step S300) can detect the forgery with a higher probability.

本明細書では、「変化させつつ」は、広い意味を有し、たとえば2段階以上の複数の段階の各光量で2次元コードを表示して撮像する場合だけでなく、光量を連続して変化させた状態で自動的に連続撮影することも含んでいる。 In the present specification, "while changing" has a broad meaning, for example, not only when a two-dimensional code is displayed and imaged at each light amount of two or more stages, but also the light amount is continuously changed. It also includes automatic continuous shooting in the state of being allowed to shoot.

さらに、「光を変化させつつ」は、広い意味を有し、光量とスペクトルの少なくとも一方を変化させることを含む撮像環境の変化を含んでいる。偽造には、人間の目で区別しにくい方法、すなわちLab色空間の輝度値を殆ど変化させずに反射光量(印刷の場合)や放射光量(ディスプレイ表示の場合)を変化させることも可能だからである。 Further, "while changing the light" has a broad meaning and includes a change in the imaging environment including changing at least one of the amount of light and the spectrum. For counterfeiting, it is possible to change the amount of reflected light (in the case of printing) and the amount of emitted light (in the case of display) with almost no change in the brightness value of the Lab color space, which is difficult for the human eye to distinguish. is there.

上記実施形態では、2次元コードQCが印刷されている場合を想定しているが、たとえば2次元コードQCがパーソナルコンピュータ200の操作表示部230に表示されている場合にも適用することができる。2次元コードQCが操作表示部230に表示されている場合には、画像解析装置100は、パーソナルコンピュータ200と連携し、画像解析部111は、パーソナルコンピュータ200の制御部210に対して操作表示部230の光量を変化させつつ2次元コードを表示させ、繰り返して一実施形態に係る2次元コード読取処理を実行するようにしてもよい。 In the above embodiment, it is assumed that the two-dimensional code QC is printed, but it can also be applied to the case where the two-dimensional code QC is displayed on the operation display unit 230 of the personal computer 200, for example. When the two-dimensional code QC is displayed on the operation display unit 230, the image analysis device 100 cooperates with the personal computer 200, and the image analysis unit 111 refers to the operation display unit 210 with respect to the control unit 210 of the personal computer 200. The two-dimensional code may be displayed while changing the amount of light of 230, and the two-dimensional code reading process according to one embodiment may be repeatedly executed.

加えて、このような偽造は、複数種類のデータと複数種類のデータにそれぞれ対応するエラー訂正符号とを含むので、黒領域のピークと白領域のピークとの間に特異なピークが形成されることも考えられる。よって、画像解析部111は、ヒストグラム解析によって特異なピークの検出と、その特異なピークと黒領域のピーク(又は白領域のピーク)との位置関係(輝度階調値の差分又は距離)によっても偽造を推定し、ユーザーに注意を喚起することができる可能性もある。 In addition, since such forgery includes a plurality of types of data and error correction codes corresponding to the plurality of types of data, a peculiar peak is formed between the peak in the black region and the peak in the white region. It is also possible. Therefore, the image analysis unit 111 can also detect a peculiar peak by histogram analysis and determine the positional relationship (difference or distance of luminance gradation value) between the peculiar peak and the peak in the black region (or the peak in the white region). It may also be possible to presume counterfeiting and alert the user.

このように、一実施形態に係る画像解析システム10によれば、コード画像の偽造を検知してユーザーのフィッシングサイトなどへの誘導等から守ることができる。さらに、画像解析システム10は、特別なハードウェアを必要とせず、ソフトウェアのインストールだけで簡易に実装することができる。 As described above, according to the image analysis system 10 according to the embodiment, it is possible to detect forgery of the code image and protect it from guidance to a phishing site or the like of the user. Further, the image analysis system 10 does not require any special hardware and can be easily implemented only by installing software.

C.変形例:
本発明は、上記各実施形態だけでなく、以下のような変形例でも実施することができる。
C. Modification example:
The present invention can be implemented not only in the above embodiments but also in the following modifications.

変形例1:上記実施形態では、偽造2次元コードには、2種類のデータが含まれ、2種類のデータのそれぞれに対応するエラー訂正符号が含まれていることが想定されているが、2種類に限定されない。本発明は、複数種類のデータと複数種類のデータにそれぞれ対応するエラー訂正符号とを含む偽造2次元コードに対処することができる。 Modification 1: In the above embodiment, it is assumed that the forged two-dimensional code contains two types of data and includes an error correction code corresponding to each of the two types of data. Not limited to type. The present invention can deal with a forged two-dimensional code including a plurality of types of data and an error correction code corresponding to each of the plurality of types of data.

変形例2:上記実施形態では、第1の閾値を使用する第1の2値化処理と、第1の閾値と相違する第2の閾値を使用する第2の2値化処理とを含む2回の2値化処理が実行されているが、3回以上を含む複数の2値化処理を実行してもよい。 Modification 2: In the above embodiment, the first binarization process using the first threshold value and the second binarization process using a second threshold value different from the first threshold value are included. Although the binarization process is executed three times, a plurality of binarization processes including three or more times may be executed.

変形例3:上記実施形態では、コード画像の撮像状態に応じてモード法で閾値を自動的に変化させる2値化処理が想定されているが、固定閾値を使用する2値化処理を実行する画像形成装置にも本発明は適用可能である。このような画像形成装置では、ヒストグラム解析によって特異なピークが検出された場合に、照射光量や表示光量を変化させて特異なピークが固定閾値の両側に配置されるように設定して偽造判定処理を実行することもできる。 Modification 3: In the above embodiment, a binarization process that automatically changes the threshold value by the mode method according to the imaging state of the code image is assumed, but the binarization process that uses the fixed threshold value is executed. The present invention is also applicable to an image forming apparatus. In such an image forming apparatus, when a peculiar peak is detected by histogram analysis, the amount of irradiation light or the amount of display light is changed so that the peculiar peak is arranged on both sides of a fixed threshold value, and a forgery determination process is performed. Can also be executed.

変形例4:上記実施形態では、携帯端末としてスマートフォンが使用されているが、本発明は、無線通信が可能であればタブレットといった携帯端末に適用可能である。 Modification 4: In the above embodiment, a smartphone is used as a mobile terminal, but the present invention can be applied to a mobile terminal such as a tablet if wireless communication is possible.

10 画像解析システム
100 画像解析装置(スマートフォン)
110,210 制御部
111 画像解析部
112 エラー訂正部
113 偽造判定部
114 偽造対応部
160 撮像部
130,230 操作表示部
140,240 記憶部
150,250 通信インターフェース部
200 パーソナルコンピュータ

10 Image analysis system 100 Image analysis device (smartphone)
110, 210 Control unit 111 Image analysis unit 112 Error correction unit 113 Counterfeit judgment unit 114 Counterfeit response unit 160 Imaging unit 130, 230 Operation display unit 140, 240 Storage unit 150, 250 Communication interface unit 200 Personal computer

Claims (7)

コード画像を含む画像を読み取って画像データを生成する画像読取部と、
前記画像データに対してエラー訂正を含む解析を実行することによって少なくとも1つのコード情報を取得する画像解析部と、
前記エラー訂正の成功に基づいて取得された前記少なくとも1つコード情報が複数の相互に相違するコード情報を含んでいる場合に、前記コード画像に偽造がなされていると判定する偽造判定部と、
を備える画像解析装置。
An image reader that reads an image including a code image and generates image data,
An image analysis unit that acquires at least one code information by executing an analysis including error correction on the image data, and an image analysis unit.
When the at least one code information acquired based on the success of the error correction contains a plurality of mutually different code information, a forgery determination unit for determining that the code image is forged.
An image analysis device comprising.
請求項1記載の画像解析装置であって、
前記画像解析部は、前記エラー訂正を含む解析として、第1の閾値を使用する第1の2値化処理と、前記第1の閾値と相違する第2の閾値を使用する第2の2値化処理とを含む複数の2値化処理を実行することによって前記少なくとも1つコード情報を取得する画像解析装置。
The image analysis apparatus according to claim 1.
The image analysis unit uses a first binarization process using the first threshold value and a second binary value using a second threshold value different from the first threshold value as an analysis including the error correction. An image analysis device that acquires at least one code information by executing a plurality of binarization processes including a conversion process.
請求項1又は2記載の画像解析装置であって、さらに、
前記コード画像に偽造がなされていると判定された場合に、前記偽造がなされている可能性を知らせるとともに、前記複数の相互に相違するコード情報を表示する操作表示部を備える画像解析装置。
The image analysis apparatus according to claim 1 or 2, further
An image analysis device including an operation display unit that notifies the possibility of the forgery and displays a plurality of mutually different code information when it is determined that the code image is forged.
請求項1乃至3のいずれか1項に記載の画像解析装置であって、さらに、
光を変化させつつ前記コード画像に照射可能な光照射部を備え、
前記画像読取部は、前記光照射部によって前記光を変化させつつ前記コード画像を照射した状態で複数の画像データを生成し、
前記画像解析部は、前記複数の画像データのそれぞれに対して前記解析を実行し、
前記偽造判定部は、前記複数の画像データのそれぞれについて前記コード画像に偽造がなされているか否かを判定する画像解析装置。
The image analysis apparatus according to any one of claims 1 to 3, further comprising.
A light irradiation unit capable of irradiating the code image while changing the light is provided.
The image reading unit generates a plurality of image data in a state where the code image is irradiated while changing the light by the light irradiation unit.
The image analysis unit executes the analysis on each of the plurality of image data, and then performs the analysis.
The forgery determination unit is an image analysis device that determines whether or not the code image is forged for each of the plurality of image data.
請求項1乃至4のいずれか1項に記載の画像解析装置と、
光を変化させつつ前記コード画像を表示可能な画像表示装置と、
を備え、
前記画像読取部は、前記光を変化させつつ前記画像表示装置に前記コード画像を表示させ、前記表示されたコード画像を読み取って複数の画像データを生成し、
前記画像解析部は、前記複数の画像データのそれぞれに対して前記解析を実行し、
前記偽造判定部は、前記複数の画像データのそれぞれについて前記コード画像に偽造がなされているか否かを判定する画像解析システム。
The image analysis apparatus according to any one of claims 1 to 4.
An image display device capable of displaying the code image while changing the light,
With
The image reading unit causes the image display device to display the code image while changing the light, reads the displayed code image, and generates a plurality of image data.
The image analysis unit executes the analysis on each of the plurality of image data, and then performs the analysis.
The forgery determination unit is an image analysis system that determines whether or not the code image is forged for each of the plurality of image data.
コード画像を含む画像を読み取って画像データを生成する画像読取工程と、
前記画像データに対してエラー訂正を含む解析を実行することによって少なくとも1つのコード情報を取得する画像解析工程と、
前記エラー訂正の成功に基づいて取得された前記少なくとも1つコード情報が複数の相互に相違するコード情報を含んでいる場合に、前記コード画像に偽造がなされていると判定する偽造判定工程と、
を備える画像解析方法。
An image reading process that reads an image including a code image and generates image data,
An image analysis step of acquiring at least one code information by executing an analysis including error correction on the image data, and
A forgery determination step of determining that the code image is forged when the at least one code information acquired based on the success of the error correction contains a plurality of mutually different code information.
An image analysis method comprising.
画像解析装置を制御するための画像解析プログラムであって、
コード画像を含む画像を読み取って画像データを生成する画像読取部、
前記画像データに対してエラー訂正を含む解析を実行することによって少なくとも1つのコード情報を取得する画像解析部、及び
前記エラー訂正の成功に基づいて取得された前記少なくとも1つコード情報が複数の相互に相違するコード情報を含んでいる場合に、前記コード画像に偽造がなされていると判定する偽造判定部として前記画像解析装置を機能させるための画像解析プログラム。

An image analysis program for controlling an image analysis device.
An image reader that reads an image containing a code image and generates image data,
An image analysis unit that acquires at least one code information by executing an analysis including error correction on the image data, and a plurality of mutual at least one code information acquired based on the success of the error correction. An image analysis program for making the image analysis device function as a counterfeit determination unit that determines that the code image is counterfeited when the code information is different from the above.

JP2019130251A 2019-07-12 2019-07-12 Image analysis device, image analysis system, image analysis method and image analysis program Pending JP2021015489A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2019130251A JP2021015489A (en) 2019-07-12 2019-07-12 Image analysis device, image analysis system, image analysis method and image analysis program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2019130251A JP2021015489A (en) 2019-07-12 2019-07-12 Image analysis device, image analysis system, image analysis method and image analysis program

Publications (1)

Publication Number Publication Date
JP2021015489A true JP2021015489A (en) 2021-02-12

Family

ID=74531978

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2019130251A Pending JP2021015489A (en) 2019-07-12 2019-07-12 Image analysis device, image analysis system, image analysis method and image analysis program

Country Status (1)

Country Link
JP (1) JP2021015489A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023188681A1 (en) * 2022-03-31 2023-10-05 日本発條株式会社 Determination system and authenticity determination method of determination code
JP7415671B2 (en) 2020-03-05 2024-01-17 富士通株式会社 Information processing program, information processing device, and information processing method

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP7415671B2 (en) 2020-03-05 2024-01-17 富士通株式会社 Information processing program, information processing device, and information processing method
WO2023188681A1 (en) * 2022-03-31 2023-10-05 日本発條株式会社 Determination system and authenticity determination method of determination code

Similar Documents

Publication Publication Date Title
US9443123B2 (en) System and method for indicia verification
JP5701182B2 (en) Image processing apparatus, image processing method, and computer program
US20050194445A1 (en) Method and apparatus for recognizing code
JP2010211324A (en) Position detection device, control method, control program, and recording medium
CN102473236B (en) Method of setting amount of exposure for photodetector array in barcode scanner
JP5555672B2 (en) Image processing device
JP2012248945A (en) Image processor and image processing program
JP2021015489A (en) Image analysis device, image analysis system, image analysis method and image analysis program
US8855381B2 (en) Fake-finger determination device, fake-finger determination method and fake-finger determination program
JP5017988B2 (en) Code reader and program
CN111259680A (en) Two-dimensional code image binarization processing method and device
JP2017521011A (en) Symbol optical detection method
JP5264956B2 (en) Two-dimensional code reading apparatus and method
JP2016076079A (en) Determination system and determination method, determination device and image-capturing device, program for determination device, and program for image-capturing device
WO2023034441A1 (en) Imaging test strips
JP4728297B2 (en) Two-dimensional code reading apparatus and method
CN104268609A (en) Novel anti-counterfeit mark and method for distinguishing novel anti-counterfeit mark
JP2015176252A (en) Image processor and image processing method
JP5810997B2 (en) Two-dimensional code reader
JP2011197856A (en) Optical information reading device
JP2010134595A (en) Information code reading device
JP5282559B2 (en) Information code reader
WO2019188443A1 (en) Information processing device, information processing system, control method, and program
JP2008305058A (en) Code reading device and method
JP2021005149A (en) Biometric detection device, biometric authentication device, computer program, and biometric detection method