JPH0816919B2 - Concavo-convex pattern reader - Google Patents

Concavo-convex pattern reader

Info

Publication number
JPH0816919B2
JPH0816919B2 JP1092373A JP9237389A JPH0816919B2 JP H0816919 B2 JPH0816919 B2 JP H0816919B2 JP 1092373 A JP1092373 A JP 1092373A JP 9237389 A JP9237389 A JP 9237389A JP H0816919 B2 JPH0816919 B2 JP H0816919B2
Authority
JP
Japan
Prior art keywords
information carrier
data
light source
light
reading
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 - Fee Related
Application number
JP1092373A
Other languages
Japanese (ja)
Other versions
JPH02270089A (en
Inventor
尚洋 渡辺
武人 関口
亨 北川
俊二 坂井
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.)
Oki Electric Industry Co Ltd
Original Assignee
Oki Electric Industry Co Ltd
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 Oki Electric Industry Co Ltd filed Critical Oki Electric Industry Co Ltd
Priority to JP1092373A priority Critical patent/JPH0816919B2/en
Priority to DE69015238T priority patent/DE69015238T2/en
Priority to EP90106849A priority patent/EP0392460B1/en
Priority to US07/507,468 priority patent/US5050231A/en
Publication of JPH02270089A publication Critical patent/JPH02270089A/en
Publication of JPH0816919B2 publication Critical patent/JPH0816919B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Character Input (AREA)

Description

【発明の詳細な説明】 [産業上の利用分野] 本発明は、例えばプラスチックカード、金属板等に形
成された凹凸パターンを読取る凹凸パターン読取装置に
関するものである。
The present invention relates to a concavo-convex pattern reading device for reading a concavo-convex pattern formed on, for example, a plastic card, a metal plate, or the like.

[従来の技術] 第2図は特開昭60−144884号公報に開示されている従
来の凹凸パターン読取装置を示す説明図である。
[Prior Art] FIG. 2 is an explanatory view showing a conventional concave-convex pattern reading device disclosed in Japanese Patent Application Laid-Open No. 60-144884.

同図において、1は情報担持体としてのプラスチック
カードであり、その平面部に対して文字、図形等が凹部
又は凸部の形で刻印されている。ここでは、文字Lを打
刻した場合を示している。
In the figure, 1 is a plastic card as an information carrier, and characters, figures, etc. are engraved in the form of concave portions or convex portions on the plane portion thereof. Here, the case where the letter L is stamped is shown.

2a乃至2dは、カード1に対して4つの異なる斜め方向
から順次光を照射するランプである。3はテレビジョン
カメラであり、これによりランプ2a乃至2dにより照明さ
れたカード1を撮影する。4はA/D変換回路であり、テ
レビジョンカメラ3の出力信号をデジタル化する。5は
スイッチであり、ランプ2a乃至2dで照明されたときのA/
D変換回路4の出力をそれぞれのメモリ6a乃至6dに順次
切り替え出力する。7はオアゲートであり、メモリ6a乃
至6dの出力の論理和信号をメモリ8に出力する。
Reference numerals 2a to 2d are lamps that sequentially irradiate the card 1 with light from four different oblique directions. A television camera 3 captures an image of the card 1 illuminated by the lamps 2a to 2d. An A / D conversion circuit 4 digitizes the output signal of the television camera 3. Reference numeral 5 denotes a switch, which is A / when illuminated by the lamps 2a to 2d.
The output of the D conversion circuit 4 is sequentially switched to each of the memories 6a to 6d and output. Reference numeral 7 is an OR gate, which outputs a logical sum signal of the outputs of the memories 6a to 6d to the memory 8.

上記構成においては、ランプ2aにより照明されたカー
ド1の凹凸をテレビジョンカメラ3により撮影し、この
画像信号をデジタル化し、スイッチ5を介してメモリ6a
に入力し記憶する。このとき記憶される像はランプ2aの
光が届かない影の部分である。
In the above structure, the unevenness of the card 1 illuminated by the lamp 2a is photographed by the television camera 3, this image signal is digitized, and the memory 6a is formed via the switch 5.
Enter and memorize. The image stored at this time is the shaded portion that the light of the lamp 2a does not reach.

同様にして、ランプ2bにより照明されたときの像がメ
モリ6b、ランプ2cにより照明されたときの像がメモリ6
c、ランプ2dにより照明されたときの像がメモリ6dに各
々記憶される。これらの像は対応するランプにより形成
された影の部分である。
Similarly, the image when illuminated by the lamp 2b is stored in the memory 6b and the image when illuminated by the lamp 2c is stored in the memory 6b.
The image when illuminated by the lamp c and the lamp 2d is stored in the memory 6d. These images are the shadow areas formed by the corresponding lamps.

メモリ6a乃至6dの出力はオアゲート7を介して加算さ
れ、メモリ8に入力される。従って、メモリ8には各ラ
ンプにより形成された影の部分の総和が記憶される。
The outputs of the memories 6a to 6d are added via the OR gate 7 and input to the memory 8. Therefore, the memory 8 stores the total sum of the shadow portions formed by the lamps.

[発明が解決しようとする課題] しかしながら、上記従来例においては次に示す問題が
あった。
[Problems to be Solved by the Invention] However, the above conventional example has the following problems.

即ち、カード1の打刻文字の溝幅が広い場合には照明
による影が溝幅全体に行き渡らないので、溝の周囲部分
のみの2値化像しか得ることができず、正確に文字を読
取ることができない問題があった。
That is, when the groove width of the embossed character of the card 1 is wide, the shadow due to the illumination does not spread over the entire groove width, so that only the binary image of the peripheral portion of the groove can be obtained, and the character is accurately read. There was a problem I couldn't do.

また、カード1上の文字の位置によってランプ2a乃至
2dによる照明条件が異なるので、正確な読取りができな
い問題があった。
In addition, depending on the position of the character on the card 1, the lamp 2a to
There was a problem that accurate reading could not be done because the illumination conditions by 2d were different.

さらに、カード1の被読取面における地色が暗い色で
あったり、又は模様、印刷文字等がある場合には、誤読
するおそれがあるという問題があった。
Further, there is a problem in that if the background color of the surface to be read of the card 1 is a dark color, or if there is a pattern, printed characters, etc., there is a risk of misreading.

さらにまた、上記従来例では、カード1を4つの異な
る方向から照明する必要があるため、4台のランプ2a乃
至2dが必要になり、このため装置が大型化する問題があ
った。
Furthermore, in the above-mentioned conventional example, since it is necessary to illuminate the card 1 from four different directions, four lamps 2a to 2d are required, which causes a problem that the device becomes large.

そこで、本発明は上記したような従来技術の課題を解
決するためになされたので、その目的とするところは、
凹凸パターンの位置や幅に拘らず正しいパターン認識を
することができ、しかも小型化の可能な凹凸パターン読
取装置を提供することにある。
Therefore, the present invention has been made in order to solve the problems of the conventional techniques as described above.
An object of the present invention is to provide a concave / convex pattern reading device capable of performing correct pattern recognition regardless of the position and width of the concave / convex pattern and capable of downsizing.

[課題を解決するための手段] 本発明に係る凹凸パターン読取装置は、被読取面に形
成された凹凸パターンにより情報を担持させた情報担持
体に対し、異なる2方向から光を照射する第一及び第二
の光源と、上記第一の光源により光照射されたときの上
記情報担持体からの反射光と、上記第二の光源により光
照射されたときの上記情報担持体からの反射光とを光学
的に読取る読取センサと、上記情報担持体が上記第一の
光源により光照射されたときの上記読取センサの読取信
号と、上記情報担持体が上記第二の光源により光照射さ
れたときの上記読取センサの読取信号とをそれぞれデジ
タル信号に変換する変換手段と、上記それぞれのデジタ
ル信号の値をDa及びDbとし、所定のしきい値をSとした
ときに、Da及びDbが、 |Da−Db|≦Sで示される条件1、 Da−Db>Sで示される条件2、 Db−Da>Sで示される条件3、 のいずれの条件を満足するかを判断し、この判断結果に
基づき3値信号を出力する3値化処理手段と、上記3値
信号に基づき、上記条件2を満足する領域の中から上記
情報担持体の凹凸パターンの境界となる第一の細線を抽
出する第一の細線化処理手段と、上記3値信号に基づ
き、上記条件3を満足する領域の中から上記情報担持体
の凹凸パターンの境界となる第二の細線を抽出する第二
の細線化処理手段と、この抽出された第一及び第二の細
線の間を連結する連結処理手段とを有することを特徴と
している。
[Means for Solving the Problem] A concave-convex pattern reading device according to the present invention irradiates an information carrier carrying information by a concave-convex pattern formed on a surface to be read with light from two different directions. And a second light source, reflected light from the information carrier when illuminated by the first light source, and reflected light from the information carrier when illuminated by the second light source. And a reading signal of the reading sensor when the information carrier is optically illuminated by the first light source, and a reading sensor when the information carrier is optically illuminated by the second light source. When the reading signal of the reading sensor is converted into a digital signal, and the digital signal values are Da and Db, and a predetermined threshold value is S, Da and Db are Article shown by Da-Db | ≦ S It is judged whether the condition 1, the condition 2 shown by Da-Db> S, or the condition 3 shown by Db-Da> S is satisfied, and based on this judgment result, a ternary signal that outputs a ternary signal The thinning processing means, the first thinning processing means for extracting the first thin line which is the boundary of the uneven pattern of the information carrier from the area satisfying the condition 2 based on the ternary signal; Second thinning processing means for extracting a second thin line which is a boundary of the concave-convex pattern of the information carrier from the region satisfying the condition 3 based on the ternary signal, and the extracted first and second thin lines. It has a connection processing means for connecting between the second thin lines.

[作 用] 本発明においては、情報担持体の凹凸パターンに異な
る2方向かあ別々に光を照射し、凹凸パターンの同一位
置について光学的読取りを2度行う。このときの読取信
号はデジタル化され、このデジタル信号の値をDa及びDb
とし、所定のしきい値をSとしたときに、Da及びDbが、 |Da−Db|≦Sで示される条件1、 Da−Db>Sで示される条件2、 Db−Da>Sで示される条件3、 のいずれの条件を満足するかを判断し、この判断結果に
基づき3値信号を出力する。
[Operation] In the present invention, the uneven pattern of the information carrier is irradiated with light in two different directions or separately, and optical reading is performed twice at the same position of the uneven pattern. The read signal at this time is digitized, and the value of this digital signal is set to Da and Db.
And when a predetermined threshold value is S, Da and Db are shown as condition 1 represented by | Da−Db | ≦ S, condition 2 represented by Da−Db> S, and Db−Da> S. It is determined which of the following conditions 3 and 4 is satisfied, and a ternary signal is output based on the result of this determination.

このように、本発明においては、第一の光源により光
照射されたときのデジタル信号の値Daと第二の光源によ
り光照射されたときのデジタル信号の値Dbとの差に基づ
いて、条件1,2,3のいずれを満足するかを判断してい
る。従って、単に、読取センサの出力値を基準値と比較
した場合に凹凸パターンの陰影と同様に地色(例えば、
黒色部)をも読取っていたが(即ち、陰影と黒色部とを
区別できなかったが)、本発明によれば凹凸パターンの
陰影のみを検出し、黒色部等の地色を検出することはな
いので、凹凸パターンが表している文字又は数字を誤っ
て認識する可能性を低くすることができる。
Thus, in the present invention, based on the difference between the value Da of the digital signal when illuminated by the first light source and the value Db of the digital signal when illuminated by the second light source, the condition It is determined which of 1, 2, 3 is satisfied. Therefore, simply comparing the output value of the reading sensor with the reference value, the ground color (for example,
Although the black portion) was also read (that is, the shadow and the black portion could not be distinguished), according to the present invention, it is possible to detect only the shade of the uneven pattern and to detect the ground color such as the black portion. Since it is not present, it is possible to reduce the possibility of erroneously recognizing the letters or numbers represented by the concavo-convex pattern.

ここで、条件1を満足する領域は情報担持体の平坦部
(凹部の底面又は凸部の上面のいずれか)であり、条件
2を満足する領域は第二の光源により光照射されたとき
に陰影が形成される側の傾斜部(凹凸の境界部)であ
り、条件3を満足する領域は第一の光源により光照射さ
れたときに陰影が形成される側の傾斜部(条件2の傾斜
部と逆向きの傾斜面を持つ)である。
Here, the area satisfying the condition 1 is the flat portion (either the bottom surface of the concave portion or the upper surface of the convex portion) of the information carrier, and the area satisfying the condition 2 is when light is irradiated by the second light source. The sloped portion on the side where the shadow is formed (boundary of the concavo-convex), and the region satisfying the condition 3 is the sloped portion on the side where the shadow is formed when the light is irradiated by the first light source (the slope of the condition 2). The part has an inclined surface in the opposite direction).

また、第一の細線化処理手段は、3値信号に基づき、
条件2を満足する領域の中から情報担持体の凹凸パター
ンの境界となる第一の細線を抽出し、第二の細線化処理
手段は、3値信号に基づき、条件3を満足する領域の中
から情報担持体の凹凸パターンの境界となる第二の細線
を抽出する。連結処理手段は、この抽出された第一及び
第二の細線の間を連結処理する。このように、第一及び
第二の細線化処理手段により第一及び第二の細線を抽出
してから、連結処理手段により第一及び第二の細線を連
結することにより、連結処理により得られた画像情報を
実際の情報担持体の凹凸パターンに近付けることができ
るので、凹凸パターンが表す文字又は数字を誤って認識
する可能性を低くすることができる。言い換えれば、仮
に、細線を抽出せずに、条件2を満足する領域と条件3
を満足する領域とを連結処理すれば、連結処理によって
得られる画像は実際の情報担持体の凹凸パターンよりも
幅の広い、輪郭のぼやけた画像となり、凹凸パターンが
表す文字又は数字を誤って認識する可能性が高くなるの
に対し、細線を抽出してから連結処理をすれば、得られ
る画像情報を実際の情報担持体の凹凸パターンに近付け
ることができるので、凹凸パターンが表す文字又は数字
を誤って認識する可能性を低くすることができる。
Further, the first thinning processing means, based on the ternary signal,
The first thin line which is the boundary of the concave-convex pattern of the information carrier is extracted from the region satisfying the condition 2, and the second thinning processing means is based on the ternary signal, and is in the region satisfying the condition 3. A second thin line that is the boundary of the uneven pattern of the information carrier is extracted from. The connection processing means connects the extracted first and second thin lines. Thus, the first and second thin lines are extracted by the first and second thinning processing means, and then the first and second thin lines are connected by the connection processing means to obtain the connection processing. Since it is possible to bring the image information closer to the actual concavo-convex pattern of the information carrier, it is possible to reduce the possibility of erroneously recognizing the letters or numbers represented by the concavo-convex pattern. In other words, if the thin line is not extracted and the area satisfying the condition 2 and the condition 3 are satisfied.
If the region satisfying the condition is connected, the image obtained by the connecting process becomes an image with a wider outline and a blurry outline than the uneven pattern of the actual information carrier, and the letters or numbers represented by the uneven pattern are erroneously recognized. On the other hand, if the thin line is extracted and then the connection process is performed, the obtained image information can be brought close to the actual uneven pattern of the information carrier, so that the letters or numbers represented by the uneven pattern can be changed. The possibility of erroneous recognition can be reduced.

[実施例] 以下に、本発明を図示の実施例に基づいて説明する。[Examples] The present invention will be described below based on illustrated examples.

第1図は本発明に係る凹凸パターン読取装置の構成を
示すブロック図である。
FIG. 1 is a block diagram showing the configuration of an uneven pattern reading device according to the present invention.

同図において、10は情報担持体としてのプラスチック
カードPの凹凸パターンを読取るセンサ部である。この
センサ部10は、カードPの読取り位置を中心にして互い
に対称となる位置であって、カードPの凹凸パターン面
に対して斜め上方に平行配置されたライン光源11a及び1
1bを有している。さらに、センサ部10はカードPの読取
り位置上に配置されたロッドレンズ12と、ロッドレンズ
12上に位置するラインセンサ13と、ビデオアンプ14とを
有している。
In the figure, 10 is a sensor unit for reading the uneven pattern of the plastic card P as an information carrier. The sensor section 10 is a position symmetrical with respect to the reading position of the card P, and the line light sources 11a and 1a arranged in parallel obliquely upward with respect to the concavo-convex pattern surface of the card P.
Has 1b. Further, the sensor unit 10 includes a rod lens 12 arranged on the reading position of the card P and a rod lens 12.
It has a line sensor 13 located above 12 and a video amplifier 14.

上記センサ部10においては、ライン光源11aのみを点
灯させてカードPに光を照射し、カードPの凹凸パター
ンをロッドレンズ13を通してラインセンサ14で読取り、
次いで、ライン光源11bのみを点灯させ同様にカードP
を読取る。ビデオアンプ14はラインセンサ13の読取信号
を増幅し、センサ部10から出力する。第3図はライン光
源11a及びライン光源11b点灯時のビデオアンプ14の出力
Aa及びAbを示す出力波形図である。尚、カードPは第1
図中矢印方向に沿って移動し、同様な読取りがカードP
の全面に亘り繰り返される。
In the sensor unit 10, only the line light source 11a is turned on to irradiate the card P with light, and the uneven pattern of the card P is read by the line sensor 14 through the rod lens 13.
Then, only the line light source 11b is turned on, and the card P
Read. The video amplifier 14 amplifies the read signal of the line sensor 13 and outputs it from the sensor unit 10. FIG. 3 shows the output of the video amplifier 14 when the line light source 11a and the line light source 11b are turned on.
FIG. 6 is an output waveform diagram showing Aa and Ab. The card P is the first
Move along the direction of the arrow in the figure to read the same
Is repeated over the entire surface.

20は上記センサ部10からの画像信号を処理する画像処
理部である。この画像処理部20は、センサ部10からのア
ナログ信号Aa及びAbをを8bitデジタル信号に変換するA/
D変換部21と、このデジタル信号を3値に変換する3値
化処理部22とを有する。さらに、画像処理部20は、シフ
トレジスタとしての構成を持つ8ラインメモリ23aと23b
と、細線化処理部24aと24bと、連結処理部25と、連結処
理部25のための1ラインメモリ26とを有する。
An image processing unit 20 processes the image signal from the sensor unit 10. The image processing unit 20 converts the analog signals Aa and Ab from the sensor unit 10 into 8-bit digital signals A /
It has a D conversion unit 21 and a ternarization processing unit 22 for converting this digital signal into three values. Further, the image processing unit 20 includes 8-line memories 23a and 23b having a configuration as a shift register.
The thinning processing units 24a and 24b, the connection processing unit 25, and the one-line memory 26 for the connection processing unit 25.

第4図は上記3値化処理部22における処理を説明する
ための説明図である。同図において、横軸はA/D変換部2
1から出力される16bitデジタル信号のうちの上位8bitデ
ータDa(アナログ信号Aaに対応)を示し、縦軸は下位8b
itデータDb(アナログ信号Abに対応)を示す。また、図
中二点鎖線で右上りに示される対角線はDa=Dbを成立さ
せる線であり、TH1,TH2は|Da−Db|=S(Sは所定のし
きい値)を示す線である。
FIG. 4 is an explanatory diagram for explaining the processing in the ternarization processing section 22. In the figure, the horizontal axis is the A / D converter 2
It shows the upper 8bit data Da (corresponding to the analog signal Aa) of the 16bit digital signal output from 1, and the vertical axis is the lower 8b.
The it data Db (corresponding to the analog signal Ab) is shown. In addition, the diagonal line in the upper right of the two-dot chain line in the figure is a line that establishes Da = Db, and TH1 and TH2 are lines that indicate | Da−Db | = S (S is a predetermined threshold value). .

そして、|Da−Db|≦Sを満足する(0)領域(斜線部
分)は、光源11aと11bのいずれで光照射したときにおい
ても明るさに差の小さい領域を示し、この領域はカード
Pの凹凸パターンの平坦部を示している。尚、しきい値
Sの値は平坦部とみなされる傾斜の程度によって決定さ
れる。
The (0) area (hatched area) that satisfies | Da−Db | ≦ S indicates an area with a small difference in brightness when light is emitted from either the light source 11a or 11b. The flat portion of the uneven pattern is shown. The value of the threshold value S is determined by the degree of inclination considered as a flat portion.

Da−Db>Sで示される(+)領域は、光源11aで光照
射したときの明るさが光源11bで光照射したときの明る
さより明るい領域を示し、この領域は傾斜部(凹凸の境
界部)を示している。
The (+) area indicated by Da−Db> S is an area where the brightness when light is emitted from the light source 11a is brighter than the brightness when light is emitted from the light source 11b. ) Is shown.

Da−Db<Sで示される(−)領域は光源11aで光照射
したときの明るさより光源11bで光照射したときの明る
さが明るい領域を示し、この領域は上記(+)領域の傾
斜面と向い合う傾斜面を持つ傾斜部を示す。
The (−) area indicated by Da−Db <S is an area in which the brightness when illuminated by the light source 11b is brighter than the brightness when illuminated by the light source 11a, and this area is the inclined surface of the above (+) area. The inclined part which has an inclined surface facing is shown.

従って、第3図に示されるデータAaとAbとを、デジタ
ル化したデータDaとDbを第4図の図上にプロットし、こ
のプロットされた点が、第4図の(+),(0),
(−)のいずれの領域に属するかを判断する。そして、
(+)領域、(−)領域、(0)領域の3値出力は、
(+)領域データと(−)領域データに分類され、それ
ぞれシフトレジスタ23a及び23bに出力される。
Therefore, the data Aa and Ab shown in FIG. 3 are plotted on the digitized data Da and Db on the diagram of FIG. 4, and the plotted points are (+) and (0 ),
Which area of (-) belongs to is determined. And
The ternary output of the (+) area, the (-) area, and the (0) area is
The data is classified into (+) area data and (-) area data and is output to the shift registers 23a and 23b, respectively.

ここで、例えば、読取位置における出力が(+)領域
にあればデータを1とし、(−)領域内にあればデータ
を0とする。以上の処理を8ライン以上行なうとシフト
レジスタ23a及び23b内には8ライン分の(+)領域デー
タ、又は(−)領域データが入力される。このデータは
シフトレジスタ23a及び23bから細線化処理部24aと24bに
入力される。
Here, for example, if the output at the reading position is in the (+) area, the data is 1, and if it is in the (-) area, the data is 0. When the above processing is performed for 8 lines or more, (+) area data or (-) area data for 8 lines is input into the shift registers 23a and 23b. This data is input from the shift registers 23a and 23b to the thinning processing units 24a and 24b.

第5図は細線化処理部24aと24bにおける細線化処理を
示すものであり、判定パターンを示す説明図である。
FIG. 5 shows thinning processing in the thinning processing units 24a and 24b, and is an explanatory diagram showing a determination pattern.

同図において、横に並ぶb0乃至b7はシフトレジスタ24
のビット番号を示し、縦に並ぶ例1乃至7はそれぞれ細
線化処理部24aと24bにおける処理のための判定パターン
を示している。
In the figure, b0 to b7 arranged side by side are shift registers 24
And the vertically arranged examples 1 to 7 show the determination patterns for the processes in the thinning processing units 24a and 24b, respectively.

入力データはシフトレジスタ23aと23bの8ビット枠内
に順次桁送りされて、最も古いデータを順次捨てる処理
を行う。さらに詳細にいえば、レジスタ23は、主走査n
ドット×副走査8ライン分のメモリとして構成されてい
る。従って、副走査8ライン分のデータがレジスタ23a
(又は23b)に入ったときに、初めて1ラインの細線ポ
ジション情報が出力される。1ラインの細線ポジション
情報が出力された後、最も古いデータ、即ちレジスタ内
における第7ビット目に該当するラインデータは捨てら
れ、第0乃至6ビット目のデータがそれぞれ第1乃至7
ビット目に順次シフトし、新しい3値化処理後のライン
データが第0ビット目に入力される。
The input data is sequentially shifted into the 8-bit frame of the shift registers 23a and 23b, and the oldest data is sequentially discarded. More specifically, the register 23 is used for the main scan n.
It is configured as a memory of dots × 8 lines of sub-scanning. Therefore, the data for 8 lines in the sub-scan is stored in the register 23a.
(Or 23b), the fine line position information of one line is output for the first time. After the thin line position information of one line is output, the oldest data, that is, the line data corresponding to the 7th bit in the register is discarded, and the 0th to 6th bits of data are respectively 1st to 7th.
The line data sequentially shifted to the bit position and the new ternarized line data is input to the 0th bit position.

そして、シフトレジスタ23aと23bの8ビット枠内に入
力されたデータの内容が、判定パターン(第5図のデー
タb0乃至b7のデータ群)のいずれに(第5図の例1乃至
例7のいずれか)一致するかを判断する。即ち、3値化
処理後における画像の(+)領域データ及び(−)領域
データの2値データについて、細線化処理を行い細線化
処理部24aと24bからは、“1"を出力する。そして、カー
ドPを移動させて画像を副走査しながら順次レジスタに
2値データを入れながら、レジスタ内における2値デー
タが第5図に示す例1乃至例7のいずれかの判定パター
ンに一致すれば、細線化処理部24a又は24bからは、“1"
を出力する。
Then, the content of the data input in the 8-bit frame of the shift registers 23a and 23b is included in any one of the determination patterns (data group of data b0 to b7 in FIG. 5) (examples 1 to 7 in FIG. 5). Judge whether there is a match. That is, the thinning processing is performed on the binary data of the (+) area data and the (−) area data of the image after the ternarization processing, and “1” is output from the thinning processing units 24a and 24b. Then, while the card P is moved and the image is sub-scanned, binary data is sequentially input to the register, and the binary data in the register is matched with any one of the judgment patterns of Examples 1 to 7 shown in FIG. For example, from the thinning processing unit 24a or 24b, "1"
Is output.

第5図の細線化処理における一例の細線ポジション抽
出判定パターンでは、情報担持体の凹凸部における、高
低差の約中心部を細線ポジションとして出力することに
なる。
In the thin line position extraction determination pattern of the thin line processing of FIG. 5, the center of the height difference in the uneven portion of the information carrier is output as the thin line position.

上記細線化処理を上記(+)領域データと、(−)領
域データを別々に行ない、それぞれ1bitずつ計2bitのデ
ータを連結処理部25に入力する。上記連結処理部25に
は、(+)領域データでの細線ポジションデータを連結
処理部25のTa端子へ、(−)領域データでの細線ポジシ
ョンデータを連結処理部25のTb端子へ入力する。
The thinning process is performed on the (+) region data and the (-) region data separately, and a total of 2 bits of data is input to the concatenation processing unit 25 for each 1 bit. The thin line position data in the (+) area data is input to the Ta terminal of the connection processing section 25 and the thin line position data in the (-) area data is input to the Tb terminal of the connection processing section 25.

第6図は細線化処理の内容を説明するための説明図で
ある。ここで、aを細線化処理後の(+)データ、bを
細線化処理後の(−)データ、yを連結出力データとし
た時に、データaが“1"であり、且つデータbが“0"で
あれば、連結の始まりとすべき細線であることを示し、
連結出力データyを“1"とする。
FIG. 6 is an explanatory diagram for explaining the contents of the thinning processing. Here, when a is the (+) data after the thinning process, b is the (−) data after the thinning process, and y is the concatenated output data, the data a is “1” and the data b is “ If it is 0 ", it means that it is a thin line that should be the beginning of the connection,
The linked output data y is set to "1".

データa、データbが共に“0"であれば、1ラインメ
モリ(データバッファ)26中にある前ラインにおける細
線出力データが“1"の時、細線出力データyは“1"とな
る。
If both the data a and the data b are "0", the thin line output data y is "1" when the thin line output data in the previous line in the one line memory (data buffer) 26 is "1".

また、データaが“0"であり、且つ、データbが“1"
であれば、連結の終りとすべき細線であることを示し、
データyを“0"とする。
Also, the data a is "0" and the data b is "1".
If it is, it means that it is a thin line that should be the end of the connection,
The data y is set to "0".

第7図(a)乃至(d)は本実施例における信号処理
を説明するための説明図であり、同図(a)は文字
「B」を凸部として形成したカードPを示し、同図
(b)はこのカードPを読取って3値化処理を施した結
果を示し、同図(c)は3値信号に細線化処理を施し抽
出された細線を示し、同図(d)は細線に連結処理を施
した出力パターンを示している。
7 (a) to 7 (d) are explanatory views for explaining the signal processing in the present embodiment, and FIG. 7 (a) shows a card P in which the letter "B" is formed as a convex portion. (B) shows the result of reading this card P and performing ternarization processing, (c) of the figure shows the thin lines extracted by applying the thinning processing to the ternary signal, and (d) of the figure shows the thin lines. 7 shows an output pattern obtained by performing a concatenation process.

同図(a)の凹凸パターンを光源11aと11bで照射し、
そのときの読取信号をデジタル化し、第4図に示される
3値化処理を施すと、同図(b)に示すように、同図
(a)における文字「B」の右上がりの傾斜部Lを
(+)領域とし、右下がりの傾斜部Rを(−)領域と認
識している。同図(c)は(+)領域での細線データ
と、(−)領域での細線データを示し、同図(d)は連
結処理出力パターンである。
Irradiate the uneven pattern of FIG. 10A with the light sources 11a and 11b,
When the read signal at that time is digitized and the ternarization process shown in FIG. 4 is performed, as shown in FIG. 4B, the sloped portion L of the character “B” that rises to the right in FIG. Is defined as a (+) region, and the sloping portion R that is descending to the right is recognized as a (-) region. The figure (c) shows the thin line data in the (+) area and the thin line data in the (-) area, and the figure (d) is a concatenation processing output pattern.

以上説明したように、本実施例によれば、カードPの
凹凸パターンに異なる2方向から別々に光を照射し、凹
凸パターンの同一位置について光学的読取りを2度行
い、この時のデジタル信号を3値化処理し、この3値信
号に基づき凹凸パターンの境界線を抽出し、これを連結
して凹凸パターンを認識する。このような凹凸パターン
の境界線の認識は、被読取面の文字の位置や溝幅及び地
色に影響されることがないので、この境界線を連結して
認識された凹凸パターンについてもこれらの影響がな
く、よって正確な読取りを行うことができる。
As described above, according to the present embodiment, the uneven pattern of the card P is separately irradiated with light from two different directions, the optical reading is performed twice at the same position of the uneven pattern, and the digital signal at this time is obtained. A ternarization process is performed, the boundary line of the concave / convex pattern is extracted based on the ternary signal, and this is connected to recognize the concave / convex pattern. Since the recognition of the boundary line of such a concavo-convex pattern is not affected by the position of the character on the surface to be read, the groove width, and the background color, the concavo-convex pattern recognized by connecting the boundary lines also has these effects. There is no effect, and therefore accurate reading can be performed.

尚、上記実施例においては、凹凸パターンの凸部を文
字とした場合について説明したが、本発明はこれには限
定されず、凹部の底面を文字パターンとしたものについ
ての読取も可能である。
In addition, although the case where the convex portion of the concavo-convex pattern is a character is described in the above embodiment, the present invention is not limited to this, and it is also possible to read a case where the bottom surface of the concave portion is a character pattern.

[発明の効果] 以上説明したように、本発明においては、第一の光源
により光照射されたときのデジタル信号の値Daと第二の
光源により光照射されたときのデジタル信号の値Dbとの
差に基づいて、条件1,2,3のいずれを満足するかを判断
している。従って、単に、読取センサの出力値を基準値
と比較した場合に凹凸パターンの陰影と同様に地色(例
えば、黒色部)をも読取っていたが(即ち、陰影と黒色
部とを区別できなかったが)、本発明によれば凹凸パタ
ーンの陰影のみを検出し、黒色部等の地色を検出するこ
とはなく、凹凸パターンが表す文字又は数字を誤って認
識する可能性を低くすることができるという効果があ
る。
[Effects of the Invention] As described above, in the present invention, the value Da of the digital signal when light is emitted from the first light source and the value Db of the digital signal when light is emitted from the second light source. Which of the conditions 1, 2 and 3 is satisfied is judged based on the difference of. Therefore, when the output value of the reading sensor is simply compared with the reference value, the ground color (for example, the black portion) is also read in the same manner as the shade of the uneven pattern (that is, the shade and the black portion cannot be distinguished. However, according to the present invention, it is possible to detect only the shadow of the uneven pattern and not the background color such as a black portion, thereby reducing the possibility of erroneously recognizing the letters or numbers represented by the uneven pattern. The effect is that you can do it.

また、本発明によれば、第一の細線化処理手段は、3
値信号に基づき、条件2を満足する領域の中から情報担
持体の凹凸パターンの境界となる第一の細線を抽出し、
第二の細線化処理手段は、3値信号に基づき、条件3を
満足する領域の中から情報担持体の凹凸パターンの境界
となる第二の細線を抽出し、連結処理手段は、この抽出
された第一及び第二の細線の間を連結処理する。このよ
うに、第一及び第二の細線化処理手段により第一及び第
二の細線を抽出してから、連結処理手段により第一及び
第二の細線を連結することにより、連結処理により得ら
れた画像情報を実際の情報担持体の凹凸パターンに近付
けることができ、細線を抽出せずに連結処理をしたとき
のように実際の凹凸パターンよりも幅の広い輪郭のぼや
けた画像となることはなくなるので、凹凸パターンが表
す文字又は数字を誤って認識する可能性を低くすること
ができるという効果がある。
Further, according to the present invention, the first thinning processing means is 3
Based on the value signal, the first thin line that is the boundary of the concave-convex pattern of the information carrier is extracted from the region that satisfies Condition 2,
Based on the ternary signal, the second thinning processing means extracts a second thin line which is the boundary of the uneven pattern of the information carrier from the area satisfying the condition 3, and the connection processing means extracts this. The connection between the first and second thin lines is performed. Thus, the first and second thin lines are extracted by the first and second thinning processing means, and then the first and second thin lines are connected by the connection processing means to obtain the connection processing. It is possible to make the image information closer to the concavo-convex pattern of the actual information carrier, and to obtain a blurred image with a wider contour than the actual concavo-convex pattern as in the case of connection processing without extracting thin lines. Therefore, there is an effect that it is possible to reduce the possibility of erroneously recognizing the letters or numbers represented by the uneven pattern.

また、光源が2個でよく装置の小型化も可能である。 Further, the number of light sources is two, and the device can be downsized.

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

第1図は本発明に係る凹凸パターン読取装置の一実施例
を示す構成図、 第2図は従来の凹凸パターン読取装置の構成図、 第3図は本実施例のビデオアンプの出力波形図、 第4図は本実施例の3値化処理部の処理の説明図、 第5図は本実施例の細線化処理部のための判定パターン
の説明図、 第6図は本実施例の連結処理部の処理の説明図、 第7図(a)乃至(d)は本実施例において文字「B」
を読取った場合の処理内容を示す説明図である。 10……センサ部、P……カード、11a及び11b……ライン
光源、12……ロッドレンズ、13……ラインセンサと、14
……ビデオアンプ、20……画像処理部20、21……A/D変
換部、22……3値化処理部、23a及び23b……ラインメモ
リ、24a及び24b……細線化処理部、25……連結処理部、
26……1ラインメモリ。
FIG. 1 is a configuration diagram showing an embodiment of an uneven pattern reading device according to the present invention, FIG. 2 is a configuration diagram of a conventional uneven pattern reading device, and FIG. 3 is an output waveform diagram of a video amplifier of this embodiment. FIG. 4 is an explanatory diagram of the process of the ternarization processing unit of the present embodiment, FIG. 5 is an explanatory diagram of a determination pattern for the thinning processing unit of the present embodiment, and FIG. 6 is a concatenation process of the present embodiment. 7 (a) to 7 (d) are explanatory views of the processing of the part, and the character "B" in this embodiment.
It is explanatory drawing which shows the processing content at the time of reading. 10 ... Sensor part, P ... Card, 11a and 11b ... Line light source, 12 ... Rod lens, 13 ... Line sensor, 14
...... Video amplifier, 20 ...... Image processing unit 20, 21 ...... A / D conversion unit, 22 ...... Ternary processing unit, 23a and 23b ...... Line memory, 24a and 24b ...... Thin line processing unit, 25 ...... Consolidation processing department,
26 …… 1 line memory.

───────────────────────────────────────────────────── フロントページの続き (72)発明者 坂井 俊二 東京都港区虎ノ門1丁目7番12号 沖電気 工業株式会社内 (56)参考文献 特開 昭50−48856(JP,A) 特開 昭63−131281(JP,A) 実開 昭63−179564(JP,U) ─────────────────────────────────────────────────── ─── Continuation of the front page (72) Inventor Shunji Sakai 1-7-12 Toranomon, Minato-ku, Tokyo Within Oki Electric Industry Co., Ltd. (56) References JP-A-50-48856 (JP, A) JP-A-SHO 63-131281 (JP, A) Actually opened 63-179564 (JP, U)

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】被読取面に形成された凹凸パターンにより
情報を担持させた情報担持体に対し、異なる2方向から
光を照射する第一及び第二の光源と、 上記第一の光源により光照射されたときの上記情報担持
体からの反射光と、上記第二の光源により光照射された
ときの上記情報担持体からの反射光とを光学的に読取る
読取センサと、 上記情報担持体が上記第一の光源により光照射されたと
きの上記読取センサの読取信号と、上記情報担持体が上
記第二の光源により光照射されたときの上記読取センサ
の読取信号とをそれぞれデジタル信号に変換する変換手
段と、 上記それぞれのデジタル信号の値をDa及びDbとし、所定
のしきい値をSとしたときに、Da及びDbが、 |Da−Db|≦Sで示される条件1、 Da−Db>Sで示される条件2、 Db−Da>Sで示される条件3、 のいずれの条件を満足するかを判断し、この判断結果に
基づき3値信号を出力する3値化処理手段と、 上記3値信号に基づき、上記条件2を満足する領域の中
から上記情報担持体の凹凸パターンの境界となる第一の
細線を抽出する第一の細線化処理手段と、 上記3値信号に基づき、上記条件3を満足する領域の中
から上記情報担持体の凹凸パターンの境界となる第二の
細線を抽出する第二の細線化処理手段と、 この抽出された第一及び第二の細線の間を連結する連結
処理手段と を有することを特徴とする凹凸パターン読取装置。
1. A first and a second light source for irradiating light from two different directions to an information carrier on which information is carried by an uneven pattern formed on a surface to be read, and light by the first light source. A reading sensor for optically reading the reflected light from the information carrier when illuminated, and the reflected light from the information carrier when illuminated by the second light source, and the information carrier The reading signal of the reading sensor when light is emitted from the first light source and the reading signal of the reading sensor when the information carrier is illuminated by the second light source are converted into digital signals, respectively. When the digital signal values are Da and Db, and the predetermined threshold value is S, Da and Db are | Da−Db | ≦ S. Condition 2 indicated by Db> S, indicated by Db-Da> S Which of the following three conditions is satisfied, and a ternarization processing means for outputting a ternary signal based on the result of the judgment, and a region which satisfies the above condition 2 based on the ternary signal A first thinning processing means for extracting a first thin line which is a boundary of the concave-convex pattern of the information carrier, and the information carrier of the information carrier from the region satisfying the condition 3 based on the ternary signal. An unevenness characterized by having a second thinning processing means for extracting a second thin line which becomes a boundary of the uneven pattern, and a connection processing means for connecting between the extracted first and second thin lines. Pattern reader.
JP1092373A 1989-04-12 1989-04-12 Concavo-convex pattern reader Expired - Fee Related JPH0816919B2 (en)

Priority Applications (4)

Application Number Priority Date Filing Date Title
JP1092373A JPH0816919B2 (en) 1989-04-12 1989-04-12 Concavo-convex pattern reader
DE69015238T DE69015238T2 (en) 1989-04-12 1990-04-10 Relief image scanner.
EP90106849A EP0392460B1 (en) 1989-04-12 1990-04-10 Relief image scanner
US07/507,468 US5050231A (en) 1989-04-12 1990-04-11 Relief image scanner

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1092373A JPH0816919B2 (en) 1989-04-12 1989-04-12 Concavo-convex pattern reader

Publications (2)

Publication Number Publication Date
JPH02270089A JPH02270089A (en) 1990-11-05
JPH0816919B2 true JPH0816919B2 (en) 1996-02-21

Family

ID=14052623

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1092373A Expired - Fee Related JPH0816919B2 (en) 1989-04-12 1989-04-12 Concavo-convex pattern reader

Country Status (1)

Country Link
JP (1) JPH0816919B2 (en)

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0631552Y2 (en) * 1987-05-13 1994-08-22 富士電機株式会社 Character image binarization device

Also Published As

Publication number Publication date
JPH02270089A (en) 1990-11-05

Similar Documents

Publication Publication Date Title
EP0195161A2 (en) Apparatus for automatically inspecting objects and identifying or recognizing known and unknown portions thereof, including defects and the like and method
US5050231A (en) Relief image scanner
JPH041866A (en) Method and device for image processing
JPH08161423A (en) Illuminating device and character reader
JPH0816919B2 (en) Concavo-convex pattern reader
EP0504576A2 (en) Document scanner
JPH0346079A (en) Image information reader
JPS5816837B2 (en) pattern detection device
JPH0335400A (en) Method for recognizing use code of number plate
JPS62128379A (en) Seal stamp reading method
JP3210378B2 (en) Image input device
JPH06266890A (en) Embossed character recognizing device
JPH02188891A (en) Divided binarizing processing method in vehicle stamp number recognizing device
JPH0330100A (en) Method for recognizing vehicle classification doce of number plate
JPH07234632A (en) Braille document reading device
JPH0520445A (en) Method and device for setting binarization threshold
JPH0231557A (en) Picture input device
JPH08212296A (en) Optical character reader
JPH09185317A (en) Braille recognition system
JPS6238988A (en) Correction device for illuminance unevenness
JPH0636202B2 (en) Optical reader
JPS60179888A (en) Optical reader
JPS6355113B2 (en)
JPH02153488A (en) Marking character reader
JPH05182019A (en) Marking character recognition device

Legal Events

Date Code Title Description
LAPS Cancellation because of no payment of annual fees