JP2017068766A - Copy prevention code generating method - Google Patents

Copy prevention code generating method Download PDF

Info

Publication number
JP2017068766A
JP2017068766A JP2015196270A JP2015196270A JP2017068766A JP 2017068766 A JP2017068766 A JP 2017068766A JP 2015196270 A JP2015196270 A JP 2015196270A JP 2015196270 A JP2015196270 A JP 2015196270A JP 2017068766 A JP2017068766 A JP 2017068766A
Authority
JP
Japan
Prior art keywords
code
superimposed
image
generating
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.)
Granted
Application number
JP2015196270A
Other languages
Japanese (ja)
Other versions
JP6742568B2 (en
Inventor
啓真 峯
Yoshimasa Mine
啓真 峯
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.)
Sharemedical Inc
Original Assignee
Sharemedical 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 Sharemedical Inc filed Critical Sharemedical Inc
Priority to JP2015196270A priority Critical patent/JP6742568B2/en
Publication of JP2017068766A publication Critical patent/JP2017068766A/en
Application granted granted Critical
Publication of JP6742568B2 publication Critical patent/JP6742568B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

PROBLEM TO BE SOLVED: To provide a copy prevention code which is electronically displayed and prevents copy by photographing or the like.SOLUTION: A copy prevention code generating method includes the steps of: analyzing a code image; generating code information expressed by a binary value from the code image; generating two or more kinds of superposition code information obtained by superpositioning noise elements on the code information; and generating a code moving image displayed by continuously changing a superposition code image on the basis of a plurality of pieces of superposition code information.SELECTED DRAWING: Figure 1

Description

本発明は、端末上で表示される1次元コード乃至は2次元コードの複製防止に関るものである。   The present invention relates to prevention of duplication of a one-dimensional code or a two-dimensional code displayed on a terminal.

従来、1次元コード(バーコード)や、2次元コードと呼ばれる識別子が利用されている。これらコードは、数字や文字などの情報を一定の規則に従って表記しており、リーダによって読み取ることで容易に情報を取得することができる。   Conventionally, an identifier called a one-dimensional code (bar code) or a two-dimensional code is used. These codes express information such as numbers and characters according to certain rules, and can be easily obtained by reading them with a reader.

これまでは、これらコードは、商品の外装や商品本体、チケットなどに印刷され、リーダで読み取ることで利用されていた。例えば、商品のクーポンや会員カード、イベントのチケット、商品券などが、紙や樹脂などにコードを印刷することで提供される。   Until now, these codes have been used by printing on the exterior of a product, the product body, a ticket, etc., and reading it with a reader. For example, product coupons, membership cards, event tickets, gift certificates, and the like are provided by printing a code on paper or resin.

クーポンや入場券など、一度利用されたコードの再利用を出来なくしたい場合、それぞれ異なるコードを印刷する特殊な印刷方法が必要となる。加えて、目視やコピー機での複製、写真撮影などによって複製が極めて容易であるため、不正に複製されたコードが使用される恐れがある。それを防ぐためには、別途コードの上にスクラッチ加工する等、特殊な加工方法も必要である。   If you want to make it impossible to reuse a code once used, such as a coupon or an admission ticket, you need a special printing method that prints a different code. In addition, since duplication is extremely easy by visual observation, duplication with a photocopier, photography, etc., there is a possibility that an illegally duplicated code may be used. In order to prevent this, a special processing method such as scratching the cord separately is required.

そのため、コード上に、可視光の吸収性及び赤外光の透過性を有する隠蔽部を設け、目視並びにコピー機での複製を防止したコードが知られている(特許文献1)。   For this reason, a code is known in which a concealing part having visible light absorption and infrared light transmission is provided on the code to prevent duplication by visual inspection and copying (Patent Document 1).

また、近年では、モバイル端末の普及に伴って、ユーザに携行される端末の画面上に表示したコードを、印刷物のコードに替えて利用することが行われている(例えば特許文献2)。   In recent years, with the spread of mobile terminals, a code displayed on a screen of a terminal carried by a user is used instead of a printed code (for example, Patent Document 2).

特開2015−110308号公報JP2015-110308A 特開2002−189963号公報JP 2002-189963 A

このように、印刷物でコードを提供する場合、印刷する媒体の費用や、印刷作業や特殊加工のコスト・手間、印刷物の在庫管理、使用済の印刷物の処理など、コードの利用に付随して様々な問題が生じていた。そのため、電子的にコードを提供する必要がある。   In this way, when a code is provided as a printed matter, there are various costs associated with the use of the code, such as the cost of printing media, the cost and labor of printing work and special processing, inventory management of printed matter, and processing of used printed matter. A problem has arisen. Therefore, it is necessary to provide the code electronically.

しかしながら、モバイル端末のディスプレイ上に表示されたコードは、紙媒体のコードと同様、目視やコード画像の複製(画面キャプチャ)、カメラによるディスプレイ自体の撮像等、不正な複製や2次配布を容易に行うことができる。   However, the code displayed on the display of the mobile terminal, like the code on the paper medium, can easily be illegally copied and secondary distributed such as visual observation, code image duplication (screen capture), imaging of the display itself by the camera, etc. It can be carried out.

そのため、上述のような複製を防ぐことができ、リーダでは読み取ることが可能な電子的なコードが求められていた。   Therefore, there has been a demand for an electronic code that can prevent duplication as described above and can be read by a reader.

本発明は上記のような実状に鑑みてなされたものであり、電子的に表示され、撮影等による複製を防止した複製防止コードを提供することを課題とする。   The present invention has been made in view of the above circumstances, and an object of the present invention is to provide an anti-duplication code that is displayed electronically and prevents duplication due to photographing or the like.

上記課題を解決するために、本発明は、コード画像を解析するステップと、
コード画像から2値で表されるコード情報を生成するステップと、
コード情報にノイズ要素を重畳した重畳コード情報を、2種類以上生成するステップと、
複数の前記重畳コード情報に基づいて、重畳コード画像を連続的に変化させながら表示するコード動画像を生成するステップと、を備えることを特徴とする。
In order to solve the above problems, the present invention comprises a step of analyzing a code image;
Generating code information expressed in binary from a code image;
Generating two or more types of superimposed code information in which noise elements are superimposed on code information;
Generating a code moving image to be displayed while continuously changing the superimposed code image based on the plurality of superimposed code information.

このような構成とすることで、ノイズが重畳された重畳コード画像を連続的に切り替えながら表示するコード動画像を生成することができる。表示されているコード動画像は、複数の重畳コード画像を連続的に表示するものであり、毎フレーム表示されるコードにはノイズが重畳されている。そのため、画面キャプチャやカメラによる撮像等をされたとしても、撮影されるコードはノイズが重畳されたままであり、複製できない。   With this configuration, it is possible to generate a code moving image that is displayed while continuously switching superimposed code images on which noise is superimposed. The displayed code moving image continuously displays a plurality of superimposed code images, and noise is superimposed on the code displayed every frame. For this reason, even if screen capture, camera imaging, or the like is performed, noise is superimposed on the captured code and cannot be duplicated.

一方、コード動画像は、所定の間隔で重畳コード画像を切り替えながら表示している。そのため、コードリーダによる走査(スキャン)中に、重畳コード画像の切り替えが起きれば、先に表示された重畳コード画像のノイズが重畳されていない個所と、後に表示された重畳コード画像のノイズが重畳されていない個所と、がスキャンされ、元の正確なコードを読み取ることができる。   On the other hand, the code moving image is displayed while switching the superimposed code image at a predetermined interval. For this reason, if the superimposed code image is switched during scanning (scanning) by the code reader, the portion of the superimposed code image that has been displayed before is not superimposed with the noise of the superimposed code image that is displayed later. The unaccompanied part is scanned and the original accurate code can be read.

そのため、撮影等による複製を防止しながら、リーダによるコードの読み取りが可能な電子的なコードを提供することができる。   Therefore, it is possible to provide an electronic code that can be read by a reader while preventing duplication due to photographing or the like.

本発明の好ましい形態では、前記コード情報を生成する際に、コードを構成する構成要素の最小単位を特定するステップを備え、
前記重畳コード情報を生成する際に、前記コード情報に前記最小単位のノイズ要素を1以上重畳することを特徴とする。
このような構成とすることで、最小単位でノイズ要素を重畳することができ、ノイズ要素の特定の困難性が高まる。そのため、重畳コード画像が撮影された場合であっても、ノイズ要素の特定が困難になり、不正な複製を防止することができる。
In a preferred embodiment of the present invention, the method includes the step of specifying a minimum unit of components constituting the code when generating the code information,
When generating the superimposed code information, one or more noise elements of the minimum unit are superimposed on the code information.
By adopting such a configuration, it is possible to superimpose the noise element in the minimum unit, and the difficulty of specifying the noise element increases. Therefore, even when a superimposed code image is captured, it becomes difficult to specify a noise element, and unauthorized duplication can be prevented.

本発明の好ましい形態では、前記重畳コード情報を生成する際に、ノイズ要素を重畳する重畳領域を決定し、
前記コード動画像上で連続的に表示される少なくとも一組の重畳コード画像は、異なる重畳領域にノイズ要素が重畳されていることを特徴とする。
このような構成とすることで、異なる位置にノイズ要素が重畳されていることで、コードの読み取りが可能となる。
In a preferred embodiment of the present invention, when generating the superimposition code information, a superimposition region on which a noise element is superimposed is determined,
The at least one set of superimposed code images continuously displayed on the code moving image is characterized in that noise elements are superimposed on different superimposed regions.
With such a configuration, the code can be read because the noise elements are superimposed at different positions.

本発明の好ましい形態では、前記コード動画像上で連続的に表示される少なくとも一組の重畳コード画像において、それぞれの重畳領域は、ノイズ要素が重畳されない非重畳領域を隔てた位置に決定されることを特徴とする。
このような構成とすることで、連続する重畳コード画像のそれぞれのノイズ要素の間に、ノイズ要素が重畳されない非重畳領域を設けることができる。これにより、連続する重畳コード画像のそれぞれのノイズ要素を離間させることができ、コード動画像の読取精度を高めることができる。
In a preferred embodiment of the present invention, in at least one set of superimposed code images displayed continuously on the code moving image, each superimposed region is determined at a position separated from a non-superimposed region where a noise element is not superimposed. It is characterized by that.
By setting it as such a structure, the non-overlapping area | region where a noise element is not superimposed can be provided between each noise element of a continuous superimposition code image. Thereby, each noise element of a continuous superimposition code image can be separated, and the reading accuracy of a code moving image can be improved.

本発明の好ましい形態では、前記コード動画像上で表示される連続的に表示される少なくとも一組の重畳コード画像のうち、先に表示される第1の重畳コード画像は、コードリーダの走査方向の終端側にノイズ要素が重畳されており、
前記第1の重畳コード画像に続いて表示される第2の重畳コード画像は、コードリーダの走査方向の始端側にノイズ要素が重畳されており、
前記第1の重畳コードの最も前記始端側に位置するノイズ要素及び、前記第2の重畳コードの最も前記終端側に位置するノイズ要素は、コード上で相対的に離間した位置に重畳されていることを特徴とする。
このような構成とすることで、コードの読み取り精度を高めることができる。
In a preferred embodiment of the present invention, the first superimposed code image displayed first among at least one set of continuously displayed superimposed code images displayed on the code moving image is a scanning direction of the code reader. A noise element is superimposed on the end side of
The second superimposed code image displayed following the first superimposed code image has a noise element superimposed on the start end side in the scanning direction of the code reader,
The noise element positioned closest to the start end of the first superimposed code and the noise element positioned closest to the end of the second superimposed code are superimposed at positions relatively spaced on the code. It is characterized by that.
By adopting such a configuration, the code reading accuracy can be increased.

本発明の好ましい形態では、前記重畳コード情報を生成する際に、コードのデータ領域にノイズ要素を重畳することを特徴とする。
このような構成とすることで、データ領域にノイズ要素を重畳することができる。コードのスタートキャラクタ、ストップキャラクタの部分にノイズを重畳しても構わないが、コードの読み取り精度自体が低下する為、データ領域のみにノイズ要素を重畳するのが好ましい。
In a preferred aspect of the present invention, a noise element is superimposed on a data area of the code when the superimposed code information is generated.
With such a configuration, a noise element can be superimposed on the data area. Although noise may be superimposed on the start character and stop character portions of the code, it is preferable to superimpose the noise element only on the data area because the code reading accuracy itself is lowered.

また、例えばチェックデジット部分にのみノイズを重畳した場合、チェックデジットの仕組みを理解している者であれば、ノイズを重畳した画像から元のコード画像を復元することが可能となり、好ましくない。   For example, when noise is superimposed only on the check digit portion, it is not preferable for those who understand the mechanism of the check digit to restore the original code image from the noise superimposed image.

また、ノイズ要素が1つのみである場合、複数のノイズ重畳コードの画像を画面キャプチャなどにより入手し、それらの相違点を比較することで元となるコード画像が復元できてしまう。そのため、1のノイズ重畳コード情報に重畳されるノイズ要素は、複数のノイズ要素単位であるのが好ましい。   Further, when there is only one noise element, images of a plurality of noise superimposed codes are obtained by screen capture or the like, and the original code image can be restored by comparing their differences. Therefore, it is preferable that the noise element superimposed on one noise superimposition code information is a plurality of noise element units.

また、連続的に表示されない一組以上のノイズ重畳情報(重畳コード画像)の重畳領域は、共通する位置に設けられるのが、ノイズ要素を重畳し、ダミーのコードを生成する観点からよい。   Moreover, it is good from the viewpoint of superimposing a noise element and generating a dummy code that the overlapping region of one or more sets of noise superimposing information (superimposed code image) that are not continuously displayed is provided at a common position.

本発明は、コード動画像を生成するコード生成装置と、生成されたコード動画像を表示する端末と、を備え、コードの複製を防止するためのコード生成システムであって、
前記コード生成装置は、読取対象となるコード画像を解析し、2値で表されるコード情報を生成する解析手段と、
前記コード情報にノイズ要素を重畳した重畳コード情報を、2種類以上生成する重畳コード生成手段と、を備え、
前記コード生成装置又は前記端末は、複数の前記重畳コード情報基づいて、重畳コード画像を連続的に変化させながら表示するコード動画像を生成する合成手段を備えることを特徴とする。
The present invention includes a code generation device that generates a code moving image and a terminal that displays the generated code moving image, and a code generation system for preventing code duplication,
The code generation device analyzes a code image to be read and generates code information represented by a binary value;
Superimposing code generating means for generating two or more types of superimposing code information in which a noise element is superimposed on the code information,
The code generation device or the terminal includes a synthesizing unit that generates a code moving image to be displayed based on a plurality of the superimposed code information while continuously changing the superimposed code image.

本発明は、コード生成装置であって、読取対象となるコード画像を解析し、2値で表されるコード情報を生成する解析手段と、
前記コード情報にノイズ要素を重畳した重畳コード情報を、2種類以上生成する重畳コード生成手段と、を備えることを特徴とする。
The present invention is a code generation device, which analyzes a code image to be read and generates code information represented by a binary value;
And a superimposed code generating means for generating two or more types of superimposed code information in which a noise element is superimposed on the code information.

本発明は、コード生成プログラムであって、読取対象となるコード画像を解析し、2値で表されるコード情報を生成する解析手段と、
前記コード情報にノイズ要素を重畳した重畳コード情報を、2種類以上生成する重畳コード生成手段と、をコンピュータに実行させることを特徴とする。
The present invention is a code generation program that analyzes a code image to be read and generates code information represented by a binary value;
It is characterized by causing a computer to execute superimposed code generation means for generating two or more types of superimposed code information in which a noise element is superimposed on the code information.

本発明によれば、電子的に表示され、撮影等による複製を防止した複製防止コードを提供することできる。   According to the present invention, it is possible to provide an anti-duplication code that is displayed electronically and prevents duplication due to photographing or the like.

本発明の実施形態に関る複製防止コード生成方法を提供する為のコード生成システムの概要を示す図である。It is a figure which shows the outline | summary of the code generation system for providing the duplication prevention code generation method concerning embodiment of this invention. 本発明の実施形態に関るコード生成装置及びモバイル端末のハードウェア構成の一例を示す図である。図2(a)はコード生成装置2のハードウェア構成を示し、図2(b)はモバイル端末3のハードウェア構成を示している。It is a figure which shows an example of the hardware constitutions of the code production | generation apparatus and mobile terminal concerning embodiment of this invention. FIG. 2A shows the hardware configuration of the code generation device 2, and FIG. 2B shows the hardware configuration of the mobile terminal 3. 本発明の実施形態に関るコード生成装置の機能ブロック図である。It is a functional block diagram of a code generation device concerning an embodiment of the present invention. 本発明の実施形態に関る1次元コードの一例を示す図である。It is a figure which shows an example of the one-dimensional code concerning embodiment of this invention. 本発明の実施形態に関るコード動画像が生成されるまでの処理フローチャートである。It is a processing flowchart until the code | cord moving image concerning embodiment of this invention is produced | generated. 本発明の実施形態に関るコード動画像生成中の各段階におけるコードの状態を示す図である。It is a figure which shows the state of the code | cord | chord in each step during the code | cord | chord moving image generation concerning embodiment of this invention. 本発明の実施形態に関るコード動画像生成中の各段階におけるコードの状態を示す図である。It is a figure which shows the state of the code | cord | chord in each step during the code | cord | chord moving image generation concerning embodiment of this invention. 本発明の実施形態に関るリーダの走査時間と各重畳コード情報の表示時間との関係を示す図である。It is a figure which shows the relationship between the scanning time of the reader concerning the embodiment of this invention, and the display time of each superimposition code information. 本発明の実施形態に関るリーダでコード動画像を読み取る際の流れを示す処理フローチャートである。It is a processing flowchart which shows the flow at the time of reading a code moving image with the reader concerning embodiment of this invention. 本発明の実施形態に関るコードの読み取りが成功する場合のスキャン開始のタイミングを示す図である。It is a figure which shows the timing of a scan start when the reading of the code | cord | chord concerning embodiment of this invention is successful.

以下、図面を用いて、本発明の実施形態に関る複製防止コード生成方法について説明する。なお、以下に示す実施形態は本発明の一例であり、本発明を以下の実施形態に限定するものではない。本実施形態では、1次元コードのコード画像からコード動画像を生成する場合の例を示すが、2次元コードのコード動画像を生成する場合であっても同様の処理で複製防止機能を備えたコード動画像を生成することが可能である。   Hereinafter, a method for generating a copy prevention code according to an embodiment of the present invention will be described with reference to the drawings. The following embodiment is an example of the present invention, and the present invention is not limited to the following embodiment. In this embodiment, an example in which a code moving image is generated from a code image of a one-dimensional code is shown, but even when a code moving image of a two-dimensional code is generated, a copy prevention function is provided in the same process. It is possible to generate a code moving image.

1.コード生成システム
図1は、本発明の実施形態に関る複製防止コード生成方法を提供する為のコード生成システムの概要を示す図である。符号1はコード生成システム全体を示し、符号2はコード画像から複製防止機能を備えたコード動画像を生成するコード生成装置を示し、符号3はコード生成装置2で生成されたコード動画像を表示するモバイル端末(端末)を示している。また、コード生成装置2とモバイル端末3とは、ネットワーク介して通信可能に構成されている。
1. Code Generation System FIG. 1 is a diagram showing an outline of a code generation system for providing a copy prevention code generation method according to an embodiment of the present invention. Reference numeral 1 represents the entire code generation system, reference numeral 2 represents a code generation apparatus that generates a code moving image having a copy prevention function from the code image, and reference numeral 3 represents a code moving image generated by the code generation apparatus 2 A mobile terminal (terminal) is shown. The code generation device 2 and the mobile terminal 3 are configured to be able to communicate via a network.

本実施形態では、複製防止機能を有するコード動画像をコード生成装置2で生成しているが、モバイル端末3上でコード画像からコード動画像を生成し、表示するように構成してもよい。また、コード生成装置2がノイズ要素を重畳したコード情報(重畳コード画像)を生成し、それらをモバイル端末3に出力して、モバイル端末3上でコード動画像に合成しても構わない。   In the present embodiment, a code moving image having a copy prevention function is generated by the code generating device 2, but a code moving image may be generated from the code image on the mobile terminal 3 and displayed. Alternatively, the code generation device 2 may generate code information (superimposed code image) on which a noise element is superimposed, output them to the mobile terminal 3, and synthesize the code information on the mobile terminal 3.

図2は、本実施形態に関るコード生成装置2及びモバイル端末3のハードウェア構成の一例を示す図である。図2(a)はコード生成装置2のハードウェア構成を示している。コード生成装置2は、CPU201と、メモリ202と、記憶装置203と、入力装置204と、表示装置205と、外部装置と通信を行うためのインタフェースである通信装置206と、を備えている。また、記録装置203は、オペレーティングシステム(OS)207と、コード生成プログラム208などが記録されている。コード生成プログラム208は、オペレーティングシステム207と協調してその機能を発揮するものである。   FIG. 2 is a diagram illustrating an example of a hardware configuration of the code generation device 2 and the mobile terminal 3 according to the present embodiment. FIG. 2A shows the hardware configuration of the code generation device 2. The code generation device 2 includes a CPU 201, a memory 202, a storage device 203, an input device 204, a display device 205, and a communication device 206 which is an interface for communicating with an external device. The recording device 203 stores an operating system (OS) 207, a code generation program 208, and the like. The code generation program 208 performs its function in cooperation with the operating system 207.

図2(b)はモバイル端末3のハードウェア構成を示している。モバイル端末3は、CPU301と、メモリ302と、記憶装置303と、入力装置304と、表示装置305と、外部装置と通信を行うためのインタフェースである通信装置306と、を備えている。また、記録装置303は、オペレーティングシステム(OS)307と、コード動画像を表示装置305上に表示するためのコード表示プログラム308などが記録されている。コード表示プログラム308は、オペレーティングシステム307と協調してその機能を発揮するものである。   FIG. 2B shows the hardware configuration of the mobile terminal 3. The mobile terminal 3 includes a CPU 301, a memory 302, a storage device 303, an input device 304, a display device 305, and a communication device 306 that is an interface for communicating with an external device. The recording device 303 records an operating system (OS) 307, a code display program 308 for displaying a code moving image on the display device 305, and the like. The code display program 308 performs its function in cooperation with the operating system 307.

図3は、本実施形態に関るコード生成装置2の機能ブロック図である。コード生成装置2は、記憶部4と、コード画像を受け取り、記憶部4に記憶する入力手段5と、コード画像を解析してコード情報を生成する解析手段6と、ノイズ要素をコード情報に重畳して重畳コード情報を生成する重畳コード生成手段7と、複数の重畳コード情報からコード動画像を生成する合成手段8と、生成したコード動画像を出力する出力手段9と、を備えている。   FIG. 3 is a functional block diagram of the code generation device 2 according to the present embodiment. The code generation device 2 receives the code image and stores the code image in the storage unit 4, the analysis unit 6 that analyzes the code image and generates code information, and superimposes the noise element on the code information. And a superimposing code generating means 7 for generating superimposing code information, a synthesizing means 8 for generating a code moving image from a plurality of superimposing code information, and an output means 9 for outputting the generated code moving image.

解析手段6は、コード画像を2値化するために2色化する2色化手段11と、コード画像を2値化するための2値化手段12と、2値化したコード情報から余白などを処理してコード領域を抜き出すコード領域特定手段13と、コード情報におけるデータ領域を特定するためのデータ領域特定手段14と、コードを生成する最小単位(1次元コードにおける最細のバー)を特定する最小単位特定手段15と、を備えている。解析手段6は、写真撮影されたコード画像等、歪んだコード画像からコード動画像を生成する場合を想定して、入力されたコード画像の傾きや歪み等を補正する補正手段を更に備えていても構わない。   The analyzing unit 6 includes a binarizing unit 11 for binarizing the code image to binarize, a binarizing unit 12 for binarizing the code image, and a margin from the binarized code information. Code area specifying means 13 for extracting the code area by processing the code area, data area specifying means 14 for specifying the data area in the code information, and specifying the minimum unit (thinnest bar in the one-dimensional code) for generating the code Minimum unit identification means 15 for performing The analysis unit 6 further includes a correction unit that corrects the inclination and distortion of the input code image, assuming that a code moving image is generated from a distorted code image such as a photographed code image. It doesn't matter.

2.コードの概要
図4は、1次元コードの一例を示す図である。1次元コードCは、コードの幅を特定するためのスタートキャラクタs及びストップキャラクタeと、バーによって符号化された情報が記載されたデータ領域dと、データ領域dの読み込み結果と比較して正確に読取が行われたか否かを判定するためのチェックデジットcと、符号化した情報を数字で記載した数値領域nと、を備えている。スタートキャラクタsと、データ領域dと、チェックデジットcと、ストップキャラクタeと、を併せて、コード領域とする。なお、数値領域nの情報は、情報の複製などを防ぐため、コード動画像上では表示しないのが好ましい。
2. Outline of Code FIG. 4 is a diagram illustrating an example of a one-dimensional code. The one-dimensional code C is more accurate than the start character s and stop character e for specifying the width of the code, the data area d in which the information encoded by the bar is written, and the reading result of the data area d. Are provided with a check digit c for determining whether or not reading has been performed, and a numerical area n in which encoded information is described in numerals. The start character s, the data area d, the check digit c, and the stop character e are combined into a code area. The information in the numerical area n is preferably not displayed on the code moving image in order to prevent duplication of information.

3.コード動画像の生成
図5〜図7を用いて、コード画像の入力からコード動画像の生成までの処理について説明する。図5は、コード動画像が生成されるまでの処理フローチャートである。図6、図7は、コード動画像生成中の各段階におけるコードの状態を示す図である。
3. Generation of Code Moving Image Processing from the input of the code image to the generation of the code moving image will be described with reference to FIGS. FIG. 5 is a processing flowchart until a code moving image is generated. 6 and 7 are diagrams showing the state of the code at each stage during the generation of the code moving image.

ステップ1(S1)では、生成するコード動画像中で切り替わる重畳コード画像の枚数と、コード動画像のフレームレートと、コード画像の種別と、を設定する。コード動画像は、ここで設定されたフレームレートで、設定された枚数の重畳コード画像を繰り返し連続的に変化させながら表示する。   In step 1 (S1), the number of superimposed code images to be switched in the generated code moving image, the frame rate of the code moving image, and the type of code image are set. The code moving image is displayed at the frame rate set here while repeatedly changing the set number of superimposed code images repeatedly.

ここで必ずしも、画像枚数やフレームレートは入力を求める必要はなく、予め設定した値でコード動画像を生成するようにしてもよい。また、コード動画像の種別は、コード生成装置2においてコード画像を解析して導出するようにしてもよく、また、コード動画像の生成に際して必ずしも必要ではない。更に、後述するノイズ要素を重畳する位置(重畳領域)を設定するために、読取を行うリーダのスキャン速度、モバイル端末3の画面上に表示される表示時間を設定するようにしてもよい。   Here, it is not always necessary to obtain the number of images and the frame rate, and a code moving image may be generated with a preset value. The type of code moving image may be derived by analyzing the code image in the code generating device 2 and is not necessarily required when generating the code moving image. Furthermore, in order to set a position (superimposition region) on which a noise element to be described later is set, the scanning speed of the reader that performs reading and the display time displayed on the screen of the mobile terminal 3 may be set.

ステップ2(S2)では、図6(a)に表されるような1次元コードのコード画像Cを受け取る。入力手段5を介して受け取ったコード画像は記憶部4に記憶される。   In step 2 (S2), a one-dimensional code image C as shown in FIG. 6A is received. The code image received via the input unit 5 is stored in the storage unit 4.

次いで、図6(b)に表されるように、2色化手段11を用いてコード画像Cを2色化する(ステップ3(S3))。S3でコード画像が2色化されたならば、図6(c)に示すように、2値化手段12を用いて、2色化されたコード画像Cを2値化したコード情報に変換する(S4)。本実施形態では、「1」で表される黒色要素bと、「0」で表される白色要素wとを用いて、コード画像Cをコード情報として表現している。   Next, as shown in FIG. 6B, the code image C is binarized using the dichromator 11 (step 3 (S3)). If the code image is binarized in S3, the binarized means 12 is used to convert the binarized code image C into binarized code information as shown in FIG. 6C. (S4). In the present embodiment, the code image C is expressed as code information using a black element b represented by “1” and a white element w represented by “0”.

S4で得られたコード情報から、コード領域特定手段13を用いて、コード領域以外の余白や数値領域n等を取り除き、コード領域のみを抽出する(S5)。まず、図6(c)における行方向に並んだ要素を1つの単位とみなし、同じパターンが現れる個所の抽出を行う。抽出を行ったコード情報が図5(d)に示すものである。   From the code information obtained in S4, the code area specifying means 13 is used to remove margins other than the code area, the numerical area n, etc., and extract only the code area (S5). First, elements arranged in the row direction in FIG. 6C are regarded as one unit, and a portion where the same pattern appears is extracted. The extracted code information is shown in FIG.

次いで、図6(d)の列方向に並んだ要素を1つの単位とみなし、同じパターンが現れる個所の抽出を行う。そして、左右側の白色要素wで表される余白部分を除外する。抽出を行ったコード情報が図6(e)に示すものである。   Next, the elements arranged in the column direction in FIG. 6D are regarded as one unit, and a portion where the same pattern appears is extracted. Then, the margin part represented by the white element w on the left and right sides is excluded. The extracted code information is shown in FIG.

S5においてコード領域が抽出されたなら、ノイズを重畳する重畳領域を設定するために、コードのデータ領域の特定を行う(S6)。また、コード領域において情報を表現する図形の最小単位sを特定する(S7)。1次元コードにおける最小単位sは、最も細いバーである。図6(f)は、コード領域における最小単位sを示す図である。なお、ノイズの重畳は、必ずしもデータ領域に行われる必要はない。   If the code area is extracted in S5, the code data area is specified in order to set the superimposed area where noise is superimposed (S6). Further, the minimum unit s of the graphic representing information in the code area is specified (S7). The smallest unit s in the one-dimensional code is the thinnest bar. FIG. 6F shows the minimum unit s in the code area. Note that the noise superposition need not necessarily be performed in the data area.

最小単位Sが特定されたならば、図6(e)示すようなコード情報にノイズ要素を重畳し、重畳コード情報を生成する(S8)。重畳コード情報は、S1で決定した重畳コード画像の枚数だけ生成される。まず、ノイズを重畳するための重畳領域を設定する。重畳領域は、ノイズを重畳する際の領域であり、本実施形態ではS5で抽出したコードのデータ領域内に設定する。   If the minimum unit S is specified, a noise element is superimposed on code information as shown in FIG. 6E to generate superimposed code information (S8). Superimposition code information is generated for the number of superimposition code images determined in S1. First, a superimposition area for superimposing noise is set. The superimposition area is an area when noise is superimposed, and is set in the data area of the code extracted in S5 in this embodiment.

図7(a)は、重畳領域を、S7において求めたコードの最小単位sの大きさとした場合の図である。この場合、重畳領域(最小単位)に含まれた白色要素wを、黒色要素bに置き換え、ノイズ要素とする。図7(b)は、重畳領域を、最小単位sの列数と、複数の列数と、の範囲に指定した場合の図である。この場合、重畳領域に含まれた最小単位sの白色要素wの1単位以上を、所定の方法乃至はランダム選択して黒色要素bに置き換え、ノイズ要素とする。   FIG. 7A is a diagram in the case where the overlapped area is the size of the minimum unit s of the code obtained in S7. In this case, the white element w included in the overlapping region (minimum unit) is replaced with the black element b to obtain a noise element. FIG. 7B is a diagram in the case where the overlapping region is designated in the range of the number of columns of the minimum unit s and the number of columns. In this case, one unit or more of the white element w of the minimum unit s included in the overlapping region is selected by a predetermined method or randomly and replaced with the black element b to obtain a noise element.

詳しくは後述するが、生成されるコード動画像上において、先に表示されるノイズ重畳コードと、その次に表示されるノイズ重畳コードと、に重畳されたノイズ要素が離間している程、コード動画像の読取精度が高まる。そのため、連続して表示されるノイズ重畳コードに設定される重畳領域のコード上の位置は、ノイズ要素が重畳されない非重畳領域を挟むように配置されるのが好ましい。   As will be described in detail later, the noise elements superimposed on the noise superimposed code displayed first and the noise superimposed code displayed next on the generated code moving image are more separated from each other. The moving image reading accuracy is increased. Therefore, it is preferable that the position on the code of the superimposing area set for the noise superimposing codes displayed continuously is arranged so as to sandwich the non-superimposing area where the noise element is not superimposed.

なお、2次元コードは誤り補正が強いため、2次元コードにノイズを重畳する場合、1の重畳領域に対して、複数のノイズ要素を重畳するのが好ましい。重畳されるノイズ要素の数は、予め決定した所定の数やランダムな数であってもよいし、S1において初期条件として入力するようにしてもよい。   In addition, since error correction is strong in the two-dimensional code, when noise is superimposed on the two-dimensional code, it is preferable to superimpose a plurality of noise elements on one superimposed region. The number of noise elements to be superimposed may be a predetermined number or a random number determined in advance, or may be input as an initial condition in S1.

重畳領域内の要素をノイズ要素に置き換える処理を行なって、コード情報から重畳コード情報を複数枚分生成する。ここで、ノイズは必ずしも白色要素wを黒色要素bに置き換えることで重畳される必要はなく、黒色要素bを白色要素wに置き換えることで重畳されてもよい。更に、それら両方を併せて行い、重畳コード情報を生成するようにしてもよい。   A process of replacing elements in the superimposition area with noise elements is performed, and a plurality of pieces of superimposition code information are generated from the code information. Here, the noise does not necessarily have to be superimposed by replacing the white element w with the black element b, and may be superimposed by replacing the black element b with the white element w. Furthermore, both may be performed together to generate superimposition code information.

S8で複数枚の重畳コード情報が生成されたなら、それらをS1で決定したフレームレートでつなぎあわせ、コード動画像を生成する(S9)。コード動画像は、S8で生成された重畳コード情報(重畳コード画像)を所定の順番乃至はランダムな順番で、前記フレームレートでつなぎ合わせた動画像であり、ノイズ画像が重畳されたコード画像が連続で切り替わりながら表示される。   If a plurality of pieces of superimposed code information are generated in S8, they are connected at the frame rate determined in S1, and a code moving image is generated (S9). The code moving image is a moving image obtained by connecting the superimposed code information (superimposed code image) generated in S8 in a predetermined order or a random order at the frame rate, and a code image on which a noise image is superimposed is obtained. Displayed while switching continuously.

S8において、複数の重畳コード情報を生成する際、少なくとも連続して表示される2つの重畳コード情報は、異なる個所にノイズ要素を重畳してある必要がある。更に、後に表示される重畳コード情報のノイズ要素の位置が、先に表示する重畳コード情報のノイズ要素の位置から、リーダが走査する走査方向の始端側に位置した組み合わせが、少なくとも1組以上必要である。   In S8, when generating a plurality of superimposition code information, at least two superimposition code information displayed in succession needs to have noise elements superimposed at different locations. Furthermore, at least one or more combinations in which the position of the noise element of the superimposed code information displayed later is positioned on the start end side in the scanning direction scanned by the reader from the position of the noise element of the superimposed code information displayed earlier are required. It is.

4.コード動画像の読み取り
リーダの走査時間とコード動画像の各画像の表示時間(1/Xfps)の関係を考えると、走査時間>表示時間となる場合、走査時間=表示時間となる場合、走査時間<表示時間となる場合、の3つの場合が考えらえる。
4). Reading the code moving image Considering the relationship between the scanning time of the reader and the display time (1 / Xfps) of each image of the code moving image, when scanning time> display time, when scanning time = display time, scanning time <When the display time is reached, three cases can be considered.

図8は、リーダの走査時間と重畳コード画像の表示時間との関係を示す図である。図8(a)は走査時間<表示時間となる場合にリーダで読み取られる1次元コードを示し、図8(b)は走査時間=表示時間となる場合にリーダで読み取られる1次元コードを示し、図8(c)は走査時間>表示時間となる場合にリーダで読み取られる1次元コードを示す。   FIG. 8 is a diagram showing the relationship between the scanning time of the reader and the display time of the superimposed code image. FIG. 8A shows a one-dimensional code read by the reader when the scanning time <display time, and FIG. 8B shows a one-dimensional code read by the reader when the scanning time = display time. FIG. 8C shows a one-dimensional code read by the reader when scanning time> display time.

図中で、時間軸tに沿って(図中左から右へ)並んだ走査時間のセルは、リーダが走査方向に向かってコード上を1回走査する時間を示している。表示時間のセルは、コード動画像の1つの重畳コード画像がモバイル端末3の画面上に表示されている時間を示している。なお、リーダでの走査は、コードの読み取りが成功するまで遅延することなく途切れず繰り返され、コード動画像として表示している個々の重畳コード画像の切り替えは、遅延することなく途切れず繰り返されるものとして説明する。   In the figure, the cells of scanning time arranged along the time axis t (from left to right in the figure) indicate the time when the reader scans the code once in the scanning direction. The display time cell indicates the time during which one superimposed code image of the code moving image is displayed on the screen of the mobile terminal 3. The scanning with the reader is repeated without delay until the code is successfully read, and the switching of the individual superimposed code images displayed as the code moving image is repeated without delay. Will be described.

なお、コード動画像は、モバイル端末3のディスプレイ(表示装置305)に表示されるため、表示するディスプレイのリフレッシュレートに依存したフレーム数で表示される。本実施形態では、60fpsのコード動画像が、リフレッシュレートが60Hzのディスプレイで表示されているとして説明する。   Since the code moving image is displayed on the display (display device 305) of the mobile terminal 3, it is displayed with the number of frames depending on the refresh rate of the display to be displayed. In the present embodiment, it is assumed that a code moving image of 60 fps is displayed on a display having a refresh rate of 60 Hz.

図9は、リーダでコード動画像を読み取る際の流れを示す処理フローチャートである。
S11では、コード動画像の読み取り(走査)が行われる。走査が行われたならチェックデジットによって読み取った符号の値を確認する(S12)。
FIG. 9 is a processing flowchart showing a flow when a code moving image is read by a reader.
In S11, the code moving image is read (scanned). If scanning is performed, the value of the code read by the check digit is confirmed (S12).

S12での確認によってコードが無効と判断されたならば(S13でNO(N))、S11に戻り、コードの読み込みを繰り返す。S12での確認によってコードが有効と判断されたならば(S13でYES(Y))、コードを利用する装置にコードを出力して(S14)、処理を終了する。   If it is determined by the confirmation in S12 that the code is invalid (NO in S13 (N)), the process returns to S11 and the code reading is repeated. If it is determined by the confirmation in S12 that the code is valid (YES in S13 (Y)), the code is output to the device using the code (S14), and the process is terminated.

走査時間<表示時間となる場合、図8(a)に示すように、リーダがコード上を走査している間に読み取られる1次元コードには、1つのコード(重畳コード画像)のみを読み取る場合(スキャン0(SC0))と、コードA及びコードBの二つのコードに跨って読み取る場合(スキャン1(SC1))と、が考えらえる。   When scanning time <display time, as shown in FIG. 8A, when only one code (superimposed code image) is read in the one-dimensional code read while the reader scans the code. (Scan 0 (SC0)) and a case of reading across two codes of code A and code B (scan 1 (SC1)) can be considered.

SC0のタイミングでリーダによる走査が行われた場合、1枚の重畳コード画像を読み取ることとなるため、コード領域の値とチェックデジットの値が異なり、読み取りが失敗する。一方、SC1のタイミングでリーダによる走査が行われた場合、重畳コード画像Aの中の1Aの領域及び重畳コード画像Bの中の1Bの領域にノイズ要素が含まれていなければ、走査途中に表示された重畳コード画像がAからBに切り替わり、ノイズ要素が重畳されてない部分のみがスキャンできるため、ノイズ要素が重畳されていない元のコード画像を復元することができる。   When scanning by the reader is performed at the timing of SC0, since one superimposed code image is read, the value of the code area differs from the value of the check digit, and reading fails. On the other hand, when scanning is performed by the reader at the timing of SC1, if a noise element is not included in the 1A area in the superimposed code image A and the 1B area in the superimposed code image B, it is displayed during scanning. Since the superimposed code image is switched from A to B and only the portion where the noise element is not superimposed can be scanned, the original code image without the noise element superimposed can be restored.

走査時間=表示時間となる場合、図8(b)に示すように、リーダがコード上を走査している間に読み取られる1次元コードには、1つの重畳コード画像のみを読み取る場合と、2つの重畳コード画像に跨って読み取る場合と、が考えらえる。図示例では、走査の開始タイミング及び重畳コード画像の切り替えタイミングが異なる場合、即ち、リーダが2つの重畳コード画像に跨って読み取る場合(SC2)を示している。なお、1つのコードのみを読み取る場合はコード動画像の画像の切り替えのタイミングとリーダによる走査開始のタイミングが一致した場合であり、スキャンの開始タイミングと、コード動画像の表示タイミングをずらして試行すれば、SC2のように2つのコードに跨って読み取ることができる。SC2の場合、SC1の場合と同様、元のコード画像を復元することができる。   When the scanning time is equal to the display time, as shown in FIG. 8B, the one-dimensional code read while the reader is scanning on the code includes a case where only one superimposed code image is read, and 2 The case of reading across two superimposed code images can be considered. In the illustrated example, the case where the scanning start timing and the superimposed code image switching timing are different, that is, the case where the reader reads across two superimposed code images (SC2) is shown. Note that when only one code is read, it is a case where the switching timing of the code moving image coincides with the scanning start timing by the reader, and the scanning start timing and the display timing of the code moving image are shifted. For example, it can be read across two codes as in SC2. In the case of SC2, the original code image can be restored as in the case of SC1.

走査時間>表示時間となる場合、図8(c)に示すように、リーダがコード上を走査している間に読み取られる1次元コードには、2つの重畳コード画像に跨って読み取る場合(SC4)と、3つ以上の重畳コード画像に跨って読み取る場合(SC3)と、が考えらえる。図示例では、走査が最大で3つの重畳コード画像に跨る場合を例示する。SC4の場合、SC1、SC2の場合と同様、元のコード画像を復元することができる。SC3の場合、重畳コード画像Aの中の3Aの領域、コード画像Bの中の3Bの領域、並びにコード画像Cの中の3Cの領域にノイズ要素が含まれていなければ、走査途中に表示された重畳コード画像がAからB、BからCに切り替わり、ノイズ要素が重畳されてない部分のみがスキャンできるため、ノイズ要素が重畳されていない元のコード画像を復元することができる。   When scanning time> display time, as shown in FIG. 8C, the one-dimensional code read while the reader is scanning on the code is read over two superimposed code images (SC4). ) And a case of reading over three or more superimposed code images (SC3). In the illustrated example, a case where the scanning spans at most three superimposed code images is illustrated. In the case of SC4, the original code image can be restored as in the case of SC1 and SC2. In the case of SC3, if a noise element is not included in the 3A area in the superimposed code image A, the 3B area in the code image B, and the 3C area in the code image C, it is displayed during scanning. Since the superimposed code image is switched from A to B and from B to C, and only the portion where the noise element is not superimposed can be scanned, the original code image where the noise element is not superimposed can be restored.

次いで、ノイズ要素が重畳される位置について説明する。図10は、コードの読み取りが成功する場合のスキャン開始のタイミングを示す図である。図10(a)は、重畳コード画像A及び重畳コード画像Bが連続的に表示される場合における、読み取りが成功するスキャン開始のタイミングを示す図である。図10(b)は、重畳コード画像C及び重畳コード画像Dが連続的に表示される場合における、読み取りが成功するスキャン開始のタイミングを示す図である。   Next, the position where the noise element is superimposed will be described. FIG. 10 is a diagram illustrating the scan start timing when the code is successfully read. FIG. 10A is a diagram illustrating a scan start timing at which reading succeeds when the superimposed code image A and the superimposed code image B are continuously displayed. FIG. 10B is a diagram illustrating a scan start timing at which reading succeeds when the superimposed code image C and the superimposed code image D are continuously displayed.

ここで、重畳コード画像A〜Dには、重畳領域Nに、ノイズ要素N〜Nが重畳されている。連続して表示される一組の重畳コード画像の、それぞれの重畳領域Nは、非重畳領域Nを隔てて配置されている。なお、重畳コード画像A〜Dに本来現れる、復元対象となる元のコード画像(1次元コード)の部分に関しては図示を省略している。また、時間軸tに沿って、重畳コード画像上に記載された矢印SCは、各重畳コード画像上をリーダが読み取る部分(走査する部分)を示している。tは、表示された重畳コード画像が切り替わるタイミングを示す。 Here, in the superimposed code images A to D, noise elements N a to N d are superimposed on the superimposed region N. A set of superimposed code images displayed sequentially, each overlapping region N is arranged at a non-overlapping region N 0. In addition, illustration is abbreviate | omitted about the part of the original code image (one-dimensional code) to be restored, which originally appears in the superimposed code images A to D. Further, along the time axis t, an arrow SC described on the superimposed code image indicates a portion (a portion to be scanned) read by the reader on each superimposed code image. t c indicates the timing at which the displayed superimposed code image is switched.

図10(a)に表れるように、tは読取が成功するコード動画像の最も早いスキャン開始タイミングを示し、tは読取が成功するコード動画像の最も遅いスキャン開始タイミングを示している。先に表示される重畳コード画像Aのノイズ要素Nは、走査方向の終端側に重畳されており、後に表示される重畳コード画像Bのノイズ要素Nは、走査方向の始端側に重畳されている。 As appears in FIG. 10 (a), t 0 represents the earliest scan start timing of the code moving image reading is successful, t 1 represents the slowest scan start timing of the code moving image reading is successful. The noise element N a of the superimposed code image A displayed first is superimposed on the end side in the scanning direction, and the noise element N b of the superimposed code image B displayed later is superimposed on the start end side in the scanning direction. ing.

コードの読み取りが成功するためには、tからtの間にリーダによる走査が開始される必要がある。このスキャンが開始されるタイミングtからtの間隔は、最も前記始端側に位置するノイズ要素N及び最も終端側に位置するノイズ要素Nの離間距離(N−N)によって変化する。 To read the code is successful, it is necessary to scan by the reader during the t 1 from t 0 is started. Interval t 1 from the timing t 0 when the scan is started, vary with the distance of the noise component N b located to the noise component N a and most terminating located nearest the starting side (N a -N b) To do.

また、同様に、図10(b)においても、tは読取が成功するコード動画像の最も早いスキャン開始タイミングを示し、tは読取が成功するコード動画像の最も遅いスキャン開始タイミングを示している。先に表示される重畳コード画像Cのノイズ要素Nは、走査方向の終端側に重畳されており、後に表示される重畳コード画像Dのノイズ要素Nは、走査方向の始端側に重畳されている。 Similarly, in FIG. 10B, t 0 indicates the earliest scan start timing of the code moving image that is successfully read, and t 1 indicates the latest scan start timing of the code moving image that is successfully read. ing. Noise component N c of the superimposed code image C displayed earlier, the noise component N d of the superimposed code image D displayed after which, superimposed on the end side of the scanning direction is superimposed on the starting side of the scanning direction ing.

図10(b)に現れるように、(N−N)は(N−N)より更に離間しており、その離間距離に応じてtからtの間隔も広くなっている。この離間した距離の長さに対応して読取が成功するタイミングでスキャンが開始される可能性が上がり、読取精度が向上する。なお、離間距離は、非重畳領域Nの幅並びに、重畳領域N及びノイズ要素の配置位置によって決定される。 As shown in FIG. 10B, (N c −N d ) is further separated from (N a −N b ), and the interval from t 0 to t 1 is increased according to the separation distance. . Corresponding to the length of the separated distance, the possibility of starting scanning is increased at the timing when reading is successful, and reading accuracy is improved. The separation distance is determined by the width of the non-overlapping area N 0 and the arrangement positions of the overlapping area N and the noise element.

本発明によれば、ノイズが重畳された重畳コード画像を連続的に切り替えながら表示するコード動画像を生成することができる。表示されているコード動画像は、複数の重畳コード画像を連続的に表示するものであり、毎フレーム表示されるコードにはノイズが重畳されている。そのため、撮影等による複製を防止しながら、リーダによるコードの読み取りが可能な電子的なコードを提供することができる。   According to the present invention, it is possible to generate a code moving image that is displayed while continuously switching superimposed code images on which noise is superimposed. The displayed code moving image continuously displays a plurality of superimposed code images, and noise is superimposed on the code displayed every frame. Therefore, it is possible to provide an electronic code that can be read by a reader while preventing duplication due to photographing or the like.

また、最小単位でノイズ要素を重畳することで、ノイズ要素及び正規のコードの最小単位の差異を無くすことができる。そのため、ノイズ要素の特定が困難になり、不正な複製を防止することができる。   Further, by superimposing the noise element in the minimum unit, the difference between the noise element and the minimum unit of the normal code can be eliminated. Therefore, it becomes difficult to specify a noise element, and unauthorized duplication can be prevented.

また、データ領域にノイズ要素を重畳することで、コードの読み取り自体の精度を低下させずに、復元の困難性を上げ、重畳コード画像を読み取らせることができる。   Further, by superimposing a noise element on the data area, it is possible to increase the difficulty of restoration and to read the superimposed code image without reducing the accuracy of the code reading itself.

モバイル端末の画面上で本発明に係るコード動画像を表示させ、ポイントカードや金券、会員証、チケット等、として活用させることができる。   The code moving image according to the present invention can be displayed on the screen of the mobile terminal and used as a point card, a cash voucher, a membership card, a ticket, or the like.

1 コード生成システム
2 コード生成装置
201 CPU
202 メモリ
203 記憶装置
204 入力装置
205 表示装置
206 通信装置
207 オペレーティングシステム
208 コード生成プログラム
3 モバイル端末
301 CPU
302 メモリ
303 記憶装置
304 入力装置
305 表示装置
306 通信装置
307 オペレーティングシステム
308 コード表示プログラム
4 記憶部
5 入力手段
6 解析手段
7 重畳コード生成部
8 合成手段
9 出力手段
11 2色化手段
12 2値化手段
13 コード領域特定手段
14 データ領域特定手段
15 最小単位特定手段
C コード画像
st スタートキャラクタ
sp ストップキャラクタ
d データ領域
cd チェックデジット
n 数値領域
s 最小単位
N 重畳領域
、Nb、c、 ノイズ要素
非重畳領域
SC,SC0〜SC4 スキャン(走査)
A、B、C,D 重畳コード画像
t 時間軸
1 Code generation system 2 Code generation device 201 CPU
202 Memory 203 Storage Device 204 Input Device 205 Display Device 206 Communication Device 207 Operating System 208 Code Generation Program 3 Mobile Terminal 301 CPU
302 Memory 303 Storage device 304 Input device 305 Display device 306 Communication device 307 Operating system 308 Code display program 4 Storage unit 5 Input unit 6 Analysis unit 7 Superimposed code generation unit 8 Composition unit 9 Output unit 11 Two-coloring unit 12 Binarization Means 13 Code area specifying means 14 Data area specifying means 15 Minimum unit specifying means C Code image st Start character sp Stop character d Data area cd Check digit n Numerical area s Minimum unit N Overlapping areas N a , N b, N c, N d Noise element N 0 non-overlapping area SC, SC0 to SC4 scan (scan)
A, B, C, D Superimposed code image t Time axis

Claims (9)

読取対象となるコード画像を解析するステップと、
コード画像から2値で表されるコード情報を生成するステップと、
コード情報にノイズ要素を重畳した重畳コード情報を、2種類以上生成するステップと、
複数の前記重畳コード情報に基づいて、重畳コード画像を連続的に変化させながら表示するコード動画像を生成するステップと、を備えることを特徴とする複製防止コード生成方法。
Analyzing a code image to be read;
Generating code information expressed in binary from a code image;
Generating two or more types of superimposed code information in which noise elements are superimposed on code information;
Generating a code moving image to be displayed while continuously changing the superimposed code image based on a plurality of the superimposed code information.
前記コード情報を生成する際に、コードを構成する構成要素の最小単位を特定するステップを備え、
前記重畳コード情報を生成する際に、前記コード情報に前記最小単位のノイズ要素を1以上重畳することを特徴とする請求項1に記載の複製防止コード生成方法。
When generating the code information, comprising the step of specifying the minimum unit of the constituent elements constituting the code,
The method for generating a copy prevention code according to claim 1, wherein when generating the superimposition code information, one or more noise elements of the minimum unit are superimposed on the code information.
前記重畳コード情報を生成する際に、ノイズ要素を重畳する重畳領域を決定し、
前記コード動画像上で連続的に表示される少なくとも一組の重畳コード画像は、異なる重畳領域にノイズ要素が重畳されていることを特徴とする請求項1又は請求項2に記載の複製防止コード生成方法。
When generating the superimposition code information, determine a superimposition region to superimpose a noise element,
The duplication prevention code according to claim 1 or 2, wherein at least one set of superimposed code images continuously displayed on the code moving image has noise elements superimposed on different superimposed regions. Generation method.
前記コード動画像上で連続的に表示される少なくとも一組の重畳コード画像において、それぞれの重畳領域は、ノイズ要素が重畳されない非重畳領域を隔てた位置に決定されることを特徴とする請求項1〜3の何れかに記載の複製防止コード生成方法。   The at least one set of superimposed code images displayed continuously on the code moving image, each superimposed region is determined at a position separated from a non-superimposed region where a noise element is not superimposed. The duplication prevention code production | generation method in any one of 1-3. 前記コード動画像上で表示される連続的に表示される少なくとも一組の重畳コード画像のうち、先に表示される第1の重畳コード画像は、コードリーダの走査方向の終端側にノイズ要素が重畳されており、
前記第1の重畳コード画像に続いて表示される第2の重畳コード画像は、コードリーダの走査方向の始端側にノイズ要素が重畳されており、
前記第1の重畳コードの最も前記始端側に位置するノイズ要素及び、前記第2の重畳コードの最も前記終端側に位置するノイズ要素は、コード上で相対的に離間した位置に重畳されていることを特徴とする請求項1〜4の何れかに記載の複製防止コード生成方法。
Of the at least one set of continuously displayed superimposed code images displayed on the code moving image, the first superimposed code image displayed first has a noise element on the end side in the scanning direction of the code reader. Is superimposed,
The second superimposed code image displayed following the first superimposed code image has a noise element superimposed on the start end side in the scanning direction of the code reader,
The noise element positioned closest to the start end of the first superimposed code and the noise element positioned closest to the end of the second superimposed code are superimposed at positions relatively spaced on the code. The method for generating a copy prevention code according to any one of claims 1 to 4.
前記重畳コード情報を生成する際に、コードのデータ領域にノイズ要素を重畳することを特徴とする請求項1〜5の何れかに記載の複製防止コード生成方法。   6. The duplication prevention code generation method according to claim 1, wherein when generating the superimposition code information, a noise element is superimposed on a data area of the code. コード動画像を生成するコード生成装置と、生成されたコード動画像を表示する端末と、を備え、コードの複製を防止するためのコード生成システムであって、
前記コード生成装置は、読取対象となるコード画像を解析し、2値で表されるコード情報を生成する解析手段と、
前記コード情報にノイズ要素を重畳した重畳コード情報を、2種類以上生成する重畳コード生成手段と、を備え、
前記コード生成装置又は前記端末は、複数の前記重畳コード情報基づいて、重畳コード画像を連続的に変化させながら表示するコード動画像を生成する合成手段を備えることを特徴とするコード生成システム。
A code generation system for preventing code duplication, comprising: a code generation device that generates a code moving image; and a terminal that displays the generated code moving image.
The code generation device analyzes a code image to be read and generates code information represented by a binary value;
Superimposing code generating means for generating two or more types of superimposing code information in which a noise element is superimposed on the code information,
The code generating system or the terminal includes a synthesizing unit that generates a code moving image to be displayed while continuously changing the superimposed code image based on a plurality of the superimposed code information.
読取対象となるコード画像を解析し、2値で表されるコード情報を生成する解析手段と、
前記コード情報にノイズ要素を重畳した重畳コード情報を、2種類以上生成する重畳コード生成手段と、を備えることを特徴とするコード生成装置。
Analyzing means for analyzing a code image to be read and generating code information represented by binary values;
A code generation apparatus comprising: superimposed code generation means for generating two or more types of superimposed code information in which a noise element is superimposed on the code information.
読取対象となるコード画像を解析し、2値で表されるコード情報を生成する解析手段と、
前記コード情報にノイズ要素を重畳した重畳コード情報を、2種類以上生成する重畳コード生成手段と、をコンピュータに実行させることを特徴とするコード生成プログラム。
Analyzing means for analyzing a code image to be read and generating code information represented by binary values;
A code generation program that causes a computer to execute superimposed code generation means for generating two or more types of superimposed code information in which a noise element is superimposed on the code information.
JP2015196270A 2015-10-01 2015-10-01 Copy protection code generation method Active JP6742568B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2015196270A JP6742568B2 (en) 2015-10-01 2015-10-01 Copy protection code generation method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2015196270A JP6742568B2 (en) 2015-10-01 2015-10-01 Copy protection code generation method

Publications (2)

Publication Number Publication Date
JP2017068766A true JP2017068766A (en) 2017-04-06
JP6742568B2 JP6742568B2 (en) 2020-08-19

Family

ID=58492689

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2015196270A Active JP6742568B2 (en) 2015-10-01 2015-10-01 Copy protection code generation method

Country Status (1)

Country Link
JP (1) JP6742568B2 (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007049584A (en) * 2005-08-12 2007-02-22 Casio Comput Co Ltd Advertisement support system and program
US20140103105A1 (en) * 2012-10-17 2014-04-17 Industrial Technology Research Institute Anti-counterfeit device with dynamic barcode, system and method for anti-counterfeit with dynamic barcode
JP5777264B1 (en) * 2014-02-26 2015-09-09 株式会社Mrsホールディングズ Bar code display device, operation method and program for bar code display device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007049584A (en) * 2005-08-12 2007-02-22 Casio Comput Co Ltd Advertisement support system and program
US20140103105A1 (en) * 2012-10-17 2014-04-17 Industrial Technology Research Institute Anti-counterfeit device with dynamic barcode, system and method for anti-counterfeit with dynamic barcode
JP5777264B1 (en) * 2014-02-26 2015-09-09 株式会社Mrsホールディングズ Bar code display device, operation method and program for bar code display device

Also Published As

Publication number Publication date
JP6742568B2 (en) 2020-08-19

Similar Documents

Publication Publication Date Title
US8588414B2 (en) Image encryption and image decryption apparatus and method
ES2424480T3 (en) Authentication patterns visible for printed document
CN100521726C (en) Printed matter processing system and method and watermark-containing document read device
EP1605395B1 (en) Information input/output method using dot pattern
KR101215278B1 (en) Detection of document security marks using run profiles
JP6512706B2 (en) Watermarked two-dimensional code, authentication system, authentication method, and program
KR101535534B1 (en) A Creating and Verifying Method Of A Document Having Printed Means Of Preventing From Forging/Manipulating
JP2007166229A (en) Image reading apparatus
JP2011034535A (en) Apparatus for appraising genuineness of personal identification document
KR100919818B1 (en) Method of encoding divided two-dimensional barcodes for mobile communication terminal
JP5777264B1 (en) Bar code display device, operation method and program for bar code display device
US20080260200A1 (en) Image Processing Method and Image Processing Device
US20150138608A1 (en) System and Method for Printing a Hidden and Secure Barcode
JP2010226580A (en) Color correction method and imaging system
KR101389723B1 (en) Printer for copy protection
JP2015049753A (en) Device, method, and program for displaying two-dimensional code, and device, method, and program for reading two-dimensional code
KR101727585B1 (en) A Document Having Printed Means Of Preventing From Forging/Manipulating
KR102085561B1 (en) QR code forgery prevention apparatus and method
JP6742568B2 (en) Copy protection code generation method
JPWO2020166549A1 (en) Dynamic 2D code evaluation method, dynamic 2D code evaluation system, and dynamic 2D code evaluation program
JP4232689B2 (en) Information embedding method and information extracting method
JP2007233890A (en) Image processor and image processing program
US7969618B2 (en) Image forming apparatus, image forming system, computer readable recording medium, and image forming method
JP2007166344A (en) Image processing apparatus and image processing method
JP2017072958A (en) Image processing device, method and program for decoding information multiplexed on image

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20181001

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20190315

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20190402

A601 Written request for extension of time

Free format text: JAPANESE INTERMEDIATE CODE: A601

Effective date: 20190603

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20190730

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20191203

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20200106

R150 Certificate of patent or registration of utility model

Ref document number: 6742568

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250