JPH02161576A - Binary code reader - Google Patents

Binary code reader

Info

Publication number
JPH02161576A
JPH02161576A JP63316921A JP31692188A JPH02161576A JP H02161576 A JPH02161576 A JP H02161576A JP 63316921 A JP63316921 A JP 63316921A JP 31692188 A JP31692188 A JP 31692188A JP H02161576 A JPH02161576 A JP H02161576A
Authority
JP
Japan
Prior art keywords
code
brightness
block
codes
binary code
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP63316921A
Other languages
Japanese (ja)
Inventor
Kazunori Morinaga
和慶 森永
Yoriaki Kimura
木村 頼明
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.)
Mitsubishi Electric Corp
Original Assignee
Mitsubishi Electric Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Mitsubishi Electric Corp filed Critical Mitsubishi Electric Corp
Priority to JP63316921A priority Critical patent/JPH02161576A/en
Publication of JPH02161576A publication Critical patent/JPH02161576A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To accurately and rapidly read out a binary code by sequentially arranging the brightness values of binary codes in the ascending order of the brightness values, finding out respective differences from the sequenced values and binarizing a position indicating the maximum value of the differences. CONSTITUTION:The output of a photoelectric converter 1 for picking up the image of a binary code printed on a semiconductor device and converting the image into an electric signal is converted into a digital signal by an A/D converter 2 and inputted to a block position determining part 3. The determination part 3 finds out the position of a block constituted of codes. The code position in the block is found out by a code position determining part 6 and then the brightness of the code part is found out by a code brightness detecting part 7 as a digitized value. Above operation is repeated by the number of times corresponding to the number of codes forming one block. After rearranging these values in the ascending order, respective differences of these values are found out and a threshold discriminating the existence of a code at the part indicating the maximum value of the differences is found out by a threshold determining part 9. After ending the processing of all the codes, a recognition code is determined by a recognition determining part 8.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は2値化コードの読取り装置に関するものである
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a binary code reading device.

〔従来の技術〕[Conventional technology]

第6図は、従来の2値化コードの読取り装置を示すブロ
ック系統図である。同図において、1は光電変換装置、
2はA/D変換器、3はコードで構成されたブロックの
位置決めを行なうブロック位置決め部、4はブロックの
明度ヒストグラム作成部、5はコード有無のしきい値を
決定するしきい値決定部、6はブロック内のコードの位
置決めを行なうコード位置決め部、7はブロック内のコ
ードの明度検出を行なうコード明度検出部、8は認識コ
ード決定部である。なお、コード位置決め部6.コード
明度検出部7の内部にはコードで構成されたブロック6
1〜66.71〜76が存在し、第6図では例として6
個持たせている。第2図は全体構成であり、1は光電変
換装置、10は第6図の符号2〜8で示す認識装置、1
1は半導体ウェハ、12は照明装置、13は6個のコー
ドから成るブロックである。また、第4図は6個のコー
ドから成るブロックを示し、13a〜13cはコード無
しの部分、14a〜14cはコード有りの部分である。
FIG. 6 is a block diagram showing a conventional binary code reading device. In the figure, 1 is a photoelectric conversion device;
2 is an A/D converter; 3 is a block positioning unit that positions a block composed of codes; 4 is a block brightness histogram creation unit; 5 is a threshold determining unit that determines a threshold value for the presence or absence of a code; Reference numeral 6 denotes a code positioning section that positions the code within the block, 7 a code brightness detection section that detects the brightness of the code within the block, and 8 a recognition code determination section. Note that the cord positioning section 6. Inside the code brightness detection unit 7 is a block 6 composed of codes.
1 to 66.71 to 76 exist, and in Figure 6, 6 is an example.
I have one. FIG. 2 shows the overall configuration, in which 1 is a photoelectric conversion device, 10 is a recognition device indicated by numerals 2 to 8 in FIG.
1 is a semiconductor wafer, 12 is a lighting device, and 13 is a block consisting of six codes. Further, FIG. 4 shows a block consisting of six codes, 13a to 13c are parts without codes, and 14a to 14c are parts with codes.

さらに、第7図は従来の装置の動作を説明するためのコ
ード認識フローチャート、第8図は明度差の大きいコー
ドで構成されたブロックの明度ヒストグラム、第9図は
明度差の小さいコードで構成されたブロックの明度ヒス
トグラムであり、15は最も黒い部分、16は最も白い
部分、17は明度ヒストグラム、18はコード無しの部
分のヒストグラムの山、19はコード有り部分のヒスト
グラムの山、20はコード有無のしきい値である。
Furthermore, Fig. 7 is a code recognition flowchart for explaining the operation of the conventional device, Fig. 8 is a brightness histogram of a block composed of codes with a large difference in brightness, and Fig. 9 is a code recognition flowchart for explaining the operation of a conventional device. 15 is the blackest part, 16 is the whitest part, 17 is the brightness histogram, 18 is the histogram peak of the part without code, 19 is the histogram peak of the part with code, 20 is the presence or absence of code. is the threshold value.

第2図に示すように、照明装置12は斜め方向から半導
体装置11を照明し、半導体装置11の認識すべきコー
ドの印刷された面を光電変換装置1で搗像し、その画像
を認識装置10にて取り込む。以後はマイクロコンピュ
ータの処理となるので、第7図のフローチャートに従っ
て説明する。
As shown in FIG. 2, the illumination device 12 illuminates the semiconductor device 11 from an oblique direction, and the photoelectric conversion device 1 images the surface of the semiconductor device 11 on which the code to be recognized is printed, and the image is transmitted to the recognition device. Take in at 10. Since the subsequent processing will be performed by the microcomputer, the process will be explained according to the flowchart shown in FIG.

認識装置10に取り込まれた画像より、コードで構成さ
れたブロックの位置を求める(ステップ21.22)、
次に、第8図のようにコードで構成されたブロックの明
度をデジタル化した数値から明度ヒストグラムを作成し
くステップ23)、コード有無のしきい値を求め(ステ
ップ24)、ブロック内のコード位置決め、コード内の
明度検出を行なう(ステップ25.26)、そして、コ
ード毎のブロックの明度をデジタル化した数値と先に求
めたしきい値とを比較し、しきい値の方が大きい場合に
はその部分はコード無し、しきい値の方が小さい場合に
はその部分はコード有りとなしくステップ27)、この
フローを1ブロツクの全コードについて行なう (ステ
ップ28)。全コード終了した後、コード有無の結果よ
り認識コードの決定を行なう (ステップ29)。
Find the position of the block composed of the code from the image captured by the recognition device 10 (step 21.22),
Next, as shown in Figure 8, a brightness histogram is created from the digitized values of the brightness of the block composed of codes (Step 23), a threshold value for the presence or absence of a code is determined (Step 24), and the code position within the block is determined. , the brightness within the code is detected (steps 25 and 26), and the value obtained by digitizing the brightness of the block for each code is compared with the previously determined threshold, and if the threshold is larger, then If the threshold value is smaller, the part is determined to have no code (step 27), and this flow is performed for all codes of one block (step 28). After all codes are completed, a recognition code is determined based on the code presence/absence result (step 29).

〔発明が解決しようとする課題〕[Problem to be solved by the invention]

従来の2値化コードの読取り装置は以上のように構成さ
れているので、コードの有りと無しの部分で明度差が少
ないと、第9図に示すように明度ヒストグラムに山が2
つ表われないため、正確にコードの認識を行なうことが
不可能である。
Since the conventional binary code reading device is configured as described above, if there is a small difference in brightness between the areas with and without codes, two peaks will appear in the brightness histogram as shown in Figure 9.
Therefore, it is impossible to accurately recognize the code.

本発明はこのような点に鑑みてなされたものであり、そ
の目的とするところは、2値化コードを正確かつ短時間
に読み取ることのできる装置を得ることにある。
The present invention has been made in view of these points, and its purpose is to provide a device that can read binary codes accurately and in a short time.

〔課題を解決するための手段〕[Means to solve the problem]

このような課題を解決するために本発明は、半導体装置
上に印刷された2値化コード面を斜め方向から照明する
照明装置と、この照明装置により照らされた前記半導体
装置の2値化コードの像を描像して電気信号を出力する
光電変換装置と、この光電変換装置で得られた電気信号
から明度を数値に変換するA/D変換器と、このA/D
変換器より出力される信号から白および黒に相当するコ
ードが少なくとも各々1個ずつ存在する2値化コードで
構成されたブロックの位置を求めるブロック位置決め部
と、求めたブロックの位置から2値化コードの位置を求
めるコード位置決め部と、求めた2値化コードの位置の
明度をデジタル化された数値に変換するコード明度検出
部と、2値化コードの明度を明度順に序列化し、序列化
した数値から各々の差分を求め、この差分が最大値を示
す個所でもって2値化するしきい値決定部とを設けるよ
うにしたものである。
In order to solve such problems, the present invention provides a lighting device that illuminates a binary code surface printed on a semiconductor device from an oblique direction, and a lighting device that illuminates the binary code surface of the semiconductor device illuminated by the lighting device. an A/D converter that converts the brightness into a numerical value from the electrical signal obtained by the photoelectric conversion device;
A block positioning unit that determines the position of a block composed of a binary code in which there is at least one code corresponding to white and one black from the signal output from the converter, and a block positioning unit that performs binarization from the determined position of the block. A code positioning unit that determines the position of the code, a code brightness detection unit that converts the brightness of the determined position of the binary code into a digital value, and a code brightness detection unit that ranks the brightness of the binary code in order of brightness. A threshold determining section is provided which calculates each difference from the numerical values and binarizes the difference at the point where the difference shows the maximum value.

〔作用〕[Effect]

本発明による2値化コードの読取り装置においては、コ
ードで構成されたブロックの明度をデジタル化し、その
数値を小さいもの順に並び換えた後、それぞれの差分の
最大値を示す部分でコードの有無を検出する。
In the binary code reading device according to the present invention, after digitizing the brightness of a block made up of codes and arranging the values in descending order, the presence or absence of a code is determined at the part that indicates the maximum value of each difference. To detect.

〔実施例〕〔Example〕

第1図は本発明による2値化コードの読取り装置の一実
施例を示すブロック系統図である。同図において、9は
コード有無のしきい値を決定するしきい値決定部であり
、第6図と同一部分又は相当部分には同一符号が付しで
ある。第3図は第1図の装置の動作を説明するためのコ
ード認識フローチャート、第5図は第4図の明度をデジ
タル化した数値を並べた数直線を示す説明図である。
FIG. 1 is a block diagram showing an embodiment of a binary code reading device according to the present invention. In the figure, numeral 9 denotes a threshold value determination unit that determines the threshold value for the presence or absence of a code, and the same or equivalent parts as in FIG. 6 are given the same reference numerals. FIG. 3 is a code recognition flowchart for explaining the operation of the apparatus shown in FIG. 1, and FIG. 5 is an explanatory diagram showing a number line in which numerical values obtained by digitizing the brightness of FIG. 4 are arranged.

第2図は全体構成図であり、第2図の認識装置10は第
1図の符号2,3.6〜9の構成から成る。第2図に示
すように、照明装置12は斜め方向から半導体装置11
を照明し、半導体装l!11の認識すべきコードの印刷
された面を光電変換装置1で撮像し、その画像を認識装
置10にて取り込む、以後はマイクロコンピュータの処
理となるので、第3図のコード認識フローチャートに従
って説明する。
FIG. 2 is an overall configuration diagram, and the recognition device 10 in FIG. 2 consists of the components 2, 3, and 6 to 9 in FIG. As shown in FIG. 2, the lighting device 12 illuminates the semiconductor device 11 from an oblique direction.
Illuminates the semiconductor device! The photoelectric conversion device 1 takes an image of the surface on which the code No. 11 to be recognized is printed, and the image is captured by the recognition device 10.The subsequent processing is performed by a microcomputer, so the explanation will be given according to the code recognition flowchart in FIG. .

認識装置10に取り込まれた画像より、コードで構成さ
れたブロックの位置を求める(ステップ31.32)、
次に、ブロック内のコードの位置を求め(ステップ33
)、コード部の明るさをデジタル化された数値で求める
(ステップ34)。
From the image captured by the recognition device 10, the position of the block composed of codes is determined (steps 31 and 32);
Next, find the position of the code within the block (step 33
), the brightness of the code portion is determined as a digitized value (step 34).

これを1個のブロックを形成するコードの個数回行なう
(ステップ35)0次に、これらの数値を一本の数直線
上で小さいもの順に並べ換えた後(第5図参照)、それ
ぞれの差分を求め、その差分の最大値を示す部分でコー
ドの有無を区別するしきい値を求める(ステップ36)
、第5図′を例にとると、差分が最大になるのはコード
13aとコード14bの間である。そのため、しきい値
は(コード13aの数値+コード14bの数値)/2と
なり、このしきい値より数値の大きい14b。
Repeat this for the number of codes forming one block (step 35).Next, after rearranging these numbers on a number line in descending order (see Figure 5), calculate the difference between each one. and find a threshold for distinguishing the presence or absence of a code at the part that indicates the maximum value of the difference (step 36).
, and FIG. 5' as an example, the difference is greatest between code 13a and code 14b. Therefore, the threshold value is (numerical value of code 13a + numerical value of code 14b)/2, and 14b has a larger numerical value than this threshold value.

14C,14aはコード有りとなる(ステップ37)、
そして、全コード終了の後(ステップ38)、認識コー
ドの決定を行なう(ステップ39)。
14C and 14a have codes (step 37),
After all the codes have been completed (step 38), a recognition code is determined (step 39).

なお、上記実施例では半導体のウェハ上に印字されたコ
ードを読み取る場合を説明したが、半導体のウェハ以外
でも、平坦な部分に印字されたコードを読み取る場合に
は上記実施例と同様の効果が得られる。
Note that although the above embodiment describes the case of reading a code printed on a semiconductor wafer, the same effect as in the above embodiment can be obtained when reading a code printed on a flat part other than a semiconductor wafer. can get.

〔発明の効果〕〔Effect of the invention〕

以上説明したように本発明は、2値化コードの明度を明
度順に序列化し、序列化した数値から各々の差分を求め
、この差分が最大値を示す個所でもって2値化するよう
にしたことにより、コードの有りと無しの部分で明度差
が少ない場合でも、しきい値を正確に求めることができ
、コードの有無を正確かつ短時間に求めることができる
効果がある。
As explained above, the present invention ranks the brightness of the binarized code in order of lightness, calculates the difference for each from the ranked numerical values, and binarizes at the point where this difference shows the maximum value. Therefore, even if there is a small difference in brightness between areas with and without a code, the threshold value can be accurately determined, and the presence or absence of a code can be determined accurately and in a short time.

【図面の簡単な説明】[Brief explanation of the drawing]

第1図は本発明による2値化コードの読取り装置の一実
施例を示すブロック系統図、第2図は2値化コードの読
取りにおける全体構成を示す全体構成図、第3図は第1
図の装置の動作を説明するためのコード認識フローチャ
ート、第4図はコードで構成されたブロックを示す説明
図、第5図はコードの明度をデジタル化した数値を並べ
た数直線を示す説明図、第6図は従来の2値化コードの
読取り装置を示すブロック系統図、第7図は第6図の装
置の動作を説明するためのコード認識フローチャート、
第8図は明度差の大きいコードで構成されたブロックの
明度ヒストグラムを示す説明図、第9図は明度差の小さ
いコードで構成されたブロックの明度ヒストグラムを示
す説明図である。 1・・・光電変換装置、2・・・A/D変換器、3・・
・ブロック位置決め部、6・・・コード位置決め部、7
・・・コード明度検出部、8・・・認識コード決定部、
9・・・しきい値決定部。
FIG. 1 is a block system diagram showing an embodiment of a binary code reading device according to the present invention, FIG. 2 is an overall configuration diagram showing the overall configuration for reading a binary code, and FIG.
A code recognition flowchart to explain the operation of the device shown in the figure, Fig. 4 is an explanatory diagram showing blocks made up of codes, and Fig. 5 is an explanatory diagram showing a number line with digitized numerical values of the brightness of the code. , FIG. 6 is a block system diagram showing a conventional binary code reading device, FIG. 7 is a code recognition flowchart for explaining the operation of the device shown in FIG. 6,
FIG. 8 is an explanatory diagram showing a brightness histogram of a block composed of codes with a large difference in brightness, and FIG. 9 is an explanatory diagram showing a brightness histogram of a block composed of codes with a small difference in brightness. 1... Photoelectric conversion device, 2... A/D converter, 3...
・Block positioning section, 6... Code positioning section, 7
... code brightness detection unit, 8... recognition code determination unit,
9... Threshold determination unit.

Claims (1)

【特許請求の範囲】[Claims] 半導体装置上に印刷された2値化コード面を斜め方向か
ら照明する照明装置と、この照明装置により照らされた
前記半導体装置の2値化コードの像を撮像して電気信号
を出力する光電変換装置と、この光電変換装置で得られ
た電気信号から明度を数値に変換するA/D変換器と、
このA/D変換器より出力される信号から白および黒に
相当するコードが少なくとも各々1個ずつ存在する2値
化コードで構成されたブロックの位置を求めるブロック
位置決め部と、求めたブロックの位置から2値化コード
の位置を求めるコード位置決め部と、求めた2値化コー
ドの位置の明度をデジタル化された数値に変換するコー
ド明度検出部と、2値化コードの明度を明度順に序列化
し、序列化した数値から各々の差分を求め、この差分が
最大値を示す個所でもって2値化するしきい値決定部と
を備えたことを特徴とする2値化コードの読取り装置。
An illumination device that illuminates a binary code surface printed on a semiconductor device from an oblique direction; and a photoelectric conversion device that captures an image of the binary code of the semiconductor device illuminated by the illumination device and outputs an electrical signal. an A/D converter that converts brightness into a numerical value from an electrical signal obtained by the photoelectric conversion device;
A block positioning unit that determines the position of a block composed of a binary code in which there is at least one code corresponding to white and one code corresponding to black from the signal output from the A/D converter; A code positioning unit that determines the position of the binary code from the code, a code brightness detection unit that converts the brightness of the determined position of the binary code into a digitized value, and a code brightness detection unit that ranks the brightness of the binary code in order of brightness. 1. A binarized code reading device comprising: a threshold determining unit which obtains each difference from the ranked numerical values and binarizes the difference at a point where the difference shows a maximum value.
JP63316921A 1988-12-14 1988-12-14 Binary code reader Pending JPH02161576A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP63316921A JPH02161576A (en) 1988-12-14 1988-12-14 Binary code reader

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP63316921A JPH02161576A (en) 1988-12-14 1988-12-14 Binary code reader

Publications (1)

Publication Number Publication Date
JPH02161576A true JPH02161576A (en) 1990-06-21

Family

ID=18082401

Family Applications (1)

Application Number Title Priority Date Filing Date
JP63316921A Pending JPH02161576A (en) 1988-12-14 1988-12-14 Binary code reader

Country Status (1)

Country Link
JP (1) JPH02161576A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010231644A (en) * 2009-03-27 2010-10-14 Optoelectronics Co Ltd Optical information reading device and optical information reading method

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010231644A (en) * 2009-03-27 2010-10-14 Optoelectronics Co Ltd Optical information reading device and optical information reading method

Similar Documents

Publication Publication Date Title
US8718370B2 (en) Optical information-reading apparatus and optical information-reading method
US6445811B1 (en) Fingerprint image processing device and fingerprint image processing method
JPH02161576A (en) Binary code reader
JPH02242388A (en) Binary code reader
JPH1083452A (en) Pattern defect detecting device
JP2548385B2 (en) License plate code recognition method
JPH01189549A (en) Detecting device of defect of glass
JPS559223A (en) Optical character read-in system
JPS61289476A (en) Format forming system for character reader
JP4538135B2 (en) Defect inspection equipment
JP3751389B2 (en) Wiring pattern inspection method and apparatus
JP2787851B2 (en) Pattern feature extraction device
JPS6177707A (en) Direction judging device of semiconductor integrated circuit device
JPH05113315A (en) Detecting method for center position of circular image data
JPS59189469A (en) Vector generating system of line picture
JPH0353384A (en) Feature extracting device
JPH05225383A (en) Character segmenting device
JPH1074261A (en) Pattern defect detecting device
JPS5856574A (en) Signal binarizing circuit
JPS61196379A (en) Character segmenting method
JPS62147584A (en) Character reader
JPH01312846A (en) Mark inspection device of semiconductor device
JPH09319821A (en) Method and device for bar code reading
JPH0592866U (en) Optical information reader
JPS62171084A (en) Optical type character reader