JPH10171923A - System and method for detecting character - Google Patents

System and method for detecting character

Info

Publication number
JPH10171923A
JPH10171923A JP8324921A JP32492196A JPH10171923A JP H10171923 A JPH10171923 A JP H10171923A JP 8324921 A JP8324921 A JP 8324921A JP 32492196 A JP32492196 A JP 32492196A JP H10171923 A JPH10171923 A JP H10171923A
Authority
JP
Japan
Prior art keywords
character
image
processing
picture
gradation
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
JP8324921A
Other languages
Japanese (ja)
Inventor
Satoru Yamaguchi
悟 山口
Toru Takagi
徹 高木
Yasutoshi Kiyota
康稔 清田
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
Original Assignee
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 Nippon Steel Corp filed Critical Nippon Steel Corp
Priority to JP8324921A priority Critical patent/JPH10171923A/en
Publication of JPH10171923A publication Critical patent/JPH10171923A/en
Pending legal-status Critical Current

Links

Landscapes

  • Character Input (AREA)

Abstract

PROBLEM TO BE SOLVED: To finely extract character pattern even if it is a character printed in a curved surface part such as a steel sheet coil by performing long-legged filter processing and smoothing processing to inputted digital picture data and performing binarization processing to the resulting picture. SOLUTION: An image pickup means 1 such as a television camera or the like fetches an object on which a character to be recognized is printed, e.g. the image of a steel plate coil. This image is digitalized in a digitalizing processing part 2, and a picture having 256 gradation is formed. This picture is subjected to the prescribed picture processing, i.e. the long-legged filter processing and the smoothing processing in a picture processing part 3. The picture subjected to the above picture processing is converted into a binary picture in a binarization processing part 4, and a character recognizing part 5 performs character recognition processing based on this binary picture. Then, the respective results processed by the digitalizing processing part 2, the picture processing part 3, the binarization processing part 4 and the character recognizing part 5, is displayed in a display part 6 as occasion demands.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は、製品等の被検査物
の表面に印字された文字の認識を行う場合に利用され
る、その文字を検出するための文字検出方法及び文字検
出装置に関連する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a character detecting method and a character detecting apparatus for detecting a character used for recognizing a character printed on the surface of an inspection object such as a product. I do.

【0002】[0002]

【従来の技術】製鉄所などでは、製品又は半製品の製
造、加工又は在庫管理等の必要上、製品や半製品に型番
等の情報を示す文字、数字、記号など(以下単に「文
字」という。)を印字又は刻印することが多い。そし
て、このような文字を、テレビカメラなどの撮像手段に
よって取り込み、二値化処理を行って文字パターンを抽
出し、自動的に文字認識を行うというシステムが実用化
されている。しかし、テレビカメラによって捉えられた
画像を単純に二値化しただけだと、例えば製品等の表面
が平坦面でなかったり、あるいは錆や汚れが生じている
ような場合に、高い精度で文字を認識することは困難で
ある。そこで本出願人は、特願平2−99において、得
られた画像に対し所定の強調処理を施したあとに二値化
処理をすることによって、刻印された文字のパターンを
良好に抽出する方法及び装置を提案した。
2. Description of the Related Art In a steel mill or the like, a product, a semi-finished product, such as a character, a number, a symbol, etc. (hereinafter simply referred to as "letter") indicating information such as a model number due to the necessity of manufacturing, processing, or inventory management. ) Is often printed or stamped. Then, a system has been put to practical use in which such characters are captured by an imaging means such as a television camera and the like, and a binarization process is performed to extract a character pattern and automatically perform character recognition. However, simply binarizing an image captured by a TV camera can provide high-accuracy characters when the surface of a product or the like is not flat or has rust or dirt. It is difficult to recognize. In view of this, the present applicant has proposed a method of extracting a marked character pattern by applying a predetermined emphasis process to an obtained image and then performing a binarization process in Japanese Patent Application No. 2-99. And an apparatus were proposed.

【0003】[0003]

【発明が解決しようとする課題】ところで、本願と同一
出願人により提案された上記の方法及び装置は、主とし
てビレット等の一次圧延鋼材の端面に刻印された文字の
パターンを抽出することを目的としており、その場合に
は、横置きされたビレットの側方からビレットの端面に
向けて照明を当て、同じく側方に配置されたテレビカメ
ラによって刻印された文字の画像を捉えている。
The above-described method and apparatus proposed by the same applicant as the present application are mainly intended to extract a character pattern engraved on an end face of a primary rolled steel material such as a billet. In this case, the side of the horizontally placed billet is illuminated toward the end face of the billet, and an image of a character engraved by a television camera similarly arranged on the side is captured.

【0004】これに対して、圧延工程を経て薄く圧延さ
れた鋼板をロール状に巻いた「鋼板コイル」と呼ばれる
ものの表面に印字された文字のパターンを抽出し、文字
認識を行おうとする場合には、鋼板コイルという製品の
性質上、その表面に印字された文字の画像を捉えるため
のテレビカメラは、コイル置場に連続的に並べられた多
数の鋼板コイルの上方に、照明装置とともにクレーンで
移動可能に設置されるケースが多い。ロール状の鋼板コ
イルは表面に曲率があるため、上方に設けられた照明で
鋼板コイルの表面を照らしたものを同じく上方に位置す
るテレビカメラから見たときに、照明からの光をテレビ
カメラに向けて強く反射する部分がある。かかる部分は
テレビカメラが捉えた画像中で非常に明るい部分(以下
「ハイライト部分」という)として写る。図14は、テ
レビカメラで上から鋼板コイル40を捉えた画像を示す
模式図であり、同図の斜線部41がハイライト部分を示
す。
On the other hand, a character pattern printed on the surface of a so-called "steel coil" formed by rolling a steel sheet which has been thinly rolled through a rolling process into a roll shape is extracted and character recognition is performed. Due to the nature of the product called steel coil, a TV camera that captures the image of the characters printed on the surface of the product is moved by a crane together with a lighting device above a large number of steel coils continuously arranged in the coil storage area. There are many cases where it can be installed. Since the rolled steel coil has a curvature on its surface, the light from the illumination is transmitted to the TV camera when viewed from a TV camera that is also positioned above, illuminating the surface of the steel coil with the lighting provided above. There is a part that reflects strongly toward. Such a portion appears as a very bright portion (hereinafter, referred to as a “highlight portion”) in the image captured by the television camera. FIG. 14 is a schematic diagram showing an image of the steel plate coil 40 captured from above by a television camera, and a hatched portion 41 in the drawing shows a highlighted portion.

【0005】一方、ロール状の鋼板コイルは回転し易い
ため文字を印字した部分が常に正確に一定の位置に来る
とは限らず、テレビカメラから見たときに印字された文
字の一部だけが上記のハイライト部分にかかるという場
合がある。例えば、図14では鋼板コイルの表面に印字
された「31」という文字の上側の一部が、ハイライト
部分41にかかっている。このような場合は、文字とそ
の背景とのコントラストが文字の場所によって大きく異
なり、文字全体の画像を明瞭に捉えることはできない。
このような画像に対して二値化処理を行っても、良好に
文字パターンを抽出することはできず、したがって高い
精度で文字認識を行うことは難しい。
On the other hand, a roll-shaped steel coil is easy to rotate, so that a portion on which a character is printed is not always exactly at a fixed position. There is a case where the above highlight portion is applied. For example, in FIG. 14, the upper part of the character “31” printed on the surface of the steel coil covers the highlight part 41. In such a case, the contrast between the character and its background greatly differs depending on the position of the character, and the image of the entire character cannot be clearly captured.
Even if such an image is subjected to the binarization processing, a character pattern cannot be satisfactorily extracted, and thus it is difficult to perform character recognition with high accuracy.

【0006】更に、鋼板コイル自身の色彩がグレー系統
であるため、その表面に黒色の文字を印字する場合に
は、たとえ認識対象となる文字全体が一様なコントラス
トの背景部分に含まれている場合でも、そもそも文字と
背景との十分なコントラストは期待できない。したがっ
て、鋼板コイルに印字された文字をテレビカメラで取り
込んで、強調処理を施したとしても、印字された文字パ
ターンを常に良好に抽出することはできず、高い精度で
文字認識を行うことは難しい。
Furthermore, since the color of the steel coil itself is a gray system, when printing black characters on the surface, even if the entire character to be recognized is included in the background portion having a uniform contrast. Even in this case, sufficient contrast between the character and the background cannot be expected in the first place. Therefore, even if the characters printed on the steel coil are taken in by a television camera and subjected to emphasis processing, the printed character patterns cannot always be extracted well, and it is difficult to perform character recognition with high accuracy. .

【0007】本発明は上記事情に基づいてなされたもの
であり、鋼板コイルのように曲面部分に印字された文字
であっても良好に文字パターンを抽出できる文字検出方
法及び文字検出装置を提供することを目的とするもので
ある。
The present invention has been made on the basis of the above circumstances, and provides a character detection method and a character detection device capable of satisfactorily extracting a character pattern even for a character printed on a curved surface portion such as a steel sheet coil. The purpose is to do so.

【0008】[0008]

【課題を解決するための手段】上記の課題を解決するた
めの請求項1記載の発明である文字検出方法は、入力さ
れたディジタル画像データに対し、まず足長フィルタ処
理を行い、次いで平滑化処理を行い、その結果得られた
画像に対して二値化処理を施すことによって文字パター
ンを抽出することを特徴とする。
According to a first aspect of the present invention, there is provided a character detecting method for performing a foot length filtering process on input digital image data and then performing a smoothing process. A character pattern is extracted by performing a process and performing a binarization process on an image obtained as a result.

【0009】請求項4記載の発明である文字検出装置
は、検出対象となる文字を含む画像を撮像する撮像手段
と、前記撮像手段から出力される画像信号をディジタル
化し、所定階調のディジタル画像とするディジタル化手
段と、前記ディジタル画像に対し、まず足長フィルタ処
理を行い、次いで平滑化処理を行う画像処理手段と、前
記画像処理手段から出力される画像信号に二値化処理を
施して二値画像とする二値化処理手段と、前記二値画像
または、二値画像を画像処理した画像に基づいて前記文
字を認識する文字認識手段とを具備することを特徴とす
る。
According to a fourth aspect of the present invention, there is provided a character detecting apparatus for imaging an image including a character to be detected, and digitizing an image signal output from the imaging means to obtain a digital image having a predetermined gradation. Digitizing means, first, a foot-length filter processing is performed on the digital image, and then, an image processing means for performing a smoothing processing is performed, and a binarizing processing is performed on the image signal output from the image processing means. The image processing apparatus further includes a binarization processing unit that converts the image into a binary image, and a character recognition unit that recognizes the character based on the binary image or an image obtained by performing image processing on the binary image.

【0010】上記のように、入力されたディジタル画像
データに対し、まず足長フィルタ処理を行い、次いで平
滑化処理を行うという順序で画像処理を施すことによっ
て、入力された画像データの文字部分と背景とのコント
ラストが一様でない場合であっても、その後に二値化し
たときに、良好に文字パターンを抽出でき、高い精度で
文字認識が可能となる。
[0010] As described above, the input digital image data is subjected to image processing in the order of first performing a foot length filter process and then performing a smoothing process, thereby obtaining a character portion of the input image data. Even when the contrast with the background is not uniform, the character pattern can be extracted well when binarized thereafter, and the character can be recognized with high accuracy.

【0011】[0011]

【発明の実施の形態】以下に図面を参照して、本発明の
一実施形態について説明する。図1は本実施形態の文字
検出方法を実行する装置のブロック図、図2は、認識す
べき文字が印字される本実施形態の鋼板コイルと、照明
及びカメラの相対位置を示した概略配置図であり、図3
は、鋼板コイルの上部を拡大して示した拡大断面図であ
る。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of the present invention will be described below with reference to the drawings. FIG. 1 is a block diagram of an apparatus for executing the character detection method of the present embodiment, and FIG. 2 is a schematic layout diagram showing a relative position of a steel coil of the present embodiment on which a character to be recognized is printed, illumination and a camera. And FIG.
FIG. 2 is an enlarged cross-sectional view showing an upper part of a steel sheet coil in an enlarged manner.

【0012】図1のブロック図において、テレビカメラ
等の撮像手段1は認識対象となる文字が印字された物品
(ここでは鋼板コイル)の画像を取り込む。この画像は
ディジタル化処理部2でディジタル化され、例えば25
6階調の画像とされる。この画像は、画像処理部3にお
いて所定の画像処理が行われる。本実施形態では、画像
処理部3において後述の足長フィルタ処理及び平滑化処
理を行う。かかる画像処理が行われた画像は、二値化処
理部4において二値画像とされ、文字認識部5が、この
二値画像に基づいて文字認識処理を行う。ディジタル化
処理部2、画像処理部3、二値化処理部4、文字認識部
5でそれぞれ処理された結果は、必要に応じて表示部6
に表示される。
In the block diagram of FIG. 1, an image pickup means 1 such as a television camera captures an image of an article (here, a steel sheet coil) on which characters to be recognized are printed. This image is digitized by the digitizing processor 2 and, for example, 25
The image has six gradations. This image is subjected to predetermined image processing in the image processing unit 3. In the present embodiment, the image processing unit 3 performs a foot length filtering process and a smoothing process described later. The image on which the image processing has been performed is converted into a binary image by the binarization processing unit 4, and the character recognition unit 5 performs a character recognition process based on the binary image. The results processed by the digitizing processing unit 2, the image processing unit 3, the binarizing processing unit 4, and the character recognizing unit 5 are displayed on the display unit 6 as necessary.
Will be displayed.

【0013】図2において、101 ,102 ,10
3 は、薄く圧延された鋼板をロール状に巻き取った鋼板
コイルであり、直径は1〜2m程度である。巻き取られ
た鋼板コイル101 ,102 ,103 の表面には、その
製品の型番や製品番号などを示す黒色の文字が印字され
た後、図のようにコイル置場に並べて配置される。並べ
られた多数の鋼板コイルの上方には、印字された文字の
画像を捉える撮像手段であるテレビカメラ11と、この
テレビカメラ11のための照明装置12が、クレーン1
3で移動できるように設置される。
In FIG. 2, 10 1 , 10 2 , 10
Reference numeral 3 denotes a steel sheet coil obtained by winding a thinly rolled steel sheet into a roll, and has a diameter of about 1 to 2 m. Black letters indicating the model number, product number, etc. of the product are printed on the surface of the coiled steel coils 10 1 , 10 2 , 10 3 , and are arranged side by side in the coil place as shown in the figure. A television camera 11 serving as an imaging unit for capturing an image of a printed character and an illumination device 12 for the television camera 11 are provided above the many coiled steel coils.
3 so that it can be moved.

【0014】鋼板コイル101 ,102 ,103 の表面
に印字された文字を上方のテレビカメラ11で捉えるた
めには、鋼板コイル101 ,102 ,103 を図2に示
すように並べたときに、文字を印字した部分が最も上に
来ていることが望ましい。しかし、ロール状の鋼板コイ
ルは回転し易いため、最も上の位置からずれることがあ
る。テレビカメラ11で印字された文字の画像を捉えた
ときに、文字が印字された領域がどこにあるかによっ
て、その文字の画像がどのように変わるかについて図3
を参照して説明する。鋼板コイル10の表面上で文字が
印字された領域が図3にaで示した範囲、すなわちテレ
ビカメラ11のほぼ真下の範囲にあれば、テレビカメラ
11は文字を真上から捉えることができると同時に、背
景とのコントラストも印字された文字全体で均一であ
る。これに対し、bで示した領域は、照明12からの強
い光がテレビカメラ11に映るハイライト部分である。
図14に関連して説明したように、文字が印字された領
域の一部がbの範囲にかかると、その部分の背景は非常
に明るくなり、文字と背景とのコントラストが文字領域
の場所によって不均一となる。
In order for the characters printed on the surfaces of the steel coils 10 1 , 10 2 and 10 3 to be captured by the television camera 11 above, the steel coils 10 1 , 10 2 and 10 3 are arranged as shown in FIG. When printing, it is desirable that the portion on which the character is printed comes to the top. However, since the rolled steel coil is easy to rotate, it may be shifted from the uppermost position. FIG. 3 shows how the image of a character changes when the image of the character printed by the television camera 11 is captured, depending on where the area where the character is printed is located.
This will be described with reference to FIG. If the area where the characters are printed on the surface of the steel sheet coil 10 is in the range shown in FIG. 3A, that is, the range almost directly below the TV camera 11, the TV camera 11 can catch the characters from directly above. At the same time, the contrast with the background is uniform throughout the printed characters. On the other hand, a region indicated by b is a highlight portion where strong light from the illumination 12 is reflected on the television camera 11.
As described in connection with FIG. 14, when a part of the area where the character is printed covers the range b, the background of that part becomes very bright, and the contrast between the character and the background varies depending on the position of the character area. It becomes uneven.

【0015】図4は、鋼板コイルの表面に、縦が約20
cm、横が約40cmの領域に印字した文字を、テレビ
カメラ11で捉えた画像の一例を示す。図4では、鋼板
コイルに文字が印字された領域の一部分(ここでは上部
の約3分の1)が図3のbで示した範囲にかかってお
り、印字領域の上側の約3分の1では背景が非常に明る
く、その下側では背景は暗い。この図4の画像に対し、
適当な閾値を設定して二値化処理を行うと、図5に示し
た二値画像が得られる。しかし、このような二値画像で
は、文字の輪郭が不明瞭であり、かかる画像からは文字
パターンを抽出することはできない。これは、文字と背
景とのコントラストが場所によって大きく異なるため
に、文字全体で明瞭な輪郭を抽出するための適当な閾値
を設定することができないからである。
FIG. 4 shows that the surface of the steel coil has a vertical length of about 20 mm.
An example of an image captured by the television camera 11 of a character printed in an area of about 40 cm in width and about 40 cm in width is shown. In FIG. 4, a part (here, about one-third in the upper part) of the area where the characters are printed on the steel sheet coil covers the range shown in FIG. 3B, and about one-third in the upper part of the printed area. The background is very bright and the background is darker underneath. For the image in FIG.
When the binarization process is performed by setting an appropriate threshold, the binary image shown in FIG. 5 is obtained. However, in such a binary image, the outline of a character is unclear, and a character pattern cannot be extracted from such an image. This is because an appropriate threshold value for extracting a clear outline in the entire character cannot be set because the contrast between the character and the background greatly differs depending on the location.

【0016】図6は、二値化する前の図4の画像に対
し、一般的な平滑化処理を行い、その後に二値化処理を
行って得られた画像を示す。図6の画像は、文字の上部
が大きく欠けており、文字パターンを抽出するには不十
分な品質である。図7及び図8は、二値化する前の図4
の画像に対し、後述の「足長フィルタ処理」を行い、そ
の後に二値化処理を行って得られた画像である。図7と
図8の違いは、足長フィルタ処理を行う際のパラメータ
を変えたことによって生じたものである。図7及び図8
に示す画像の文字パターンの明瞭さは、図6に示した画
像と比べれば向上しているが、図7では文字の一部に欠
けが生じており、また図8では背景にノイズが生じてい
る。これらが文字認識を行う際の障害となるため、二値
化の前に足長フィルタ処理を行っただけでは、やはり文
字認識を高い精度で行うのには不十分である。尚、図7
及び図8では、図5及び図6とは異なり、文字の部分が
白くなっているが、これは足長フィルタ処理を行ったこ
とによるものである。
FIG. 6 shows an image obtained by performing a general smoothing process on the image of FIG. 4 before binarization and then performing a binarization process. In the image of FIG. 6, the upper part of the character is largely missing, and the quality is insufficient for extracting the character pattern. FIGS. 7 and 8 show FIG. 4 before binarization.
Is an image obtained by performing a “foot length filter process” described later on the image and then performing a binarization process. The difference between FIG. 7 and FIG. 8 is caused by changing parameters when performing the foot length filter processing. 7 and 8
Although the clarity of the character pattern of the image shown in FIG. 7 is improved as compared with the image shown in FIG. 6, part of the character is missing in FIG. 7 and noise is generated in the background in FIG. I have. Since these become obstacles in performing character recognition, it is still not sufficient to perform character recognition with high accuracy simply by performing foot length filter processing before binarization. Note that FIG.
8 and FIG. 8, unlike FIG. 5 and FIG. 6, the character portion is white, but this is due to the execution of the foot length filter processing.

【0017】そこで、本願発明者は、二値化処理を行う
前に、足長フィルタ処理と平滑化処理とを組み合わせた
画像処理を行うことを試みた。ここで、平滑化処理と足
長フィルタ処理について簡単に説明する。図9は、本実
施形態で行う平滑化処理を説明するための図である。図
9に示した9個の小さい正方形はそれぞれ、画素を示
す。ここで、中央の画素20を対象として行う平滑化処
理は、以下の手続きによってなされる。まず、ディジタ
ル化した画像の階調が各画素について0(黒)から25
5(白)までの256階調であるとし、画素20とこの
回りの隣接する画素、合計9個の各画素それぞれの階調
を平均する。そして、この平均値を画素20の階調とし
て割り当てる。かかる処理を画面のすべての画素に対し
て行い、それぞれの画素に割り当てられた各階調を表示
した画像を得る。かかる処理が、平滑化処理である。こ
のような処理を行って得られる画像は、原画像において
階調が急激に変化する部分について、階調が序々に変化
するようになる。
Therefore, the inventor of the present application tried to perform image processing combining foot length filter processing and smoothing processing before performing binarization processing. Here, the smoothing processing and the foot length filtering processing will be briefly described. FIG. 9 is a diagram for explaining the smoothing process performed in the present embodiment. Each of the nine small squares shown in FIG. 9 indicates a pixel. Here, the smoothing process performed on the center pixel 20 is performed by the following procedure. First, the gradation of the digitized image is changed from 0 (black) to 25 for each pixel.
It is assumed that there are 256 gradations up to 5 (white), and the gradation of each of a total of nine pixels, that is, the pixel 20 and its neighboring pixels, is averaged. Then, this average value is assigned as the gradation of the pixel 20. This process is performed on all pixels on the screen to obtain an image displaying each gradation assigned to each pixel. Such a process is a smoothing process. In an image obtained by performing such processing, the gradation gradually changes in a portion where the gradation rapidly changes in the original image.

【0018】図10は、本実施形態で行う足長フィルタ
処理を説明するための図である。尚、ここでも図9の場
合と同様に0(黒)から255(白)までの256階調
として考える。図10において、メッシュ状に細かく区
切った小さい正方形は、画面の各画素を示す。このう
ち、中央の縦長の斜線領域は、その周囲に比べて階調が
低いことを示す。ここでは簡単のために、斜線領域の階
調が「10」、その周囲の部分の階調が「50」である
とする。
FIG. 10 is a diagram for explaining the foot length filtering process performed in this embodiment. Note that, here, as in the case of FIG. 9, 256 gradations from 0 (black) to 255 (white) are considered. In FIG. 10, small squares finely divided in a mesh shape indicate each pixel on the screen. Among them, the vertically elongated hatched area at the center indicates that the gradation is lower than the surrounding area. Here, for the sake of simplicity, it is assumed that the gradation in the hatched area is “10” and the gradation in the surrounding area is “50”.

【0019】斜線領域に含まれる一つの画素30に対し
て行う足長フィルタ処理は、以下のようにする。まず、
対象となる画素30から、上下左右にn画素分だけ離れ
た4つの画素31,32,33,34を考える。ここ
で、nの値は、認識すべき文字の線の太さに対応する画
素数よりも大きな値となるように選ぶ。そして次式で与
えられるL30という値を計算する。
The foot length filtering process performed on one pixel 30 included in the hatched area is as follows. First,
Consider four pixels 31, 32, 33, and 34 that are n pixels up, down, left, and right from the target pixel 30. Here, the value of n is selected so as to be larger than the number of pixels corresponding to the thickness of the line of the character to be recognized. And calculating a value of L 30 which is given by the following equation.

【0020】L30=M30・K30+M31・K31+M32・K
32+M33・K33+M34・K34 ここで、K30,K31,K32,K33,K34は各画素の階調
であり、ここでは上述のように、K30=K31=K32=1
0、K33=K34=50である。また、M30,M 31
32,M33,M34は各画素について予め定められた係数
であり、ここでは、M30=−4,M31=M32=M33=M
34=1とする。したがって、この場合には、L30=80
となり、このL30の値を、画素30に割り当てる。図1
0の斜線の隣に位置する画素30′に対して上記と同様
にL30′を求めてみると、M30′=−4、M31′=
32′=M33′=M34′=1であり、K30′=K31′=
32′=K 33′=K34′=50であるから、L30′=0
となる。以下、同様の計算をすべての画素について行
い、それぞれの画素に割り当てられたL30等の値をその
画素の階調とした画像を表示させる。かかる処理が足長
フィルタ処理である。
L30= M30・ K30+ M31・ K31+ M32・ K
32+ M33・ K33+ M34・ K34 Where K30, K31, K32, K33, K34Is the gradation of each pixel
And here, as described above, K30= K31= K32= 1
0, K33= K34= 50. Also, M30, M 31,
M32, M33, M34Is a predetermined coefficient for each pixel
Where M30= -4, M31= M32= M33= M
34= 1. Therefore, in this case, L30= 80
And this L30Is assigned to the pixel 30. FIG.
Same as above for pixel 30 'located next to the 0 oblique line
To L30′, M30'= -4, M31'=
M32'= M33'= M34'= 1 and K30'= K31'=
K32'= K 33'= K34Since '= 50, L30'= 0
Becomes Hereinafter, the same calculation is performed for all pixels.
L assigned to each pixel30The value of
An image with pixel gradation is displayed. Such processing is foot length
Filter processing.

【0021】図11及び図12は、図4の原画像に対し
て上述の平滑化処理と足長フィルタ処理とを組み合わせ
た処理を行った後に二値化処理して得られた画像であ
り、図11は先に平滑化処理を行い、その後に足長フィ
ルタ処理を行った場合であり、図12は先に足長フィル
タ処理を行い、その後に平滑化処理を行った場合であ
る。図11の画像は、文字の上部が大幅に欠けており、
文字パターンを明瞭に抽出するには不十分な品質であ
る。これに対して、図12の画像では、文字の輪郭が明
瞭に現れており、十分良好に文字パターンを抽出するこ
とができる。
FIGS. 11 and 12 are images obtained by performing the above-described combination of the smoothing process and the foot length filtering process on the original image of FIG. 4 and then performing the binarization process. FIG. 11 shows the case where the smoothing process is performed first, and then the foot length filter process is performed. FIG. 12 shows the case where the foot length filter process is performed first and then the smoothing process is performed. In the image of FIG. 11, the upper part of the character is largely missing,
Insufficient quality for clear extraction of character patterns. On the other hand, in the image of FIG. 12, the outline of the character appears clearly, and the character pattern can be extracted sufficiently well.

【0022】以上より、図4のように文字と背景とのコ
ントラストが場所によって大きく異なっている画像に対
しては、まず足長フィルタ処理を行い、その後に平滑化
処理を行ってから二値化処理を行えば、文字パターンを
抽出するのに十分な品質の二値画像が得られることが分
かった。図13は、本実施形態の文字検出方法の処理手
順のうち、最初のパラメータ設定の部分の手順を示した
フローチャートである。処理をスタートすると、まずst
ep10でテレビカメラ等で認識すべき文字の画像を入力
する。そして、step11で、足長フィルタ処理を行うの
に必要なパラメータを、検査対象の種類や種々の状況を
考慮してある値に設定する。次にstep12で、入力した
画像に対して足長フィルタ処理を実行し、step13で、
オペレータがその結果を判断する。オペレータが不十分
であると判断した場合には、再びstep11に戻り、必要
に応じてパラメータを設定しなおして足長フィルタ処理
をやり直す。この手順を何回か繰り返し、適当なパラメ
ータが見つかったら、そのパラメータを使うこととして
次に進む。次に、step14で、平滑化処理を行うのに必
要なパラメータをある値に設定する。そして、step15
で平滑化処理を行い、step16で、オペレータがその結
果を判断する。オペレータが不十分であると判断した場
合には、再びstep14に戻り、必要に応じてパラメータ
を設定しなおして平滑化処理をやり直す。
As described above, for an image in which the contrast between the character and the background greatly differs depending on the place as shown in FIG. 4, first, foot length filter processing is performed, then smoothing processing is performed, and then binarization processing is performed. It has been found that a binary image with sufficient quality for extracting a character pattern can be obtained by performing the processing. FIG. 13 is a flowchart showing the procedure of the first parameter setting part of the processing procedure of the character detection method of the present embodiment. When processing starts, first st
At ep10, an image of a character to be recognized by a television camera or the like is input. Then, in step 11, the parameters required for performing the foot length filter processing are set to certain values in consideration of the type of the inspection target and various situations. Next, in step 12, foot length filter processing is performed on the input image, and in step 13,
The operator determines the result. If the operator determines that the operation is insufficient, the process returns to step 11 again, where parameters are set again as necessary, and the foot length filter processing is performed again. This procedure is repeated several times, and when an appropriate parameter is found, the next step is to use the parameter. Next, in step 14, parameters required for performing the smoothing process are set to certain values. And step15
Performs a smoothing process, and at step 16, the operator determines the result. If the operator determines that the operation is insufficient, the process returns to step 14 again, where parameters are set as necessary, and the smoothing process is performed again.

【0023】一旦足長フィルタ処理及び平滑化処理のパ
ラメータが決まったら、後は連続して搬送されてくるそ
れぞれのキャップに対して、画像の入力、足長フィルタ
処理及び平滑化処理、二値化処理、文字認識処理といっ
た一連の処理が自動的に行われる。但し、足長フィルタ
処理及び平滑化処理の処理を行うたびに、毎回必要なパ
ラメータの設定を行うようにしてもよい。
Once the parameters for the foot length filter processing and smoothing processing are determined, image input, foot length filter processing and smoothing processing, and binarization are performed on each of the continuously conveyed caps. A series of processing such as processing and character recognition processing is automatically performed. However, each time the foot length filter processing and the smoothing processing are performed, the necessary parameters may be set each time.

【0024】尚、本発明は上記実施例に限定されるもの
ではなく、その要旨の範囲内で種々の変更が可能であ
る。例えば、上記実施形態では、製鉄所において鋼板コ
イルに印字された文字を認識する場合に本発明を適用し
たが、本発明は、上記実施形態以外にも、種々の分野に
適用することができる。
It should be noted that the present invention is not limited to the above embodiment, and various modifications can be made within the scope of the invention. For example, in the above embodiment, the present invention is applied to the case where a character printed on a steel plate coil is recognized in an ironworks, but the present invention can be applied to various fields other than the above embodiment.

【0025】[0025]

【発明の効果】以上説明したように、本発明によれば、
上記のように、入力されたディジタル画像データに対
し、まず足長フィルタ処理を行い、次いで平滑化処理を
行うという順序で画像処理を施すことによって、例えば
照明からの光をテレビカメラに向けて強く反射する部分
に文字の一部がかかる場合のように、入力された画像デ
ータの文字部分と背景とのコントラストが文字全体で一
様でなく場所によってコントラストが大きく異なる場合
や、文字と背景との十分なコントラスト差がない場合で
あっても、その後に二値化したときに、良好に文字パタ
ーンを抽出できる。特に、従来の方法では難しかった鋼
板コイルのような文字が印字される部分に曲率があるも
のについて文字のパターンの良好な抽出が可能となる。
したがって、このような文字について高い精度で文字認
識が可能となる文字検出方法を提供することができる。
As described above, according to the present invention,
As described above, the input digital image data is subjected to image processing in the order of first performing a foot-length filter process and then performing a smoothing process, so that, for example, light from illumination is strongly directed toward a television camera. When the contrast between the character part of the input image data and the background is not uniform throughout the entire character, such as when a part of the character is applied to the reflected part, Even if there is not a sufficient contrast difference, a character pattern can be satisfactorily extracted when binarization is performed thereafter. In particular, it is possible to satisfactorily extract a character pattern for a portion having a curvature in a portion where a character is printed, such as a steel coil, which is difficult with the conventional method.
Therefore, it is possible to provide a character detection method that enables character recognition with high accuracy for such characters.

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

【図1】本実施形態の文字検出方法を実行する装置のブ
ロック図である。
FIG. 1 is a block diagram of an apparatus that executes a character detection method according to an embodiment.

【図2】認識すべき文字が印字される本実施形態の鋼板
コイルと、照明及びカメラの相対位置を示した概略配置
図である。
FIG. 2 is a schematic layout diagram showing relative positions of a steel coil of the present embodiment on which characters to be recognized are printed, illumination, and a camera.

【図3】鋼板コイルの上部を拡大して示した拡大断面図
である。
FIG. 3 is an enlarged sectional view showing an upper part of a steel plate coil in an enlarged manner.

【図4】鋼板コイルの表面に印字した文字を、テレビカ
メラで捉えた画像(原画像)の一例を示す図である。
FIG. 4 is a diagram showing an example of an image (original image) of a character printed on the surface of a steel coil captured by a television camera.

【図5】原画像を二値化した画像を示す図である。FIG. 5 is a diagram showing an image obtained by binarizing an original image.

【図6】原画像に対し一般的な平滑化処理を行い、その
後に二値化処理を行って得られた画像を示す図である。
FIG. 6 is a diagram illustrating an image obtained by performing a general smoothing process on an original image and then performing a binarization process.

【図7】原画像に対して足長フィルタ処理を行い、その
後に二値化処理を行って得られた画像を示す図である。
FIG. 7 is a diagram showing an image obtained by performing a foot length filter process on an original image and then performing a binarization process;

【図8】原画像に対して足長フィルタ処理を行い、その
後に二値化処理を行って得られた画像を示す図である。
FIG. 8 is a diagram showing an image obtained by performing a foot length filter process on an original image and then performing a binarization process;

【図9】本実施形態で行う平滑化処理を説明するための
図である。
FIG. 9 is a diagram illustrating a smoothing process performed in the embodiment.

【図10】本実施形態で行う足長フィルタ処理を説明す
るための図である。
FIG. 10 is a diagram for explaining foot length filter processing performed in the present embodiment.

【図11】先に平滑化処理を行い、その後に足長フィル
タ処理を行ってから二値化処理して得られた画像を示す
図である。
FIG. 11 is a diagram showing an image obtained by performing a smoothing process first, then performing a foot length filter process, and then performing a binarization process.

【図12】先に足長フィルタ処理を行い、その後に平滑
化処理を行ってから二値化処理して得られた画像を示す
図である。
FIG. 12 is a diagram showing an image obtained by performing a foot length filter process first, then performing a smoothing process, and then performing a binarization process;

【図13】本実施形態の処理のうちパラメータを設定す
る部分の処理手順を示したフローチャートである。
FIG. 13 is a flowchart showing a processing procedure of a part for setting a parameter in the processing of the present embodiment.

【図14】テレビカメラで上から鋼板コイルを捉えた画
像を示す模式図である。
FIG. 14 is a schematic diagram showing an image obtained by capturing a steel plate coil from above with a television camera.

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

1 撮像手段 2 ディジタル化処理部 3 画像処理部 4 二値化処理部 5 文字認識部 6 表示部 101 ,102 ,103 鋼板コイル 11 テレビカメラ 12 照明装置 13 クレーン 20,30,31,32,33,34 画素DESCRIPTION OF SYMBOLS 1 Image pickup means 2 Digitization processing part 3 Image processing part 4 Binary processing part 5 Character recognition part 6 Display part 10 1 , 10 2 , 10 3 Steel plate coil 11 Television camera 12 Lighting device 13 Crane 20, 30, 31, 31, 32 , 33, 34 pixels

Claims (4)

【特許請求の範囲】[Claims] 【請求項1】 検出対象となる文字を含むディジタル画
像データに対し、まず足長フィルタ処理を行い、次いで
平滑化処理を行い、その結果得られた画像に対して二値
化処理を施すことによって文字パターンを抽出すること
を特徴とする文字検出方法。
1. Digital image data including a character to be detected is first subjected to a foot length filtering process, then to a smoothing process, and to a binarization process performed on the resulting image. A character detection method characterized by extracting a character pattern.
【請求項2】 前記足長フィルタ処理は、対象となる画
素の階調に第1の定数を掛けた値と、前記対象となる画
素から上下左右にn画素分(nは1より大きい整数)だ
け離れた四つの画素それぞれの階調に前記第1の定数と
は符号の異なる第2の定数を掛けた四つの値とを加算し
て得られる値を、前記対象となる画素の階調とするとい
う処理を全ての画素に対して行う処理である請求項1記
載の文字検出方法。
2. The foot length filtering process includes a step of multiplying a value obtained by multiplying a gradation of a target pixel by a first constant, and n pixels (n is an integer greater than 1) vertically and horizontally from the target pixel. A value obtained by adding four values obtained by multiplying the gradation of each of four pixels separated by a second constant having a sign different from the first constant to the gradation of the target pixel is referred to as the gradation of the target pixel. 2. The character detection method according to claim 1, wherein the process of performing the process is performed on all pixels.
【請求項3】 前記検出対象となる文字は、鋼板コイル
に印字されている文字であることを特徴とする請求項1
又は2記載の文字検出方法。
3. The character to be detected is a character printed on a steel plate coil.
Or the character detection method according to 2.
【請求項4】 検出対象となる文字を含む画像を撮像す
る撮像手段と、 前記撮像手段から出力される画像信号をディジタル化
し、所定階調のディジタル画像とするディジタル化手段
と、 前記ディジタル画像に対し、まず足長フィルタ処理を行
い、次いで平滑化処理を行う画像処理手段と、 前記画像処理手段から出力される画像信号に二値化処理
を施して二値画像とする二値化処理手段と、 前記二値画像または、二値画像を画像処理した画像に基
づいて前記文字を認識する文字認識手段と、 を具備することを特徴とする文字検出装置。
4. An image pickup means for picking up an image including a character to be detected, a digitizing means for digitizing an image signal output from the image pickup means to obtain a digital image of a predetermined gradation, On the other hand, an image processing unit that first performs a foot length filter process, and then performs a smoothing process, and a binarization processing unit that performs a binarization process on an image signal output from the image processing unit to obtain a binary image. And a character recognition unit that recognizes the character based on the binary image or an image obtained by performing image processing on the binary image.
JP8324921A 1996-12-05 1996-12-05 System and method for detecting character Pending JPH10171923A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP8324921A JPH10171923A (en) 1996-12-05 1996-12-05 System and method for detecting character

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP8324921A JPH10171923A (en) 1996-12-05 1996-12-05 System and method for detecting character

Publications (1)

Publication Number Publication Date
JPH10171923A true JPH10171923A (en) 1998-06-26

Family

ID=18171105

Family Applications (1)

Application Number Title Priority Date Filing Date
JP8324921A Pending JPH10171923A (en) 1996-12-05 1996-12-05 System and method for detecting character

Country Status (1)

Country Link
JP (1) JPH10171923A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11341739B2 (en) * 2016-02-15 2022-05-24 Nec Corporation Image processing device, image processing method, and program recording medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11341739B2 (en) * 2016-02-15 2022-05-24 Nec Corporation Image processing device, image processing method, and program recording medium

Similar Documents

Publication Publication Date Title
US4823194A (en) Method for processing gray scale images and an apparatus thereof
JP2633694B2 (en) Person detection device
JP2696211B2 (en) Method and apparatus for pattern recognition from grayscale images
JP3545506B2 (en) Specific color area extraction method and specific color area removal method
JP4334712B2 (en) Image processing system for removing vertically aligned patterns on images generated by scanning
JP3533722B2 (en) Failure inspection method and device
JP2010211498A (en) Image processing program and image processing system
JP2903923B2 (en) Car number recognition device
JPH041866A (en) Method and device for image processing
JPH10171923A (en) System and method for detecting character
US20050232472A1 (en) Method and apparatus of processing a skin print image
JPS63153682A (en) Method and apparatus for processing contrast picture
JPS62156547A (en) Detecting method for surface defect
JP3230368B2 (en) Binarization processing method
JPH07280746A (en) Apparatus for extracting flaw from metal plate surface
CN113160181B (en) Stacking profile counting method based on image recognition
JP3485975B2 (en) Specific color area extraction method and specific color area removal method
JP2002183713A (en) Method and device for processing image
JPS60116076A (en) Extracting circuit of picture
JP4170613B2 (en) Printed matter inspection method and apparatus
JP2004125629A (en) Defect detection apparatus
JPH11351835A (en) Method for extracting contour line of cutting edge by processing taken image of tool
JPH03268086A (en) Method and device for binarizing gradation image
JPH0792813B2 (en) Stamped stamp detection method and device
JP2003281538A (en) Image processor, image inspecting method and printing failure detecting method

Legal Events

Date Code Title Description
A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20030826