JPH0812682B2 - Stamped stamp detection method and device - Google Patents
Stamped stamp detection method and deviceInfo
- Publication number
- JPH0812682B2 JPH0812682B2 JP2000099A JP9990A JPH0812682B2 JP H0812682 B2 JPH0812682 B2 JP H0812682B2 JP 2000099 A JP2000099 A JP 2000099A JP 9990 A JP9990 A JP 9990A JP H0812682 B2 JPH0812682 B2 JP H0812682B2
- Authority
- JP
- Japan
- Prior art keywords
- image
- marking
- processing unit
- image signal
- embossed
- 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.)
- Expired - Lifetime
Links
Landscapes
- Character Input (AREA)
Description
【発明の詳細な説明】 [産業上の利用分野] この発明は打刻印の検出方法及び装置に係り、特に、
比較的小型の一次圧延鋼材に打刻されたマーキングをテ
レビカメラで撮影し、これを画像処理して内容を認識す
る打刻印の検出方法及び装置に関するものである。Description: TECHNICAL FIELD The present invention relates to a stamp detection method and device, and more particularly,
The present invention relates to a method and an apparatus for detecting an embossed mark in which a marking stamped on a relatively small-sized primary rolled steel material is photographed by a television camera and the image is processed to recognize the content.
[従来の技術] 例えば、比較的小型の一次圧延鋼材(例えばビレッ
ト,ブルーム)に対し、数字,文字,記号などをマーキ
ングし、このマーキングを自動的に読み取って認識し、
これを製造,加工,在庫管理などに利用している。[Prior Art] For example, a relatively small primary rolled steel material (for example, billet, bloom) is marked with numbers, letters, symbols, etc., and this marking is automatically read and recognized,
This is used for manufacturing, processing, inventory control, etc.
このマーキングの形成は、数字,文字,記号などが左
右反転に形成された印字部材(文字金型)を一次圧延鋼
材の端面に押圧して打刻し、刻印画に数字,文字,記号
などが溝状に形成されるようにしている。The marking is formed by pressing a printing member (character die) in which numbers, letters, symbols, etc. are reversed in the left-right direction on the end surface of the primary rolled steel material to engrave it, and engraving the numbers, letters, symbols, etc. It is formed in a groove shape.
この1つの方法として、一次圧延鋼材(以下、刻印材
という)に形成された打刻印字像をテレビカメラなどの
撮像装置により多値の原画像信号として得、これを変換
して得る二値の最終画像を用いて文字を認識するものが
ある。そして、文字認識用の最終画像を得るための画像
処理として、例えば、特開昭61−80372号がある。これ
に示された技術は、多値の原画像を二値の最終画像に変
換する二値化処理において、画像全体に対して1つのし
きい値を用いるものとし、このしきい値を最終画像の低
輝度領域の数が設定値に合致するまで更新して決定する
ことを特徴としている。As one of the methods, a stamped and printed image formed on a primary rolled steel material (hereinafter referred to as a marking material) is obtained as a multivalued original image signal by an image pickup device such as a television camera, and a binary image obtained by conversion is obtained. Some recognize characters using the final image. As image processing for obtaining a final image for character recognition, there is, for example, JP-A-61-80372. The technique shown therein uses one threshold value for the entire image in the binarization process for converting a multi-valued original image into a binary final image. It is characterized in that it is updated and determined until the number of low-luminance areas in (3) matches the set value.
[発明が解決しようとする課題] しかし、上記のような従来の打刻印の検出装置におい
ては、1つのみのしきい値を用いて画像全体に対して二
値化処理を行っているため、誤認識をする場合がある。
すなわち、打刻面は平坦でなく、また錆や汚染を生じて
いることが多く、その発生の程度や形状状況も一定では
ない。このため、汚れなどが刻印と共に検出され、誤認
識や認識不能を招くことになる。[Problems to be Solved by the Invention] However, in the conventional stamp detection device as described above, since the binarization processing is performed on the entire image using only one threshold value, There is a case of misrecognition.
That is, the stamped surface is not flat, and rust and contamination are often generated, and the degree of occurrence and the shape condition are not constant. For this reason, stains and the like are detected together with the marking, resulting in erroneous recognition and unrecognizable result.
この発明は、かかる従来技術の問題点を解決するため
になされたもので、刻印面の状態にかかわらず明瞭な最
終画像を得ることのできる打刻印の検出方法及び装置を
提供することにある。The present invention has been made in order to solve the problems of the prior art, and it is an object of the present invention to provide a method and an apparatus for detecting an embossed mark that can obtain a clear final image regardless of the state of the imprinted surface.
[課題を解決するための手段] 上記の目的を達成するために、この発明は、打刻面の
打刻印字像を撮像し、その画像信号から刻印材の向き及
び各打刻印字像の画像上における位置を検出し、これに
基づいて前記画像信号を打刻印字像毎に分割して複数の
打刻印字像を得、この複数の打刻印字像の各々について
個別に二値化処理を施して文字認識用の情報とするよう
にしたものである。[Means for Solving the Problems] In order to achieve the above object, the present invention captures an embossed print image of an embossing surface, and from the image signal, the direction of the marking material and the image of each embossed print image. The position on the upper side is detected, and based on this, the image signal is divided for each embossed print image to obtain a plurality of embossed print images, and binarization processing is individually performed for each of the plurality of embossed print images. It is applied to obtain information for character recognition.
そして、鮮明な刻印画像を得るために、更に、複数の
予め定めた方向及び距離分だけ前記画像信号を移動させ
て複数の移動画像信号を得、この移動画像信号の各々を
加算して得た刻印像強調画像信号を前記刻印材の向き検
出処理を施すことが望ましい。Then, in order to obtain a clear engraved image, the image signals are further moved by a plurality of predetermined directions and distances to obtain a plurality of moving image signals, and the moving image signals are added and obtained. It is desirable that the marking image-enhanced image signal is subjected to the marking material orientation detection processing.
さらに、装置構成として、刻印材の打刻面を斜め方向
から照明する照明手段と、前記打刻面を撮像する撮像手
段と、該手段による原画像信号の特定範囲の濃度射影に
基づいて刻印材の向きを検出する刻印材向き検出処理部
と、前記原画像信号について刻印材の特定範囲の濃度射
影の積算値から変化に基づいて刻印像の位置を求める刻
印位置検出処理部と、該処理部による刻印位置情報に基
づいて刻印像の印字単位に分離する刻印画像分離処理部
と、該手段によって分離された刻印別画像信号の各々に
対して独立に二値化を行う二値化処理部とからなる構成
が推奨できる。Further, as an apparatus configuration, an illuminating means for illuminating the stamped surface of the stamping material from an oblique direction, an imaging means for imaging the stamped surface, and a stamping material based on the density projection of a specific range of the original image signal by the means. A marking material orientation detection processing unit that detects the orientation of the marking image, a marking position detection processing unit that obtains the position of the marking image based on a change from the integrated value of the density projections of the marking material in a specific range of the original image signal, and the processing unit. A marking image separation processing unit that separates the marking image into print units based on the marking position information, and a binarization processing unit that independently binarizes each marking-specific image signal separated by the means. A configuration consisting of is recommended.
また、鮮明な刻印画像を得るために、前記刻印材向き
検出処理部及び刻印位置検出処理部に印加する原画像信
号に対し、複数の予め定めた方向及び距離分だけ画像を
移動させて強調処理を行う刻印画像強調処理部を設ける
ことができる。Further, in order to obtain a clear marking image, the image is moved by a plurality of predetermined directions and distances with respect to the original image signal applied to the marking material direction detection processing unit and the marking position detection processing unit, and emphasis processing is performed. It is possible to provide a stamped image enhancement processing unit for performing.
[作用] 上記のように構成することによって、刻印材の刻印面
を撮像して得られた原画像信号に対し、刻印材の向きが
正画像位置から90度単位のいずれの回転角かが検出さ
れ、また、刻印材の特定範囲の濃度射影の積算値の凹凸
から各々の刻印の位置が得られる。これに基づいて刻印
毎に分離された刻印別画像を二値化することにより、文
字認識のための最終画像を得ることができる。したがっ
て、文字毎に最適な二値化しきい値を設定できるため、
文字毎に独立に二値化が行え、文字が欠けるなどの事態
は生ぜず、文字パターンを良好に抽出することができ
る。[Operation] With the configuration described above, it is possible to detect which rotation angle of the marking material is in 90 degree units from the normal image position with respect to the original image signal obtained by imaging the marking surface of the marking material. Further, the position of each marking is obtained from the unevenness of the integrated value of the density projection in the specific range of the marking material. Based on this, the final image for character recognition can be obtained by binarizing the images for each marking separated for each marking. Therefore, since the optimal binarization threshold can be set for each character,
Binarization can be performed for each character independently, and a character pattern can be satisfactorily extracted without causing a situation such as a missing character.
また、刻印画像強調処理を行うことにより、背景と文
字との濃度差を明確にできるので、鮮明な刻印画像を得
ることができる。Further, since the density difference between the background and the character can be clarified by performing the marking image enhancement process, a clear marking image can be obtained.
[実施例] 第1図はこの発明の一実施例を示すブロック図であ
る。[Embodiment] FIG. 1 is a block diagram showing an embodiment of the present invention.
撮像装置1は刻印材(例えば、ビレット)の打刻面を
撮影するものであり、例えばテレビカメラが用いられ
る。撮像装置1には打刻検出装置2が接続され、この打
刻検出装置2には文字認識処理部3-1〜3-Nが接続されて
いる。The imaging device 1 captures an image of a stamped surface of a marking material (for example, a billet), and a television camera is used, for example. An embossing detection device 2 is connected to the imaging device 1, and the character recognition processing units 3 -1 to 3 -N are connected to the embossing detection device 2.
撮像装置1は、第2図に示すように、刻印材4の打刻
面に対向する如くに配設され、また、打刻面を照明する
ために複数のランプ5が配設されている。As shown in FIG. 2, the image pickup device 1 is arranged so as to face the engraved surface of the marking material 4, and a plurality of lamps 5 are arranged to illuminate the engraved surface.
打刻画像の抽出が確実に行われるためには、背景と文
字との濃度差(コントラスト)が大きいことが望まれ
る。この濃度差は、照明光の照射方向、文字形状で
決まる文字の実行直線長(なお、ここでは各照明方向に
平行な直線を考えたとき、その直線と文字とが重なる長
さの一番長いものを実効直線長と定義する)、文字の
打刻深さなどに関係する。そして、抽出を良好にするた
めには、文字の打刻が深く、実効直線長を短くするのが
よく、実効直線長を短くするためにはランプ5による照
明を打刻面に対して斜め方向から行うのがよい。In order to reliably extract the stamped image, it is desired that the density difference (contrast) between the background and the character is large. This density difference is the straight line length of a character that is determined by the illumination direction of the illumination light and the character shape. (Here, when a straight line parallel to each illumination direction is considered, the length of the line that overlaps the character is the longest. The thing is defined as the effective straight line length), and is related to the character's embossing depth. In order to improve the extraction, it is preferable that the characters are deeply stamped and the effective straight line length is shortened. To shorten the effective straight line length, the illumination by the lamp 5 is oblique to the stamped surface. It is better to start from
打刻検出装置2は、撮像装置1からの原画像信号11中
の刻印像のみを強調する処理を施す刻印画像強調処理部
6,刻印材向き検出処理部7,刻印位置検出処理部8,刻印画
像分離処理部9、及び二値化処理部10-1〜10-Nから構成
されている。The marking detection device 2 is a marking image enhancement processing unit that performs processing for enhancing only the marking image in the original image signal 11 from the imaging device 1.
The marking material orientation detection processing unit 7, the marking position detection processing unit 8, the marking image separation processing unit 9, and the binarization processing units 10 -1 to 10 -N .
次に、第1図に示す構成の概略動作について説明す
る。Next, the general operation of the configuration shown in FIG. 1 will be described.
まず、撮像装置1によって第2図に示す方向から刻印
材4の打刻面を撮像し、刻印像を多値の原画像信号11と
して得る。これに対し刻印画像強調処理部6によって刻
印像のみを強調する処理を施し、刻印画像強調信号12を
出力する。ついで、刻印材向き検出処理部7によって刻
印材の向きを検出し、刻印材向き情報13を出力する。First, the engraved surface of the marking material 4 is imaged from the direction shown in FIG. 2 by the imaging device 1 to obtain the engraved image as a multivalued original image signal 11. On the other hand, the marking image emphasizing processing unit 6 performs processing for emphasizing only the marking image, and outputs the marking image emphasizing signal 12. Then, the marking material orientation detection processing unit 7 detects the orientation of the marking material and outputs the marking material orientation information 13.
さらに、刻印画像強調信号12及び刻印材向き情報13に
基づいて刻印位置検出処理部8により刻印位置を検出す
る。この刻印位置検出処理部8によって得られる刻印位
置情報14及び原画像信号11に基づいて、刻印画像分離処
理部9により原画像信号11を各々の刻印毎に分離させた
N個の刻印別画像信号15を得る。この刻印別画像信号15
は、N個の中に1つだけの刻印像を含んでいる。そこ
で、二値化処理部10-1〜10-Nによって各々の刻印毎に独
立に二値化処理を施すことにより、最終画像16-1〜16-N
が得られる。この最終画像16-1〜16-Nに対し、文字認識
処理部3-1〜3-Nによって文字認識処理を実行する。Further, the marking position detection processing unit 8 detects the marking position based on the marking image enhancement signal 12 and the marking material orientation information 13. Based on the marking position information 14 and the original image signal 11 obtained by the marking position detection processing unit 8, the marking image separation processing unit 9 separates the original image signal 11 for each marking, and N marking-specific image signals. Get 15. Image signal according to this stamp 15
Contains only one of the N imprints. Therefore, the binarization processing units 10 -1 to 10 -N independently perform binarization processing on each of the markings to obtain final images 16 -1 to 16 -N.
Is obtained. The character recognition processing units 3 -1 to 3 -N perform character recognition processing on the final images 16 -1 to 16 -N .
次に、第3図を参照して刻印画像強調処理部6の詳細
について説明する。Next, details of the marking image enhancement processing unit 6 will be described with reference to FIG.
刻印材4に形成されている刻印は、照明によって生じ
る影(以下、この影による像を刻印像という)が撮影さ
れることにより、画像として捉えられる。したがって、
撮像装置1にとって、刻印像が刻印材向き検出処理や刻
印位置検出処理を施すに十分なほどに鮮明であれば、刻
印画像強調処理は必要ではない。しかし、一般に刻印像
を鮮明に得ることは難しく、刻印画像強調処理を施さな
ければ、良好な画像検出は得ることはできない。The marking formed on the marking material 4 is captured as an image by photographing a shadow generated by illumination (hereinafter, an image formed by this shadow is referred to as a marking image). Therefore,
For the imaging apparatus 1, if the marking image is clear enough to perform the marking material orientation detection processing and the marking position detection processing, the marking image enhancement processing is not necessary. However, it is generally difficult to obtain a marked image clearly, and good image detection cannot be obtained unless the marked image enhancement processing is performed.
刻印画像強調処理部6は、画像移動処理部61-1〜6
1-N,加重値設定部62-1〜62-N,乗算部63-1〜63-N,及び加
算部64から構成されている。The stamped image enhancement processing unit 6 includes image movement processing units 61 -1 to 6-1.
1- N , weight value setting units 62 -1 to 62 -N , multiplication units 63 -1 to 63 -N , and an addition unit 64.
画像移動処理部61-1〜61-Nは、原画像信号11に対して
予め定めた方向及び距離分だけ原画像信号11を移動さ
せ、方向及び距離を代えた複数の移動画像信号65を得
る。この移動画像信号65の各々に対し、加重値設定部62
-1〜62-Nの各加重値設定を乗算部63-1〜63-Nによって乗
算することにより、加重移動画像信号66を得る。乗算部
63-1〜63-Nの各出力信号は、加算部64によって加算する
ことにより、刻印画像強調信号12を得ることができる。The image movement processing units 61 -1 to 61 -N move the original image signal 11 by a predetermined direction and distance with respect to the original image signal 11 to obtain a plurality of moving image signals 65 with different directions and distances. . For each of the moving image signals 65, the weight value setting unit 62
The weighted moving image signal 66 is obtained by multiplying the respective weight value settings of -1 to 62 -N by the multiplication units 63 -1 to 63 -N . Multiplier
The output signals of 63 -1 to 63 -N can be added by the addition unit 64 to obtain the stamped image enhancement signal 12.
この刻印画像強調処理部6での処理を数式で示せば、
次のようになる。If the process in the stamped image enhancement processing unit 6 is expressed by a mathematical expression,
It looks like this:
すなわち、原画像信号11の座標(x,y)の濃度値をf
(x,y)とすると、刻印強調画像の座標(x,y)の濃度値
g(x,y)は、次式で与えられる。That is, the density value of the coordinates (x, y) of the original image signal 11 is f
Assuming that (x, y), the density value g (x, y) at the coordinates (x, y) of the marking-enhanced image is given by the following equation.
ここで、xi,yiは、原画像信号を画像移動処理させた
時のx,y方向の移動量であり、aiは加重定数を示してい
る。また、上式の定数(N,xi,yi,ai)は、対象とする原
画像信号を特徴から定めることができる。最適な定数を
選ぶことによって、ノイズ分を強調することなく、刻印
画像のみを強調することができる。 Here, xi and yi are movement amounts in the x and y directions when the original image signal is subjected to image movement processing, and ai is a weighting constant. Further, the constants (N, xi, yi, ai) in the above equation can determine the target original image signal from the characteristics. By selecting the optimum constant, it is possible to enhance only the imprinted image without enhancing the noise component.
次に、第4図を参照して刻印材向き検出処理部7の処
理の詳細について説明する。Next, the details of the processing of the marking material orientation detection processing unit 7 will be described with reference to FIG.
刻印材4の刻印(本実施例では、3段の数字の組合せ
から成り、第1段が5桁、第2段が2桁、第3段が1桁
から成る)が撮像装置1にとって最適な位置で送られて
来るとは限らない。そこで、刻印画像強調信号12(刻印
画像強調処理部6を設けない構成にあっては原画像信号
11)の画像から縦,横を判定し、正位置による画像に変
換する。具体的には、刻印画像の縦,横方向の濃度射影
を得、刻印の配置が刻印材4の中心を回転中心として、
点対象でなければ刻印材4の向きにより縦,横の積算値
a,bの最大値位置c,dもしくは大きさが異る。The marking of the marking material 4 (in this embodiment, a combination of numbers in three stages, the first stage is composed of 5 digits, the second stage is composed of 2 digits, and the third stage is composed of 1 digit) is most suitable for the image pickup apparatus 1. It is not always sent at the location. Therefore, the stamped image enhancement signal 12 (or the original image signal in the configuration without the stamped image enhancement processing unit 6)
Vertical and horizontal are determined from the image in 11), and the image is converted to an image in the correct position. Specifically, the density projections in the vertical and horizontal directions of the stamped image are obtained, and the markings are arranged with the center of the stamping material 4 as the center of rotation.
If it is not a point object, vertical and horizontal integrated values depending on the orientation of the marking material 4
The maximum value position c, d of a, b or the size is different.
この情報に基づいて解析を行うことにより、刻印材4
の向きを検出することができる。例えば、最大値位置の
交点が、刻印材4の左上,右上,右下,左下のいずれに
有るかにより、回転角を0,90度,180度,270度のいずれか
にあるものと判定する。By performing an analysis based on this information, the marking material 4
The direction of can be detected. For example, it is determined that the rotation angle is 0, 90 degrees, 180 degrees, or 270 degrees depending on whether the intersection of the maximum value positions is the upper left, upper right, lower right, or lower left of the marking material 4. .
次に、第5図を参照して刻印位置検出処理部8の処理
の詳細について説明する。Next, details of the processing of the marking position detection processing unit 8 will be described with reference to FIG.
この処理は、刻印画像強調信号12または刻印材向き情
報13に対し、刻印材4の特定範囲(この実施例では、第
5図中の濃度射影算出範囲l)について濃度射影を求
め、その積算値の凹凸を検出することにより、刻印の位
置を検出している。第5図においては、刻印の上段の5
つの数字の検出を行っているが、同様の処理を繰り返す
ことにより、全ての刻印の位置を検出することが可能で
ある。In this process, the density projection is calculated for the marking image emphasis signal 12 or the marking material orientation information 13 in a specific range of the marking material 4 (in this embodiment, the density projection calculation range 1 in FIG. 5), and the integrated value thereof is obtained. The position of the marking is detected by detecting the unevenness of the. In FIG. 5, 5 in the upper line of the marking
Although two numbers are detected, it is possible to detect the positions of all the markings by repeating the same process.
次に、第6図を参照して二値化処理部10-1〜10-Nの詳
細について説明する。Next, the details of the binarization processing units 10 -1 to 10 -N will be described with reference to FIG.
この処理は、刻印画像分離処理部9で得られた刻印別
画像(多値画像)を二値化するものである。二値化処理
部10-1〜10-Nはいずれも同一の構成がとられ、その1つ
の構成を示したのが第6図である。This processing is to binarize the marking-specific image (multi-valued image) obtained by the marking image separation processing unit 9. The binarization processing units 10 -1 to 10 -N have the same configuration, and FIG. 6 shows one configuration thereof.
二値化処理部10-1は、第6図に示すように、刻印別画
像信号15に対し、しきい値を決定するしきい値決定処理
部101,これによって決定されたしきい値102及び刻印別
画像信号15に基づいて二値化処理部103,二値化処理部10
3による二値化画像104に対してノイズ除去処理を行うノ
イズ除去処理部105から構成されている。As shown in FIG. 6, the binarization processing unit 10 -1 includes a threshold value determination processing unit 101 that determines a threshold value for the marking-based image signal 15, a threshold value determination unit 102 that determines the threshold value, The binarization processing unit 103 and the binarization processing unit 10 based on the image signal 15 for each marking
It is composed of a noise removal processing unit 105 that performs noise removal processing on the binarized image 104 according to 3.
この構成における概略動作は、刻印別画像(多値画
像)の濃度ヒストグラムを検出し、これによって決定さ
れた二値化しきい値に基づいて刻印別画像を二値化する
ものである。このままでは、様々なノイズを含んでいる
ため、二値化画像に対しノイズ除去処理部105によって
ノイズ除去処理を実施する。The general operation in this configuration is to detect the density histogram of the marking-based image (multi-valued image) and binarize the marking-based image based on the binarization threshold value determined thereby. As it is, since it contains various noises, the noise removal processing unit 105 performs noise removal processing on the binarized image.
この二値化処理を第5図に示した各ビレットを例にし
て、第7図,第8A図,第8B図及び第9図を参照して説明
する。This binarizing process will be described with reference to FIGS. 7, 8A, 8B and 9 by taking each billet shown in FIG. 5 as an example.
次に、二値化処理部10-1〜10-Nの動作の詳細について
説明する。Next, details of operations of the binarization processing units 10 -1 to 10 -N will be described.
第7図に示すように、入力画像に対し各1文字が枠で
囲まれるように区分し、枠w1〜w8を割り当てる。この枠
w1〜w8の各々に対し、枠内を判別しきい値法で二値化し
(しきい値:th1、分離度b1)、二値化画像wa1を得る(S
81)。ついで、残った領域の面積ar1を測定し(S82)、
第9図のように、枠内のしきい値th1以上の濃度を持つ
点について(画素の数)判別しきい値法で二値化処理
(しきい値:th2、分離度:b2)し、二値化画像wa2を得る
(S83)。As shown in FIG. 7, the input image is divided so that each character is surrounded by a frame, and the frames w1 to w8 are assigned. This frame
For each of w1 to w8, the inside of the frame is binarized by the discriminant threshold method (threshold value: th1, separation b1), and a binarized image wa1 is obtained (S
81). Then, measure the area ar1 of the remaining area (S82),
As shown in FIG. 9, binarization processing (threshold value: th2, degree of separation: b2) is performed on a point having a density equal to or greater than the threshold value th1 in the frame (the number of pixels) by the discrimination threshold method, A binarized image wa2 is obtained (S83).
続いて残った領域の面積ar2を測定し(S84)、分離度
b1とb2を比較する(S85)。S85において、b1>b2であれ
は、第8B図のフローへ移行し、b2>b1であれば第8B図
のフローへ移行する。Subsequently, the area ar2 of the remaining region is measured (S84) and the degree of separation is determined.
b1 and b2 are compared (S85). In S85, if b1> b2, the flow moves to the flow of FIG. 8B, and if b2> b1, the flow moves to the flow of FIG. 8B.
フローでは面積ar1と面積しきい値arthを比較し、a
r1<arthであれば、以後の処理対象画像をwa1にする(S
87)。また、ar1>arthであれば、以後の処理対象画像
をwa2にする(S88)。このS88の処理は、S85でフロー
が選択された場合にも実行される。以上のS81〜88まで
が、第6図に示したしきい値決定処理部101及びしきい
値102の処理内容に該当する。In the flow, the area ar1 is compared with the area threshold arth, and a
If r1 <arth, the image to be processed thereafter is set to wa1 (S
87). If ar1> arth, the image to be processed thereafter is set to wa2 (S88). The process of S88 is also executed when the flow is selected in S85. The above S81 to S88 correspond to the processing contents of the threshold value determination processing unit 101 and the threshold value 102 shown in FIG.
S86またはS88の処理が終了すると、処理対象画像内の
特徴量を測定する(S89)。ついで、面積が30画素(pi
x:ピクセル)未満のものを除去し(S90)、さらに面積
率が0.5以上のものを除去する(S91)。S89〜S91まで
が、第6図に示したノイズ除去処理部105の処理内容に
該当する。When the processing of S86 or S88 is completed, the feature amount in the processing target image is measured (S89). Next, the area is 30 pixels (pi
Those smaller than (x: pixels) are removed (S90), and those having an area ratio of 0.5 or more are removed (S91). S89 to S91 correspond to the processing contents of the noise removal processing unit 105 shown in FIG.
ところで、刻印材4は1本単位で撮像装置1の撮影領
域に搬送されてくるとは限らず、数本が束ねられた状態
で搬送されて来る場合がある。この場合には、1本づつ
識別したうえで個々の刻印を認識する必要がある。この
処理について、以下に説明する。By the way, the marking material 4 is not always conveyed to the photographing region of the image pickup apparatus 1 one by one, but may be conveyed in a bundle of several marking materials. In this case, it is necessary to identify each stamp after identifying them one by one. This process will be described below.
ここでは、第10図に示すように、3本の刻印材が撮影
領域にあり、その中央に1本が位置し、この両側に所定
の間隔をもって2本の刻印材が位置している場合を例に
説明する。そして、撮影領域の中心から十字形に縦,横
に細長の枠w10,w20,w30,w40を設定する。また、入力画
像の分解能は、例えば、0.305×0.305mm/1画素のレベル
とし、また、枠wの幅を100画素(pix)とし、枠の長さ
を256画素としている。Here, as shown in FIG. 10, there are three marking materials in the photographing area, one marking material is located in the center of the photographing area, and two marking materials are positioned on both sides of the marking material at a predetermined interval. An example will be explained. Then, elongated frames w10, w20, w30, and w40 are set horizontally and vertically from the center of the photographing area. The resolution of the input image is, for example, 0.305 × 0.305 mm / 1 pixel level, the width of the frame w is 100 pixels (pix), and the length of the frame is 256 pixels.
次に、第11図,第12図及び第13図を参照して、刻印材
の特定化について説明する。Next, the specification of the marking material will be described with reference to FIGS. 11, 12, and 13.
3本の刻印材は、相互に密着した状態で束ねられてい
るが、その両端の周縁部は丸みを有しているため、隣接
間及び周縁部の外側には刻印よりも深い溝が形成されて
いる。したがって、枠内を二値化していくと、刻印とは
明らかに異なる二値レベルの変化点が生じ、この変化点
位置を刻印面の周縁と見なすことができる。The three marking materials are bundled in close contact with each other, but since the peripheral edges of both ends are rounded, a groove deeper than the marking is formed between the adjacent markings and outside the peripheral edges. ing. Therefore, when the inside of the frame is binarized, a change point of a binary level that is clearly different from the marking occurs, and the position of this changing point can be regarded as the peripheral edge of the marking surface.
具体的には、まず、上記の枠w10,w20,w30,w40内の各
々の画像に対し、判別しきい値法によって二値化処理を
行う(S121)。ついで、二値化結果を用いて枠w10,w20,
w30,w40の各々に対し、中心から外側に向って、その長
さ方向に順次プロフィールを測定していくと、第11図に
示すように、抽出対象の刻印材4の刻印面の周縁と刻印
材間の間隙(或いは、開放された空間との間)とが接す
る位置でプロフィールは大きく変化し、変化点h1(枠w1
0に存在),変化点h2(枠w20に存在),変化点h3(枠w3
0に存在)、変化点h4(枠w40に存在)、が得られる(S1
22)。この変化点で囲まれる部分を刻印材4の端面であ
ると確定し(S123)これを画像処理上では第13図に示す
ように白にセットし、以後、第8A図及び第8B図に示した
手順により刻印検出の処理を行い、最終画像を得る。Specifically, first, binarization processing is performed on each image in the above-mentioned frames w10, w20, w30, w40 by the discrimination threshold method (S121). Then, using the binarization result, the frames w10, w20,
For each of w30 and w40, when the profile is sequentially measured from the center to the outside in the lengthwise direction, as shown in FIG. 11, the peripheral edge of the marking surface of the marking material 4 to be extracted and the marking The profile changes greatly at the position where the gap between the materials (or between the open spaces) comes into contact, and the change point h1 (frame w1
Existing in 0), change point h2 (existing in frame w20), change point h3 (existing in frame w3
Existing in 0), the change point h4 (existing in the frame w40), (S1)
twenty two). The part surrounded by these change points is determined to be the end face of the marking material 4 (S123), and this is set to white as shown in FIG. 13 on the image processing, and then shown in FIGS. 8A and 8B. The marking detection process is performed by the procedure described above to obtain the final image.
次に、本発明の具体的な実施例について説明する。 Next, specific examples of the present invention will be described.
ここでは、刻印材4が約120mm×120mmの角ビレット
で、端面に製品番号が打刻されたものとし、この製品番
号を打刻検出装置2によって検出し、これを文字認識処
理部3-1〜3-Nによって文字認識している。また、刻印画
像強調処理部6における各定数は次の如くとした。Here, it is assumed that the marking material 4 is a square billet of about 120 mm × 120 mm, and the product number is stamped on the end face. The product number is detected by the marking detection device 2, and this is detected by the character recognition processing unit 3 -1. ~ 3 -N recognizes characters. Further, the respective constants in the marking image enhancement processing unit 6 are set as follows.
N=5(xi,yi,ai) =(0,0,4),(4,0,-1),(-4,0,-1),(0,4,-1),(0,-4,-1) この結果、従来技術による検出では最終画像に部分的
な錆や汚れが残り、その認識率は76%程度であった。し
かし、本発明による検出では、刻印のみの明瞭な最終画
像を得ることができ、認識率は95%に達することが確認
された。N = 5 (xi, yi, ai) = (0,0,4), (4,0, -1), (-4,0, -1), (0,4, -1), (0, -4, -1) As a result, in the detection by the conventional technique, partial rust or stain remained on the final image, and the recognition rate was about 76%. However, in the detection according to the present invention, it was confirmed that a clear final image having only the marking can be obtained, and the recognition rate reaches 95%.
[発明の効果] 本発明は上記の通り構成されているので、次に記載す
る効果を奏する。[Effects of the Invention] Since the present invention is configured as described above, it has the effects described below.
請求項(1)の打刻印の検出方法によれば、打刻面の
打刻印字像を撮像し、その画像信号から刻印材の向き及
び各打刻印字像の画像上における位置を検出し、これに
基づいて前記画像信号を打刻印字像毎に分割して複数の
打刻印字像を得、この複数の打刻印字像の各々について
個別に二値化処理を施して文字認識用の情報とするよう
にしたので、文字毎に独立に二値化が行え、文字が欠け
るなどの事態は生ぜず、文字パターンを良好に抽出する
ことができる。According to the method of detecting an embossed mark of claim (1), an embossed printed image of the embossed surface is captured, and the direction of the engraved material and the position of each embossed printed image on the image are detected from the image signal, Based on this, the image signal is divided for each stamp print image to obtain a plurality of stamp print images, and each of the plurality of stamp print images is individually binarized to obtain information for character recognition. Therefore, the binarization can be performed for each character independently, and the character pattern can be satisfactorily extracted without causing a situation such as a missing character.
請求項(2)の打刻印の検出方法によれば、複数の予
め定めた方向及び距離分だけ前記画像信号を移動させて
複数の移動画像信号を得、この移動画像信号の各々を加
算して得た刻印像強調画像信号を前記刻印材の向き検出
処理に用いるようにしたので、背景と文字との濃度差を
明確にできるので、鮮明な刻印画像を得ることができ
る。According to the stamp detection method of claim (2), a plurality of moving image signals are obtained by moving the image signals by a plurality of predetermined directions and distances, and the moving image signals are added together. Since the obtained marking image-enhanced image signal is used for the direction detection processing of the marking material, the density difference between the background and the character can be clarified, and a clear marking image can be obtained.
請求項(3)の打刻印の検出装置によれば、刻印材の
打刻面を斜め方向から照明する照明手段と、前記打刻面
を撮像する撮像手段と、該手段による原画像信号の特定
範囲の濃度射影に基づいて刻印材の向きを検出する刻印
材向き検出処理部と、前記原画像信号について刻印材の
特定範囲の濃度射影の積算値から変化に基づいて刻印像
の位置を求める刻印位置検出処理部と、該処理部による
刻印位置情報に基づいて刻印像の印字単位に分離する刻
印画像分離処理部と、該手段によって分離された刻印別
画像信号の各々に対して独立に二値化を行う二値化処理
部とを設けるようにしたので、文字毎に独立に二値化が
行え、文字が欠けるなどの事態は生ぜず、文字パターン
を良好に抽出することができる。According to the embossing mark detection apparatus of claim (3), the illumination means for illuminating the embossing surface of the engraving material from an oblique direction, the imaging means for imaging the embossing surface, and the specification of the original image signal by the means. A marking material orientation detection processing unit that detects the orientation of the marking material based on the density projection of the range, and a marking that determines the position of the marking image based on the change from the integrated value of the density projection of the marking material in the specific range of the original image signal. A position detection processing unit, a marking image separation processing unit that separates the marking image into printing units based on the marking position information by the processing unit, and a binary value independent for each of the marking-specific image signals separated by the means. Since the binarization processing unit for performing the binarization is provided, the binarization can be performed for each character independently, and the character pattern can be satisfactorily extracted without causing a situation such as missing of the character.
請求項(4)の打刻印の検出装置によれば、前記刻印
材向き検出処理部及び刻印位置検出処理部に印加する原
画像信号に対し、複数の予め定めた方向及び距離分だけ
画像を移動させて強調処理を行う刻印画像強調処理部を
設けたので、背景と文字との濃度差を明確にできるの
で、鮮明な刻印画像を得ることができる。According to the marking detection device of claim (4), the image is moved by a plurality of predetermined directions and distances with respect to the original image signal applied to the marking material orientation detection processing unit and the marking position detection processing unit. Since the engraved image emphasizing processing unit for performing the emphasizing process is provided, the density difference between the background and the character can be clarified, so that a clear engraved image can be obtained.
第1図はこの発明の一実施例を示すブロック図、第2図
は第1図に示す撮像装置の取り付け及び照明手段を示す
説明図、第3図は刻印画像強調処理部の詳細を示すブロ
ック図、第4図は刻印材向き検出処理部の処理を示す説
明図、第5図は刻印位置検出処理部の処理を示す説明
図、第6図は二値化処理部の詳細を示すブロック図、第
7図は入力画像の枠決め処理を示す説明図、第8A図及び
第8B図は二値化処理部の処理を示すフローチャート、第
9図はしきい値設定を示す説明図、第10図は複数の刻印
材から対象の1本を特定する処理を示す説明図、第11図
は刻印材を特定するためのプロフィール処理を示す変化
点検出特性図、第12図は変化点を求める処理を示すフロ
ーチャート、第13図は変化点に基づいて特定した刻印材
のマスク画像図である。 図中、 1:撮像装置、2:打刻検出装置 3-1〜3-N:文字認識処理部 4:刻印材、5:ランプ 7:刻印材向き検出処理部 8:刻印位置検出処理部 9:刻印画像分離処理部 10-1〜10-N:二値化処理部 11:原画像信号 12:刻印画像強調信号 13:刻印材向き情報 14:刻印位置情報 15:刻印別画像信号 16-1〜16-N:最終画像 61-1〜61-N:画像移動処理部 62-1〜62-N:加重値設定部 63-1〜63-N:乗算部 64:加算部 101:しきい値決定処理部 103:二値化処理部 105:ノイズ除去処理部FIG. 1 is a block diagram showing an embodiment of the present invention, FIG. 2 is an explanatory view showing attachment and illumination means of the image pickup apparatus shown in FIG. 1, and FIG. 3 is a block showing details of a stamped image enhancement processing section. 4 and 5 are explanatory views showing the processing of the marking material orientation detection processing unit, FIG. 5 is an explanatory drawing showing the processing of the marking position detection processing unit, and FIG. 6 is a block diagram showing the details of the binarization processing unit. , FIG. 7 is an explanatory view showing the framing process of the input image, FIGS. 8A and 8B are flowcharts showing the process of the binarization processing unit, FIG. 9 is an explanatory view showing the threshold setting, and FIG. The figure is an explanatory view showing the process of specifying one target from a plurality of marking materials, Fig. 11 is a change point detection characteristic diagram showing a profile process for specifying the marking material, and Fig. 12 is a process for obtaining a change point. 13 is a mask image diagram of the marking material specified based on the change points. In the figure, 1: imaging device, 2: marking detection device 3 -1 to 3 -N : character recognition processing unit 4: marking material, 5: lamp 7: marking material orientation detection processing unit 8: marking position detection processing unit 9 : Stamped image separation processing unit 10 -1 to 10 -N : Binarization processing unit 11: Original image signal 12: Stamped image enhancement signal 13: Stamped material orientation information 14: Stamped position information 15: Stamped image signal 16 -1 ~ 16 -N : Final image 61 -1 ~ 61 -N : Image movement processing part 62 -1 ~ 62 -N : Weight value setting part 63 -1 ~ 63 -N : Multiplying part 64: Addition part 101: Threshold value Decision processing unit 103: Binarization processing unit 105: Noise removal processing unit
Claims (4)
よって得られた刻印画像の縦、横方向の濃度射影を求
め、その積算値の縦、横方向各々の最大値位置と凹凸か
ら刻印材の向き及び各打刻印字像の画像上における位置
を検出し、これに基づいて前記画像信号を打刻印字像毎
に分割して複数の打刻印字像を得、この複数の打刻印字
像の各々について個別に二値化処理を施して文字認識用
の情報とすることを特徴とする打刻印の検出方法。Claims: 1. An embossed print image of an embossed surface is imaged, density projections in the vertical and horizontal directions of the imprinted image obtained by the imaging are obtained, and the maximum value position in the vertical and horizontal directions of the integrated value is obtained. The direction of the marking material and the position of each stamp print image on the image are detected from the unevenness, and based on this, the image signal is divided for each stamp print image to obtain a plurality of stamp print images. A method for detecting an embossed mark, which comprises individually binarizing each of the embossed printed images to obtain information for character recognition.
画像信号を移動させて複数の移動画像信号を得、この移
動画像信号の各々を加算して得た刻印像強調画像信号を
前記刻印材の向き検出処理に用いることを特徴とする請
求項(1)に記載の打刻印の検出方法。2. An imprinted image-enhanced image signal obtained by adding a plurality of moving image signals by moving the image signals by a plurality of predetermined directions and distances and adding the engraved image signals. The method for detecting an embossing mark according to claim 1, wherein the method is used for a process for detecting the orientation of a material.
明手段と、前記打刻面を撮像する撮像手段と、該手段に
よる原画像信号の特定範囲の濃度射影に基づいて刻印材
の向きを検出する刻印材向き検出処理部と、前記原画像
信号について刻印材の特定範囲の濃度射影の積算値から
変化に基づいて刻印像の位置を求める刻印位置検出処理
部と、該処理部による刻印位置情報に基づいて刻印像の
印字単位に分離する刻印画像分離処理部と、該手段によ
って分離された刻印別画像信号の各々に対して独立に二
値化を行う二値化処理部とを具備することを特徴とする
打刻印の検出装置。3. An illuminating means for illuminating the stamped surface of the stamping material from an oblique direction, an image pickup means for capturing an image of the stamped surface, and a stamping material of the stamping material based on the density projection of a specific range of the original image signal by the means. A marking material orientation detection processing unit that detects the orientation, a marking position detection processing unit that obtains the position of the marking image based on a change from the integrated value of the density projections of a specific range of the marking material for the original image signal, and the processing unit A marking image separation processing unit that separates the marking image into printing units based on the marking position information, and a binarization processing unit that independently binarizes each marking-specific image signal separated by the unit. An embossing mark detection device, comprising:
出処理部に印加する原画像信号に対し、複数の予め定め
た方向及び距離分だけ画像を移動させて強調処理を行う
刻印画像強調処理部を設けたことを特徴とする請求項
(3)に記載の打刻印の検出装置。4. A marking image enhancement process for performing enhancement processing by moving an image by a plurality of predetermined directions and distances with respect to an original image signal applied to the marking material orientation detection processing unit and the marking position detection processing unit. The stamp detection device according to claim 3, wherein a portion is provided.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2000099A JPH0812682B2 (en) | 1990-01-05 | 1990-01-05 | Stamped stamp detection method and device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2000099A JPH0812682B2 (en) | 1990-01-05 | 1990-01-05 | Stamped stamp detection method and device |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPH03204791A JPH03204791A (en) | 1991-09-06 |
| JPH0812682B2 true JPH0812682B2 (en) | 1996-02-07 |
Family
ID=11464655
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2000099A Expired - Lifetime JPH0812682B2 (en) | 1990-01-05 | 1990-01-05 | Stamped stamp detection method and device |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JPH0812682B2 (en) |
Family Cites Families (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JPS6180372A (en) * | 1984-09-26 | 1986-04-23 | Nippon Steel Corp | Detecting method of dotted print |
| JPS6280775A (en) * | 1985-10-04 | 1987-04-14 | Toshiba Corp | Image processor |
| JPS62173578A (en) * | 1986-01-27 | 1987-07-30 | Nippon Telegr & Teleph Corp <Ntt> | Character recognizing system in scene picture |
| JPH01270183A (en) * | 1988-04-22 | 1989-10-27 | Seiko Epson Corp | Character recognition device |
| JPH0256688A (en) * | 1988-08-23 | 1990-02-26 | Toyota Central Res & Dev Lab Inc | character cutting device |
-
1990
- 1990-01-05 JP JP2000099A patent/JPH0812682B2/en not_active Expired - Lifetime
Also Published As
| Publication number | Publication date |
|---|---|
| JPH03204791A (en) | 1991-09-06 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| JP3545506B2 (en) | Specific color area extraction method and specific color area removal method | |
| US20110200257A1 (en) | Character region extracting apparatus and method using character stroke width calculation | |
| JP3455454B2 (en) | Vehicle license plate recognition device | |
| JP2000048120A (en) | Method for extracting character area of gray level image and recording medium having recorded the program thereon | |
| JP2001222680A (en) | Number reading device | |
| WO2018061997A1 (en) | Medium recognition device and medium recognition method | |
| JPH0812682B2 (en) | Stamped stamp detection method and device | |
| KR101675532B1 (en) | Apparatus and Method for detecting defect of thick steel plate | |
| JP3230509B2 (en) | Moving image processing device | |
| JPH0792813B2 (en) | Stamped stamp detection method and device | |
| JP3358997B2 (en) | Engraved mark identification device | |
| JP3230368B2 (en) | Binarization processing method | |
| JP2023046995A (en) | Collation device and program | |
| JPS63153682A (en) | How to process grayscale images | |
| JP4805495B2 (en) | Transmission pattern detector | |
| JP2000052068A (en) | Two-dimensional information printing method and plate-shaped metal product on which two-dimensional information is printed | |
| JP2002183713A (en) | Method and device for processing image | |
| JPH0514951B2 (en) | ||
| CN113160181B (en) | Stacking profile counting method based on image recognition | |
| KR100705660B1 (en) | Location estimation method of color image and vehicle license plate number recognition and location estimation device | |
| CN113160182B (en) | Stacking section counting system based on image recognition | |
| JPH0760459B2 (en) | Corner detector | |
| JPH11351835A (en) | Method for extracting contour line of cutting edge by processing taken image of tool | |
| JPH10171923A (en) | Character detection method and character detection device | |
| JPH0935003A (en) | Character recognition device |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20080207 Year of fee payment: 12 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20090207 Year of fee payment: 13 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20090207 Year of fee payment: 13 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20100207 Year of fee payment: 14 |
|
| EXPY | Cancellation because of completion of term |