Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JPH0412876B2 - - Google Patents
[go: Go Back, main page]

JPH0412876B2 - - Google Patents

Info

Publication number
JPH0412876B2
JPH0412876B2 JP62229866A JP22986687A JPH0412876B2 JP H0412876 B2 JPH0412876 B2 JP H0412876B2 JP 62229866 A JP62229866 A JP 62229866A JP 22986687 A JP22986687 A JP 22986687A JP H0412876 B2 JPH0412876 B2 JP H0412876B2
Authority
JP
Japan
Prior art keywords
code
tagata
line
reference line
end point
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.)
Expired - Lifetime
Application number
JP62229866A
Other languages
Japanese (ja)
Other versions
JPS6474686A (en
Inventor
Makoto Takahashi
Hiroaki Hashimukai
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.)
Azbil Corp
Original Assignee
Azbil Corp
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 Azbil Corp filed Critical Azbil Corp
Priority to JP62229866A priority Critical patent/JPS6474686A/en
Publication of JPS6474686A publication Critical patent/JPS6474686A/en
Publication of JPH0412876B2 publication Critical patent/JPH0412876B2/ja
Granted legal-status Critical Current

Links

Description

【発明の詳細な説明】 〔発明の対象技術分野〕 この発明は1つのコードで数ビツトの情報を表
わすことのできる田形コードを読取る方法に関す
るものである。
DETAILED DESCRIPTION OF THE INVENTION [Technical Field of the Invention] The present invention relates to a method of reading a Tagata code that can represent several bits of information with one code.

〔従来技術およびその問題点〕[Prior art and its problems]

従来この種の田形コードはこのコードを形成す
る各網目がマトリクス状に配列されていることか
ら、その網目すなわちコードの位置情報の読取り
に際しその位置合せが必要であるばかりかその位
置合せにかなりの時間を要し、このためコードの
利用価値を十分生かすことができないばかりでな
く田形コードを走査する際にこの田形コードが走
査方向に対して傾いているばあいには誤まつたデ
ータを読取る欠点があつた。
Conventionally, in this type of Tagata code, the meshes forming the code are arranged in a matrix, so when reading the position information of the meshes, that is, the code, it is not only necessary to align the meshes, but also requires a considerable amount of time. This takes time, which not only prevents the use of the code to its full potential, but also causes the disadvantage of reading incorrect data if the code is tilted with respect to the scanning direction when scanning the code. It was hot.

〔発明の目的〕[Purpose of the invention]

この発明はこのような従来の欠点にかんがみ、
田形コードの位置を正確に知るとともに、そのデ
ータを正確に読取り、さらに田形コードが走査方
向に対して若干傾いてもそのコードの位置情報を
正確に得ることを目的とするものである。
This invention takes into consideration these conventional drawbacks,
The object of this invention is to accurately know the position of the Tagata code, to read the data accurately, and to obtain accurate position information of the Tagata code even if the code is slightly tilted with respect to the scanning direction.

〔発明の概要〕[Summary of the invention]

この発明はその目的を達成するために、田形コ
ードと平行に、かつこの田形コードの一辺の長さ
に等しい長さを有する基準線を設け、また田形コ
ードの基準線側に位置する第1列目の網目の少な
くとも1つの網目を濃色の画素とし、田形コード
を第1の方向に沿つて走査することによりそのデ
ータを読取るとともに、田形コードの第1列目の
網目の位置は基準線の位置情報を基準として得、
さらに第2列目以降の網目の位置はその列の基準
線側にある濃色の画素を施した網目位置情報を基
準として得るようにしたもので、これによつて田
形コードのデータを容易に読取ることができると
ともに、走査角度が若干傾いてもそのデータを正
確に読取ることができる。
In order to achieve the object, this invention provides a reference line that is parallel to the Tagata code and has a length equal to the length of one side of the Tagata code, and a first row located on the reference line side of the Tagata code. At least one of the meshes is a dark-colored pixel, and the data is read by scanning the Tagata code along the first direction, and the position of the mesh in the first row of the Tagata code is set to the reference line. Obtain location information as a reference,
Furthermore, the mesh positions in the second and subsequent rows are obtained based on the mesh position information with dark pixels on the reference line side of that row, which makes it easier to obtain tagata code data. The data can be read accurately even if the scanning angle is slightly tilted.

〔実施例〕〔Example〕

以下図によつてこの発明の一実施例について説
明する。
An embodiment of the present invention will be described below with reference to the drawings.

すなわち第2図において符号1は周知の田形コ
ードの基本構成を示すもので、方形たとえば一辺
が2mmの正方形の網目を4個田の字状に組合せて
全体として一辺が4mmである田形コードが形成さ
れる。この田形コードは各網目を塗潰すことによ
り所定のビツト数の情報を表わすことができる。
たとえば4つの網目を用いるばあいにはこの実施
例の認識アルゴリズムにおいて、基準線側の1列
の網目のうち少なくとも1つは濃色であることに
より12とおりの情報を表わすことができる。今仮
りに左上の網目を塗潰したときに0、さらに左下
の網目を塗潰したときに1、右上の網目を塗潰し
たときに2、右下の網目を塗潰したときに4、そ
して左上、左下の網目を塗潰したときに8とする
ことができる。
In other words, in Fig. 2, reference numeral 1 indicates the basic configuration of the well-known Tagata cord. For example, four square meshes each having a side of 2 mm are combined in a square shape to form a Tagata cord having a side of 4 mm as a whole. be done. This field code can represent information of a predetermined number of bits by filling out each mesh.
For example, when four meshes are used, in the recognition algorithm of this embodiment, at least one of the meshes in one row on the reference line side is dark-colored, so that 12 types of information can be represented. Now, suppose that when the upper left mesh is filled in, it becomes 0, when the lower left mesh is filled in, it is 1, when the upper right mesh is filled, it is 2, when the lower right mesh is filled, it is 4, and When the upper left and lower left meshes are filled in, it can be set to 8.

またこの田形コードは第1の軸心線すなわち十
字の一方の線この実施例においては縦の線が第1
の方向すなわちY軸に一致し、かつ第1図に示す
ように複数個の田形コード1,1を第1の方向と
交差する第2の方向すなわちX軸の方向に沿つて
たがいに所定の間隔をおいて配設される。
In addition, this Tagata code has a first axis line, that is, one line of the cross.In this embodiment, the vertical line is the first line.
The plurality of field cords 1, 1 are arranged at predetermined intervals along the second direction, that is, the direction of the X-axis, which coincides with the direction of It is arranged after.

所定の寸法たとえば長さが4mmに対し幅が1mm
の基準線3は左端に位置する田形コードから第2
の方向においてさらに左側に所定の間隔たとえば
1mmだけずれ、かつその長手方向の軸心線が第1
の方向に一致して配設される。
For example, the length is 4mm and the width is 1mm.
The reference line 3 is the second line from the Tagata code located at the left end.
further to the left by a predetermined interval, for example, 1 mm, and whose longitudinal axis is the first
It is arranged in accordance with the direction of.

したがつて基準線3と交差する第2の方向にお
いて、田形コード1,1の一方の端部、すなわち
この実施例においては上端は基準線3の一方の端
部すなわち上端に、またその他方の端部すなわち
下端は基準線3の他方の端部すなわち下端にそれ
ぞれ一致している。
Therefore, in the second direction intersecting the reference line 3, one end, that is, the upper end in this embodiment, of the taga cords 1, 1 is connected to one end, that is, the upper end of the reference line 3, and the other The ends, ie, the lower ends, coincide with the other end, ie, the lower end of the reference line 3, respectively.

また基準線3は田形コード1の所定の網目を塗
潰す色と同様に黒色が選ばれるが、その色は無彩
色に限定されることなく任意に選択することが可
能である。
Further, the reference line 3 is selected to be black in the same way as the color used to fill in the predetermined meshes of the Tagata code 1, but the color is not limited to an achromatic color and can be arbitrarily selected.

次にこの発明における田形コード1,1の読取
り方法について説明する。
Next, a method of reading the tag type codes 1, 1 according to the present invention will be explained.

まずその読取りはラスタースキヤンにより行わ
れ、その走査方向は第1図において第1の方向に
沿つて上から下へ、かつその走査の進行方向は第
1図において第2の方向に沿つて基準線3から田
形コード1側すなわち左側から右側になるように
設定される。すなわちこの走査は左側から右側へ
の垂直ラスタースキヤンと呼ばれるものである。
First, the reading is performed by raster scanning, and the scanning direction is from top to bottom along the first direction in FIG. 1, and the scanning direction is along the reference line in the second direction in FIG. 3 to the Tagata code 1 side, that is, from the left side to the right side. That is, this scanning is called a vertical raster scan from left to right.

そして走査が開始され、基準線3がラスタース
キヤンを受けたときに初めて正式な読取りが開始
される。すなわちラスタースキヤンによつて濃色
の画素である黒画素がある一定値以上、この実施
例においては4mm弱に相当する画素数が連続した
ならばそれを基準線3として抽出する。同時に第
3図に示す基準線3の一方の端部における点3a
すなわち上端点と他方の端部における点3bすな
わち下端点の座標を求める。
Scanning is then started, and formal reading begins only when the reference line 3 has undergone raster scanning. That is, if the raster scan results in a number of consecutive black pixels that are dark colored pixels equal to or greater than a certain value, which corresponds to a little less than 4 mm in this embodiment, then this is extracted as the reference line 3. At the same time, a point 3a at one end of the reference line 3 shown in FIG.
That is, the coordinates of the upper end point and the point 3b at the other end, that is, the lower end point, are determined.

次に現われる濃色画素の領域は基準線3の隣に
位置し、最初に走査される田形コード1aの左端
であるのでこの点L0から約0.5mm先の線L1上す
なわち第1列目を走査する。このときその走査線
上にある2つの網目の中、少なくとも1つは濃色
の画素を有しているので、この画素の走査線上に
おける上端点および下端点を比較することにより
その網目の画素構成が第4図のイ,ロ,ハのいず
れかであることが判断される。
The area of dark pixels that appear next is located next to the reference line 3, and is the left end of the taga code 1a that is scanned first, so scan the line L1 about 0.5 mm ahead from this point L0, that is, the first column. do. At this time, at least one of the two meshes on the scanning line has a dark pixel, so by comparing the upper and lower end points of this pixel on the scanning line, the pixel configuration of the mesh can be determined. It is determined that it is one of A, B, and C in Figure 4.

さらに隣の田形コード1bの第1列目の画素す
なわちコードは第1番目の田形コード1aの第1
列目のコードが第4図イであるときにこの上端点
y12と下端点y10の座標をコード認識位置基準点
すなわち基準線3の上端点および下端点を基準と
して更新する。またそのコードが第4図ロである
とき、すなわち濃色の画素がその列の上側にある
ときにはその画素の上端点y12と下端点y11+(下
端点y11−上端点y12)の座標をコード認識位置
基準点として更新する。一方そのコードが第4図
ハであるとき、すなわち濃色の画素がその列の下
側にあるときにはその画素の上端点y11−(下端
点y10−上端点y11)と下端点y10の座標をコ
ード認識位置基準点として更新する。
Furthermore, the pixels in the first column of the adjacent Tagata code 1b, that is, the first column of the code, are the first pixels of the first Tagata code 1a.
When the code in the column is as shown in Figure 4 A, this upper end point
The coordinates of y12 and the lower end point y10 are updated using the code recognition position reference point, that is, the upper end point and the lower end point of the reference line 3 as references. In addition, when the code is as shown in Figure 4 (b), that is, when a dark pixel is on the upper side of the column, the coordinates of the upper end point y12 and lower end point y11 + (lower end point y11 - upper end point y12) of that pixel are set as the code recognition position. Update as a reference point. On the other hand, when the code is as shown in Figure 4 (c), that is, when the dark pixel is at the bottom of the column, the coordinates of the upper end point y11 - (lower end point y10 - upper end point y11) and lower end point y10 of that pixel are coded. Update as the recognized position reference point.

また田形コード1aの第2列目すなわち右側の
網目の認識は第3図に示すようにその列の左端の
線から2.5mm右側の線L2を走査することによつ
て行う。そしてその列の網目に対応する走査の開
始点のy座標は第1列目の網目が第4図イの形を
とるときには上端点y22と(更新後の上端点y22
+更新後の下端点y20)/2の点を、またその網
目が第4図ロの形をとるときには更新後の上端点
y22と更新前の下端点y11を、さらにその網目が
第4図ハの形をとるときには更新後の上端点y22
と更新前の上端点y11をそれぞれ基準にしてそこ
から約0.25mmの位置から走査を行う。そしてその
走査の長さはそれぞれ約1.5mm相当でその中に約
0.8mm程度の連続する濃色画素を認めたときその
網目を濃色すなわち黒の網目と判断する。これに
よつて最初の田形コード1aのデータの認識が終
了する。
Further, the second row, that is, the mesh on the right side of the field code 1a is recognized by scanning a line L2 2.5 mm to the right from the left end line of that row, as shown in FIG. When the mesh in the first row takes the form shown in Figure 4 A, the y-coordinate of the scanning start point corresponding to the mesh in that row is the upper end point y22 (updated upper end point y22
+ the lower end point after the update y20)/2, or the upper end point after the update if the mesh takes the form of Figure 4 B
y22 and the lower end point y11 before the update, and if the mesh takes the form of Figure 4 C, the upper end point y22 after the update.
Scanning is performed from a position approximately 0.25 mm from the upper end point y11 and the upper end point y11 before updating. The length of each scan is approximately 1.5 mm, and approximately
When a continuous dark color pixel of about 0.8 mm is observed, the mesh is determined to be a dark color, that is, a black mesh. This completes the recognition of the data of the first taga code 1a.

さらに第2番目の田形コード1bが続くばあい
には、認識が終了した最初の田形コード1aの左
端の線すなわち第3図において符号L0で示す位
置から走査線の進行方向に4.5mmの位置L3で走
査を開始し、次の田形コード1bの認識を行う。
そこで最初に抽出される濃色画素の連続領域がそ
の第2の田形コード1bの左端の線となるので、
ここから0.5mm右側の線を走査することによつて
第2の田形コード1bの第1列目の網目すなわち
第1の田形コード1aの第1列目から数えて第3
列目の網目が走査される。ここでは第1番目の田
形コードより更新された上端点、下端点からその
形が第4図のイ,ロ,ハのどれに該当するかが認
識され、そして再び上端点、下端点が更新され
る。つづいて第2番目の田形コード1bの三右側
の網目の画素が抽出される。以下同様な作業を行
うことによつて後に続く田形コード1c,1d…
のデータを走査する。
If the second tag type code 1b continues, the position L3 is located 4.5 mm in the scanning line advancing direction from the left end line of the first tag code 1a for which recognition has been completed, that is, the position indicated by the symbol L0 in FIG. Scanning is started at , and the next taga code 1b is recognized.
Therefore, the continuous area of dark color pixels extracted first becomes the leftmost line of the second Tagata code 1b, so
By scanning the line 0.5 mm to the right from here, the mesh in the first row of the second tag type code 1b, that is, the third row counted from the first row of the first tag type code 1a.
A mesh of columns is scanned. Here, it is recognized whether the shape corresponds to A, B, or C in Figure 4 from the upper end point and lower end point updated from the first Tagata code, and the upper end point and lower end point are updated again. Ru. Subsequently, the pixels of the third mesh on the right side of the second Tagata code 1b are extracted. By performing similar operations, subsequent taga codes 1c, 1d...
scan the data.

次に各データをコード変換し、各コードの値を
算出する。
Next, each data is code-converted and the value of each code is calculated.

第5図および第6図は回転誤差の許容の範囲を
示すもので、走査方向が基準線3および田形コー
ド1に対して反時計方向に傾いた状態、換言すれ
ば田形コード1が走査方向に対して時計方向に傾
いた状態を示し、第5図は第7図イの形をとる田
形コード1の、また第6図は第7図ロの形をとる
田形コード1の関係を示している。
Figures 5 and 6 show the permissible range of rotation error, and show a state in which the scanning direction is tilted counterclockwise with respect to the reference line 3 and the Tagata code 1, in other words, the Tagata code 1 is tilted in the scanning direction. Figure 5 shows the relationship between the field code 1 which takes the shape of Figure 7 A, and Figure 6 shows the relationship between the field code 1 which takes the shape of Figure 7 B. .

これらの図から基準線3を求めることができる
限界の傾きすなわち図の対角線の傾きは±13度
で、この角度において田形コード1のデータを抽
出しても符号D,Dで示すように読取り用の走査
線はいずれも走査対象となる網目内に位置し、そ
の傾きによる誤差を許容し、正しく認識されるこ
とが理解されよう。
The limit slope for determining reference line 3 from these figures, that is, the slope of the diagonal line in the figures, is ±13 degrees, and even if data for Tagata code 1 is extracted at this angle, it will not be readable as shown by symbols D and D. It will be understood that all of the scanning lines are located within the mesh to be scanned, allowing errors due to the inclination, and are correctly recognized.

したがつてこの方法においては第1の方向、第
2の方向および回転方向のずれを許容した田形コ
ード1の認識が可能となることが理解されよう。
Therefore, it will be understood that in this method, it is possible to recognize the tag-shaped code 1 that allows deviations in the first direction, the second direction, and the rotational direction.

第7図はコード読取り装置5の外観を示すもの
で、対象物6たとえばシート上に印刷された基準
線3および田形コード1,1を抽出するペン部7
とコントローラ部8とから構成される。ペン部7
は対象物6に密着して使用され、かつ第1の方向
の情報すなわち1次元情報を入力するもので、田
形コード1,1の2次元情報を得るばあいにはそ
のコードすなわち対象に密着させた状態で第2の
方向すなわち横方向に移動させることになる。
FIG. 7 shows the external appearance of the code reading device 5, in which a pen unit 7 extracts the reference line 3 printed on the object 6, for example, a sheet, and the tag code 1, 1.
and a controller section 8. Pen part 7
is used in close contact with the object 6 and inputs information in the first direction, that is, one-dimensional information; when obtaining two-dimensional information of the Tagata codes 1 and 1, it is used in close contact with that code, that is, the object. In this state, it is moved in the second direction, that is, in the lateral direction.

さらにペン部7およびコントローラ部8は第8
図に示すように構成される。この図において光源
11は複数個の発光ダイオードにより構成され、
ペン部7が田形コード1,1に密着しているとき
に、これを照射する。密着形ラインイメージセン
サ12は光源11によつて照射された田形コード
1,1の1次元情報を撮像する。ラインセンサド
ライバ13は同期発生回路14からの出力信号に
よつて1次元情報を読出し、これを信号処理回路
15に出力する。ローラ16はラインイメージセ
ンサ12を駆動するものである。また回転検出回
路17はローラ16の回転角度を検出する。ここ
で同期発生回路14からラインセンサドライバ1
3への信号はローラ16の回転角を回転検出回路
17で検出し、かつ出力された結果とコントロー
ラ8内のタイミング発生回路21からクロツク信
号とから生成される。2値化回路18は信号処理
回路15よつて増幅、フイルタリング等の処理を
受けた1次元信号を2値化するもので、そのしき
い値は1周期前の平均濃度値や最大度値との比等
により自動的に設定することが可能である。コン
トローラ部8において、ラインメモリ23は2値
化された画像信号をクロツク信号により入力する
ものである。専用コード読取り器24はタイミン
グ発生回路21によりラインメモリ23の1次元
情報の内容を処理し、各田形コード1の網目情報
を得るものである。コード変換回路25は田形コ
ード1の網目情報をコード値に変換するものであ
る。シリアル変換器26はコード値をシリアル変
換するもので、さらにRS232Cポート27はシリ
アル変換されたデータを外部に出力するものであ
る。なお28は電源である。
Furthermore, the pen section 7 and the controller section 8 are
It is configured as shown in the figure. In this figure, the light source 11 is composed of a plurality of light emitting diodes,
When the pen part 7 is in close contact with the Tagata cords 1, 1, they are irradiated. The close-contact line image sensor 12 images one-dimensional information of the tag type codes 1, 1 illuminated by the light source 11. The line sensor driver 13 reads out one-dimensional information based on the output signal from the synchronization generation circuit 14 and outputs it to the signal processing circuit 15. The roller 16 drives the line image sensor 12. Further, the rotation detection circuit 17 detects the rotation angle of the roller 16. Here, from the synchronization generation circuit 14 to the line sensor driver 1
The rotation angle of the roller 16 is detected by the rotation detection circuit 17, and the signal to the controller 8 is generated from the output result and a clock signal from the timing generation circuit 21 in the controller 8. The binarization circuit 18 binarizes the one-dimensional signal that has been subjected to processing such as amplification and filtering by the signal processing circuit 15, and its threshold value is based on the average density value or maximum intensity value of one cycle before. It is possible to automatically set it by the ratio etc. In the controller section 8, the line memory 23 receives the binarized image signal in response to a clock signal. The dedicated code reader 24 processes the contents of the one-dimensional information in the line memory 23 using the timing generation circuit 21, and obtains the mesh information of each tag type code 1. The code conversion circuit 25 converts the mesh information of the Tagata code 1 into a code value. The serial converter 26 converts the code value into serial data, and the RS232C port 27 outputs the serially converted data to the outside. Note that 28 is a power source.

さらに第9図は専用コード読取り器24および
コード変換回路25をより具体的に示すもので、
符号31はライン検出回路、32はライン端点検
出回路、33は上端点メモリ、34は下端点メモ
リ、35はコード左側判別回路、36は右側上走
査開始点、37は右側下走査開始点、38はコー
ド右側判別回路、39は網目解析回路、41はコ
ード決定回路、42はテーブルである。
Furthermore, FIG. 9 shows the dedicated code reader 24 and code conversion circuit 25 more specifically.
31 is a line detection circuit, 32 is a line end point detection circuit, 33 is an upper end point memory, 34 is a lower end point memory, 35 is a code left side discrimination circuit, 36 is a right upper scanning starting point, 37 is a right lower scanning starting point, 38 39 is a mesh analysis circuit, 41 is a code determination circuit, and 42 is a table.

次に上記構成における動作について説明する。 Next, the operation in the above configuration will be explained.

まずペン部7を対象物6に印刷された田形コー
ド1に対して密着させる。すると田形コード1は
光源11によつて照射され、さらに密着形ライン
イメージセンサ12によつて撮像される。またラ
インメモリ23上にあらかじめ読込んだデータに
おいて黒画素がある一定値以上、すなわちこの実
施例においては4mm弱に当たる画素数が連続する
かどうかを専用コード読取り器24のライン検出
回路31で調べる。そのために最初の線すなわち
基準線3が検出されるまでローラ16の回転を回
転検出回路17により検出し、密着形ラインイメ
ージセンサ12内に取込んだ1次元情報を連続的
に信号処理回路15,2値化回路18を通してラ
インメモリ23に入力する。
First, the pen part 7 is brought into close contact with the tag code 1 printed on the object 6. Then, the field code 1 is illuminated by the light source 11 and further imaged by the contact type line image sensor 12. In addition, the line detection circuit 31 of the dedicated code reader 24 checks whether or not the number of black pixels in the data previously read into the line memory 23 is equal to or greater than a certain value, that is, in this embodiment, the number of pixels is a little less than 4 mm. For this purpose, the rotation of the roller 16 is detected by the rotation detection circuit 17 until the first line, that is, the reference line 3 is detected, and the one-dimensional information captured in the contact type line image sensor 12 is continuously transmitted to the signal processing circuit 15, The signal is input to the line memory 23 through the binarization circuit 18.

ライン検出回路31において基準線3が検出さ
れたら次にライン端点検出回路32によりその上
端点および下端点の座標をそれぞれ上端点メモリ
33および下端点メモリ34に記録する。これに
よつて基準線3の情報が得られる。
When the line detection circuit 31 detects the reference line 3, the line end point detection circuit 32 records the coordinates of its upper end point and lower end point in the upper end point memory 33 and lower end point memory 34, respectively. Information on the reference line 3 can thus be obtained.

次にローラ16の回転を回転検出回路17で検
出し、オフセツトたとえば1mm強をとつたあとの
点からふたたびラインメモリ23上に読込んだデ
ータにおいて黒画素がある一定値以上連続するか
どうかを専用コード読取り器24内のライン検出
回路31で調べ、次の線が検出されるまでローラ
16の回転を回転検出回路17により検出し、密
着形ラインイメージセンサ12内に取込んだ1次
元情報を連続的に信号処理回路15,2値化回路
18を通してラインメモリ23に入力する。
Next, the rotation of the roller 16 is detected by the rotation detection circuit 17, and a special test is performed to determine whether or not black pixels continue by a certain value or more in the data read into the line memory 23 again from a point after an offset of, for example, a little over 1 mm. The line detection circuit 31 in the code reader 24 checks the line, and the rotation detection circuit 17 detects the rotation of the roller 16 until the next line is detected, and the one-dimensional information captured in the contact line image sensor 12 is continuously transmitted. The signal is then input to the line memory 23 through the signal processing circuit 15 and the binarization circuit 18.

ライン検出回路31において線が検出されたな
らばそれは田形コード1の左端であるのでローラ
16の回転を回転検出回路17で検出し、オフセ
ツトとして1.5mmと地点の1次元情報を密着形ラ
インイメージセンサ12から信号処理回路15を
通してラインメモリ23に入力する。
If the line detection circuit 31 detects a line, it is the left end of the tag code 1, so the rotation of the roller 16 is detected by the rotation detection circuit 17, and the offset of 1.5 mm and one-dimensional information of the point are sent to the contact type line image sensor. 12, the signal is input to the line memory 23 through the signal processing circuit 15.

次にラインメモリ23に入力された情報はコー
ド左側判別回路35により第4図イ,ロ,ハに示
す田形コードのいずれであるかを判別する。
Next, the information inputted to the line memory 23 is determined by the code left side discriminating circuit 35 to determine whether it is a tag type code shown in FIG. 4A, B, or C.

すなわち田形コード1の第1列目の網目のコー
ドの判別点として第4図イのばあいには上端点と
下端点の座標を、第4図ロのばあい上端点と下端
点+(下端点−上端点)の座標を、また第4図ハ
のばあい上端点−(下端点−上端点)下端点の座
標を基準線3に対して更新する。また第2列目す
なわち右側の網目の認識のための走査開始点の座
標を第4図イの田形コードのばあいには上端点
(上端点+下端点)/2の点を、第4図ロのばあ
いには上端点と更新前の下端点を、また第4図ハ
のばあいには更新後の上端点と更新前の上端点を
基準としてそこから0.25mmの位置を右側上スキヤ
ン開始点36、右側下スキヤン開始点37として
記録する。
In other words, as the determination point of the mesh code in the first column of the field code 1, in the case of Figure 4 A, the coordinates of the upper end point and the lower end point are used, and in the case of Figure 4 B, the upper end point and the lower end point + (lower end point) The coordinates of the point minus the upper end point) or, in the case of FIG. In addition, the coordinates of the scanning start point for recognition of the second row, that is, the mesh on the right side, are the upper end point (upper end point + lower end point) / 2 in the case of the tag type code shown in Fig. 4 A, In the case of (b), scan the upper end point and the lower end point before the update, and in the case of Fig. 4 (c), scan the upper end point on the right side at a position 0.25 mm from the upper end point after the update and the upper end point before the update. The starting point 36 and the lower right scan starting point 37 are recorded.

ローラ16の回転と回転検出回路17によりす
でに得られた田形コード1の左端からオフセツト
すなわち2.5mmの地点の1次元情報を密着形ライ
ンイメージセンサ12、信号処理回路15、2値
化回路18を通してラインメモリ23に入力す
る。
The rotation of the roller 16 and the one-dimensional information at the point 2.5 mm from the left end of the tag code 1, which has already been obtained by the rotation detection circuit 17, are transferred to the line through the contact type line image sensor 12, the signal processing circuit 15, and the binarization circuit 18. input into memory 23;

この入力されたデータに対してコード右側判別
回路38はすでに求めた右側上走査開始点36、
右側下走査開始点37を用いて網目情報を得る。
そして網目解析回路39はこの情報を受取り、網
目の値を出力する。
For this input data, the code right side discrimination circuit 38 selects the already determined right upper scanning start point 36,
The mesh information is obtained using the lower right scanning start point 37.
Then, the mesh analysis circuit 39 receives this information and outputs the mesh value.

次にデータを取込む位置をすでに得られた田形
コードの左端かローラ16の回転と回転検出回路
17によりオフセツトとして4.5mmの地点にする。
Next, the data acquisition position is set to the left end of the field code already obtained, or to a point 4.5 mm offset by the rotation of the roller 16 and the rotation detection circuit 17.

以下同様にして田形コードの抽出操作を繰返す
ことによりすべての網目の情報が得られる。
Information on all the meshes can be obtained by repeating the extraction operation of the taga code in the same manner.

そしてこのようにして得られた網目情報は順に
コード変換回路41に入力され、テーブル42を
用いてコード変換され、コード値として出力され
る。
The mesh information obtained in this manner is sequentially input to a code conversion circuit 41, code converted using a table 42, and output as a code value.

〔発明の効果〕〔Effect of the invention〕

この発明は上述のように田形コードと平行に、
かつこの田形コードの1辺の長さに等しい長さを
有する基準線を設けているので、コードの抽出が
きわめて容易で、したがつて利用者にかかる負担
を極端に減少させることができるとともに、田形
コードを正確に認識することができる。
As mentioned above, this invention runs parallel to the Tagata cord.
Moreover, since a reference line having a length equal to the length of one side of this Tagata code is provided, it is extremely easy to extract the code, and therefore the burden on the user can be extremely reduced. Tagata code can be recognized accurately.

また田形コードの基準線側に位置する第1列目
の少なくとも1つの網目を濃色の画素とし、田形
コードを第1の方向に沿つて走査することにより
そのデータを読取るとともに、田形コードの第1
列目の網目の位置は基準線の位置情報を基準とし
て得、さらに第2番目以降の田形コードの最初の
列の網目の位置はその前に位置する田形コードの
基準線側にある濃色の画素を施した網目位置情報
を基準として得るようにしているので、走査線の
進行方向と基準線および田形コードの第2の方向
における配列方向に対する相対角度が若干変つて
もその誤差を十分許容でき、したがつて第1の方
向、第2の方向および回転方向のずれを許容でき
る田形コードの認識が可能となる。
In addition, at least one mesh in the first column located on the reference line side of the taga code is a dark-colored pixel, and the data is read by scanning the taga code along the first direction. 1
The position of the mesh in the column is obtained based on the position information of the reference line, and the position of the mesh in the first column of the second and subsequent Tagata codes is obtained from the dark-colored mesh on the reference line side of the Tagata code located before it. Since the mesh position information obtained by applying pixels is obtained as a reference, even if the relative angle between the direction of movement of the scanning line and the reference line and the arrangement direction of the tag form code in the second direction changes slightly, the error can be sufficiently tolerated. , Therefore, it is possible to recognize a tag code that can tolerate deviations in the first direction, the second direction, and the rotational direction.

【図面の簡単な説明】[Brief explanation of drawings]

第1図はこの発明における田形コードの読取り
方法の一実施例を示すもので、そのパターンの配
置図、第2図は田形コードの構成図、第3図は読
取り位置を示す説明図、第4図は田形コードの種
類を示すパターン、第5図および第6図は走査線
の進行方向と田形コードの関係を示す説明図、第
7図は読取り装置の斜視図、第8図はペン部およ
びコントローラ部のブロツク回路図、第9図は専
用コード読取り器とコード変換回路のブロツク図
である。 1……田形コード、3……基準線、5……コー
ド読取り装置、6……対象物、7……ペン部、8
……コントローラ部、11……光源、12……密
着形ラインイメージセンサ、13……ラインセン
サドライバ、14……同期発生回路、15……信
号処理回路16……ローラ、17……回転検出回
路、18……2値化回路、21……タイミング発
生回路、23……ラインメモリ、24……専用コ
ード読取り器、25……コード変換回路、26…
…シリアル変換器、27……RS232Cポート、3
1……ライン検出回路、32……ライン端点検出
回路、33……上端点メモリ、34……下端点メ
モリ、35……コード左側判別回路、36……右
側上走査開始点、37……右側下走査開始点、3
8……コード右側判別回路、39……網目解析回
路、41……コード決定回路、42……テーブ
ル。
Fig. 1 shows an embodiment of the method for reading the taga code according to the present invention, and shows the layout of its patterns, Fig. 2 is a configuration diagram of the taga code, Fig. 3 is an explanatory diagram showing the reading position, and Fig. 4 is a diagram showing the configuration of the taga code. The figure shows the pattern showing the type of tag code, Figures 5 and 6 are explanatory diagrams showing the relationship between the scanning line advancing direction and the tag code, Figure 7 is a perspective view of the reading device, and Figure 8 shows the pen section and FIG. 9 is a block diagram of the controller section, and FIG. 9 is a block diagram of the dedicated code reader and code conversion circuit. 1...Tagata code, 3...Reference line, 5...Code reading device, 6...Object, 7...Pen part, 8
... Controller section, 11 ... Light source, 12 ... Contact type line image sensor, 13 ... Line sensor driver, 14 ... Synchronization generation circuit, 15 ... Signal processing circuit 16 ... Roller, 17 ... Rotation detection circuit , 18... Binarization circuit, 21... Timing generation circuit, 23... Line memory, 24... Dedicated code reader, 25... Code conversion circuit, 26...
...Serial converter, 27...RS232C port, 3
1...Line detection circuit, 32...Line end point detection circuit, 33...Upper end point memory, 34...Lower end point memory, 35...Code left side discrimination circuit, 36...Right upper scanning start point, 37...Right side Lower scanning start point, 3
8...Code right side discrimination circuit, 39...Mesh analysis circuit, 41...Code determination circuit, 42...Table.

Claims (1)

【特許請求の範囲】[Claims] 1 4つの方形の網目を田の字状に組合せ、かつ
各網目の色の濃淡によつてコードを表示する田形
コードの軸心線を第1の方向に一致させるととも
に、この田形コードの軸心線と平行に、かつこの
田形コードの一辺の寸法と等しい寸法を有する基
準線を上記田形コードと所定の間隔をおいて設
け、さらに第1の方向において、上記田形コード
の上記基準線側に位置する第1列目の網目の少な
くとも1つの網目を濃色の画素とし、しかも上記
基準線と交差する第2の方向において、上記田形
コードの一方の端部を上記基準線の一方の端部
に、また上記田形コードの他方の端部を上記基準
線の他方の端部にそれぞれ一致させ、上記田形コ
ードおよび上記基準線をそれぞれの一方の端部か
ら他方の端部に向つて走査するとともに、この走
査における走査線を第2の方向に沿つて上記基準
線から上記田形コード側に向つて進行させること
により上記田形コードのデータを読取るととも
に、上記走査線の進行方向において、最初に走査
される上記基準線側の田形コードの第1の方向に
おける第1列目の網目の位置は上記基準線の第1
の方向における位置情報を基準にすることにより
得、かつ第2列目以降の網目の位置は上記基準線
側に向つてその直前に位置する濃色の画素を施し
た網目の一方の端部と他方の端部の位置情報を基
準として得るようにした田形コードの読取り方
法。
1 The axial center line of the Tagata code, which combines four square meshes in a Tagata shape and displays the code by the shade of the color of each mesh, is aligned with the first direction, and the axis of this Tagata code is A reference line parallel to the line and having a dimension equal to the dimension of one side of the tag type code is provided at a predetermined interval from the tag type code, and further located on the reference line side of the tag type code in the first direction. At least one of the meshes in the first row is a dark-colored pixel, and one end of the Tagata code is aligned with one end of the reference line in a second direction intersecting the reference line. , further aligning the other end of the Tagata code with the other end of the reference line, scanning the Tagata code and the reference line from one end of each toward the other end; By advancing the scanning line in this scan from the reference line toward the Tagata code side along the second direction, the data of the Tagata code is read, and the data of the Tagata code is read first in the advancing direction of the scanning line. The position of the mesh in the first row in the first direction of the Tagata code on the side of the reference line is
The positions of the meshes in the second and subsequent rows are obtained by using the position information in the direction of A method of reading a Tagata code in which position information of the other end is obtained as a reference.
JP62229866A 1987-09-16 1987-09-16 Reading method for crossed square-shaped code Granted JPS6474686A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP62229866A JPS6474686A (en) 1987-09-16 1987-09-16 Reading method for crossed square-shaped code

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP62229866A JPS6474686A (en) 1987-09-16 1987-09-16 Reading method for crossed square-shaped code

Publications (2)

Publication Number Publication Date
JPS6474686A JPS6474686A (en) 1989-03-20
JPH0412876B2 true JPH0412876B2 (en) 1992-03-05

Family

ID=16898926

Family Applications (1)

Application Number Title Priority Date Filing Date
JP62229866A Granted JPS6474686A (en) 1987-09-16 1987-09-16 Reading method for crossed square-shaped code

Country Status (1)

Country Link
JP (1) JPS6474686A (en)

Also Published As

Publication number Publication date
JPS6474686A (en) 1989-03-20

Similar Documents

Publication Publication Date Title
US4162482A (en) Pre-processing and feature extraction system for character recognition
EP0669593B1 (en) Two-dimensional code recognition method
US7543753B2 (en) Reconstruction of virtual raster
US5164996A (en) Optical character recognition by detecting geo features
JPH0519753B2 (en)
JPH0412876B2 (en)
JPH0311483A (en) Data reading method and device
JP3039704B2 (en) Printing evaluation method and printing evaluation device
JPH0437466B2 (en)
WO2002023464A1 (en) Dot code and dot code reader
JPH0413752B2 (en)
JP3119376B2 (en) Printing evaluation method and printing evaluation device
JP4254008B2 (en) Pattern detection apparatus and method
JPH07107691B2 (en) Image signal processor
JPH0311484A (en) Method and device for reading data
JPS62175885A (en) Optical type image information correcting input device
JP3029142B2 (en) Printing evaluation method and printing evaluation device
JP3119375B2 (en) Printing evaluation method and printing evaluation device
JP3072788B2 (en) Printing evaluation method and printing evaluation device
JP2863671B2 (en) Print format creation device
JP4218179B2 (en) Pattern detection apparatus and method
JPH07107689B2 (en) Image signal processor
JPS62128379A (en) How to read the engraving
JP3029141B2 (en) Print evaluation and print evaluation device
JPH04227578A (en) Print evaluation device