JPS61163474A - Control device for optimizing character recognizing - Google Patents

Control device for optimizing character recognizing

Info

Publication number
JPS61163474A
JPS61163474A JP60004467A JP446785A JPS61163474A JP S61163474 A JPS61163474 A JP S61163474A JP 60004467 A JP60004467 A JP 60004467A JP 446785 A JP446785 A JP 446785A JP S61163474 A JPS61163474 A JP S61163474A
Authority
JP
Japan
Prior art keywords
character
detected
binary level
image
control device
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
JP60004467A
Other languages
Japanese (ja)
Inventor
Takehiko Okuda
奥田 武彦
Mamoru Yoshida
吉田 衛
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Toyota Motor Corp
Original Assignee
Toyota Motor 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 Toyota Motor Corp filed Critical Toyota Motor Corp
Priority to JP60004467A priority Critical patent/JPS61163474A/en
Publication of JPS61163474A publication Critical patent/JPS61163474A/en
Pending legal-status Critical Current

Links

Landscapes

  • Character Input (AREA)
  • Character Discrimination (AREA)

Abstract

PURPOSE:To read always a character by an optimum binary level, to decrease an erroneous recognition and to improve a recognizing ratio by providing a reading object thickness detecting circuit, a binary level correcting circuit and a binary level correcting table. CONSTITUTION:A reading object character 2 of a frame 1 is picked up with an ITV camera 3, the value in which the numerical value of the picked-up picture 4 and the duplex level are analogized by a D/A converter 5, is compared by a comparator 6, and a binary picture 7 is stored in a frame memory 8. Next, a character composite element is detected through a reference point detecting circuit 9 at a reading object thickness detecting circuit 12 by the optimum thickness and when the number of picture elements except it is detected, a binary level correcting circuit 13 is operated. Namely, when the number of five picture elements or above is detected, a binary level is lowered through a binary level correcting table 14, and when the number of five picture elements or below is detected, the binary level is raised. Namely, the character can be always read by the optimum binary level, the erroneous recognition can be decreased, and the recognizing ratio can be improved.

Description

【発明の詳細な説明】 (産業上の利用分野) 本発明は文字認識を行う場合に最適な判別値がえられる
よう制御する装置に関するものである。
DETAILED DESCRIPTION OF THE INVENTION (Field of Industrial Application) The present invention relates to a device for controlling so that an optimal discriminant value can be obtained when character recognition is performed.

(従来の技術) ラベル等にか\れた文字を読みとり、機械に認識させる
には、従来次のような方法が行われていた。第6図に示
すように1枠1でかこまれた読取対象文字2を、ITV
カメラ3で撮像し、その撮影画像4と、あらかじめ設定
された二値化レベルの数値をD−A変換機5によってア
ナログ化した値とをコンパレータ6で比較し、二値化し
た画像7がフレームメモリ8に格納される。
(Prior Art) Conventionally, the following method has been used to read characters written on a label or the like and have a machine recognize them. As shown in FIG.
A comparator 6 compares the photographed image 4 captured by the camera 3 with a value obtained by converting a value of a preset binarization level into an analog value by a D-A converter 5, and the binarized image 7 is a frame. It is stored in memory 8.

次に枠検出及基準点検出回路9によって、基準点(枠の
四隅及重心)が検出され、次のセグメント検出装置10
によりセグメント検出点が求められる。そのようにして
検出されたセグメントのオンかオフか罠よって、次の文
字判断装置11により、撮像された画像40文字の内容
が判断される(特許願昭59−194343参照)。
Next, the frame detection and reference point detection circuit 9 detects the reference points (the four corners and center of gravity of the frame), and the next segment detection device 10
The segment detection point is determined by Depending on whether the segment thus detected is on or off, the next character determining device 11 determines the content of the 40 characters in the imaged image (see Patent Application No. 59-194343).

この場合二値化するときの二値化レベルは、ラベルの下
地の明度、字体の明度および照度、あるいは外光に大き
く左右される。そこで従来は数種類の二値化レベルを設
定して、セレクタ16に入れておき、カメラ5から入力
した原画像40強弱値と、セレクタ16の出力値をD−
A変換機5によってアナログ化した値とを比較し、二値
化処理を行っていた。
In this case, the binarization level during binarization largely depends on the brightness of the base of the label, the brightness and illuminance of the font, or external light. Therefore, in the past, several types of binarization levels were set and entered in the selector 16, and the strength and weakness values of the original image 40 input from the camera 5 and the output value of the selector 16 were set to D-
The values converted into analog by the A converter 5 are compared and binarized.

(発明が解決しようとする問題点) しかしながら種々な条件に対応するためには、二値化レ
ベルの設定値を多数用意しておかねばならず、最適な二
値化レベルになるまで何回も二値化処理を行わなければ
ならないので、多くの時間がか\るという欠点がある。
(Problem to be solved by the invention) However, in order to respond to various conditions, it is necessary to prepare a large number of binarization level setting values, and it is necessary to prepare many setting values for the binarization level, and repeat the process many times until the optimum binarization level is reached. The disadvantage is that it takes a lot of time because binarization processing has to be performed.

またラベルを読みとるたびに設定値を変えることかわず
られしい場合、一定の設定値で読みとりをっソけると、
文字が太くなったシ細くなったシして誤認識が生ずると
いう問題があった。これを解決して常に最適な画像かえ
られるようにし、文字読みとりを確実にするのが本発明
の目的である。
Also, if you find it bothersome to change the settings each time you read a label, you can read it with a fixed setting value.
There was a problem in that erroneous recognition occurred because the characters became thicker or thinner. It is an object of the present invention to solve this problem, to always change the optimum image, and to ensure reliable character reading.

(問題点を解決するための手段) 本発明は上記の問題点を解決する手、段として、文字認
識を行う画像上に必ず存在することになる、文字構成要
素の位置を予め設定しておき、これを撮像する装置によ
って撮像し、二値化した後、その文字構成要素の変換後
の太さを検出する装置をつくり、この検出された太さが
一定値になるよう二値化レベルを補正し、前記の特定位
置の文字構成要素が、常に一定の太さになるように制御
する装置を構成する。
(Means for Solving the Problems) The present invention provides a method for solving the above problems by setting in advance the positions of character constituent elements that are necessarily present on an image for which character recognition is to be performed. After imaging this with an imaging device and binarizing it, we created a device that detects the converted thickness of the character component, and then set the binarization level so that the detected thickness becomes a constant value. A device is configured to perform correction and control so that the character component at the specific position always has a constant thickness.

(作 用) 以上のような制御装置を設けたことKよシ、ラベルの明
暗や外光の有無にか\わらず、二値化レベルは常に最適
な値になシ、文字のすべての構成要素すなわち文字全体
が、常に一定の太さとして検出できる。すなわち、その
ように文字が一定の強さで画像として出力されるので、
文字の判別にあやまりがおこることが少く、すぐれた文
字認識装置が実現されたことに表る。
(Function) By installing the above-mentioned control device, the binarization level is always at the optimum value, regardless of the brightness of the label or the presence or absence of external light, and all the compositions of the characters are controlled. The entire element, or character, can always be detected as having a constant thickness. In other words, since the characters are output as images with a certain strength,
This shows that an excellent character recognition device has been realized with fewer errors in character discrimination.

(実施例y 本発明の実施例を図によって説明する。第1図は全体の
構成図である。これは第6図の従来技術を改良したもの
で、同一部材は同一符号を以て示す。第1図において枠
1、読取対象2、ITVカメラ3、撮影画像4は第6図
と全く同じ働きをするものである。二値化レベルの数値
をD−A変換する装置5も同一であり、コンパレータ6
で、撮像画像4と比較され二値化した画像情報7が見ら
れ、フレームメモリ8に格納され、9で基準点が検出さ
れ、セグメント検出装置10によシ文字判断装置11で
文字の内容が判断されることも第6図と同様である。し
かして本実施例では読取対象として、7セグメント数字
を用い第2図(イ)のような表現となるので、すべての
数字について第2図(ロ)のaからgtでのセグメント
のうちctたはfには必ず表示セグメントが存在する。
(Example y) An example of the present invention will be explained with reference to the drawings. Fig. 1 is an overall configuration diagram. This is an improved version of the prior art shown in Fig. 6, and the same members are denoted by the same reference numerals. In the figure, the frame 1, the reading object 2, the ITV camera 3, and the photographed image 4 have exactly the same functions as in Figure 6.The device 5 for D-A converting the binary level value is also the same, and the comparator 6
At 9, the binarized image information 7 is compared with the captured image 4 and stored in the frame memory 8, the reference point is detected at 9, the character content is determined by the segment detection device 10 and the character determination device 11. The determination is also the same as in FIG. However, in this embodiment, 7-segment numbers are used as objects to be read, and the representation as shown in FIG. There is always a display segment in f.

また本実施例では、3けたの数字が用いられるが、数が
9以下のときは第2図←→のように1字しかない場合も
ある。それでも最右桁には必ず数字が存在し、従って最
右桁の7セグメントのうちCまたはfには必ず文字構成
要素が存在する。また、基準点検出回路9によって文字
の位置は正しく検知されているから、最右桁のCまたは
fの文字構成要素は確実に検知できるが、これが読取対
象太さ検出回路12で検知される。こ\では撮像画像全
体の画素数は全部で256X256個あるが、Cまたは
fKある文字構成要素を検知して見られる画素は0〜1
0〈らいの数に達するのが普通である。
Further, in this embodiment, a three-digit number is used, but when the number is 9 or less, there may be only one character as shown in Fig. 2 ←→. Even so, a number always exists in the rightmost digit, and therefore a character component always exists in C or f of the seven segments in the rightmost digit. Further, since the position of the character is correctly detected by the reference point detection circuit 9, the character component of C or f at the rightmost digit can be reliably detected, but this is detected by the reading target thickness detection circuit 12. In this case, the number of pixels in the entire captured image is 256x256 in total, but the number of pixels seen when detecting a character component of C or fK is 0 to 1.
It is normal for the number to reach 0.

この場合は5くらいの画素数を検知したときが、文字構
成要素が最適の太さで検出されたと考えてよく、それ以
外の画素数が検出されたときは、次の二値化レベル補正
回路13が働く。すなわち5以上の画素数が検知された
ときは二値化レベルを下げ、5以下の画素数が検知され
たときは、二値化レベルを上げるように制御が行われる
。この場合検出値もディジタル値であり出力もディジタ
ル値となるのでディジタル制御となるが、その制御の際
登録しておく補正テーブル14は、例えば第3図のよう
なものが用いられる。このように補正された二値化レベ
ル値て文字認識が行われ、最適な二値化レベルに達した
とき(こ\では画素数が51Cなったとき)、にラベル
の挟み取りが行われるようにする。なお二値化レベル補
正の処理過程を示す流れ図を第4図にか\げである。
In this case, when a number of pixels of about 5 is detected, it can be considered that the character component has been detected with the optimal thickness, and when any other number of pixels is detected, the next binarization level correction circuit 13 works. That is, when the number of pixels of 5 or more is detected, the binarization level is lowered, and when the number of pixels of 5 or less is detected, the binarization level is increased. In this case, since the detected value is also a digital value and the output is also a digital value, digital control is performed. For example, the correction table 14 shown in FIG. 3 is used to register for this control. Character recognition is performed using the binarization level value corrected in this way, and when the optimal binarization level is reached (in this case, when the number of pixels reaches 51C), the label is clipped. Make it. A flowchart showing the process of binarization level correction is shown in FIG.

なお読取対象文字が、セグメント数字以外の文字の場合
でも、第5図のように図中の15の場所に前記のCまた
はfの文字構成要素に相当するスポットを設け、このス
ポットの太さを検出して二値化レベルの補正を前記と同
様に行うことができる。
Even if the character to be read is a character other than a segment numeral, a spot corresponding to the character component of C or f mentioned above is provided at position 15 in the figure as shown in Figure 5, and the thickness of this spot is adjusted. It is possible to detect and correct the binarization level in the same manner as described above.

このようにして数字の場合でも文字の場合でも、最値な
二値化レベルに達したとき読みとりを行うようにするこ
とができる。
In this way, whether it is a number or a character, reading can be performed when the highest binarization level is reached.

(発明の効果) 以上説明し友ように、本発明によれば、光源の照度変化
中外乱光の影響、また下地の明度等の影響をうけること
なく、常に最適の二値化レベルで文字読取りが行われる
。そのため誤認識が威少し、認識率も向上する。ま九、
最適な二値化レベルに達する時間が早くなり、動作時間
についても有利となる。さらに設置場所の制約もゆるく
なり、ま友種々の色がラベルに使用できるため色による
指示も可能となり、ラベルの種類もふやせる等副次的な
ものについても大きな効果が期待される。
(Effects of the Invention) As explained above, according to the present invention, characters can always be read at the optimum binarization level without being affected by ambient light during changes in the illuminance of the light source or by the brightness of the background. will be held. This reduces the risk of misrecognition and improves the recognition rate. Maku,
It takes less time to reach the optimal binarization level, and the operating time is also advantageous. Furthermore, restrictions on the installation location will be relaxed, and since a wide variety of colors can be used for labels, it will be possible to indicate by color, and major effects are expected in secondary matters, such as increasing the number of types of labels.

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

第1図は本発明の構成をプaツク図的にあられした説明
図、第2図は読取対象の説明図で、(イ)は7セグメン
トによる数字の構成図、(ロ)は7セグメントの構成図
、(ハ)はラベル全体の文字構成で百の桁、十の桁がな
い場合の図、第3図は太さ検出用セグメント画素数と、
二値化レベル増分の補正テーブルを示す説明図、第4図
は読取処理および最適二値化レベル判定処理の流れ図。 第5図は7セグメント数字以外の文字を使う場合の実施
例におけるラベル面を示す1凹、第6図は従来技術によ
る文字読みとり過程のブロック図的説明図である。 1 読取対象枠     2 読取対象文字3  IT
Vカメラ 4   〃  撮影画像 5D−A変換器    6 コンパレータ7 二値化画
像     8 フレームメモリ9 基準点検出回路 10 セグメント検出回路 11 文字判断装置 12 文字構成要素太さ検出回路 13 二値化レベル補正回路 14 二値化レベル補正テーブル 箔1図 1・・・読取前本紳 2・・・ −文字 3・・・■丁Vυメラ 4・・・    ・    撮畳三画像7・・・二億化
画像涜報 第2図 (イ) ソ 第3図 第4図
Fig. 1 is an explanatory diagram showing the configuration of the present invention in a block diagram form, and Fig. 2 is an explanatory diagram of the reading target, where (a) is a diagram of the structure of numbers with 7 segments, and (b) is a diagram of the 7-segment numbers. Configuration diagram, (c) is a diagram of the character configuration of the entire label without hundreds and tens digits, and Figure 3 shows the number of segment pixels for thickness detection,
An explanatory diagram showing a correction table for binarization level increments, and FIG. 4 is a flowchart of reading processing and optimum binarization level determination processing. FIG. 5 is a 1-indentation showing a label surface in an embodiment in which characters other than 7-segment numbers are used, and FIG. 6 is a block diagram explanatory diagram of a character reading process according to the prior art. 1 Reading target frame 2 Reading target character 3 IT
V camera 4 Captured image 5D-A converter 6 Comparator 7 Binarized image 8 Frame memory 9 Reference point detection circuit 10 Segment detection circuit 11 Character judgment device 12 Character component thickness detection circuit 13 Binarization level correction circuit 14 Binarization level correction table foil 1 Figure 1... Reading front book 2... - Character 3... ■Ding Vυ Mera 4... ・ Photographed tatami 3 image 7... 200 million image blasphemy report Figure 2 (a) Figure 3 Figure 4

Claims (2)

【特許請求の範囲】[Claims] (1)文字を撮像装置によって撮影し、その画像を二値
化して、文字を認識する装置において、文字認識を行う
画像上に必ず存在することになる文字構成要素の位置を
、予め設定して撮像しうる装置と、該撮像装置により、
前記文字構成要素を撮像して二値化した後、該文字構成
要素の変換後の太さを検出する装置と、該検出装置によ
って検出された太さが一定値となるよう、二値化するレ
ベルを補正する制御装置とを備えたことを特徴とする文
字認識最適化制御装置。
(1) Characters are photographed by an imaging device, the image is binarized, and in a device that recognizes characters, the positions of character constituent elements that will always be present on the image for character recognition are set in advance. A device capable of capturing an image, and the image capturing device,
After imaging and binarizing the character component, a device for detecting the converted thickness of the character component; and a device for binarizing the character component so that the thickness detected by the detection device has a constant value. A character recognition optimization control device comprising a control device for correcting a level.
(2)特定位置の文字構成要素が撮像され二値化されて
変換された後、該文字構成要素の太さを検出する装置が
、二値化され変換された画面のセグメントの画素数を検
出するように構成したものであり、二値化レベルを補正
する制御装置は、前記セグメントの画素数が常に一定値
を保持するよう制御する装置である、特許請求の範囲第
1項記載の文字認識最適化制御装置。
(2) After a character component at a specific position is imaged, binarized, and converted, a device that detects the thickness of the character component detects the number of pixels in the binarized and converted screen segment. The character recognition device according to claim 1, wherein the control device for correcting the binarization level is a device for controlling the number of pixels of the segment to always maintain a constant value. Optimization control device.
JP60004467A 1985-01-14 1985-01-14 Control device for optimizing character recognizing Pending JPS61163474A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP60004467A JPS61163474A (en) 1985-01-14 1985-01-14 Control device for optimizing character recognizing

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP60004467A JPS61163474A (en) 1985-01-14 1985-01-14 Control device for optimizing character recognizing

Publications (1)

Publication Number Publication Date
JPS61163474A true JPS61163474A (en) 1986-07-24

Family

ID=11584927

Family Applications (1)

Application Number Title Priority Date Filing Date
JP60004467A Pending JPS61163474A (en) 1985-01-14 1985-01-14 Control device for optimizing character recognizing

Country Status (1)

Country Link
JP (1) JPS61163474A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS61201384A (en) * 1985-03-04 1986-09-06 Toyota Central Res & Dev Lab Inc Recognizing device for stamped character

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5532170A (en) * 1978-08-29 1980-03-06 Fujitsu Ltd Optimal binary system

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5532170A (en) * 1978-08-29 1980-03-06 Fujitsu Ltd Optimal binary system

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS61201384A (en) * 1985-03-04 1986-09-06 Toyota Central Res & Dev Lab Inc Recognizing device for stamped character

Similar Documents

Publication Publication Date Title
US4866629A (en) Machine vision process and apparatus for reading a plurality of separated figures
US6364209B1 (en) Data reading apparatus
CN101577831B (en) Control method and control device for starting white balance adjustment
US5841899A (en) Specific color field recognition apparatus and method
CN100516834C (en) Printed paper inspecting method and apparatus
US6135353A (en) 2-dimensional code reader
CN109543487A (en) A kind of automatic sensing triggering method and its system based on bar edges segmentation
JPS61163474A (en) Control device for optimizing character recognizing
US4259662A (en) Threshold setting circuit
KR19990077774A (en) Fingerprint image processing device and fingerprint image processing method
US20110149069A1 (en) Image processing apparatus and control method thereof
JPH1049654A (en) Signal correcting method for image fetching device
JP3636050B2 (en) Optical information reader
JP2002247557A (en) Video monitoring device
JP5825110B2 (en) Two-dimensional code reader
JPS61289476A (en) Format forming system for character reader
JP3185402B2 (en) Image processing intruder detection device
JPS6211984A (en) Picture binary coding system
JPS62219766A (en) Picture processor
JPH04219882A (en) Document reading device and character recognition device using the same
JP2003198847A (en) Method for automatically calibrating a digitizer and digitizer
JP2020154895A (en) Information processor, method for processing information, information processing program, and information processing system
JPH04268677A (en) Method and device for picture processing
JPH0757049A (en) Character recognition device
JPH0359784A (en) Character recognizing device