JPH01191280A - Kanji recognizing system - Google Patents

Kanji recognizing system

Info

Publication number
JPH01191280A
JPH01191280A JP63014422A JP1442288A JPH01191280A JP H01191280 A JPH01191280 A JP H01191280A JP 63014422 A JP63014422 A JP 63014422A JP 1442288 A JP1442288 A JP 1442288A JP H01191280 A JPH01191280 A JP H01191280A
Authority
JP
Japan
Prior art keywords
information
code
points
kanji
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.)
Pending
Application number
JP63014422A
Other languages
Japanese (ja)
Inventor
Kiyoya Shima
島 清哉
Hidetoshi Saito
斉藤 秀俊
Kiyoshi Ishikawa
澄 石川
Yoshihiro Mizuniwa
水庭 佳弘
Takeo Maeda
前田 武男
Masateru Sakata
坂田 正輝
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.)
Hitachi Engineering Co Ltd
Hitachi Ltd
Original Assignee
Hitachi Engineering Co Ltd
Hitachi Ltd
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 Hitachi Engineering Co Ltd, Hitachi Ltd filed Critical Hitachi Engineering Co Ltd
Priority to JP63014422A priority Critical patent/JPH01191280A/en
Publication of JPH01191280A publication Critical patent/JPH01191280A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To correctly recognize a KANJI (Chinese character) in a short time by alternately disposing black points and white points on the upper side and the left side of an information element, disposing the white points on a lower side and a right side and reading a code on which a point representing information is disposed by an image scanner. CONSTITUTION:In order to obtain the entry position of the information element, the positions Xa, Ya,...Xd, Yd of the points (a), (b), (c), (d) of the four corners of an external frame are obtained to obtain the coordinates of the points 11, 12, 21, 22 of the reference of four bits. The widths of the external frame are respectively subtracted from the distance of the X axis direction of the point (a) and the point (c), and the point (b) and the point (d) and averaged to have the length of the X axis direction occupied by a piece of information and they are two columns, so that they are divided equally into two to obtain the width Xs of the piece of information. On a Y axis, Ys is similarly obtained. The width of the information obtained in such a way is added to the coordinate Xa, Ya of an origin, thereby, the coordinate of the reference of the information is obtained. However, when the number of the bits of a the information element is increased, the position detecting error of the information element is increased. Then, as one part of the external frame, the black points and the white points are alternately disposed to measure the position of the black points, thereby, more correctly obtaining the position of the information.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、コード化した漢字を認識する漢字認識方式に
関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a kanji recognition method for recognizing encoded kanji.

〔従来の技術〕[Conventional technology]

コンピュータ利用技術において、入力に要する時間は、
非常に多くの割合を占めており、従来から、入力時間短
縮のため、種々の手法が開発されている。
In computer-based technology, the time required for input is
This accounts for a very large proportion of input data, and various methods have been developed to shorten the input time.

その1つとして、印刷されたコードを読取装置によりコ
ンピュータに入力する手法がある。バーコードとカルラ
コードがそれである。バーコードは、細い線と太い線に
より構成されたコードであり、線状に走査するスキャナ
で少数の英数字を読み取るのに適している。
One method is to input a printed code into a computer using a reading device. These include barcodes and Carla codes. A barcode is a code made up of thin lines and thick lines, and is suitable for reading a small number of alphanumeric characters with a linear scanner.

また、カルラコードは朝日新聞・昭和62年1月16日
付夕刊に記載されているように、第8図に示す田の字の
中の4個の四角を白または、黒とすることにより、4ビ
ツトの信号を表わすというものである。
Also, as stated in the evening edition of the Asahi Shimbun on January 16, 1988, the Karura code is created by making the four squares in the character 田 in Figure 8 either white or black. It represents a bit signal.

しかして、カルラコードは、テレビカメラのように、2
50X250ドツト程度の画素を持ち、面状に走査する
スキャナで読み取るのに適したコードであり、英数字の
みでなく、1画面で数十字の漢字を読み取るのにも適し
ている。
However, the Carla code, like a television camera,
This code has pixels of approximately 50 x 250 dots, and is suitable for being read with a scanner that scans a surface, and is suitable for reading not only alphanumeric characters but also several kanji characters on one screen.

ところで、最近、イメージスキャナが普及しだしたが、
その画素数は、3000X5000ドツト程度と、テレ
ビカメラとは桁違いの数である。
By the way, recently, image scanners have become popular,
The number of pixels is approximately 3000 x 5000 dots, which is an order of magnitude higher than that of a television camera.

〔発明が解決しようとする課題〕[Problem to be solved by the invention]

そして、イメージスキャナも面状に走査するものである
ので、バーコードよりカルラコードを用いるのに適して
いるが、イメージスキャナでカルラコードを読み取る場
合、カルラコードも読取スピードや記録密度の点で無駄
があり、改良の余地がある。
Image scanners also scan a surface, so it is more suitable to use Karura codes than barcodes, but when reading Karra codes with image scanners, Karra codes are also wasteful in terms of reading speed and recording density. There is room for improvement.

また、特開昭60−27074号公報には、白黒1対で
その順番によって1か0かを表わす情報読取装置が示さ
れているが、これによれば、記録密度は半分とならざる
を得ない。
Furthermore, Japanese Patent Laid-Open No. 60-27074 discloses an information reading device that uses a pair of black and white to indicate 1 or 0 depending on the order of the pairs, but according to this, the recording density must be halved. do not have.

ここで、カルラコードを認識する場合の手順を述べると
、次のようになる。
Here, the procedure for recognizing the Carla code is as follows.

1)情報要素の切出し 2)情報ビット位置の決定 3)白黒判定 そして、前記した手順のうち、1)と2)は、情報要素
毎におこなわれるので、情報要素が4ビツトと小さいカ
ルラコードの場合、これをイメージスキャナのように大
量の情報を読み取る装置によって読み取る場合は、その
読取時間が長くなる。
1) Cutting out the information element 2) Determining the information bit position 3) Black/white determination And, of the above procedures, 1) and 2) are performed for each information element, so it is difficult to use the Carla code where the information element is as small as 4 bits. In this case, if this is read by a device that reads a large amount of information, such as an image scanner, the reading time will be long.

また、コードとコードの間の空白は、情報要素の切出し
等の作業のために必要なものであるが、この空白による
無駄も、情報要素のビット数が多い方が少なくなる。つ
まり、イメージスキャナで読み取る場合は、より情報要
素の大きいコードの方が適している。
Further, blank spaces between codes are necessary for operations such as cutting out information elements, but the waste caused by these blank spaces is also reduced when the number of bits of information elements is large. In other words, codes with larger information elements are more suitable for reading with an image scanner.

一方、カルラコードの情報要素は、2X2の4ビツトで
あるが、この行と列を増加することによつビット数を増
加することができる。
On the other hand, the information element of the Carla code is 2×2 4 bits, but the number of bits can be increased by increasing the number of rows and columns.

しかし、行数、列数が増加するにつれて、情報要素の位
置検出精度が低下するという問題を生じる。すなりち、
カルラコードの場合は、切り出した情報要素を縦横2等
分の4個に分けて、それぞれの部分が黒か白かを判定す
るのであるが、分ける数が多くなるほど、検出した位置
の誤差が大きくなる。なお、情報要素のビット列の数と
しては、漢字が16ビツトであるので、16列であるこ
とが望ましい。行数については、特に望ましい行数はな
いが、列数と合わせて16行とするのが適切であろう。
However, as the number of rows and columns increases, a problem arises in that the accuracy of detecting the position of information elements decreases. Sunarichi,
In the case of the Carla code, the extracted information element is divided into four equal parts vertically and horizontally, and it is determined whether each part is black or white.The more the number of parts is divided, the greater the error in the detected position becomes. Become. Note that it is desirable that the number of bit strings of the information element be 16, since Kanji characters are 16 bits. Regarding the number of rows, there is no particularly desirable number of rows, but it would be appropriate to set it to 16 rows including the number of columns.

そして、16行16列の情報要素を切り出して、これを
縦横に16等分した場合、その情報要素の位置検出精度
はかなり低下しよう。
If an information element of 16 rows and 16 columns is cut out and divided into 16 equal parts vertically and horizontally, the position detection accuracy of the information element will be considerably reduced.

ところで、情報要素の位置検出精度に関して考察する場
合は、1ビツトがいくつの画素で構成されているかが問
題となる。
By the way, when considering the position detection accuracy of information elements, the question is how many pixels one bit consists of.

また、コードの印刷は、イメージスキャナと同一の装置
に取り付けられたプリンタで印刷される場合を想定する
必要がある。すなわち、一般に、同一装置に取り付けら
れたプリンタとイメージスキャナとは同一分解能を有し
ている。何故ならば。
Furthermore, it is necessary to assume that the code is printed using a printer attached to the same device as the image scanner. That is, generally, a printer and an image scanner attached to the same device have the same resolution. because.

このようにすることにより、イメージスキャナで読み取
った画像が、そのまま、同一寸法でプリンタにより印刷
されるからである。
This is because by doing so, the image read by the image scanner can be printed as is by the printer in the same size.

ここで、前記したごとき条件の下において、最低何個の
画素を1ビツトに割り当てる必要があるかについて検討
してみる。
Let us now consider the minimum number of pixels that need to be allocated to one bit under the conditions described above.

まず、第9図(a)に示すように、1画像を1ビツトに
割り当てたと仮定する。この場合、画素と同じ大きさの
イメージスキャナセンサが白黒の判定をするのであるが
、画素の位置とセンサの位置とがぴったりと一致するこ
とはほとんどなく、最悪の場合は、センサの交点が画素
の中心にくることもあり得る。しかして、センサは、そ
の面積の半分以上が白であるときに白と判定するように
調整されるものであるから、第9図(a)の場合、全て
の点を白と判定する。
First, it is assumed that one image is assigned to one bit, as shown in FIG. 9(a). In this case, the image scanner sensor, which is the same size as the pixel, determines whether it is black or white, but the pixel position and the sensor position rarely match exactly, and in the worst case, the intersection of the sensors may It may be in the center of Since the sensor is adjusted to determine white when half or more of its area is white, in the case of FIG. 9(a), all points are determined to be white.

次に、第9図(b)に示すように、1ビツトに2画素を
割り当てた場合にも、最悪の場合は、2つのセンサに黒
が半分かかることになり、したがって、第9図(b)の
場合、センサの特性によっては、全ての点を白と判定す
る可能性がある。
Next, even if two pixels are assigned to one bit as shown in FIG. 9(b), in the worst case, half of the black will be applied to the two sensors, and therefore, as shown in FIG. ), there is a possibility that all points will be determined to be white depending on the characteristics of the sensor.

また、第9図(Q)に示すように、1ビツトに4画素を
割り付けると、最悪の場合でも、1点は黒と判定する。
Furthermore, as shown in FIG. 9(Q), if four pixels are assigned to one bit, even in the worst case, one point will be determined to be black.

したがって、1ビツトに4画素を割り付け、センサが1
点でも黒と判定したならば黒とすると、論理的には情報
要素の位置検出は可能と言えるが、このようにすると、
わずかな傷でも誤検出の原因となり、また隣接する黒画
素の影響により黒と誤判定する可能性もあるので不正確
である。
Therefore, 4 pixels are assigned to 1 bit, and the sensor
If even a point is determined to be black, it is logically possible to detect the position of the information element, but if you do this,
Even the slightest scratch can cause false detection, and there is also a possibility that it will be misjudged as black due to the influence of adjacent black pixels, so it is inaccurate.

さらに、第9図(d)に示すように、3X3の9の画素
を1ビツトに割り当てると、最悪の場合でも4点のセン
サが黒と判定する。したがって、第9図(d)のように
すれば、成る程度情報要素の位置検出精度は上がるが、
9ドツトのうちの4ドツトは全ドツトの半分以下であり
、隣接する黒画素の影響も考えると、4点以上が黒であ
れば黒と判定する場合は、どうしても黒と誤判定する可
能性が大きくなる。
Furthermore, as shown in FIG. 9(d), if 9 pixels of 3×3 are assigned to 1 bit, even in the worst case, 4 sensors will determine black. Therefore, if the method shown in FIG. 9(d) is used, the position detection accuracy of the information element will be improved to some extent, but
Four of the nine dots are less than half of all dots, and considering the influence of adjacent black pixels, if four or more dots are black, there is a possibility that they will be misjudged as black. growing.

これに対し、第9図(e)に示すように、1ビツトに1
6画素を割り当てると、最悪でも、9点が黒と判定する
。そして、9点は16点の過半数であるから、9点以上
は黒、7点以下は白、8点は不明とすると、情報要素の
位置検出誤差は、白にも黒にも偏らない。このようなこ
とから、1ビツトには、少なくとも4×4の16画素を
割り当てるべきである。
On the other hand, as shown in FIG. 9(e), 1 bit has 1
If 6 pixels are allocated, at worst, 9 points will be determined to be black. Since 9 points is a majority of 16 points, if 9 points or more are black, 7 points or less are white, and 8 points are unknown, the position detection error of the information element will not be biased towards white or black. For this reason, at least 4×4 16 pixels should be allocated to one bit.

しかしながら、記録密度を最大にすることを目的として
、第9図(e)に示すように、1ビツトに16画素を割
り当てた場合、情報要素の位置精度は非常に重要な問題
となり、1行または1列の位置誤差が誤判定の原因とな
り得る。
However, when 16 pixels are assigned to 1 bit as shown in Figure 9(e) with the aim of maximizing recording density, the positional accuracy of information elements becomes a very important issue, and A positional error in one column can cause a misjudgment.

本発明は、以上の点を考慮してなされたものであって、
その目的とするところは、1つの情報要素で16X16
ビツトの情報、つまり漢字にして16字の情報を表わす
ことができるコードを、イメージスキャナのように大量
の情報を読み取る装置によって記録密度を高くして、し
かも短時間のうちに正確に認識することのできる漢字認
識方式を提供することにある。
The present invention has been made in consideration of the above points, and includes:
The purpose is to use 16x16 in one information element.
Bit information, that is, a code that can represent information in 16 Kanji characters, can be recognized accurately in a short time by increasing the recording density using a device that reads a large amount of information, such as an image scanner. The objective is to provide a kanji recognition method that allows for

〔課題を解決するための手段〕[Means to solve the problem]

前記目的を達成するため、本発明に係る漢字認識方式は
、情報要素の上辺と左辺に黒点と白点を交互に配置し、
下辺と右辺に白点を配置し、この中に情報を表す点を配
置したコードを、イメージスキャナにより読み取ること
を特徴とするものであった。
In order to achieve the above object, the kanji recognition method according to the present invention alternately arranges black dots and white dots on the top and left sides of information elements,
It was characterized by having white dots on the bottom and right sides, and a code containing dots representing information that was read by an image scanner.

〔作用〕[Effect]

ここで、情報の記入された位置を求める方法について、
カルラ−コードのように2×2ビツトを情報要素とする
場合を例にとって説明する。なお、第10図に示すよう
に、座標は、横方向に左端を原点としてX軸、縦方向に
上端を原点としてY軸を取ることにする。
Here, regarding how to find the location where information is written,
An explanation will be given by taking as an example a case where the information element is 2×2 bits like a Carla code. Note that, as shown in FIG. 10, the coordinates are taken in the horizontal direction on the X-axis with the left end as the origin, and in the vertical direction on the Y-axis with the upper end as the origin.

しかして、第10図に示す情報要素の記入位置を求める
には、外枠の4隅の点a、b、c、de位置A a g
 Y a H・・・Xd、Ydを求め、この値から、4
ビツトの各情報の基準となる点(左上の点)11.12
,21.22の座標を求める。なお、外枠はイメージス
キャナで読み取った場合に線が途切れないようにする必
要があり、そのためには2ビツト幅以上必要であるので
、ここでは2ビツト幅とする。また、その内側に2ビツ
ト幅の白線を入れ、枠と情報との区切りとする。さらに
、情報は、1ビツトに4×4ドツトとする。そして、こ
の場合の情報の基準点の座標は、次のように計算できる
Therefore, in order to find the entry position of the information element shown in Fig. 10, the four corner points a, b, c, de positions A a g
Y a H...Determine Xd, Yd, and from this value, 4
The reference point for each bit information (upper left point) 11.12
, 21. Find the coordinates of 22. Note that the outer frame needs to be so that the line does not break when read with an image scanner, and for this purpose it needs a width of 2 bits or more, so here it is assumed to be 2 bits wide. In addition, a 2-bit wide white line is placed inside the frame to separate the frame and the information. Furthermore, the information is assumed to be 4×4 dots per bit. The coordinates of the reference point of the information in this case can be calculated as follows.

すなわち、第10図において、点aと点C1点すと点d
のX線方向の距離から外枠(白線を含む)の幅をそれぞ
れ引いて平均したのが情報の占めるX線方向の長さであ
り、これを2列であるから2等分して、1つの情報の幅
Xsを求める。Y軸についても同様にYsを求める。
That is, in Fig. 10, point a, point C1, and point d
The length of the information in the X-ray direction is obtained by subtracting the width of the outer frame (including the white line) from the distance in the X-ray direction. Find the width Xs of the information. Ys is similarly determined for the Y axis.

2×2 X2 このようにして求めた情報の幅を原点の座標Xa、Ya
に加えることによって情報の基準の座標を求める。
2×2 X2 The width of the information obtained in this way is the coordinate of the origin
Find the coordinates of the information reference by adding to .

Xnm=Xa+n・Xs、Ynm=Ya+m帝Ys −
(3)しかしながら、このような手法を採用しながら情
報要素のビット数を増加していくと、情報要素の位置検
出誤差が多くなり、16X16ビツト程度にまでなると
、前記した情報要素の位置検出精度として良好な値が得
られなくなる。
Xnm=Xa+n・Xs, Ynm=Ya+m Emperor Ys −
(3) However, if the number of bits of the information element is increased while adopting such a method, the position detection error of the information element will increase, and when it reaches about 16 x 16 bits, the position detection accuracy of the information element described above will increase. As a result, good values cannot be obtained.

なお、前記したごとき情報要素の位置検出誤差は、位置
検出基準となる検出点が少ないために生じるもので、基
準となる検出点を増加させることによってその位置検出
精度を改良することができる。
Note that the position detection error of the information element as described above occurs because there are few detection points that serve as position detection references, and the position detection accuracy can be improved by increasing the number of reference detection points.

そこで、本発明では、前記外枠の一部として、黒点と白
点とを交互に置き、黒点の位置を測定することにより、
情報の位置をより確正に求めるようにしたものである。
Therefore, in the present invention, by placing black points and white points alternately as part of the outer frame and measuring the position of the black points,
This allows the location of information to be determined more accurately.

〔実施例〕〔Example〕

以下、本発明を、第1図〜第6図の一実施例にもとづい
て説明すると、第1図には、本発明の漢字認識方式に用
いる情報要素コードが示されている。
Hereinafter, the present invention will be described based on one embodiment of FIGS. 1 to 6. FIG. 1 shows information element codes used in the kanji recognition system of the present invention.

第1図において、■は黒点、口は白点、Oは1ビツトの
情報で1のときは■、0のときは口となる。a、b、c
、dの4点で囲まれた部分が情報要素であり、Oが16
X16個並んでいるので、16X16ビツトの情報量を
持っていることがわかる。また、情報要素の上辺と左辺
には、外枠の替わりに、黒点■と白点口とが交互に並ん
でいる。
In FIG. 1, ■ is a black dot, the mouth is a white dot, and O is 1-bit information; when it is 1, it is ■, and when it is 0, it is a mouth. a, b, c
, d is the information element, and O is 16
Since X16 pieces are lined up, it can be seen that the amount of information is 16x16 bits. Furthermore, instead of an outer frame, black dots and white dots are alternately arranged on the top and left sides of the information element.

なお、情報要素の下辺と右辺には、白点口があり、この
白点は隣接する情報要素との境界を示している。
Note that there are white dots on the bottom and right sides of the information element, and these white dots indicate boundaries between adjacent information elements.

第2図は本発明方式に用いられる漢字認識装置の全体構
成を示すブロック図である。
FIG. 2 is a block diagram showing the overall configuration of a kanji recognition device used in the method of the present invention.

第2図において、漢字コードをプリントする場合は、メ
モリ103のコード部103−2に記憶されている漢字
コードを、制御部102がメモリプログラム部103−
1に記憶されているプログラムを実行することによって
読み出し、かつイメージメモリ101上に、前記漢字コ
ードに相当するパターンを発生し、この漢字コードに相
当するパターンを、通信部104を介し、プリンタ10
5に送ることによってプリントする。
In FIG. 2, when printing a kanji code, the control unit 102 prints the kanji code stored in the code section 103-2 of the memory 103 in the memory program section 103-2.
1, a pattern corresponding to the kanji code is read out by executing a program stored in the printer 101, and a pattern corresponding to the kanji code is generated on the image memory 101.
5 to print.

一方、漢字コードを認識する場合は、紙に記録されたコ
ードをイメージスキャナ100で検出し、通信部104
により、イメージメモリ101に転送して記憶する。そ
して、このコードを、制御部102がプログラム部10
3−1に記憶されているプログラムを実行することによ
って認識し、その結果を、コード部103−2に記憶す
る。
On the other hand, when recognizing a kanji code, the image scanner 100 detects the code recorded on paper, and the communication unit 104 detects the code recorded on paper.
The image is transferred to the image memory 101 and stored. Then, the control unit 102 transfers this code to the program unit 10.
The recognition is performed by executing the program stored in 3-1, and the result is stored in the code section 103-2.

ここで、第2図に示す漢字認識装置を用いてコードをプ
リントする場合の手順についてさらに詳述すると、従来
方式では、漢字をプリントする場合、メモリコード部か
ら漢字コードを読み、この漢字コードから、漢字パター
ンを記憶している漢字ROMのアドレスを求め、漢字R
OMに記憶されているパターンを読み出して、これをプ
リンタ105に転送することにより、プリントをおこな
うようにしている。これに対し、第2図に示す漢字認識
装置を用いてコードをプリントする場合は。
Here, to explain in more detail the procedure for printing a code using the kanji recognition device shown in Figure 2, in the conventional method, when printing kanji, the kanji code is read from the memory code section, and from this kanji code. , find the address of the kanji ROM that stores the kanji pattern, and write the kanji R.
Printing is performed by reading out the pattern stored in the OM and transferring it to the printer 105. On the other hand, when printing a code using the kanji recognition device shown in FIG.

漢字コードによってパターンが決まるので、従来方式の
漢字ROMに相当するものは不要である。
Since the pattern is determined by the Kanji code, there is no need for anything equivalent to the conventional Kanji ROM.

第3図〜第5図に漢字コードから直接漢字コードに相当
するパターンを発生するためのフローチャートが示され
ており、なお第3図〜第5図において、情報要素は第1
図に示すごとく、16x16ビツトの情報で構成されて
おり、各情報ビットは、4×4ドツトの画素で構成され
ているものとする。また、情報要素は、枠も含めて、(
16+2)x4=72ドツト、すなわち、72ドツト×
72ドツト構成であり、この容量を第2図のイメージメ
モリ101の中に確保し、アドレスは、X座標O〜71
、Y座標0〜71で表わし、各点の状態は、I (X+
 y)で表わし、0は白点、1は黒点であり、口(xt
w yl: X2y yz)は、(xt+ yx)点と
(x2. yz)点を対角上の頂点とする長方形の内部
の点を示し、口(xl、yl:X2.yz)=1は、7
1〜12行のXi〜X2列にある点全てを1にするとい
うことを表わす。
Figures 3 to 5 show flowcharts for generating a pattern directly corresponding to a kanji code from a kanji code. In Figures 3 to 5, the information element is
As shown in the figure, it is assumed that the information is composed of 16x16 bits of information, and each information bit is composed of 4x4 dot pixels. In addition, information elements, including frames, (
16+2)x4=72 dots, i.e. 72 dots x
It has a 72-dot configuration, and this capacity is secured in the image memory 101 shown in FIG.
, Y coordinates 0 to 71, and the state of each point is I (X+
y), 0 is a white point, 1 is a black point, and the mouth (xt
wl: 7
This indicates that all points in columns Xi to X2 in rows 1 to 12 are set to 1.

第3図において、漢字コードを認識する場合は、まず、
全てのコードを0にクリアし、外枠のパターンを作る。
In Figure 3, when recognizing a kanji code, first,
Clear all codes to 0 and create an outer frame pattern.

そのフローチャートを、ステップ200として第4図に
示し、コード上辺と左辺にそれぞれ8個づつ黒の情報ビ
ットを置いている。
The flowchart is shown in FIG. 4 as step 200, and eight black information bits are placed on each of the upper and left sides of the code.

第3図に戻って、次に、プリントすべき漢字コ−ドを1
個読み取り、これを1列分のパターンとして変換する。
Returning to Figure 3, next select the kanji code to be printed.
This is read and converted as a pattern for one column.

プリントすべき漢字コードを1個読み取って1列分のパ
ターンに変換するフローチャートを、ステップ300と
して第5図に示す。
A flowchart for reading one Kanji code to be printed and converting it into a pattern for one column is shown in FIG. 5 as step 300.

第3図に戻って、次に、また漢字コード1個を読み取り
、1列分のパターンに変換する。そして、前記したステ
ップを16列分繰り返して1情報要素分のパターンを作
り、前記のようにして作ったパターンをプリンタ105
に送ってプリントすることにより、所要とするコードを
プリントすることができる。
Returning to FIG. 3, next, one kanji code is read again and converted into a pattern for one column. Then, repeat the steps described above for 16 columns to create a pattern for one information element, and print the pattern created as described above to the printer 105.
You can print the required code by sending it to .

第6図は漢字コードを読み取る場合のフローチャートで
ある。
FIG. 6 is a flowchart for reading Kanji codes.

漢字コードを読み取るためには、各情報の位置を求める
必要があるが、それは、コード上辺および左辺の各黒点
の左上隅の座標を読み取ることにより求める。
In order to read the Kanji code, it is necessary to find the position of each piece of information, which is found by reading the coordinates of the upper left corner of each black dot on the top and left sides of the code.

そして、第6図において、漢字コードを読み取る場合は
、最初に第1図のa点、つまりコード左上隅のビットを
さがす。すなわち、4ドツト×4ドツトの範囲で、少な
くとも9点以上が黒である最左、最上の点としてa点を
求める。次に、これを基準として、右方向に移動しなが
ら、コード上辺の黒点8個をさがし、その左上隅の座標
を求める。なお、コード上辺の黒点の左上隅の座標をX
 n HO+ yn HO(この場合はnは偶数)とし
、黒点は1つおきにあるので、その中点より、白点の左
上隅の座標を次のように求める。
In FIG. 6, when reading a Kanji code, first search for point a in FIG. 1, that is, the bit in the upper left corner of the code. That is, in the range of 4 dots x 4 dots, point a is determined as the leftmost and topmost point where at least 9 points are black. Next, using this as a reference, move to the right while searching for eight black dots on the upper side of the code, and find the coordinates of their upper left corner. In addition, the coordinates of the upper left corner of the black point on the upper side of the code are
Since n HO+ yn HO (in this case, n is an even number) and there are black points every other black point, the coordinates of the upper left corner of the white point are determined from the midpoint as follows.

X nl o  Xn”2.。X nl o Xn”2..

X n −I HO=□      ・・・(4)次に
、コード上辺において、右隣の点との座標の差を求めて
表を作っておく。
X n −I HO=□ (4) Next, on the upper side of the code, calculate the difference in coordinates with the point on the right and create a table.

d Xn= Xo、 o −X、−t、 o     
   ・・・(5)d Yn” Yn) OYn−++
 O・−(6)誤差がないとき、前記dXnは4、dY
nは0のはずである。
d Xn= Xo, o -X, -t, o
...(5)d Yn" Yn) OYn-++
O・-(6) When there is no error, the above dXn is 4, dY
n should be 0.

そして、このようにして求めた右隣の点との座標の差を
、左辺の点の座標に加えて、1列づつ各情報点の座標を
求める。
Then, the coordinate difference with the point on the right side obtained in this way is added to the coordinates of the point on the left side, and the coordinates of each information point are obtained one column at a time.

Xnt 、= xn−t、 m + dXn     
  ・++ (7)Yn、 、=Yn−1,m+d Y
n        =・(8)各列のスタートは、左辺
のビットの座標XO1m)Yo、lIであるが、これに
2いては、XO,O,yO,Oを基準にして、順次下の
黒点をさがすことにより求める。また、白点の座標検出
は、(4)式と同様の手法で求める。
Xnt, = xn-t, m + dXn
・++ (7) Yn, , = Yn-1, m+d Y
n =・(8) The start of each column is the coordinates of the bits on the left side, XO1m)Yo, lI. Find by. Furthermore, the coordinates of the white point are detected using a method similar to equation (4).

しかして、前記のようにして位置を求めた各ビットの1
6X16ドツトの画素に黒が多ければ1、少なければO
として、各列16桁の2進数を4桁づつに分け、10進
数に変換して得られる4個の数を4桁の10進数にすれ
ば、漢字コードとなり、この漢字コードを、第2図のメ
モリコード部103−2に記録する。
Therefore, 1 of each bit whose position was determined as described above.
1 if there is more black in the 6x16 dot pixels, O if there is less
If you divide each column of 16-digit binary numbers into 4-digit numbers and convert them into decimal numbers, you will get a kanji code, which is shown in Figure 2. is recorded in the memory code section 103-2.

ところで、漢字コードを読み取る場合は、情報要素の最
初の黒点である第1図a点の黒点を求めるのが第1番目
の作業であるが、コードはイメージスキャナで斜めに読
み取られるのが普通であるので、第1図a点の黒点を求
めるのが困難となりがちである。また、イメージスキャ
ナによるコードの読取りが成る程度以上斜めになってい
ると、その読取りが困難となり、斜めの程度が許容値以
内であるかどうかを判定するのが困難となりがちである
By the way, when reading a kanji code, the first task is to find the black dot at point a in Figure 1, which is the first black dot of the information element, but the code is usually read diagonally with an image scanner. Therefore, it tends to be difficult to find the black point at point a in Figure 1. Furthermore, if the code is slanted to a degree that makes it difficult for an image scanner to read the code, it becomes difficult to read the code, and it tends to be difficult to determine whether the degree of slant is within a tolerance value.

しかして、前記したごとき問題点に対応するためには、
第7図に示すように漢字コードの上部と左部に線を引き
、この線により、情報要素の最初の黒点であるa点を求
めたり、斜めの許容値を判定したりすることが容易とな
る。
However, in order to deal with the problems mentioned above,
As shown in Figure 7, lines are drawn at the top and left of the kanji code, and these lines make it easy to find point a, the first black point of an information element, and to determine the allowable diagonal value. Become.

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

本発明は以上のごときであり、本発明によれば、漢字コ
ードの外枠の一部として、黒点と白点とを交互に置き、
黒点の位置を測定することにより1つの情報要素で16
X16ビツトの情報、つまり漢字にして16字の情報を
表わすことができるコードを、イメージスキャナのよう
に大量の情報を読み取る装置によって記録密度を高くし
て、しかも、短時間のうちに正確に認識することができ
る。
The present invention is as described above, and according to the present invention, black dots and white dots are placed alternately as part of the outer frame of the kanji code,
16 in one information element by measuring the position of the sunspot
X16-bit information, that is, a code that can represent information in 16 kanji characters, can be recognized accurately in a short period of time by increasing the recording density using a device that reads large amounts of information, such as an image scanner. can do.

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

第1図〜第6図は本発明の一実施例を示し、第1図は本
発明の漢字認識方式に用いられる情報要素コードを示す
図、第2図は本発明方式に用いられる漢字認識装置の全
体構成を示すブロック図、第3図〜第5図は情報要素コ
ードをプリントする場合のフローチャート、第6図は情
報要素コードを読み取る場合のフローチャート、第7図
は本発明方式に用いられる情報要素コードの応用例を示
す図、第8図は従来のカルラコードを示す図、第9図は
イメージスキャナセンサの位置と判定結果とを示す図、
第10図は第8図に示すカルラコードのように、2×2
ビツトを情報要素とするコードにつき、情報位置を求め
る場合の方法を説明する図である。 a = d・・・情報要素の4隅の点、瓢・・・黒点、
口・・・白点、O・・・1ビツトの情報、100・・・
イメージスキャナ、101・・・イメージメモリ、10
2・・・制御部、103・・・メモリ、103−1・・
・プログラム部、103−2・・・コード部、104・
・・通信部、105・・・プリンタ。 7′4.・
1 to 6 show an embodiment of the present invention, FIG. 1 is a diagram showing information element codes used in the kanji recognition method of the present invention, and FIG. 2 is a kanji recognition device used in the kanji recognition method of the present invention. Figures 3 to 5 are flowcharts for printing information element codes, Figure 6 is a flowchart for reading information element codes, and Figure 7 is a block diagram showing the information used in the method of the present invention. A diagram showing an application example of the element code, FIG. 8 a diagram showing the conventional Carla code, and FIG. 9 a diagram showing the position of the image scanner sensor and the determination result.
Figure 10 is a 2x2 code like the Carla code shown in Figure 8.
FIG. 3 is a diagram illustrating a method for finding information positions for codes whose information elements are bits. a = d...points at the four corners of the information element, gourd...black dots,
Mouth: white dot, O: 1 bit of information, 100...
Image scanner, 101... Image memory, 10
2...Control unit, 103...Memory, 103-1...
-Program section, 103-2...Code section, 104-
...Communication Department, 105...Printer. 7'4.・

Claims (1)

【特許請求の範囲】 1、情報要素の上辺と左辺に黒点と白点を交互に配置し
、下辺と右辺に白点を配置し、この中に情報を表す点を
配置したコードを、イメージスキャナにより読み取るこ
とを特徴とする漢字認識方式。 2、特許請求の範囲第1項記載の発明において、情報要
素の情報の行数が8の倍数である漢字認識方式。 3、特許請求の範囲第2項記載の発明において、情報要
素の情報の列数が8の倍数である漢字認識方式。 4、特許請求の範囲第1項記載の発明において、情報要
素の集まりの上部と左部に、傾斜や基準点を検出するた
めの線を引いた漢字認識方式。
[Claims] 1. A code in which black dots and white dots are arranged alternately on the upper and left sides of an information element, white dots are arranged on the lower and right sides, and dots representing information are arranged within these is scanned by an image scanner. A kanji recognition method that is characterized by reading. 2. The kanji recognition method according to the invention described in claim 1, wherein the number of lines of information in the information element is a multiple of eight. 3. The kanji recognition method according to the invention described in claim 2, wherein the number of columns of information in the information element is a multiple of eight. 4. In the invention set forth in claim 1, a kanji recognition method in which lines are drawn on the top and left side of the collection of information elements to detect inclinations and reference points.
JP63014422A 1988-01-27 1988-01-27 Kanji recognizing system Pending JPH01191280A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP63014422A JPH01191280A (en) 1988-01-27 1988-01-27 Kanji recognizing system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP63014422A JPH01191280A (en) 1988-01-27 1988-01-27 Kanji recognizing system

Publications (1)

Publication Number Publication Date
JPH01191280A true JPH01191280A (en) 1989-08-01

Family

ID=11860583

Family Applications (1)

Application Number Title Priority Date Filing Date
JP63014422A Pending JPH01191280A (en) 1988-01-27 1988-01-27 Kanji recognizing system

Country Status (1)

Country Link
JP (1) JPH01191280A (en)

Similar Documents

Publication Publication Date Title
EP0277964B1 (en) Optical scanner including position sensors
US5278400A (en) Multiple threshold encoding of machine readable code
EP0299383B1 (en) Method of reading identification code sheets
KR100263734B1 (en) Two-dimensional code symbol mark decoding method
EP0125877A2 (en) Information input apparatus
US5271067A (en) Optical character recognition apparatus
JPS62553B2 (en)
JPH01191280A (en) Kanji recognizing system
JPH06125409A (en) Facsimile equipment
JP3463300B2 (en) Mark sheet and mark sheet direction detecting method and apparatus
JP2716291B2 (en) Paper information input device
JPS6130313B2 (en)
JP2967343B2 (en) Digital data recording paper
JP2787515B2 (en) Optical character reader
JP2676993B2 (en) Character reading correction device
JP3272207B2 (en) Drawing paper
JP2001126025A (en) For ocr format parameter generation method
JPH01191279A (en) Kanji recognition system
JPS6041396B2 (en) Address detection device
JP2748207B2 (en) How to read barcodes on voting tickets
JPH0417474B2 (en)
JPH03217998A (en) Method and sheet for registering external character
JPH03123988A (en) Information reproducing device
JPH07296108A (en) Method and device for recognizing character
JPS60110085A (en) Character segmenting device of optical character reader