【0001】
【産業上の利用分野】
本発明は、一定の配列で配置された複数の単位色相マークの、各々の色相と配列順序とによりコードが付与されたカラーコードの改良に関し、例えば、商品の流通分野で物品を光学的機械装置とコンピュータにより認識するなど種々の目的で利用し得るものである。
【0002】
【従来の技術】
従来のカラーコードは、例えば本出願人の先願に関わる特願平4ー257732号の発明においても、1つの単位色相マークに与えられた色相は1色であること、そしてその色相の色認識を光学的機械装置を介して行うことが基本である。
【0003】
【発明が解決しようとする課題】
しかし、背景色として白色を想定して予め設定されたカラーコードを、色彩を有する対象物に表示する必要が生じた場合には、カラーコード認識の際の色認識を行う段階で問題を生じうる。その問題とは、表示されたカラーコードの単位色相マークの幾つかにおいて、その色相マークの領域とその下地色たる背景色領域との間に有意差のある色差を生じないために認識不能又は誤認識が生じうることである。
【0004】
この場合、従来のカラーコードでは、下地の色相と混同されない色認識可能なほかの色相に変更するか、あるいは認識されない色相を削除してカラーコードに使用する色相数を減らす必要があった。また、単位色相マークが汚れなどにより色相の認識ができなくなる場合も有りうる。
【0005】
【課題を解決するための手段】
本発明は、単位色相マークに与える色相を1色とすることに代えて、単位色相マークを相互に補色の関係を有する2色相領域で1対とすることを特徴とし、どちらか一方を認識すればよい様にコードを構成することを骨子とするものである。
【0006】
この様にすれば、一方の色相が背景色と正しく区別し得ない場合にも、その補色は本質的に背景色との色差が大であるから、この様な単位色相マークを光学的機械装置によって正しく認識することが可能となる。
【0007】
本発明は、この様にすることによって、色のついた下地にカラーコードを表示する場合にも、予め設定された色相を変更、削除することなく確実かつ正確に色認識することができる。
【0008】
また、一方の色相領域に汚れがある場合にも、もう一方の色相を利用することによりコードの正確な認識が実現可能となる。
以下に本発明を図に従って更に具体的に説明する。
【0009】
【実施例】
図1から図4を用いて本発明の実施例について説明する。
図1は、本発明のカラーコード1の1実施例を示す。
【0010】
これは、主色相マークと補助色相マークとの組み合わせを長方形の形状に8個(短い辺方向に2個、長い辺方向に4個)配置した例である。また、主色相マークと補助色相マークの位置を検出するために、例として長方形の短い辺方向に配置された2個の主色相マークの間に位置マークを配置する。
【0011】
実施例においては、図2のように、主色相マークには加法混色の原色である赤、緑、青を、補助色相マークには赤、緑、青のそれぞれの補色である藍、紅、黄色を使用する。図3は、これら色相を人間の視覚評価とほぼ一致するCIELab色空間のab平面上に投影した図を示す。これら色相は、図3に示すように各色相が空間上でほぼ等間隔に位置し相互に区別がつきやすいよう選択したものである。
【0012】
次に、この図1のカラーコード1の読み取り動作について説明する。
まず入力された画像から1番目の位置マーク4−1を検出する。この位置マーク4−1から1番目の主色相マーク2−1の領域を予想する。この予想される領域の色相が、主色相マークに使用した色相(赤、緑、青)のうちのどの色相か判断する。これより、画像領域内において1番目の主色相マーク2−1の色相が得られる。
【0013】
もし、得られた主色相マーク2−1の色相が下地の色相と混同されたり汚れなどにより主色相マークに使用した色相(赤、緑、青)と異なると判断された場合、1番目の主色相マーク2−1の色相は、1番目の主色相マーク2−1に対応する補助色相マーク3−1の色相を利用して以下の方法により決定する。
【0014】
検出した1番目の位置マーク4−1から1番目の補助色相マーク3−1の領域を予想する。この予想される領域の色相が、補助色相マークに使用した色相(藍、紅、黄色)のうちのどの色相か判断する。これより、1番目の補助色相マーク3の色相が得られる。得られた1番目の補助色相マーク3−1の色相と、主色相マークと補助色相マークとの対応表(図2の対応表の例を参照)より、1番目の主色相マーク2−1の色相を決定する。
【0015】
同様に、1番目の位置マーク4−1から予想される、2番目の主色相マーク2−2と2番目の補助色相マーク3−2の各領域に対して、2番目の主色相マーク2−2の色相を決定する動作をおこなう。
【0016】
次に、入力された画像から2番目の位置マーク4−2を検出し、同様に3番目の主色相マーク2−3と4番目の主色相マーク2−4の色相を決定する動作を繰り返す。
【0017】
これら動作を、最後(4番目)の位置マーク4−4を検出して最後(8番目)の主色相マーク2−8の色相を決定するまで繰り返す。
これより、得られた8個の主色相マーク2−1〜2−8の色相組み合わせと図4に例として示した予め登録した色相組み合わせ(同一色相の組み合わせを含む)によるコード表現テーブルを使用してカラーコード1のコードを読み取る。
【0018】
尚、本発明は、以上の実施例の他にも種々の実施態様が可能であり、例えば以下の様なものが挙げられる。
即ち、複数の色相マークの各々は、対応する位置マークの周囲の所定の範囲内に配置されたものとすることができる。従って、色相マークは、位置マーク(通常はその中心)から所定の方向および所定の距離の点を中心とした所定範囲の領域内に配置し得る。その方向を定めるのには、例えば基点を想定して、その基点と位置マークを結ぶ線分を基線とし、その基線と成す角度を定めれば良い。
【0019】
【発明の効果】
本発明により、色のついた下地にカラーコードを印刷する場合にもカラーコードに使用する色相を変更、削除することなく確実かつ正確に色認識をおこなうことが可能となる。
【0020】
また、複数の単位領域の色相よりコードの読み取りを行うため、コードを表わす主色相領域が汚れなどにより認識されない場合にも正確な読み取りを可能とするカラーコードを実現できる。
【図面の簡単な説明】
【図1】本発明のカラーコードの実施例構成図である。
【図2】本発明の使用主色相例・補助色相例の対応表例である。
【図3】本発明の使用色相例をCIELab色空間のab平面上に投影した図である。
【図4】本発明のコード表現テーブル例である。
【符号の説明】
1:カラーコード
2−1〜2−8:主色相マーク
3−1〜3−8:補助色相マーク
4−1〜4−4:位置マーク[0001]
[Industrial applications]
The present invention relates to an improvement of a color code in which a plurality of unit hue marks arranged in a fixed arrangement are provided with a code according to each hue and arrangement order. Can be used for various purposes such as recognition by a computer.
[0002]
[Prior art]
In the conventional color code, for example, in the invention of Japanese Patent Application No. 4-257732 related to the earlier application of the present applicant, the hue given to one unit hue mark is one color, and the color recognition of the hue is performed. Is basically performed through an optical mechanical device.
[0003]
[Problems to be solved by the invention]
However, when it is necessary to display a color code set in advance assuming white as a background color on an object having a color, a problem may occur at the stage of performing color recognition at the time of color code recognition. . The problem is that in some of the unit color marks of the displayed color code, there is no significant difference in color between the area of the color mark and the background color area, which is the underlying color, so that it cannot be recognized or mistaken. That is, recognition can occur.
[0004]
In this case, in the conventional color code, it is necessary to reduce the number of hues used in the color code by changing to another color that can be recognized as a color that is not confused with the hue of the background, or deleting the hue that is not recognized. Further, the unit hue mark may not be able to recognize the hue due to dirt or the like.
[0005]
[Means for Solving the Problems]
The present invention is characterized in that a unit hue mark is paired with two hue regions having a complementary color relationship, instead of a single hue given to the unit hue mark. The main point is to configure the code in a way that is appropriate.
[0006]
In this case, even when one of the hues cannot be correctly distinguished from the background color, the complementary color has a substantially large color difference from the background color. This allows correct recognition.
[0007]
According to the present invention, in this manner, even when a color code is displayed on a colored background, color can be recognized reliably and accurately without changing or deleting a preset hue.
[0008]
Further, even when one of the hue regions is dirty, accurate recognition of the code can be realized by using the other hue.
Hereinafter, the present invention will be described more specifically with reference to the drawings.
[0009]
【Example】
An embodiment of the present invention will be described with reference to FIGS.
FIG. 1 shows an embodiment of the color code 1 of the present invention.
[0010]
This is an example in which eight combinations of the main hue mark and the auxiliary hue mark are arranged in a rectangular shape (two in the short side direction and four in the long side direction). Further, in order to detect the positions of the main hue mark and the auxiliary hue mark, for example, a position mark is arranged between two main hue marks arranged in the short side direction of the rectangle.
[0011]
In the embodiment, as shown in FIG. 2, the primary hue mark has red, green, and blue as primary colors of additive color mixture, and the auxiliary hue mark has indigo, red, and yellow as complementary colors of red, green, and blue. Use FIG. 3 shows a diagram in which these hues are projected on the ab plane in the CIELab color space that substantially matches the human visual evaluation. These hues are selected such that the hues are located at substantially equal intervals in space as shown in FIG. 3 and are easily distinguishable from one another.
[0012]
Next, the reading operation of the color code 1 in FIG. 1 will be described.
First, the first position mark 4-1 is detected from the input image. The area of the first main hue mark 2-1 is predicted from the position mark 4-1. It is determined which hue of the expected area is among the hues (red, green, and blue) used for the main hue mark. Thus, the hue of the first main hue mark 2-1 is obtained in the image area.
[0013]
If the hue of the obtained main hue mark 2-1 is determined to be different from the hue (red, green, blue) used for the main hue mark due to being confused with the hue of the base or being stained, etc. The hue of the hue mark 2-1 is determined by the following method using the hue of the auxiliary hue mark 3-1 corresponding to the first main hue mark 2-1.
[0014]
The area of the first auxiliary hue mark 3-1 is predicted from the detected first position mark 4-1. It is determined which hue of the expected area is among the hues (indigo, red, and yellow) used for the auxiliary hue mark. Thus, the hue of the first auxiliary hue mark 3 is obtained. From the obtained correspondence table between the hue of the first auxiliary hue mark 3-1 and the main hue mark and the auxiliary hue mark (see the example of the correspondence table in FIG. 2), the first main hue mark 2-1 is displayed. Determine the hue.
[0015]
Similarly, for each area of the second main hue mark 2-2 and the second auxiliary hue mark 3-2 expected from the first position mark 4-1, the second main hue mark 2- The operation for determining the second hue is performed.
[0016]
Next, the operation of detecting the second position mark 4-2 from the input image and similarly determining the hues of the third main hue mark 2-3 and the fourth main hue mark 2-4 is repeated.
[0017]
These operations are repeated until the last (fourth) position mark 4-4 is detected and the hue of the last (eighth) main hue mark 2-8 is determined.
Thus, the code expression table based on the obtained hue combinations of the eight main hue marks 2-1 to 2-8 and the previously registered hue combinations (including the same hue combinations) shown in FIG. 4 is used. To read the color code 1.
[0018]
In addition, the present invention is capable of various embodiments other than the above-described embodiment, and examples thereof include the following.
That is, each of the plurality of hue marks can be arranged within a predetermined range around the corresponding position mark. Therefore, the hue mark can be arranged within a predetermined range of area around a point in a predetermined direction and a predetermined distance from the position mark (usually the center). To determine the direction, for example, a base point is assumed, a line segment connecting the base point and the position mark is set as a base line, and an angle formed with the base line may be set.
[0019]
【The invention's effect】
According to the present invention, even when a color code is printed on a colored base, color recognition can be performed reliably and accurately without changing or deleting the hue used for the color code.
[0020]
Further, since the code is read from the hues of the plurality of unit areas, it is possible to realize a color code which enables accurate reading even when the main hue area representing the code is not recognized due to dirt or the like.
[Brief description of the drawings]
FIG. 1 is a configuration diagram of an embodiment of a color code of the present invention.
FIG. 2 is an example of a correspondence table of examples of main hues used and examples of auxiliary hues according to the present invention.
FIG. 3 is a diagram in which an example of a used hue of the present invention is projected on an ab plane in a CIELab color space.
FIG. 4 is an example of a code expression table according to the present invention.
[Explanation of symbols]
1: color code 2-1 to 2-8: main hue mark 3-1 to 3-8: auxiliary hue mark 4-1 to 4-4: position mark