JPH05101222A - Method and device for reading character - Google Patents

Method and device for reading character

Info

Publication number
JPH05101222A
JPH05101222A JP3287011A JP28701191A JPH05101222A JP H05101222 A JPH05101222 A JP H05101222A JP 3287011 A JP3287011 A JP 3287011A JP 28701191 A JP28701191 A JP 28701191A JP H05101222 A JPH05101222 A JP H05101222A
Authority
JP
Japan
Prior art keywords
character
character string
steel material
printed
image
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
JP3287011A
Other languages
Japanese (ja)
Inventor
Naohiko Itsunuki
直彦 五貫
Tsutomu Oki
勉 大木
Kazuhiko Miyazaki
和彦 宮崎
Masaharu Ono
政春 大野
Tatsumasa Sakami
辰正 酒見
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.)
Nippon Steel Corp
Nippon Steel Plant Designing Corp
Original Assignee
Nittetsu Plant Designing Corp
Nippon Steel 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 Nittetsu Plant Designing Corp, Nippon Steel Corp filed Critical Nittetsu Plant Designing Corp
Priority to JP3287011A priority Critical patent/JPH05101222A/en
Publication of JPH05101222A publication Critical patent/JPH05101222A/en
Pending legal-status Critical Current

Links

Landscapes

  • Character Input (AREA)

Abstract

PURPOSE:To provide a method and a device for reading characters which can read the character strings printed on a subject like the steel stock, etc., regardless of the temperature measured on the printed surface of the subject. CONSTITUTION:The character strings printed on a subject are photographed and only these character strings are binarized and extracted out of the photographed image. In this case, the threshold level of binarization is decided by the temperature of the subject. Thus the light/darkness can be properly decided when the video signals of the character strings are printed on a subject having the unfixed temperatures. Therefore it is possible to automatically deal with the difference of heating states (temperatures) and to accurately read the character strings. As a result, the character recognizing performance is improved and any resident operator is not required to read the characters painted mechanically on the end face, etc., of the steel stock. Then the working efficiency is improved.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は、鋼材の端面等の対象物
にペイント吹付け式の印字装置などで印字された文字を
読取るための方法に関し、特に表面の温度が不定な対象
物に印字された文字を好適に読取るための装置及び読取
方法に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a method for reading characters printed on a target object such as an end surface of a steel material by a paint spray type printer, and particularly to a target object whose surface temperature is indefinite. The present invention relates to an apparatus and a reading method for suitably reading a written character.

【0002】[0002]

【従来の技術】従来から、対象物の表面に印字された文
字列をカメラで撮影し、その画像の文字列の部分を2値
化して抽出し、更にこの2値データから各文字を判別す
ることにより文字列の内容を読取る文字読取装置があ
る。このような装置の一例として特開平2−15348
8号公報には、印字文字列の前後を特定のマークで囲
み、文字列のスタート、エンド、長さ及び延在方向等を
容易に認識し得るようにすることで文字読取りの汎用性
及び信頼性が向上した文字読取装置が開示されている。
2. Description of the Related Art Conventionally, a character string printed on the surface of an object is photographed by a camera, the character string portion of the image is binarized and extracted, and each character is discriminated from the binary data. There is a character reading device that reads the contents of a character string. As an example of such a device, JP-A-2-15348
In JP-A-8, by enclosing the front and rear of a printed character string with specific marks so that the start, end, length, extension direction, etc. of the character string can be easily recognized, the versatility and reliability of character reading are improved. A character reading device having improved property is disclosed.

【0003】一方、従来から鋼材を加熱するための加熱
炉入口に於ては、搬送されてきた鋼材が加熱対象の鋼材
であるか否かを、鋼材の表面に印字されたシリアル番号
などの文字列から判断していた。この時点で鋼材の表面
温度は比較的高く、かつ鋼材の種類によって温度差があ
る。
On the other hand, at the entrance of a heating furnace for heating a steel material, whether the conveyed steel material is a steel object to be heated or not is a character such as a serial number printed on the surface of the steel material. I was judging from the line. At this time, the surface temperature of the steel material is relatively high, and there is a temperature difference depending on the type of steel material.

【0004】[0004]

【発明が解決しようとする課題】この文字列の判断に上
述の如き文字読取装置を用いると良いが、一般に同じ条
件で撮影しても温度に応じて印字面の輝度が変化するた
め、例えば鋼材の種類によって文字列2値化の際の最適
な2値化の閾値レベルが異なることが知られており、従
って上述の文字読取装置のみでは温度が不定な対象物の
表面に印字された文字列の2値化は困難な場合があるこ
とから、実際には鋼材の場合オペレータが常に鋼材に印
字されたペイント文字列を読取り、判断しなければなら
ず作業効率が低下しがちであった。
Although it is preferable to use the character reading device as described above to judge the character string, the brightness of the printing surface generally changes depending on the temperature even if the image is taken under the same conditions. It is known that the optimal threshold level for binarizing a character string differs depending on the type of character string. Therefore, the character string printed on the surface of an object whose temperature is indefinite only by the character reading device described above. Since it is sometimes difficult to binarize the above, in the case of steel material, the operator must always read and judge the paint character string printed on the steel material, which tends to lower the work efficiency.

【0005】本発明は上記問題点を解消し、鋼材などの
対象物に印字された文字列をその印字面の温度によらず
読取ることができる文字読取装置及び読取方法を提供す
ることを目的としている。
An object of the present invention is to solve the above problems and to provide a character reading device and a reading method capable of reading a character string printed on an object such as steel regardless of the temperature of the printing surface. There is.

【0006】[0006]

【課題を解決するための手段】上述した目的は本発明に
よれば、表面の温度状態が不定の対象物に印字された文
字を撮影するカメラと、該カメラにより撮影された画像
から文字部分を2値データとして抽出すると共に所定の
アルゴリズムで前記文字を判別する処理装置とを有する
文字読取装置であって、前記対象物の表面温度を測定す
る温度センサを有し、前記処理装置にて前記画像から文
字部分を2値データとして抽出する際の2値化の閾値レ
ベルを前記対象物の表面温度に応じて決定することを特
徴とする文字読取装置及び表面の温度状態が不定の対象
物に印字された文字を撮影し、撮影された画像から文字
部分を2値データとして抽出し、所定のアルゴリズムで
前記文字を判別する文字読取方法に於て、前記画像から
文字部分を2値データとして抽出する際の2値化の閾値
レベルを前記対象物の表面温度に応じて決定することを
特徴とする文字読取方法を提供することにより達成され
る。
According to the present invention, the above-mentioned object is to provide a camera for photographing a character printed on an object whose surface temperature is indefinite, and a character portion from an image photographed by the camera. A character reading device having a processing device for extracting the binary data and discriminating the character by a predetermined algorithm, the device having a temperature sensor for measuring a surface temperature of the object, wherein the image is processed by the processing device. Character reading device for determining a threshold level of binarization when extracting a character portion as binary data from a character reading device and printing on an object whose surface temperature state is indefinite In a character reading method in which a captured character is photographed, the character portion is extracted as binary data from the photographed image, and the character is discriminated by a predetermined algorithm. Is achieved by providing a character reading method is characterized by determining in accordance with the binarization threshold levels in extracting as data on the surface temperature of the object.

【0007】[0007]

【作用】このように、対象物に印字された文字列を撮影
し、撮影された画像から文字列のみを2値化して抽出す
る際にその2値化の閾値レベルを対象物の温度に応じて
決定することにより、温度が不定な対象物に印字された
文字列の映像信号を2値化する際の明暗の判断が適正化
される。また、対象物に印字された文字列を撮影する際
にカメラ及び照明手段を適正位置に移動することによ
り、撮影条件を常に一定にできる。
As described above, when the character string printed on the object is photographed and only the character string is binarized and extracted from the photographed image, the threshold level of the binarization depends on the temperature of the object. The determination of brightness is optimized when the video signal of the character string printed on the object whose temperature is indefinite is binarized. Further, by moving the camera and the illumination means to appropriate positions when shooting the character string printed on the target object, the shooting conditions can be kept constant.

【0008】[0008]

【実施例】以下、本発明の一実施例について図面を参照
して詳細に説明する。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of the present invention will be described in detail below with reference to the drawings.

【0009】図1は文字読取装置の装置構成図である。
工業用カメラ1は、クレーン等により搬送される鋼材2
の端面2aに対向する位置には配設されている。この工
業用カメラ1はX軸(左右)、Y軸(前後)、Z軸(上
下)の3軸方向に移動可能なようにトラバーサ3、4、
5をもって支持されている。また、工業用カメラ1には
鋼材2の端面2aの表面温度を測定するための放射温度
計6が付設されている。工業用カメラ1と鋼材2との間
には照明装置7がY軸方向、即ち鋼材2に対して近接/
離反する方向に移動可能なようにトラバーサ8をもって
支持されている。更に、鋼材2の上方には該鋼材2の端
面2aの上記Y軸方向位置を検出するための工業用カメ
ラ9が固設されている。
FIG. 1 is a block diagram of the character reading device.
The industrial camera 1 is a steel material 2 that is transported by a crane or the like.
Is disposed at a position facing the end surface 2a of the. This industrial camera 1 has traversers 3, 4, so that it can move in three axial directions of an X axis (left and right), a Y axis (front and back), and a Z axis (up and down).
It is supported by 5. Further, the industrial camera 1 is additionally provided with a radiation thermometer 6 for measuring the surface temperature of the end surface 2a of the steel material 2. A lighting device 7 is provided between the industrial camera 1 and the steel material 2 in the Y-axis direction, that is, near the steel material 2.
It is supported by a traverser 8 so as to be movable in a separating direction. Further, an industrial camera 9 for detecting the position of the end surface 2a of the steel material 2 in the Y-axis direction is fixed above the steel material 2.

【0010】鋼材2の端面2aには、予めペイント吹き
付け式印字装置により一文字当り横5ドット、縦7ドッ
トのマトリックス文字が7文字からなる文字列10が印
字されている。この文字列10は文字の桁数、文字間
隔、文字形状、文字の印字方向並びに文字の大きさは略
同一であるが、ペイント装置のメンテナンス状態により
文字の太さや濃淡に違いが生じるものである。また各文
字の印字位置は鋼材の左右上下端から常に一定ではなく
鋼材の種類によって異なるものである。
On the end surface 2a of the steel material 2, a character string 10 consisting of 7 matrix characters each having 5 dots in the horizontal direction and 7 dots in the vertical direction is printed in advance by a paint spraying type printing device. The character string 10 has substantially the same number of digits, character spacing, character shape, character printing direction, and character size, but the thickness and shade of the character differ depending on the maintenance status of the paint device. .. The printing position of each character is not always constant from the left, right, upper and lower ends of the steel material, but differs depending on the type of steel material.

【0011】一方、両カメラ1、9は、その画像信号を
解析するための画像処理装置11に接続され、映像信号
を後記するアルゴリズムに基づき2値化して鋼材印字端
面位置計測及び文字の読取り処理を行うようになる。画
像処理装置11はコンピュータ13に接続されている。
コンピュータ13は、各トラバーサ3、4、5、8を駆
動するトラバースコントローラ14への画像処理装置1
1からの画像データに基づく工業用カメラ1及び照明装
置7の移動位置の指示、工程管理用コンピュータ15と
データのやりとり、放射温度計6からの温度信号を取込
み等を行い、当該文字読取装置を統括的に制御してい
る。
On the other hand, both cameras 1 and 9 are connected to an image processing device 11 for analyzing the image signal thereof, and the video signal is binarized based on an algorithm described later to measure the position of the end face of the steel material printed and read the character. To do. The image processing apparatus 11 is connected to the computer 13.
The computer 13 controls the traverse controller 14 that drives the traversers 3, 4, 5, 8 to the image processing apparatus 1
1 to indicate the moving positions of the industrial camera 1 and the lighting device 7 based on the image data, exchange data with the process control computer 15, take in a temperature signal from the radiation thermometer 6, etc. It is controlled comprehensively.

【0012】図2は、画像処理アルゴリズムを実行する
ための画像処理装置11の内部構成図である。工業用カ
メラ1及び工業用カメラ9は、2値化回路18に接続さ
れた信号切替部17に接続され、その処理目的によりそ
の画像データが選択的に2値化回路18に送られるよう
になっている。2値化回路18に送られた映像データは
2値化データに変換され、内部バスBを介してCPU1
9に送られ、プログラムメモリ20に記憶されたプログ
ラムに従って処理されることとなる。また、その処理結
果は表示装置21に表示されると共に入出力インタフェ
ース22を介してコンピュータ13に送られるようにな
っている。
FIG. 2 is an internal block diagram of the image processing apparatus 11 for executing the image processing algorithm. The industrial camera 1 and the industrial camera 9 are connected to the signal switching unit 17 connected to the binarization circuit 18, and the image data thereof are selectively sent to the binarization circuit 18 depending on the processing purpose. ing. The video data sent to the binarization circuit 18 is converted into binarized data, and is sent to the CPU 1 via the internal bus B.
9 and is processed according to the program stored in the program memory 20. The processing result is displayed on the display device 21 and sent to the computer 13 via the input / output interface 22.

【0013】次に本実施例における文字読取装置の作動
要領について図3及び図4のフロー図に沿って説明す
る。
Next, the operating procedure of the character reading apparatus in this embodiment will be described with reference to the flow charts of FIGS. 3 and 4.

【0014】まず、ステップ1にて鋼材2が搬送される
と、ステップ2に進み、放射温度計6をもって鋼材2の
端面2aの表面温度を測定する。そして、ステップ3に
てこの鋼材2に於ける2値化の閾値レベルを決定する。
First, when the steel material 2 is conveyed in step 1, the process proceeds to step 2, and the radiation thermometer 6 measures the surface temperature of the end surface 2a of the steel material 2. Then, in step 3, the threshold level for binarization in the steel material 2 is determined.

【0015】ここで、鋼材温度により照明など他の撮影
条件が同じであっても文字のみを浮き出させるために最
適な2値化の閾値レベルは異なる。図5に最適な2値化
の閾値レベルと鋼材温度の関係を示す。この図4に於て
横軸は図2の2値化回路18の2値化の閾値レベルであ
り、256段階のレベル設定が可能であり、2値化の閾
値レベルが高いほど映像信号の照度が高い値で2値化さ
れる。従って、放射温度計6で鋼材2の表面温度を測定
し、その鋼材温度に対応した2値化レベルをコンピュー
タ13が決定し、画像処理装置11の2値化回路18に
対して設定する。
Here, the threshold level for binarization, which is optimum for emphasizing only characters, is different depending on the temperature of the steel material even if other photographing conditions such as illumination are the same. FIG. 5 shows the relationship between the optimum threshold level for binarization and the steel material temperature. In FIG. 4, the horizontal axis represents the threshold level for binarization of the binarization circuit 18 in FIG. 2, and 256 levels of level can be set. The higher the threshold level for binarization, the higher the illuminance of the video signal. Is binarized with a high value. Therefore, the radiation thermometer 6 measures the surface temperature of the steel material 2, the computer 13 determines the binarization level corresponding to the steel material temperature, and sets it to the binarization circuit 18 of the image processing apparatus 11.

【0016】図3のステップ4〜ステップ10は工業用
カメラ1及び照明装置7の鋼材2の端面2aに対する位
置を決めるためのフローである。
Steps 4 to 10 in FIG. 3 are a flow for determining the positions of the industrial camera 1 and the illuminating device 7 with respect to the end surface 2a of the steel material 2.

【0017】ここで、鋼材2はクレーン等で測定位置に
搬送されるが、人間の操作により搬送するために鋼材2
の搬送位置は必ずしも一定ではない。また文字列10の
印字位置も鋼材2の端面2aの左右上下の縁部から必ず
しも一定ではなく、工業用カメラ1の設置位置を固定す
るとその撮影画界内に文字列10が入らないことが発生
する。そこで、図6に示すように工業用カメラ1の撮影
画界に鋼材4の文字印字位置が入るように工業用カメラ
1の位置を移動させる必要がある。また工業用カメラ1
の撮影画界に占める文字列10の幅が極力大きくなる位
置に移動することで、測定画界内の文字データの情報量
が多くなり、文字の特徴を測定する際の精度が向上す
る。
Here, the steel material 2 is conveyed to the measurement position by a crane or the like, but the steel material 2 is conveyed by human operation.
The transport position of is not always constant. Also, the printing position of the character string 10 is not always constant from the left, right, upper and lower edges of the end surface 2a of the steel material 2, and if the installation position of the industrial camera 1 is fixed, the character string 10 may not enter the shooting field. To do. Therefore, as shown in FIG. 6, it is necessary to move the position of the industrial camera 1 so that the character printing position of the steel material 4 is included in the shooting image field of the industrial camera 1. Also industrial camera 1
By moving to a position where the width of the character string 10 occupying the shooting image field is as large as possible, the information amount of the character data in the measurement image field increases, and the accuracy in measuring the characteristics of the character improves.

【0018】まず、ステップ4にて工業用カメラ1で鋼
材2の端面2aを撮影し、その映像信号を画像処理装置
11に取込み、ステップ5にて端面2a上の文字列10
のみが取り出されるような2値化処理を行い、文字列の
みを抽出する。そして、該ステップにて、図7に示すよ
うに、工業用カメラ1の撮影画界24に於ける文字列1
0のZ軸方向、即ち上下方向の輝度レベル分布からCP
U19にて文字列10の上端(Z1)、下端(Z2)を
決定すると共にX軸方向、即ち左右方向の輝度レベル分
布から、左端(X1)、右端(X2)を決定し、更に文
字列10のある領域の中心(X3,Z3)を求める。
First, in step 4, the end face 2a of the steel material 2 is photographed by the industrial camera 1, the image signal is taken into the image processing device 11, and in step 5, the character string 10 on the end face 2a.
Only the character string is extracted by performing the binarization process so that only the character string is extracted. Then, in the step, as shown in FIG. 7, the character string 1 in the photographing field 24 of the industrial camera 1
0 from the Z-axis direction, that is, the brightness level distribution in the vertical direction,
U19 determines the upper end (Z1) and the lower end (Z2) of the character string 10, determines the left end (X1) and the right end (X2) from the brightness level distribution in the X-axis direction, that is, the horizontal direction, and further determines the character string 10 The center (X3, Z3) of a certain area is calculated.

【0019】次のステップ6では、工業用カメラ1のY
軸方向即ち前後方向位置を決定するために、鋼材2の端
面2aの上部から工業用カメラ9で鋼材2を撮影する。
その映像信号を画像処理装置11に取込み、2値化処理
を行って図8に示すように、工業用カメラ9の撮影画界
25に於ける鋼材2の画像のみを抽出し、その画像のY
軸方向の輝度レベル分布からCPU19にて鋼材端部の
Y座標(Y1)を決定する。
In the next step 6, Y of the industrial camera 1 is set.
In order to determine the axial direction, that is, the front-back direction position, the steel material 2 is photographed by the industrial camera 9 from above the end surface 2a of the steel material 2.
The video signal is taken into the image processing device 11 and binarized to extract only the image of the steel material 2 in the photographing field 25 of the industrial camera 9 as shown in FIG.
The CPU 19 determines the Y coordinate (Y1) of the steel material end portion from the brightness level distribution in the axial direction.

【0020】次にステップ7に進み、コンピュータ13
により上記各座標X3、Y1、Z3と工業用カメラ1の
現在位置とから、工業用カメラ1の撮影画界24に占め
る文字列10の画像幅ができる限り大きくなるような工
業用カメラ1の位置として最適な座標(X3,Y1−
β,Z3)を決定する。ここで、βはコンピュータ13
により演算された工業用カメラ9と鋼材2との最適な間
隔である。次のステップ8では、上述のように求められ
た工業用カメラ1の最適な座標(X3,Y1−β,Z
3)データを基にコンピュータ13はトラバーサコント
ローラ14を介してトラバーサ3、4、5を駆動して文
字列10を最適な撮影画界でとらえることができる位置
に工業用カメラ1を移動する。
Next, in step 7, the computer 13
From the coordinates X3, Y1, Z3 and the current position of the industrial camera 1, the position of the industrial camera 1 in which the image width of the character string 10 occupying the shooting field 24 of the industrial camera 1 becomes as large as possible. Optimal coordinates as (X3, Y1-
β, Z3) is determined. Where β is the computer 13
The optimum distance between the industrial camera 9 and the steel material 2 calculated by In step 8, the optimum coordinates (X3, Y1-β, Z of the industrial camera 1 obtained as described above are calculated.
3) Based on the data, the computer 13 drives the traversers 3, 4, 5 via the traverser controller 14 to move the industrial camera 1 to a position where the character string 10 can be captured in the optimum shooting image field.

【0021】一方、照明装置7は鋼材2の端面2aを照
明し、該端面2aにペイントされた文字列10を浮かび
上がらせるための照明であるが、図9に示すように照明
装置7は鋼材2の斜め下から鋼材2の端面2aを照明し
ている。その際、照明装置7は端面2aが撮影に最適な
照度となる位置に配置する必要がある。この照明位置が
端面2aから遠過ぎる場合(A)は、端面2aの上側部
分が明るくなることで、工業用カメラ1で撮影された映
像信号を2値化した場合に、端面2aの文字列10以外
の上端部分にノイズが発生する。また、逆に照明位置が
端面2aに近過ぎる場合(B)は、端面2aの下側部分
が明るくなることで、工業用カメラ1で撮影された映像
信号を2値化した場合に、端面2aの文字列10以外の
下端部分にノイズが発生する。
On the other hand, the illuminating device 7 is for illuminating the end face 2a of the steel material 2 and making the character string 10 painted on the end face 2a stand out. As shown in FIG. The end surface 2a of the steel material 2 is illuminated from diagonally below. At that time, the illumination device 7 needs to be arranged at a position where the end face 2a has the optimum illuminance for photographing. When this illumination position is too far from the end face 2a (A), the upper part of the end face 2a becomes bright, and when the video signal captured by the industrial camera 1 is binarized, the character string 10 Noise is generated at the upper end except for. On the contrary, when the illumination position is too close to the end face 2a (B), the lower part of the end face 2a becomes bright, so that the end face 2a can be converted when the video signal captured by the industrial camera 1 is binarized. Noise is generated at the lower end portion other than the character string 10.

【0022】そこで、図3のフローに於けるステップ9
にて鋼材端部のY座標(Y1)を使用し、コンピュータ
13で照明装置7の最適な位置(Y1−α)を求め、ス
テップ10にてこのデータを基にコンピュータ13はト
ラバーサコントローラ14を介してトラバーサ8を駆動
し、照明装置7を最適照明位置(Y1−α)へ移動す
る。そしてステップ11にて以下に述べる文字読取りア
ルゴリズムに基づくフロー(図4)により鋼材2の端面
2aの文字を読取ることとなる。
Therefore, step 9 in the flow of FIG.
At step 10, the computer 13 uses the Y coordinate (Y1) of the end of the steel material to find the optimum position (Y1-α) of the lighting device 7. Based on this data, the computer 13 sends the data through the traverser controller 14. The traverser 8 is driven to move the lighting device 7 to the optimum lighting position (Y1-α). Then, in step 11, the characters on the end surface 2a of the steel material 2 are read by the flow (FIG. 4) based on the character reading algorithm described below.

【0023】次に、2値化信号から文字列、一文字毎の
文字位置を決定し、一文字毎の文字を読取り、読取り結
果の判定を行うまでのアルゴリズムを第4図に示す処理
フローに沿って説明する。
Next, the algorithm for determining the character string and the character position for each character from the binarized signal, reading the character for each character, and determining the read result is shown in FIG. explain.

【0024】まず、ステップ21にて2値化処理後の初
期画界(図10)内から7個の文字からなる文字列10
の位置(外接長方形座標)を検出し、初期ウインドウを
設定する。この初期ウインドウは左上座標を(X,
Y)、ウインドウの横幅をL、縦幅をMとするウインド
ウである。ここで、初期画界の座標単位は画像処理画素
数とし、画界左上を(0,0)、右下を(299,29
9)とする。なお初期画界内に文字列10以外の明点
(白点)が含まれている場合にはノイズと判断する。
First, in step 21, the character string 10 consisting of 7 characters is extracted from the initial image field (FIG. 10) after the binarization process.
The position (circumscribing rectangle coordinates) of is detected and the initial window is set. This initial window has the upper left coordinates (X,
Y), the horizontal width of the window is L, and the vertical width is M. Here, the coordinate unit of the initial image field is the number of image processing pixels, the upper left of the image field is (0, 0), and the lower right is (299, 29).
9). If the initial image field includes bright points (white points) other than the character string 10, it is determined to be noise.

【0025】次にステップ22〜ステップ27にて初期
ウインドウの横幅Lの補正を行う。即ち、文字列10は
一文字当り横5ドット、縦7ドットのマトリックスによ
り表現された7個の数字で構成されている。この数字が
全て同じ横幅がであればステップ21で求めた文字列の
横幅Lを7等分することで各文字のX座標が決められる
が、図11(a)、(b)、(c)に示すように、文字
「1」の横幅は他の文字に比べて短いため、文字列10
の左端、右端の一方または両方が「1」であった場合、
初期ウインドウの横幅Lが本来の文字列10の横幅より
も短くなり7等分した場合の各文字のX座標に誤差を生
じる。そこで、文字列10の左端、右端の一方または両
方が「1」であった場合には初期ウインドウの横幅Lを
補正することでこの誤差の発生を防止する。
Next, in steps 22 to 27, the width L of the initial window is corrected. That is, the character string 10 is composed of seven numbers expressed by a matrix of 5 dots horizontally and 7 dots vertically. If all of the numbers have the same width, the X coordinate of each character can be determined by dividing the width L of the character string obtained in step 21 into seven parts, as shown in FIGS. 11 (a), 11 (b) and 11 (c). As shown in, the width of the character “1” is shorter than that of other characters.
If one or both of the left and right ends of is 1,
When the horizontal width L of the initial window becomes shorter than the original horizontal width of the character string 10 and is divided into seven equal parts, an error occurs in the X coordinate of each character. Therefore, when one or both of the left end and the right end of the character string 10 is "1", the width L of the initial window is corrected to prevent the occurrence of this error.

【0026】ステップ22では、初期ウインドウから左
端の文字のみを抽出し、判別する。一文字の判定は一文
字当たりに複数個の判別ウインドウを設定し、そのウイ
ンドウ内の2値化データの横幅、縦幅、面積を測定し、
判別する。具体的に判別ウインドウを20個用いた例を
図12(a)〜(e)を参照して説明する。図12
(a)〜(e)に示すように、各数字の特徴を捉え易い
20個の判別ウインドウ(W0〜W19)を左端から一
文字分の基準幅の間にかけ、各判別ウインドウの横幅・
縦幅・面積を予め各判別ウインドウ毎に設定された各数
字(0〜9)の判定テーブルと正誤比較し、その正当数
を積算することにより、その結果が最も高い文字(数
字)を左端の文字であると認識する。また、印字不良に
よる文字の太さ、濃淡の変化に対応するため、2値化デ
ータを明点非反転モード(文字を白色、背景を黒色
(a)、(c)、(e))と明点反転モード(文字を黒
色、背景を白色(b)、(d))とに切替えて判別ウイ
ンドウの横幅・縦幅・面積を測定するようになってい
る。
In step 22, only the character at the left end is extracted from the initial window and discriminated. To judge one character, set multiple judgment windows for each character and measure the width, height, and area of the binarized data in that window.
Determine. An example using 20 determination windows will be specifically described with reference to FIGS. 12
As shown in (a) to (e), 20 discrimination windows (W0 to W19) that make it easy to capture the features of each numeral are laid between the left end and a reference width of one character, and the width of each discrimination window
By comparing the vertical width and area with the judgment table of each number (0-9) set in advance for each judgment window, and accumulating the correct numbers, the character (number) with the highest result is displayed at the left end. Recognize as a character. Further, in order to deal with the change in the thickness and shade of the character due to the printing failure, the binarized data is written in the bright point non-inversion mode (the character is white and the background is black (a), (c), (e)). The point inversion mode (characters are black, background is white (b), (d)) is switched to measure the width, height and area of the discrimination window.

【0027】この左端文字の判定では、ステップ21で
求めた初期ウインドウより例えば30%(実際には任意
の量であって良い)左側の位置よりステップ22の判定
を行い、各判別ウインドウ(W0〜W19)を1画素ず
つ右にシフトしながら同様な判定を例えば16回(実際
には任意の回数であって良い)行い、正当数の積算結果
が最高となった文字(数字)を左端文字とし、その位置
を左端位置とする。
In the determination of the leftmost character, the determination in step 22 is performed from the position on the left side of, for example, 30% (actually any amount may be used) from the initial window obtained in step 21, and each determination window (W0-W0). W19) is shifted to the right one pixel at a time, and the same judgment is performed 16 times (actually, it may be any number of times), and the character (number) with the highest legal result is set as the leftmost character. , That position is the leftmost position.

【0028】そして、ステップ23に進み、左端文字が
「1」であるか否かを判別し、左端文字が「1」の場合
には左端文字の文字幅が本来の文字幅よりも狭くなって
いることから、図11(a)に示すように、その左端位
置を設定値XL画素分、左側に補正する(ステップ2
4)。
Then, in step 23, it is judged whether or not the leftmost character is "1". If the leftmost character is "1", the character width of the leftmost character is narrower than the original character width. Therefore, as shown in FIG. 11A, the left end position is corrected to the left by the set value XL pixels (step 2).
4).

【0029】次に、ステップ25に進み、上記と同様に
して右端の文字判定を行う。即ち、初期ウインドウの右
端から一文字分の基準幅の間に上記20個の判別ウイン
ドウをかけ、各判別ウインドウの横幅・縦幅・面積を上
記判定テーブルと正誤比較し、その正当数を積算するこ
とにより、その結果が最も高い文字(数字)を左端の文
字であると認識する。また、この右端文字の判定では、
ステップ21で求めた初期ウインドウより例えば30%
右側の位置よりステップ25の判定を行い、各判別ウイ
ンドウを1画素ずつ左にシフトしながら同様な判定を1
6回行い、正当数の積算結果が最高となった文字(数
字)を右端文字とし、その位置を右端位置とする。
Next, in step 25, the rightmost character is determined in the same manner as above. That is, the above 20 judgment windows are applied between the right edge of the initial window and the reference width for one character, and the width, height, and area of each judgment window are compared with the above-mentioned judgment table, and the correct numbers are added. Recognizes that the character (number) with the highest result is the leftmost character. Also, in the judgment of the rightmost character,
30% from the initial window calculated in step 21
The determination in step 25 is performed from the position on the right side, and the same determination is performed 1 while shifting each determination window to the left by one pixel.
The character (number) having the highest result of accumulating the legal number 6 times is set as the rightmost character, and that position is set as the rightmost position.

【0030】そして、ステップ26に進み、右端文字が
「1」であるか否かを判別し、右端文字が「1」の場合
には右端文字の文字幅が本来の文字幅よりも狭くなって
いることから、図11(b)に示すように、その右端位
置を設定値XR画素分、右側に補正する(ステップ2
7)。従って、例えば左右両端の文字が共に「1」であ
った場合、図11(c)に示すように、初期ウインドウ
から左右の幅をXL及びXRだけ補正することとなる。
Then, in step 26, it is judged whether or not the rightmost character is "1". If the rightmost character is "1", the character width of the rightmost character is narrower than the original character width. Therefore, as shown in FIG. 11B, the right end position is corrected to the right by the set value XR pixels (step 2).
7). Therefore, for example, when the characters on both the left and right ends are both "1", the left and right widths from the initial window are corrected by XL and XR as shown in FIG. 11C.

【0031】次のステップ28では、上記ステップ21
〜ステップ27で決定された文字列10の左端、右端位
置より文字列10の横幅を求め、それを7等分すること
により全文字位置を決定し、既にステップ22及びステ
ップ25にて求められた左右両端の文字を除いた残りの
左から2番目から6番目までの文字を判定する。
In the next step 28, the above step 21
~ The width of the character string 10 is obtained from the left end and right end positions of the character string 10 determined in step 27, and all character positions are determined by dividing the width into seven parts, which are already obtained in step 22 and step 25. The remaining second to sixth characters from the left excluding the left and right ends are determined.

【0032】そして、ステップ29にて画像処理装置1
1の表示装置21に文字判定結果を表示する。また、判
別ウインドウの正当数が最高の文字が単独に存在しなか
った場合には判定不能としてその文字を「?」として表
示し、ステップ30に進む。
Then, in step 29, the image processing apparatus 1
The character determination result is displayed on the display device 21 of No. 1. If the character having the highest legal number in the judgment window does not exist alone, the judgment is not possible and the character is displayed as "?", And the process proceeds to step 30.

【0033】ステップ30では、画像処理装置11から
コンピュータ13に判定結果を伝送し、コンピュータ1
3はその判定結果と工程管理用コンピュータ15からの
印字文字データとを照合し、該当データがなければ異常
であると判断し、外部へアラーム信号を出力する。この
ようにコンピュ−タ13により最終的に文字判定結果と
印字文字データとを照合することで装置としての信頼性
を向上することが可能となっている。
In step 30, the determination result is transmitted from the image processing apparatus 11 to the computer 13, and the computer 1
Reference numeral 3 collates the judgment result with the print character data from the process control computer 15, and if there is no corresponding data, judges that there is an abnormality and outputs an alarm signal to the outside. As described above, the computer 13 finally collates the character determination result with the print character data, so that the reliability of the apparatus can be improved.

【0034】尚、本装置は文字以外にアルファベット、
カタカナ、記号の混在した文字列であっても、その文字
形状、文字間隔、印字方向、文字桁数が予め判明してい
るものであれば読取り可能である。
In addition to the letters, this device uses an alphabet,
Even a character string in which katakana and symbols are mixed can be read as long as its character shape, character spacing, printing direction, and character digit number are known in advance.

【0035】[0035]

【発明の効果】以上詳述したように、本発明の文字読取
装置及び読取方法によれば、対象物に印字された文字列
を撮影し、撮影された画像から文字列のみを2値化して
抽出する際にその2値化の閾値レベルを対象物の温度に
応じて決定することにより、温度が不定な対象物に印字
された文字列の映像信号を2値化する際の明暗の判断が
適正化されることから、加熱状態(温度)の違いにも自
動的に対応し、文字列を的確に読取ることが可能とな
り、文字認識に於ける識別性が向上し、鋼材の端面等に
機械式にペイントされた文字を読取るための常駐オペレ
ータが不要となることから作業効率が向上する。以上の
ことから本発明の効果は大である。
As described in detail above, according to the character reading device and the reading method of the present invention, a character string printed on an object is photographed and only the character string is binarized from the photographed image. By determining the threshold level of the binarization according to the temperature of the object at the time of extraction, it is possible to determine whether the video signal of the character string printed on the object having an indefinite temperature is binarized. Since it is optimized, it automatically responds to the difference in heating state (temperature), it is possible to read the character string accurately, the distinguishability in character recognition is improved, and it is possible to machine on the end surface of steel materials. Work efficiency is improved because a resident operator for reading characters painted on the formula is unnecessary. From the above, the effect of the present invention is great.

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

【図1】本発明に基づく文字読取装置の一実施例を説明
する装置構成図である。
FIG. 1 is a device configuration diagram illustrating an embodiment of a character reading device according to the present invention.

【図2】画像処理アルゴリズムを実行するための画像処
理装置の構成図である。
FIG. 2 is a configuration diagram of an image processing apparatus for executing an image processing algorithm.

【図3】工業用カメラで撮影した画像の2値化の閾値レ
ベルの決定と工業用カメラ1ならびに照明装置の位置調
整を行うための処理フローである。
FIG. 3 is a processing flow for determining a threshold level for binarizing an image captured by an industrial camera and adjusting the positions of the industrial camera 1 and an illumination device.

【図4】文字読取りアルゴリズムの処理フローである。FIG. 4 is a processing flow of a character reading algorithm.

【図5】鋼材温度と最適な2値化の閾値レベルとの対応
グラフである。
FIG. 5 is a graph showing a correspondence between a steel material temperature and an optimum threshold level for binarization.

【図6】文字と撮影画界との関係を示す説明斜視図であ
る。
FIG. 6 is an explanatory perspective view showing a relationship between characters and a shooting field.

【図7】鋼材の端面上の文字列の位置を検出する方法を
説明するX軸及びZ軸方向に投影した輝度レベルを示す
図である。
FIG. 7 is a diagram showing luminance levels projected in the X-axis and Z-axis directions for explaining a method of detecting the position of a character string on the end surface of a steel material.

【図8】鋼材の端面上の文字列の位置を検出する方法を
説明するX軸及びY軸方向に投影した輝度レベルを示す
図である。
FIG. 8 is a diagram showing luminance levels projected in the X-axis and Y-axis directions for explaining a method of detecting the position of a character string on the end surface of a steel material.

【図9】鋼材に対する工業用カメラ及び照明装置の位置
関係を示す模式的側面図である。
FIG. 9 is a schematic side view showing a positional relationship between an industrial camera and a lighting device with respect to a steel material.

【図10】判別する文字列に外接する初期ウインドウを
示す正面図である。
FIG. 10 is a front view showing an initial window circumscribing a character string to be discriminated.

【図11】(a)は判別する文字列の左端が「1」の時
の初期ウインドウの横幅補正量を示す説明図であり、
(b)は判別する文字列の右端が「1」の時の初期ウイ
ンドウの横幅補正量を示す説明図であり、(c)は判別
する文字列の左右両端が「1」の時の初期ウインドウの
横幅補正量を示す説明図である。
FIG. 11A is an explanatory diagram showing the width correction amount of the initial window when the left end of the character string to be discriminated is “1”;
(B) is an explanatory view showing the width correction amount of the initial window when the right end of the character string to be discriminated is "1", and (c) is the initial window when the left and right ends of the character string to be discriminated are "1". It is explanatory drawing which shows the horizontal correction amount of.

【図12】(a)、(b)、(c)、(d)、(e)
は、判別する文字列の一文字に対する判別ウインドウの
設定位置を示す説明図である。
FIG. 12 (a), (b), (c), (d), (e).
FIG. 4 is an explanatory diagram showing a setting position of a discrimination window for one character of a character string to be discriminated.

【符号の説明】[Explanation of symbols]

1 工業用カメラ 2 鋼材 2a 端面 3、4、5 トラバーサ 6 放射温度計 7 照明装置 8 トラバーサ 9 工業用カメラ 10 文字列 11 画像処理装置 13 コンピュータ 14 トラバースコントローラ 15 工程管理用コンピュータ 17 信号切替部 18 2値化回路 19 CPU 20 プログラムメモリ 21 表示装置 22 入出力インタフェース 24、25 工業用カメラの撮影画界 1 Industrial Camera 2 Steel 2a End Face 3, 4, 5 Traverser 6 Radiation Thermometer 7 Lighting Device 8 Traverser 9 Industrial Camera 10 Character String 11 Image Processing Device 13 Computer 14 Traverse Controller 15 Process Control Computer 17 Signal Switching Unit 18 2 Quantization circuit 19 CPU 20 Program memory 21 Display device 22 Input / output interface 24, 25 Shooting field of industrial camera

───────────────────────────────────────────────────── フロントページの続き (72)発明者 宮崎 和彦 北九州市戸畑区大字中原46−59 日鐵プラ ント設計株式会社内 (72)発明者 大野 政春 北九州市戸畑区飛幡町1番1号 新日本製 鐵株式会社八幡製鐵所内 (72)発明者 酒見 辰正 北九州市戸畑区飛幡町1番1号 新日本製 鐵株式会社八幡製鐵所内 ─────────────────────────────────────────────────── ─── Continuation of the front page (72) Inventor Kazuhiko Miyazaki 46-59 Nakahara, Tobata-ku, Kitakyushu City Nippon Steel Plant Design Co., Ltd. (72) Inventor Masaharu Ono No. 1 Tobata-cho, Kitakyushu Steel Works Yawata Works (72) Inventor Tatsumasa Satomi 1-1, Hibahata-cho, Tobata-ku, Kitakyushu City Nippon Steel Co., Ltd. Yawata Works

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】 表面の温度状態が不定の対象物に印字
された文字を撮影するカメラと、該カメラにより撮影さ
れた画像から文字部分を2値データとして抽出すると共
に所定のアルゴリズムで前記文字を判別する処理装置と
を有する文字読取装置であって、 前記対象物の表面温度を測定する温度センサを有し、 前記処理装置にて前記画像から文字部分を2値データと
して抽出する際の2値化の閾値レベルを前記対象物の表
面温度に応じて決定することを特徴とする文字読取装
置。
1. A camera for photographing a character printed on an object whose surface temperature state is indefinite, a character portion is extracted as binary data from an image photographed by the camera, and the character is extracted by a predetermined algorithm. A character reading device having a processing device for determining, which has a temperature sensor for measuring a surface temperature of the object, and is a binary value when the processing device extracts a character portion from the image as binary data. A character reading device, wherein a threshold level of conversion is determined according to a surface temperature of the object.
【請求項2】 前記文字の印字面と前記印字面を撮影
するカメラとの間隔及び前記文字の印字面と前記印字面
の照明手段との間隔を測定する測定手段と、 前記測定手段の測定結果に基づき撮影時に前記カメラ及
び前記照明手段を前記印字面に対する最適な撮影位置に
移動させる搬送手段とを更に有することを特徴とする請
求項1に記載の文字読取装置。
2. A measuring means for measuring a distance between the character printing surface and a camera for photographing the printing surface and a distance between the character printing surface and an illuminating means for the printing surface, and a measurement result of the measuring means. 2. The character reading device according to claim 1, further comprising a conveying unit that moves the camera and the illuminating unit to an optimum photographing position with respect to the print surface based on the above.
【請求項3】 表面の温度状態が不定の対象物に印字
された文字を撮影し、撮影された画像から文字部分を2
値データとして抽出し、所定のアルゴリズムで前記文字
を判別する文字読取方法に於て、 前記画像から文字部分を2値データとして抽出する際の
2値化の閾値レベルを前記対象物の表面温度に応じて決
定することを特徴とする文字読取方法。
3. A character printed on an object whose surface temperature is indefinite is photographed, and a character portion is photographed from the photographed image.
In the character reading method for extracting the character data from the image as binary data, the threshold level of binarization is used as the surface temperature of the object. A method for reading characters, which is determined according to the method.
JP3287011A 1991-10-07 1991-10-07 Method and device for reading character Pending JPH05101222A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3287011A JPH05101222A (en) 1991-10-07 1991-10-07 Method and device for reading character

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3287011A JPH05101222A (en) 1991-10-07 1991-10-07 Method and device for reading character

Publications (1)

Publication Number Publication Date
JPH05101222A true JPH05101222A (en) 1993-04-23

Family

ID=17711876

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3287011A Pending JPH05101222A (en) 1991-10-07 1991-10-07 Method and device for reading character

Country Status (1)

Country Link
JP (1) JPH05101222A (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5888606A (en) * 1981-11-20 1983-05-26 Daido Steel Co Ltd Diameter measuring device for high-temperature body
JPH02153488A (en) * 1988-12-06 1990-06-13 Toshiba Corp Marking character reader

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5888606A (en) * 1981-11-20 1983-05-26 Daido Steel Co Ltd Diameter measuring device for high-temperature body
JPH02153488A (en) * 1988-12-06 1990-06-13 Toshiba Corp Marking character reader

Similar Documents

Publication Publication Date Title
US6128420A (en) Data symbol reading system
JP3516144B1 (en) Optical information code reading method and optical information code reader
US7916893B2 (en) Image processing apparatus, image processing method, and program
US7900840B2 (en) Methods and apparatus for directing bar code positioning for imaging scanning
JPH07302304A (en) Apparatus for analysis of character of image
JP4574503B2 (en) Image processing apparatus, image processing method, and program
JP2000067247A (en) Image recognizing device
JP2000193601A (en) Surface defect inspecting device
JPH0512487A (en) Optical recognizing system and recognizing method of bar code character
JPH11316794A (en) Method for reading and deciding segment information
US5038391A (en) Optical character reader
CN110610473B (en) Image processing apparatus, image processing method, and computer-readable storage medium
KR0181353B1 (en) Method and device for position recognition
JPH05101222A (en) Method and device for reading character
JPH05101224A (en) Character reading method
JP4100273B2 (en) Two-dimensional code reading method and two-dimensional code reading apparatus
JPH05290293A (en) Vehicle head detector
JP2006229685A (en) Distortion determination device for business form
JPH11120286A (en) Character reader and managing method for steel billet
JP2001307017A (en) Character plate recognizing device
WO2015170604A1 (en) Color measurement device and color measurement method
JPH0781962B2 (en) Foreign object detection method
JP2001229339A (en) Barcode reader
JP4810995B2 (en) Image processing apparatus, method, and program
JPH0676112A (en) Character reading method