JPH06187492A - Character string image pickup method - Google Patents

Character string image pickup method

Info

Publication number
JPH06187492A
JPH06187492A JP4339951A JP33995192A JPH06187492A JP H06187492 A JPH06187492 A JP H06187492A JP 4339951 A JP4339951 A JP 4339951A JP 33995192 A JP33995192 A JP 33995192A JP H06187492 A JPH06187492 A JP H06187492A
Authority
JP
Japan
Prior art keywords
character string
image
camera
reference patterns
distance
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
JP4339951A
Other languages
Japanese (ja)
Inventor
Masaaki Kobayashi
正明 小林
Sorai Ou
素 莉 王
Katsuyasu Aikawa
勝保 相川
Kazutomi Tomita
一臣 富田
Mitsuo Yoshida
三男 吉田
Akio Ishiwatari
明夫 石渡
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.)
Nireco Corp
Nippon Steel Corp
Original Assignee
Nireco 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 Nireco Corp, Nippon Steel Corp filed Critical Nireco Corp
Priority to JP4339951A priority Critical patent/JPH06187492A/en
Publication of JPH06187492A publication Critical patent/JPH06187492A/en
Pending legal-status Critical Current

Links

Landscapes

  • Character Input (AREA)

Abstract

PURPOSE:To provide a method for picking up the image of a character string in the identifiable state by calculating a, distance between two reference patterns provided at a prescribed gap parallelly to the outside of the character string by means of photographic data and adjusting the position or focal distance of a photographing device so that the distance becomes a prescribed value. CONSTITUTION:The square reference patterns smaller than characters are provided just above the first character in the top line of the character string to be marked on a billet end surface 21 and just above the end character. As a reference state, the distance between a TV camera 22 and the billet end face 21 is defined as Lo, and the distance between the reference patterns provided on the TV camera 22 at such a time is defined as Ho. When the distance between the reference patterns obtained at the time of picking up the image of the character string on the billet end surface 21 for any arbitrary billet is defined as H, an image with the distance Ho between the reference patterns can be obtained on the camera 22 by changing the distance between the end surface 21 and the camera 22 just by L=Lo(1-H/Ho). Instead of moving the TV camera 22, the focal distance of the zoom lens of the TV camera 22 may be changed as well.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は文字列を読み取るための
文字列撮像方法に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a character string imaging method for reading a character string.

【0002】[0002]

【従来の技術】工場で製造中や出荷する製品にはその製
品の属性を示すマーキングをする場合が多い。このよう
なマーキングを読み取りその製品の物流管理が行われる
が、この読み取りを撮像装置で行い記載された文字列を
判別する装置が用いられている。従来の鋼材へのマーキ
ングおよび読み取りはスラブのように面の大きいものに
対して実績は多く、棒状の鋼材(以下ビレットと言う)
の場合には長手方向の面にマーキングしていたが、最近
はビレットの端面にマーキングするようになった。
2. Description of the Related Art In many cases, a product being manufactured or shipped in a factory is marked with an attribute of the product. Although such markings are read and physical distribution management of the product is performed, an apparatus is used that performs this reading by an image pickup device and determines the written character string. Conventional marking and reading on steel materials have many achievements for large surfaces such as slabs, and rod-shaped steel materials (hereinafter called billets).
In this case, the longitudinal surface was marked, but recently, the end face of the billet has been marked.

【0003】このビレットがコンベア上にその進行方向
に長さ方向を直角にして端面がコンベアの側部より見え
るような状態で流れてきており、このコンベアを一時停
止してこの端面のマーキングを読み取る作業が行なわれ
る。読み取りは撮像装置で行い、読み取った画像よりマ
ーキングされた文字の識別が行なわれる。
The billet is flowing on the conveyor in a state where the length direction is perpendicular to the traveling direction and the end face is visible from the side of the conveyor. The conveyor is temporarily stopped and the marking on the end face is read. Work is done. The reading is performed by the image pickup device, and the marked character is identified from the read image.

【0004】[0004]

【発明が解決しようとする課題】しかし、コンベアで流
れてくるビレットの端面とコンベアの側面との距離は一
定せず出入がある。このため撮像装置とビレット端面と
の距離が一定せず、カメラ焦点がずれ撮像した画像の倍
率が大きく変動して、マーキング文字の識別ができない
場合が発生する。またビレットが長さ方向にゆるやかに
ねじれている場合があり、このとき端面の正方形はコン
ベア面に対して角度△θだけ傾むいていることがある。
また、ビレットの断面がほぼ正方形のためマーキングし
た文字が90度、または180 度回転した状態でコンベアに
載っている場合がある。このためマーキングされた文字
を識別することが困難な場合が発生していた。
However, the distance between the end face of the billet flowing on the conveyer and the side face of the conveyer is not constant, and there is entrance and exit. For this reason, the distance between the imaging device and the end face of the billet is not constant, the camera is out of focus, the magnification of the imaged image fluctuates greatly, and the marking characters may not be identified. Further, the billet may be gently twisted in the length direction, and at this time, the square of the end face may be inclined by an angle Δθ with respect to the conveyor surface.
Also, since the billet has a nearly square cross section, the marked characters may be placed on the conveyor in a state rotated by 90 degrees or 180 degrees. Therefore, it has been difficult to identify the marked characters.

【0005】本発明は上述の問題点に鑑みてなされたも
ので、マーキングされた文字列を識別できる状態に撮像
する文字列撮像方法を提供することを目的とする。
The present invention has been made in view of the above problems, and an object thereof is to provide a character string imaging method for imaging a marked character string in a distinguishable state.

【0006】[0006]

【課題を解決するための手段】上記目的を達成するため
本発明は、所定の文字列を描き、この文字列の外側に平
行して所定の間隔で2個の基準パターンを設け、この文
字列を撮像装置で撮像し、この2個の基準パターン間の
距離を撮像データより演算し、この演算した距離が所定
の値となるよう前記文字列と前記撮像装置との距離又は
前記撮像装置のカメラの焦点距離を調整するようにした
ものである。
In order to achieve the above object, the present invention draws a predetermined character string, and provides two reference patterns parallel to the outside of the character string at predetermined intervals. Is imaged by the image pickup device, the distance between the two reference patterns is calculated from the image pickup data, and the distance between the character string and the image pickup device or the camera of the image pickup device is calculated so that the calculated distance becomes a predetermined value. The focal length of is adjusted.

【0007】また、矩形断面に所定の文字列を描き、こ
の文字列の外側に平行して所定の間隔で2個の基準パタ
ーンを設け、この矩形断面が正常の場合、90度、180
度、270 度それぞれ回転した場合の前記基準パターンの
4状態を記憶しておき、この矩形断面を撮像装置で撮像
し前記2個の基準パターンの配置を検出して前記4状態
のどれに当たるか判断し、前記正常の場合と異なる場合
は撮像した画像が前記正常な場合となるよう画像の回転
処理を行うようにしたものである。
Further, a predetermined character string is drawn on the rectangular cross section, and two reference patterns are provided at predetermined intervals in parallel to the outside of the character string. When the rectangular cross section is normal, 90 degrees, 180 degrees
4 states of the reference pattern when rotated by 270 degrees and 270 degrees respectively are stored, the rectangular cross section is imaged by an image pickup device, and the arrangement of the two reference patterns is detected to determine which of the 4 states is hit. However, when the image is different from the normal case, the image rotation processing is performed so that the captured image is in the normal case.

【0008】また、前記2個の基準パターンの配置を検
出した後、この2個の基準パターンの同一位置を結んだ
直線と前記撮像装置の走査線またはこの走査線と同一面
内で直交する直線との交差角△θを求め、この△θを0
とするよう画像回転を行った後前記4状態のどれに当る
か判断するようにしたものである。
After detecting the arrangement of the two reference patterns, a straight line connecting the same positions of the two reference patterns and a scanning line of the image pickup device or a straight line orthogonal to the scanning line in the same plane. Find the intersection angle Δθ with
After the image is rotated so as to determine which of the above four states is to be met.

【0009】[0009]

【作用】所定の寸法の文字列を描き、この文字列の外側
に平行して所定の間隔で2個の基準パターンを設け、こ
の文字列を撮像装置のカメラの焦点が合った状態で撮像
し、この2個の基準パターンの画像上の距離を所定の値
として記憶しておく。次にこの文字列を撮像装置で撮像
し、この2個の基準パターンの画像上の距離を演算し、
これを所定の値となるよう文字列と撮像装置との距離又
は撮像装置のカメラの焦点距離を調整すれば、この文字
列に対する撮像装置の画像入力倍率を一定に保持するこ
とができる。
A character string of a predetermined size is drawn, two reference patterns are provided in parallel to the outside of the character string at predetermined intervals, and the character string is imaged with the camera of the image pickup device in focus. , The distances of these two reference patterns on the image are stored as predetermined values. Next, this character string is picked up by an image pickup device, the distance on the image of these two reference patterns is calculated,
If the distance between the character string and the imaging device or the focal length of the camera of the imaging device is adjusted so that this becomes a predetermined value, the image input magnification of the imaging device for this character string can be held constant.

【0010】矩形断面に所定の文字列とこの文字列の外
側に平行して所定の間隔で2個の基準パターンを描き、
この矩形断面が正常の場合、90度、180 度、270 度それ
ぞれ回転した場合の基準パターンの4状態を記憶してお
く。次にこの矩形断面を撮像装置で撮像し、この2つの
基準パターンの配置が、この4状態のどれに当るか判断
して、正常な状態と異なるときは、正常な状態となるよ
う画像を回転する。これにより矩形断面が回転して配置
されている場合も、文字列を認識できるようになる。
A predetermined character string is drawn on a rectangular cross section, and two reference patterns are drawn in parallel with the outside of the character string at predetermined intervals.
If this rectangular cross section is normal, the four states of the reference pattern are stored for each rotation of 90 degrees, 180 degrees, and 270 degrees. Next, this rectangular cross section is imaged by an image pickup device, it is judged which of these four states the arrangement of these two reference patterns corresponds to, and if it is different from the normal state, the image is rotated so that it becomes the normal state. To do. As a result, the character string can be recognized even when the rectangular cross section is rotated and arranged.

【0011】2つの基準パターンを検出後、この2つの
基準パターンの同一位置、例えば重心などを結んだ直線
を求め、この直線と撮像装置の走査線またはこの走査線
と直交する直線との交差角△θを求め、この△θを0と
するように画像を回転する。これにより、90度毎の大き
な回転でなく小さな回転画像の修正も可能となる。文字
列がある角度以上傾くと文字識別が困難となるので、こ
の修正を行うものである。
After detecting the two reference patterns, a straight line connecting the same positions of the two reference patterns, for example, the center of gravity, is obtained, and a crossing angle between the straight line and a scanning line of the image pickup device or a straight line orthogonal to the scanning line. Δθ is obtained, and the image is rotated so that this Δθ becomes zero. This makes it possible to correct small rotated images instead of large rotations of 90 degrees. If the character string is tilted more than a certain angle, it becomes difficult to identify the character, so this correction is performed.

【0012】[0012]

【実施例】以下、本発明の実施例を図面を参照して説明
する。図1は本発明の実施例を実現する画像処理装置の
ブロック図である。テレビカメラ1からの入力データを
アナログからデジタルに変換するA/D変換器2、この
変換したデータを格納する入力バッファ3、バス4、入
力した画像データの構成文字を分離し、文字の識別を行
うと共に全体を制御するCPU5、画像データの画像処
理をする画像処理プロセッサ6、CPU5の動作を決め
るプログラムを格納するプログラムメモリ7、画像処理
プロセッサ6が2値化処理および濃淡処理したデータを
それぞれ格納する2値化画像メモリ8、濃淡画像メモリ
9、出力データを一旦格納する出力バッファ10、この出
力データのデジタルデータをアナログデータに変換する
D/A変換器11、出力データを表示するCRT12より構
成される。なお、テレビカメラ1は対象物方向にその位
置を調整できるよう構成されているものとする。
Embodiments of the present invention will be described below with reference to the drawings. FIG. 1 is a block diagram of an image processing apparatus that realizes an embodiment of the present invention. An A / D converter 2 for converting the input data from the TV camera 1 from analog to digital, an input buffer 3 for storing the converted data, a bus 4, and the constituent characters of the input image data are separated to identify the characters. A CPU 5 that controls the entire operation, an image processor 6 that performs image processing of image data, a program memory 7 that stores a program that determines the operation of the CPU 5, and data that has been binarized and processed by the image processor 6 to be stored. A binary image memory 8, a grayscale image memory 9, an output buffer 10 for temporarily storing output data, a D / A converter 11 for converting digital data of the output data into analog data, and a CRT 12 for displaying the output data. To be done. It is assumed that the television camera 1 is configured so that its position can be adjusted in the direction of the object.

【0013】図2は本発明の第1実施例を示す図であ
る。本実施例はビレット端面21にマーキングされた文字
を撮像装置の一例としてTVカメラ22で撮像し文字の認
識を行うに際し、ビレット端面21とTVカメラ22との距
離Lを一定にして画像入力倍率を一定に保持する方法で
ある。ビレットはコンベアで搬送されてくるが、コンベ
アに搭載する場合、コンベアの側面とビレットの端面21
との間隔はビレット毎に異っている。このためビレット
端面21にマーキングされた文字をTVカメラ22で撮像す
る場合、TVカメラ22を固定しておくと、ビレット端面
21とTVカメラ22との距離Lはビレット毎に異なり、T
Vカメラ22の画像入力倍率が変化する画像も発生する。
なお、撮像装置はイメージセンサとエンコーダの組み合
わせでもよい。
FIG. 2 is a diagram showing a first embodiment of the present invention. In the present embodiment, when the characters marked on the billet end face 21 are imaged by the TV camera 22 as an example of an image pickup device to recognize the characters, the distance L between the billet end face 21 and the TV camera 22 is kept constant and the image input magnification is increased. It is a method of keeping it constant. The billet is conveyed by the conveyor, but when it is installed on the conveyor, the side surface of the conveyor and the end surface of the billet 21
The interval between and is different for each billet. Therefore, when the TV camera 22 is used to capture the characters marked on the billet end face 21, if the TV camera 22 is fixed, the billet end face is fixed.
The distance L between the TV 21 and the TV camera 22 differs from billet to billet.
An image in which the image input magnification of the V camera 22 changes is also generated.
The image pickup device may be a combination of an image sensor and an encoder.

【0014】ビレット端面21にマーキングされる文字列
の最上行の最初の文字の直上と最後の文字の直上に文字
より小さい正方形の基準パターンを設ける。基準状態と
してTVカメラ22とビレット端面21との距離をL0 と
し、この時のTVカメラ22上に得られる基準パターン間
の距離をH0 とする。任意のビレットに対してビレット
端面21の文字列をTVカメラ2で撮像したときTVカメ
ラ22上に得られる基準パターン間の距離をHとした場
合、次式に示す△Lだけビレット端面21とTVカメラ22
との距離を変化させればTVカメラ22上には基準パター
ン間の距離がH0 の画像が得られる。 △L=L0 (1−H/H0 )…(1)
A square reference pattern smaller than a character is provided immediately above the first character and immediately above the last character of the uppermost line of the character string to be marked on the billet end face 21. As a reference state, the distance between the TV camera 22 and the billet end face 21 is L0, and the distance between the reference patterns obtained on the TV camera 22 at this time is H0. If the distance between the reference patterns obtained on the TV camera 22 when the character string on the billet end face 21 is imaged by the TV camera 2 for an arbitrary billet is H, then ΔL shown in the following equation Camera 22
If the distance between the reference patterns is changed, an image with the distance between the reference patterns H0 can be obtained on the TV camera 22. ΔL = L0 (1-H / H0) (1)

【0015】ビレット端面21とTVカメラ22との距離L
を△Lだけ調整する場合、ビレットは重量が大きく、移
動は困難なのでTVカメラ22を移動できるようにする。
なおビレット端面21のマーキング文字の撮像はコンベア
の移動をTVカメラの場合には撮像装置に対して相対的
に一時停止した状態で行う。また、△LだけTVカメラ
22を移動する代りにTVカメラ22のズームレンズの焦点
距離を変更するようにしてもよい。
Distance L between billet end face 21 and TV camera 22
When adjusting ΔL by ΔL, the billet is heavy and difficult to move, so that the TV camera 22 can be moved.
The image of the marking characters on the billet end face 21 is taken while the conveyor is being moved relative to the image pickup device in the case of a TV camera. Also, only ΔL is a TV camera
Instead of moving 22, the focal length of the zoom lens of the TV camera 22 may be changed.

【0016】図3は第1実施例および第2実施例を含ん
だ全体の動作フロー図を示す。まず図2に示した基準パ
ターンを抽出する処理を行う(ステップ30)。次にこの
基準パターンを用いてTVカメラ22の倍率が所定の倍率
となっているか調べ、なっていない場合倍率補正処理を
行う(ステップ50)。次にビレット端面21を撮像した画
像がマーキング文字が判読できるぐらい正しい位置とな
っているか調べ、なっていない場合回転補正する(ステ
ップ60)。これらの各ステップの内容は以下に詳細に説
明する。
FIG. 3 shows an overall operational flow chart including the first and second embodiments. First, the process of extracting the reference pattern shown in FIG. 2 is performed (step 30). Next, using this reference pattern, it is checked whether the magnification of the TV camera 22 is a predetermined magnification, and if not, magnification correction processing is performed (step 50). Next, it is checked whether the image of the billet end face 21 is in the correct position so that the marking characters can be read, and if not, the rotation is corrected (step 60). The contents of each of these steps will be described in detail below.

【0017】図4はステップ30の基準パターン抽出処理
のフロー図である。まず画像を入力して(ステップ3
1)、文字間結合処理を行う(ステップ32)。この文字
間結合処理方法の1つとして最大値フィルタ処理をn回
実施し、各文字を太らせて結合する方法がある。これは
対象画素を中心とした、例えば、3×3画素をとり、こ
の領域内の最大濃度値を対象画素の濃度に置き換えるも
ので、このようにすると図5に示すように各文字が太っ
てゆきn回目には各文字は各文字用のます一杯に広がっ
て結合され長方形になる。これにより文字領域を抽出す
ることができる。なお、このフィルタ処理を行うのに先
立ち、ノイズを除くため、文字の面積より小さなものは
消去する。これにより基準パターンも消える。次にシェ
ーディング補正を行う(ステップ33)。シェーディング
とは、照明の場所によるむら、レンズ領域内の明るさの
むら、マーキングインキの付着むら、マーキング背景の
ビレット面の状態の場所によるむらなどを言う。シェー
ディング補正をすることにより、文字と背景のコントラ
ストを均一にするという効果がある。
FIG. 4 is a flow chart of the reference pattern extraction processing in step 30. First, enter the image (Step 3
1), inter-character connection processing is performed (step 32). As one of the inter-character connection processing methods, there is a method in which the maximum value filter processing is performed n times, and each character is thickened and then combined. This takes, for example, 3 × 3 pixels around the target pixel, and replaces the maximum density value in this area with the density of the target pixel. By doing so, each character becomes bold as shown in FIG. At the nth time, each letter is spread out and combined into a rectangle for each letter. As a result, the character area can be extracted. Before performing this filter processing, in order to remove noise, those smaller than the character area are erased. As a result, the reference pattern also disappears. Next, shading correction is performed (step 33). Shading refers to unevenness due to the location of illumination, uneven brightness within the lens area, uneven adhesion of marking ink, unevenness due to the location of the state of the marking background billet surface, and the like. By performing the shading correction, there is an effect that the contrast between the character and the background is made uniform.

【0018】シェーディング補正した文字間結合画像を
2値化処理して文字間結合画像領域をとり出し(ステッ
プ34)、文字間結合領域にラベル付けして他と区別し
(ステップ35)、文字間結合領域を文字領域として抽出
する(ステップ36)。次にこの抽出した領域の文字配置
判定処理を行う(ステップ37)。この判定処理は文字配
置設計データに基づいて文字領域の幅から文字桁数を割
り出す処理である。図5で説明すると、一番下の長方形
の領域から、1文字のサイズがわかっているので5文字
の文字配置を判定する。
The inter-character combined image subjected to shading correction is binarized to extract the inter-character combined image area (step 34), and the inter-character combined area is labeled to distinguish it from others (step 35). The combined area is extracted as a character area (step 36). Next, a character arrangement determination process for the extracted area is performed (step 37). This determination process is a process of calculating the number of character digits from the width of the character area based on the character layout design data. Explaining with FIG. 5, since the size of one character is known from the rectangular area at the bottom, the character arrangement of five characters is determined.

【0019】このようにして各文字配置を割り出した
ら、文字領域近傍のマスキングを行う(ステップ38)。
基準パターンは最初の文字と最後の文字の近傍にあるの
でこれらの文字を含んだ領域を図6に破線で示すように
マスクする。次に基準パターンの判定処理を行う(ステ
ップ39)。
When each character arrangement is determined in this way, masking of the vicinity of the character area is performed (step 38).
Since the reference pattern is near the first character and the last character, the area containing these characters is masked as shown by the broken line in FIG. Next, reference pattern determination processing is performed (step 39).

【0020】基準パターンの判定処理の一例として、形
状係数と基準パターンの粒子面積4から求め方法を説明
する。形状係数SFとして下式のものを用いる。 SF=πL2 /(4A)…(2) Lは粒子の最大長 (2)式は粒子が円の場合1となる。基準パターンは正
方形なのでLは対角長となりSF=π/2となる。この
SFがπ/2に近いものでかつ粒子面積がAに近いもの
を求めれば基準パターンを得ることができる。このよう
にして基準パターンを得る(ステップ40)。
As an example of the determination process of the reference pattern, a method of obtaining it from the shape coefficient and the particle area 4 of the reference pattern will be described. The following formula is used as the shape factor SF. SF = πL 2 / (4A) (2) L is the maximum length of the particle (2) is 1 when the particle is a circle. Since the reference pattern is a square, L has a diagonal length and SF = π / 2. If the SF is close to π / 2 and the particle area is close to A, the reference pattern can be obtained. In this way, the reference pattern is obtained (step 40).

【0021】図7はビレット端面21が90度回転した状態
でコンベア上を搬送されてきた場合を示す。この場合も
最上行と最下行の最初と最後の文字が位置する範囲を破
線で示すようにマスキングし、基準パターンをステップ
40で示した方法などを用いて抽出することができる。
FIG. 7 shows a case where the billet end face 21 is conveyed on a conveyor in a state of being rotated by 90 degrees. In this case as well, mask the areas where the first and last characters of the top and bottom lines are located as shown by the broken lines, and step the reference pattern.
It can be extracted using the method shown in 40 or the like.

【0022】図8は倍率補正処理のフロー図である。図
4の動作フロー図で基準パターンを抽出した後、図2に
示すように基準パターン間の距離Hを演算する(ステッ
プ51)。次にビレット端面21とTVカメラ22との距離を
L0 とし、このときの基準パターン間の距離をH0 と
し、このL0 ,H0 を基準とする。HとH0 の比を入力
倍率とする(ステップ52)。この比H/H0 を1、つま
りHをH0 とするようにするためには(1)式を用いて
△LだけTVカメラ22をビレット端面21方向へ移動すれ
ばよい(ステップ53)。これによりTVカメラ22で得ら
れる画像の大きさは常にH0 の大きさのものが得られ
る。なお、ビレットの移動や、TVカメラ22のズームレ
ンズの焦点距離の変更をしてもよい。
FIG. 8 is a flow chart of magnification correction processing. After extracting the reference patterns in the operation flow chart of FIG. 4, the distance H between the reference patterns is calculated as shown in FIG. 2 (step 51). Next, the distance between the billet end face 21 and the TV camera 22 is set to L0, the distance between the reference patterns at this time is set to H0, and these L0 and H0 are used as references. The ratio of H and H0 is used as the input magnification (step 52). In order to set this ratio H / H0 to 1, that is, H to H0, it is sufficient to move the TV camera 22 toward the billet end face 21 by ΔL using the equation (1) (step 53). As a result, the size of the image obtained by the TV camera 22 is always H0. The billet may be moved or the focal length of the zoom lens of the TV camera 22 may be changed.

【0023】次に第2実施例を説明する。本実施例はビ
レット端面21が、マーキングをした状態から回転した状
態で、コンベアに搭載された場合である。この回転した
状態には2種類あり、図10に示すように10度前後の小角
度△θ回転した場合と、図11に示すように90度単位で回
転した場合である。小角度△θの回転はビレットが長さ
方向にねじれておりこれによって、マーキングしたとき
より小角度△θ回転する場合であり、90度単位で回転し
ている場合は、マーキング後コンベアに搭載する際回転
して搭載した場合に発生する。
Next, a second embodiment will be described. In the present embodiment, the billet end face 21 is mounted on the conveyor in a rotated state from the marked state. There are two types of this rotated state, that is, a small angle Δθ rotation of about 10 degrees as shown in FIG. 10 and a 90 degree rotation as shown in FIG. The rotation of a small angle Δθ is the case where the billet is twisted in the lengthwise direction, which causes a smaller angle Δθ rotation than when marking, and when rotating in 90 degree units, it is mounted on the conveyor after marking. It occurs when it is rotated and mounted.

【0024】図9は本実施例の動作フロー図である。ま
ず基準パターン方向が小角度△θ回転しているか調べる
(ステップ61)。小角度△θの回転は図10(a)に示す
ようにTVカメラ22の走査線Aに対して基準パターンの
重心を通る基準線Pが0度または180 度方向にあり、走
査線Aに対して小角度△θ回転している場合と、(b)
に示すように基準線Pが90度または270 度方向にあり、
走査線Aに直交する線Bに対して小角度△θ回転してい
る場合とがある。この小角度△θを0にするよう△θ微
小回転処理をする(ステップ62)。
FIG. 9 is an operation flow chart of this embodiment. First, it is checked whether the reference pattern direction is rotated by a small angle Δθ (step 61). As shown in FIG. 10A, the rotation of the small angle Δθ is such that the reference line P passing through the center of gravity of the reference pattern is in the 0 ° or 180 ° direction with respect to the scanning line A of the TV camera 22, and And a small angle Δθ rotation, (b)
As shown in, the reference line P is in the direction of 90 degrees or 270 degrees,
It may be rotated by a small angle Δθ with respect to the line B orthogonal to the scanning line A. The Δθ minute rotation processing is performed so that this small angle Δθ becomes 0 (step 62).

【0025】図11はビレット端面21が(a)に示す状態
を正常とし、これをIとし、(b)に示すように90度単
位で、90度II,180 度III,270 度IV回転した状
態である。このような基準パターンの配置は図4のステ
ップ39,40で抽出してあるので、90度II,180 度II
I,270 度IVの状態にあるときはIの状態に画像の回
転処理を行う(ステップ63)。
FIG. 11 shows that the billet end face 21 is in the normal state shown in (a), and this is I, and as shown in (b), the billet end face 21 is rotated 90 degrees II, 180 degrees III, 270 degrees IV. It is in a state. Since the arrangement of such reference patterns is extracted in steps 39 and 40 of FIG. 4, 90 degrees II, 180 degrees II
If it is in the I, 270 degree IV state, the image is rotated to the I state (step 63).

【0026】[0026]

【発明の効果】以上の説明より明らかなように、本発明
はビレットの端面の位置が変動しても撮像装置の移動や
ズームレンズの焦点距離調整によりビレット側を調整す
る必要がないため、ビレット位置決め機構やビレット位
置検出センサなどの必要がない。またビレット端面がマ
ーキングした状態から回転した状態となっていても画像
処理技術により正常な画像に回転処理するので、ビレッ
トを回転する必要がない。これらの処理によりビレット
端面にマーキングされた文字を正しく認識することが容
易となる。
As is clear from the above description, according to the present invention, it is not necessary to adjust the billet side by moving the image pickup device or adjusting the focal length of the zoom lens even if the position of the end face of the billet changes. There is no need for a positioning mechanism or billet position detection sensor. Further, even if the billet end face is changed from the marked state to the rotated state, the billet does not need to be rotated because the image processing technique performs the rotation process to a normal image. By these processes, it becomes easy to correctly recognize the characters marked on the end face of the billet.

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

【図1】本発明の実施例を実施するコンピュータの構成
図である。
FIG. 1 is a configuration diagram of a computer that implements an embodiment of the present invention.

【図2】第1実施例の説明図である。FIG. 2 is an explanatory diagram of the first embodiment.

【図3】第1実施例と第2実施例を含んだ全体フロー図
である。
FIG. 3 is an overall flow chart including a first embodiment and a second embodiment.

【図4】基準パターン抽出処理フロー図である。FIG. 4 is a flowchart of reference pattern extraction processing.

【図5】最大値フィルタ処理を説明する図である。FIG. 5 is a diagram illustrating maximum value filtering processing.

【図6】基準パターンを抽出するためのマスク処理を示
す図である。
FIG. 6 is a diagram showing a masking process for extracting a reference pattern.

【図7】90度回転した場合のマスク処理を示す図であ
る。
FIG. 7 is a diagram showing a mask process when rotated by 90 degrees.

【図8】倍率補正処理フロー図である。FIG. 8 is a flowchart of magnification correction processing.

【図9】回転補正処理フロー図である。FIG. 9 is a rotation correction processing flowchart.

【図10】微小角△θの説明図である。FIG. 10 is an explanatory diagram of a minute angle Δθ.

【図11】90度単位の回転処理を説明する図である。FIG. 11 is a diagram illustrating a rotation process in units of 90 degrees.

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

21 ビレット端面 22 TVカメラ 21 Billet end face 22 TV camera

フロントページの続き (72)発明者 相川 勝保 東京都八王子市石川町2951番地4 株式会 社ニレコ内 (72)発明者 富田 一臣 北海道室蘭市仲町12番地 新日本製鐵株式 会社室蘭製鐵所内 (72)発明者 吉田 三男 北海道室蘭市仲町12番地 新日本製鐵株式 会社室蘭製鐵所内 (72)発明者 石渡 明夫 北海道室蘭市仲町12番地 新日本製鐵株式 会社室蘭製鐵所内Front page continuation (72) Inventor Katsuho Aikawa 2951 Ishikawa-cho, Hachioji-shi, Tokyo 4 Nireko Co., Ltd. 72) Inventor Mitsuo Yoshida, 12 Nakamachi, Muroran City, Hokkaido Inside Nippon Steel Co., Ltd. Muroran Works (72) Inventor Akio Ishiwata 12 Nakamachi, Muroran City, Hokkaido Shin Nippon Steel Co., Ltd. Muroran Works

Claims (3)

【特許請求の範囲】[Claims] 【請求項1】 所定の文字列を描き、この文字列の外側
に平行して所定の間隔で2個の基準パターンを設け、こ
の文字列を撮像装置で撮像し、この2個の基準パターン
間の距離を撮像データより演算し、この演算した距離が
所定の値となるよう前記文字列と前記撮像装置との距離
又は前記撮像装置のカメラの焦点距離を調整するように
したことを特徴とする文字列撮像方法。
1. A predetermined character string is drawn, two reference patterns are provided in parallel to the outside of the character string at predetermined intervals, and the character string is imaged by an image pickup device, and between these two reference patterns. Is calculated from the image pickup data, and the distance between the character string and the image pickup device or the focal length of the camera of the image pickup device is adjusted so that the calculated distance becomes a predetermined value. Character string imaging method.
【請求項2】 矩形断面に所定の文字列を描き、この文
字列の外側に平行して所定の間隔で2個の基準パターン
を設け、この矩形断面が正常の場合、90度、180 度、27
0 度それぞれ回転した場合の前記基準パターンの4状態
を記憶しておき、この矩形断面を撮像装置で撮像し前記
2個の基準パターンの配置を検出して前記4状態のどれ
に当たるか判断し、前記正常の場合と異なる場合は撮像
した画像が前記正常な場合となるよう画像の回転処理を
行うことを特徴とする文字列撮像方法。
2. A predetermined character string is drawn on a rectangular cross section, and two reference patterns are provided parallel to the outside of the character string at predetermined intervals. When the rectangular cross section is normal, 90 degrees, 180 degrees, 27
The four states of the reference pattern when each is rotated 0 degrees are stored, the rectangular cross section is imaged by the image pickup device, the arrangement of the two reference patterns is detected, and it is determined which of the four states is hit, A character string imaging method, wherein when the image is different from the normal case, the image is rotated so that the captured image is in the normal case.
【請求項3】 前記2個の基準パターンの配置を検出し
た後、この2個の基準パターンの同一位置を結んだ直線
と前記撮像装置の走査線またはこの走査線と同一面内で
直交する直線との交差角△θを求め、この△θを0とす
るよう画像回転を行った後前記4状態のどれに当るか判
断するようにしたことを特徴とする請求項2記載の文字
列撮像方法。
3. After detecting the arrangement of the two reference patterns, a straight line connecting the same positions of the two reference patterns and a scanning line of the image pickup device or a straight line orthogonal to the scanning line in the same plane. 3. The character string imaging method according to claim 2, wherein an intersection angle .DELTA..theta. With .alpha. Is obtained, and after which the image is rotated so that .DELTA..theta. .
JP4339951A 1992-12-21 1992-12-21 Character string image pickup method Pending JPH06187492A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP4339951A JPH06187492A (en) 1992-12-21 1992-12-21 Character string image pickup method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP4339951A JPH06187492A (en) 1992-12-21 1992-12-21 Character string image pickup method

Publications (1)

Publication Number Publication Date
JPH06187492A true JPH06187492A (en) 1994-07-08

Family

ID=18332309

Family Applications (1)

Application Number Title Priority Date Filing Date
JP4339951A Pending JPH06187492A (en) 1992-12-21 1992-12-21 Character string image pickup method

Country Status (1)

Country Link
JP (1) JPH06187492A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0728503A1 (en) * 1995-02-21 1996-08-28 Konami Co., Ltd. A shooting game machine
US5800263A (en) * 1995-02-21 1998-09-01 Konami Co., Ltd. Game machine
JP2005339000A (en) * 2004-05-25 2005-12-08 Casio Comput Co Ltd Image recognition device and program

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP0728503A1 (en) * 1995-02-21 1996-08-28 Konami Co., Ltd. A shooting game machine
US5800263A (en) * 1995-02-21 1998-09-01 Konami Co., Ltd. Game machine
JP2005339000A (en) * 2004-05-25 2005-12-08 Casio Comput Co Ltd Image recognition device and program
JP4501531B2 (en) * 2004-05-25 2010-07-14 カシオ計算機株式会社 Image recognition apparatus and program

Similar Documents

Publication Publication Date Title
JPH1096613A (en) Defect detection method and device thereof
JPH06187492A (en) Character string image pickup method
JP3320164B2 (en) Printing inspection equipment
JP3231612B2 (en) Barcode recognition device and method
JP2000105795A (en) Omnidirectional-dimensional bar code reader
JP3207931B2 (en) Image inspection equipment
JPH11120286A (en) Character reader and managing method for steel billet
JP4074146B2 (en) Print stain inspection method and apparatus
JPS6312987A (en) Detecting method for moving object
JP3262030B2 (en) Defect detection device
JP2853510B2 (en) Image noise removal device
JP3235392B2 (en) Rotation angle detection method for target pattern
JP2514727B2 (en) Defect inspection method by visual inspection
JPH0883393A (en) Vehicle speed measuring instrument
JP2843389B2 (en) Bonding ball inspection device
JP2888885B2 (en) Character extraction device
JP3275475B2 (en) Character string recognition device with known character sequence
JP2527099B2 (en) Device for detecting the placement state of semiconductor pellets
JP2513528Y2 (en) Gray image processor
JPH02105262A (en) Method for deciding optimum position correction area in inspection of wiring pattern
JPH11203470A (en) Surface condition setting method and image recognition method
JPH02254574A (en) Noise removing system
JPH07104137B2 (en) Method of detecting the rotation angle of the target pattern
JPS62182603A (en) Apparatus for detecting position of number plate
JPS62192883A (en) Character string extracting system

Legal Events

Date Code Title Description
A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20000926