JP2013041496A - Color two-dimensional barcode generation apparatus, color two-dimensional barcode reading device, method for generating color two-dimensional barcode, method for reading color two-dimensional barcode, and computer program - Google Patents

Color two-dimensional barcode generation apparatus, color two-dimensional barcode reading device, method for generating color two-dimensional barcode, method for reading color two-dimensional barcode, and computer program Download PDF

Info

Publication number
JP2013041496A
JP2013041496A JP2011178874A JP2011178874A JP2013041496A JP 2013041496 A JP2013041496 A JP 2013041496A JP 2011178874 A JP2011178874 A JP 2011178874A JP 2011178874 A JP2011178874 A JP 2011178874A JP 2013041496 A JP2013041496 A JP 2013041496A
Authority
JP
Japan
Prior art keywords
color
dimensional barcode
cell
dimensional
cells
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.)
Withdrawn
Application number
JP2011178874A
Other languages
Japanese (ja)
Inventor
Keita Yoshida
啓太 吉田
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.)
Konica Minolta Business Technologies Inc
Original Assignee
Konica Minolta Business Technologies 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 Konica Minolta Business Technologies Inc filed Critical Konica Minolta Business Technologies Inc
Priority to JP2011178874A priority Critical patent/JP2013041496A/en
Publication of JP2013041496A publication Critical patent/JP2013041496A/en
Withdrawn legal-status Critical Current

Links

Images

Abstract

PROBLEM TO BE SOLVED: To further surely detect a plurality of two-dimensional barcodes from a color two-dimensional barcode compared with the conventional one even when repeating the generation copy.SOLUTION: The color two-dimensional barcode generation apparatus acquires a first two-dimensional barcode 41 and a second two-dimensional barcode 42 that have chromatic cells with mutually different colors, as a plurality of two-dimensional barcodes; and generates a color two-dimensional barcode 43 by superimposing the first two-dimensional barcode 41 and the second two-dimensional barcode 42 with each other, with cells on a same position displaced by a fixed distance. Then, the color two-dimensional barcode generation apparatus outputs the color two-dimensional barcode 43.

Description

本発明は、カラー二次元バーコードの技術に関する。   The present invention relates to a color two-dimensional barcode technology.

従来、色の相違する2つの二次元バーコードを重ね合せて1つのカラー二次元バーコードに合成する技術が提案されている。この技術によると、2つの二次元バーコードそれぞれが表わす文字列を1つのカラー二次元バーコードに纏めて表わすことができる。読取装置は、このカラー二次元バーコードを読み取ると、各セルの色に基づいて元の2つの二次元バーコードを判別し、それぞれが表わす文字列を解析する(特許文献1)。   2. Description of the Related Art Conventionally, a technique has been proposed in which two two-dimensional barcodes having different colors are combined to form a single color two-dimensional barcode. According to this technique, character strings represented by two two-dimensional barcodes can be collectively represented as one color two-dimensional barcode. When the reading device reads the color two-dimensional barcode, the reader determines the original two-dimensional barcode based on the color of each cell, and analyzes the character string represented by the two-dimensional barcode (Patent Document 1).

また、モノクロ(単色)の二次元バーコードは、1つのセルにつき1ビットしか表わすことができない。しかし、カラー(複数色)の二次元バーコードは、1つのセルにつき複数ビットを表わすことができる。そこで、二次元バーコードをカラー化することによってモノクロの二次元バーコードよりも多くのデータを表わす方法が、提案されている(特許文献2)。   Further, a monochrome (single color) two-dimensional barcode can represent only one bit per cell. However, a color (multiple color) two-dimensional barcode can represent multiple bits per cell. In view of this, a method has been proposed in which two-dimensional barcodes are colorized to represent more data than monochrome two-dimensional barcodes (Patent Document 2).

そのほか、二次元バーコードのセルの形状を従来とは異なる形状にすることが提案されている(特許文献3)。また、カラーの一次元バーコードについても、提案されている(特許文献4)。   In addition, it has been proposed that the shape of the two-dimensional barcode cell is different from the conventional one (Patent Document 3). A color one-dimensional barcode has also been proposed (Patent Document 4).

特開2009−123179号公報JP 2009-123179 A 特開平9−212574号公報Japanese Patent Laid-Open No. 9-212574 特開2006−4378号公報JP 2006-4378 A 特開平8−96097号公報JP-A-8-96097

ところで、カラー二次元バーコードの印刷物をコピーし、その複写物をコピーし、…ということを繰り返すと、つまり、ジェネレーションコピーを繰り返すと、セルの色や階調の再現性が低下する。例えば、マゼンタの二次元バーコードおよびシアンの二次元バーコードを重ね合わせて生成したカラー二次元バーコードのジェネレーションコピーを繰り返すと、シアンが、両色の重なった部分のブルーに近づき、区別が付かなくなる。   By the way, if the printed matter of the color two-dimensional barcode is copied, the copied material is copied, and so on, that is, if the generation copy is repeated, the reproducibility of the cell color and gradation is lowered. For example, if you repeat the generation copy of a color two-dimensional barcode generated by superimposing a magenta two-dimensional barcode and a cyan two-dimensional barcode, cyan will approach the blue of the overlapping part of both colors, and will be distinguished? Disappear.

すると、カラー二次元バーコードから色の相違する複数の二次元バーコードを検出することができなくなる。   Then, it becomes impossible to detect a plurality of two-dimensional barcodes having different colors from the color two-dimensional barcode.

本願発明は、このような問題点に鑑み、ジェネレーションコピーを繰り返した場合であってもカラー二次元バーコードから複数の二次元バーコードを従来よりも確実に検出できるようにすることを、目的とする。   In view of such a problem, the present invention has an object to make it possible to more reliably detect a plurality of two-dimensional barcodes from a color two-dimensional barcode even when generation copy is repeated. To do.

本発明の一形態に係るカラー二次元バーコード生成装置は、複数の二次元バーコードとして、有色のセルの色が互いに異なる複数の二次元バーコードを取得する、二次元バーコード取得手段と、前記複数の二次元バーコード同士を、同じ位置のセル同士を一定の距離だけずらして重ね合せることによって、カラー二次元バーコードを生成する、カラー二次元バーコード生成手段と、前記カラー二次元バーコードを出力するカラー二次元バーコード出力手段と、を有する。   A color two-dimensional barcode generation apparatus according to an aspect of the present invention, a plurality of two-dimensional barcodes, a plurality of two-dimensional barcode acquisition means for acquiring a plurality of two-dimensional barcodes having different colors of colored cells; A color two-dimensional barcode generating means for generating a color two-dimensional barcode by superimposing the plurality of two-dimensional barcodes by shifting cells at the same position by a certain distance, and the color two-dimensional barcode Color two-dimensional bar code output means for outputting a code.

好ましくは、前記カラー二次元バーコード生成手段は、位置検出パターンまたはアライメントパターンを構成するセルについてはずらすことなく前記複数の二次元バーコード同士を重ね合せることによって、前記カラー二次元バーコードを生成する。さらに、好ましくは、前記カラー二次元バーコード生成手段は、前記位置検出パターンまたはアライメントパターンを構成するセルの色として黒を用いて前記カラー二次元バーコードを生成する。   Preferably, the color two-dimensional barcode generation unit generates the color two-dimensional barcode by overlapping the plurality of two-dimensional barcodes without shifting the cells constituting the position detection pattern or the alignment pattern. To do. Further preferably, the color two-dimensional barcode generation means generates the color two-dimensional barcode using black as the color of the cells constituting the position detection pattern or alignment pattern.

本発明の一形態に係るカラー二次元バーコード読取装置は、有色のセルの色が互いに異なる複数の二次元バーコード同士を同じ位置のセル同士を一定の距離だけずらして重ね合せることによって生成されたカラー二次元バーコードを取得するカラー二次元バーコード取得手段と、前記カラー二次元バーコードの中の、前記一定の距離だけずれて重なり合う複数のセルの区域ごとに、当該区域にある有色の画素からなる有色画素群の形状を検出する、形状検出手段と、前記区域から検出された前記形状が1つのセルの形状と同じである場合は、当該区域の前記有色画素群の色を検出し、当該有色画素群の色が当該検出した色であると判別し、当該形状が複数のセルをずらして重ね合せた形状と同じである場合は、当該区域の前記有色画素群の中の1つのセルに相当する部分であるセル部分ごとに真上、真下、真左、または真右に位置する他のセルの色を検出し、当該セル部分のうち他のセル部分と重なり合わない部分の色が当該検出した色であると判別し、他のセル部分と重なり合う部分の色が当該セル部分および当該他のセル部分それぞれについてそれぞれ検出した色の合成色であると判別する、色判別手段と、前記色判別手段によって判別された、前記カラー二次元バーコードの各画素の色に基づいて、前記複数の二次元バーコードのそれぞれを特定する、二次元バーコード特定手段と、を有する。   A color two-dimensional barcode reader according to an aspect of the present invention is generated by superimposing a plurality of two-dimensional barcodes having different colors of colored cells by shifting cells at the same position by a certain distance. A color two-dimensional barcode acquisition means for acquiring a color two-dimensional barcode; and a plurality of cells in the color two-dimensional barcode that are shifted by a certain distance and overlap each other. A shape detecting means for detecting a shape of a colored pixel group composed of pixels; and when the shape detected from the area is the same as a shape of one cell, the color of the colored pixel group in the area is detected. If it is determined that the color of the colored pixel group is the detected color and the shape is the same as the shape obtained by shifting and overlapping a plurality of cells, For each cell portion that is a portion corresponding to one cell, the color of another cell located right above, right under, right left, or right is detected, and the portion of the cell portion that does not overlap with another cell portion Color discriminating means for discriminating that the color of the cell is the detected color and that the color of the portion overlapping with the other cell portion is a composite color of the detected color for each of the cell portion and the other cell portion And two-dimensional barcode specifying means for specifying each of the plurality of two-dimensional barcodes based on the color of each pixel of the color two-dimensional barcode determined by the color determination means.

本発明によると、ジェネレーションコピーを繰り返した場合であってもカラー二次元バーコードから複数の二次元バーコードを従来よりも確実に検出することができる。   According to the present invention, even when generation copy is repeated, a plurality of two-dimensional barcodes can be detected from a color two-dimensional barcode more reliably than before.

画像形成装置を含むネットワークシステムの全体的な構成の例を示す図である。1 is a diagram illustrating an example of an overall configuration of a network system including an image forming apparatus. 画像形成装置のハードウェア構成の例を示す図である。2 is a diagram illustrating an example of a hardware configuration of an image forming apparatus. FIG. 画像形成装置のスキャンユニットおよび印刷ユニットなどの構成の例を示す図である。FIG. 2 is a diagram illustrating an example of the configuration of a scan unit and a printing unit of an image forming apparatus. 画像処理回路の構成の例を示す図である。It is a figure which shows the example of a structure of an image processing circuit. カラー二次元バーコード提供部の構成の例を示す図である。It is a figure which shows the example of a structure of a color two-dimensional barcode provision part. 2つのセルの重ね合せの例を示す図である。It is a figure which shows the example of superposition of two cells. カラー二次元バーコードの生成の例を示す図である。It is a figure which shows the example of a production | generation of a color two-dimensional barcode. カラー二次元バーコード解析部の構成の例を示す図である。It is a figure which shows the example of a structure of a color two-dimensional barcode analysis part. 第一の二次元バーコードおよび第二の二次元バーコードの検出の例を示す図である。It is a figure which shows the example of a detection of a 1st two-dimensional barcode and a 2nd two-dimensional barcode. 有色のセルの変色の例を示す図である。It is a figure which shows the example of the discoloration of a colored cell. ジェネレーションコピーを繰り返したカラー二次元バーコードの例を示す図である。It is a figure which shows the example of the color two-dimensional barcode which repeated the generation copy. 調査対象区域、第一の部分、第二の部分、および第三の部分の配置の例を示す図である。It is a figure which shows the example of arrangement | positioning of a survey area, a 1st part, a 2nd part, and a 3rd part. 調査対象区域の第一の形態ないし第三の形態の例を示す図である。It is a figure which shows the example of the 1st form of the investigation object area thru | or a 3rd form. 有色のセルの検索の例を示す図である。It is a figure which shows the example of a search of a colored cell. カラー二次元バーコードの生成方法の変形例を示す図である。It is a figure which shows the modification of the production | generation method of a color two-dimensional barcode. 第一の二次元バーコードおよび第二の二次元バーコードの検出方法の変形例を示す図である。It is a figure which shows the modification of the detection method of a 1st two-dimensional barcode and a 2nd two-dimensional barcode. カラー二次元バーコードを生成する処理の流れの例を示す図である。It is a figure which shows the example of the flow of a process which produces | generates a color two-dimensional barcode. 第一の二次元バーコードおよび第二の二次元バーコードを検出する処理の流れの例を説明するフローチャートである。It is a flowchart explaining the example of the flow of a process which detects a 1st two-dimensional barcode and a 2nd two-dimensional barcode.

図1は、画像形成装置1を含むネットワークシステムの全体的な構成の例を示す図である。図2は、画像形成装置1のハードウェア構成の例を示す図である。図3は、画像形成装置1のスキャンユニット10eおよび印刷ユニット10fなどの構成の例を示す図である。   FIG. 1 is a diagram illustrating an example of the overall configuration of a network system including an image forming apparatus 1. FIG. 2 is a diagram illustrating an example of a hardware configuration of the image forming apparatus 1. FIG. 3 is a diagram illustrating an example of the configuration of the scan unit 10e and the print unit 10f of the image forming apparatus 1.

図1において、画像形成装置1は、一般にMFP(Multi Function Peripherals)または複合機などと呼ばれる装置であって、コピー、PCプリント(ネットワークプリンティング)、ファックス、スキャナー、およびドキュメントサーバーなどの機能を集約した装置である。   In FIG. 1, an image forming apparatus 1 is an apparatus generally called an MFP (Multi Function Peripherals) or a multifunction machine, and has functions such as copying, PC printing (network printing), fax, scanner, and document server. Device.

画像形成装置1は、通信回線NWを介して端末装置2などの装置と通信を行うことができる。   The image forming apparatus 1 can communicate with a device such as the terminal device 2 via the communication line NW.

画像形成装置1は、図2および図3に示すように、CPU(Central Processing Unit)10a、RAM(Random Access Memory)10b、ROM(Read Only Memory)10c、大容量記憶装置10d、スキャンユニット10e、印刷ユニット10f、ネットワークインタフェース10g、操作パネル10h、ファクシミリユニット10i、画像処理回路10j、および自動原稿送り装置10kのほか、制御用の回路などによって構成される。   2 and 3, the image forming apparatus 1 includes a CPU (Central Processing Unit) 10a, a RAM (Random Access Memory) 10b, a ROM (Read Only Memory) 10c, a mass storage device 10d, a scan unit 10e, In addition to the printing unit 10f, the network interface 10g, the operation panel 10h, the facsimile unit 10i, the image processing circuit 10j, and the automatic document feeder 10k, it is configured by a control circuit and the like.

CPU10aは、画像形成装置1の全体的な制御などを行う制御部である。ROM10cまたは大容量記憶装置10dには、上述の各機能を実現するためのオペレーティングシステムおよびミドルウェアなどのソフトウェアがインストールされている。ソフトウェアを構成するソフトウェアモジュールは、必要に応じてRAM10bにロードされ、CPU10aによって実行される。例えば、ROM10cまたは大容量記憶装置10dには、スキャンユニット10eによって得られた画像データにシェーディング補正などの各種のデータ処理を施すソフトウェアや、用紙の供給と同期して主走査ラインごとに画像データを読み出してレーザダイオードを駆動するソフトウェアなどがインストールされている。大容量記憶装置10dとして、HDD(Hard Disk Drive)またはSSD(Solid State Drive)などが用いられる。   The CPU 10 a is a control unit that performs overall control of the image forming apparatus 1. Software such as an operating system and middleware for realizing the above-described functions is installed in the ROM 10c or the mass storage device 10d. Software modules constituting the software are loaded into the RAM 10b as necessary and executed by the CPU 10a. For example, the ROM 10c or the large-capacity storage device 10d stores image data for each main scanning line in synchronization with software for performing various data processing such as shading correction on the image data obtained by the scan unit 10e, or paper supply. Software that reads and drives the laser diode is installed. An HDD (Hard Disk Drive), an SSD (Solid State Drive), or the like is used as the mass storage device 10d.

ネットワークインタフェース10gは、通信回線NWを介して端末装置2などの装置を相手にTCP/IP(Transmission Control Protocol/Internet Protocol)などのプロトコルで通信を行う。ネットワークインタフェース10gとして、例えばNIC(Network Interface Card)が用いられる。   The network interface 10g communicates with a device such as the terminal device 2 via a communication line NW using a protocol such as TCP / IP (Transmission Control Protocol / Internet Protocol). For example, a network interface card (NIC) is used as the network interface 10g.

操作パネル10hは、キー入力部10h1、タッチパネルディスプレイ10h2、および副電源スイッチ10h3などによって構成される。   The operation panel 10h includes a key input unit 10h1, a touch panel display 10h2, a sub power switch 10h3, and the like.

キー入力部10h1は、いわゆるハードウェアキーであって、テンキー、スタートキー、ストップキー、およびファンクションキーなどによって構成される。   The key input unit 10h1 is a so-called hardware key, and includes a numeric keypad, a start key, a stop key, a function key, and the like.

タッチパネルディスプレイ10hは、ユーザーに対してメッセージまたは指示を与えるための画面、ユーザーが処理の指令および条件を入力するための画面、およびCPU10aの処理の結果を示す画面などを表示する。また、ユーザーが指で触れた位置を検知し、検知結果を示す信号をCPU10aに送信する。   The touch panel display 10h displays a screen for giving a message or an instruction to the user, a screen for the user to input processing commands and conditions, a screen showing the processing result of the CPU 10a, and the like. Moreover, the position which the user touched with the finger | toe is detected and the signal which shows a detection result is transmitted to CPU10a.

タッチパネルディスプレイ10h2には、ユーザーに対してメッセージまたは指示を与えるための画面、ユーザーが所望する処理の種類および処理条件を入力するための画面、およびCPU10aなどで実行された処理の結果を示す画面などが表示される。ユーザーは、これらの画面を見ながらキー入力部10h1またはタッチパネルディスプレイ10h2を操作することによって、画像形成装置1に対して情報および指令を入力することができる。   The touch panel display 10h2 includes a screen for giving a message or an instruction to the user, a screen for inputting a processing type and processing conditions desired by the user, a screen showing a result of processing executed by the CPU 10a, etc. Is displayed. The user can input information and commands to the image forming apparatus 1 by operating the key input unit 10h1 or the touch panel display 10h2 while viewing these screens.

副電源スイッチ10h3は、スリープモードなどの省電力モードへ移行するように画像形成装置1に対してユーザーが指示するためのスイッチである。   The sub power switch 10h3 is a switch for the user to instruct the image forming apparatus 1 to shift to a power saving mode such as a sleep mode.

画像処理回路10jは、2つの二次元バーコードを1つのカラー二次元バーコードに纏める処理と、このカラー二次元バーコードから2つの二次元バーコードを抽出する処理とを、行う。これらの処理の詳細については、後に順次、説明する。画像処理回路10jは、ASIC(Application Specific Integrated Circuit)またはFPGA(Field Programmable Gate Array)などによって構成することができる。   The image processing circuit 10j performs processing for collecting two two-dimensional barcodes into one color two-dimensional barcode and processing for extracting two two-dimensional barcodes from the color two-dimensional barcode. Details of these processes will be sequentially described later. The image processing circuit 10j can be configured by an application specific integrated circuit (ASIC) or a field programmable gate array (FPGA).

自動原稿送り装置10kは、ADF(Auto Document Feeder)であって、原稿給紙トレイにセットされた原稿を1枚ずつスキャンユニット10eのプラテンガラス上の所定の位置へ搬送し、スキャンユニット10eによる原稿の読取り後に原稿排紙トレイへ原稿を排出する。   The automatic document feeder 10k is an ADF (Auto Document Feeder), and conveys documents set on the document feed tray one by one to a predetermined position on the platen glass of the scan unit 10e, and the document by the scan unit 10e. Is read out to the document discharge tray.

また、自動原稿送り装置10kは、原稿セットセンサー10k1を備えている。原稿セットセンサー10k1は、原稿がセットされたことを公知のタクトスイッチによって検知し、CPU10aへ通知する。   The automatic document feeder 10k includes a document set sensor 10k1. The document set sensor 10k1 detects that a document has been set by a known tact switch and notifies the CPU 10a.

スキャンユニット10eは、プラテンガラスの上にセットされた原稿(用紙)に記されている写真、文字、絵、図表などからなる画像を読み取って画像データを生成する。特に、本実施形態では、上述のカラー二次元バーコードを読み取るために用いられる。   The scan unit 10e reads an image composed of a photograph, a character, a picture, a chart, and the like written on a document (paper) set on a platen glass and generates image data. In particular, in this embodiment, it is used for reading the above-described color two-dimensional barcode.

また、スキャンユニット10eは、装置持ち上げセンサー10e1を備えている。装置持ち上げセンサー10e1は、自動原稿送り装置10kが持ち上げられたことを公知の磁気センサーによって検知し、CPU10aへ通知する。   Further, the scan unit 10e includes an apparatus lifting sensor 10e1. The apparatus lifting sensor 10e1 detects that the automatic document feeder 10k has been lifted by a known magnetic sensor and notifies the CPU 10a.

ファクシミリユニット10iは、公衆電話回線を介してファックス端末との間でG3などのプロトコルで画像データをやり取りするための装置である。   The facsimile unit 10i is a device for exchanging image data with a fax terminal using a protocol such as G3 via a public telephone line.

印刷ユニット10fは、スキャンユニット10eによって読み取られた画像のほか、端末装置2またはファックス端末などから受信した画像データに示される画像を用紙に印刷する。また、画像処理回路10jによって生成されたカラー二次元バーコードを用紙に印刷する。   In addition to the image read by the scan unit 10e, the printing unit 10f prints an image indicated by image data received from the terminal device 2 or a fax terminal on a sheet. The color two-dimensional barcode generated by the image processing circuit 10j is printed on a sheet.

印刷ユニット10fは、画像形成部11、自動両面ユニット12、給紙部13、および給紙キャビネット14などによって構成される。   The printing unit 10f includes an image forming unit 11, an automatic duplex unit 12, a paper feeding unit 13, a paper feeding cabinet 14, and the like.

画像形成部11は、タンデム方式および電子写真方式のカラーの印刷エンジンであって、感光体ドラム31a、31b、31c、および31d、露光走査ユニット32a、32b、32c、および32d、転写ベルト33、および前扉センサー34などによって構成される。   The image forming unit 11 is a tandem and electrophotographic color printing engine, and includes photosensitive drums 31a, 31b, 31c, and 31d, exposure scanning units 32a, 32b, 32c, and 32d, a transfer belt 33, and The front door sensor 34 is configured.

感光体ドラム31a、31b、31c、および31dは、それぞれ、イエロー、マゼンタ、シアン、および黒に対応する感光体ドラムである。同様に、露光走査ユニット32a、32b、32c、および32dは、それぞれ、イエロー、マゼンタ、シアン、および黒に対応する露光走査ユニットである。   The photosensitive drums 31a, 31b, 31c, and 31d are photosensitive drums corresponding to yellow, magenta, cyan, and black, respectively. Similarly, the exposure scanning units 32a, 32b, 32c, and 32d are exposure scanning units corresponding to yellow, magenta, cyan, and black, respectively.

露光走査ユニット32a、32b、32c、および32dは、それぞれ、CPU10aからの信号に基づいて印刷対象の画像に応じて露光することによって、感光体31a、31b、31c、および31dに静電潜像を作像する。そして、各色のトナーが付着する。   The exposure scanning units 32a, 32b, 32c, and 32d respectively expose the electrostatic latent images on the photoreceptors 31a, 31b, 31c, and 31d by performing exposure according to the image to be printed based on the signal from the CPU 10a. Create an image. Then, toner of each color adheres.

転写ベルト33には、感光体31a、31b、31c、31dのそれぞれに形成された各色のトナー像が重ねられる。これにより、フルカラーのトナー像が転写ベルト33に形成される。   On the transfer belt 33, toner images of respective colors formed on the photoreceptors 31a, 31b, 31c, and 31d are overlaid. As a result, a full-color toner image is formed on the transfer belt 33.

前扉センサー34は、公知のタクトスイッチによって、前扉カバーが開放されたことを検知し、CPU10aへ通知する。   The front door sensor 34 detects that the front door cover has been opened by a known tact switch, and notifies the CPU 10a.

給紙部13は、画像形成装置1に標準に装備されている、画像形成部11へ用紙を供給するためのユニットである。給紙部13は、1つまたは複数の給紙カセット13aおよびピックアップローラー13bなどによって構成される。給紙カセット13aには、用紙が収納される。ピックアップローラー13bは、給紙カセット13aから用紙を1枚ずつピックアップして画像形成部11へ搬出する。   The paper supply unit 13 is a unit that is provided in the image forming apparatus 1 as a standard and supplies paper to the image forming unit 11. The paper feed unit 13 includes one or a plurality of paper feed cassettes 13a and pickup rollers 13b. Sheets are stored in the sheet cassette 13a. The pickup roller 13 b picks up the sheets one by one from the paper feed cassette 13 a and carries them out to the image forming unit 11.

給紙キャビネット14は、給紙部13と同様に画像形成部11へ用紙を供給するユニットであるが、画像形成装置1にオプションとして装備される。給紙キャビネット14の給紙カセット14aからピックアップローラー14bによって送り出された用紙は給紙部13を経由して画像形成部11へ供給される。   The paper feed cabinet 14 is a unit that supplies paper to the image forming unit 11 in the same manner as the paper feed unit 13, but is provided as an option in the image forming apparatus 1. The sheet fed from the sheet feeding cassette 14 a of the sheet feeding cabinet 14 by the pickup roller 14 b is supplied to the image forming unit 11 via the sheet feeding unit 13.

そして、転写ベルト33に形成されたトナー像が、給紙部13または給紙キャビネット14から搬出されてきた用紙に転写される。   Then, the toner image formed on the transfer belt 33 is transferred onto the paper carried out from the paper supply unit 13 or the paper supply cabinet 14.

自動両面ユニット12は、片面に画像が印刷された用紙の裏表を反転させて、通紙経路上で一旦スイッチバックさせ、再度、画像形成部11へ給紙する。これにより、両面印刷が可能になる。   The automatic duplex unit 12 reverses the front and back sides of the sheet on which the image is printed on one side, temporarily switches back on the sheet passing path, and feeds the image to the image forming unit 11 again. Thereby, double-sided printing becomes possible.

図1に戻って、端末装置2は、画像形成装置1による印刷などのサービスを受けるためのクライアントである。端末装置2には、画像形成装置1を制御するためのドライバーなどがインストールされている。端末装置2として、パーソナルコンピューター、スマートフォン、またはPDA(Personal Digital Assistant)などが用いられる。   Returning to FIG. 1, the terminal device 2 is a client for receiving services such as printing by the image forming apparatus 1. A driver or the like for controlling the image forming apparatus 1 is installed in the terminal device 2. As the terminal device 2, a personal computer, a smartphone, a PDA (Personal Digital Assistant), or the like is used.

図4は、画像処理回路10jの構成の例を示す図である。図5は、カラー二次元バーコード提供部5の構成の例を示す図である。図6は、2つのセルの重ね合せの例を示す図である。図7は、カラー二次元バーコード43の生成の例を示す図である。図8は、カラー二次元バーコード解析部6の構成の例を示す図である。図9は、第一の二次元バーコード41および第二の二次元バーコード42の検出の例を示す図である。図10は、有色のセルの変色の例を示す図である。図11は、ジェネレーションコピーを繰り返したカラー二次元バーコード43の例を示す図である。図12は、調査対象区域BR、第一の部分BRa、第二の部分BRb、および第三の部分BRcの配置の例を示す図である。図13は、調査対象区域BRの第一の形態ないし第三の形態の例を示す図である。図14は、有色のセルの検索の例を示す図である。   FIG. 4 is a diagram illustrating an example of the configuration of the image processing circuit 10j. FIG. 5 is a diagram illustrating an example of the configuration of the color two-dimensional barcode providing unit 5. FIG. 6 is a diagram showing an example of superposition of two cells. FIG. 7 is a diagram illustrating an example of generation of the color two-dimensional barcode 43. FIG. 8 is a diagram illustrating an example of the configuration of the color two-dimensional barcode analysis unit 6. FIG. 9 is a diagram illustrating an example of detection of the first two-dimensional barcode 41 and the second two-dimensional barcode 42. FIG. 10 is a diagram illustrating an example of color change of a colored cell. FIG. 11 is a diagram showing an example of the color two-dimensional barcode 43 in which generation copy is repeated. FIG. 12 is a diagram illustrating an example of the arrangement of the survey target area BR, the first part BRa, the second part BRb, and the third part BRc. FIG. 13 is a diagram illustrating an example of the first to third forms of the survey target area BR. FIG. 14 is a diagram illustrating an example of searching for a colored cell.

次に、画像処理回路10jによる二次元バーコードの処理を、図4などを参照しながら説明する。   Next, the processing of the two-dimensional barcode by the image processing circuit 10j will be described with reference to FIG.

画像処理回路10jは、図4に示すように、カラー二次元バーコード提供部5およびカラー二次元バーコード解析部6によって構成される。   The image processing circuit 10j includes a color two-dimensional barcode providing unit 5 and a color two-dimensional barcode analyzing unit 6, as shown in FIG.

カラー二次元バーコード提供部5は、図5に示すように、二次元バーコード生成部501、色変換部502、セル重なり比率決定部503、カラー二次元バーコード生成部504、およびカラー二次元バーコード印刷部505などによって構成される。これらの構成により、2つの二次元バーコードを1つのカラー二次元バーコードに纏めてユーザーへ提供する。   As shown in FIG. 5, the color two-dimensional barcode providing unit 5 includes a two-dimensional barcode generation unit 501, a color conversion unit 502, a cell overlap ratio determination unit 503, a color two-dimensional barcode generation unit 504, and a color two-dimensional The barcode printing unit 505 is configured. With these configurations, two two-dimensional barcodes are combined into one color two-dimensional barcode and provided to the user.

二次元バーコード生成部501は、相違する2つの二次元バーコードを次のように生成する。   The two-dimensional barcode generation unit 501 generates two different two-dimensional barcodes as follows.

二次元バーコード生成部501は、相違する2つの文字列CL1、CL2を入力するように、メッセージをタッチパネルディスプレイ10h2に表示するなどして、ユーザーに対して要求する。ユーザーは、カラー二次元バーコードによって表わしたい相違する2つの文字列CL1、CL2を、操作パネル10hを操作するなどして入力する。   The two-dimensional barcode generation unit 501 requests the user to display a message on the touch panel display 10h2 so as to input two different character strings CL1 and CL2. The user inputs two different character strings CL1 and CL2 that are desired to be represented by the color two-dimensional barcode by operating the operation panel 10h.

すると、二次元バーコード生成部501は、入力された文字列CL1、CL2をそれぞれモノクロ(単色)の二次元バーコードに変換する。これにより、2つのモノクロの二次元バーコードが生成される。以下、生成された2つの二次元バーコードをそれぞれ「第一の二次元バーコード41」および「第二の二次元バーコード42」と区別して記載することがある。   Then, the two-dimensional barcode generation unit 501 converts the input character strings CL1 and CL2 into monochrome (single color) two-dimensional barcodes. Thereby, two monochrome two-dimensional barcodes are generated. Hereinafter, the two generated two-dimensional barcodes may be described separately from the “first two-dimensional barcode 41” and the “second two-dimensional barcode 42”, respectively.

以下、第一の二次元バーコード41および第二の二次元バーコード42としてQR(Quick Response)コードが用いられる場合を例に、説明する。QRコードは、登録商標である。   Hereinafter, a case where QR (Quick Response) codes are used as the first two-dimensional barcode 41 and the second two-dimensional barcode 42 will be described as an example. QR code is a registered trademark.

第一の二次元バーコード41および第二の二次元バーコード42それぞれの有色のセルは、黒色のセルである。第一の二次元バーコード41および第二の二次元バーコード42それぞれの無色のセルは、白色のセルである。   The colored cells of each of the first two-dimensional barcode 41 and the second two-dimensional barcode 42 are black cells. The colorless cells of each of the first two-dimensional barcode 41 and the second two-dimensional barcode 42 are white cells.

また、第一の二次元バーコード41および第二の二次元バーコード42は、同数のセルからなる。以下、第一の二次元バーコード41および第二の二次元バーコード42ともにM×N個のセルからなる場合を例に、説明する。第一の二次元バーコード41のセルのサイズも第二の二次元バーコード42のセルのサイズも、同じである。   The first two-dimensional barcode 41 and the second two-dimensional barcode 42 are composed of the same number of cells. Hereinafter, a case where both the first two-dimensional barcode 41 and the second two-dimensional barcode 42 are composed of M × N cells will be described as an example. The cell size of the first two-dimensional barcode 41 and the cell size of the second two-dimensional barcode 42 are the same.

なお、一般的に、セルの形状は正方形である。セルの個数は二次元バーコードで表現するデータのサイズおよび冗長性によって決まる。   In general, the shape of the cell is a square. The number of cells is determined by the size and redundancy of data represented by a two-dimensional barcode.

色変換部502は、第一の二次元バーコード41および第二の二次元バーコード42それぞれの黒色のセルの色を、相違する色に変換する。以下、第一の二次元バーコード41のセルの色をマゼンタに変換し、第二の二次元バーコード42のセルの色をシアンに変換した場合を例に、説明する。なお。どの色に変換するのかは、予め決めておいてもよいし、ユーザーに指定させるようにしてもよい。ただし、互いに区別がはっきりする色に変換するのが望ましい。   The color conversion unit 502 converts the black cell colors of the first two-dimensional barcode 41 and the second two-dimensional barcode 42 to different colors. Hereinafter, a case where the cell color of the first two-dimensional barcode 41 is converted to magenta and the cell color of the second two-dimensional barcode 42 is converted to cyan will be described as an example. Note that. The color to be converted may be determined in advance or may be specified by the user. However, it is desirable to convert the colors into distinct colors.

ところで、「背景技術」の欄で説明した通り、従来は、セルの色が相違する2つの二次元バーコードを、同じ位置のセル同士がぴったり合うように重ね合わせることによって、カラー二次元バーコードを生成した。しかし、本実施形態では、次に説明する通り、セルを少しずらして重ね合わせる。   By the way, as described in the “Background Art” section, conventionally, two-dimensional barcodes having different cell colors are overlapped so that cells at the same position are closely aligned with each other. Was generated. However, in this embodiment, as described below, the cells are overlapped with a slight shift.

セル重なり比率決定部503は、セル重なり比率Rkを決定する。第一の二次元バーコード41と第二の二次元バーコード42とを重ね合わせる際の、同じ位置にあるセル同士のずれの比率である。例えば、図6に示すように、1つのセルの1辺の長さが長さLdであり、第一の二次元バーコード41のセルと第二の二次元バーコード42のセルとを距離Lbだけずらす(シフトさせる)のであれば、セル重なり比率Rkは、Lb/Ld、である。   The cell overlap ratio determination unit 503 determines the cell overlap ratio Rk. This is the ratio of deviation between cells at the same position when the first two-dimensional barcode 41 and the second two-dimensional barcode 42 are superimposed. For example, as shown in FIG. 6, the length of one side of one cell is the length Ld, and the cell of the first two-dimensional barcode 41 and the cell of the second two-dimensional barcode 42 are separated by a distance Lb. If it is shifted (shifted) only, the cell overlap ratio Rk is Lb / Ld.

ただし、距離Lbは、長さLd未満であり、かつ、スキャンユニット10eによる読取り可能な最小のドットの長さLs以上である。つまり、セル重なり比率Rkの最小値は、スキャンユニット10eの読取解像度によって決まる。例えば、600dpiのプリンタで印刷された4×4画素/1セルの二次元バーコードを、600dpiのスキャナーで読み込む場合は、1つのセルの1辺の長さの4分の1が、長さLsである。そして、最小のセル重なり比率Rkは、「1/4」である。   However, the distance Lb is less than the length Ld and is not less than the minimum dot length Ls that can be read by the scan unit 10e. That is, the minimum value of the cell overlap ratio Rk is determined by the reading resolution of the scan unit 10e. For example, when a 4 × 4 pixel / 1 cell two-dimensional barcode printed by a 600 dpi printer is read by a 600 dpi scanner, a quarter of the length of one side of one cell is the length Ls. It is. The minimum cell overlap ratio Rk is “1/4”.

なお、図6において、スラッシュとほぼ同じ向きのハッチ(つまり、右上から左下方向の斜線のハッチ)のセルは、第一の二次元バーコード41の有色のセルを示している。バックスラッシュとほぼ同じ向きのハッチ(つまり、左上から右下方向の斜線のハッチ)のセルは、第二の二次元バーコード42の有色のセルを示している。網線のハッチのセルは、第一の二次元バーコード41の有色のセルと第二の二次元バーコード42の有色のセルとが重なっている箇所を示している。図6、図7、図9、図10、図11、図13、図15、および図16においても、同様である。   In FIG. 6, the hatched cells in almost the same direction as the slash (that is, hatched hatches from the upper right to the lower left) indicate the colored cells of the first two-dimensional barcode 41. A hatched cell in almost the same direction as the backslash (that is, a hatched hatch from the upper left to the lower right) indicates a colored cell of the second two-dimensional barcode 42. The hatched cell of the mesh line indicates a portion where the colored cell of the first two-dimensional barcode 41 and the colored cell of the second two-dimensional barcode 42 overlap. The same applies to FIGS. 6, 7, 9, 10, 11, 13, 15, and 16.

セル重なり比率決定部503は、距離Lbが長さLs以上かつ長さLd未満になるようなセル重なり比率Rkを決定する。通常、長さLdの2分の1の長さは、スキャンユニット10eによって十分に読み取ることができる。そこで、セル重なり比率決定部503は、セル重なり比率Rkとして例えば「0.5」に決定する。または、ユーザーが指定した比率をセル重なり比率Rkに決定してもよい。以下、セル重なり比率Rkとして「0.5」が用いられる場合を例に説明する。   The cell overlap ratio determination unit 503 determines a cell overlap ratio Rk such that the distance Lb is equal to or greater than the length Ls and less than the length Ld. Usually, the length of half of the length Ld can be sufficiently read by the scan unit 10e. Therefore, the cell overlap ratio determination unit 503 determines, for example, “0.5” as the cell overlap ratio Rk. Alternatively, the ratio specified by the user may be determined as the cell overlap ratio Rk. Hereinafter, a case where “0.5” is used as the cell overlap ratio Rk will be described as an example.

カラー二次元バーコード生成部504は、第一の二次元バーコード41と第二の二次元バーコード42とを重ね合わせることによって、カラー二次元バーコード43を生成する。ただし、同じ位置にあるセル同士をぴったり合わせるのではなく、図6で説明した通り、少しずらして重ね合せる。   The color two-dimensional barcode generation unit 504 generates the color two-dimensional barcode 43 by superimposing the first two-dimensional barcode 41 and the second two-dimensional barcode 42. However, the cells at the same position are not closely aligned but can be overlapped with a slight shift as described in FIG.

本実施形態では、カラー二次元バーコード生成部504は、図7に示すように、第二の二次元バーコード42を長さLfだけ下および右へそれぞれシフトさせて重ね合わせる。長さLfは、セルの一辺の長さ(長さLd)とセル重なり比率Rkとの積である。   In the present embodiment, the color two-dimensional barcode generation unit 504 superimposes the second two-dimensional barcode 42 by shifting the second two-dimensional barcode 42 downward and to the right by the length Lf, as shown in FIG. The length Lf is the product of the length of one side of the cell (length Ld) and the cell overlap ratio Rk.

カラー二次元バーコード印刷部505は、カラー二次元バーコード43が用紙に印刷されるように、印刷ユニット10fを制御する。これにより、カラー二次元バーコード43の印刷物が得られる。   The color two-dimensional barcode printing unit 505 controls the printing unit 10f so that the color two-dimensional barcode 43 is printed on paper. Thereby, a printed matter of the color two-dimensional barcode 43 is obtained.

一方、図4のカラー二次元バーコード解析部6は、図8に示すように、カラー二次元バーコード取得部601、色分離処理部602、モノクロ二次元バーコード復元部603、テキスト化処理部604、テキスト出力処理部605、および色補正部606などによって構成される。   On the other hand, as shown in FIG. 8, the color two-dimensional barcode analysis unit 6 in FIG. 4 includes a color two-dimensional barcode acquisition unit 601, a color separation processing unit 602, a monochrome two-dimensional barcode restoration unit 603, and a text conversion processing unit. 604, a text output processing unit 605, a color correction unit 606, and the like.

カラー二次元バーコード取得部601は、印刷物に印刷されているカラー二次元バーコード43を次のように取得する。ユーザーは、印刷物を自動原稿送り装置10kの原稿給紙トレイにセットする。そして、スタートボタンを押すなどしてスキャンの指令を画像形成装置1に対して与える。   The color two-dimensional barcode acquisition unit 601 acquires the color two-dimensional barcode 43 printed on the printed material as follows. The user sets the printed material on the document feed tray of the automatic document feeder 10k. Then, a scan command is given to the image forming apparatus 1 by pressing a start button or the like.

すると、カラー二次元バーコード取得部601は、印刷物がスキャンユニット10eのプラテンガラスへ送られるように自動原稿送り装置10kを制御し、印刷物の原稿面がスキャンされるようにスキャンユニット10eを制御する。これにより、カラー二次元バーコード43が画像形成装置1に入力される。   Then, the color two-dimensional barcode acquisition unit 601 controls the automatic document feeder 10k so that the printed material is sent to the platen glass of the scan unit 10e, and controls the scan unit 10e so that the document surface of the printed material is scanned. . As a result, the color two-dimensional barcode 43 is input to the image forming apparatus 1.

色分離処理部602は、カラー二次元バーコード取得部601によってカラー二次元バーコード43が得られると、カラー二次元バーコード43を色ごとの画像に分離する。   When the color two-dimensional barcode 43 is obtained by the color two-dimensional barcode acquisition unit 601, the color separation processing unit 602 separates the color two-dimensional barcode 43 into images for each color.

上述の通り、カラー二次元バーコード43は、第一の二次元バーコード41および第二の二次元バーコード42を重ね合わせたものである。よって、マゼンタ、シアン、および両色の合成色であるブルーの3色が、カラー二次元バーコード43に含まれている。したがって、色分離処理部602によると、マゼンタのセルからなるマゼンタ画像4M、シアンのセルからなるシアン画像4C、およびブルーのセルからなるブルー画像4Bが得られる。   As described above, the color two-dimensional barcode 43 is obtained by superimposing the first two-dimensional barcode 41 and the second two-dimensional barcode 42. Therefore, the color two-dimensional barcode 43 includes three colors of magenta, cyan, and blue, which is a composite color of both colors. Therefore, according to the color separation processing unit 602, a magenta image 4M composed of magenta cells, a cyan image 4C composed of cyan cells, and a blue image 4B composed of blue cells are obtained.

モノクロ二次元バーコード復元部603は、色分離処理部602によって得られた各色の画像を用いて、図9のように、第一の二次元バーコード41および第二の二次元バーコード42を次のように復元する。マゼンタ画像4Mとブルー画像4Bとを重ね合わせ、色を1色に、例えば、マゼンタに統一することによって、第一の二次元バーコード41を復元する。同様に、シアン画像4Cとブルー画像4Bとを重ね合わせ、色を1色に、例えば、シアンに統一することによって、第二の二次元バーコード42を復元する。マゼンタまたはシアンの代わりに黒に統一してもよい。   The monochrome two-dimensional barcode restoration unit 603 uses the image of each color obtained by the color separation processing unit 602 to convert the first two-dimensional barcode 41 and the second two-dimensional barcode 42 as shown in FIG. Restore as follows: The first two-dimensional barcode 41 is restored by superimposing the magenta image 4M and the blue image 4B and unifying the color into one color, for example, magenta. Similarly, the second two-dimensional barcode 42 is restored by superimposing the cyan image 4C and the blue image 4B and unifying the color into one color, for example, cyan. You may unify to black instead of magenta or cyan.

テキスト化処理部604は、モノクロ二次元バーコード復元部603によって復元された第一の二次元バーコード41および第二の二次元バーコード42それぞれを解析することによって、第一の二次元バーコード41および第二の二次元バーコード42それぞれに示される文字列CL1、CL2を判別する。   The text conversion processing unit 604 analyzes each of the first two-dimensional barcode 41 and the second two-dimensional barcode 42 restored by the monochrome two-dimensional barcode restoration unit 603, thereby obtaining the first two-dimensional barcode. The character strings CL1 and CL2 shown in 41 and the second two-dimensional barcode 42 are discriminated.

テキスト出力処理部605は、テキスト化処理部604によって判別された2つの文字列つまり文字列CL1、CL2を、タッチパネルディスプレイ10h2に表示させるなどして、出力する。   The text output processing unit 605 outputs the two character strings discriminated by the text processing unit 604, that is, the character strings CL1 and CL2 by displaying them on the touch panel display 10h2.

ところで、一般的に印刷物をコピーし、さらにその複写物をコピーするなど、コピーを繰り返すと、つまり、ジェネレーションコピーを繰り返すと、画像の中の色が相違する隣り合う画素の階調差が小さくなっていく。   By the way, in general, if copying is repeated such as copying a printed material and then copying the copied material, that is, if generation copying is repeated, the gradation difference between adjacent pixels with different colors in the image is reduced. To go.

カラー二次元バーコード43の場合は、第一の二次元バーコード41の有色のセルと第二の二次元バーコード42の有色のセルとが重なった部分が変色しやすい。特に、図10に示すように、シアンの画素がブルーに変色しやすい。よって、カラー二次元バーコード43は、ジェネレーションコピーを繰り返すと、図11のように、一部の画素の色が変色してしまう。   In the case of the color two-dimensional barcode 43, the portion where the colored cell of the first two-dimensional barcode 41 and the colored cell of the second two-dimensional barcode 42 overlap easily changes color. In particular, as shown in FIG. 10, cyan pixels are likely to change to blue. Therefore, when the color two-dimensional barcode 43 repeats the generation copy, the color of some pixels changes as shown in FIG.

すると、色分離処理部602による分離の処理およびテキスト化処理部604によるテキスト化の処理が上手く行かないことがある。   Then, the separation processing by the color separation processing unit 602 and the text conversion processing by the text conversion processing unit 604 may not work well.

そこで、色補正部606は、色分離処理部602による分離の処理またはテキスト化処理部604によるテキスト化の処理が上手く行かない場合に、カラー二次元バーコード43を、文字列の解析が可能になるように補正する。   Therefore, the color correction unit 606 can analyze the character string of the color two-dimensional barcode 43 when the separation processing by the color separation processing unit 602 or the text conversion processing by the text conversion processing unit 604 does not work. Correct so that

色分離不能時解析処理部606は、形態検出部661、色判別部662、およびセル色置換部663などによって構成される。   The color separation impossible analysis processing unit 606 includes a form detection unit 661, a color determination unit 662, a cell color replacement unit 663, and the like.

形態検出部661は、カラー二次元バーコード43を、左上の頂点を基点に、上下の長さおよび左右の長さがともに長さLdの区域に区切る。さらに、それぞれの区域を、右下から右方向、右下方向、および下方向に(Ld×Rk)四方ずつ拡張する。本例では、セル重なり比率Rkは「0.5」なので、図12(A)に示すように、(Ld/2)四方ずつ拡張する。以下、拡張後の区域を「調査対象区域BR」と記載する。   The form detection unit 661 divides the color two-dimensional barcode 43 into areas whose upper and lower lengths and left and right lengths are both length Ld with the upper left vertex as a base point. Further, each area is expanded by four directions (Ld × Rk) from the lower right to the right, the lower right, and the lower. In this example, since the cell overlap ratio Rk is “0.5”, the cell overlap ratio Rk is expanded by four (Ld / 2) directions as shown in FIG. Hereinafter, the expanded area is referred to as “survey area BR”.

調査対象区域BRは、図12(B)に示すように、第一の部分BRa、第二の部分BRb、および第三の部分BRcからなる。第二の部分BRbは、注目区域のうちの拡張した部分である。第三の部分BRcは、注目区域の拡張前の区域と第三の部分BRcを含む最小の矩形の領域との重複部分である。第一の部分BRaは、注目区域のうちの第二の部分BRbおよび第三の部分BRcの両方を除いた部分である。   As shown in FIG. 12B, the survey target area BR includes a first portion BRa, a second portion BRb, and a third portion BRc. The second part BRb is an expanded part of the attention area. The third part BRc is an overlapping part of the area before expansion of the area of interest and the smallest rectangular area including the third part BRc. The first portion BRa is a portion excluding both the second portion BRb and the third portion BRc in the attention area.

そして、形態検出部661は、各調査対象区域BRから、図13に示す、有色のセルを含む3つの形態のうちの1つを検出する。   And the form detection part 661 detects one of the three forms containing a colored cell shown in FIG. 13 from each investigation object area BR.

1つ目の形態は、第一の二次元バーコード41の有色の1つのセルのみが配置された形態である。つまり、調査対象区域BRの左上に有色のセルが配置された形態である。以下、この形態を「第一の形態」と記載する。   The first form is a form in which only one colored cell of the first two-dimensional barcode 41 is arranged. That is, it is a form in which a colored cell is arranged at the upper left of the survey area BR. Hereinafter, this form is referred to as a “first form”.

2つ目の形態は、第二の二次元バーコード42の有色の1つのセルのみが配置された形態である。つまり、調査対象区域BRの右下に有色のセルが配置された形態である。以下、この形態を「第二の形態」と記載する。   The second form is a form in which only one colored cell of the second two-dimensional barcode 42 is arranged. That is, a colored cell is arranged at the lower right of the survey target area BR. Hereinafter, this form is referred to as a “second form”.

3つ目は、第一の二次元バーコード41の有色の1つのセルと第二の二次元バーコード42の有色の1つのセルとが重なった形態である。つまり、調査対象区域BRの形状がそのまま色付きで表れた形態である。以下、この形態を「第三の形態」と記載する。   The third is a form in which one colored cell of the first two-dimensional barcode 41 and one colored cell of the second two-dimensional barcode 42 overlap each other. That is, it is a form in which the shape of the survey target area BR appears as it is. Hereinafter, this form is referred to as a “third form”.

色判別部662は、各調査対象区域BRの中の各画素の色を判別する。第一の形態および第二の形態のうちのいずれかであれば、色が変化しにくい。よって、色判別部662は、第一の形態および第二の形態のうちのいずれかを示す調査対象区域BRからは、従来通り、各画素の色を検出し、検出した色を各画素の色であると判別する。この処理によると、第一の形態を示す調査対象区域BRの第一の部分BRaおよび第三の部分BRcからマゼンタが検出され、第二の部分BRbから白が検出され、それぞれの部分の色に決定する。また、第二の形態を示す調査対象区域BRの第二の部分BRbおよび第三の部分BRcからシアンされ、第一の部分BRaから白が検出され、それぞれの部分の色に決定する。   The color determination unit 662 determines the color of each pixel in each investigation target area BR. If it is either the first form or the second form, the color is unlikely to change. Therefore, the color determination unit 662 detects the color of each pixel from the investigation target area BR indicating either the first form or the second form, and detects the detected color as the color of each pixel. It is determined that According to this processing, magenta is detected from the first part BRa and the third part BRc of the survey target area BR showing the first form, white is detected from the second part BRb, and the color of each part is detected. decide. Further, cyan is detected from the second part BRb and the third part BRc of the survey target area BR showing the second form, and white is detected from the first part BRa, and the color of each part is determined.

第三の形態の調査対象区域BRからは、スキャンした印刷物がジェネレーションコピーの印刷物でなければ、マゼンタ、シアン、およびブルーの3色が検出されるはずである。しかし、ジェネレーションコピーを繰り返すと、上述の通り、これらの色をきちんと検出できないことがある。そこで、色判別部662は、この調査対象区域BRの色を次の方法で判別する。   If the scanned print is not a generation copy print, three colors of magenta, cyan, and blue should be detected from the survey area BR of the third form. However, if generation copying is repeated, as described above, these colors may not be detected properly. Therefore, the color determination unit 662 determines the color of the survey target area BR by the following method.

色判別部662は、図14(A)のように、この調査対象区域BRの第一の部分BRaの真上、真下、真左、および真右のいずれかから第一の形態の他の調査対象区域BRの中の有色のセルを検索する。そして、検索されたセルの色を、この第一の部分BRaの色であると判別する。なお、複数のセルが見つかった場合は、孤立しているセルの色、つまり、無色(白色)のセルに囲まれているセルの色を第一の部分BRaの色とするのが、望ましい。   As shown in FIG. 14 (A), the color discriminating unit 662 performs other investigations of the first form from any one of directly above, directly below, directly to the right, and to the right of the first portion BRa of the investigation target area BR. A colored cell in the target area BR is searched. Then, it is determined that the color of the searched cell is the color of the first portion BRa. When a plurality of cells are found, it is desirable that the color of the isolated cell, that is, the color of the cell surrounded by the colorless (white) cell, be the color of the first portion BRa.

同様に、色判別部662は、図14(b)のように、この調査対象区域BRの第二の部分BRbの真上、真下、真左、および真右のいずれかから第二の形態の他の調査対象区域BRの中の有色のセルを検索する。そして、検索されたセルの色を、この第二の部分BRbの色であると判別する。さらに、第三の部分BRcの色を、第一の部分BRaおよび第二の部分BRbそれぞれから検出した色の合成色であると判別する。   Similarly, as shown in FIG. 14 (b), the color determination unit 662 has the second form from any one of directly above, directly below, directly to the left, and directly to the right of the second portion BRb of the survey target area BR. A colored cell in another survey area BR is searched. Then, the color of the searched cell is determined to be the color of the second portion BRb. Further, it is determined that the color of the third part BRc is a composite color of the colors detected from the first part BRa and the second part BRb.

セル色置換部663は、各調査対象区域BRの各画素の色を、色判別部662によって判別された色に置き換えることによって、カラー二次元バーコード43を補正する。   The cell color replacement unit 663 corrects the color two-dimensional barcode 43 by replacing the color of each pixel in each investigation target area BR with the color determined by the color determination unit 662.

色補正部606の各部による以上の処理によって、カラー二次元バーコード43が補正される。   The color two-dimensional barcode 43 is corrected by the above processing by each unit of the color correction unit 606.

その後、色分離処理部602およびモノクロ二次元バーコード復元部603は、色補正部606によって補正されたカラー二次元バーコード43に対して、図9などを用いて説明した処理を施すことによって、第一の二次元バーコード41および第二の二次元バーコード42を復元する。そして、テキスト化処理部604は、第一の二次元バーコード41および第二の二次元バーコード42を解析することによって文字列CL1およびCL2を取得し、テキスト出力処理部605は、文字列CL1およびCL2を出力する。   Thereafter, the color separation processing unit 602 and the monochrome two-dimensional barcode restoration unit 603 perform the processing described with reference to FIG. 9 on the color two-dimensional barcode 43 corrected by the color correction unit 606. The first two-dimensional barcode 41 and the second two-dimensional barcode 42 are restored. Then, the text processing unit 604 acquires the character strings CL1 and CL2 by analyzing the first two-dimensional barcode 41 and the second two-dimensional barcode 42, and the text output processing unit 605 displays the character string CL1. And CL2 are output.

本実施形態によると、第一の二次元バーコード41および第二の二次元バーコード42を、セル同士が完全に重なり合わないように少しずらして、重ね合わせることによって、カラー二次元バーコード43を生成した。よって、カラー二次元バーコード43の中の一部の有色のセルの再現性が低下しても、他の有色のセルに基づいて当該一部の有色のセルの色を判別し、第一の二次元バーコード41および第二の二次元バーコード42に分離することができる。   According to the present embodiment, the first two-dimensional barcode 41 and the second two-dimensional barcode 42 are slightly shifted so that the cells do not completely overlap each other, and are overlapped, so that the color two-dimensional barcode 43 Was generated. Therefore, even if the reproducibility of some colored cells in the color two-dimensional barcode 43 is lowered, the colors of the some colored cells are determined based on other colored cells, and the first The two-dimensional barcode 41 and the second two-dimensional barcode 42 can be separated.

上述の実施形態では、第一の二次元バーコード41の有色のセルの色としてマゼンタを用い、第二の二次元バーコード42の有色のセルの色としてシアンを用いたが、別の色を用いてもよい。例えば、イエローとシアンとを用いてもよい。   In the above embodiment, magenta is used as the color of the colored cell of the first two-dimensional barcode 41, and cyan is used as the color of the colored cell of the second two-dimensional barcode 42. It may be used. For example, yellow and cyan may be used.

上述の実施形態では、第一の二次元バーコード41に対して第二の二次元バーコード42を右下方向へセルの2分の1個分シフトさせてカラー二次元バーコード43を生成したが、他の方向へシフトさせて生成してもよい。   In the above-described embodiment, the color two-dimensional barcode 43 is generated by shifting the second two-dimensional barcode 42 by one half of the cell in the lower right direction with respect to the first two-dimensional barcode 41. However, it may be generated by shifting in another direction.

図15は、カラー二次元バーコード43の生成方法の変形例を示す図である。図16は、第一の二次元バーコード41および第二の二次元バーコード42の検出方法の変形例を示す図である。   FIG. 15 is a diagram illustrating a modified example of the method for generating the color two-dimensional barcode 43. FIG. 16 is a diagram showing a modification of the method for detecting the first two-dimensional barcode 41 and the second two-dimensional barcode 42.

上述の実施形態では、第二の二次元バーコード42の全体をシフトさせてカラー二次元バーコード43を生成したが、3つの角にある位置検出パターン(いわゆる、大きい目玉)だけはシフトさせずにカラー二次元バーコード43を生成してもよい。つまり、第一の二次元バーコード41の3つの位置検出パターンと第二の二次元バーコード42の3つの位置検出パターンとを完全に一致させ、位置検出パターン以外のセルをシフトさせて、カラー二次元バーコード43を生成してもよい。この場合は、図5に示すカラー二次元バーコード提供部5の各部および図8に示すカラー二次元バーコード解析部6の各部は、次のように処理を行う。   In the above-described embodiment, the color two-dimensional barcode 43 is generated by shifting the entire second two-dimensional barcode 42, but only the position detection patterns (so-called large eyeballs) at the three corners are not shifted. Alternatively, the color two-dimensional barcode 43 may be generated. That is, the three position detection patterns of the first two-dimensional barcode 41 and the three position detection patterns of the second two-dimensional barcode 42 are completely matched, cells other than the position detection pattern are shifted, and the color A two-dimensional barcode 43 may be generated. In this case, each unit of the color two-dimensional barcode providing unit 5 shown in FIG. 5 and each unit of the color two-dimensional barcode analyzing unit 6 shown in FIG. 8 perform processing as follows.

二次元バーコード生成部501およびセル重なり比率決定部503は、上述の通りの処理を行う。   The two-dimensional barcode generation unit 501 and the cell overlap ratio determination unit 503 perform the processing as described above.

色変換部502は、基本的に上述の通り、第一の二次元バーコード41の有色のセルの色と第二の二次元バーコード42の有色の色とを相違する色に変換する。つまり、例えば、前者をマゼンタに変換し、後者をシアンに変換する。ただし、位置検出パターンを構成するセルの色は、第一の二次元バーコード41および第二の二次元バーコード42ともに、黒のままにしておく。   As described above, the color conversion unit 502 basically converts the colored cell color of the first two-dimensional barcode 41 and the colored color of the second two-dimensional barcode 42 into different colors. That is, for example, the former is converted to magenta and the latter is converted to cyan. However, the color of the cells constituting the position detection pattern is left black for both the first two-dimensional barcode 41 and the second two-dimensional barcode 42.

カラー二次元バーコード生成部504は、第二の二次元バーコード42の中から3つの位置検出パターンを検出する。そして、3つの位置検出パターンを構成するセルは動かさず、それ以外のセルを長さLfだけ下および右へそれぞれシフトさせる。そして、図15のように、シフトさせた第二の二次元バーコード42を第一の二次元バーコード41に重ね合せることによって、カラー二次元バーコード43’を生成する。   The color two-dimensional barcode generation unit 504 detects three position detection patterns from the second two-dimensional barcode 42. Then, the cells constituting the three position detection patterns are not moved, and the other cells are shifted downward and right by the length Lf, respectively. Then, as shown in FIG. 15, the color two-dimensional barcode 43 ′ is generated by superimposing the shifted second two-dimensional barcode 42 on the first two-dimensional barcode 41.

カラー二次元バーコード印刷部505は、生成されたカラー二次元バーコード43’が用紙に印刷されるよう印刷ユニット10fなどを制御する。   The color two-dimensional barcode printing unit 505 controls the printing unit 10f and the like so that the generated color two-dimensional barcode 43 'is printed on paper.

次に、カラー二次元バーコード43’から第一の二次元バーコード41および第二の二次元バーコード42を検出する処理を、図16に示す手順で処理を行う。   Next, the process of detecting the first two-dimensional barcode 41 and the second two-dimensional barcode 42 from the color two-dimensional barcode 43 'is performed according to the procedure shown in FIG.

カラー二次元バーコード取得部601が原稿からカラー二次元バーコード43’を取得すると(図16の#11)、色分離処理部602は、上述の通り、カラー二次元バーコード43’を色ごとの画像に分離する(#12)。ただし、分離の結果、マゼンタ画像4M’、シアン画像4C’、およびブルー画像4B’だけでなく、黒のセルからなる黒画像4K’が得られる。黒画像4K’は、3つの位置検出パターンを表わす画像である。したがって、色分離処理部602の処理によって3つの位置検出パターンを検出することができる。   When the color two-dimensional barcode acquisition unit 601 acquires the color two-dimensional barcode 43 ′ from the document (# 11 in FIG. 16), the color separation processing unit 602 converts the color two-dimensional barcode 43 ′ for each color as described above. (# 12). However, as a result of the separation, not only the magenta image 4M ′, the cyan image 4C ′, and the blue image 4B ′ but also a black image 4K ′ composed of black cells is obtained. The black image 4K ′ is an image representing three position detection patterns. Therefore, three position detection patterns can be detected by the processing of the color separation processing unit 602.

モノクロ二次元バーコード復元部603は、上述の実施形態と基本的に同様の方法で、マゼンタ画像4M’、シアン画像4C’、およびブルー画像4B’を用いて第一の二次元バーコード41および第二の二次元バーコード42の位置検出パターン以外の部分を復元する(#13)。   The monochrome two-dimensional barcode restoration unit 603 uses the magenta image 4M ′, the cyan image 4C ′, and the blue image 4B ′ in the same manner as in the above-described embodiment, and uses the first two-dimensional barcode 41 and A portion other than the position detection pattern of the second two-dimensional barcode 42 is restored (# 13).

そして、モノクロ二次元バーコード復元部603は、復元した各部分に黒画像4K’を重ねることによって第一の二次元バーコード41および第二の二次元バーコード42の全部分を復元する(#14)。また、カラー二次元バーコード43’を生成する際に第二の二次元バーコード42の位置検出パターンとそれ以外の部分との相対的な位置が変更されている。そこで、モノクロ二次元バーコード復元部603は、両者の相対的な位置を、QRコードの規格に基づいて調整する。   Then, the monochrome two-dimensional barcode restoring unit 603 restores all parts of the first two-dimensional barcode 41 and the second two-dimensional barcode 42 by superimposing the black image 4K ′ on each restored part (#). 14). Further, when the color two-dimensional barcode 43 ′ is generated, the relative positions of the position detection pattern of the second two-dimensional barcode 42 and the other portions are changed. Therefore, the monochrome two-dimensional barcode restoration unit 603 adjusts the relative positions of the two based on the QR code standard.

その後、テキスト化処理部604によって第一の二次元バーコード41および第二の二次元バーコード42から文字列CL1およびCL2が得られ、テキスト出力処理部605によって文字列CL1およびCL2が出力される。色分離処理部602またはテキスト化処理部604による処理が上手く行かない場合は、色補正部606によってカラー二次元バーコード43’の色の補正が行われる。   Thereafter, the text processing unit 604 obtains character strings CL1 and CL2 from the first two-dimensional barcode 41 and the second two-dimensional barcode 42, and the text output processing unit 605 outputs the character strings CL1 and CL2. . When the processing by the color separation processing unit 602 or the text conversion processing unit 604 is not successful, the color correction unit 606 corrects the color of the color two-dimensional barcode 43 ′.

なお、3つの位置検出パターンだけでなく、中心付近にあるアライメントパターンを構成するセル群(いわゆる、小さい目玉)もシフトさせずに、カラー二次元バーコード43’を生成してもよい。また、位置検出パターンなどをずらすか否かは、カラー二次元バーコードを生成するごとにユーザーが選択してもよいし、画像形成装置1に予め設定しておいてもよい。   Note that the color two-dimensional barcode 43 ′ may be generated without shifting not only the three position detection patterns but also a group of cells (so-called small eyeballs) constituting an alignment pattern near the center. Whether or not to shift the position detection pattern or the like may be selected by the user every time the color two-dimensional barcode is generated, or may be set in the image forming apparatus 1 in advance.

上述の実施形態では、上下方向および左右方向のシフトのために共通のセル重なり比率Rkを用いたが、セル重なり比率Rkを、上下方向および左右方向のそれぞれで異なるように設定してもよい。   In the above-described embodiment, the common cell overlap ratio Rk is used for the vertical and horizontal shifts. However, the cell overlap ratio Rk may be set differently in the vertical and horizontal directions.

位置ごとに第一の二次元バーコード41の有色のセルおよび第二の二次元バーコード42の有色のセル同士が重なるか否かをチェックし、重なる割合が一定未満であれば、従来通り、第一の二次元バーコード41と第二の二次元バーコード42とをずらすことなく重ねてることによって、カラー二次元バーコード43を生成してもよい。以下、この割合を「有色セル重複割合Rc」と記載する。   For each position, it is checked whether the colored cells of the first two-dimensional barcode 41 and the colored cells of the second two-dimensional barcode 42 overlap each other. If the overlapping ratio is less than a certain value, The color two-dimensional barcode 43 may be generated by overlapping the first two-dimensional barcode 41 and the second two-dimensional barcode 42 without shifting. Hereinafter, this ratio is referred to as “colored cell overlapping ratio Rc”.

図17は、カラー二次元バーコード43を生成する処理の流れの例を示す図である。図18は、第一の二次元バーコード41および第二の二次元バーコード42を検出する処理の流れの例を説明するフローチャートである。   FIG. 17 is a diagram illustrating an example of a flow of processing for generating the color two-dimensional barcode 43. FIG. 18 is a flowchart for explaining an example of the flow of processing for detecting the first two-dimensional barcode 41 and the second two-dimensional barcode 42.

上述の実施形態では、図5および図8にそれぞれ示す機能をハードウェアモジュールによって実現したが、一部または全部の機能をコンピュータープログラムをCPU10aに実行させることによって実現してもよい。この場合は、カラー二次元バーコード43を提供するプログラムとして図17に示す手順で処理を行う第一のプログラムを用意し、CPU10aに実行させればよい。また、カラー二次元バーコード43を解析するプログラムとして図18に示す手順で処理を行う第二のプログラムを用意し、CPU10aに実行させればよい。   In the above-described embodiment, the functions shown in FIG. 5 and FIG. 8 are realized by hardware modules, but some or all of the functions may be realized by causing the CPU 10a to execute a computer program. In this case, a first program that performs processing according to the procedure shown in FIG. 17 may be prepared as a program for providing the color two-dimensional barcode 43 and executed by the CPU 10a. In addition, a second program that performs processing according to the procedure shown in FIG. 18 may be prepared as a program for analyzing the color two-dimensional barcode 43 and executed by the CPU 10a.

ここで、第一のプログラムおよび第二のプログラムによる処理を、図17および図18を参照しながら説明する。   Here, processing by the first program and the second program will be described with reference to FIGS. 17 and 18.

画像形成装置1は、1つのカラー二次元バーコードに纏めて表わす2つの文字列CL1、CL2の入力を受け付ける(図17の#701)。そして、文字列CL1を第一の二次元バーコード41に変換し、文字列CL2を第二の二次元バーコード42に変換する(#702)。さらに、第一の二次元バーコード41および第二の二次元バーコード42それぞれの有色のセルを相違する色、例えば、マゼンタおよびシアンに変更する(#703)。そして、有色セル重複割合Rcを算出する(#704)。   The image forming apparatus 1 accepts input of two character strings CL1 and CL2 collectively represented in one color two-dimensional barcode (# 701 in FIG. 17). Then, the character string CL1 is converted into the first two-dimensional barcode 41, and the character string CL2 is converted into the second two-dimensional barcode 42 (# 702). Further, the colored cells of the first two-dimensional barcode 41 and the second two-dimensional barcode 42 are changed to different colors, for example, magenta and cyan (# 703). Then, the colored cell overlap ratio Rc is calculated (# 704).

有色セル重複割合Rcが一定の値未満であれば(#705でNo)、画像形成装置1は、従来通り、第一の二次元バーコード41と第二の二次元バーコード42とを、シフトを行うことなく重ね合わせることによって、カラー二次元バーコードを生成する(#706)。そして、生成したカラー二次元バーコードを印刷する(#713)。   If the colored cell overlap ratio Rc is less than a certain value (No in # 705), the image forming apparatus 1 shifts the first two-dimensional barcode 41 and the second two-dimensional barcode 42 as usual. A color two-dimensional barcode is generated by superimposing without performing (# 706). Then, the generated color two-dimensional barcode is printed (# 713).

一方、有色セル重複割合Rcが一定の値以上であれば(#705でYes)、画像形成装置1は、第二の二次元バーコード42をずらす方向および長さなどの設定を行う(#707)。   On the other hand, if the colored cell overlap ratio Rc is equal to or greater than a certain value (Yes in # 705), the image forming apparatus 1 sets the direction and length for shifting the second two-dimensional barcode 42 (# 707). ).

図15で説明したように位置検出パターンをずらさずに重ね合わせる場合は(#708でNo)、画像形成装置1は、第一の二次元バーコード41および第二の二次元バーコード42それぞれの位置検出パターンの色を黒に変換する(#709)。第二の二次元バーコード42の位置検出パターン以外のセルを、ステップ#706の設定に基づいてシフトさせる(#710)。そして、第一の二次元バーコード41と第二の二次元バーコード42とを重ね合わせることによってカラー二次元バーコード43’を生成し(#712)、印刷する(#713)。   As described with reference to FIG. 15, when the position detection patterns are overlapped without being shifted (No in # 708), the image forming apparatus 1 uses each of the first two-dimensional barcode 41 and the second two-dimensional barcode 42. The color of the position detection pattern is converted to black (# 709). Cells other than the position detection pattern of the second two-dimensional barcode 42 are shifted based on the setting in step # 706 (# 710). Then, a color two-dimensional barcode 43 'is generated by superimposing the first two-dimensional barcode 41 and the second two-dimensional barcode 42 (# 712) and printed (# 713).

図7で説明したように位置検出パターンを含め全体をずらして重ね合わせる場合は(#708でYes)、画像形成装置1は、第二の二次元バーコード42全体をステップ#706の設定に基づいてシフトさせる(#711)。そして、第一の二次元バーコード41と第二の二次元バーコード42とを重ね合わせることによってカラー二次元バーコード43’を生成し(#712)、印刷する(#713)。   As described with reference to FIG. 7, when the entire image including the position detection pattern is shifted and overlapped (Yes in # 708), the image forming apparatus 1 applies the entire second two-dimensional barcode 42 based on the setting in step # 706. To shift (# 711). Then, a color two-dimensional barcode 43 'is generated by superimposing the first two-dimensional barcode 41 and the second two-dimensional barcode 42 (# 712) and printed (# 713).

その後、ユーザーがカラー二次元バーコード43が印刷された印刷物を画像形成装置1にセットし所定のコマンドを入力すると、画像形成装置1は、カラー二次元バーコード43に示される文字列を解析する処理を次のように行う。   Thereafter, when the user sets a printed matter on which the color two-dimensional barcode 43 is printed on the image forming apparatus 1 and inputs a predetermined command, the image forming apparatus 1 analyzes the character string indicated by the color two-dimensional barcode 43. Processing is performed as follows.

画像形成装置1は、セットされた印刷物をスキャンしてカラー二次元バーコード43を読み込む(図18の#721)。さらに、カラー二次元バーコード43から位置検出パターンを検出し(#722)、調査対象区域BRごとの形態(図13参照)を検出する(#723)。   The image forming apparatus 1 scans the set printed material and reads the color two-dimensional barcode 43 (# 721 in FIG. 18). Further, a position detection pattern is detected from the color two-dimensional bar code 43 (# 722), and the form (see FIG. 13) for each investigation target area BR is detected (# 723).

第三の形態が1つも検出されなかった場合は(#724でYes)、画像形成装置1は、従来の方法でカラー二次元バーコード43から第一の二次元バーコード41および第二の二次元バーコード42を復元し、それぞれに示される文字列CL1、CL2を解析し(#725)、出力する(#734)。   If no third form is detected (Yes in # 724), the image forming apparatus 1 uses the conventional method to change the color two-dimensional barcode 43 to the first two-dimensional barcode 41 and the second two-dimensional barcode. The dimension barcode 42 is restored, and the character strings CL1 and CL2 shown in each are analyzed (# 725) and output (# 734).

第三の形態が1つでも検出された場合は(#724でNo)、画像形成装置1は、2つの二次元バーコードがシフトされて重ね合わされることによってカラー二次元バーコード43が生成されたと判定する(#726)。そして、次のように処理を行う。   If even one of the third forms is detected (No in # 724), the image forming apparatus 1 generates the color two-dimensional barcode 43 by shifting and superimposing the two two-dimensional barcodes. (# 726). Then, processing is performed as follows.

画像形成装置1は、カラー二次元バーコード43を色ごとの画像に分離する(#727)。分離に成功した場合は(#728でYes)、各色の画像に基づいて第一の二次元バーコード41および第二の二次元バーコード42を復元する(#730)。分離が上手く行かなかった場合は(#728でNo)、図14で説明した方法でカラー二次元バーコード43の色の補正を行う(#729)。そして、補正後のカラー二次元バーコード43を色ごとの画像に分離し(#727)、各色の画像に基づいて第一の二次元バーコード41および第二の二次元バーコード42を復元する(#730)。   The image forming apparatus 1 separates the color two-dimensional barcode 43 into images for each color (# 727). If the separation is successful (Yes in # 728), the first two-dimensional barcode 41 and the second two-dimensional barcode 42 are restored based on each color image (# 730). If the separation is not successful (No in # 728), the color of the color two-dimensional barcode 43 is corrected by the method described in FIG. 14 (# 729). Then, the corrected color two-dimensional barcode 43 is separated into images for each color (# 727), and the first two-dimensional barcode 41 and the second two-dimensional barcode 42 are restored based on the image of each color. (# 730).

画像形成装置1は、第一の二次元バーコード41および第二の二次元バーコード42それぞれを解析して文字列CL1、CL2を特定し(#732)、出力する。ただし、第一の二次元バーコード41および第二の二次元バーコード42のうちの少なくとも一方に、位置検出パターンとそれ以外のセルとのずれがある場合は(#731でYes)、ずれを補正してから(#732)、文字列の解析および出力を行う(#733、#734)。   The image forming apparatus 1 analyzes the first two-dimensional barcode 41 and the second two-dimensional barcode 42, specifies the character strings CL1 and CL2 (# 732), and outputs them. However, if there is a deviation between the position detection pattern and the other cells in at least one of the first two-dimensional barcode 41 and the second two-dimensional barcode 42 (Yes in # 731), the deviation is determined. After correction (# 732), the character string is analyzed and output (# 733, # 734).

上述の実施形態では、2つの二次元バーコードを重ね合わせてカラー二次元バーコードを生成したが、本発明は、3つ以上の二次元バーコードを重ね合わせてカラー二次元バーコードを生成する場合にも適用することができる。N個の二次元バーコードを重ね合わせてカラー二次元バーコードを生成する場合は、比率Rkとして例えば「1/N」を用いればよい。   In the above-described embodiment, a color two-dimensional barcode is generated by superimposing two two-dimensional barcodes. However, the present invention generates a color two-dimensional barcode by superimposing three or more two-dimensional barcodes. It can also be applied to cases. When a color two-dimensional barcode is generated by superimposing N two-dimensional barcodes, for example, “1 / N” may be used as the ratio Rk.

上述の実施形態では、二次元バーコードとしてQRコードを用いる場合を例に説明したが、本発明は、他の規格の二次元バーコードを用いる場合にも適用することができる。   In the above-described embodiment, the case where a QR code is used as a two-dimensional bar code has been described as an example. However, the present invention can also be applied to a case where a two-dimensional bar code of another standard is used.

その他、画像形成装置1の全体または各部の構成、処理内容、処理順序、二次元バーコードの構成などは、本発明の趣旨に沿って適宜変更することができる。   In addition, the configuration of the entire image forming apparatus 1 or each unit, the processing content, the processing order, the configuration of the two-dimensional barcode, and the like can be appropriately changed in accordance with the spirit of the present invention.

Claims (8)

複数の二次元バーコードとして、有色のセルの色が互いに異なる複数の二次元バーコードを取得する、二次元バーコード取得手段と、
前記複数の二次元バーコード同士を、同じ位置のセル同士を一定の距離だけずらして重ね合せることによって、カラー二次元バーコードを生成する、カラー二次元バーコード生成手段と、
前記カラー二次元バーコードを出力するカラー二次元バーコード出力手段と、
を有することを特徴とするカラー二次元バーコード生成装置。
Two-dimensional barcode acquisition means for acquiring a plurality of two-dimensional barcodes having different colors of colored cells as a plurality of two-dimensional barcodes;
A color two-dimensional barcode generating means for generating a color two-dimensional barcode by overlapping the plurality of two-dimensional barcodes by shifting a cell at the same position by a fixed distance; and
A color two-dimensional barcode output means for outputting the color two-dimensional barcode;
A color two-dimensional barcode generating apparatus comprising:
前記カラー二次元バーコード生成手段は、位置検出パターンまたはアライメントパターンを構成するセルについてはずらすことなく前記複数の二次元バーコード同士を重ね合せることによって、前記カラー二次元バーコードを生成する、
請求項1に記載のカラー二次元バーコード生成装置。
The color two-dimensional barcode generation means generates the color two-dimensional barcode by overlapping the plurality of two-dimensional barcodes without shifting the cells constituting the position detection pattern or the alignment pattern.
The color two-dimensional barcode generation apparatus according to claim 1.
前記カラー二次元バーコード生成手段は、前記位置検出パターンまたはアライメントパターンを構成するセルの色として黒を用いて前記カラー二次元バーコードを生成する、
請求項2に記載のカラー二次元バーコード生成装置。
The color two-dimensional barcode generation means generates the color two-dimensional barcode using black as the color of the cells constituting the position detection pattern or alignment pattern.
The color two-dimensional barcode generation apparatus according to claim 2.
有色のセルの色が互いに異なる複数の二次元バーコード同士を同じ位置のセル同士を一定の距離だけずらして重ね合せることによって生成されたカラー二次元バーコードを取得するカラー二次元バーコード取得手段と、
前記カラー二次元バーコードの中の、前記一定の距離だけずれて重なり合う複数のセルの区域ごとに、当該区域にある有色の画素からなる有色画素群の形状を検出する、形状検出手段と、
前記区域から検出された前記形状が1つのセルの形状と同じである場合は、当該区域の前記有色画素群の色を検出し、当該有色画素群の色が当該検出した色であると判別し、当該形状が複数のセルをずらして重ね合せた形状と同じである場合は、当該区域の前記有色画素群の中の1つのセルに相当する部分であるセル部分ごとに真上、真下、真左、または真右に位置する他のセルの色を検出し、当該セル部分のうち他のセル部分と重なり合わない部分の色が当該検出した色であると判別し、他のセル部分と重なり合う部分の色が当該セル部分および当該他のセル部分それぞれについてそれぞれ検出した色の合成色であると判別する、色判別手段と、
前記色判別手段によって判別された、前記カラー二次元バーコードの各画素の色に基づいて、前記複数の二次元バーコードのそれぞれを特定する、二次元バーコード特定手段と、
を有することを特徴とするカラー二次元バーコード読取装置。
Color two-dimensional barcode acquisition means for acquiring a color two-dimensional barcode generated by overlapping a plurality of two-dimensional barcodes having different colors of colored cells by shifting a cell at the same position by a certain distance. When,
Shape detection means for detecting the shape of a colored pixel group consisting of colored pixels in the area for each of the plurality of cell areas that are shifted and overlapped by the predetermined distance in the color two-dimensional barcode;
When the shape detected from the area is the same as the shape of one cell, the color of the colored pixel group in the area is detected, and the color of the colored pixel group is determined to be the detected color. When the shape is the same as the shape obtained by shifting and overlapping a plurality of cells, each cell portion corresponding to one cell in the colored pixel group in the area is directly above, directly below, and true. Detects the color of another cell located on the left or right side, determines that the color of the cell part that does not overlap with the other cell part is the detected color, and overlaps with the other cell part Color discriminating means for discriminating that the color of the part is a composite color of the color detected for each of the cell part and the other cell part;
Two-dimensional barcode identification means for identifying each of the plurality of two-dimensional barcodes based on the color of each pixel of the color two-dimensional barcode determined by the color determination means;
A color two-dimensional barcode reader characterized by comprising:
複数の二次元バーコードとして、有色のセルの色が互いに異なる複数の二次元バーコードを取得し、
前記複数の二次元バーコード同士を、同じ位置のセル同士を一定の距離だけずらして重ね合せることによって、カラー二次元バーコードを生成し、
前記カラー二次元バーコードを出力する、
ことを特徴とするカラー二次元バーコード生成方法。
As a plurality of two-dimensional barcodes, obtain a plurality of two-dimensional barcodes with different colors of colored cells,
A plurality of two-dimensional barcodes are generated by superimposing the cells at the same position while shifting them by a certain distance to generate a color two-dimensional barcode,
Outputting the color two-dimensional barcode;
A color two-dimensional barcode generation method characterized by the above.
有色のセルの色が互いに異なる複数の二次元バーコード同士を同じ位置のセル同士を一定の距離だけずらして重ね合せることによって生成されたカラー二次元バーコードを取得し、
前記カラー二次元バーコードの中の、前記一定の距離だけずれて重なり合う複数のセルの区域ごとに、当該区域にある有色の画素からなる有色画素群の形状を検出し、
前記区域から検出された前記形状が1つのセルの形状と同じである場合は、当該区域の前記有色画素群の色を検出し、当該有色画素群の色が当該検出した色であると判別し、当該形状が複数のセルをずらして重ね合せた形状と同じである場合は、当該区域の前記有色画素群の中の1つのセルに相当する部分であるセル部分ごとに真上、真下、真左、または真右に位置する他のセルの色を検出し、当該セル部分のうち他のセル部分と重なり合わない部分の色が当該検出した色であると判別し、他のセル部分と重なり合う部分の色が当該セル部分および当該他のセル部分それぞれについてそれぞれ検出した色の合成色であると判別し、
判別した、前記カラー二次元バーコードの各画素の色に基づいて、前記複数の二次元バーコードのそれぞれを特定する、
ことを特徴とするカラー二次元バーコード読取方法。
Obtain a color two-dimensional barcode generated by overlapping a plurality of two-dimensional barcodes with different colors of colored cells by shifting the cells at the same position by a fixed distance,
Detecting a shape of a colored pixel group composed of colored pixels in the area for each of the plurality of cell areas that are overlapped with a certain distance in the color two-dimensional barcode;
When the shape detected from the area is the same as the shape of one cell, the color of the colored pixel group in the area is detected, and the color of the colored pixel group is determined to be the detected color. When the shape is the same as the shape obtained by shifting and overlapping a plurality of cells, each cell portion corresponding to one cell in the colored pixel group in the area is directly above, directly below, and true. Detects the color of another cell located on the left or right side, determines that the color of the cell part that does not overlap with the other cell part is the detected color, and overlaps with the other cell part It is determined that the color of the part is a composite color of the color detected for each of the cell part and the other cell part,
Identifying each of the plurality of two-dimensional barcodes based on the determined color of each pixel of the color two-dimensional barcode,
A color two-dimensional barcode reading method characterized by the above.
複数の二次元バーコードとして、有色のセルの色が互いに異なる複数の二次元バーコードを取得する処理をコンピューターに実行させ、
前記複数の二次元バーコード同士を、同じ位置のセル同士を一定の距離だけずらして重ね合せることによって、カラー二次元バーコードを生成する処理を前記コンピューターに実行させ、
前記カラー二次元バーコードを出力する処理を前記コンピューターに実行させる、
ことを特徴とするコンピュータープログラム。
As a plurality of two-dimensional barcodes, let the computer execute a process of obtaining a plurality of two-dimensional barcodes with different colors of colored cells,
By causing the computer to execute a process of generating a color two-dimensional barcode by overlapping the plurality of two-dimensional barcodes by shifting the cells at the same position by a fixed distance,
Causing the computer to execute a process of outputting the color two-dimensional barcode;
A computer program characterized by that.
有色のセルの色が互いに異なる複数の二次元バーコード同士を同じ位置のセル同士を一定の距離だけずらして重ね合せることによって生成されたカラー二次元バーコードを取得する処理をコンピューターに実行させ、
前記カラー二次元バーコードの中の、前記一定の距離だけずれて重なり合う複数のセルの区域ごとに、当該区域にある有色の画素からなる有色画素群の形状を検出する処理を前記コンピューターに実行させ、
前記区域から検出された前記形状が1つのセルの形状と同じである場合は、当該区域の前記有色画素群の色を検出し、当該有色画素群の色が当該検出した色であると判別し、当該形状が複数のセルをずらして重ね合せた形状と同じである場合は、当該区域の前記有色画素群の中の1つのセルに相当する部分であるセル部分ごとに真上、真下、真左、または真右に位置する他のセルの色を検出し、当該セル部分のうち他のセル部分と重なり合わない部分の色が当該検出した色であると判別し、他のセル部分と重なり合う部分の色が当該セル部分および当該他のセル部分それぞれについてそれぞれ検出した色の合成色であると判別する処理を、前記コンピューターに実行させ、
判別した、前記カラー二次元バーコードの各画素の色に基づいて、前記複数の二次元バーコードのそれぞれを特定する処理を前記コンピューターに実行させる、
ことを特徴とするコンピュータープログラム。
A computer executes a process for obtaining a color two-dimensional barcode generated by overlapping a plurality of two-dimensional barcodes having different colors of colored cells by shifting a plurality of two-dimensional barcodes at the same position by a certain distance,
In the color two-dimensional barcode, the computer is caused to execute processing for detecting a shape of a colored pixel group composed of colored pixels in the area for each of the plurality of cell areas that are shifted by a certain distance and overlap each other. ,
When the shape detected from the area is the same as the shape of one cell, the color of the colored pixel group in the area is detected, and the color of the colored pixel group is determined to be the detected color. When the shape is the same as the shape obtained by shifting and overlapping a plurality of cells, each cell portion corresponding to one cell in the colored pixel group in the area is directly above, directly below, and true. Detects the color of another cell located on the left or right side, determines that the color of the cell part that does not overlap with the other cell part is the detected color, and overlaps with the other cell part Causing the computer to execute a process of determining that the color of the part is a composite color of the color detected for each of the cell part and the other cell part,
Based on the determined color of each pixel of the color two-dimensional barcode, the computer is caused to execute a process of specifying each of the plurality of two-dimensional barcodes.
A computer program characterized by that.
JP2011178874A 2011-08-18 2011-08-18 Color two-dimensional barcode generation apparatus, color two-dimensional barcode reading device, method for generating color two-dimensional barcode, method for reading color two-dimensional barcode, and computer program Withdrawn JP2013041496A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2011178874A JP2013041496A (en) 2011-08-18 2011-08-18 Color two-dimensional barcode generation apparatus, color two-dimensional barcode reading device, method for generating color two-dimensional barcode, method for reading color two-dimensional barcode, and computer program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2011178874A JP2013041496A (en) 2011-08-18 2011-08-18 Color two-dimensional barcode generation apparatus, color two-dimensional barcode reading device, method for generating color two-dimensional barcode, method for reading color two-dimensional barcode, and computer program

Publications (1)

Publication Number Publication Date
JP2013041496A true JP2013041496A (en) 2013-02-28

Family

ID=47889812

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2011178874A Withdrawn JP2013041496A (en) 2011-08-18 2011-08-18 Color two-dimensional barcode generation apparatus, color two-dimensional barcode reading device, method for generating color two-dimensional barcode, method for reading color two-dimensional barcode, and computer program

Country Status (1)

Country Link
JP (1) JP2013041496A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103793740A (en) * 2014-03-10 2014-05-14 上海形上投资管理有限公司 Encoding system and method and decoding system and method of micro-colored-drawing two-dimension code
US20160189015A1 (en) * 2014-12-31 2016-06-30 Vasco Data Security, Inc. Data exchange methods, systems and apparatus using color images
US20170124439A1 (en) * 2014-05-22 2017-05-04 Easy Printing Network Limited Information bearing devices
JP2020067929A (en) * 2018-10-26 2020-04-30 大阪シーリング印刷株式会社 Two-dimensional code
US10936837B1 (en) * 2018-05-23 2021-03-02 Amazon Technologies, Inc. 2D barcode overlays

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103793740A (en) * 2014-03-10 2014-05-14 上海形上投资管理有限公司 Encoding system and method and decoding system and method of micro-colored-drawing two-dimension code
CN103793740B (en) * 2014-03-10 2017-02-08 上海好想法网络科技有限公司 Encoding system and method and decoding system and method of micro-colored-drawing two-dimension code
US20170124439A1 (en) * 2014-05-22 2017-05-04 Easy Printing Network Limited Information bearing devices
US10176413B2 (en) * 2014-05-22 2019-01-08 Easy Printing Network Limited Information bearing devices
US20160189015A1 (en) * 2014-12-31 2016-06-30 Vasco Data Security, Inc. Data exchange methods, systems and apparatus using color images
US10936837B1 (en) * 2018-05-23 2021-03-02 Amazon Technologies, Inc. 2D barcode overlays
JP2020067929A (en) * 2018-10-26 2020-04-30 大阪シーリング印刷株式会社 Two-dimensional code
JP7222593B2 (en) 2018-10-26 2023-02-15 大阪シーリング印刷株式会社 Two-dimensional code

Similar Documents

Publication Publication Date Title
US9723177B2 (en) Image processing system, image processing apparatus, and image forming apparatus
US9485368B2 (en) Electronic document generation apparatus, recording medium, and electronic document generation system
JP4379508B2 (en) Image forming apparatus, gradation correction method, and gradation correction program
JP5834866B2 (en) Image processing apparatus, image generation method, and computer program
JP2013041496A (en) Color two-dimensional barcode generation apparatus, color two-dimensional barcode reading device, method for generating color two-dimensional barcode, method for reading color two-dimensional barcode, and computer program
JP5724793B2 (en) Color two-dimensional barcode generation device, color two-dimensional barcode separation device, color two-dimensional barcode generation method, color two-dimensional barcode separation method, and computer program
JP5699851B2 (en) Two-dimensional barcode providing device, two-dimensional barcode analyzing device, two-dimensional barcode providing method, two-dimensional barcode analyzing method, computer program, two-dimensional barcode, and paper
JP5644721B2 (en) Image editing apparatus, image editing method, and computer program
JP2010137467A (en) Image formation device, the printing support method, and printing support program
US20100053656A1 (en) Image processing apparatus capable of processing color image, image processing method and storage medium storing image processing program
JP2004200955A (en) Color conversion apparatus
JP2014042148A (en) Image forming apparatus and method, and program
JP2008288912A (en) Image processor and image forming apparatus
JP2021193780A (en) Image reader, image reading method and image reading program
US8964243B2 (en) Image forming apparatus capable of enhancing resolution of image data in high quality
US8218182B2 (en) Image forming apparatus performing image formation suitable for adding information in handwriting or the like
JP4561433B2 (en) Image reading device
JP6702262B2 (en) Image forming apparatus and image forming system
US20200162630A1 (en) Image reading device, image forming device, and control method
JP6169008B2 (en) Image forming apparatus
JP2019080169A (en) Image processing device and image processing method
JP2010141733A (en) Image processor, image forming device, method of processing image, computer program and recording medium
JP2006295677A (en) Image processing method, image processing apparatus, and program
JP6399000B2 (en) Image processing apparatus and image creation program
JP2022119468A (en) Image processing apparatus, image processing method, and program

Legal Events

Date Code Title Description
A711 Notification of change in applicant

Free format text: JAPANESE INTERMEDIATE CODE: A712

Effective date: 20130417

A300 Withdrawal of application because of no request for examination

Free format text: JAPANESE INTERMEDIATE CODE: A300

Effective date: 20141104