JPH03296181A - Character array extracting method - Google Patents
Character array extracting methodInfo
- Publication number
- JPH03296181A JPH03296181A JP2098067A JP9806790A JPH03296181A JP H03296181 A JPH03296181 A JP H03296181A JP 2098067 A JP2098067 A JP 2098067A JP 9806790 A JP9806790 A JP 9806790A JP H03296181 A JPH03296181 A JP H03296181A
- Authority
- JP
- Japan
- Prior art keywords
- character
- characters
- extracted
- image
- binarization
- 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
Links
- 238000000605 extraction Methods 0.000 claims abstract description 38
- 239000000284 extract Substances 0.000 claims abstract description 8
- 238000003384 imaging method Methods 0.000 claims description 16
- 238000010586 diagram Methods 0.000 description 6
- 238000006243 chemical reaction Methods 0.000 description 4
- 230000004044 response Effects 0.000 description 2
Landscapes
- Character Input (AREA)
Abstract
Description
【発明の詳細な説明】
[産業上の利用分野]
この発明は走行中の車例えば自動車1列車の11i面ま
たは後面を撮像し表示されている車両ナンバまたは列車
番号を自動的に認識する車両番号読取装置の文字配列抽
出方法に関するものである。[Detailed Description of the Invention] [Field of Industrial Application] This invention is a vehicle number system that automatically recognizes the displayed vehicle number or train number by imaging the 11i side or rear side of a moving car, for example, a train of cars. The present invention relates to a character arrangement extraction method for a reading device.
[従来の技術1
第4図は従来の文字配列抽出方法のフローである。図に
おいてSlはカメラからの多値画像を入力する撮像入力
ステップ、 S2はステップS1によって入力された撮
像画像から特定の2値レベルを決めてそのレベルより白
っぽい画素は白に、また黒っぽい画素は黒に変換する2
値化処理ステツプ、 S3はステップS2で2値化され
た画像の中から文字抽出該当重両の番号の文字の大きさ
に従い1文字らしい矩形を抽出する矩形抽出処理ステッ
プ、 S6はステップS3で抽出された文字らしい矩形
の中から文字抽出該当車両の番号らしく並んでいる文字
配列を見つける文字配列抽出処理ステップ、 S7はス
テップS6で妥当な文字配列が見つかったかどうか判定
する文字配列判定処理ステップ、 S8はステップS7
でNG(No Goodl だった場合に、2値化を再
び行うかどうか判定するために2値化の回数をカウント
している2値化回数カウント処理ステップ。[Prior Art 1] FIG. 4 is a flowchart of a conventional character array extraction method. In the figure, Sl is an image capture input step that inputs a multivalued image from a camera, and S2 is a step in which a specific binary level is determined from the captured image input in step S1, and pixels that are whiter than that level are set to white, and pixels that are darker than that level are set to black. Convert to 2
Value conversion processing step S3 is a rectangle extraction processing step for extracting a rectangle that seems to be one character according to the size of the character of the double number corresponding to character extraction from the image binarized in step S2, S6 is extraction in step S3 S7 is a character array determination processing step of determining whether a valid character array has been found in step S6. is step S7
A binarization count processing step in which the number of binarizations is counted in order to determine whether to perform binarization again if the result is NG (No Good).
S9はステップS8で2値化続行と判断された時に別の
2値化レベルをセットする2値化レベルセツト処理ステ
ツプ、 SIOはステップS7でOKだった場合に行う
文字認識処理ステップである。S9 is a binarization level set processing step that sets another binarization level when it is determined in step S8 that binarization should be continued, and SIO is a character recognition processing step that is performed when it is OK in step S7.
第5図は上記のようなフローで文字列抽出を行う場合の
例である。第5図fal fb)は多値レベル0〜40
で撮像された場合の撮像画像の例であり。FIG. 5 shows an example of character string extraction using the flow described above. Figure 5 fal fb) is a multivalue level 0 to 40
This is an example of a captured image when the image is captured.
第5図(a)は撮像レベルが一定の場合の撮像例。FIG. 5(a) is an example of imaging when the imaging level is constant.
第5図fb)は画像の左と右で撮像レベルが一定でない
場合の撮像例であり、どちらも全画素の平均濃度を約2
2.5である。第5図fcl (dlは第5図fat(
blの各々撮像画像を2値化レベル20で2値化した場
合の2値化画像の例、第5図(el (flは各々第5
図(cl (d)の2値化画像から抽出された矩形を示
している。Fig. 5 fb) is an example of imaging when the imaging level is not constant on the left and right sides of the image, and in both cases the average density of all pixels is approximately 2.
It is 2.5. Figure 5 fcl (dl is Figure 5 fat (
FIG. 5 is an example of a binarized image when each captured image of bl is binarized at a binarization level of 20.
Figure (cl) shows a rectangle extracted from the binarized image of (d).
第5図(a)のように撮像レベルが一定の場合は第5図
telのようにl 5111141+の2文字が切り出
されているが、第5図(b)の様に画像の左と右で撮像
レベルが一定でない場合は3°l I+ 21“の文字
の内“2°゛という1文字しか切り出されていない。さ
らに違う2値化レベルで2値化を行っても、第5図fb
lの場合は3°′°“2゛の2文字が両方−度に現れる
様な2値化レベルは存在しないためどちらか一方しか切
り出すことは出来ない。When the imaging level is constant as shown in Figure 5 (a), the two characters l 5111141+ are cut out as shown in Figure 5 tel, but on the left and right side of the image as shown in Figure 5 (b). When the imaging level is not constant, only one character "2°" out of the characters "3°l I+ 21" is extracted. Even if binarization is performed at a different binarization level, Fig. 5fb
In the case of l, there is no binarization level in which the two characters 3°'°"2" appear in both degrees, so only one of them can be extracted.
[発明が解決しようとする課題]
従来の文字配列抽出方法は、抽出対象文字1文字1文字
の撮像レベルが違う場合の考慮がなされていなかったの
で、1つの2値化レベルで抽出された矩形だけを対象に
文字配列の抽出を行っていた。ところが、実際は1連の
文字でも1文字1文字の撮像レベルが違う場合が多く1
文字配列抽出が出来ない場合が多発するという課題があ
った。[Problems to be Solved by the Invention] Conventional character array extraction methods do not take into consideration the case where each character to be extracted has a different imaging level. The character array was extracted only for . However, in reality, even in a series of characters, the imaging level of each character is often different.
There was a problem in that character sequences could not be extracted frequently.
この発明は係る課題を解決するためになされたもので、
1文字1文字の撮像レベルが違う場合でも1連の文字の
文字配列を抽出することのできる文字配列抽出方法を得
ることを目的とするものである。This invention was made to solve the problem,
The object of the present invention is to obtain a character array extraction method that can extract a character array of a series of characters even when each character has a different imaging level.
[課題を解決するための手段]
この発明に係る文字配列抽出方法は、複数のレベルでの
2値化画像から抽出された全ての矩形を対象に、その中
から文字抽出側移動車両の番号の文字並びにマツチする
文字配列を抽出するものである。[Means for Solving the Problems] A character array extraction method according to the present invention targets all rectangles extracted from a binarized image at multiple levels, and extracts the number of the moving vehicle on the character extraction side from among the rectangles. It extracts a character sequence that matches a character sequence.
[作用]
この発明においては、複数のレベルでの2値化画像から
抽出された全ての矩形を対象にその中から文字抽出該当
車両の番号の文字並びにマツチする文字配列を抽出する
ため9文字抽出該当車両の番号の1文字1文字の撮像レ
ベルが違う場合でも、各々の文字にあった2値化レベル
で文字が抽出され文字配列を抽出する際の対象となる。[Operation] In this invention, 9 characters are extracted from all rectangles extracted from binarized images at multiple levels in order to extract the characters of the vehicle number and the matching character sequence. Even if the imaging level of each character of the corresponding vehicle number is different, each character is extracted at a binarization level suitable for each character and becomes a target when extracting a character array.
[実施例1
第1図はこの発明に係る文字配列抽出方法を適用した車
両番号読取装置の構成図である。図において(1)は走
行中の自動車または列車が規定の位置に達したまたは規
定の位置を通過し終わったことを検知しトリガ信号を発
生ずる位置セン→ノ′。[Embodiment 1] FIG. 1 is a block diagram of a vehicle number reading device to which the character arrangement extraction method according to the present invention is applied. In the figure, (1) is a position sensor that detects when a running automobile or train has reached or passed a specified position and generates a trigger signal.
(2)はこの位置センサ(1)のトリガ信号を受けて発
光するストロボ、(3)は位置センサ(1)のトリガ信
号を受けて自動車や列車前面または後面を撮像し画像を
とりこむシャッター付きカメラ、(4)はこのカメラ(
3)からの入力画像を記憶しておくフレームメモリ、(
5)はこのフレームメモリ(4)内に記憶されている画
像の2値化を行う2値化処理部、(6)はこの2値化処
理部(5)で2値化された画像の中から文字の抽出を行
う文字抽出部。(2) is a strobe that emits light in response to a trigger signal from the position sensor (1), and (3) is a camera with a shutter that captures an image of the front or rear of a car or train in response to a trigger signal from the position sensor (1). , (4) is this camera (
3) a frame memory that stores the input image from (
5) is a binarization processing unit that binarizes the image stored in this frame memory (4), and (6) is a binarization processing unit that binarizes the image stored in this frame memory (4). A character extraction unit that extracts characters from.
(7)はこの文字抽出部(6)で抽出された文字の認識
をおこなう文字認識部、(8)はこの文字認識部(7)
での認識結果の出力を行う結果出力部、(9)はこの結
果出力部(8)から出力される認識結果を表示するモニ
タ、 (101は上記各部の制御を行うCPUである
。(7) is a character recognition unit that recognizes the characters extracted by this character extraction unit (6), and (8) is this character recognition unit (7).
(9) is a monitor that displays the recognition results output from the result output unit (8); (101 is a CPU that controls each of the above units);
第2図はこの発明に係る文字配列抽出方法のフローであ
る。図において、5l−33,S6〜510は第5図の
同一番号と同等のもである。S4は矩形抽出処理ステッ
プS3終了後2値化を再び行うかどうか判定するために
2値化の回数をカウントしている2値化回数カウント処
理ステップ、 S5は文字がさまざまなレベルで撮像さ
れていることを考慮して、ステップS4で2値化続行と
判断された時に次々と別の2値化レベルをセットする2
値化レベルセツトである。FIG. 2 is a flowchart of a character sequence extraction method according to the present invention. In the figure, 5l-33, S6 to 510 are equivalent to the same numbers in FIG. S4 is a binarization count processing step in which the number of binarizations is counted in order to determine whether to perform binarization again after the completion of the rectangle extraction processing step S3, and S5 is a binarization count processing step in which characters are imaged at various levels. Taking into account that
This is a valorization level set.
上記のフローによって文字配列抽出を行う場合、2値化
回数カウント処理ステップS4で終了と判断されるまで
の回数の2値化で抽出された矩形すべてを対象に文字配
列抽出処理ステップS6を行うことになる。When character array extraction is performed according to the above flow, character array extraction processing step S6 is performed for all rectangles extracted by binarization the number of times until it is determined that the binarization is completed in step S4 of counting the number of times of binarization. become.
第3図は上記のようなフローで文字列抽出を行う場合の
例である。図において第3図falは多値レベル0〜4
0で撮像された場合の撮像画像の例であり、第5図([
))と同一の画像で左と右で撮像レベルが一定でない場
合の撮像例である。第3図(bl (clは各々撮像
画像第3図fa)を2値化レベルセツトS5でセットさ
れた2つの2値化レベル。FIG. 3 shows an example of character string extraction using the flow described above. In the figure, Figure 3 fal is a multilevel level 0 to 4.
This is an example of a captured image when the image is captured at 0.
)) This is an example of imaging when the imaging level is not constant between the left and right sides of the same image. FIG. 3 shows two binarization levels set in the binarization level set S5 for bl (cl is each captured image fa in FIG. 3).
22および20で2値化した場合の2値化画像の例であ
る。2値化レベルセツトS5では全画素の濃度の平均2
2.5から1例えば平均値そのまま(少数点以下切捨て
)の2値化レベル22と、平均−2(少数点以下切捨て
)の2値化レベル20をセットしたものとする。第3図
fd) (e)は各々2値化画像(第3図fbl (
cl )から抽出された矩形を示している。This is an example of a binarized image when binarized at 22 and 20. In the binarization level set S5, the average density of all pixels is 2.
2.5 to 1 For example, it is assumed that the binarization level 22 is set to the average value as is (the decimal point is rounded down), and the binarization level 20 is set to the average -2 (the decimal point is rounded down). Fig. 3 fd) (e) is the binarized image (Fig. 3 fbl (
cl ) is shown.
第3図fb)の2値化画像からは°“3゛1文字のみ抽
出され、第3図fc)の2値化画像からは’2”1文字
のみ抽出されているが1文字配列抽出処理ステップS6
ではこの両方の文字を対象に文字配列抽出を行うので、
3゛゛°2°゛という2文字の文字列が正しく抽出され
る。From the binarized image in Figure 3 fb), only one character '3' is extracted, and from the binarized image in Figure 3 fc), only one character '2' is extracted, but the single character sequence extraction process Step S6
Now, we will extract the character array for both of these characters, so
The two-character string 3゛゛°2°゛ is correctly extracted.
この発明に係る文字配列抽出方法は上記のようにおこな
われ、さまざまなレベルで2値化される文字を対象に文
字配列抽出を行う。The character array extraction method according to the present invention is performed as described above, and character array extraction is performed for characters that are binarized at various levels.
[発明の動片1
以上のようにこの発明によれば文字抽出対象の1連の文
字のうち1文字1文字の撮像レベルが違うものでも、そ
れぞれの文字にあった2値化レベルで2値化して矩形を
抽出しておき、抽出された矩形がたまったところで全て
の矩形を対象に文字配列抽出を行う。このため1連の文
字が必ずしも同じ2値化レベルで2値化されなくても文
字配列を抽出することが出来るので効果が大きい。[Motion of the invention 1 As described above, according to the present invention, even if each character in a series of characters to be extracted has a different imaging level, each character can be binarized at the binarization level appropriate for each character. Then, when the extracted rectangles have accumulated, character array extraction is performed for all the rectangles. Therefore, a character arrangement can be extracted even if a series of characters are not necessarily binarized at the same binarization level, which is highly effective.
第1図はこの発明の文字配列抽出方法を適用した車両番
号読取装置の構成図、第2図はこの発明の文字配列抽出
方法のフローを示す図、第3図はこの発明の文字配列抽
出方法による文字配列抽出の例を示す図、第4図は従来
の文字配列抽出方法のフローを示す図、第5図は従来の
文字配列抽出方法による文字配列抽出の例を示す図であ
る。
図において(11は位置センサ、(2)はストロボ、(
3)はカメラ、(4)はフレームメモリ、(5)は2値
化処理部、(6)は文字抽出部、(7)は文字認識部、
(8)は結果出力部、(9)はモニタ、 (101は[
:PU 、 Slは撮像入力ステ・ンプ、 S2は2値
化処理スデップ、 S3は矩形抽出処理ステップ、 S
4は2値イヒ回数カウント処理スデップ、 S5は2値
化レベルセツト処・環ステップ、 S6は文字配列抽出
処理ステップ、 S7は文字配列抽出判定処理ステップ
、 S8は2値化回数カウント処理スデップ、 S9は
2顛イヒレヘルセットステップ、S10は文字認識処理
スーrツブである。
なお1図中同一行号は同−又は相当部分を示す。Fig. 1 is a block diagram of a vehicle number reading device to which the character sequence extraction method of the present invention is applied, Fig. 2 is a diagram showing the flow of the character sequence extraction method of the present invention, and Fig. 3 is a diagram showing the character sequence extraction method of the present invention. FIG. 4 is a diagram showing the flow of a conventional character array extraction method, and FIG. 5 is a diagram showing an example of character array extraction using the conventional character array extraction method. In the figure, (11 is a position sensor, (2) is a strobe, (
3) is a camera, (4) is a frame memory, (5) is a binarization processing unit, (6) is a character extraction unit, (7) is a character recognition unit,
(8) is the result output section, (9) is the monitor, (101 is [
:PU, Sl is the imaging input step, S2 is the binarization processing step, S3 is the rectangle extraction processing step, S
4 is a step for counting the number of times of binary conversion, S5 is a step for setting the level of binary conversion/ring step, S6 is a step for character sequence extraction processing, S7 is a step for character sequence extraction judgment processing, S8 is a step for counting the number of times of binary conversion, S9 is a two-step refresh step, and S10 is a character recognition processing subroutine. Note that the same line numbers in Figure 1 indicate the same or equivalent parts.
Claims (1)
発生する位置センサと、この位置センサの出力を受けて
発光するストロボと、上記位置センサの出力を受けて画
像を取り込むシャッタ付きカメラと、このカメラからの
入力画像を記憶しておくフレームメモリと、このフレー
ムメモリ内に記憶された画像を2値化処理する2値化処
理部と、この2値化処理部から出力される2値画像から
文字を抽出する文字抽出部と、この文字抽出部で抽出さ
れた文字を認識する文字認識部と、この文字認識部で認
識された結果を出力する結果出力部と、この結果出力部
の出力をうけて結果を出力するモニタと、上記各部の制
御を行うCPUを備え、車両が通過する度に車両前面ま
たは後面の車両ナンバまたは列車番号の読み取りを行う
車両番号読取装置において、特に文字矩形抽出を行う際
に、読み取り対象とする番号の1文字1文字の撮像レベ
ルが一定でない場合を考慮して複数のレベルでの2値画
像から抽出した全矩形の中から読み取り対象の番号にマ
ッチする文字配列を抽出することを特徴とする文字配列
抽出方法。A position sensor that generates a trigger signal when a running vehicle reaches a specified position, a strobe that emits light upon receiving the output of the position sensor, and a camera with a shutter that captures an image upon receiving the output of the position sensor. A frame memory that stores an input image from this camera, a binarization processing unit that binarizes the image stored in this frame memory, and a binary image output from this binarization processing unit. A character extraction unit that extracts characters from the character extraction unit, a character recognition unit that recognizes the characters extracted by this character extraction unit, a result output unit that outputs the results recognized by this character recognition unit, and an output of this result output unit. In a vehicle number reading device that is equipped with a monitor that receives and outputs the results, and a CPU that controls each of the above parts, and that reads the vehicle number or train number on the front or rear of the vehicle every time a vehicle passes, it is especially useful for extracting character rectangles. When performing this, characters that match the number to be read are extracted from all rectangles extracted from binary images at multiple levels, taking into consideration cases where the imaging level of each character of the number to be read is not constant. A character array extraction method characterized by extracting an array.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2098067A JPH03296181A (en) | 1990-04-13 | 1990-04-13 | Character array extracting method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2098067A JPH03296181A (en) | 1990-04-13 | 1990-04-13 | Character array extracting method |
Publications (1)
Publication Number | Publication Date |
---|---|
JPH03296181A true JPH03296181A (en) | 1991-12-26 |
Family
ID=14209991
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2098067A Pending JPH03296181A (en) | 1990-04-13 | 1990-04-13 | Character array extracting method |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPH03296181A (en) |
-
1990
- 1990-04-13 JP JP2098067A patent/JPH03296181A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP0372762A2 (en) | Minutia data extraction in fingerprint identification | |
US6549644B1 (en) | Face-image processing apparatus | |
EP0844582A3 (en) | System and method for detecting a human face | |
JP2010045770A (en) | Image processor and image processing method | |
JPH07203303A (en) | Method and apparatus for supplying data | |
JPH10269358A (en) | Object recognition device | |
JPH03296181A (en) | Character array extracting method | |
JPH057363A (en) | Picture monitoring device | |
JPH11250221A (en) | Method and device for photographing facial picture | |
JP2004310396A (en) | Image processing apparatus | |
JPH1015152A (en) | Recognition device for pieces on japanese chess board | |
JP3190173B2 (en) | Semiconductor device appearance inspection method and appearance inspection device | |
JPS60116076A (en) | Extracting circuit of picture | |
JPH0589244A (en) | Method and device for pattern matching | |
JP2891821B2 (en) | Barcode identification method | |
JPH0922466A (en) | Method for preparing background image and image processor | |
JP3090744B2 (en) | License plate extraction method | |
JP2807232B2 (en) | Medical image difference recognition display method and medical image difference recognition display device | |
JP3511534B2 (en) | Region extraction device | |
JP3100619B2 (en) | Photo region extraction device | |
KR101083367B1 (en) | Method and apparatus for user authentication using image | |
JPS6385890A (en) | Counter for the number of persons | |
JPH0353390A (en) | Outline discriminating device for moving body | |
JPH0556329A (en) | Image blur amount detector | |
CN116434350A (en) | Living body identification method and device for face identification |