JP2011103023A - Method and device for reading color arrangement code - Google Patents

Method and device for reading color arrangement code Download PDF

Info

Publication number
JP2011103023A
JP2011103023A JP2009256987A JP2009256987A JP2011103023A JP 2011103023 A JP2011103023 A JP 2011103023A JP 2009256987 A JP2009256987 A JP 2009256987A JP 2009256987 A JP2009256987 A JP 2009256987A JP 2011103023 A JP2011103023 A JP 2011103023A
Authority
JP
Japan
Prior art keywords
color
code
image
cell
field frame
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2009256987A
Other languages
Japanese (ja)
Inventor
Akiteru Kimura
昭輝 木村
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.)
B Core Inc
Original Assignee
B Core 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 B Core Inc filed Critical B Core Inc
Priority to JP2009256987A priority Critical patent/JP2011103023A/en
Publication of JP2011103023A publication Critical patent/JP2011103023A/en
Pending legal-status Critical Current

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To provide a method for reading data when the arrangement of a constituent cell group of a 1D color bit code is partially disordered or even if it is difficult to provide a cut-out Qz around the constituent cell group. <P>SOLUTION: An image including the 1D color bit code 10 of a reading target is imaged to obtain a capture image 12. Next, a long visual field frame B is set in the capture image 12, and a narrow image in the visual field frame B is taken out. Next, the takeout narrow image is divided into a plurality of color areas by a value of each pixel in the narrow image, and color arrangement information described with an order from one end of the narrow image to the other end and a color of each color area is generated. Next, when the generated color arrangement information satisfies an establishment condition prescribing the establishment of the 1D color bit code, the color arrangement information is regarded as the arrangement of the colors of the 1D color bit code of the reading target, decoding is performed based on the color arrangement information, and data are outputted. <P>COPYRIGHT: (C)2011,JPO&INPIT

Description

本発明は、光学的自動認識コードに関する。特に、本発明者がすでに提案した1Dカラービットコード(特願2006−196705)と呼ぶ光学的自動認識コードの読み取り率をより一層向上させた読み取り方法に関する発明である。また、本発明は、光学的に自動認識コードを読み取り、デコードする方法に関する。   The present invention relates to an optical automatic recognition code. In particular, the present invention relates to a reading method in which the reading rate of an optical automatic recognition code called a 1D color bit code (Japanese Patent Application No. 2006-196705) already proposed by the present inventor is further improved. The present invention also relates to a method for optically reading and decoding an automatic recognition code.

本発明者は、すでに色彩の配列(遷移)によってデータを表す光学的自動認識コードに関する出願を複数行っている。   The present inventor has already filed a plurality of applications relating to optical automatic recognition codes that represent data by color arrangement (transition).

本発明者は、先の特願2006−196705号において、1Dカラービットコードを提案した。この1Dカラービットコードを構成する色彩が付されている領域を「セル」と呼ぶ。すなわち、所定の色彩が付されたセルを並べることによって、1Dカラービットコードは構成されている。なお、1個1個の1Dカラービットコードそのもの(複数のセルによって構成される幾何学的図形)を、「コードシンボル」又は「色彩配列」と呼ぶ。   The present inventor proposed a 1D color bit code in Japanese Patent Application No. 2006-196705. An area to which colors constituting the 1D color bit code are attached is called a “cell”. That is, a 1D color bit code is configured by arranging cells with predetermined colors. Each 1D color bit code itself (a geometrical figure formed by a plurality of cells) is called a “code symbol” or “color array”.

データを読み取るために色彩配列をキャプチャすると、色彩配列そのものと、色彩配列ではない部分とが1つの画像に写る。色彩配列を読み取るためには、色彩配列の部分を画像から切り出す必要がある。   When a color array is captured in order to read data, the color array itself and a portion that is not the color array appear in one image. In order to read the color array, it is necessary to cut out the color array portion from the image.

しかしながら、状況によって、読み取り対象である色彩配列の切り出しが困難な場合があった。   However, depending on the situation, it may be difficult to cut out the color array to be read.

そこで、本発明者は、先の出願(特願2007−130504号)において、色彩配列の周囲に設けられたクワイアットゾーンを利用する読み取り方法を提案した。クワイアットゾーンとは、色彩配列を構成する色以外の色彩の領域である。クワイエットゾーンを「Qz」と記すこともある。この読み取り方法では、色彩配列とクワイアットゾーンを含む画像データを定義に基づき複数の色領域に区分けする。そして、区分けした領域群からクワイアットゾーンを排除し、残りの領域群について、境界条件、セル数の条件、終端条件等を用いて、色彩配列を構成するセルであるか否か判定する。この方法によれば、キャプチャした画像に色彩配列でない部分が写っていても、色彩配列そのものだけを切り出すことができる。   Therefore, the present inventor has proposed a reading method using a quiet zone provided around the color array in the previous application (Japanese Patent Application No. 2007-130504). The quiet zone is an area of colors other than the colors constituting the color array. The quiet zone may be described as “Qz”. In this reading method, image data including a color array and a quiet zone is divided into a plurality of color regions based on the definition. Then, the quiet zone is excluded from the divided area group, and it is determined whether or not the remaining area group is a cell constituting a color array using a boundary condition, a cell number condition, a termination condition, and the like. According to this method, even if the captured image includes a portion that is not a color array, only the color array itself can be cut out.

クワイアットゾーンを設けることなく色彩配列を切り出す方法
また、本発明者は、先の出願(特願2007−258430号)において、色彩配列が直線状であり、周囲のクワイアットゾーンが小さい、又は存在しないケースにおける色彩配列の存在の切り出し方法、及びデコード方法を提案した。この切り出し方法では、端面に色彩配列がマーキングされた複数のシート状被印物を少しずつずらしてキャプチャする。キャプチャ画像には、色彩配列のほかにシート状被印物の側面と背景とが写り、これら側面と背景がクワイアットゾーンとなることを技術的特徴の1つとする。この方法によれば、シート状被印物の端面のように広いQzを設けにくい又は存在しない状況でも、被印物の並べ方と切り出し方を工夫し、色彩配列を読み取ることができる。
Method for cutting out a color arrangement without providing a quiet zone In addition, in the previous application (Japanese Patent Application No. 2007-258430), the present inventor has a color arrangement that is linear and the surrounding quiet zone is small or exists. We proposed a method for extracting and decoding the presence of a color array in the case of not doing so. In this cutting-out method, a plurality of sheet-like objects to be color-marked on end faces are captured while being shifted little by little. In addition to the color arrangement, the captured image includes a side surface and a background of the sheet-like object to be printed, and one of the technical features is that the side surface and the background form a quiet zone. According to this method, it is possible to read the color arrangement by devising how to arrange and cut out the objects to be printed even in a situation where a wide Qz is difficult or does not exist like the end face of the sheet-like object.

公知特許文献
下記特許文献1には、走行する車両から障害物の存在を監視する認識補助装置が開示されている。特に、この認識補助装置は、撮像素子によって取得された画像において、その画像よりも狭い領域を持つウィンドウを設定し、そのウィンドウ内に監視対象の物体が位置するようにウィンドウの位置を制御することが記載されている。
Known Patent Document The following Patent Document 1 discloses a recognition assist device that monitors the presence of an obstacle from a traveling vehicle. In particular, this recognition assisting device sets a window having a narrower area than the image in the image acquired by the image sensor, and controls the position of the window so that the object to be monitored is located in the window. Is described.

下記特許文献2には、対象パターン及び対象外パターンを撮像したカメラ視野内で、対象パターンを画像認識により検出して位置出しをする方法が開示されている。特に、この特許文献2には、対象外パターンnの位置に基づいて、対象パターンmの周囲に認識ウィンドウを設定し、対象パターンmの重心データ及び面積データに基づいて、対象パターンmが認識ウィンドウの内にあるのか否かを判断し、認識ウィンドウの位置を補正することが記載されている。   Patent Document 2 below discloses a method for detecting and positioning a target pattern by image recognition within a camera field of view where the target pattern and the non-target pattern are imaged. In particular, in Patent Document 2, a recognition window is set around the target pattern m based on the position of the non-target pattern n, and the target pattern m is recognized based on the centroid data and area data of the target pattern m. It is described that the position of the recognition window is corrected by determining whether it is within the range.

特開2005−244399号公報JP 2005-244399 A 特開平9−5022号公報Japanese Patent Laid-Open No. 9-5022

本発明者が先に出願した特願2007−130504号に記載の読み取り方法では、1Dカラービットコードは、1Dカラービットコードの使用色以外の色彩の領域(クワイアットゾーン)により囲まれている必要があった。1Dカラービットコードの切り出しを容易にするためである。また、この特願2007−130504号に記載の読み取り方法では、1Dカラービットコードを構成する各色彩領域を、1Dカラービットコードの「境界条件」を基に切り出していた。この「境界条件」とは、例えば「1個のセルは他の1個又は2個のセルと接する」という条件である。   In the reading method described in Japanese Patent Application No. 2007-130504 filed earlier by the present inventor, the 1D color bit code needs to be surrounded by a color area (quiet zone) other than the color used by the 1D color bit code. was there. This is because it is easy to cut out the 1D color bit code. Further, in the reading method described in Japanese Patent Application No. 2007-130504, each color region constituting the 1D color bit code is cut out based on the “boundary condition” of the 1D color bit code. The “boundary condition” is, for example, a condition that “one cell contacts one or two other cells”.

ところが、1Dカラービットコードが何らかの理由で乱れ、1Dカラービットコードのごく一部のみが「境界条件」と合致しないものになると、1Dカラービットコード全体が読み取れなくなってしまう場合があった。この処理は、1Dカラービットコードの読み取りに正確を期するという観点では好ましい。   However, if the 1D color bit code is disturbed for some reason and only a part of the 1D color bit code does not meet the “boundary condition”, the entire 1D color bit code may not be read. This processing is preferable from the viewpoint of ensuring accuracy in reading the 1D color bit code.

しかし、状況によっては、この特願2007−130504号に記載の読み取り方法は好ましくない場合もあった。   However, depending on the situation, the reading method described in Japanese Patent Application No. 2007-130504 may not be preferable.

図1には、1Dカラービットコード10をキャプチャしたキャプチャ画像12が示されている。この図中には11個の色彩領域が示されている。これら11個の色彩領域のうち3個の色彩領域14b、14d、14hは他の3個以上の色彩領域と接する。従って、これら3個の色彩領域は上述した境界条件と合致しないので、従来の方法では、この1Dカラービットコード10は読み取れない場合が多かった。このように状況によっては多くの1Dカラービットコードが読み取れなくなるので、上記特願2007−130504号に記載の読み取り方法は、使用場面によっては、利便性に欠け、読み取り操作上、好ましくない場合があった。   FIG. 1 shows a captured image 12 obtained by capturing the 1D color bit code 10. In this figure, eleven color regions are shown. Of these eleven color regions, three color regions 14b, 14d, and 14h are in contact with three or more other color regions. Therefore, since these three color regions do not meet the boundary condition described above, the conventional method often cannot read the 1D color bit code 10. As described above, since many 1D color bit codes cannot be read depending on the situation, the reading method described in the above Japanese Patent Application No. 2007-130504 is not convenient depending on the situation of use, and may not be preferable in reading operation. It was.

また、1Dカラービットコードが、極めて狭い場所(例えば板状体の端面などのようにきわめて幅の狭い場所)にマーキングされた場合には、Qzを設けることが容易でない又はQzを設けられないことがある。この結果、1Dカラービットコードを切り出すことが難しい場合があった。また、端面をキャプチャした画像内に背景の様々な色彩が写った場合には、1Dカラービットコードの境界を判断することが難しい場合があった。   In addition, when the 1D color bit code is marked in an extremely narrow place (for example, an extremely narrow place such as an end face of a plate-like body), it is not easy to provide Qz or cannot provide Qz. There is. As a result, it may be difficult to cut out the 1D color bit code. In addition, when various colors of the background are captured in the image capturing the end face, it may be difficult to determine the boundary of the 1D color bit code.

上述した特願2007−258430号には、板状体の端面にマーキングされた1Dカラービットコードの読み取り方法が記載されているが、この読み取り方法は、非常に狭くてもQzが存在することを前提とした読み取り方法である。具体的には、例えば、1Dカラービットコードがマーキングされた複数の板状体がずらして密着配置されている場合に、1Dカラービットコードのキャプチャ画像上では板状体の側面や背景をQzとして扱うことによって「非常に狭くてもQzが存在すること」を実現している。従って、特願2007−258430号に記載の読み取り方法は、Qzが存在しないケースには対応できない場合もあった。   The above-mentioned Japanese Patent Application No. 2007-258430 describes a method for reading a 1D color bit code marked on the end face of a plate-like body. However, this reading method shows that Qz exists even if it is very narrow. This is a presumed reading method. Specifically, for example, when a plurality of plate-like bodies marked with a 1D color bit code are arranged in close contact with each other, the side and background of the plate-like body are set as Qz on the captured image of the 1D color bit code. By handling, “there is Qz even if very narrow” is realized. Therefore, the reading method described in Japanese Patent Application No. 2007-258430 may not be able to handle the case where Qz does not exist.

本発明の目的
本発明の第1の目的は、適当な直線状の区間にマーキングされ、コードを形成する色彩配列を読み取る方法を提供することである。また、第2の目的は、周囲にクワイアットゾーンが存在しない色彩配列を読み取る方法を提供することである。また、第3の目的は、色彩配列を構成するセル群の一部が乱れてマーキングされているような場合でも、その色彩配列を読み取る方法を提供することである。
Objects of the invention A first object of the present invention is to provide a method for reading a color array which is marked on a suitable straight section and forms a code. A second object is to provide a method of reading a color arrangement in which no quiet zone exists. A third object is to provide a method for reading a color arrangement even when a part of a cell group constituting the color arrangement is disturbed and marked.

また、上記第1から第3までの目的に関連する技術を提供することである。   Moreover, it is providing the technique relevant to the said 1st-3rd objective.

(1)本発明は、上記課題を解決するために、色彩の遷移によってデータを表す色彩配列コードの読み取り方法において、前記色彩配列コードを含む画像をキャプチャするキャプチャステップと、前記画像内に予め設定された細長い視野枠の内部の狭小画像を取り出す狭小画像取り出しステップと、前記狭小画像中の各画素の値によって前記狭小画像を複数の色彩領域に分割する分割ステップと、前記各色彩領域ごとに、前記色彩領域の色彩と、前記狭小画像の一方端から他方端に至るまでの順番と、を記述した色彩配列情報を生成する色彩配列情報生成ステップと、前記色彩配列情報中の色彩領域の色彩及び順番が、前記色彩配列コードを構成するセル群の順番及び色彩であるとみなして、前記色彩及び順番に基づいて前記色彩配列コードをデコードし前記データを出力するデコードステップと、を含むことを特徴とする色彩配列コードの読み取り方法である。 (1) In order to solve the above-described problem, the present invention provides a method for reading a color array code that represents data by color transition, a capture step for capturing an image including the color array code, and a preset in the image A narrow image extracting step for extracting a narrow image inside the elongated field frame, a dividing step for dividing the narrow image into a plurality of color regions according to the value of each pixel in the narrow image, and for each color region, A color array information generating step for generating color array information describing the colors of the color area and the order from one end to the other end of the narrow image, and the color of the color area in the color array information, and Assuming that the order is the order and color of the cell group constituting the color arrangement code, the color arrangement code based on the color and order A decoding step of outputting the decoded data; a color disposition code reading method, which comprises a.

(2)また、本発明は、色彩の遷移によってデータを表す色彩配列コードの読み取り方法において、前記色彩配列コードを含む画像をキャプチャするキャプチャステップと、前記画像内に予め設定された細長い視野枠の内部の狭小画像を取り出す狭小画像取り出しステップと、前記狭小画像中の各画素の値によって前記狭小画像を複数の色彩領域に分割する分割ステップと、前記各色彩領域ごとに、前記色彩領域の色彩と、前記狭小画像の一方端から他方端に至るまでの順番と、を記述した色彩配列情報を生成する色彩配列情報生成ステップと、前記色彩配列情報のうち、前記色彩配列コードのスタートを示す切り出し用冗長セルの色彩が付された前記色彩領域を表す色彩情報と、前記色彩配列コードのエンドを示す切り出し用冗長セルの色彩が付された前記色彩領域を表す色彩情報と、の間にある色彩配列情報中の色彩領域の色彩及び順番が、前記色彩配列コードを構成するセル群の順番及び色彩であるとみなして、前記色彩配列情報に基づいて前記色彩配列コードをデコードし前記データを出力するデコードステップと、を含むことを特徴とする色彩配列コードの読み取り方法である。 (2) Further, according to the present invention, in a method for reading a color arrangement code that represents data by color transition, a capture step for capturing an image including the color arrangement code, an elongated field frame preset in the image, and A narrow image extracting step for extracting an internal narrow image, a dividing step for dividing the narrow image into a plurality of color regions according to the value of each pixel in the narrow image, a color of the color region for each color region, and A color arrangement information generating step for generating color arrangement information describing the order from one end to the other end of the narrow image, and for cutting out indicating the start of the color arrangement code in the color arrangement information Color information indicating the color region to which the color of the redundant cell is attached, and the color of the redundant cell for extraction indicating the end of the color array code The color information representing the color area to which is attached, and the color and order of the color area in the color arrangement information between them are considered to be the order and color of the cell group constituting the color arrangement code, And a decoding step of decoding the color arrangement code based on the color arrangement information and outputting the data.

(3)また、本発明は、上記(1)又は(2)に記載の色彩配列コードの読み取り方法において、前記狭小画像取り出しステップは、前記画像内に1個又は複数個設定された前記視野枠の位置を、前記画像内で、利用者の指示に従って移動する第1の視野枠移動ステップ、をさらに含み、前記狭小画像取り出しステップは、前記視野枠移動ステップにおいて移動した視野枠によって前記狭小画像を取り出すことを特徴とする色彩配列コードの読み取り方法である。 (3) Further, in the color array code reading method according to the above (1) or (2), the present invention relates to the field frame in which one or a plurality of the narrow image extracting steps are set in the image. A first visual field frame moving step for moving the position of the image in accordance with a user's instruction within the image, wherein the narrow image extracting step is configured to move the narrow image by the visual field frame moved in the visual field frame moving step. It is a color array code reading method characterized in that it is extracted.

(4)また、本発明は、上記(1)又は(2)に記載の色彩配列コードの読み取り方法において、前記狭小画像取り出しステップは、前記予め設定された視野枠を、キャプチャされた前記画像ごとに異なる位置に移動させる第2の視野枠移動ステップ、をさらに含み、前記異なる位置に設定された視野枠の内部の狭小画像が、前記色彩配列コードを構成する色彩によって構成されている場合に、その視野枠の内部の狭小画像を取り出すことを特徴とする色彩配列コードの読み取り方法である。 (4) Further, in the color array code reading method according to the above (1) or (2), the narrow image extraction step may include the preset field frame for each captured image. A second visual field frame moving step for moving to a different position, and a narrow image inside the visual field frame set at the different position is constituted by colors constituting the color arrangement code, The color arrangement code reading method is characterized in that a narrow image inside the field frame is taken out.

(5)また、本発明は、上記(4)に記載の色彩配列コードの読み取り方法において、前記視野枠は、前記画像ごとに平行な方向に異なる位置に移動することを特徴とする色彩配列コードの読み取り方法である。 (5) Further, in the color arrangement code reading method according to (4), the present invention provides the color arrangement code, wherein the field frame moves to a different position in a parallel direction for each image. Is the reading method.

(6)また、本発明は、上記(4)に記載の色彩配列コードの読み取り方法において、前記視野枠は、前記画像ごとに前記視野枠の中心点を軸として回転する方向に異なる位置に移動することを特徴とする色彩配列コードの読み取り方法である。 (6) In the color arrangement code reading method according to (4), the field frame is moved to a different position in the direction of rotation about the center point of the field frame for each image. The color array code reading method is characterized in that:

(7)また、本発明は、上記(4)に記載の色彩配列コードの読み取り方法において、前記視野枠は、前記画像ごとに平行な方向に、かつ、前記視野枠の中心点を軸として回転して移動することを特徴とする色彩配列コードの読み取り方法である。 (7) In the color arrangement code reading method according to (4), the field frame is rotated in a parallel direction for each image and with the center point of the field frame as an axis. The color arrangement code reading method is characterized in that the color arrangement code moves.

(8)また、本発明は、上記(1)又は(2)に記載の色彩配列コードの読み取り方法において、前記狭小画像取り出しステップは、前記予め設定された視野枠を前記画像上において走査する第3の視野枠移動ステップ、をさらに含み、前記視野枠移動ステップにおいて走査する視野枠の内部の狭小画像が、前記色彩配列コードを構成する色彩で構成されている場合に、前記視野枠の内部の狭小画像を取り出すことを特徴とする色彩配列コードの読み取り方法である。 (8) In the color array code reading method according to (1) or (2), in the present invention, the narrow image extracting step includes a step of scanning the preset field frame on the image. 3 field frame moving step, and when the narrow image inside the field frame to be scanned in the field frame moving step is composed of colors constituting the color arrangement code, A color arrangement code reading method characterized in that a narrow image is taken out.

(9)また、本発明は、上記(8)に記載の色彩配列コードの読み取り方法において、前記視野枠は、前記画像上を縦方向又は横方向に平行に走査することを特徴とする色彩配列コードの読み取り方法である。 (9) In the color array code reading method according to (8), the field frame scans the image in parallel in the vertical direction or the horizontal direction on the image. How to read the code.

(10)また、本発明は、上記(8)に記載の色彩配列コードの読み取り方法において、
前記視野枠は、前記視野枠の中心点を軸として回転する方向に走査することを特徴とする色彩配列コードの読み取り方法である。
(10) Further, the present invention provides the color array code reading method according to (8) above,
The field frame is a method of reading a color arrangement code, wherein the field frame is scanned in a direction rotating around a center point of the field frame.

(11)また、本発明は、上記(8)に記載の色彩配列コードの読み取り方法において、前記視野枠は、前記画像ごとに平行な方向に、かつ、前記視野枠の中心点を軸として回転して走査することを特徴とする色彩配列コードの読み取り方法である。 (11) In the color array code reading method according to (8), the field frame is rotated in a parallel direction for each image and with the center point of the field frame as an axis. The color array code reading method is characterized in that scanning is performed.

(12)また、本発明は、上記(1)〜(11)のいずれかに記載の色彩配列コードの読み取り方法において、前記視野枠は所定の幅と長さを有する形状であって、長手方向の一方が前記一方端であり、他方が前記他方端であり、前記長さが前記幅よりも長いことを特徴とする色彩配列コードの読み取り方法である。 (12) In the color array code reading method according to any one of (1) to (11), the field frame may have a shape having a predetermined width and length, and may be in a longitudinal direction. One of the above is the one end, the other is the other end, and the length is longer than the width.

(13)また、本発明は、上記(12)に記載の色彩配列コードの読み取り方法において、前記視野枠のいずれかの辺は、曲線であり、前記視野枠が曲線状に配置されていることを特徴とする色彩配列コードの読み取り方法である。 (13) In the color array code reading method according to (12), any one side of the field frame is a curve, and the field frame is arranged in a curved shape. A color array code reading method characterized by the above.

(14)また、本発明は、上記(12)又は(13)に記載の色彩配列コードの読み取り方法において、前記色彩配列情報生成ステップは、さらに、前記狭小画像中の各色彩領域の前記狭小画像の長手方向の長さを測定し、測定した長さも前記各色彩領域ごとに記述した前記色彩配列情報を生成する長さ追記ステップと、前記長さが所定の基準値より小さい場合、その色彩領域を表す色彩情報を前記色彩配列情報から削除するデータ削除ステップと、その削除した色彩情報の前後に隣接する他の色彩情報をつめる色彩配列情報修正ステップ、を含むことを特徴とする色彩配列コードの読み取り方法である。 (14) In the color arrangement code reading method according to (12) or (13), the color arrangement information generation step may further include the narrow image of each color region in the narrow image. A length addition step for generating the color arrangement information described for each color area, and if the length is smaller than a predetermined reference value, the color area A data deletion step of deleting color information representing the color arrangement information from the color arrangement information, and a color arrangement information correction step of filling other color information adjacent before and after the deleted color information. It is a reading method.

(15)また、本発明は、上記(1)〜(14)のいずれかに記載の色彩配列コードの読み取り方法において、前記色彩配列情報中に、前記色彩配列コードを構成する構成色が混色した色彩の領域の色彩情報が存在し、その混色した色彩の領域に隣接する領域の色彩が前記構成色である場合に、その混色した色彩を、その色彩領域に隣接するいずれかの色彩領域の色彩であると見なす色彩見なしステップ、を含むことを特徴とする色彩配列コードの読み取り方法である。 (15) Further, in the color array code reading method according to any one of (1) to (14), the present invention is configured such that the constituent colors constituting the color array code are mixed in the color array information. When there is color information of the color area and the color of the area adjacent to the mixed color area is the component color, the mixed color is the color of any color area adjacent to the color area. A method for reading a color arrangement code, comprising: a color deeming step for deeming that

(16)また、本発明は、上記(1)〜(15)のいずれかに記載の色彩配列コードの読み取り方法において、前記狭小画像取り出しステップと、前記色彩配列情報生成ステップと、の間に、前記狭小画像中の各画素の値を、その画素を含み、前記狭小画像の幅方向に伸展する画素列の平均値と置き換える均一化処理ステップ、を含み、前記色彩配列情報生成ステップは、前記均一化処理を行った後の前記狭小画像に基づいて前記色彩配列情報を生成することを特徴とする色彩配列コードの読み取り方法である。 (16) Moreover, in the color array code reading method according to any one of (1) to (15), the present invention provides a method for extracting the narrow image and the color array information generating step. A uniformizing step for replacing the value of each pixel in the narrow image with an average value of a pixel row including the pixel and extending in the width direction of the narrow image, and the color array information generating step includes the uniform The color arrangement code reading method, wherein the color arrangement information is generated based on the narrow image after performing the conversion process.

(17)また、本発明は、色彩の遷移によってデータを表す色彩配列コードの読み取り方法において、前記色彩配列コードを含む画像をキャプチャするキャプチャステップと、 前記画像中の各画素の値に基づき前記画像を色彩領域に分割する分割ステップと、前記画像内の予め決められた位置にある画素を含む色彩領域が前記色彩配列コードのスタートセルであるとみなす第1のスタートセルみなしステップと、前記スタートセルに隣接する他の色彩領域のうち、予め決められた色彩の色彩領域を前記色彩配列コードの第2セルであるとみなす第2セルみなしステップと、第(k+1)セルの重心点と、前記第(k+1)セルに隣接する他の各色彩領域の各重心点と、を通る直線を前記各重心点ごとに描き、それら直線の中から、前記第(k+1)セルの重心点と、第kセルの重心点と、を通る直線に対して成す角が最も小さい直線を選択し、その選択した直線が通る2個の重心点のうち前記第(k+1)セルの重心点以外の重心点が属する色彩領域を前記色彩配列コードの第(k+2)セルであるとみなすセル選択ステップと、前記スタートセルから前記第nセルに至るセル群であるとみなした前記各色彩領域ごとに、前記各色彩領域の色彩と、前記スタートセルから前記第nセルに至るまでの順番と、を記述した色彩配列情報を生成する色彩配列情報生成ステップと、前記色彩配列情報中の色彩領域の色彩及び順番が、前記色彩配列コードを構成するセル群の色彩及び順番であるとみなして、前記色彩及び順番に基づいて前記色彩配列コードをデコードし前記データを出力するデコードステップと、
を含むことを特徴とする色彩配列コードの読み取り方法である。(なお、kは1以上の自然数であり、nはkより大きい自然数とする。)
(18)また、本発明は、色彩の遷移によってデータを表す色彩配列コードの読み取り方法において、前記色彩配列コードを含む画像をキャプチャするキャプチャステップと、前記画像中の各画素の値に基づき前記画像を色彩領域に分割する分割ステップと、前記画像内の予め決められた画像端に接する色彩領域群の中から、予め決められた色彩の色彩領域を選択し、その選択した色彩領域を前記色彩配列コードのスタートセルであるとみなす第2のスタートセルみなしステップと、前記スタートセルに隣接する他の色彩領域のうち、予め決められた色彩の色彩領域を前記色彩配列コードの第2セルであるとみなす第2セルみなしステップと、第(k+1)セルの重心点と、前記第(k+1)セルに隣接する他の各色彩領域の各重心点と、を通る直線を前記各重心点ごとに描き、それら直線の中から、前記第(k+1)セルの重心点と、第kセルの重心点と、を通る直線に対して成す角が最も小さい直線を選択し、その選択した直線が通る2個の重心点のうち前記第(k+1)セルの重心点以外の重心点が属する色彩領域を前記色彩配列コードの第(k+2)セルであるとみなすセル選択ステップと、前記スタートセルから前記第nセルに至るセル群であるとみなした前記各色彩領域ごとに、前記各色彩領域の色彩と、前記スタートセルから前記第nセルに至るまでの順番と、を記述した色彩配列情報を生成する色彩配列情報生成ステップと、前記色彩配列情報中の色彩領域の色彩及び順番が、前記色彩配列コードを構成するセル群の色彩及び順番であるとみなして、前記色彩及び順番に基づいて前記色彩配列コードをデコードし前記データを出力するデコードステップと、を含むことを特徴とする色彩配列コードの読み取り方法である。(なお、kは1以上の自然数であり、nはkより大きい自然数とする。)
(19)また、本発明は、上記(17)に記載の色彩配列コードの読み取り方法において、前記第1のスタートセルみなしステップにおける前記予め決められた位置は複数あり、
前記第1のスタートセルみなしステップは、前記複数の予め決められた位置のいずれかの位置の色彩が、予め決められた色彩である場合に、その色彩領域を前記色彩配列コードのスタートセルであるとみなすことを特徴とする色彩配列コードの読み取り方法である。
(17) Further, the present invention provides a method for reading a color array code representing data by color transition, a capture step for capturing an image including the color array code, and the image based on a value of each pixel in the image A step of dividing the image into color regions, a first start cell deeming step in which a color region including a pixel at a predetermined position in the image is regarded as a start cell of the color arrangement code, and the start cell A second cell deeming step that regards a color region of a predetermined color as a second cell of the color arrangement code among other color regions adjacent to, a centroid point of the (k + 1) th cell, and the first A straight line passing through each centroid point of each of the other color regions adjacent to the (k + 1) cell is drawn for each centroid point, and the (k) +1) The straight line having the smallest angle with respect to the straight line passing through the centroid point of the cell and the centroid point of the kth cell is selected, and the (k + 1) th centroid point among the two centroid points through which the selected straight line passes. The cell selection step of regarding a color region to which a barycentric point other than the barycentric point of a cell belongs as the (k + 2) th cell of the color arrangement code, and the cell group from the start cell to the nth cell For each color area, a color array information generating step for generating color array information describing the color of each color area and the order from the start cell to the nth cell, and in the color array information Assuming that the color and order of the color area are the colors and order of the cells constituting the color array code, the color array code is decoded based on the color and order and the data is output. And code step,
A method of reading a color arrangement code. (K is a natural number of 1 or more, and n is a natural number greater than k.)
(18) Further, according to the present invention, in a method for reading a color array code representing data by color transition, a capture step for capturing an image including the color array code, and the image based on a value of each pixel in the image A division step for dividing the color region into color regions, and selecting a color region of a predetermined color from a group of color regions in contact with a predetermined image edge in the image, and selecting the selected color region in the color array A second start cell deeming step which is regarded as a start cell of the code, and a color region of a predetermined color among the other color regions adjacent to the start cell is the second cell of the color arrangement code A second cell considering step, a centroid point of the (k + 1) th cell, and centroid points of other color regions adjacent to the (k + 1) th cell; A straight line with the smallest angle formed with respect to the straight line passing through the centroid point of the (k + 1) -th cell and the centroid point of the k-th cell is selected from the centroid points. A cell selection step in which a color region to which a centroid other than the centroid of the (k + 1) th cell among the two centroids through which the selected straight line passes is regarded as the (k + 2) th cell of the color arrangement code. And for each of the color areas regarded as a cell group from the start cell to the nth cell, the color of each color area and the order from the start cell to the nth cell, The color arrangement information generation step for generating the described color arrangement information, and the color and order of the color areas in the color arrangement information are regarded as the color and order of the cell group constituting the color arrangement code, and the color as well as A color disposition code reading method, which comprises a, a decoding step of outputting the decoded the data the color sequence code based on the turn. (K is a natural number of 1 or more, and n is a natural number greater than k.)
(19) Further, in the color array code reading method according to the above (17), the present invention provides a plurality of the predetermined positions in the first start cell considering step,
In the first start cell deeming step, when a color at any one of the plurality of predetermined positions is a predetermined color, the color area is a start cell of the color arrangement code. This is a color array code reading method characterized in that

(20)また、本発明は、上記(18)に記載の色彩配列コードの読み取り方法において、前記第2のスタートセルみなしステップの前記予め決められた色彩は、前記色彩配列コードが付された物品の地色、又は、地色に対して前面を彩色した下地色であることを特徴とする色彩配列コードの読み取り方法である。 (20) Further, in the color array code reading method according to the above (18), the present invention provides an article to which the predetermined color of the second start cell deeming step is attached with the color array code. Or a background color obtained by coloring the front surface of the ground color.

(21)また、本発明は、色彩の遷移によってデータを表す色彩配列コードの読み取り装置において、前記色彩配列コードを含む画像をキャプチャするキャプチャ手段と、前記画像内に予め設定された細長い視野枠の内部の狭小画像を取り出す狭小画像取り出し手段と、前記狭小画像中の各画素の値によって前記狭小画像を複数の色彩領域に分割する分割手段と、前記各色彩領域ごとに、前記色彩領域の色彩と、前記狭小画像の一方端から他方端に至るまでの順番と、を記述した色彩配列情報を生成する色彩配列情報生成手段と、前記色彩配列情報中の色彩領域の色彩及び順番が、前記色彩配列コードを構成するセル群の色彩及び順番であるとみなして、前記色彩及び順番に基づいて前記色彩配列コードをデコードし前記データを出力するデコード手段と、を含むことを特徴とする色彩配列コードの読み取り装置である。 (21) Further, according to the present invention, in a color arrangement code reading device that represents data by color transition, a capture unit that captures an image including the color arrangement code, and an elongated field frame preset in the image A narrow image extracting means for extracting an internal narrow image, a dividing means for dividing the narrow image into a plurality of color regions according to the value of each pixel in the narrow image, and for each color region, the color of the color region Color arrangement information generating means for generating color arrangement information describing the order from one end to the other end of the narrow image, and the color and order of the color areas in the color arrangement information are the color arrangement It is assumed that it is the color and order of the cells constituting the code, and the color array code is decoded based on the color and order and the data is output. And over de unit, a reader of color disposition code, which comprises a.

(22)また、本発明は、色彩の遷移によってデータを表す色彩配列コードの読み取り装置において、前記色彩配列コードを含む画像をキャプチャするキャプチャ手段と、
前記画像内に予め設定された細長い視野枠の内部の狭小画像を取り出す狭小画像取り出し手段と、前記狭小画像中の各画素の値によって前記狭小画像を複数の色彩領域に分割する分割手段と、前記各色彩領域ごとに、前記狭小画像の一方端から他方端に至るまでの順番と、前記色彩領域の色彩と、を記述した色彩配列情報を生成する色彩配列情報生成手段と、前記色彩配列情報のうち、前記色彩配列コードのスタートを示す切り出し用冗長セルの色彩が付された前記色彩領域を表す色彩情報と、前記色彩配列コードのエンドを示す切り出し用冗長セルの色彩が付された前記色彩領域を表す色彩情報と、の間にある色彩配列情報中の色彩領域の色彩及び順番が、前記色彩配列コードを構成するセル群の色彩及び順番であるとみなして、前記色彩配列情報に基づいて前記色彩配列コードをデコードし前記データを出力するデコード手段と、を含むことを特徴とする色彩配列コードの読み取り装置である。
(22) Further, according to the present invention, in a color arrangement code reading device that represents data by color transition, capture means for capturing an image including the color arrangement code;
A narrow image extracting means for extracting a narrow image inside an elongated field frame set in advance in the image; a dividing means for dividing the narrow image into a plurality of color regions according to values of each pixel in the narrow image; For each color area, color arrangement information generating means for generating color arrangement information describing the order from one end of the narrow image to the other end and the color of the color area, and the color arrangement information Among them, the color information indicating the color area to which the color of the redundant cell for extraction indicating the start of the color arrangement code is attached, and the color area to which the color of the redundant cell for extraction indicating the end of the color arrangement code is attached. The color information indicating the color arrangement and the color area in the color arrangement information between them are considered to be the color and the order of the cell group constituting the color arrangement code, and the color And decoding means for decoding the color sequence encoding outputs the data based on the column information, a reading device color sequence code, which comprises a.

(23)また、本発明は、上記(21)又は(22)に記載の色彩配列コードの読み取り装置において、前記画像内に1個又は複数個設定された前記視野枠の位置を、前記画像内で、利用者の指示に従って移動する視野枠移動手段、を含み、前記狭小画像取り出し手段が、前記移動した視野枠によって前記狭小画像を取り出すことを特徴とする色彩配列コードの読み取り装置である。 (23) Further, the present invention provides the color arrangement code reader according to (21) or (22) above, wherein the position of the field frame set in the image is set in the image. The color arrangement code reading device includes: a field frame moving unit that moves in accordance with a user instruction, wherein the narrow image extracting unit extracts the narrow image by the moved field frame.

本発明に係る読み取り方法によれば、色彩配列の一部が境界条件と合致していなくても、視野枠を用いて境界条件と合致する部分を切り出してデコードすることができる。   According to the reading method of the present invention, even if a part of the color arrangement does not match the boundary condition, a portion that matches the boundary condition can be cut out and decoded using the field frame.

また、本発明に係る読み取り方法によれば、色彩配列の一部が境界条件と合致していなくても、色彩配列の直線性を利用して追跡したので、デコードすることができる。   Also, according to the reading method of the present invention, even if a part of the color arrangement does not match the boundary condition, the tracking is performed using the linearity of the color arrangement, so that it can be decoded.

1Dカラービットコード読み取り方法の原理図である。It is a principle diagram of a 1D color bit code reading method. 1Dカラービットコード読み取り装置を示す図である。It is a figure which shows 1D color bit code reading apparatus. ノイズの処理方法を説明する図である。It is a figure explaining the processing method of noise. 色彩が混在する領域の処理方法を説明する図である。It is a figure explaining the processing method of the area | region where a color is mixed. 色彩の平均化処理を説明する図である。It is a figure explaining the averaging process of a color. 短辺方向色彩均一化処理を説明する図である。It is a figure explaining the short side direction color equalization process. 白色を1Dカラービットコードの構成色の1つとする場合のセルのマーキング方法を説明する図である。It is a figure explaining the marking method of the cell in case white is made into one of the constituent colors of 1D color bit code. 切り出し用冗長セルを説明する図である。It is a figure explaining the redundant cell for cut-out. 切り出し用冗長セルを利用した読み取り方法を説明する図である。It is a figure explaining the reading method using the redundant cell for cutting. 視野枠の数・配置・形状のバリエーションを示す図である。It is a figure which shows the variation of the number, arrangement | positioning, and shape of a visual field frame. 1Dカラービットコードの構成セルを追跡する方法を説明する図である。It is a figure explaining the method of tracking the structure cell of 1D color bit code. 1Dカラービットコードの構成セルを追跡する方法を説明する拡大図である。It is an enlarged view explaining the method of tracking the structure cell of 1D color bit code. 端点セルを含む1Dカラービットコードを追跡する方法を説明する図である。It is a figure explaining the method of tracking 1D color bit code containing an endpoint cell. 1Dカラービットコードの探索方法を説明する図である。It is a figure explaining the search method of 1D color bit code. 直列1Dカラービットコードの読み取り方法を説明する図である。It is a figure explaining the reading method of a serial 1D color bit code. 直列1Dカラービットコードの読み取り方法を説明する図である。It is a figure explaining the reading method of a serial 1D color bit code. 色彩の配列及びデコード結果を示す図である。It is a figure which shows the arrangement | sequence of a color and the decoding result. 本実施の形態に係る読み取り方法の効果を説明する図である。It is a figure explaining the effect of the reading method which concerns on this Embodiment.

(1)本実施の形態に係る読み取り方法の特徴事項
特徴事項1
1Dカラービットコードは、本発明者が先に出願した特願2007−130504号に示した方法によって1Dカラービットコードを含む画像から切り出される。本実施の形態における特徴事項の1つは、この切り出しを行う前に、1Dカラービットコードの画像の一部を視野枠を使用して取り出す点である。
(1) Features of the reading method according to this embodiment
Feature 1
The 1D color bit code is cut out from an image including the 1D color bit code by the method described in Japanese Patent Application No. 2007-130504 filed earlier by the present inventor. One of the characteristic matters in the present embodiment is that a part of the image of the 1D color bit code is taken out using the field frame before performing this clipping.

1Dカラービットコードが所定の境界条件と成立条件とを満たしていれば、デコード手段は、その1Dカラービットコードを読み取ることができる。ここで、境界条件とは、例えば「各セルは他の1個又は2個のセルと接する」という条件である。また、成立条件とは、従来と同様に、Rの個数、Gの個数、Bの個数、スタートの端部の色彩、エンドの端部の色彩、誤り訂正符号、などの条件である。   If the 1D color bit code satisfies predetermined boundary conditions and fulfillment conditions, the decoding means can read the 1D color bit code. Here, the boundary condition is, for example, a condition that “each cell is in contact with one or two other cells”. Further, the establishment conditions are conditions such as the number of R, the number of G, the number of B, the color at the end of the start, the color at the end of the end, and the error correction code, as in the conventional case.

しかし、1Dカラービットコードのごく一部のセルが、例えば3個のセルと接する場合には、そのセルは境界条件を満たさなくなるため、1Dカラービットコード全体を読み取れなくなる場合がある。   However, if only a part of the cells of the 1D color bit code are in contact with, for example, three cells, the cells do not satisfy the boundary condition, and the entire 1D color bit code may not be read.

一方、読み取る範囲を狭めて、境界条件を満たさない部分を読み取り対象から除外すれば、1Dカラービットコードを読み取れる場合がある。1Dカラービットコードのごく一部だけが境界条件を満たさない場合には、その部分だけを除いて、残りの部分を読むことが好ましい場合も多い。   On the other hand, if the reading range is narrowed and a portion that does not satisfy the boundary condition is excluded from the reading target, the 1D color bit code may be read. When only a part of the 1D color bit code does not satisfy the boundary condition, it is often preferable to read the remaining part except for the part.

そこで、本実施の形態においては、デコード手段内で起動しているアプリケーションが、1Dカラービットコードの画像データ上にソフトウェア的にマスクする処理を行い、画像データを、マスクされた部分と、マスクされない部分と、に分ける。本実施の形態では、マスクされない部分を特に「狭小視野」という。本実施の形態における特徴事項の1つは、この狭小視野の画像だけを読み取り、デコードすることである。   Therefore, in the present embodiment, an application running in the decoding means performs a process of masking on the image data of the 1D color bit code by software, and the image data is not masked with the masked portion. Divide into parts. In the present embodiment, a portion that is not masked is particularly referred to as a “narrow field of view”. One of the features in the present embodiment is that only the image with the narrow field of view is read and decoded.

特徴事項2
本実施の形態において、狭小視野の位置は、デコード手段が画像上に視野枠で表示することによって利用者に提示される。視野枠の形状は、1Dカラービットコードの境界条件を満たさない部分を除外するような形状である必要がある。
Feature 2
In the present embodiment, the position of the narrow visual field is presented to the user by the decoding means displaying it on the image with a visual field frame. The shape of the field frame needs to be a shape that excludes a portion that does not satisfy the boundary condition of the 1D color bit code.

例えば、板状体の端面にマーキングされた1Dカラービットコードを読み取る場合には、短辺を1Dカラービットコードの幅よりも狭く設定した視野枠を用いることが好ましい。視野枠の内部に1Dカラービットコードの境界条件を満たさない部分が入らないようにするためである。この場合、視野枠の形状は、いわば幅の狭い直線状となる。この幅の狭い直線状の視野枠も、本願の特許請求の範囲に記載の「視野枠」の形状の好適な一例に相当する。   For example, when reading a 1D color bit code marked on the end face of a plate-like body, it is preferable to use a field frame in which the short side is set narrower than the width of the 1D color bit code. This is to prevent a portion that does not satisfy the boundary condition of the 1D color bit code from entering the field frame. In this case, the shape of the field frame is a narrow linear shape. The narrow linear field frame corresponds to a preferable example of the shape of the “field frame” described in the claims of the present application.

このように直線状の1Dカラービットコードのうち、幅の狭い直線状の視野枠の内部に位置する部分のみを読み取れば、1Dカラービットコードの直列性を阻む部分を読み取り対象から除外することができる可能性が高い。この結果、1Dカラービットコードの直列性を阻む部分に影響されることなく、良好に1Dカラービットコードを読み取ることができ確率を向上させることができる。   In this way, if only the portion located inside the narrow linear field frame is read out of the linear 1D color bit code, the portion that prevents the seriality of the 1D color bit code may be excluded from the reading target. It is highly possible. As a result, the 1D color bit code can be satisfactorily read without being affected by the portion that obstructs the seriality of the 1D color bit code, and the probability can be improved.

特徴事項3
また、本実施の形態における別の特徴事項は、1Dカラービットコードの切り出し動作及びデコード動作が、視野枠の長手方向(直線方向)の色彩変化のみに着目して行われる点である。
Feature 3
Another feature of the present embodiment is that the cut-out operation and the decoding operation of the 1D color bit code are performed by paying attention only to the color change in the longitudinal direction (linear direction) of the field frame.

なお、本実施の形態において、「切り出し」とは、直線状の視野枠内の色彩配列(色彩領域群)から1Dカラービットコードを構成するセル群を検出して、取り出すことをいう。また、本実施の形態において、「デコード」とは、取り出した1Dカラービットコードを構成するセル群に付された色彩の配列順を認識し、その認識した配列順からデータを出力することをいう。   In the present embodiment, “cutout” refers to detecting and extracting a cell group constituting a 1D color bit code from a color arrangement (color area group) in a linear field frame. In the present embodiment, “decoding” refers to recognizing the arrangement order of the colors assigned to the cell group constituting the extracted 1D color bit code, and outputting data from the recognized arrangement order. .

(2)従来の読み取り方法
従来の読み取り方法では、キャプチャした画像において「各セルは1個又は2個の他のセルと接する」という境界条件を満たすセルを追跡し、1Dカラービットコードを読み取っていた。しかし、1Dカラービットコードのごく一部が汚れや印刷ミス、ノイズ等によって境界条件を満たさなくなると1Dカラービットコード全体が読み取れなくなる場合もあった。
(2) Conventional Reading Method In the conventional reading method, a 1D color bit code is read by tracking a cell that satisfies the boundary condition “each cell touches one or two other cells” in a captured image. It was. However, if a small part of the 1D color bit code does not satisfy the boundary condition due to dirt, printing mistakes, noise, or the like, the entire 1D color bit code may not be read.

図1には、本実施の形態における1Dカラービットコード読み取り方法の原理図が示されている。この図中には、11個の色彩領域14群が示されている。これら11個の色彩領域14群のうち、9個の色彩領域(色彩領域14a、14b、14c、14d、14f、14g、14h、14i、14j)は、図1の左から右に向かって直列に配列されている。これら9個の色彩領域14a、14b、14c、14d、14f、14g、14h、14i、14jには、それぞれR、G、B、R、B、R、G、R、Bが付されている。これら9個の色彩領域14群は1Dカラービットコード10の構成セルであり、各セル間の色彩の変化がデータを表す。   FIG. 1 shows a principle diagram of a 1D color bit code reading method according to the present embodiment. In this figure, 11 color regions 14 groups are shown. Of these 11 color area 14 groups, 9 color areas (color areas 14a, 14b, 14c, 14d, 14f, 14g, 14h, 14i, 14j) are arranged in series from left to right in FIG. It is arranged. These nine color regions 14a, 14b, 14c, 14d, 14f, 14g, 14h, 14i, and 14j are assigned R, G, B, R, B, R, G, R, and B, respectively. These nine color area 14 groups are constituent cells of the 1D color bit code 10, and a change in color between the cells represents data.

残りの2個の色彩領域14e、14kは、それぞれ{G}、{R、G、Bのいずれでもない色彩(Q)}である。これら2個の色彩領域14e、14kは、1Dカラービットコード10の構成セルではない。なお、11個の色彩領域14群の周囲には、1Dカラービットコード10がマーキングされた被印物の表面そのものが写っている。被印物表面が写った部分は、1Dカラービットコード10と(図1中には示されていない)周囲の1Dカラービットコードではない領域とを区分けする役割を担う。   The remaining two color regions 14e and 14k are {G}, {color (Q)} that is not any of R, G, and B, respectively. These two color areas 14 e and 14 k are not constituent cells of the 1D color bit code 10. The surface of the object to be marked with the 1D color bit code 10 is reflected around the 11 color regions 14 group. The portion in which the surface of the object is shown plays a role of distinguishing the 1D color bit code 10 from the surrounding area (not shown in FIG. 1) that is not the 1D color bit code.

ところで、1Dカラービットコード10の構成色が付されている10個の色彩領域のうち、色彩領域14b、14d、14f、14g、14h、14iは、3個以上の他の色彩領域と接する。1Dカラービットコード10の構成セル群のうち一部のセルが3個以上の他のセルと接すると、セルが連なる方向が2つ以上存在することとなり、セルの直列性が阻まれる。   By the way, among the ten color regions to which the constituent colors of the 1D color bit code 10 are attached, the color regions 14b, 14d, 14f, 14g, 14h, and 14i are in contact with three or more other color regions. If some cells in the constituent cell group of the 1D color bit code 10 are in contact with three or more other cells, two or more directions in which the cells are connected exist, and the seriality of the cells is prevented.

従来の1Dカラービットコードの切り出しアルゴリズムでは、「各セルは1個又は2個の他のセルと接する」という境界条件を満たす必要があるが、これら色彩領域14b、14d、14f、14g、14h、14iは3個以上の他のセルと接するため、この境界条件を満たさない。そのため、従来の切り出しアルゴリズムを利用した読み取り方法では、1Dカラービットコード10は切り出しの対象とはならなかった。   In the conventional 1D color bit code segmentation algorithm, the boundary condition “each cell touches one or two other cells” needs to be satisfied, but these color regions 14b, 14d, 14f, 14g, 14h, Since 14i contacts three or more other cells, this boundary condition is not satisfied. For this reason, the 1D color bit code 10 is not a target for extraction by the conventional reading method using the extraction algorithm.

1Dカラービットコードのごく一部が汚れや印刷ミス、ノイズ等によって境界条件を満たさないために1Dカラービットコード全体が読み取れなくなるのは妥当ではない場合も多い。1Dカラービットコードのごく一部に汚れ等があっても、その汚れ等を読み取り対象から除外して1Dカラービットコードを読み取れれば、非常に便利である。   In many cases, it is not appropriate that the entire 1D color bit code cannot be read because a small part of the 1D color bit code does not satisfy the boundary condition due to dirt, printing mistakes, noise, or the like. Even if a very small part of the 1D color bit code is contaminated, it is very convenient if the 1D color bit code can be read by removing the dirt from the reading target.

本実施の形態では、このように1Dカラービットコードのごく一部に汚れ等があっても1Dカラービットコードを読み取れる可能性が高い読み取り方法である。   In this embodiment, the reading method is highly likely to be able to read the 1D color bit code even if only a part of the 1D color bit code is contaminated.

(3)本実施の形態に係る読み取り方法の原理
(3−1)読み取り装置
本実施の形態における読み取り装置を図2に基づいて説明する。図2には、1Dカラービットコードのデコードを行うデコード手段16が示されている。デコード手段16にはキャプチャ手段18が接続されている。このキャプチャ手段18は、図2では三脚上に固定されており、被印物20群がキャプチャ手段18の前を次々に移動している。キャプチャ手段18は、被印物20群にマーキングされた各1Dカラービットコード22をキャプチャし、その画像データをデコード手段16に送信する。なお、キャプチャ手段18は固定される必要はなく、例えば利用者がキャプチャ手段18を持ちながら各1Dカラービットコード22をキャプチャすることも好ましい。
(3) Principle of Reading Method According to this Embodiment (3-1) Reading Device The reading device in this embodiment will be described with reference to FIG. FIG. 2 shows a decoding means 16 for decoding the 1D color bit code. A capture means 18 is connected to the decoding means 16. The capture means 18 is fixed on a tripod in FIG. 2, and the group of objects to be stamped 20 is successively moved in front of the capture means 18. The capture unit 18 captures each 1D color bit code 22 marked on the group of objects to be marked 20 and transmits the image data to the decoding unit 16. The capture means 18 does not need to be fixed. For example, it is preferable that the user captures each 1D color bit code 22 while holding the capture means 18.

(3−2)読み取り方法
デコード手段16は、1Dカラービットコード22をデコードする所定のアプリケーションを起動している。デコード手段16の画面には、キャプチャ手段18から受信した画像データ24が写し出されている。デコード手段16は、画像データ24上にソフトウェア的にマスクする処理を行い、画像データ24を、マスクされた部分と、マスクされない部分と、に分ける。本実施の形態では、マスクされない部分を狭小視野と呼ぶ。デコード手段16は、利用者の指示に従って画面データ上に狭小視野の位置を視野枠26で表示する。本実施の形態では、視野枠の内部の画像を狭小画像という。
(3-2) Reading Method The decoding unit 16 activates a predetermined application for decoding the 1D color bit code 22. The image data 24 received from the capture means 18 is shown on the screen of the decoding means 16. The decoding means 16 performs a process of masking on the image data 24 by software, and divides the image data 24 into a masked part and an unmasked part. In the present embodiment, a portion that is not masked is called a narrow field of view. The decoding means 16 displays the position of the narrow visual field in the visual field frame 26 on the screen data according to the user's instruction. In the present embodiment, the image inside the field frame is referred to as a narrow image.

上述した図1には、直列状にセル群が配列して成る1Dカラービットコード10をキャプチャしたキャプチャ画像12が示されている。まずは、最も簡単な配置の例として、直列状の1Dカラービットコード10を視野枠Bで読み取る方法を説明する。   FIG. 1 described above shows a captured image 12 obtained by capturing a 1D color bit code 10 in which cells are arranged in series. First, as an example of the simplest arrangement, a method of reading the serial 1D color bit code 10 with the field frame B will be described.

デコード手段は、視野枠Bでキャプチャ画像12の一部を取り出すと、左から右に向かって「色彩領域14a→14b→14c→14d→14f→14g→14h→14i→14j」の順に並ぶ狭小画像を得る。次に、デコード手段は、この狭小画像中の各画素の値に基づいて狭小画像を複数の色彩領域に分割する。そして、狭小画像の左端から右端至るまでに、{Rの色彩領域}、{Gの色彩領域}、{Bの色彩領域}、{Rの色彩領域}、{Bの色彩領域}、{Rの色彩領域}、{Gの色彩領域}、{Rの色彩領域}、{Bの色彩領域}、がこの順に存在することを認識する。   When the decoding unit extracts a part of the captured image 12 in the field frame B, the narrow images arranged in the order of “color regions 14a → 14b → 14c → 14d → 14f → 14g → 14h → 14i → 14j” from left to right. Get. Next, the decoding means divides the narrow image into a plurality of color regions based on the value of each pixel in the narrow image. From the left end to the right end of the narrow image, {R color region}, {G color region}, {B color region}, {R color region}, {B color region}, {R color region} It is recognized that {color region}, {G color region}, {R color region}, and {B color region} exist in this order.

デコード手段は、狭小画像中の色彩領域14群について「各セルは他の1個又は2個のセルと接する」という境界条件を満たすかどうか判断する。図1では、視野枠Bの短辺が色彩領域14群の(図中の縦方向の)長さよりも短く設定されているので、視野枠B内の狭小画像中の色彩領域14群は境界条件を満たす。   The decoding means determines whether or not the boundary condition “each cell is in contact with one or two other cells” is satisfied for the group of color regions 14 in the narrow image. In FIG. 1, since the short side of the field frame B is set to be shorter than the length (in the vertical direction in the figure) of the color region 14 group, the color region 14 group in the narrow image in the field frame B is a boundary condition. Meet.

次に、デコード手段は、狭小画像が1Dカラービットコード10であると想定して各色彩領域ごとに色彩情報を生成する。色彩情報とは、色彩領域に割り振られた番号(ID)と、色彩を表す情報と、前方向に隣接する色彩領域の番号と、後方向に隣接する色彩領域の番号と、が記述された情報である。視野枠Bで取り出した狭小画像中には、9個の色彩領域が存在するので、9個の色彩情報が生成される。なお、境界条件が満たされないときは、デコード手段は色彩情報を作成せず、デコード手段は、キャプチャ手段から受信する次の画像データに対して同様の処理を行う。   Next, the decoding means assumes that the narrow image is the 1D color bit code 10, and generates color information for each color region. The color information is information in which a number (ID) assigned to the color area, information representing the color, the number of the color area adjacent in the forward direction, and the number of the color area adjacent in the backward direction are described. It is. Since nine color regions exist in the narrow image taken out in the field frame B, nine pieces of color information are generated. When the boundary condition is not satisfied, the decoding unit does not create color information, and the decoding unit performs the same process on the next image data received from the capture unit.

図1においては、1Dカラービットコードのスタートは左端の色彩領域14aであり、エンドは右端の色彩領域14jである。従って、図1においては、色彩領域の左に隣接する色彩領域が前方向に隣接する色彩領域であり、右に隣接する色彩領域が後方向に隣接する色彩領域である。従って、デコード手段は、視野枠Bで取り出した狭小画像に基づいて、「1、R、(なし)、2」、「2、G、1、3」、「3、B、2、4」、「4、R、3、5」、「5、B、4、6」、「6、R、5、7」、「7、G、6、8」、「8、R、7、9」、「9、B、8、(なし)」、という色彩情報を生成する。これら9個の色彩情報は1個の色彩配列情報を構成する。   In FIG. 1, the start of the 1D color bit code is the leftmost color area 14a, and the end is the rightmost color area 14j. Therefore, in FIG. 1, the color area adjacent to the left of the color area is the color area adjacent in the forward direction, and the color area adjacent to the right is the color area adjacent in the backward direction. Therefore, the decoding means, based on the narrow image taken out in the field frame B, “1, R, (none), 2”, “2, G, 1, 3”, “3, B, 2, 4”, “4, R, 3, 5”, “5, B, 4, 6”, “6, R, 5, 7”, “7, G, 6, 8”, “8, R, 7, 9”, Color information “9, B, 8, (none)” is generated. These nine pieces of color information constitute one piece of color arrangement information.

この後、デコード手段は、生成した色彩配列情報が1Dカラービットコード10の色彩の配列を表すとみなして、この色彩配列情報に基づいて1Dカラービットコード10のデコードを行い、データを出力する。   Thereafter, the decoding means regards the generated color arrangement information as representing the color arrangement of the 1D color bit code 10, decodes the 1D color bit code 10 based on the color arrangement information, and outputs data.

本実施の形態の読み取り方法によれば、たとえ1Dカラービットコードの一部に汚れ等があり一部が1Dカラービットコードの境界条件を満たしていなくても、デコード手段は、残りの境界条件を満たしている部分のみを読み取るので、従来のデコードアルゴリズムを利用して読み取れる可能性が飛躍的に高まる。   According to the reading method of the present embodiment, even if a part of the 1D color bit code is contaminated and a part does not satisfy the boundary condition of the 1D color bit code, the decoding means determines the remaining boundary condition. Since only the satisfying part is read, the possibility of reading using the conventional decoding algorithm is dramatically increased.

なお、本実施の形態においては、デコード手段は、特許請求の範囲に記載の狭小画像取り出し手段、及び分割手段、色彩配列情報生成手段、の好適な一例に相当する。   In the present embodiment, the decoding means corresponds to a preferable example of the narrow image extracting means, the dividing means, and the color arrangement information generating means described in the claims.

(3−3)視野枠について
視野枠の短辺の長さ
上述したように、本実施の形態における読み取り方法では、狭小画像だけを読み取ることを特徴の1つとする。従って、視野枠の短辺の長さは、狭小視野に境界条件を満たす部分のみが入る長さであることが好ましい。一般的には、視野枠の短辺方向(幅方向)の長さが短ければ短いほど、視野枠の内部に1Dカラービットコードの境界条件を満たさない部分が入りにくくなり、デコード手段が1Dカラービットコードを読み取れる確率が高くなる。従って、本実施の形態では、視野枠の短辺の長さは、キャプチャ画面上で最短の長さである1ピクセル又は数ピクセル程度に予め設定されている。
(3-3) Field frame
As described above the length of the short side of the field frame, the reading method of this embodiment, as one of features to read only narrow image. Therefore, the length of the short side of the field frame is preferably a length that allows only a portion satisfying the boundary condition to enter the narrow field of view. In general, the shorter the length of the field frame in the short side direction (width direction), the less likely the portion of the field frame that does not satisfy the boundary condition of the 1D color bit code is to enter, and the decoding means uses 1D color. The probability that the bit code can be read increases. Therefore, in the present embodiment, the length of the short side of the field frame is preset to about 1 pixel or several pixels which is the shortest length on the capture screen.

デコード手段は、視野枠内部の狭小画像が境界条件を満たすか否か判定し、判定結果をインジケーターで利用者に提示する。狭小画像が境界条件を満たす場合には、デコード手段はその狭小画像に基づいてデコードを行う。   The decoding means determines whether or not the narrow image inside the field frame satisfies the boundary condition, and presents the determination result to the user with an indicator. When the narrow image satisfies the boundary condition, the decoding means performs decoding based on the narrow image.

狭小画像が境界条件を満たさない場合には、利用者は、提示された判定結果と、狭小画像と、キャプチャ画像と、を見ながら、狭小画像が境界条件を満たすように種々の操作を行うことができる。   When the narrow image does not satisfy the boundary condition, the user performs various operations so that the narrow image satisfies the boundary condition while viewing the presented determination result, the narrow image, and the captured image. Can do.

視野枠の短辺を1ピクセル又は数ピクセル程度のわずかなピクセル数に設定すると、狭小画像のS/N比が低くなる。その結果、デコード手段は、デコードの際に視野枠の内部に存在するノイズ等の影響を強く受け、正確にデータを出力できない場合も予想される。   When the short side of the field frame is set to a small number of pixels such as one pixel or several pixels, the S / N ratio of a narrow image is lowered. As a result, it is expected that the decoding means is strongly influenced by noise or the like existing inside the field frame during decoding and cannot output data accurately.

そこで、利用者の指示に従ってデコード手段がメディアンフィルタなどを利用して狭小画像中のノイズに対して適当な処理を施すことによって、ノイズの影響が出力されるデータに及ぶのを防止する。この結果、視野枠の短辺がわずか数ピクセル程度にまで短く設定された場合でも、正しくデコードを行える可能性が高まる。   Therefore, the decoding means performs appropriate processing on the noise in the narrow image using a median filter or the like according to the user's instruction, thereby preventing the influence of the noise from reaching the output data. As a result, even if the short side of the field frame is set to be as short as a few pixels, the possibility of correct decoding increases.

視野枠の長辺の長さ
視野枠の長辺の長さは、予めデコード手段に設定された2つのタイプのうちいずれかが利用者によって選択される。
The length of the long side of the field frame The length of the long side of the field frame is selected by the user from two types set in advance in the decoding means.

一方のタイプは、視野枠の長辺の長さが1Dカラービットコードの長さよりも長い狭小視野である。他方のタイプは、視野枠の長辺の長さが1Dカラービットコードの長さよりも短い視野枠である。   One type is a narrow field of view in which the length of the long side of the field frame is longer than the length of the 1D color bit code. The other type is a field frame in which the length of the long side of the field frame is shorter than the length of the 1D color bit code.

図1には、前者のタイプの視野枠Aと、後者のタイプの視野枠Bと、が示されている。視野枠Aは、1Dカラービットコード10に対して十分に長いものの例である。視野枠Aの長手方向の両端は下地の領域にある。一方、視野枠Bは、1Dカラービットコード10よりも短く、その長手方向の両端が端点セルの領域内にある例である。色彩領域14aと視野枠Bとが重なる領域よりも色彩領域14aが十分長い。また他方の端点の色彩領域14jと視野枠Bとが重なる領域よりも色彩領域14jが十分長い。すなわち、言い換えれば、視野枠Aは被印物表面(Qz)がある場合の例である。視野枠Bは被印物表面(Qz)がない場合の例である。   FIG. 1 shows the former type of field frame A and the latter type of field frame B. The field frame A is an example of a sufficiently long one for the 1D color bit code 10. Both ends in the longitudinal direction of the field frame A are in the ground region. On the other hand, the field frame B is an example which is shorter than the 1D color bit code 10 and whose both ends in the longitudinal direction are within the end point cell region. The color region 14a is sufficiently longer than the region where the color region 14a and the field frame B overlap. The color region 14j is sufficiently longer than the region where the color region 14j at the other end point overlaps the field frame B. That is, in other words, the field frame A is an example in the case where the surface of the object to be marked (Qz) is present. The field frame B is an example when there is no surface (Qz) of the object to be marked.

まず、原則的には、視野枠Bが選択される。視野枠Bで切り出した狭小画像中の色彩領域群は全て1Dカラービットコードの構成色の色彩領域だからである。しかし、1Dカラービットコードが視野枠Bよりも長く、視野枠Bの内部に1Dカラービットコードを構成する色彩領域が入りきれない場合には、視野枠Aを選択してもよい。利用者は、1Dカラービットコードの「切り出し」やすさや或いは「デコード」のしやすさを考慮して、適宜、視野枠A又はBのいずれかを選択することができる。   First, in principle, the field frame B is selected. This is because the color area groups in the narrow image cut out by the field frame B are all color areas of the constituent colors of the 1D color bit code. However, if the 1D color bit code is longer than the field frame B and the color area constituting the 1D color bit code cannot be contained inside the field frame B, the field frame A may be selected. The user can select either the field frame A or B as appropriate in consideration of the ease of “cutting out” or “decoding” of the 1D color bit code.

視野枠Bでキャプチャ画像12の一部を取り出すと、左から右に向かって「色彩領域14a→14b→14c→14d→14f→14g→14h→14i→14j」の順に並ぶ狭小画像を得る。この狭小画像には、セル群の直列性を乱す部分は含まれていない。   When a part of the captured image 12 is extracted from the field frame B, narrow images arranged in the order of “color regions 14a → 14b → 14c → 14d → 14f → 14g → 14h → 14i → 14j” are obtained from the left to the right. This narrow image does not include a portion that disturbs the seriality of the cell group.

また、視野枠Aでキャプチャ画像12の一部を取り出すと、左から右に向かって「被印物表面→色彩領域14a→14b→14c→14d→14f→14g→14h→14i→14j→被印物表面」の順に並ぶ狭小画像を得る。この狭小画像にも、セル群の直列性を乱す部分は含まれていない。   Further, when a part of the captured image 12 is taken out from the field frame A, from the left to the right, “the surface of the object to be printed → the color region 14a → 14b → 14c → 14d → 14f → 14g → 14h → 14i → 14j → marked” Narrow images arranged in the order of “object surface” are obtained. This narrow image also does not include a portion that disturbs the seriality of the cell group.

なお、視野枠の長辺の長さは、原則的には、デコード手段が1Dカラービットコードの読み取り動作を行う前に予めBに設定されているが、デコードする度に利用者がデコード手段の画面上で適宜視野枠のタイプを選ぶようにしてもよい。   In principle, the length of the long side of the field frame is set to B in advance before the decoding means performs the reading operation of the 1D color bit code. You may make it choose the type of a visual field frame suitably on a screen.

このように、本実施の形態に係る読み取り方法によれば、セル群の直列性を乱す部分を読み取り対象から除外して、残った部分だけを読み取るので、セル群の直列性を乱す部分の影響を受けることなく1Dカラービットコードを読み取ることができる。   As described above, according to the reading method according to the present embodiment, the portion that disturbs the seriality of the cell group is excluded from the reading target, and only the remaining portion is read. The 1D color bit code can be read without receiving.

視野枠の個数
上述した図1及び図2では、1個の視野枠を利用して1個の狭小画像を切り出す例を示した。本実施の形態では、視野枠の位置と、1Dカラービットコードの位置と、が一致する必要がある。しかしながら、キャプチャした画像中の1Dカラービットコードが、画面上に設定されたただ1個の視野枠の位置と一致する可能性は必ずしも高くない。
Number of Field Frames FIGS. 1 and 2 described above show an example in which one narrow image is cut out using one field frame. In the present embodiment, the position of the field frame needs to match the position of the 1D color bit code. However, the possibility that the 1D color bit code in the captured image coincides with the position of only one field frame set on the screen is not necessarily high.

そこで、本実施の形態では、視野枠の個数を増やして、例えば図10(2)に示されるように5個の視野枠を設定し、1個のキャプチャ画像から5個の狭小画像を切り出すことも好ましい。位置が異なる複数の視野枠で同時に1個の1Dカラービットコードの検出を行えば、1個の1Dカラービットコードに対して複数の異なる狭小画像が切り出される。切り出された狭小画像が複数あれば、読み取る候補が複数に増える。複数ある狭小画像のうちいずれか1個の狭小画像が1Dカラービットコードの境界条件を満たしさえすれば、デコード手段は1Dカラービットコードをデコードすることができるので、利用者にとって利便性が飛躍的に高まる。   Therefore, in the present embodiment, the number of field frames is increased, for example, five field frames are set as shown in FIG. 10 (2), and five narrow images are cut out from one captured image. Is also preferable. If one 1D color bit code is detected simultaneously with a plurality of field frames having different positions, a plurality of different narrow images are cut out for one 1D color bit code. If there are a plurality of cut out narrow images, the number of candidates to be read increases. As long as any one of a plurality of narrow images satisfies the boundary condition of the 1D color bit code, the decoding unit can decode the 1D color bit code. To increase.

キャプチャ画面そのものが視野枠である場合
上述した例では、デコード手段が画像データ上にマスクをかけて、画像データの一部を視野枠で取り出す方法を説明した。一方、画像データの一部を取り出すのではなく、狭い視野の画面を備えた読み取り装置を用いてもよい。このようにすることによっても、セルの直列性を阻む部分の影響を受けずに1Dカラービットコードを切り出すことができる。
In the case where the capture screen itself is a field frame In the above-described example, the method has been described in which the decoding unit masks the image data and extracts a part of the image data with the field frame. On the other hand, instead of extracting a part of the image data, a reading device having a screen with a narrow field of view may be used. This also makes it possible to cut out the 1D color bit code without being affected by the portion that hinders the seriality of the cells.

(4)ノイズの処理方法
上述したように、本実施の形態における読み取り方法は、視野枠を利用してキャプチャ画像の一部を取り出し、その取り出した狭小画像に基づいてデコードを行うことを特徴の1つとする。狭小画像はキャプチャ画像よりも小さい画像の画像データなので、画像データから得られる情報量が少ない。そのため、狭小画像のS/N比はキャプチャ画像のそれよりも小さいので、本実施の形態における読み取り方法はノイズに弱くなる場合もある。
(4) Noise Processing Method As described above, the reading method according to the present embodiment is characterized in that a part of a captured image is extracted using a field frame and decoding is performed based on the extracted narrow image. One. Since the narrow image is image data of an image smaller than the captured image, the amount of information obtained from the image data is small. Therefore, since the S / N ratio of the narrow image is smaller than that of the captured image, the reading method in the present embodiment may be susceptible to noise.

そこで、狭小画像中に混在するノイズを処理する方法を説明する。   Therefore, a method for processing noise mixed in a narrow image will be described.

(4−1)色彩領域の長さを利用する処理方法
図3には、1Dカラービットコードのキャプチャ画像の一部を狭小視野で切り出した狭小画像28が示されている。図3に示されるように、狭小画像28には、Rの色彩領域、Gの色彩領域、Qの色彩領域、Bの色彩領域、Rの色彩領域、Bの色彩領域、Qの色彩領域、Rの色彩領域、Gの色彩領域、Qの色彩領域、Gの色彩領域、の11個の色彩領域がこの順に存在する。
(4-1) Processing Method Utilizing Length of Color Area FIG. 3 shows a narrow image 28 obtained by cutting out a part of a captured image of a 1D color bit code with a narrow field of view. As shown in FIG. 3, the narrow image 28 includes an R color area, a G color area, a Q color area, a B color area, an R color area, a B color area, a Q color area, R Eleven color regions, namely, the color region G, the color region G, the color region Q, and the color region G exist in this order.

デコード手段は、この狭小画像28の左端から右端に至る各色彩領域に基づいて、「1、R、(なし)、2」、「2、G、1、3」、「3、Q、2、4」、「4、B、3、5」、「5、R、4、6」、「6、B、5、7」、「7、Q、6、8」、「8、R、7、9」、「9、G、8、10」、「10、Q、9、11」、「11、G、10、(なし)」という色彩情報を生成する。これら11個の色彩情報は、1個の色彩配列情報を構成する。   Based on the color areas from the left end to the right end of the narrow image 28, the decoding means “1, R, (none), 2”, “2, G, 1, 3”, “3, Q, 2, 4 ”,“ 4, B, 3, 5 ”,“ 5, R, 4, 6 ”,“ 6, B, 5, 7 ”,“ 7, Q, 6, 8 ”,“ 8, R, 7, Color information of “9”, “9, G, 8, 10”, “10, Q, 9, 11”, “11, G, 10, (none)” is generated. These 11 pieces of color information constitute one piece of color arrangement information.

図3では、さらに、デコード手段は、画像28の左端から右端に至るまでの各色彩領域の狭小画像の長手方向の長さを測り取り、その長さを各色彩情報に追記する。長さの情報を利用して、ノイズから生成された色彩情報を後で除去するためである。長さを追記した後の色彩情報は、色彩領域に割り振られる番号(ID)、色彩の情報、前方向に隣接する色彩領域の番号、後方向に隣接する色彩領域の番号、長さ、が記述された情報となる。   In FIG. 3, the decoding means further measures the length in the longitudinal direction of the narrow image in each color region from the left end to the right end of the image 28, and adds the length to the color information. This is because the color information generated from the noise is later removed using the length information. The color information after adding the length describes the number (ID) assigned to the color area, the color information, the number of the color area adjacent in the forward direction, the number of the color area adjacent in the backward direction, and the length. Information.

画像28の左端から右端に至る各色彩領域の長さは、それぞれ、10、7、4、10、1、5、3、4、8、2、5、である。従って、各長さを追記した後の各色彩情報は、それぞれ、「1、R、(なし)、2、10」、「2、G、1、3、7」、「3、Q、2、4、4」、「4、B、3、5、10」、「5、R、4、6、1」、「6、B、5、7、5」、「7、Q、6、8、3」、「8、R、7、9、4」、「9、G、8、10、8」、「10、Q、9、11、2」、「11、G、10、(なし)、5」となる。   The lengths of the color regions from the left end to the right end of the image 28 are 10, 7, 4, 10, 1, 5, 3, 4, 8, 2, 5 respectively. Therefore, each color information after adding each length is “1, R, (none), 2, 10”, “2, G, 1, 3, 7”, “3, Q, 2, 4, 4 ”,“ 4, B, 3, 5, 10 ”,“ 5, R, 4, 6, 1 ”,“ 6, B, 5, 7, 5 ”,“ 7, Q, 6, 8, 3 ”,“ 8, R, 7, 9, 4 ”,“ 9, G, 8, 10, 8 ”,“ 10, Q, 9, 11, 2, ”,“ 11, G, 10, (none), 5 ".

ノイズの種類
狭小画像28には、2つのタイプのノイズが含まれている。
The noise type narrow image 28 includes two types of noise.

第1タイプのノイズは、1Dカラービットコードの構成色以外の色彩が付され、かつ、長さが基準よりも短い色彩領域である。狭小画像28では、色彩領域の長さの最大値10を基準値としている。長さが基準値以上である色彩領域は、2個の1Dカラービットコードに挟まれた領域である。   The first type of noise is a color region to which colors other than the constituent colors of the 1D color bit code are added and whose length is shorter than the reference. In the narrow image 28, the maximum value 10 of the length of the color area is used as a reference value. A color region whose length is equal to or greater than a reference value is a region sandwiched between two 1D color bit codes.

第2タイプのノイズは、1Dカラービットコードの構成色の色彩が付され、かつ、長さが非常に短い色彩領域である。狭小画像28では、長さが1である色彩領域を非常に短いとみなしている。   The second type of noise is a color region to which the colors of the constituent colors of the 1D color bit code are added and the length is very short. In the narrow image 28, a color region having a length of 1 is considered to be very short.

図3の1Dカラービットコードの本来の色彩の配列は、「R→G→B→R→G」であるが、上述した2種類のノイズが混在した結果、本来の色彩の配列とは異なる色彩の配列を表す色彩配列情報となっている。そのため、デコード手段が上記色彩配列情報をデコードしようとしても、正しくデコードできない場合がある。   The original color arrangement of the 1D color bit code in FIG. 3 is “R → G → B → R → G”, but as a result of mixing the two types of noise described above, a color different from the original color arrangement is obtained. Color arrangement information representing the arrangement of For this reason, even if the decoding means tries to decode the color arrangement information, it may not be decoded correctly.

そこで、本実施の形態では、以下に述べる2つのステップによって、上記2種類のノイズを除去する。   Therefore, in the present embodiment, the above two types of noise are removed by the following two steps.

(第1ステップ)まず、デコード手段が第1タイプのノイズを表す色彩情報を無視(色彩配列情報から色彩情報を削除)し、その前後の色彩情報を詰めるという処理を行う。本実施の形態において、第1タイプのノイズは3個(「3、Q、2、4、4」と、「7、Q、6、8、3」と、「10、Q、9、11、2」)あるので、デコード手段は、これら3個色彩情報を色彩配列情報から削除する。 (First Step) First, the decoding means performs processing of ignoring the color information representing the first type of noise (deleting the color information from the color arrangement information) and filling the color information before and after that. In the present embodiment, there are three first type noises (“3, Q, 2, 4, 4”, “7, Q, 6, 8, 3”, “10, Q, 9, 11, 2 "), the decoding means deletes these three pieces of color information from the color arrangement information.

次に、デコード手段は、削除した各色彩情報の前方向に隣接する色彩情報中の「後方向に隣接する色彩領域の番号」を、削除した色彩情報の後方向に隣接する色彩情報中の「色彩領域の番号(ID)」に修正する。例えば、色彩情報「3、Q、2、4、4」の前方向に隣接する色彩情報(修正前)は「2、G、1、3、7」であるが、これを「2、G、1、4、7」に修正する。   Next, the decoding means obtains the “number of color areas adjacent in the backward direction” in the color information adjacent in the forward direction of each deleted color information and the “number of color areas adjacent in the backward direction” in the color information adjacent in the backward direction of the deleted color information. The color area number (ID) "is corrected. For example, the color information adjacent to the front direction of the color information “3, Q, 2, 4, 4” (before correction) is “2, G, 1, 3, 7”. To 1, 4, 7 ".

また、デコード手段は、削除した色彩情報の後方向に隣接する色彩情報中の「前方向に隣接する色彩領域の番号」を、削除した色彩情報の前方向に隣接する色彩情報中の「色彩領域の番号(ID)」に修正する。例えば、色彩情報「3、Q、2、4、4」の後方向に隣接する色彩情報(修正前)は「4、B、3、5、11」であるが、これを「4、B、2、5、11」に修正する。   In addition, the decoding means displays the “color area number adjacent in the forward direction” in the color information adjacent in the backward direction of the deleted color information, and the “color area in the color information adjacent in the forward direction of the deleted color information. To "number (ID)". For example, the color information (before correction) adjacent to the backward direction of the color information “3, Q, 2, 4, 4” is “4, B, 3, 5, 11”. To 2, 5, 11 ".

本実施の形態では、第1ステップの処理によって、上記11個の色彩情報から、「1、R、(なし)、2、10」、「2、G、1、4、7」、「4、B、2、5、11」、「5、R、4、6、1」、「6、B、5、8、5」、「8、R、6、9、4」、「9、G、8、11、8」、「11、G、9、(なし)、5」という処理結果が得られる。   In the present embodiment, “1, R, (none), 2, 10”, “2, G, 1, 4, 7”, “4, B, 2, 5, 11 ”,“ 5, R, 4, 6, 1 ”,“ 6, B, 5, 8, 5 ”,“ 8, R, 6, 9, 4 ”,“ 9, G, The processing results of “8, 11, 8”, “11, G, 9, (none), 5” are obtained.

ここまでが、第1ステップの処理内容である。   This is the processing content of the first step.

(第2ステップ)次に、デコード手段は、上記第1ステップの処理結果のうち、長さが1以下の色彩領域を第2タイプのノイズであると判断し、第2タイプのノイズであると判断した色彩領域に対応する色彩情報を無視(色彩配列情報から色彩情報を削除)する。そして、その無視する色彩情報の前方向に隣接する色彩情報と後方向に隣接する色彩情報との間を詰める処理を行う。本実施の形態においては、「5、R、4、6、1」が第2タイプのノイズの色彩情報なので、これを削除する。また、デコード手段は、無視する色彩情報の前方向に隣接する色彩情報中の「後方向に隣接する色彩領域の番号」を無視する色彩情報の後方向に隣接する色彩情報中の「色彩領域の番号(ID)」に修正し、無視する色彩情報の後方向に隣接する色彩情報中の「前方向に隣接する色彩領域の番号」を無視する色彩情報の前方向に隣接する色彩情報中の「色彩領域の番号(ID)」にそれぞれ修正する。 (Second Step) Next, the decoding means determines that a color area having a length of 1 or less among the processing results of the first step is the second type noise and determines that it is the second type noise. Ignore the color information corresponding to the determined color area (delete the color information from the color array information). And the process which narrows between the color information adjacent to the front direction of the color information to ignore and the color information adjacent to the back direction is performed. In the present embodiment, since “5, R, 4, 6, 1” is the color information of the second type of noise, it is deleted. Also, the decoding means ignores “the number of the color area adjacent in the backward direction” in the color information adjacent in the forward direction of the color information to be ignored. "Number (ID)" is corrected, and "number of color area adjacent in the forward direction" in the color information adjacent in the backward direction of the color information to be ignored is changed to "number in the color information adjacent in the forward direction of the color information to be ignored" The color area number (ID) "is corrected.

この結果、第2ステップの処理によって、上記第1ステップの処理結果から、「1、R、(なし)、2、10」、「2、G、1、4、7」、「4、B、2、6、11」、「6、B、4、8、5」、「8、R、6、9、4」、「9、G、8、11、8」、「11、G、9、(なし)、5」という処理結果が得られる。   As a result, according to the processing of the second step, from the processing result of the first step, “1, R, (none), 2, 10”, “2, G, 1, 4, 7”, “4, B, 2, 6, 11 "," 6, B, 4, 8, 5 "," 8, R, 6, 9, 4 "," 9, G, 8, 11, 8 "," 11, G, 9, (None) 5 ”is obtained.

ここまでが、第2ステップの処理内容である。   This is the processing content of the second step.

この後、デコード手段は、第2ステップの処理結果が、1Dカラービットコードの成立条件を満たしているか否かを判断する。上記第2ステップの処理結果が成立条件を満たしていれば、デコード手段は、上記第2ステップの処理結果は正しいものであると判断してデコードを行い、データを出力する。処理結果が成立条件を満たしていない場合には、デコード手段は、デコードした1Dカラービットコードは読み取り対象ではない他の1Dカラービットコードであると判断して、再度、1Dカラービットコードを撮像し直し、再度デコードを繰り返す。   Thereafter, the decoding means determines whether or not the processing result of the second step satisfies the conditions for establishing the 1D color bit code. If the processing result of the second step satisfies the establishment condition, the decoding means determines that the processing result of the second step is correct, performs decoding, and outputs data. If the processing result does not satisfy the establishment condition, the decoding unit determines that the decoded 1D color bit code is another 1D color bit code that is not a reading target, and captures the 1D color bit code again. Correct and repeat decoding again.

(4−2)2個の色彩領域が重なり合った部分の処理方法
一般的なカラー印刷では、色の境界部分をわずかに重ね合わせることが広く行われている。多少、版ズレしても、色の境界部分に隙間ができないようにするためである。濃い色と薄い色との組み合わせで2色刷りした場合には、2色が重ね合わさった部分は濃い色の領域の一部になることが多いので、特に色彩の混在を認識する必要はない。
(4-2) Method for processing a portion where two color regions overlap In general color printing, it is widely performed to slightly overlap color boundary portions. This is to prevent a gap from appearing at the color boundary even if the plate is shifted slightly. When two colors are printed with a combination of a dark color and a light color, the overlapped portion of the two colors often becomes a part of the dark color area, so that it is not particularly necessary to recognize the mixture of colors.

一方、薄い色(輝度が低い色)同士の組み合わせで2色刷りした場合には、色を重ね合わせた部分が別の色彩領域になってしまうことがある。例えば、薄い黄色と薄い青色との組み合わせで2色刷りした場合には、色を重ね合わせた部分が緑色の色彩領域になる。その結果、本来の色彩の配列「(薄い黄色の領域)−(薄い青色の領域)」ではなく、それとは異なる色彩の配列「(薄い黄色の領域)−(緑色の領域)−(薄い青色の領域)」であると認識されることとなるので、妥当ではない。   On the other hand, when two colors are printed with a combination of light colors (colors with low luminance), a portion where the colors are superimposed may become another color region. For example, when two colors are printed with a combination of light yellow and light blue, a portion where the colors are superimposed becomes a green color region. As a result, instead of the original color arrangement “(light yellow area) − (light blue area)”, a different color arrangement “(light yellow area) − (green area) − (light blue area)” Region) ”, it is not appropriate.

色彩領域の境界部分の模式図が図4(1)に示されている。図4(1)の色彩領域30A(右斜線で示される部分)は1Dカラービットコード構成色のA色のセルであり、色彩領域30B(左斜線で示される部分)は1Dカラービットコード構成色のB色のセルである。各色彩領域30A、30Bの一部が重なると、一定の領域(図中の領域32)にA色及びB色の2つの色彩が混在することがある。   A schematic diagram of the boundary portion of the color region is shown in FIG. In FIG. 4A, the color region 30A (the portion indicated by the right oblique line) is the A color cell of the 1D color bit code constituent color, and the color region 30B (the portion indicated by the left oblique line) is the 1D color bit code constituent color. B cells. If a part of each color area 30A, 30B overlaps, two colors of A color and B color may be mixed in a certain area (area 32 in the figure).

領域32の色彩をソフトウェア的に通常の方法で認識すると、領域32の色彩はA色やB色とは異なる別の色彩C色(A色とB色とを混色するとC色になるものとする)であるとみなされる。C色が1Dカラービットコードの構成色ではない場合には、従来の読み取り方法では、領域32はノイズとして扱われてきた。C色を1Dカラービットコードのセルの1つとみなすと、本来の色彩の変化とは異なる色彩の変化を基にデコードすることとなり、不都合が生じる恐れがあるからである。   When the color of the area 32 is recognized by a normal method in terms of software, the color of the area 32 becomes another color C color different from the A color and the B color (when the A color and the B color are mixed, it becomes a C color). ). When the C color is not a constituent color of the 1D color bit code, the area 32 has been treated as noise in the conventional reading method. If the C color is regarded as one of the cells of the 1D color bit code, decoding is performed based on a color change different from the original color change, which may cause inconvenience.

しかし、C色が、セル構成色であるA色及びB色が混色した色彩であることが予め分かっている場合には、領域32をノイズと認識するのは必ずしも妥当ではない。特に、C色の領域の面積が広い場合に、そのC色の領域を2個の1Dカラービットコードに挟まれた領域であると判断するのは妥当ではない。そのC色の領域を、A色又はB色のどちらかの領域として扱うのが妥当である。   However, when it is known in advance that the C color is a color obtained by mixing the A and B colors that are cell constituent colors, it is not always appropriate to recognize the region 32 as noise. In particular, when the area of the C color region is large, it is not appropriate to determine that the C color region is a region sandwiched between two 1D color bit codes. It is appropriate to treat the C color area as either the A color area or the B color area.

そこで、本実施の形態では、以下に述べるステップを経て、C色である領域32を色彩領域30A又は色彩領域30Bのどちらかの領域の一部であるとみなすこととした。   Therefore, in the present embodiment, the region 32 that is the C color is regarded as a part of either the color region 30A or the color region 30B through the steps described below.

図4(1)下の図中に示される色彩領域30Aに割り振られた「色彩領域の番号」が3であるとき、色彩領域30群から、色彩情報群「3、A、2、4」、「4、C、3、5」、「5、B、4、6」が生成される。   When the “color area number” assigned to the color area 30A shown in the lower diagram of FIG. 4 (1) is 3, the color information group “3, A, 2, 4”, “4, C, 3, 5” and “5, B, 4, 6” are generated.

デコード手段は、この色彩情報群を修正することによって、利用者の指示に基づき「C色の色彩領域をA色の色彩領域の一部であるとみなす」又は「C色の色彩領域をB色の色彩領域の一部であるとみなす」処理を行う。   The decoding means corrects this color information group to “recognize the C color area as a part of the A color area” or “C color area as the B color based on the user's instruction. Is considered to be part of the color area ".

具体的には、前者の処理を行う場合には、まず、デコード手段が、色彩の情報がCである色彩情報と、Aである色彩情報とを探す。本実施の形態では、色彩情報「3、A、2、4」と「4、C、3、5」が該当する。   Specifically, when the former process is performed, first, the decoding unit searches for color information whose color information is C and color information whose color information is A. In the present embodiment, the color information “3, A, 2, 4” and “4, C, 3, 5” are applicable.

次に、デコード手段は、これら2つの色彩情報は本来1個のA色の色彩領域を構成するとみなして、「3、A、2、4」という色彩情報を生成し、2個の色彩情報「3、A、2、4」、「4、C、3、5」と置き換える。また、他の色彩情報中の番号を適宜ずらす修正を行う。   Next, the decoding means regards these two pieces of color information as originally constituting one A color region, generates color information “3, A, 2, 4”, and generates two pieces of color information “ 3, A, 2, 4 ”,“ 4, C, 3, 5 ”. In addition, correction is performed by appropriately shifting the numbers in the other color information.

この結果、上記色彩情報群「3、A、2、4」、「4、C、3、5」、「5、B、4、6」は、色彩情報群「3、A、2、4」、「4、B、3、5」と修正される。この色彩情報群に基づいてデコードを行うことによって、「C色である領域32を色彩領域30Aの一部であるとみなす」ことが実現される。   As a result, the color information group “3, A, 2, 4”, “4, C, 3, 5”, “5, B, 4, 6” has the color information group “3, A, 2, 4”. , “4, B, 3, 5”. By performing decoding based on the color information group, it is realized that “the region 32 that is the C color is regarded as a part of the color region 30A”.

なお、上述したように色彩配列情報を修正するのではなく、デコード手段が、キャプチャした画像を複数の色彩領域に区分けする前に、「C色の画素をA色の画素に置き換える」又は「C色の画素をB色の画素に置き換える」という画像処理を行うことも、好ましい実施の形態である。   Note that the color arrangement information is not corrected as described above, but before the decoding unit divides the captured image into a plurality of color areas, “replace C color pixels with A color pixels” or “C It is also a preferred embodiment to perform image processing “replace color pixels with B color pixels”.

図4(2)の処理結果34aは、領域32内にあるC色の画素を、画像処理的にA色の画素に置き換えることによって、領域32を色彩領域30Aの一部であると見なした場合の例である。また、処理結果34bは、領域32内にあるC色の画素を、画像処理的にB色の画素に置き換えることによって、領域32を色彩領域30Bの一部であると見なした場合の例である。これら2個の処理結果34a、34bのいずれを基にしても、デコード手段は、上述したのと同一の色彩情報群「3、A、2、4」、「4、B、3、5」を生成する。   The processing result 34a in FIG. 4 (2) considers the region 32 to be a part of the color region 30A by replacing the C color pixel in the region 32 with the A color pixel in image processing. This is an example. The processing result 34b is an example of a case where the area 32 is regarded as a part of the color area 30B by replacing the C color pixel in the area 32 with the B color pixel in image processing. is there. Based on either of these two processing results 34a and 34b, the decoding means generates the same color information group “3, A, 2, 4”, “4, B, 3, 5” as described above. Generate.

以上述べた方法によれば、色彩の情報がAである色彩情報と、色彩の情報がBである色彩情報と、の間に色彩の情報がCである色彩情報が入らないので、問題なく1Dカラービットコードを正しく認識することができる可能性が高まる。   According to the method described above, since the color information whose color information is C does not enter between the color information whose color information is A and the color information whose color information is B, there is no problem. The possibility of correctly recognizing the color bit code is increased.

(4−3)色彩の平均化処理
被印物にマーキングされた1Dカラービットコードをキャプチャすると、キャプチャ画像に背景が写り込んだり、1Dカラービットコードの色彩が微妙に変化して写ったりすることがある。その結果、キャプチャ画像に対して何ら画像の処理を行わなければ、デコード手段が、キャプチャ画像から1Dカラービットコードの本来の色彩の配列とは異なる色彩の配列を読み取り、正しいデータが得られない恐れがある。
(4-3) Color averaging process When capturing a 1D color bit code marked on an object, the background appears in the captured image or the color of the 1D color bit code changes slightly. There is. As a result, if no image processing is performed on the captured image, the decoding unit may read a color arrangement different from the original color arrangement of the 1D color bit code from the captured image, and correct data may not be obtained. There is.

そこで、本実施の形態では、キャプチャ画像中の色彩を補正するために、キャプチャ画像に対して色彩の平均化処理を施す。色彩の平均化処理とは、具体的には、例えば、メディアンフィルター、輝度の平均化、シェーディング補正である。   Therefore, in the present embodiment, in order to correct the colors in the captured image, a color averaging process is performed on the captured image. Specifically, the color averaging process includes, for example, a median filter, luminance averaging, and shading correction.

図5には、湾曲した板状体36の端面をキャプチャしたキャプチャ画像38が示されている。この板状体36の端面には、1Dカラービットコード40がマーキングされている。1Dカラービットコード40は、板状体36の端面に隙間なくマーキングされているので、板状体36の端面そのものはキャプチャ画像38中には写っていない。1Dカラービットコード40の周囲は、背景である。   FIG. 5 shows a captured image 38 obtained by capturing the end surface of the curved plate-like body 36. A 1D color bit code 40 is marked on the end face of the plate-like body 36. Since the 1D color bit code 40 is marked on the end face of the plate-like body 36 without a gap, the end face of the plate-like body 36 itself is not shown in the captured image 38. The periphery of the 1D color bit code 40 is a background.

キャプチャ画像38中の2点鎖線は視野枠42の一部である。図中、2本の2点鎖線に挟まれた部分が視野枠42の内部である。図中の斜線部分は、視野枠42の内部にある背景又はノイズが写ったものであり、1Dカラービットコードを構成する色彩領域ではない。   A two-dot chain line in the captured image 38 is a part of the field frame 42. In the drawing, a portion sandwiched between two two-dot chain lines is the inside of the field frame 42. The shaded portion in the figure shows the background or noise inside the visual field frame 42 and is not a color region constituting the 1D color bit code.

デコード手段は、キャプチャ画像38の一部を視野枠42で取り出す。次に、デコード手段は、例えば、メディアンフィルターを利用して、視野枠42中の斜線部分の色彩を1Dカラービットコードの構成色に置換する。この結果、視野枠42の内部は、全て1Dカラービットコードの構成色の色彩領域となる。   The decoding unit extracts a part of the captured image 38 with the field frame 42. Next, the decoding means uses, for example, a median filter to replace the shaded portion in the field frame 42 with the constituent color of the 1D color bit code. As a result, the inside of the visual field frame 42 is a color region of the constituent colors of the 1D color bit code.

この後、デコード手段は、上記置換を終えた後の狭小画像を複数の色彩領域に分割し、上記(2)で述べた読み取り方法を実行して、1Dカラービットコード40からデータを取得する。   Thereafter, the decoding unit divides the narrow image after the replacement into a plurality of color regions, executes the reading method described in (2) above, and acquires data from the 1D color bit code 40.

本実施の形態によれば、キャプチャ画像中にある程度ノイズが混在していても、デコード結果に影響を及ばない。そのため、利用者が多少ラフなキャプチャ動作を行っても、1Dカラービットコードを正しくデコードできるという非常に有益な効果が得られる。   According to the present embodiment, even if noise is mixed to some extent in the captured image, the decoding result is not affected. Therefore, even if the user performs a somewhat rough capture operation, a very beneficial effect of correctly decoding the 1D color bit code can be obtained.

1Dカラービットコードと1次元バーコードとの比較
本実施の形態における1Dカラービットコードの読み取り方法では、直線状の視野枠で画像の一部を切り出すことを特徴の1つとする。一方、この直線状の視野(枠)でコードシンボルを読み取る方式は、すでに白黒バーコード(1次元バーコードとも呼ばれる)の読み取りにも使用されている。
Comparison of 1D Color Bit Code and One-Dimensional Barcode One of the features of the 1D color bit code reading method in this embodiment is that a part of an image is cut out by a linear field frame. On the other hand, this method of reading a code symbol with a linear field of view (frame) has already been used for reading a black and white barcode (also called a one-dimensional barcode).

従って、直線状の視野を用いるという点では、従来の1次元バーコードの読み取り方法と、本実施の形態における1Dカラービットコードの読み取り方法とでは、視野枠を用いるという点で、一部共通する事項があるかも知れない。   Therefore, in terms of using a linear field of view, the conventional one-dimensional barcode reading method and the 1D color bit code reading method of the present embodiment are partially common in that a field frame is used. There may be a matter.

しかし、1Dカラービットコードと1次元バーコードとではデータの表し方が異なるため、ノイズ色彩の処理のために色彩の平均化処理(例えば画素の置換)ができるか否かという点で大きく異なる。   However, since the data representation is different between the 1D color bit code and the one-dimensional barcode, there is a great difference in whether color averaging processing (for example, pixel replacement) can be performed for noise color processing.

図5中の1Dカラービットコード40が1次元バーコードであった場合には、不都合が生じる場合がある。1次元バーコードのデータは、縞模様状の線の太さによって表わされる。各線(白黒(明暗)シンボル)の幅が重要である。白黒(明暗)シンボルの境界部分に曖昧さがある場合や、白黒(明暗)シンボルの幅が変化した場合には、正しくデコードできない場合があるからである。   If the 1D color bit code 40 in FIG. 5 is a one-dimensional barcode, inconvenience may occur. One-dimensional barcode data is represented by the thickness of a striped line. The width of each line (black and white (light / dark) symbol) is important. This is because when there is an ambiguity in the boundary portion between the black and white (bright and dark) symbols, or when the width of the black and white (bright and dark) symbols changes, decoding may not be performed correctly.

一方、1Dカラービットコードは、視野画像の長手方向の色彩の変化を認識することでコード(データ)を返すので、1Dカラービットコードの各セルの長さは、返すデータとは関係がない。各セルの長さにとらわれずに、ノイズを除去する色彩の平均化処理を行うことが可能である。そのため、1Dカラービットコードは、狭小画像にある程度ノイズが混在することがあっても、そのノイズ色彩からの影響を軽減しデータを正しく出力することができる。   On the other hand, since the 1D color bit code returns a code (data) by recognizing a color change in the longitudinal direction of the visual field image, the length of each cell of the 1D color bit code is not related to the data to be returned. Regardless of the length of each cell, it is possible to perform color averaging to remove noise. Therefore, the 1D color bit code can reduce the influence of the noise color and output data correctly even if noise is mixed in a narrow image to some extent.

(4−4)短辺方向色彩均一化処理
上述した色彩の平均化処理は、1Dカラービットコードの構成色と、1Dカラービットコードの構成色でない色彩と、を区別することなく、メディアンフィルタなどで処理する。もし、1Dカラービットコードの構成色でない色彩が存在することが予め分かっている場合には、キャプチャ画像からその色彩を除去した後に色彩の平均化処理を行うことがより一層好ましい。
(4-4) Color Uniform Processing in Short Side Direction The above-described color averaging processing is performed without distinguishing between constituent colors of 1D color bit code and colors that are not constituent colors of 1D color bit code. Process with. If it is known in advance that there is a color that is not a constituent color of the 1D color bit code, it is more preferable to perform a color averaging process after removing the color from the captured image.

そこで、本実施の形態では、ノイズ対策として、狭小画像の短辺方向の画素を均一化する短辺方向色彩均一化処理を行うステップを設けている。この短辺方向色彩均一化処理は、色彩の平均化処理を行う前に行われる。   Therefore, in the present embodiment, as a noise countermeasure, there is provided a step of performing short side direction color equalization processing for uniformizing pixels in the short side direction of a narrow image. This short side direction color equalization process is performed before the color averaging process.

図6(1)には、1Dカラービットコードをキャプチャしたキャプチャ画像44が示されている。この1Dカラービットコードは、湾曲した板状体46の端面に隙間なくマーキングされている。また、キャプチャ画像44内には、視野枠48の位置が示されている。視野枠48の内部には、1Dカラービットコードと背景とが写っている。なお、視野枠48の外部は、板状体46の輪郭のみが破線で示されている。   FIG. 6A shows a captured image 44 obtained by capturing a 1D color bit code. This 1D color bit code is marked on the end face of the curved plate-like body 46 without a gap. Further, the position of the field frame 48 is shown in the captured image 44. Inside the field frame 48, a 1D color bit code and a background are shown. Note that, outside the field frame 48, only the outline of the plate-like body 46 is shown by a broken line.

1Dカラービットコードのセル構成色は、例えば、赤色、緑色、青色である場合が多い。一般的な画像信号の成分とも一致し、画像処理的に扱いやすいからである。背景の部分は、部屋の照明光との干渉や様々な物体への反射によって彩度・明度が低い色(例えば灰色)になることが多い。この背景の部分をQzと表す。   In many cases, the cell constituent colors of the 1D color bit code are, for example, red, green, and blue. This is because it also matches general image signal components and is easy to handle in terms of image processing. In many cases, the background portion has a color with low saturation and lightness (for example, gray) due to interference with room illumination light and reflection on various objects. This background portion is represented as Qz.

なお、本節(4−4)における「Qz」は、上記(3)における「Qz」とは意味が異なる。(3)の「Qz」は、上記背景技術で述べた「クワイアットゾーン」を指す用語である。このクワイアットゾーンは、上記背景技術でも述べたように、1Dカラービットコードの領域とその周囲の1Dカラービットコードではない領域とを区分けするという役割を担う。一方、本節の「Qz」は、単に除く領域を指して用られている用語である。要するに、本節の「Qz」はいわゆる「ノイズ」を指す。   Note that “Qz” in this section (4-4) has a different meaning from “Qz” in (3) above. “Qz” in (3) is a term indicating the “quiat zone” described in the background art. As described in the background art, this quiet zone plays a role of partitioning a 1D color bit code area and a surrounding area that is not a 1D color bit code. On the other hand, “Qz” in this section is a term used simply to indicate an excluded area. In short, “Qz” in this section refers to so-called “noise”.

デコード手段は、まず、キャプチャ画像44の一部を視野枠48で切り出す。   The decoding means first cuts out a part of the captured image 44 by the field frame 48.

次に、デコード手段は、キャプチャ画像44の各画素の値を読み取る。各画素の値を読み取った結果、全画素の個数に対してQzに相当する画素の個数が占める割合が、予め定められた基準よりも高い場合には、デコード手段は、1Dカラービットコードの周囲にQzが存在している可能性が高いと判断する。そして、狭小画像の短辺方向に並ぶ1列の画素群又は狭小画像の短辺方向と平行な方向に1本の細い直線を表現できる画素群ごとに、Qzの画素を色彩の平均化処理の対象から外し(無視し)、1Dカラービットコードの構成色である画素群のみを対象として色彩の平均化処理(例えばメディアンフィルタ)を行う。なお、狭小画像の短辺方向に並ぶ複数列の画素群又は狭小画像の短辺方向と平行な方向にやや太めの直線を表現できる画素群ごとに、上記処理を行うことも好ましい。本実施の形態では、この処理ステップを短辺方向色彩均一化処理と呼んでいる。   Next, the decoding unit reads the value of each pixel of the captured image 44. As a result of reading the value of each pixel, when the ratio of the number of pixels corresponding to Qz to the total number of pixels is higher than a predetermined reference, the decoding means It is determined that there is a high possibility that Qz exists in Then, the Qz pixels are subjected to color averaging processing for each pixel group that can represent one thin line in a direction parallel to the short side direction of the narrow image or a row of pixels arranged in the short side direction of the narrow image. A color averaging process (for example, a median filter) is performed only on a pixel group that is a constituent color of the 1D color bit code. Note that it is also preferable to perform the above processing for each of a plurality of columns of pixel groups arranged in the short side direction of the narrow image or a pixel group that can express a slightly thicker straight line in a direction parallel to the short side direction of the narrow image. In the present embodiment, this processing step is referred to as short side direction color equalization processing.

デコード手段は、この短辺方向色彩均一化処理を、狭小画像の一方端から他方端に至るまでの全画素について行う。このことが、図6(2)に示されている。   The decoding means performs this short side direction color uniformity processing for all pixels from one end of the narrow image to the other end. This is shown in FIG. 6 (2).

次に、デコード手段は、短辺方向色彩均一化処理後の各画素の値に基づいて狭小画像を複数の色彩領域に区分けする。図6(3)には、区分けした後の狭小画像50が示されている。狭小画像50には、Qzの色彩領域は存在しない。   Next, the decoding means divides the narrow image into a plurality of color regions based on the value of each pixel after the short side direction color equalization processing. FIG. 6 (3) shows the narrowed image 50 after segmentation. The narrow image 50 has no Qz color region.

この結果、デコード手段は、Qzの色彩領域が存在しない又は非常に少ない画像に基づいてデコードを行うことができるので、より一層読み取り精度の高いデコード処理が可能になる。   As a result, the decoding unit can perform decoding based on an image in which the Qz color region does not exist or very little, and thus decoding processing with higher reading accuracy is possible.

なお、図6(1)において、1Dカラービットコードを構成するセル群の境界部分の色彩が、隣接する色彩領域の色彩(A色とB色)の混色であると予め分かっている場合には、上記(4−2)で述べたように、「A色orB色」という値のくくりでQzの画素群を認識するという1Dカラービットコードに特有の均一化処理を行うことが好ましい。もし、A色とB色とを単に平均化(例えば各画素のRGB値をそれぞれ平均する等)すると、色彩の遷移が変わり、色彩変化を検知する処理との整合性が悪くなる恐れがあるからである。   In addition, in FIG. 6A, when it is known in advance that the color of the boundary portion of the cell group constituting the 1D color bit code is a mixed color of colors (A color and B color) of adjacent color regions. As described in (4-2) above, it is preferable to perform a uniformization process peculiar to the 1D color bit code that recognizes a pixel group of Qz by a combination of values of “A color or B color”. If the A color and the B color are simply averaged (for example, the RGB values of each pixel are averaged, for example), the transition of the color may change, and the consistency with the process for detecting the color change may be deteriorated. It is.

Qzの色彩が、1Dカラービットコードの構成色が混色した色彩であると予め分かっている場合には、それに適した方法で処理に合った方法で処理すれば、精度の高いデコード特性をより一層実現しやすくなる。   If it is known in advance that the color of Qz is a color in which the constituent colors of the 1D color bit code are mixed, processing with a method suitable for the method will make it possible to achieve even more accurate decoding characteristics. It becomes easy to realize.

応用例
短辺方向色彩均一化処理を利用すれば、狭小画像内にノイズや背景が一部に混在しても1Dカラービットコードを読み取ることができる。
Application Example If the short side direction color equalization process is used, a 1D color bit code can be read even if noise and background are mixed in a narrow image.

そこで、視野枠の内部にノイズや背景部分が入ることを前提に、デコード手段は、視野枠に一定の幅をもたせる(短辺を長くする)ことができる。多少の曲がりがある1Dカラービットコードを読み取る場合には、1Dカラービットコードの一部の構成セルが視野枠の内部に入りきれないことがある。本実施の形態では、デコード手段は視野枠の内部だけを読み取るので、視野枠の内部に入りきれなかった構成セルはデコードされない。1Dカラービットコードの配置と視野枠の形状がわずかに違うだけで、1Dカラービットコードを読み取れなくなるのは利用者にとって利便性が低くなる恐れがある。   Therefore, on the premise that noise and a background portion enter the inside of the field frame, the decoding unit can give the field frame a certain width (longer short side). When a 1D color bit code having a slight curve is read, some constituent cells of the 1D color bit code may not be able to fit inside the field frame. In the present embodiment, since the decoding means reads only the inside of the field frame, the constituent cells that cannot fully enter the field frame are not decoded. If the arrangement of the 1D color bit code and the shape of the field frame are slightly different, the inability to read the 1D color bit code may be less convenient for the user.

そこで、利用者の指示に従ってデコード手段が、視野枠の短辺の長さを長く調節し、狭小画像内のノイズや背景が除去されれば、デコード手段は、多少の曲がりのある1Dカラービットコードも読み取ることができる。その結果、デコード手段は、曲がった1Dカラービットコードの全体を含む画像を基に正しくデータを読み取れるので、利用者によって利便性が格段に向上するという非常に有益な効果が得られる。   Therefore, if the decoding means adjusts the length of the short side of the field frame to be longer in accordance with the user's instruction and the noise and background in the narrow image are removed, the decoding means is a 1D color bit code having a slight curve. Can also be read. As a result, the decoding means can correctly read the data based on the image including the entire bent 1D color bit code, so that it is possible to obtain a very beneficial effect that the convenience is greatly improved by the user.

短辺方向色彩均一化処理と色彩量子化処理とを行う順序
本願発明者が先に出願した特願2007−130504号に記載した1Dカラービットコードの読み取り方法では、キャプチャした画像に対して、まず色彩量子化を行う。この色彩量子化とは、キャプチャした画像を複数の色彩領域に区分けする処理をいう。
Order of performing short side direction color uniformization processing and color quantization processing In the 1D color bit code reading method described in Japanese Patent Application No. 2007-130504 filed earlier by the present inventor, Perform color quantization. This color quantization refers to a process of dividing a captured image into a plurality of color regions.

一方、本実施の形態における読み取り方法では、色彩量子化の後に短辺方向色彩均一化処理を行うというパターン(すなわち、先に色彩量子化を行う)と、短辺方向色彩均一化処理の後に量子化を行うというパターン(すなわち、後に色彩量子化を行う)とが考えられるが、以下に述べる理由により後者のパターンが典型的である。   On the other hand, in the reading method according to the present embodiment, a pattern in which short side direction color equalization processing is performed after color quantization (that is, color quantization is performed first), and after short side direction color equalization processing, It is conceivable that the pattern is converted (that is, color quantization is performed later), but the latter pattern is typical for the reason described below.

図6(1)に示されるように、キャプチャ画像には1Dカラービットコードと背景とが写り込む場合がある。1Dカラービットコードは、赤色、緑色、青色などのように、彩度・明度が高い色彩のセルから構成されることが多い。一方、背景の色彩は、明度・彩度の低い色彩(例えば灰色)になる場合が多い。これらの色彩の彩度・明度の高さを比較すると、1Dカラービットコードを形成するセルの色彩は、彩度、明度ともに、背景の色彩よりも高いと考えられる。   As shown in FIG. 6A, a captured image may include a 1D color bit code and a background. A 1D color bit code is often composed of cells of a color with high saturation and lightness such as red, green, and blue. On the other hand, the color of the background often becomes a color with low brightness and saturation (for example, gray). When comparing the saturation and brightness of these colors, it is considered that the color of the cell forming the 1D color bit code is higher than the background color in both saturation and brightness.

背景部分の画素値と1Dカラービットコードの構成セル部分の画素値との間に大きな差があるので、先に短辺方向色彩均一化処理によってQzを除去してから色彩量子化を行った方が、1Dカラービットコードを形成する色彩セルを際立たせる目的では有利である。すなわち、本実施の形態では、「短辺方向色彩均一化処理→量子化」の順に処理することが好ましい。   Since there is a big difference between the pixel value of the background portion and the pixel value of the constituent cell portion of the 1D color bit code, the color quantization is performed after removing Qz by the short side direction color equalization processing first. Is advantageous for the purpose of highlighting the color cells forming the 1D color bit code. That is, in the present embodiment, it is preferable to perform processing in the order of “short side direction color uniformity processing → quantization”.

また、狭小画像の短辺方向の均一化処理だけでは短辺方向ノイズを完全に除去するのは困難な場合があるので、長手方向にノイズリダクション処理を行うことがより一層好ましい。   Further, since it may be difficult to completely remove the noise in the short side direction only by the uniformization process in the short side direction of the narrow image, it is more preferable to perform the noise reduction process in the longitudinal direction.

従って、短辺方向色彩均一化処理における典型的な処理順序は、「キャプチャ」→「短辺方向均一化処理」→長手方向「ノイズリダクション処理」→量子化、となる。   Therefore, a typical processing order in the short side direction color uniformization processing is “capture” → “short side direction uniformization processing” → longitudinal direction “noise reduction processing” → quantization.

(5)1Dカラービットコードのマーキング方法及び読み取り方法の改良例
(5−1)1Dカラービットコードの構成色について
視野枠を利用しない従来の1Dカラービットコードの読み取り方法では、例えば、「各セルは1個又は2個の他のセルと接する」という境界条件を満たすセルを追跡していた。セルに接する隣のセルを探し、次にそのセルに接するまた隣のセルを探し、さらにそのセルに接する隣のセルを探し、と次々にセルを追跡する。もし、セルの連なりが2分岐し、隣接するセルの個数が3個以上等になる場合には、境界条件を満たさなくなるので、1Dカラービットコードの切り出しができなくなる。
(5) 1D color bit code marking method and improvement example of reading method (5-1) Constituent colors of 1D color bit code In a conventional 1D color bit code reading method not using a field frame, for example, “each cell Was tracking a cell that satisfies the boundary condition of “is touching one or two other cells”. A cell next to the cell is searched, then another cell adjacent to the cell is searched for, a cell adjacent to the cell is further searched, and the cell is traced one after another. If the series of cells branches into two and the number of adjacent cells is three or more, the boundary condition is not satisfied, so that the 1D color bit code cannot be cut out.

一方、本実施の形態では、デコード手段が狭小画像の長手方向(直線方向)の色彩変化のみに基づいて1Dカラービットコードを検知し、デコードをする。デコード手段は、狭小画像の短辺方向(幅方向)の色彩は、平均化処理(例えば画素の置換)によって均一であると見なし、狭小画像の短辺方向(幅方向)の色彩変化を無視している。また、本実施の形態に係る読み取り方法では、狭小画像の長手方向にあるセルが隣のセルであると仮定している。   On the other hand, in the present embodiment, the decoding means detects and decodes the 1D color bit code based only on the color change in the longitudinal direction (linear direction) of the narrow image. The decoding means regards the color in the short side direction (width direction) of the narrow image as uniform by averaging (for example, pixel replacement) and ignores the color change in the short side direction (width direction) of the narrow image. ing. In the reading method according to the present embodiment, it is assumed that a cell in the longitudinal direction of a narrow image is an adjacent cell.

従って、狭小画像の長手方向(直線方向)の一次元的な色彩変化のみを捕らえればよいので、狭小画像の短辺方向(幅方向)に必ずしもQzを設ける必要はない。   Therefore, since it is only necessary to capture a one-dimensional color change in the longitudinal direction (straight direction) of the narrow image, it is not always necessary to provide Qz in the short side direction (width direction) of the narrow image.

一方、狭小画像の長手方向には、1Dカラービットコードの先端及び終端を表すQzを設ける必要がある。狭小画像の長手方向に1Dカラービットコード以外の画像が写る場合があるので、1Dカラービットコードと1Dカラービットコード以外の画像との境界を明確にする必要があるからである。   On the other hand, in the longitudinal direction of the narrow image, it is necessary to provide Qz representing the front end and the end of the 1D color bit code. This is because an image other than the 1D color bit code may appear in the longitudinal direction of the narrow image, and it is necessary to clarify the boundary between the 1D color bit code and the image other than the 1D color bit code.

もちろん、「狭小画像の長手方向が1Dカラービットコードの画像で満たされる」と規定した場合には、狭小画像の長辺近傍にQzを設ける必要はない。視野枠の長手方向の長さは有限であるから、視野枠の内部に1Dカラービットコードのセル群がちょうど全て過不足無く収まれば、Qzは不要である。   Of course, when it is defined that “the longitudinal direction of the narrow image is filled with the image of the 1D color bit code”, it is not necessary to provide Qz in the vicinity of the long side of the narrow image. Since the length of the field frame in the longitudinal direction is finite, Qz is not necessary if all the 1D color bit code cell groups fit within the field frame without excess or deficiency.

ここで、「過不足」の「過」とは、視野枠の長辺が、1Dカラービットコードよりも長い場合を指す。視野枠の長辺が1Dカラービットコードよりも長い場合には、1Dカラービットコードとそれ以外の画像との境界を明らかにするためにQzを設ける必要がある。一方、「不足」とは、視野枠の短辺が短すぎて視野枠の内部に1Dカラービットコードの一部しか入らない場合を指す。この場合には、視野枠の外部にある1Dカラービットコードも読み取り対象とはならない。従って、1Dカラービットコードのスタートを表すQzとエンドを表すQzとを設けて、それらを目印にして1Dカラービットコード全体を視野枠の内部に入れる必要がある。   Here, “over” of “over / under” indicates a case where the long side of the field frame is longer than the 1D color bit code. When the long side of the field frame is longer than the 1D color bit code, it is necessary to provide Qz in order to clarify the boundary between the 1D color bit code and other images. On the other hand, “insufficient” refers to a case where the short side of the field frame is too short and only a part of the 1D color bit code can enter the field frame. In this case, the 1D color bit code outside the field frame is not read. Therefore, it is necessary to provide Qz representing the start of the 1D color bit code and Qz representing the end, and use them as marks to place the entire 1D color bit code inside the field frame.

Qzが不要な場合には、Qzに利用されていた色彩をデータを表すために使用しても良い。Qzの色彩としては一般的に白色や黒色が予約されることが多いが、白色を1Dカラービットコードの構成色に加えて、{赤色、緑色、白色}の3色で1Dカラービットコードを構成しても良い。   When Qz is unnecessary, the color used for Qz may be used to represent data. In general, white and black are often reserved as the color of Qz, but in addition to white constituting the color of the 1D color bit code, the 1D color bit code is composed of three colors {red, green, white}. You may do it.

(5−2)白色を1Dカラービットコードの構成色の1つとした場合のマーキング方法
例1
A色、B色、白色、の3色を用いた1Dカラービットコードのマーキングは、現実の場面では、一般的に、まず広い範囲に白色を塗布し、その上にA色のセルとB色のセルを塗布することによって行われる。
(5-2) Marking method when white is one of the constituent colors of the 1D color bit code
Example 1
In a real scene, marking of a 1D color bit code using three colors of A, B, and white is generally performed by first applying white over a wide area, and then A cell and B color on it. This is done by applying a cell.

図7(1)は、被印物52の表面の模式図である。被印物52の表面の広範囲に、1Dカラービットコードの構成色であるWのインクを下地色として塗布して白色下地54が形成されたことが示されている。ここで、広範囲とは、視野枠よりも広いことをいう。なお、図7(1)中の斜線部分は背景色を示す。   FIG. 7A is a schematic view of the surface of the object 52 to be marked. It is shown that a white background 54 is formed over a wide range of the surface of the object 52 by applying W ink, which is a constituent color of the 1D color bit code, as a background color. Here, the wide range means wider than the field frame. The hatched portion in FIG. 7 (1) indicates the background color.

図7(2)は、構成セル56群(A色のセル及びB色のセル)を形成した後の被印物52の表面の模式図である。白色下地54上にA色のインク又はB色のインクが重ね塗りされ、構成セル56群が構成されている。構成セル56群を構成するA色のセル及びB色のセルは、それぞれ間隔を空けて形成されている。A色のセル及びB色のセルの各セルの間には白色下地54がそのまま露出しており、この露出部分が1Dカラービットコードを構成する白色セルとなる。   FIG. 7B is a schematic view of the surface of the object 52 after forming the constituent cell group 56 (A color cell and B color cell). The A-color ink or the B-color ink is overcoated on the white base 54 to constitute a group of constituent cells 56. The A-color cells and B-color cells constituting the group of constituent cells 56 are formed with a space therebetween. The white base 54 is exposed as it is between the A-color cell and the B-color cell, and this exposed portion becomes a white cell constituting the 1D color bit code.

図7(3)には、1Dカラービットコードのキャプチャ画像58が示されている。デコード手段のキャプチャ画面には視野枠60が予め表示されており、デコード手段は、視野枠60を利用して視野枠60の内部の狭小画像を切り出す。   FIG. 7 (3) shows a captured image 58 of a 1D color bit code. The field frame 60 is displayed in advance on the capture screen of the decoding unit, and the decoding unit cuts out a narrow image inside the field frame 60 using the field frame 60.

この図7(3)に示されるように、視野枠60内には、A色のセルと、B色のセルと、白色の部分、のみしか存在しない。このように、Qzに利用していた色彩を1Dカラービットコードの構成色の1つとして利用すれば、「視野枠内に1Dカラービットコードを過不足なく納める」という状況を容易に実現することができる。   As shown in FIG. 7 (3), there are only A-color cells, B-color cells, and white portions in the field frame 60. As described above, if the color used for Qz is used as one of the constituent colors of the 1D color bit code, the situation that “the 1D color bit code can be accommodated in the field frame without excess or deficiency” can be easily realized. Can do.

図7(4)には、切り出された狭小画像62が示されている。デコード手段は、狭小画像62に対して色彩の平均化処理又は短辺方向色彩均一化処理を行い、各画素に基づいて複数の色彩領域に分割する。そして、狭小画像62が1Dカラービットコードの成立条件を満たしていると判断した場合には、上記(2)で述べた読み取り方法でデコードを行う。   FIG. 7 (4) shows a narrowed image 62 that has been cut out. The decoding means performs color averaging processing or short side direction color uniformity processing on the narrow image 62, and divides the narrow image 62 into a plurality of color regions. When it is determined that the narrow image 62 satisfies the conditions for establishing the 1D color bit code, decoding is performed by the reading method described in (2) above.

例2
読み取りにさらに正確性を期するために、1Dカラービットコードの両端以外の白色セルに、再度白色をマーキングすることも好ましい。もし、A色のセル及びB色のセルをマーキングする際に、白色下地が汚れたとしても、汚れの上から白色セルをマーキングすれば正しく読み取れるという有利な効果が得られる。
Example 2
In order to further improve the accuracy of reading, it is also preferable that white cells are marked again on white cells other than both ends of the 1D color bit code. Even when the white background is soiled when marking the A-color cell and the B-color cell, an advantageous effect is obtained in that the white cell is marked from above the stain so that it can be read correctly.

また、1Dカラービットコードの構成色が、{赤色}、{緑色}、{赤色及び緑色のいずれでもない色彩}、の3種類である場合には、1Dカラービットコードの両端以外の白色セルに黄色系統の色彩をマーキングすることによっても同様の効果が得られる。   In addition, when the constituent colors of the 1D color bit code are three types of {red}, {green}, and {color that is neither red nor green}, white cells other than both ends of the 1D color bit code are used. The same effect can be obtained by marking the yellow color.

下地色を1Dカラービットコードの構成色として利用する効果
上述したように、本実施の形態では、白色を下地色として被印物表面に塗布し、下地が露出した部分を1Dカラービットコードの構成セルとして利用することも好ましい。このように下地の色彩を1Dカラービットコードの1つとして利用すれば、以下の3つの効果が得られる。
Effect of using background color as constituent color of 1D color bit code As described above, in the present embodiment, white is applied to the surface of the object to be printed as the base color, and the portion where the base is exposed is configured of the 1D color bit code. It is also preferable to use it as a cell. If the background color is used as one of the 1D color bit codes in this way, the following three effects can be obtained.

1つ目の効果は、1Dカラービットコードの構成色として、無彩色系統(白、黒、グレーなど)の色彩や明色系統(白、明るい黄色等)の色彩を用いることができるという効果である。   The first effect is that an achromatic color (white, black, gray, etc.) or a bright color (white, bright yellow, etc.) can be used as a constituent color of the 1D color bit code. is there.

Qzの色彩としては、従来から、無彩色系統や明色系統の色彩が用いられることが多い。無彩色系統や明色系統の色彩は背景色として一般的で、安定的にキャプチャできる色彩なので、デコードの正確性の維持及び品質的に、無彩色系統や明色系統の色彩をQzに用いるのが最も好ましかったからである。   As the color of Qz, conventionally, achromatic and bright colors are often used. The achromatic and light colors are common as background colors and can be captured stably, so the achromatic and light colors are used for Qz in order to maintain decoding accuracy and quality. Because was the most preferred.

セルの構成色は、Qzの色彩とは別に、無彩色系統や明色系統ではない色彩(例えばR(赤色)、G(緑色)、B(青色))を選択する必要があった。無彩色系統や明色系統ではない色彩は、色彩の区分けが白色等に比べて困難な場合がある。そのため、R、G、Bをセルの構成色とすると、正しくデコードができない場合もあった。   In addition to the Qz color, it is necessary to select a color that is not an achromatic color system or a light color system (for example, R (red), G (green), and B (blue)). A color that is not an achromatic color system or a light color system may be more difficult to separate colors than white. For this reason, if R, G, and B are cell constituent colors, decoding may not be performed correctly.

一方、本実施の形態では、Qzを設ける必要がないので、従来Qzに割り当てていた無彩色系統の色彩や明色系統の色彩を、1Dカラービットコードの構成色として用いることができる。キャプチャ対象として安定的な色彩を1Dカラービットコードの構成色として用いることができるので、従来よりも読み取り正確性が向上する。   On the other hand, in the present embodiment, since it is not necessary to provide Qz, it is possible to use the achromatic color and light color that have been assigned to Qz as the constituent colors of the 1D color bit code. Since a stable color can be used as a constituent color of the 1D color bit code as a capture target, the reading accuracy is improved as compared with the conventional case.

2つ目の効果は、色彩の区分けがし易くなるという効果である。1Dカラービットコードの構成色としては、R(赤色)、G(緑色)、B(青色)の3つの色彩がしばしば採用される。これら3つの色彩は色の3原色であり、色の認識が容易だからである。しかしながら、これらR、G、Bの3種類の色相は、人間の視覚とカメラで測定する感度との間にズレがある場合がある。特に、カメラを用いて{G}と{B}とを区別することは比較的に難しい。GのセルとBのセルとの配列順を誤って認識することもあり得る。一方、{R}と{G}との区別や、{R}と{B}との区別、及び{R、G、B}と{W}との区別は、比較的に容易なケースが多い。   The second effect is that it is easy to distinguish colors. As the constituent colors of the 1D color bit code, three colors of R (red), G (green), and B (blue) are often employed. This is because these three colors are the three primary colors, and color recognition is easy. However, these three types of hues of R, G, and B may be misaligned between human vision and the sensitivity measured by the camera. In particular, it is relatively difficult to distinguish {G} and {B} using a camera. It is possible that the order of arrangement of the G cell and the B cell is erroneously recognized. On the other hand, the distinction between {R} and {G}, {R} and {B}, and {R, G, B} and {W} are often relatively easy. .

そこで、Wを下地色として利用すれば、{R、G、B}と{W}との組み合わせで1Dカラービットコードを構成できる。カメラを用いて1Dカラービットコードを構成する色彩をより一層容易に区分けできるので、読み取り特性が格段に向上するという有益な効果が得られる。   Therefore, if W is used as a background color, a 1D color bit code can be configured by a combination of {R, G, B} and {W}. Since the colors constituting the 1D color bit code can be more easily classified using a camera, a beneficial effect that the reading characteristics are remarkably improved can be obtained.

3つ目の効果は、1Dカラービットを付すのに必要な色彩の種類が減り、色彩の選定が極めて容易になるという効果である。3色をセル構成色とする従来の1Dカラービットコードでは、1Dカラービットコードを構成する3種類の色彩と、Qzを表す1色と、の合計4種類の色彩を必要としていた。一方、本実施の形態では、Qzを表すための色彩を特に設ける必要がない。この結果、1Dカラービットコードを付すために必要な色彩の種類を、4種類から3種類に減じることができたという有益な効果が得られた。また、1Dカラービットコードのマーキングがより一層簡便になるという効果も得られる。   The third effect is that the number of colors required for attaching the 1D color bit is reduced, and the selection of colors becomes very easy. In a conventional 1D color bit code in which three colors are cell constituent colors, a total of four types of colors, that is, three types of colors constituting the 1D color bit code and one color representing Qz are required. On the other hand, in the present embodiment, it is not necessary to provide a color for expressing Qz. As a result, there was obtained a beneficial effect that the types of colors necessary for attaching the 1D color bit code could be reduced from four to three. In addition, there is an effect that the marking of the 1D color bit code is further simplified.

(5−3)切り出し用冗長セル
図7(3)において、視野枠60の長辺の長さが、白色にした下地部分(白色下地54)よりも長い場合には、非下地部分(白色下地54がマーキングされていない部分)も視野枠60の内部に入り、キャプチャされてしまう。非下地部分の色彩は不定であり、非下地部分そのものが何らかの色彩パターン(模様)をもっていることもあり得る。従って、この場合には、非下地部分をデコードの対象から除外することが好ましい。ここでは、切り出し用冗長セル68a、68bを用いて、非下地部分をデコードの対象から除外する(すなわち、1Dカラービットコードのみをデコードする)方法について述べる。
(5-3) Redundant cell for cutout In FIG. 7 (3), when the length of the long side of the field frame 60 is longer than the white background portion (white background 54), the non-background portion (white background) The portion where 54 is not marked also enters the field frame 60 and is captured. The color of the non-background portion is indefinite, and the non-background portion itself may have some color pattern (pattern). Therefore, in this case, it is preferable to exclude the non-background portion from the decoding target. Here, a method of excluding the non-background portion from the decoding target (that is, decoding only the 1D color bit code) using the cut-off redundant cells 68a and 68b will be described.

図8には、板状体64が示されている。板状体64の端面の一部には、白色下地66がマーキングされており、白色下地66上にはさらに1Dカラービットコードのセル構成色のうち白色以外の色彩のセルがマーキングされている。こうして、図中に示されるように、左端から右端に向かって、切り出し用冗長セル群68a、1Dカラービットコード70、切り出し用冗長セル群68b、がこの順にマーキングされている。   FIG. 8 shows a plate-like body 64. A white background 66 is marked on a part of the end face of the plate-like body 64, and cells of colors other than white are marked on the white background 66 among the cell constituent colors of the 1D color bit code. Thus, as shown in the figure, the cutout redundant cell group 68a, the 1D color bit code 70, and the cutout redundant cell group 68b are marked in this order from the left end to the right end.

切り出し用冗長セル群68a、68bは、それぞれ5個のセル(白色のセルを含む)から構成され、同一の色彩の配列を表す。これら切り出し用冗長セル群68a、68bは、間に1Dカラービットコード70が存在することを示す。   The cutout redundant cell groups 68a and 68b are each composed of five cells (including white cells) and represent the same color arrangement. These cut-out redundant cell groups 68a and 68b indicate that a 1D color bit code 70 exists between them.

図9には、上記板状体64の端面の垂直上方から1Dカラービットコード70をキャプチャしたキャプチャ画像72が示されている。図9において、視野枠74の長辺の長さは、白色の下地66より長い。そのため、非下地部分(不定色)が視野枠内に入り、キャプチャされてしまう。このような場合でも、切り出し用冗長セル群68a、68bによって1Dカラービットコードの存在を示すことによって、1Dカラービットコードの切り出しを容易にすることができるのである。デコード手段は、予め設定された視野枠74の内部の画像が、1Dカラービットコードの成立条件を満たすと判断したとき、切り出し用冗長セル68aと69bとの間にあるセル群が1Dカラービットコード70の色彩の配列を表すと想定してデコードを行う。
本実施の形態によれば、1Dカラービットコードをマーキングする被印物そのものの色彩パターン(模様)に関わらず1Dカラービットコードを読み取ることができるので、1Dカラービットコードの使用用途が格段に広がる。
FIG. 9 shows a captured image 72 obtained by capturing the 1D color bit code 70 from above the end face of the plate-like body 64. In FIG. 9, the length of the long side of the field frame 74 is longer than that of the white base 66. For this reason, the non-background portion (indefinite color) enters the field frame and is captured. Even in such a case, the 1D color bit code can be easily cut out by indicating the existence of the 1D color bit code by the redundant cell groups for cutting 68a and 68b. When the decoding means determines that the image inside the preset field frame 74 satisfies the conditions for establishing the 1D color bit code, the cell group between the clipping redundant cells 68a and 69b is the 1D color bit code. Decoding is performed assuming that 70 colors are represented.
According to the present embodiment, the 1D color bit code can be read regardless of the color pattern (pattern) of the marking object itself marking the 1D color bit code. .

(6)デコード手段の操作性の改良例
(6−1)視野枠の数・配置・形状のバリエーション
本実施の形態において、キャプチャした画像をデコード手段の画面に表示することは容易である。視野枠の内部の画像を表示することも容易である。視野枠で1Dカラービットコードを読み取る場合、利用者が、デコード手段のキャプチャ画面上で、キャプチャ画像と視野枠との双方の位置・範囲を同時に認識できるのが好ましい。キャプチャ画像と、視野枠の内部の画像と、の双方を同時に1個の画面に表示すれば、利用者にとって操作しやすく指示しやすいので都合がよい。また、視野枠をキャプチャ画像内に表示すれば、利用者にとってエイミングが容易で更に操作しやすくなる。
(6) Improved example of operability of decoding means (6-1) Variations in number, arrangement, and shape of field frames In this embodiment, it is easy to display a captured image on the screen of the decoding means. It is also easy to display an image inside the field frame. When reading the 1D color bit code with the field frame, it is preferable that the user can simultaneously recognize the positions and ranges of both the captured image and the field frame on the capture screen of the decoding unit. If both the captured image and the image inside the field frame are displayed on one screen at the same time, it is convenient for the user to easily operate and instruct. Further, if the field frame is displayed in the captured image, it is easy for the user to aim and further facilitate the operation.

図10には、視野枠の数・配置・形状のバリエーションの例が示されている。   FIG. 10 shows an example of variations in the number, arrangement, and shape of the field frames.

図10(1)は、1個のキャプチャ画面76に1個の直線状の視野枠78を設定した例である。本実施の形態における視野枠は、必ずしも直線状である必要はない。また、視野枠の数を1個に限定するものではない。1つのキャプチャ画面に視野枠が複数ある方が読み取り操作の面で好都合である場合には、キャプチャ画面に複数の視野枠を設定することもできる。1つのキャプチャ画面に視野枠が複数存在する場合には、各視野枠を平行に配列したり、角度を変えて配列する等、操作性向上のための数多くのバリエーションがあり得る。   FIG. 10A shows an example in which one linear field frame 78 is set on one capture screen 76. The field frame in the present embodiment is not necessarily linear. Further, the number of field frames is not limited to one. If it is more convenient in terms of reading operation to have a plurality of field frames on one capture screen, a plurality of field frames can be set on the capture screen. When there are a plurality of field frames on one capture screen, there can be many variations for improving operability such as arranging the field frames in parallel or by changing the angle.

図10(2)のキャプチャ画面80は、5個の直線状の視野枠が平行に設けられた例である。1Dカラービットコードを読み取るためには1Dカラービットコードを構成するセル群の画像を視野枠に合わせる必要があるが、視野枠が複数個あれば、いずれかの視野枠が1Dカラービットコードに合えばよい。この結果、1Dカラービットコードを捕らえやすくなるので、利用者にとって操作が簡便になるという効果が得られる。   The capture screen 80 in FIG. 10B is an example in which five linear field frames are provided in parallel. To read the 1D color bit code, it is necessary to match the image of the cell group constituting the 1D color bit code with the field frame. If there are multiple field frames, one of the field frames matches the 1D color bit code. Just do it. As a result, the 1D color bit code can be easily captured, so that the user can easily operate.

図10(3)のキャプチャ画面82は、9個の直線状の視野枠が、3個1組でそれぞれ少しずつ角度を変えて設けられた例である。上述したように、1Dカラービットコードを読み取るためには視野枠の位置を1Dカラービットコードに合わせる必要があるが、角度も合わせる必要がある。しかし、1Dカラービットコードの角度を視野枠に合わせるのが容易でない場合もある。そこで、キャプチャ画面82のように、複数個の視野枠が角度を少しずつずらして設けられていれば、視野枠と1Dカラービットコードとの角度を合わせやすくなり、利用者にとって操作がより一層簡便になる。   The capture screen 82 shown in FIG. 10 (3) is an example in which nine linear field frames are provided with a set of three, each having a slightly different angle. As described above, in order to read the 1D color bit code, it is necessary to match the position of the field frame with the 1D color bit code, but it is also necessary to match the angle. However, it may not be easy to match the angle of the 1D color bit code with the field frame. Therefore, if a plurality of field frames are provided with the angles slightly shifted as in the capture screen 82, the angle between the field frame and the 1D color bit code can be easily adjusted, and the operation is easier for the user. become.

図10(4)のキャプチャ画面84は、「へ」の字型の1個の視野枠を配置した例である。なお、図10中に記載されている「異形」とは、直線状ではないという意味である。1Dカラービットコードが「へ」の字型にマーキングされている場合には、それに合わせて「へ」字型の視野枠を用いれば読み取りやすくなる。   The capture screen 84 in FIG. 10 (4) is an example in which one field frame of a “he” shape is arranged. In addition, the “variant shape” described in FIG. 10 means that it is not linear. When the 1D color bit code is marked in a “h” character shape, it is easier to read by using a “h” character field frame accordingly.

図10(5)のキャプチャ画面86は、「U」字型の1個の視野枠を配置した例である。キャプチャ画面84と同様に、1Dカラービットコードが「U」字型に配置されている場合には、視野枠の形状も1Dカラービットコードに合わせて「U」字型に設定すれば、切り出しやすくなり読み取りやすくなる。   The capture screen 86 in FIG. 10 (5) is an example in which one “U” -shaped field frame is arranged. Similarly to the capture screen 84, when the 1D color bit code is arranged in a “U” shape, it is easy to cut out if the shape of the field frame is set to the “U” shape in accordance with the 1D color bit code. It becomes easier to read.

本実施の形態においては、視野枠で取り出す狭小画像が短辺方向と長手方向という方向性を有することが重要である。狭小画像の長手方向のみの色彩の変化に基づいてデコードするからである。狭小画像のいずれかの縁が曲線状であったり、短辺方向の幅が変化していても(一定でなくても)、狭小画像の2つの方向性(長手方向と短辺方向)が明確であれば読み取りが可能である。   In the present embodiment, it is important that the narrow image taken out by the field frame has the directivity of the short side direction and the long side direction. This is because the decoding is performed based on the color change only in the longitudinal direction of the narrow image. Even if one of the edges of a narrow image is curved or the width in the short side direction changes (even if it is not constant), the two directions of the narrow image (longitudinal direction and short side direction) are clear. If so, reading is possible.

また、視野枠は、キャプチャ画面の視野内で固定されている必要はなく、デコード手段が、視野枠をキャプチャ画面中を上下に走査するように移動させたり、回転させたりすることも考えられる。本実施の形態において、デコード手段は、特許請求の範囲に記載の視野枠移動手段の好ましい一例に相当する。また、1つのキャプチャ画面上に、複数の視野枠があっても良い。また、視野枠の幅、長さなどを1Dカラービットコードの配置に合わせて変更することも好ましい。利用者が、視野枠の形状を1Dカラービットコードの幅・長さに合わせて変更できれば、好都合である場合が多々あるものと想定される。   The field frame does not need to be fixed within the field of view of the capture screen, and it is conceivable that the decoding means moves or rotates the field frame so as to scan up and down in the capture screen. In the present embodiment, the decoding means corresponds to a preferred example of the field frame moving means described in the claims. Moreover, there may be a plurality of field frames on one capture screen. It is also preferable to change the width and length of the field frame in accordance with the arrangement of the 1D color bit code. If the user can change the shape of the field frame according to the width and length of the 1D color bit code, it is assumed that there are many cases where it is convenient.

また、視野枠の数・形状のバリエーションの設定は、画像をキャプチャした後にソフトウェア的に行うことができる。利用者が、視野枠のバリエーションを自由に選んだり、任意に変化を加えることも可能である。   The variation of the number and shape of the field frames can be set by software after capturing an image. It is possible for the user to freely select a variation of the field frame or to change it arbitrarily.

(6−2)1Dカラービットコードの位置と視野枠の位置とを関連づける方法
キャプチャ画像内に、1個の1Dカラービットコードがマーキングされたタグが複数個ある場合、デコード手段が、タグごとに、1Dカラービットコードが表すデータと位置情報とを関連づけてキャプチャ画像上に提示すれば、利用者にとって利便性が向上する。視野枠を利用した読み取り方式では、読み取れた1Dカラービットコードの多くは、おおよそ平行に配置されているものであるケースが多いと想定される。キャプチャカメラを上下左右に動かして読み取る場合が多いからである。読み取れた複数の1Dカラービットコードの位置と、それらの1Dカラービットコードを読み取ったときの視野枠の位置とを関連付けて認識できれば、複数のタグ同士の位置関係も認識できるのでより一層好ましい。
(6-2) A method of associating the position of the 1D color bit code with the position of the field frame When there are a plurality of tags marked with one 1D color bit code in the captured image, the decoding means If the data represented by the 1D color bit code and the position information are associated and presented on the captured image, convenience for the user is improved. In the reading method using the field frame, it is assumed that many of the read 1D color bit codes are generally arranged in parallel. This is because the capture camera is often moved up, down, left and right for reading. If it is possible to recognize the position of a plurality of 1D color bit codes that have been read and the position of the field frame when these 1D color bit codes are read in association with each other, it is even more preferable because the positional relationship between the tags can also be recognized.

上記(6−1)で述べたように、利用者は、視野枠の位置をキャプチャ画像の中で自由に設定できる。また、その他に、以下に示すような多様な方法で視野枠の位置を設定することが考えられる。   As described in (6-1) above, the user can freely set the position of the field frame in the captured image. In addition, it is conceivable to set the position of the field frame by various methods as described below.

a.1Dカラービットコードを動画キャプチャしながら、キャプチャ映像内で視野枠を自動で移動(走査)させる。   a. While capturing the 1D color bit code as a moving image, the field frame is automatically moved (scanned) within the captured video.

具体的には、連続的にキャプチャされる各画像上に、視野枠を、各画像ごとに少しずつ位置を移動させて設定しておき、視野枠と色彩配列コードの位置が合致しているいずれかのキャプチャ画像についてデコード処理を行えば、この処理を行うことができる。より具体的には、各画像に設定された視野枠のうち、視野枠内の色彩領域が、色彩配列コードを構成する色彩により構成されているものについて、その視野枠内の狭小画像を取り出し、デコードの対象とするのである。この場合に、各キャプチャ画像における視野枠の移動方法は、平行に移動させても良いし、回転移動させても良い。なお、視野枠の個数は、単数個であっても複数個であっても良い。   Specifically, on each continuously captured image, a field frame is set by moving the position little by little for each image, and the position of the field frame and the color arrangement code matches. If decoding processing is performed on such a captured image, this processing can be performed. More specifically, out of the field frames set in each image, for those in which the color region in the field frame is configured by the colors constituting the color arrangement code, a narrow image in the field frame is extracted, It is the object of decoding. In this case, the method of moving the field frame in each captured image may be moved in parallel or rotated. The number of field frames may be singular or plural.

b.一旦取り込んだ静止画像上で、視野枠を自動で走査させる。視野枠の個数は、単数個であっても、複数個であっても良い。   b. The field frame is automatically scanned on the captured still image. The number of field frames may be singular or plural.

c.キャプチャ画像内の所定の位置に視野枠を固定し、利用者が、カメラ本体を動かして動画キャプチャ視野全体を移動(走査)させる。視野枠の個数は、単数個であっても、複数個であっても良い。   c. The field frame is fixed at a predetermined position in the captured image, and the user moves (scans) the entire moving image capture field by moving the camera body. The number of field frames may be singular or plural.

上記の方法であれば、タグが複数個あった場合でも、いずれのタグも読み取ることが可能である。   With the above method, even if there are a plurality of tags, any tag can be read.

しかしながら、上記a〜cの方法で視野枠の位置を設定してタグをキャプチャすると、その後の処理で、以下の3つの処理を行うことが困難になる場合がある。   However, if the field frame position is set by the methods a to c and the tag is captured, it may be difficult to perform the following three processes in the subsequent processes.

1.タグの位置関係の認識
キャプチャ画像上において、視野枠の位置とタグとの双方が移動するので、双方の位置関係を認識することが困難になる。また、複数のタグが存在する場合に、各タグの位置関係を認識することも困難になる。
1. Recognition of tag positions
Since both the position of the field frame and the tag move on the captured image, it is difficult to recognize the positional relationship between the two. In addition, when there are a plurality of tags, it is difficult to recognize the positional relationship between the tags.

2.同一タグの区別
視野枠の位置が移動するので、1個のタグを複数回認識したということを判断することが困難になる。
2. Same tag distinction
Since the position of the field frame moves, it is difficult to determine that one tag has been recognized a plurality of times.

3.読み取りに失敗したタグの処理
読み取りに失敗したタグは、再度読み取りトライを行うのが望ましい。しかし、読み取りに失敗したタグの位置の追跡をしないので、視野枠が読み取れなかったタグを一度離れると、再度読み取りトライすることが困難になる。
3. Processing of tags that failed to read It is desirable to retry reading a tag that has failed to be read. However, since the position of the tag that has failed to be read is not tracked, it is difficult to retry reading again once the tag whose field frame has not been read is left.

これら3つの処理を行うために、以下に述べる2つの方式を併用することが好ましい。   In order to perform these three processes, it is preferable to use the following two methods together.

方式1(タグの位置の認識)
方式1は、視野枠の位置情報を利用して、タグの位置を認識する方式である。
Method 1 (tag position recognition)
Method 1 is a method of recognizing the tag position using the position information of the field frame.

デコード手段は、1Dカラービットコードをデコードできたときの視野枠(デコード視野)の位置情報をキャプチャ画像とリンクさせて(貼り付けて)記憶する。位置情報とは、視野枠の内部に存在する各画素の座標情報である。デコード手段は、1Dカラービットコードからデコード結果を得る度に、デコード結果と、デコードできたときの視野枠の位置情報とをキャプチャ画像とリンクさせて(貼り付けて)記憶する。複数回デコードできたときには、複数の位置情報がキャプチャ画像にリンクされることになる。   The decoding means stores the position information of the visual field frame (decoded visual field) when the 1D color bit code can be decoded linked to (attached to) the captured image. The position information is coordinate information of each pixel existing inside the field frame. Each time the decoding means obtains a decoding result from the 1D color bit code, the decoding result and the position information of the field frame when decoding is possible are linked (pasted) to the captured image and stored. When decoding can be performed a plurality of times, a plurality of pieces of position information are linked to the captured image.

この結果、デコードできた1Dカラービットコードの位置が全てキャプチャ画像にリンクさせて記憶されることになるので、デコード手段が、キャプチャ画像にリンクされた位置情報全てを読み取り、キャプチャ画面上にその位置を示す枠等を表示すれば、利用者にとっては、読み取れたタグの位置を全て認識することが容易である。   As a result, all the decoded 1D color bit code positions are stored linked to the captured image, so that the decoding means reads all the positional information linked to the captured image and displays the position on the capture screen. If a frame or the like indicating is displayed, it is easy for the user to recognize all of the read tag positions.

方式2(同一タグの区別)
方式2は、デコード手段が上記方式1を実行して記憶した視野枠の位置情報に基づいて、同一タグであると判断した場合には、合わせて1つとしてカウントする方式である。同一のタグであるか否かの判断は、以下の2通りの考え方がある。
Method 2 (Distinction of the same tag)
Method 2 is a method in which when the decoding unit determines that the same tag is based on the position information of the field frame stored by executing method 1, the number is counted as one. There are two ways of judging whether or not they are the same tag.

第1の考え方は、「視野枠の幅の係数倍以上」を基準とする考え方である。デコード手段が新たに得た視野枠の位置情報と、デコード手段がすでに得ている視野枠の位置情報と、を比較して、新たな視野枠が前の視野枠に対して「視野枠の幅の係数倍以上」離間している場合には、それら視野枠の内部に写っているタグは同一でないと判定する。基準内であれば、デコード手段は、同一のタグを読み取ったと判定し、新たに得た位置情報及びデコード結果を破棄する。   The first way of thinking is based on the criterion “more than a factor of the width of the field frame”. The position information of the field frame newly obtained by the decoding means and the position information of the field frame already obtained by the decoding means are compared. If they are separated by “more than a factor of two”, it is determined that the tags appearing in the field frames are not the same. If it is within the standard, the decoding means determines that the same tag has been read, and discards the newly obtained position information and decoding result.

第2の考え方は、「予め定められた距離」を基準とする考え方である。第1の考え方と同様に、新たな視野枠と前の視野枠との間に、基準値以上の離間があれば、それらのタグは同一でないと判定する。基準内であれば、デコード手段は、同一のタグを読み取ったと判断し、新たに得た位置情報及びデコード結果を破棄する。   The second concept is based on the “predetermined distance”. Similar to the first idea, if there is a separation equal to or greater than the reference value between the new field frame and the previous field frame, it is determined that the tags are not the same. If it is within the standard, the decoding means determines that the same tag has been read, and discards the newly obtained position information and decoding result.

利用者は、視野枠の幅の長さ、或いは読み取ろうとするタグの密集度などに合わせて、適宜いずれか又は双方の考え方を採用することができる。この結果、デコード手段は、利用者に対して読み取れたタグの位置を提示できるので、利用者にとって操作性が向上する。また、利用者は、読み取れたタグの位置を知ることによって、読み取れていないタグがどのタグであるかを知ることもできるので、利用者にとって操作性が格段に向上する。   The user can appropriately adopt either or both of the concepts according to the length of the field frame or the density of tags to be read. As a result, since the decoding means can present the position of the read tag to the user, the operability for the user is improved. In addition, since the user can know which tag is the tag that has not been read by knowing the position of the read tag, the operability for the user is greatly improved.

(7)1Dカラービットコードの追跡
1Dカラービットコードの最も基本的な読み取り方法では、色彩のみに基づいて、キャプチャ画像中の1Dカラービットコードの構成色の色彩領域を追跡し、1Dカラービットコードを切り出す。
(7) Tracking of 1D color bit code In the most basic reading method of 1D color bit code, the color area of the constituent color of the 1D color bit code in the captured image is tracked based on only the color, and 1D color bit code is recorded. Cut out.

しかしながら、この色彩のみに基づく追跡方法では、1Dカラービットコードを追跡する方向が規制されないので、1Dカラービットコードの配置によっては、読み取りが困難な場合もあった。   However, in this tracking method based only on color, the direction in which the 1D color bit code is tracked is not restricted, so that it may be difficult to read depending on the arrangement of the 1D color bit code.

そこで、本願発明者は、1Dカラービットコードの追跡方向を規制した改良例を2つ開発した。   Therefore, the present inventor has developed two improved examples in which the tracking direction of the 1D color bit code is regulated.

改良例1は、上述したように、幅の狭い視野枠(上述した「U」字型の視野枠や「へ」字型の視野枠のように視野枠が曲線状に配置されている場合も含まれる)を利用した読み取り方法である。上述したように、この読み取り方法では、1Dカラービットコードのキャプチャ画像に視野枠をあてがうことによって、追跡方向を規制する。   As described above, the improvement example 1 has a narrow field frame (the field frame may be arranged in a curved shape like the above-described “U” -shaped field frame or “He” -shaped field frame). Is included). As described above, in this reading method, the tracking direction is regulated by assigning a field frame to the captured image of the 1D color bit code.

改良例2は、1Dカラービットコードの直線性を利用した読み取り方法である。1Dカラービットコードの配置はデータとは関係がないが、一般的に1Dカラービットコードは直線状にマーキングされる場合が多い。そこで、直線状にマーキングされた1Dカラービットコードを読み取る場合には、1Dカラービットコードの直線性を利用すればより一層簡単に追跡することができる。以下では、この改良例2の具体例を2つ説明する。   The improvement example 2 is a reading method using the linearity of the 1D color bit code. The arrangement of the 1D color bit code is not related to data, but generally the 1D color bit code is often marked in a straight line. Therefore, when a 1D color bit code marked in a straight line is read, tracking can be performed even more easily by using the linearity of the 1D color bit code. Hereinafter, two specific examples of the improved example 2 will be described.

追跡例1
図11には、1Dカラービットコードを含むキャプチャ画像88が示されている。図中の16個の色彩領域90a、90b、90c、90d、90e、…、90k、90k+1、90k+2、…、90n−1、90nが1Dカラービットコードを構成する。色彩領域90qは、1Dカラービットコードの構成色と同色の色彩領域であるが、1Dカラービットコードを構成しない。なお、色彩領域90群の周囲は、1Dカラービットコードの構成色ではない色彩の色彩領域である。
Tracking example 1
FIG. 11 shows a captured image 88 including a 1D color bit code. The 16 color regions 90a, 90b, 90c, 90d, 90e,..., 90k, 90k + 1, 90k + 2,..., 90n-1, 90n in the figure constitute a 1D color bit code. The color area 90q is a color area having the same color as the constituent color of the 1D color bit code, but does not constitute the 1D color bit code. In addition, the periphery of the color region 90 group is a color region of a color that is not a constituent color of the 1D color bit code.

本実施の形態では、初期条件として、(A)色彩領域90aが第1セルであることが既知である。色彩領域90aが「予め定められた位置にある画素」を含むので、色彩領域90aが1Dカラービットコードの第1セルであることは初めから既知である。(B)1Dカラービットコードを構成する各セルは、「各セルは1個又は2個の他のセルと接する」という境界条件に基づいてマーキングされている。(C)「1Dカラービットコードを構成するセル群は、急峻な曲がり方をしない」という規定に基づいてマーキングされている。デコード手段は、これら3個の規定を利用して、最も直線性の高い色彩範囲(色彩領域)を順番に追っていくことによって、1Dカラービットコードを追跡する。   In the present embodiment, it is known that (A) the color area 90a is the first cell as an initial condition. Since the color area 90a includes “a pixel at a predetermined position”, it is known from the beginning that the color area 90a is the first cell of the 1D color bit code. (B) Each cell constituting the 1D color bit code is marked based on a boundary condition that “each cell is in contact with one or two other cells”. (C) Marking is performed based on the rule that “the cell group constituting the 1D color bit code does not bend sharply”. The decoding unit tracks the 1D color bit code by sequentially tracking the color range (color region) having the highest linearity using these three rules.

デコード手段は、まず、色彩領域90aに隣接する他の色彩領域の中から1Dカラービットコードの構成色の色彩領域を選択し、その色彩領域を1Dカラービットコードの第2セルであるとみなす。本実施の形態では、色彩領域90bが第2セルとなる。   The decoding means first selects a color area of the constituent color of the 1D color bit code from other color areas adjacent to the color area 90a, and regards the color area as the second cell of the 1D color bit code. In the present embodiment, the color region 90b is the second cell.

デコード手段は、同様に、1Dカラービットコードの構成色の色彩領域を次々に選択し、色彩領域90c、90d、90e、…、90k、90k+1を、それぞれ、第3セル、第4セル、第5セル、…、第kセル、第k+1セルであるとみなす。   Similarly, the decoding means sequentially selects the color areas of the constituent colors of the 1D color bit code, and sets the color areas 90c, 90d, 90e,..., 90k, 90k + 1 to the third cell, the fourth cell, and the fifth cell, respectively. Cell,..., Kth cell, k + 1th cell.

次に、デコード手段は、第k+2セルである色彩領域を追跡する。図11に示されるように、色彩領域90k+1セルは、色彩領域90k+2と、色彩領域90qと、その他周囲の色彩領域と、に接する。色彩領域90k+2と色彩領域90qは、ともに1Dカラービットコードの構成色の色彩領域であり、第k+2セルである色彩領域の候補が2個存在することになるので、上記(B)の規定だけでは追跡できない。そこで、デコード手段は、上記(C)の規定を利用して1Dカラービットコードを追跡する。   Next, the decoding means tracks the color area which is the k + 2 cell. As shown in FIG. 11, the color region 90k + 1 cell is in contact with the color region 90k + 2, the color region 90q, and other surrounding color regions. The color region 90k + 2 and the color region 90q are both color regions of the constituent colors of the 1D color bit code, and there are two color region candidates that are the k + 2 cell. I can't track it. Therefore, the decoding means tracks the 1D color bit code using the above-mentioned definition (C).

図12には、図11中の枠92の内部を拡大した図が示されている。デコード手段は、まず、色彩領域90k+1、90k、90k+2、90qの各重心点94k+1、94k、94k+2、94qの位置を算出する。   FIG. 12 shows an enlarged view of the inside of the frame 92 in FIG. The decoding means first calculates the positions of the centroid points 94k + 1, 94k, 94k + 2, and 94q in the color regions 90k + 1, 90k, 90k + 2, and 90q.

次に、デコード手段は、重心点94k+1と、各重心点94k、94k+2、94q、とを通る直線L(k)、L(k+2)、L(q)、を各重心点ごとに描く。   Next, the decoding means draws straight lines L (k), L (k + 2), and L (q) passing through the barycentric point 94k + 1 and the barycentric points 94k, 94k + 2, and 94q for each barycentric point.

次に、デコード手段は、直線L(k)と直線L(k+2)とが成す角α(k+2)と、直線L(k)と直線L(q)とが成す角α(q)と、を比較し、直線L(k)に対して最も直線性が高い直線を選択する。本実施の形態では、角α(k+2)の方が小さいので、デコード手段は、直線L(k+2)が最も直線性が高いと判断し選択する。   Next, the decoding means calculates an angle α (k + 2) formed by the straight line L (k) and the straight line L (k + 2) and an angle α (q) formed by the straight line L (k) and the straight line L (q). The straight line having the highest linearity with respect to the straight line L (k) is selected by comparison. In this embodiment, since the angle α (k + 2) is smaller, the decoding means determines that the straight line L (k + 2) has the highest linearity and selects it.

次に、デコード手段は、直線L(k+2)上にある2個の重心点のうち、重心点94k+1ではない重心点94k+2が属する色彩領域90k+2を1Dカラービットコードの第k+2セルであると判断する。   Next, the decoding means determines that, out of the two centroid points on the straight line L (k + 2), the color region 90k + 2 to which the centroid point 94k + 2 that is not the centroid point 94k + 1 belongs is the k + 2 cell of the 1D color bit code. .

デコード手段は、さらに色彩領域90nに至るまで色彩領域を追跡する。この結果、本実施の形態によれば、1Dカラービットコードを構成する色彩領域群をより一層簡単に追跡し、デコードを行うことができる。   The decoding means further tracks the color area up to the color area 90n. As a result, according to the present embodiment, it is possible to more easily track and decode the color area group constituting the 1D color bit code.

追跡例2
図13には、板状体96が示されている。板状体96の端面には、図中左から右に向かって、端点セル98a、切り出し冗長セル群98b、データセル群98c、がマーキングされている。これら3個のセル群は1Dカラービットコード98を構成する。本実施の形態の特徴の1つは、端点セル98aが、他のセルよりも端面の長手方向に長く、他のセルよりも非常に大きい色彩範囲(領域)にマーキングされていることである。なお、端点セルは、スタートセルと呼ばれることもある。
Tracking example 2
FIG. 13 shows a plate-like body 96. On the end surface of the plate-like body 96, an end point cell 98a, a cutout redundant cell group 98b, and a data cell group 98c are marked from left to right in the drawing. These three cell groups constitute a 1D color bit code 98. One of the features of the present embodiment is that the end point cell 98a is marked in a color range (region) that is longer in the longitudinal direction of the end face than the other cells and much larger than the other cells. The end point cell is sometimes called a start cell.

図14には、1Dカラービットコード98をデコード手段でキャプチャしたキャプチャ画像100が示されている。図中、1Dカラービットコード98の周囲に示される色彩領域群は、背景の模様を示す。   FIG. 14 shows a captured image 100 in which the 1D color bit code 98 is captured by the decoding unit. In the drawing, a color region group shown around the 1D color bit code 98 indicates a background pattern.

本実施の形態では、視野枠を用いずに、通常に視野によって1Dカラービットコードをキャプチャし、読み取る。初期条件は以下の2つである。   In the present embodiment, a 1D color bit code is normally captured and read by a field of view without using a field frame. The initial conditions are the following two.

第1の条件は、端点セルは、予め定められた色彩を表し、キャプチャ画像内の予め決められた画像端に接して存在するという条件である。予め決められた画像端とは、キャプチャ画像の縁のうち、利用者が指定した縁をいう。なお、縁の一部であってもよい。本実施の形態では、端点セルは、キャプチャ画像100の左縁に接して存在すると条件付けされている。   The first condition is that the end point cell represents a predetermined color and exists in contact with a predetermined image end in the captured image. The predetermined image edge means an edge designated by the user among the edges of the captured image. It may be a part of the edge. In the present embodiment, the end point cell is conditioned to be in contact with the left edge of the captured image 100.

第2の条件は、端点セルから連続して切り出し冗長セル群が存在するという条件である。切り出し冗長セル群は4個のセルからなり、予め規定された色彩の配列を表す。   The second condition is a condition in which redundant cell groups are continuously cut out from the end point cells. The cut-out redundant cell group is composed of four cells and represents an array of colors defined in advance.

利用者は、端点セル98aがキャプチャ画像100の左縁にかかるようにデコード手段を動かして1Dカラービットコード98をキャプチャする。上述したように、端点セル98aの色彩領域は非常に大きいので、端点セル98aの色彩領域をキャプチャ場面100の左端にかかるように移動させキャプチャすることは容易である。   The user captures the 1D color bit code 98 by moving the decoding means so that the end point cell 98 a covers the left edge of the captured image 100. As described above, since the color region of the end point cell 98a is very large, it is easy to move and capture the color region of the end point cell 98a so as to cover the left end of the capture scene 100.

デコード手段は、キャプチャ画像100を各画素の値に基づいて複数の色彩領域に分割し、キャプチャ画像86の左縁に接する色彩領域群の画素の値に基づいて端点セル98aを探索する。端点セル98aに割り当てられた色彩と同一の色彩の色彩領域を見つけた場合には、その色彩領域は端点セル98aであるとみなす。   The decoding unit divides the captured image 100 into a plurality of color regions based on the values of the respective pixels, and searches for the end point cell 98a based on the values of the pixels in the color region group in contact with the left edge of the captured image 86. When a color area having the same color as the color assigned to the end point cell 98a is found, the color area is regarded as the end point cell 98a.

次に、デコード手段は、端点セル98aに隣接する4個の色彩領域の中から、各画素の値に基づいて切り出し冗長セル群98bの第1セルを見つけ出す。また、さらに、デコード手段は、画素の値に基づいて切り出し冗長セル群98bの第2セル、第3セル、第4セルを次々に追跡する。   Next, the decoding means finds the first cell of the cut redundant cell group 98b based on the value of each pixel from the four color regions adjacent to the end point cell 98a. Further, the decoding means sequentially tracks the second cell, the third cell, and the fourth cell of the cutout redundant cell group 98b based on the pixel value.

次に、デコード手段は、キャプチャ画像100上で、端点セル98aと、切り出し冗長セル群98bを構成するセル群と、の位置関係を認識し、位置関係に基づいてキャプチャ画像100上の配列方向(角度)を算出する。   Next, the decoding means recognizes the positional relationship between the end point cell 98a and the cell group constituting the cutout redundant cell group 98b on the captured image 100, and based on the positional relationship, the decoding direction ( Angle).

次に、デコード手段は、上記追跡例1と同様にして、切り出し冗長セル群98bの配列方向に対して最も直線性が高い位置に存在する色彩領域を次々に選択し、データセル群98cを構成する色彩領域群を追跡する。1Dカラービットコード98のセル群の列は曲率が比較的に小さく、直線状に配列しているので、上記追跡例1で述べた方法によって1Dカラービットコード98を切り出すことができる。   Next, in the same manner as in Tracking Example 1 described above, the decoding means successively selects the color areas existing at the position having the highest linearity with respect to the arrangement direction of the cutout redundant cell group 98b, thereby configuring the data cell group 98c. The color area group to be tracked is tracked. Since the cell group column of the 1D color bit code 98 has a relatively small curvature and is arranged in a straight line, the 1D color bit code 98 can be cut out by the method described in the tracking example 1.

本実施の形態において、端点セル98aは、キャプチャ画像の視野端(画像端)に接するという初期条件があるが、画像端ではなく、例えば、キャプチャ画像の視野内の決められた位置に存在する画素を含む色彩領域を端点セルであると規定しても、問題なく1Dカラービットコードを切り出すことができる。この場合、その「決められた位置」を画面内に例えば「×」印等によって表示すれば、利用者が、端点セルを「決められた位置」に合わせやすくなるので、操作性が格段に向上する。また、「決められた位置」をキャプチャ画面内で自動的に走査するように移動させることによっても操作性の向上を図ることができる。具体的には、「決められた位置」をキャプチャ画像の視野内に複数定めておいて、いずれかの「決められた位置」が端点セルを表す色彩である場合に、そこを端点セルとみなす。その結果、ある1つの「決められた位置」に色彩配列コードの端点が位置しない場合でも、他のいずれかの「決められた位置」に端点が位置すれば、画像内から「自動」で端点セルを抽出し、色彩配列コードを切り出すことができる。なお、この処理は、特許請求の範囲における「複数の予め決められた位置の中から、予め決められた色彩の色彩領域を選択し、その選択した色彩領域を前記色彩配列コードのスタートセルであるとみなす」ことの好適な一例である。   In the present embodiment, the end point cell 98a has an initial condition that it touches the field edge (image edge) of the captured image, but is not at the image edge, for example, a pixel that exists at a determined position within the field of the captured image. Even if the color area including is defined as an end point cell, the 1D color bit code can be cut out without any problem. In this case, if the “predetermined position” is displayed on the screen by, for example, an “x” mark, the user can easily adjust the end point cell to the “predetermined position”, so that the operability is greatly improved. To do. The operability can also be improved by moving the “predetermined position” so as to automatically scan within the capture screen. Specifically, a plurality of “predetermined positions” are defined in the field of view of the captured image, and if any of the “predetermined positions” is a color representing an end point cell, it is regarded as an end point cell. . As a result, even if the end point of the color arrangement code is not located at one “predetermined position”, if the end point is located at any other “predetermined position”, the end point is “automatically” from within the image. Cells can be extracted and color array codes can be cut out. Note that this processing is performed by selecting “a color area of a predetermined color from a plurality of predetermined positions in the claims”, and the selected color area is a start cell of the color arrangement code. It is a preferable example of “considering”.

(8)1Dカラービットコードの改良例
(8−1)追記型1Dカラービットコード
例えば、複雑に各工程が入り組んだ製造工程などでは、その各工程単位毎に、製品にコードを付加することがしばしば望まれている。これは、製造された製品がどのような工程を辿ったか、簡単にかつ精度良く管理するためである。
(8) Improvement example of 1D color bit code (8-1) Write-once type 1D color bit code For example, in a manufacturing process in which each process is complicated, a code may be added to a product for each process unit. Often desired. This is for easily and accurately managing what process the manufactured product has taken.

そこで、本発明者は、先に、同一色彩列上に複数のコードシンボル(1Dカラービットコード)を連続的にマーキングして構成される追記型1Dカラービットコードを開発した。   Therefore, the present inventor first developed a write-once type 1D color bit code configured by consecutively marking a plurality of code symbols (1D color bit code) on the same color sequence.

具体的には、例えば、
(A)Qz色のセルと、Qz色ではない3種類のセルと、の4種類のセルからなる追記型1Dカラービットコードを開発した。この追記型1Dカラービットコードは複数の1Dカラービットコードから構成され、各1DカラービットコードはQz色ではない3種類のセルから構成されている。そして、各1Dカラービットコード間には、Qz色のセルが挿入されている。読み取りの際には、デコード手段が、Qzを目印にして1個の追記型1Dカラービットコードを複数の1Dカラービットコードに分ける。こうして、デコード手段は、複数の1Dカラービットコードを同時に読み取ることができる。
Specifically, for example,
(A) A write-once type 1D color bit code comprising four types of cells, ie, a cell of Qz color and three types of cells not of Qz color, has been developed. This write-once type 1D color bit code is composed of a plurality of 1D color bit codes, and each 1D color bit code is composed of three types of cells that are not Qz color. A Qz cell is inserted between each 1D color bit code. At the time of reading, the decoding means divides one recordable 1D color bit code into a plurality of 1D color bit codes with Qz as a mark. Thus, the decoding means can simultaneously read a plurality of 1D color bit codes.

ところがこの実施の形態では、図7等に基づいて上述したように、Qzの色彩が1Dカラービットコードのセルの構成色となる場合がある。この場合には、Qzのセルが、データを表すセルなのか又は1Dカラービットコードの切れ目を表すセルなのかを知ることができない可能性がある。そのため、(A)の1Dカラービットコードは本実施の形態には不向きであるかも知れない。   However, in this embodiment, as described above with reference to FIG. 7 and the like, the color of Qz may be the constituent color of the cell of the 1D color bit code. In this case, it may not be possible to know whether the cell of Qz is a cell representing data or a cell representing a break in the 1D color bit code. Therefore, the 1D color bit code of (A) may not be suitable for this embodiment.

(B)また、本発明者は、先に出願した特願2008−200624号において、追記型コードを開示した。この追記型コードは、複数の1Dカラービットコードから構成される。各1Dカラービットコードは、構成セル数と、スタートとエンドの色彩が予め決められている。そして、複数の1Dカラービットコードを連続してマーキングして、1個の追記型コードが構成される。読み取りの際には、デコード手段は、セルの色彩とセル数に基づいて、追記型コードを個々の1Dカラービットコードに区切って読み取ることができる。この追記型コードによれば、直列に別の1Dカラービットコードを付加していくことは有用である。   (B) In addition, the present inventor disclosed a write-once type code in Japanese Patent Application No. 2008-200624 filed earlier. This write-once code is composed of a plurality of 1D color bit codes. Each 1D color bit code has a predetermined number of constituent cells and start and end colors. Then, a plurality of 1D color bit codes are continuously marked to constitute one write-once code. At the time of reading, the decoding means can read the write-once code by dividing it into individual 1D color bit codes based on the cell color and the number of cells. According to this write-once code, it is useful to add another 1D color bit code in series.

そこで、本実施の形態では、この特願2008−200624号に記載の(B)の1Dカラービットコードの技術事項を、本実施の形態における1Dカラービットコードに当てはめた読み取り方法を説明する。   Therefore, in this embodiment, a reading method in which the technical matter of the (1D) 1D color bit code described in Japanese Patent Application No. 2008-200264 is applied to the 1D color bit code in this embodiment will be described.

例1
図15には、原初1Dカラービットコード102及び追記1Dカラービットコード104が示されている。
Example 1
FIG. 15 shows an original 1D color bit code 102 and a postscript 1D color bit code 104.

本実施の形態では、「原初1Dカラービットコードを構成するセルの個数は10個である」と予め利用者によって規定されている。また、「原初1Dカラービットコードの両端部には、それぞれ1個の白色のセルが追加してマーキングされる」と予め規定されている。これら追記した白色のセルは、原初1Dカラービットコードのスタート又はエンドを表す端点セルである。   In the present embodiment, it is defined in advance by the user that “the number of cells constituting the original 1D color bit code is ten”. Further, it is defined in advance that “one white cell is additionally marked at each end of the original 1D color bit code”. These added white cells are end point cells representing the start or end of the original 1D color bit code.

また、本実施の形態では、「追記1Dカラービットコードを構成するセルの個数は5個である」と予め利用者によって規定されている。また、「追記1Dカラービットコードの両端に隣接してそれぞれ1個の白色のセルがマーキングされる」と予め規定されている。これら追記した白色のセルは、追記1Dカラービットコードのスタート又はエンドを表す端点セルである。   Further, in the present embodiment, it is previously defined by the user that “the number of cells constituting the appendable 1D color bit code is five”. Further, it is defined in advance that “one white cell is marked adjacent to both ends of the additionally-recorded 1D color bit code”. These additional white cells are end point cells representing the start or end of the additional 1D color bit code.

また、本実施の形態では、「1個の原初1Dカラービットコードに1個以上の追記1Dカラービットコードを追記して直列1Dカラービットコードを構成する」ことが利用者によって予め規定されている。また、本実施の形態では、各1Dカラービットコード間には1個だけ端点セルが設けられると規定されている。2個の1Dカラービットコードに挟まれた端点セルは、隣接する一方の1Dカラービットコードのエンドを表す端点セルと、他方の1Dカラービットコードのスタートを表す端点セルと、の2つ役割を担う。   Further, in the present embodiment, “a serial 1D color bit code is configured by adding one or more additional 1D color bit codes to one original 1D color bit code” is defined in advance by the user. . In the present embodiment, it is defined that only one end point cell is provided between each 1D color bit code. An end point cell sandwiched between two 1D color bit codes has two roles: an end point cell that represents the end of one adjacent 1D color bit code, and an end point cell that represents the start of the other 1D color bit code. Bear.

いま、図15(3)に示されるように、セルの個数が24個である直列1Dカラービットコード106が被印物表面にマーキングされている。デコード手段は、この直列1Dカラービットコード106を含む画像をキャプチャし、上記(3)又は(4)に記載の読み取り方法によって色彩配列情報を生成する。本実施の形態では、直列1Dカラービットコード106は24個のセルから成るので、生成した色彩配列情報は24個の色彩情報から成る。なお、色彩情報とは、上述したように、色彩領域に割り振られた番号、色彩の情報、前の色彩領域の番号、後の色彩領域の番号、を含む情報である。   Now, as shown in FIG. 15 (3), a serial 1D color bit code 106 having 24 cells is marked on the surface of the object. The decoding means captures an image including the serial 1D color bit code 106 and generates color arrangement information by the reading method described in (3) or (4) above. In the present embodiment, since the serial 1D color bit code 106 includes 24 cells, the generated color arrangement information includes 24 color information. Note that the color information is information including the number assigned to the color area, the color information, the number of the previous color area, and the number of the subsequent color area, as described above.

デコード手段は、色彩情報の個数に基づいて、直列1Dカラービットコード106に含まれる追記1Dカラービットコードの個数を算出する。   The decoding unit calculates the number of additional write 1D color bit codes included in the serial 1D color bit code 106 based on the number of color information.

直列1Dカラービットコード106には、必ず1個の原初1Dカラービットコードが含まれる。従って、24個の色彩情報のうち、10個の色彩情報は原初1Dカラービットコードから得られた色彩情報である。また、他の2個の色彩情報は原初1Dカラービットコードの端点セルの色彩情報である。   The serial 1D color bit code 106 always includes one original 1D color bit code. Accordingly, of the 24 pieces of color information, 10 pieces of color information are color information obtained from the original 1D color bit code. The other two pieces of color information are color information of end point cells of the original 1D color bit code.

追記1Dカラービットコードは、5個のセルから成り、終端に端点セルが1個設けられている。従って、デコード手段は、直列1Dカラービットコード106に含まれる追記1Dカラービットコードの個数は、(24−10−2)/(5+1)=2個であることを算出する。   The postscript 1D color bit code is composed of five cells, and one terminal cell is provided at the end. Therefore, the decoding means calculates that the number of additional write 1D color bit codes included in the serial 1D color bit code 106 is (24-10-2) / (5 + 1) = 2.

例2
もし、原初1Dカラービットコード及び追記1Dカラービットコードの並び順が予め利用者によって定められていれば、デコード手段は、直列1Dカラービットコード中の各1Dカラービットコードの区切り位置も判定することができる。
Example 2
If the arrangement order of the original 1D color bit code and the additional 1D color bit code is predetermined by the user, the decoding means also determines the delimiter position of each 1D color bit code in the serial 1D color bit code. Can do.

例えば、図15(3)の直列1Dカラービットコード106が、「直列1Dカラービットコードの左端が原初1Dカラービットであり、その右に次々と追記1Dカラービットコードが追記される」との規定に基づいてマーキングされていた場合には、デコード手段は、直列1Dカラービットコード106から生成した色彩配列情報のうち、2個目から11個目までの色彩情報が原初1Dカラービットコードの色彩情報であり、13個目から17個目までの色彩情報が追記1Dカラービットコードの色彩情報であり、19個目から23個目までの色彩情報がもう1つの追記1Dカラービットコードの色彩情報であることを判定することができる。   For example, the serial 1D color bit code 106 in FIG. 15 (3) is defined as “the left end of the serial 1D color bit code is the original 1D color bit, and additional write 1D color bit codes are successively added to the right”. In the case of marking based on the color information, the decoding means outputs the color information from the second to the eleventh among the color arrangement information generated from the serial 1D color bit code 106, and the color information of the original 1D color bit code The 13th to 17th color information is the color information of the additional 1D color bit code, and the 19th to 23rd color information is the color information of the other additional 1D color bit code. It can be determined.

例3
原初1Dカラービットコード及び追記1Dカラービットコードの並び順が決められていない場合には、各1Dカラービットコードの両端のセルに特有の色彩を付すことによって、各1Dカラービットコードの種類を区別することができる。
Example 3
When the arrangement order of the original 1D color bit code and the additional 1D color bit code is not determined, the type of each 1D color bit code is distinguished by attaching a specific color to the cells at both ends of each 1D color bit code. can do.

図16には、原初1Dカラービットコード108と、追記1Dカラービットコード110と、直列1Dカラービットコードの例112群が示されている。   FIG. 16 shows an example 112 group of the original 1D color bit code 108, the additional write 1D color bit code 110, and the serial 1D color bit code.

原初1Dカラービットコードのセルの個数と、追記1Dカラービットコードのセルの個数と、については上で述べた例1と同様に利用者によって予め規定されている。   The number of cells of the original 1D color bit code and the number of cells of the additional 1D color bit code are defined in advance by the user in the same manner as in Example 1 described above.

本例3において特徴的な事項は、原初1Dカラービットコードの両端のセルは「A」であると規定され、追記1Dカラービットコードの両端のセルは「B」であると規定されていることである。これら規定を利用することによって、デコード手段は、直列1Dカラービットコード中の原初1Dカラービットコード及び追記1Dカラービットコードの配列順を判別することができる。   Characteristic matters in this example 3 are that the cells at both ends of the original 1D color bit code are defined as “A”, and the cells at both ends of the additional write 1D color bit code are defined as “B”. It is. By using these rules, the decoding unit can determine the arrangement order of the original 1D color bit code and the additional 1D color bit code in the serial 1D color bit code.

図16には、直列1Dカラービットコードの例112群が示されている。まず、直列1Dカラービットコード112aに基づいて説明する。   FIG. 16 shows an example 112 group of serial 1D color bit codes. First, a description will be given based on the serial 1D color bit code 112a.

デコード手段は、直列1Dカラービットコード112aを含む画像をキャプチャし、上記(3)又は(4)で述べた読み取り方法によって、色彩配列情報を生成する。直列1Dカラービットコード112aは30個のセルから構成されるので、生成された色彩配列情報は30個の色彩情報から構成される。   The decoding means captures an image including the serial 1D color bit code 112a, and generates color arrangement information by the reading method described in (3) or (4) above. Since the serial 1D color bit code 112a includes 30 cells, the generated color arrangement information includes 30 pieces of color information.

30個の色彩情報のうち、1番目から2番目までの色彩の情報は、「W」「A」である。「A」は原初1Dカラービットコードが始まることを示す。原初1Dカラービットコードは10個のセルから構成されるので、デコード手段は、2番目から11番目までの色彩情報が原初1Dカラービットコードの色彩情報を表すと判定する。11番目から12番目までの色彩の情報が「A」「W」であることから、11番までの色彩情報が原初1Dカラービットコードの色彩情報であると確認的に判定してもよい。   Of the 30 pieces of color information, the information on the first to second colors is “W” and “A”. “A” indicates that the original 1D color bit code starts. Since the original 1D color bit code is composed of 10 cells, the decoding means determines that the second to eleventh color information represents the color information of the original 1D color bit code. Since the 11th to 12th color information is “A” and “W”, the 11th color information may be positively determined as the color information of the original 1D color bit code.

次に、12番目から13番目までの色彩の情報は「W」「B」である。「B」は追記1Dカラービットコードを示す。追記1Dカラービットコードは5個のセルから構成されるので、デコード手段は、13番目から17番目までの色彩情報が追記1Dカラービットコードの色彩情報を表すと判定する。17番目から18番目までの色彩の情報が「B」「W」でることから、17番目までの色彩情報が追記1Dカラービットコードの色彩情報であると確認的に判定してもよい。   Next, the twelfth to thirteenth color information is “W” and “B”. “B” indicates a postscript 1D color bit code. Since the additional recording 1D color bit code is composed of five cells, the decoding means determines that the 13th to 17th color information represents the color information of the additional recording 1D color bit code. Since the 17th to 18th color information is “B” and “W”, it may be confirmed that the 17th color information is the color information of the additional 1D color bit code.

以後、デコード手段は、同様にして色彩配列情報の終端の色彩情報に至るまで判定を行う。この結果、デコード手段は、直列1Dカラービットコード112aが、「原初1Dカラービットコード」、「追記1Dカラービットコード」、「追記1Dカラービットコード」、「追記1Dカラービットコード」をこの順に配列して成ると判定することができる。   Thereafter, the decoding means determines in the same manner until reaching the color information at the end of the color arrangement information. As a result, in the decoding means, the serial 1D color bit code 112a arranges "original 1D color bit code", "additional 1D color bit code", "additional 1D color bit code", and "additional 1D color bit code" in this order. It can be determined that

直列1Dカラービットコード112b、112c、112dについても、同様にして、デコード手段は、原初1Dカラービットコードと追記1Dカラービットコードの配列順を判定することができる。   Similarly, for the serial 1D color bit codes 112b, 112c, and 112d, the decoding unit can determine the arrangement order of the original 1D color bit code and the additional 1D color bit code.

このように、本実施の形態によれば、各1Dカラービットコード間に、1Dカラービットコードを区分けするQz色の色彩領域を設けなくとも、直線状に複数個の1Dカラービットコードを直列配置することが可能である。この結果、物品に複数の1Dカラービットコードをマーキングしてもそれらを区別して認識することができるので、例えば、複数の工程からなる作業の管理等を容易に実行することが可能である。   As described above, according to the present embodiment, a plurality of 1D color bit codes are arranged in series in a straight line without providing a Qz color region for dividing the 1D color bit code between the 1D color bit codes. Is possible. As a result, even if a plurality of 1D color bit codes are marked on an article, they can be distinguished and recognized, so that, for example, management of operations including a plurality of processes can be easily performed.

(8−2)データの密度向上
上記(5−2)において、Qzの色彩(Qz色)を1Dカラービットコードの色彩構成色(A色、B色)に加えて、合計3種類の色彩によってデータを表す例を示した。
(8-2) Data density improvement In the above (5-2), the Qz color (Qz color) is added to the color component colors (A color and B color) of the 1D color bit code, and a total of three colors are used. An example showing data is shown.

1Dカラービットコードは、その構成色の種類が多ければ多いほど、表せるデータの量が増え、データの密度を上げることができる。   As the number of constituent colors of the 1D color bit code increases, the amount of data that can be expressed increases and the data density can be increased.

1Dカラービットコードのマーキングに使用される色彩の種類が上述した3種類よりも多い例として、本発明者がすでに出願した特願2007−130504号には、A色、B色、C色、Qz色の4種類の色彩を使用してマーキングされた1Dカラービットコードが示されている。この1Dカラービットコードでは、A色、B色、C色の3種類の色彩によってデータを表す。Qz色はデータを表さない。   As an example in which the types of colors used for the marking of the 1D color bit code are more than the above three types, Japanese Patent Application No. 2007-130504 filed by the present inventor includes A color, B color, C color, and Qz. A 1D color bit code marked using four colors of color is shown. In this 1D color bit code, data is represented by three types of colors, A color, B color, and C color. The Qz color does not represent data.

この特願2007−130504号において、A色、B色、C色が、例えばそれぞれ、R(赤色)、G(緑色)、B(青色)であった場合、一般的な画像信号の成分とも一致するので画像処理的に扱いやすい。また、利用する色彩が3種類であれば、1つ色彩当たりの色彩範囲を広く取れるので、実用上便利である。なお、色彩の種類をさらに多くすると、1色あたりの色彩範囲が狭くなるので、照明光やカメラ調整等によっては、各色彩のコンタミが生じやすくなり実用性が失われていく可能性がある。   In this Japanese Patent Application No. 2007-130504, when the A color, B color, and C color are, for example, R (red), G (green), and B (blue), respectively, they also coincide with general image signal components. It is easy to handle in terms of image processing. Also, if there are three types of colors to be used, a wide color range per color can be obtained, which is practically convenient. If the number of types of colors is further increased, the color range per color is narrowed. Therefore, depending on the illumination light, camera adjustment, etc., contamination of each color is likely to occur, and the practicality may be lost.

本実施の形態における読み取り方法では、上記(5−1)で述べたように、視野枠で読み取る部分を限定するので、Qzを設けなくてもよい場合がある。Qzを設ける必要がない場合には、Qzに予約していた色彩をデータを構成する色彩に加えて、A色、B色、C色、Qz色の4種類の色彩でデータを表すことができる。4種類の色彩を用いれば、3種類の色彩を用いる時よりも、さらにセル数あたりのデータ量を増やすことができる。   In the reading method in the present embodiment, as described in (5-1) above, since the portion to be read by the field frame is limited, there is a case where Qz may not be provided. In the case where it is not necessary to provide Qz, in addition to the colors constituting the data, the color reserved for Qz, the data can be represented by four types of colors of A color, B color, C color, and Qz color. . If four types of colors are used, the amount of data per cell can be further increased than when three types of colors are used.

図17の表114の上の行には、1Dカラービットコードの色彩の配列が示されている。この1Dカラービットコードの色彩の配列は、「W−A−b−W−A−W−A−C−B−W−C−B−C−W−C−b−C−W」である。表114には、この色彩の配列を、スタートと、データ部の各色彩と、エンドと、に分けて示されている。スタートは「W−A−b」、データ部は「W−A−W−A−C−B−W−C−B−C−W−C」、エンドは「b−C−W」である。また、表114の下の行には、1Dカラービットコードの色彩の配列と、データと、の関係が示されている。   The upper row of the table 114 in FIG. 17 shows the color arrangement of the 1D color bit code. The color arrangement of this 1D color bit code is “W-A-B-W-A-W-A-C-B-B-C-C-B-C-B-C-B-C-W”. . In the table 114, this color arrangement is divided into a start, each color of the data portion, and an end. The start is “W-A-b”, the data part is “W-A-W-A-C-B-W-C-B-C-C-W”, and the end is “b-C-W”. . In the lower row of Table 114, the relationship between the color arrangement of the 1D color bit code and the data is shown.

スタートの「W−A−b」のうち「b」は、直前の「A」の色彩と、「W−A−b」の後方のセル「W」の色彩と、が同色とならないようにするために挿入されるセルである。つまり、「b」の色彩は前後の色彩によって都度変わる。本実施の形態では、「b」は「A」と「W」とに挟まれているから、AでもなくWでもない色彩(すなわちB又はC)である。エンドの「b−C−W」のうち「b」も、同様に、「b−C−W」の前方のセル「C」の色彩と、が同色とならないようにするために挿入されるセルである。本実施の形態においては、「b」はCに挟まれているから、「b」は「C」ではない色彩(すなわちW又はA又はB)である。   “B” in the start “W-A-b” is set so that the color of “A” immediately before and the color of the cell “W” behind “W-A-b” do not become the same color. This is a cell to be inserted. That is, the color of “b” changes depending on the colors before and after. In this embodiment, since “b” is sandwiched between “A” and “W”, it is a color that is neither A nor W (ie, B or C). Similarly, “b” in the end “b-C-W” is also inserted so that the color of the cell “C” in front of “b-C-W” does not become the same color. It is. In the present embodiment, since “b” is sandwiched between C, “b” is a color other than “C” (ie, W or A or B).

本実施の形態では、A色、B色、C色の3つの色彩は、それぞれ数値「0」、「1」、「2」を表すと定義されている。また、Qz(W)は、その直後の色彩が表す数値を表すと定義されている。   In the present embodiment, the three colors A, B, and C are defined to represent numerical values “0”, “1”, and “2”, respectively. Qz (W) is defined to represent a numerical value represented by the color immediately after that.

これらの定義に基づいて、色彩の配列「W−A−W−A−C−B−W−C−B−C−W−C」をデコードすることによって、「000021221222」という3進数のデータが得られる。このことが、図17の表114の下の行に示されている。   Based on these definitions, by decoding the color array “W-A-W-A-C-B-W-C-C-B-C-C”, the ternary data “000012122222” is obtained. can get. This is shown in the lower row of table 114 in FIG.

このように、本実施の形態によれば、従来1Dカラービットコードよりも、さらにデータの密度を上げることができるという有益な効果が得られる。   Thus, according to the present embodiment, it is possible to obtain a beneficial effect that the data density can be further increased as compared with the conventional 1D color bit code.

(9)効果
図18(1)には、被印物の表面にマーキングされた1Dカラービットコード116が示されている。1Dカラービットコード116の周囲(図中の斜線で示される部分)はQzである。1Dカラービットコードのセルに不要な色彩領域が加わったり、一部の構成セルの並び方に乱れがあると、従来の読み取り方法では正確に読み取れない場合があった。
(9) Effect FIG. 18A shows a 1D color bit code 116 marked on the surface of the object to be marked. The periphery of the 1D color bit code 116 (the portion indicated by the oblique lines in the figure) is Qz. If an unnecessary color area is added to a cell of a 1D color bit code, or if the arrangement of some constituent cells is disturbed, the conventional reading method may not be able to read accurately.

特に図18(2)に示されるように、板状体118の端面にマーキングされた1Dカラービットコードをキャプチャした場合には、図18(3)に示されるように、キャプチャした画像に1Dカラービットコードの画像とともに背景の色彩パターンも写ることがある。この背景の色彩パターンは、1Dカラービットコードの読み取りを妨げる場合があるため、視野枠を用いない従来の通常の1Dカラービットコード読み取り手段では、読み取りが困難な場合があった。   In particular, as shown in FIG. 18 (2), when a 1D color bit code marked on the end face of the plate-like body 118 is captured, as shown in FIG. 18 (3), 1D color is added to the captured image. The background color pattern may be shown along with the bit code image. Since the background color pattern may interfere with reading of the 1D color bit code, it may be difficult to read with a conventional normal 1D color bit code reading means that does not use a field frame.

しかし、本実施の形態によれば、セルの並び方に乱れがある部分を読み取り対象から除外することができるので、例えキャプチャ画像に背景の色彩パターンが写り込んでも、容易に1Dカラービットコードの読み取りを行うことができる。   However, according to the present embodiment, it is possible to exclude a portion in which the arrangement of cells is disturbed from the reading target. Therefore, even if the background color pattern is reflected in the captured image, the 1D color bit code can be easily read. It can be performed.

10 1Dカラービットコード
12 キャプチャ画像
14a〜14k セル
16 デコード手段
18 キャプチャ手段
20 被印物
22 1Dカラービットコード
24 画像データ
26 視野枠
28 狭小画像
30A〜30C 色彩領域
32 領域
34a、34b 処理結果
36 板状体
38 キャプチャ画像
40 1Dカラービットコード
42 視野枠
44 キャプチャ画像
46 板状体
48 視野枠
50 狭小画像
52 被印物
54 白色下地
56 構成セル群
58 キャプチャ画像
60 視野枠
62 狭小画像
64 板状体
66 白色下地
68a、68b 切り出し用冗長セル
70 1Dカラービットコード
72 キャプチャ画像
74 視野枠
76 キャプチャ画面
78 視野枠
80、82、84、86 キャプチャ画面
88 キャプチャ画像
90a〜90e、90k、90k+1、90k+2、90n−1、90n、90q 色彩領域
92 枠
94k、94k+1、94k+2、94q 重心点
96 板状体
98 1Dカラービットコード
98a 端点セル
98b 切り出し冗長セル群
98c データセル群
100 キャプチャ画像
102 原初1Dカラービットコード
104 追記1Dカラービットコード
106 直列1Dカラービットコード
108 原初1Dカラービットコード
110 追記1Dカラービットコード
112a〜112d 直列1Dカラービットコード
114 表
116 1Dカラービットコード
118 板状体
A、B 視野枠
L(k)、L(k+2)、L(q) 直線
α(k+2)、α(q) 角度
DESCRIPTION OF SYMBOLS 10 1D color bit code 12 Captured image 14a-14k Cell 16 Decoding means 18 Capture means 20 Captured object 22 1D color bit code 24 Image data 26 Field frame 28 Narrow image 30A-30C Color area 32 area 34a, 34b Processing result 36 Plate Shape 38 Captured image 40 1D color bit code 42 Field frame 44 Capture image 46 Plate-like body 48 Field frame 50 Narrow image 52 Object 54 White base 56 Component cell group 58 Capture image 60 Field frame 62 Narrow image 64 Plate body 66 White background 68a, 68b Redundant cell for cutting 70 1D color bit code 72 Capture image 74 Field frame 76 Capture screen 78 Field frame 80, 82, 84, 86 Capture screen 88 Capture image 90a-90e, 0k, 90k + 1, 90k + 2, 90n-1, 90n, 90q Color area 92 Frame 94k, 94k + 1, 94k + 2, 94q Center of gravity 96 Plate body 98 1D color bit code 98a End point cell 98b Cutout redundant cell group 98c Data cell group 100 Captured image 102 Original 1D color bit code 104 Additional 1D color bit code 106 Serial 1D color bit code 108 Original 1D color bit code 110 Additional 1D color bit code 112a to 112d Serial 1D color bit code 114 Table 116 1D color bit code 118 Plate A , B Field frame L (k), L (k + 2), L (q) Straight line α (k + 2), α (q) Angle

Claims (23)

色彩の遷移によってデータを表す色彩配列コードの読み取り方法において、
前記色彩配列コードを含む画像をキャプチャするキャプチャステップと、
前記画像内に予め設定された細長い視野枠の内部の狭小画像を取り出す狭小画像取り出しステップと、
前記狭小画像中の各画素の値によって前記狭小画像を複数の色彩領域に分割する分割ステップと、
前記各色彩領域ごとに、前記色彩領域の色彩と、前記狭小画像の一方端から他方端に至るまでの順番と、を記述した色彩配列情報を生成する色彩配列情報生成ステップと、
前記色彩配列情報中の色彩領域の色彩及び順番が、前記色彩配列コードを構成するセル群の順番及び色彩であるとみなして、前記色彩及び順番に基づいて前記色彩配列コードをデコードし前記データを出力するデコードステップと、
を含むことを特徴とする色彩配列コードの読み取り方法。
In a method of reading a color array code representing data by color transition,
A capture step for capturing an image including the color arrangement code;
A narrow image extracting step of extracting a narrow image inside a long and narrow field frame preset in the image;
A division step of dividing the narrow image into a plurality of color regions according to the value of each pixel in the narrow image;
A color arrangement information generating step for generating color arrangement information describing the color of the color area and the order from one end to the other end of the narrow image for each color area;
Assuming that the color and order of the color area in the color array information are the order and color of the cell group constituting the color array code, the color array code is decoded based on the color and order, and the data is A decoding step to output;
A method for reading a color arrangement code, comprising:
色彩の遷移によってデータを表す色彩配列コードの読み取り方法において、
前記色彩配列コードを含む画像をキャプチャするキャプチャステップと、
前記画像内に予め設定された細長い視野枠の内部の狭小画像を取り出す狭小画像取り出しステップと、
前記狭小画像中の各画素の値によって前記狭小画像を複数の色彩領域に分割する分割ステップと、
前記各色彩領域ごとに、前記色彩領域の色彩と、前記狭小画像の一方端から他方端に至るまでの順番と、を記述した色彩配列情報を生成する色彩配列情報生成ステップと、
前記色彩配列情報のうち、前記色彩配列コードのスタートを示す切り出し用冗長セルの色彩が付された前記色彩領域を表す色彩情報と、前記色彩配列コードのエンドを示す切り出し用冗長セルの色彩が付された前記色彩領域を表す色彩情報と、の間にある色彩配列情報中の色彩領域の色彩及び順番が、前記色彩配列コードを構成するセル群の順番及び色彩であるとみなして、前記色彩配列情報に基づいて前記色彩配列コードをデコードし前記データを出力するデコードステップと、
を含むことを特徴とする色彩配列コードの読み取り方法。
In a method of reading a color array code representing data by color transition,
A capture step for capturing an image including the color arrangement code;
A narrow image extracting step of extracting a narrow image inside a long and narrow field frame preset in the image;
A division step of dividing the narrow image into a plurality of color regions according to the value of each pixel in the narrow image;
A color arrangement information generating step for generating color arrangement information describing the color of the color area and the order from one end to the other end of the narrow image for each color area;
Among the color arrangement information, color information indicating the color area to which the color of the redundant cell for extraction indicating the start of the color arrangement code is attached, and the color of the redundant cell for extraction indicating the end of the color arrangement code are attached. The color arrangement representing the color area, and the color arrangement and the order of the color areas in the color arrangement information between them are considered to be the order and color of the cell group constituting the color arrangement code. A decoding step of decoding the color arrangement code based on the information and outputting the data;
A method for reading a color arrangement code, comprising:
請求項1又は2に記載の色彩配列コードの読み取り方法において、
前記狭小画像取り出しステップは、前記画像内に1個又は複数個設定された前記視野枠の位置を、前記画像内で、利用者の指示に従って移動する第1の視野枠移動ステップ、
をさらに含み、
前記狭小画像取り出しステップは、前記視野枠移動ステップにおいて移動した視野枠によって前記狭小画像を取り出すことを特徴とする色彩配列コードの読み取り方法。
In the reading method of the color arrangement | sequence code of Claim 1 or 2,
The narrow image extracting step includes a first visual field frame moving step of moving the position of the visual field frame set in the image according to a user instruction within the image,
Further including
The method of reading a color arrangement code, wherein the narrow image extracting step extracts the narrow image by the field frame moved in the field frame moving step.
請求項1又は2に記載の色彩配列コードの読み取り方法において、
前記狭小画像取り出しステップは、前記予め設定された視野枠を、キャプチャされた前記画像ごとに異なる位置に移動させる第2の視野枠移動ステップ、
をさらに含み、
前記異なる位置に設定された視野枠の内部の狭小画像が、前記色彩配列コードを構成する色彩によって構成されている場合に、その視野枠の内部の狭小画像を取り出すことを特徴とする色彩配列コードの読み取り方法。
In the reading method of the color arrangement | sequence code of Claim 1 or 2,
The narrow image extracting step includes a second field frame moving step of moving the preset field frame to a different position for each captured image,
Further including
When the narrow image inside the field frame set at the different position is composed of colors constituting the color array code, the color array code is extracted from the narrow image inside the field frame How to read.
請求項4に記載の色彩配列コードの読み取り方法において、
前記視野枠は、前記画像ごとに平行な方向に異なる位置に移動することを特徴とする色彩配列コードの読み取り方法。
The method for reading a color arrangement code according to claim 4,
The method for reading a color arrangement code, wherein the field frame moves to a different position in a parallel direction for each image.
請求項4に記載の色彩配列コードの読み取り方法において、
前記視野枠は、前記画像ごとに前記視野枠の中心点を軸として回転する方向に異なる位置に移動することを特徴とする色彩配列コードの読み取り方法。
The method for reading a color arrangement code according to claim 4,
The method of reading a color arrangement code, wherein the field frame moves to a different position in the direction of rotation about the center point of the field frame for each image.
請求項4に記載の色彩配列コードの読み取り方法において、
前記視野枠は、前記画像ごとに平行な方向に、かつ、前記視野枠の中心点を軸として回転して移動することを特徴とする色彩配列コードの読み取り方法。
The method for reading a color arrangement code according to claim 4,
The method of reading a color arrangement code, wherein the field frame moves in a direction parallel to each image and rotates around a center point of the field frame.
請求項1又は2に記載の色彩配列コードの読み取り方法において、
前記狭小画像取り出しステップは、前記予め設定された視野枠を前記画像上において走査する第3の視野枠移動ステップ、
をさらに含み、
前記視野枠移動ステップにおいて走査する視野枠の内部の狭小画像が、前記色彩配列コードを構成する色彩で構成されている場合に、前記視野枠の内部の狭小画像を取り出すことを特徴とする色彩配列コードの読み取り方法。
In the reading method of the color arrangement | sequence code of Claim 1 or 2,
The narrow image extracting step includes a third field frame moving step of scanning the image on the preset field frame,
Further including
A color array, wherein a narrow image inside the field frame is taken out when a narrow image inside the field frame scanned in the field frame moving step is composed of colors constituting the color array code. How to read the code.
請求項8に記載の色彩配列コードの読み取り方法において、
前記視野枠は、前記画像上を縦方向又は横方向に平行に走査することを特徴とする色彩配列コードの読み取り方法。
The method for reading a color arrangement code according to claim 8,
The method of reading a color arrangement code, wherein the field frame scans the image in parallel in a vertical direction or a horizontal direction.
請求項8に記載の色彩配列コードの読み取り方法において、
前記視野枠は、前記視野枠の中心点を軸として回転する方向に走査することを特徴とする色彩配列コードの読み取り方法。
The method for reading a color arrangement code according to claim 8,
The method of reading a color arrangement code, wherein the field frame is scanned in a direction rotating around a center point of the field frame.
請求項8に記載の色彩配列コードの読み取り方法において、
前記視野枠は、前記画像ごとに平行な方向に、かつ、前記視野枠の中心点を軸として回転して走査することを特徴とする色彩配列コードの読み取り方法。
The method for reading a color arrangement code according to claim 8,
The method of reading a color arrangement code, wherein the field frame scans in a direction parallel to each image and rotates about the center point of the field frame as an axis.
請求項1〜11のいずれか1項に記載の色彩配列コードの読み取り方法において、
前記視野枠は所定の幅と長さを有する形状であって、長手方向の一方が前記一方端であり、他方が前記他方端であり、前記長さが前記幅よりも長いことを特徴とする色彩配列コードの読み取り方法。
In the reading method of the color arrangement | sequence code of any one of Claims 1-11,
The field frame has a shape having a predetermined width and length, wherein one of the longitudinal directions is the one end, the other is the other end, and the length is longer than the width. How to read color array code.
請求項12に記載の色彩配列コードの読み取り方法において、
前記視野枠のいずれかの辺は、曲線であり、前記視野枠が曲線状に配置されていることを特徴とする色彩配列コードの読み取り方法。
The method for reading a color arrangement code according to claim 12,
One of the sides of the field frame is a curved line, and the field frame is arranged in a curved line.
請求項12又は13に記載の色彩配列コードの読み取り方法において、
前記色彩配列情報生成ステップは、
さらに、前記狭小画像中の各色彩領域の前記狭小画像の長手方向の長さを測定し、測定した長さも前記各色彩領域ごとに記述した前記色彩配列情報を生成する長さ追記ステップと、
前記長さが所定の基準値より小さい場合、その色彩領域を表す色彩情報を前記色彩配列情報から削除するデータ削除ステップと、
その削除した色彩情報の前後に隣接する他の色彩情報をつめる色彩配列情報修正ステップ、
を含むことを特徴とする色彩配列コードの読み取り方法。
The method for reading a color arrangement code according to claim 12 or 13,
The color arrangement information generation step includes
Further, a length addition step for measuring the length of each narrow color image in the narrow image in the longitudinal direction of the narrow image, and generating the color arrangement information describing the measured length for each color region, and
When the length is smaller than a predetermined reference value, a data deletion step of deleting color information representing the color area from the color arrangement information;
A color arrangement information correction step for packing other adjacent color information before and after the deleted color information;
A method for reading a color arrangement code, comprising:
請求項1〜14のいずれか1項に記載の色彩配列コードの読み取り方法において、
前記色彩配列情報中に、前記色彩配列コードを構成する構成色が混色した色彩の領域の色彩情報が存在し、その混色した色彩の領域に隣接する領域の色彩が前記構成色である場合に、その混色した色彩を、その色彩領域に隣接するいずれかの色彩領域の色彩であると見なす色彩見なしステップ、
を含むことを特徴とする色彩配列コードの読み取り方法。
In the reading method of the color arrangement | sequence code of any one of Claims 1-14,
In the color arrangement information, when there is color information of a color area in which the constituent colors constituting the color arrangement code are mixed, and the color of the area adjacent to the mixed color area is the constituent color, A color judging step that considers the mixed color to be a color of any color area adjacent to the color area;
A method for reading a color arrangement code, comprising:
請求項1〜15のいずれか1項に記載の色彩配列コードの読み取り方法において、
前記狭小画像取り出しステップと、前記色彩配列情報生成ステップと、の間に、
前記狭小画像中の各画素の値を、その画素を含み、前記狭小画像の幅方向に伸展する画素列の平均値と置き換える均一化処理ステップ、
を含み、
前記色彩配列情報生成ステップは、前記均一化処理を行った後の前記狭小画像に基づいて前記色彩配列情報を生成することを特徴とする色彩配列コードの読み取り方法。
In the reading method of the color arrangement | sequence code of any one of Claims 1-15,
Between the narrow image extraction step and the color arrangement information generation step,
A uniformizing process step of replacing the value of each pixel in the narrow image with an average value of a pixel row including the pixel and extending in the width direction of the narrow image;
Including
The color arrangement information reading step is characterized in that the color arrangement information is generated based on the narrow image after the uniformization process is performed.
色彩の遷移によってデータを表す色彩配列コードの読み取り方法において、
前記色彩配列コードを含む画像をキャプチャするキャプチャステップと、
前記画像中の各画素の値に基づき前記画像を色彩領域に分割する分割ステップと、
前記画像内の予め決められた位置にある画素を含む色彩領域が前記色彩配列コードのスタートセルであるとみなす第1のスタートセルみなしステップと、
前記スタートセルに隣接する他の色彩領域のうち、予め決められた色彩の色彩領域を前記色彩配列コードの第2セルであるとみなす第2セルみなしステップと、
第(k+1)セルの重心点と、前記第(k+1)セルに隣接する他の各色彩領域の各重心点と、を通る直線を前記各重心点ごとに描き、それら直線の中から、前記第(k+1)セルの重心点と、第kセルの重心点と、を通る直線に対して成す角が最も小さい直線を選択し、その選択した直線が通る2個の重心点のうち前記第(k+1)セルの重心点以外の重心点が属する色彩領域を前記色彩配列コードの第(k+2)セルであるとみなすセル選択ステップと、
前記スタートセルから前記第nセルに至るセル群であるとみなした前記各色彩領域ごとに、前記各色彩領域の色彩と、前記スタートセルから前記第nセルに至るまでの順番と、を記述した色彩配列情報を生成する色彩配列情報生成ステップと、
前記色彩配列情報中の色彩領域の色彩及び順番が、前記色彩配列コードを構成するセル群の色彩及び順番であるとみなして、前記色彩及び順番に基づいて前記色彩配列コードをデコードし前記データを出力するデコードステップと、
を含むことを特徴とする色彩配列コードの読み取り方法。(なお、kは1以上の自然数であり、nはkより大きい自然数とする。)
In a method of reading a color array code representing data by color transition,
A capture step for capturing an image including the color arrangement code;
A division step of dividing the image into color regions based on the value of each pixel in the image;
A first start cell deeming step in which a color region including a pixel at a predetermined position in the image is regarded as a start cell of the color arrangement code;
A second cell deeming step of regarding a color area of a predetermined color among other color areas adjacent to the start cell as a second cell of the color arrangement code;
A straight line passing through the centroid point of the (k + 1) th cell and each centroid point of each of the other color regions adjacent to the (k + 1) th cell is drawn for each centroid point. The straight line having the smallest angle formed with respect to the straight line passing through the centroid point of the (k + 1) cell and the centroid point of the k-th cell is selected, and the (k + 1) -th centroid point among the two centroid points through which the selected straight line passes. ) A cell selection step that regards a color region to which a barycentric point other than the barycentric point of the cell belongs as the (k + 2) th cell of the color arrangement code;
For each color area considered to be a cell group from the start cell to the nth cell, the color of each color area and the order from the start cell to the nth cell are described. A color array information generation step for generating color array information;
Assuming that the color and order of the color region in the color array information is the color and order of the cell group constituting the color array code, the color array code is decoded based on the color and order, and the data is A decoding step to output;
A method for reading a color arrangement code, comprising: (K is a natural number of 1 or more, and n is a natural number greater than k.)
色彩の遷移によってデータを表す色彩配列コードの読み取り方法において、
前記色彩配列コードを含む画像をキャプチャするキャプチャステップと、
前記画像中の各画素の値に基づき前記画像を色彩領域に分割する分割ステップと、
前記画像内の予め決められた画像端に接する色彩領域群の中から、予め決められた色彩の色彩領域を選択し、その選択した色彩領域を前記色彩配列コードのスタートセルであるとみなす第2のスタートセルみなしステップと、
前記スタートセルに隣接する他の色彩領域のうち、予め決められた色彩の色彩領域を前記色彩配列コードの第2セルであるとみなす第2セルみなしステップと、
第(k+1)セルの重心点と、前記第(k+1)セルに隣接する他の各色彩領域の各重心点と、を通る直線を前記各重心点ごとに描き、それら直線の中から、前記第(k+1)セルの重心点と、第kセルの重心点と、を通る直線に対して成す角が最も小さい直線を選択し、その選択した直線が通る2個の重心点のうち前記第(k+1)セルの重心点以外の重心点が属する色彩領域を前記色彩配列コードの第(k+2)セルであるとみなすセル選択ステップと、
前記スタートセルから前記第nセルに至るセル群であるとみなした前記各色彩領域ごとに、前記各色彩領域の色彩と、前記スタートセルから前記第nセルに至るまでの順番と、を記述した色彩配列情報を生成する色彩配列情報生成ステップと、
前記色彩配列情報中の色彩領域の色彩及び順番が、前記色彩配列コードを構成するセル群の色彩及び順番であるとみなして、前記色彩及び順番に基づいて前記色彩配列コードをデコードし前記データを出力するデコードステップと、
を含むことを特徴とする色彩配列コードの読み取り方法。(なお、kは1以上の自然数であり、nはkより大きい自然数とする。)
In a method of reading a color array code representing data by color transition,
A capture step for capturing an image including the color arrangement code;
A division step of dividing the image into color regions based on the value of each pixel in the image;
A color area of a predetermined color is selected from a color area group in contact with a predetermined image edge in the image, and the selected color area is regarded as a start cell of the color arrangement code. No start cell deeming step,
A second cell deeming step of regarding a color area of a predetermined color among other color areas adjacent to the start cell as a second cell of the color arrangement code;
A straight line passing through the centroid point of the (k + 1) th cell and each centroid point of each of the other color regions adjacent to the (k + 1) th cell is drawn for each centroid point. The straight line having the smallest angle formed with respect to the straight line passing through the centroid point of the (k + 1) cell and the centroid point of the k-th cell is selected, and the (k + 1) -th centroid point among the two centroid points through which the selected straight line passes. ) A cell selection step that regards a color region to which a barycentric point other than the barycentric point of the cell belongs as the (k + 2) th cell of the color arrangement code;
For each color area considered to be a cell group from the start cell to the nth cell, the color of each color area and the order from the start cell to the nth cell are described. A color array information generation step for generating color array information;
Assuming that the color and order of the color region in the color array information is the color and order of the cell group constituting the color array code, the color array code is decoded based on the color and order, and the data is A decoding step to output;
A method for reading a color arrangement code, comprising: (K is a natural number of 1 or more, and n is a natural number greater than k.)
請求項17に記載の色彩配列コードの読み取り方法において、
前記第1のスタートセルみなしステップにおける前記予め決められた位置は複数あり、
前記第1のスタートセルみなしステップは、前記複数の予め決められた位置のいずれかの位置の色彩が、予め決められた色彩である場合に、その色彩領域を前記色彩配列コードのスタートセルであるとみなすことを特徴とする色彩配列コードの読み取り方法。
The color array code reading method according to claim 17,
There are a plurality of the predetermined positions in the first start cell deemed step,
In the first start cell deeming step, when a color at any one of the plurality of predetermined positions is a predetermined color, the color area is a start cell of the color arrangement code. A method of reading a color arrangement code, characterized by
請求項18に記載の色彩配列コードの読み取り方法において、
前記第2のスタートセルみなしステップの前記予め決められた色彩は、前記色彩配列コードが付された物品の地色、又は、地色に対して前面を彩色した下地色であることを特徴とする色彩配列コードの読み取り方法。
The color array code reading method according to claim 18,
The predetermined color of the second start cell deeming step is a ground color of an article to which the color arrangement code is attached or a ground color in which the front surface is colored with respect to the ground color. How to read color array code.
色彩の遷移によってデータを表す色彩配列コードの読み取り装置において、
前記色彩配列コードを含む画像をキャプチャするキャプチャ手段と、
前記画像内に予め設定された細長い視野枠の内部の狭小画像を取り出す狭小画像取り出し手段と、
前記狭小画像中の各画素の値によって前記狭小画像を複数の色彩領域に分割する分割手段と、
前記各色彩領域ごとに、前記色彩領域の色彩と、前記狭小画像の一方端から他方端に至るまでの順番と、を記述した色彩配列情報を生成する色彩配列情報生成手段と、
前記色彩配列情報中の色彩領域の色彩及び順番が、前記色彩配列コードを構成するセル群の色彩及び順番であるとみなして、前記色彩及び順番に基づいて前記色彩配列コードをデコードし前記データを出力するデコード手段と、
を含むことを特徴とする色彩配列コードの読み取り装置。
In a color arrangement code reader that represents data by color transition,
Capture means for capturing an image including the color arrangement code;
A narrow image extracting means for extracting a narrow image inside a long and narrow field frame preset in the image;
A dividing unit that divides the narrow image into a plurality of color regions according to a value of each pixel in the narrow image;
Color arrangement information generating means for generating color arrangement information describing the color of the color area and the order from one end to the other end of the narrow image for each color area;
Assuming that the color and order of the color region in the color array information is the color and order of the cell group constituting the color array code, the color array code is decoded based on the color and order, and the data is Decoding means for outputting;
A device for reading a color arrangement code, comprising:
色彩の遷移によってデータを表す色彩配列コードの読み取り装置において、
前記色彩配列コードを含む画像をキャプチャするキャプチャ手段と、
前記画像内に予め設定された細長い視野枠の内部の狭小画像を取り出す狭小画像取り出し手段と、
前記狭小画像中の各画素の値によって前記狭小画像を複数の色彩領域に分割する分割手段と、
前記各色彩領域ごとに、前記狭小画像の一方端から他方端に至るまでの順番と、前記色彩領域の色彩と、を記述した色彩配列情報を生成する色彩配列情報生成手段と、
前記色彩配列情報のうち、前記色彩配列コードのスタートを示す切り出し用冗長セルの色彩が付された前記色彩領域を表す色彩情報と、前記色彩配列コードのエンドを示す切り出し用冗長セルの色彩が付された前記色彩領域を表す色彩情報と、の間にある色彩配列情報中の色彩領域の色彩及び順番が、前記色彩配列コードを構成するセル群の色彩及び順番であるとみなして、前記色彩配列情報に基づいて前記色彩配列コードをデコードし前記データを出力するデコード手段と、
を含むことを特徴とする色彩配列コードの読み取り装置。
In a color arrangement code reader that represents data by color transition,
Capture means for capturing an image including the color arrangement code;
A narrow image extracting means for extracting a narrow image inside a long and narrow field frame preset in the image;
A dividing unit that divides the narrow image into a plurality of color regions according to a value of each pixel in the narrow image;
Color arrangement information generating means for generating color arrangement information describing the order from one end of the narrow image to the other end and the color of the color area for each color area;
Among the color arrangement information, color information indicating the color area to which the color of the redundant cell for extraction indicating the start of the color arrangement code is attached, and the color of the redundant cell for extraction indicating the end of the color arrangement code are attached. The color arrangement representing the color area, and the color arrangement and the order of the color areas in the color arrangement information between them are considered to be the color and order of the cell group constituting the color arrangement code, and the color arrangement Decoding means for decoding the color arrangement code based on the information and outputting the data;
A device for reading a color arrangement code, comprising:
請求項21又は22に記載の色彩配列コードの読み取り装置において、
前記画像内に1個又は複数個設定された前記視野枠の位置を、前記画像内で、利用者の指示に従って移動する視野枠移動手段、
を含み、前記狭小画像取り出し手段が、前記移動した視野枠によって前記狭小画像を取り出すことを特徴とする色彩配列コードの読み取り装置。
In the reading device of the color arrangement code according to claim 21 or 22,
Visual field frame moving means for moving the position of the visual field frame set in the image in accordance with a user's instruction within the image;
And the narrow image take-out means takes out the narrow image by the moved field frame.
JP2009256987A 2009-11-10 2009-11-10 Method and device for reading color arrangement code Pending JP2011103023A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2009256987A JP2011103023A (en) 2009-11-10 2009-11-10 Method and device for reading color arrangement code

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2009256987A JP2011103023A (en) 2009-11-10 2009-11-10 Method and device for reading color arrangement code

Publications (1)

Publication Number Publication Date
JP2011103023A true JP2011103023A (en) 2011-05-26

Family

ID=44193336

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2009256987A Pending JP2011103023A (en) 2009-11-10 2009-11-10 Method and device for reading color arrangement code

Country Status (1)

Country Link
JP (1) JP2011103023A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112292716A (en) * 2018-06-24 2021-01-29 工业365公司 (有限责任) Method for verifying the authenticity of a product and printed image

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112292716A (en) * 2018-06-24 2021-01-29 工业365公司 (有限责任) Method for verifying the authenticity of a product and printed image

Similar Documents

Publication Publication Date Title
KR101348494B1 (en) Optical symbol, article to which the optical symbol is attached, method for attaching optical symbol to article, optical symbol decoding method, related device, and related program
US7539344B2 (en) Boundary detection method between areas having different features in image data
USRE44982E1 (en) Mixed code, and method and apparatus for generating the same
CN100380393C (en) Precise location method of QR code image symbol region at complex background
US20080023546A1 (en) Method, apparatus and computer program for embedding barcode in color image
US20140119647A1 (en) Method and Apparatus for Decoding Mixed Code
EP0853293A1 (en) Subject image extraction method and apparatus
JP4724801B1 (en) 2D code reader and program
CN104112128A (en) Digital image processing system applied to bill image character recognition and method
JP5830338B2 (en) Form recognition method and form recognition apparatus
US20030095704A1 (en) Determination of an illuminant of digital color image by segmentation and filtering
KR20090035529A (en) Optical symbol, article to which the optical symbol is attached, method for attaching optical symbol to article, and optical recognition code recognizing method
CN110659634A (en) Container number positioning method based on color positioning and character segmentation
CN102063621A (en) Method and device for correcting geometric distortion of character lines
US20120069195A1 (en) Pattern of Color Codes
CN103034830A (en) Bar code decoding method and device
JP4404224B2 (en) Optical recognition code recognition apparatus, method and program
JP2012174163A (en) Character recognition processing device and method and character recognition processing program
JP2014085841A (en) Character segmentation device, character segmentation method, and character recognition device
CN110991440B (en) Pixel-driven mobile phone operation interface text detection method
JP5929282B2 (en) Image processing apparatus and image processing program
JP2011103023A (en) Method and device for reading color arrangement code
KR101741758B1 (en) A Real-time Face Tracking Method Robust to Occlusion Based on Improved CamShift with Depth Information
KR20130081192A (en) Image processing apparatus, image processing method, and storage medium
KR100606404B1 (en) Method and apparatus for detecting color code image