JPH02244291A - Optical sensor output binarizing system - Google Patents

Optical sensor output binarizing system

Info

Publication number
JPH02244291A
JPH02244291A JP1063767A JP6376789A JPH02244291A JP H02244291 A JPH02244291 A JP H02244291A JP 1063767 A JP1063767 A JP 1063767A JP 6376789 A JP6376789 A JP 6376789A JP H02244291 A JPH02244291 A JP H02244291A
Authority
JP
Japan
Prior art keywords
white
level
black
medium
read
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
JP1063767A
Other languages
Japanese (ja)
Inventor
Naoki Shikauchi
鹿内 直樹
Shigemi Yoshida
茂美 吉田
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.)
Hitachi Computer Electronics Co Ltd
Hitachi Ltd
Original Assignee
Hitachi Computer Electronics Co Ltd
Hitachi 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 Hitachi Computer Electronics Co Ltd, Hitachi Ltd filed Critical Hitachi Computer Electronics Co Ltd
Priority to JP1063767A priority Critical patent/JPH02244291A/en
Publication of JPH02244291A publication Critical patent/JPH02244291A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To make a black/white deciding level suitable, and to decrease read errors by deciding >= three white levels, and deciding black or white using the intermediate value of a decision value as a reference value. CONSTITUTION:When a bar code is read by an optical reader, and a fold 1 or a stain 2 of a medium exists, a sensor output increases or decreases respectively. At such a time, by setting arbitrary measuring points 11 to 13 of a white level, comparing the three levels, and selecting the intermediate value, the reference value suitable for the decision of the black of bar codes 14 to 16 can be set. Thus the white level to be the suitable reference can be obtained, the erroneous read of the bar code, etc., is decreased, and even when there is the fold or stain on the medium, the bar code can be read.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、バーコードマークや文字を光学的に読み取る
方式に係り、特に白/黒レベルの2値判定に好適な光学
読取り方式に関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a system for optically reading barcode marks and characters, and particularly to an optical reading system suitable for binary determination of white/black levels.

〔従来の技術〕[Conventional technology]

従来の光学読取り装置は、媒体上の汚れや、媒体の折り
跡等による反射率の変化により白レベル変動があると、
適切な白/黒判定レベルを設定する事が出来ず誤読取り
となった。なお、この種の装置として関連するものには
特開昭59−5386号、同63−16393号、同6
1−199180号、同62−22638号、同61−
117675号、同56−68875号、同56−67
484号、同56−44974号、同55−14097
4号等が挙げられる。
Conventional optical reading devices detect white level fluctuations due to changes in reflectance due to dirt on the medium or folds on the medium.
It was not possible to set an appropriate white/black judgment level, resulting in incorrect reading. Related devices of this type include Japanese Patent Application Laid-open Nos. 59-5386, 63-16393, and 6
No. 1-199180, No. 62-22638, No. 61-
No. 117675, No. 56-68875, No. 56-67
No. 484, No. 56-44974, No. 55-14097
Examples include No. 4.

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

従来の光学読取り方式であるピークホールドにより白レ
ベルを基準とした白/黒判定方式は、媒体の折れ跡や、
媒体のエツジによる光の乱反射による白レベルの浮き上
がりに対して配慮がされておらず、黒レベルの続落しと
なる。またサンプリングホールドにより1ケ所の白レベ
ルを基準とした白/黒判定方式は、媒体の汚れに関して
配慮がされておらず、黒レベルの読過ぎ、沸き出し等の
問題があった6本発明の目的は前記2方式の問題を解決
することにあり、媒体の汚れ跡、エツジ、汚れが存在し
ても適切な白/黒判定レベルを設定し誤読取りを減少さ
せることにある。
The conventional optical reading method, which uses peak hold to determine white/black based on the white level, detects creases in the media,
No consideration is given to the rise in the white level due to diffuse reflection of light from the edges of the medium, and the black level continues to drop. In addition, the white/black determination method based on the white level at one point using sampling and hold does not take into account contamination of the medium, and there are problems such as over-reading of the black level and overflowing. 6. Purpose of the present invention The object of the present invention is to solve the problems of the above two methods, and to set an appropriate white/black determination level to reduce misreading even if there are dirt marks, edges, or stains on the medium.

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

上記目的は、白レベルのピークホールドやサンプリング
ホールドを行なっていた従来の方式から、最低3ケ所以
上の白レベルを判定し、判定値の中間値を基準値として
白/黒を判定することにより葎成される。すなわち本方
式は、3ケ所以上の白レベルを測定し中間値を基準とす
るため、白黒判定レベルの適切化が図れ、誤読み取りを
減少させる事が出来る。
The above purpose was achieved by determining the white level at at least three locations and determining white/black using the intermediate value of the determined values as a reference value, instead of the conventional method of peak-holding or sampling-holding the white level. will be accomplished. That is, in this method, the white level is measured at three or more locations and the intermediate value is used as a reference, so that the black/white determination level can be optimized and misreading can be reduced.

〔作用〕[Effect]

光学読取刃装置でバーコードを読み取った場合の媒体の
センサ出力の関係を第1図に示す。本発明は第1図に示
す媒体のb部に位置するバーコード3,4.5を読取り
時、0部が白レベルであることを利用して、白レベルを
測定する。しかし0部に媒体の折れ跡1.折れ2.があ
るとセンサ出力はそれぞれ向上、低下する。ここで白レ
ベルの任意の測定点を11.12.13とすると各々高
・低・中のレベルが得られる。この3レベルを比較して
中間の値を選ぶことにより白レベル13が選択され、バ
ーコード14,15.16の黒を判定するために適切な
基準値とすることが出来る。
FIG. 1 shows the relationship between the sensor output of a medium when a barcode is read by an optical reading blade device. In the present invention, when reading the barcodes 3, 4.5 located in section b of the medium shown in FIG. 1, the white level is measured using the fact that section 0 is the white level. However, there are 1 fold marks on the media on the 0th copy. Broken 2. If there is, the sensor output will increase or decrease, respectively. Here, if arbitrary measurement points of the white level are set to 11, 12, and 13, high, low, and medium levels are obtained, respectively. White level 13 is selected by comparing these three levels and selecting the middle value, which can be used as an appropriate reference value for determining the blackness of barcodes 14, 15, and 16.

前記は3ケ所を測定しているが測定点を増やすことによ
り、より正確な白レベルを選択する事が出来る。
In the above example, measurements are taken at three locations, but by increasing the number of measurement points, a more accurate white level can be selected.

〔実施例〕〔Example〕

以下本発明の一実施例を第2図、第3図により説明する
。第2図は、本発明を適用する光学読取り回路のブロッ
ク図である。光学センサ21は。
An embodiment of the present invention will be described below with reference to FIGS. 2 and 3. FIG. 2 is a block diagram of an optical reading circuit to which the present invention is applied. The optical sensor 21 is.

媒体から読み取った信号を出力する。サンプリングピー
クホールド回路、23,24.25はプロセッサ22か
らの別々の任意のタイミング信号で、タイミング発生時
のセンサ出力レベルを記憶する。
Outputs the signal read from the medium. Sampling peak hold circuits 23, 24, and 25 store sensor output levels at timing occurrences with separate arbitrary timing signals from processor 22.

レベル比較器26は前記にて記憶されたレベルを比較し
中間値であるレベルを記憶しているピークホールド回路
を指定する信号を選択回路27に送る。選択回路27は
これにより中間レベル値をコンパレータ28に送り、コ
ンパレータ28がこれを基準値として光学センサ22の
出力レベルと比較して白黒レベルを判定する。本実施例
では3ケ所の測定点としたが測定点を増やせば、より正
確な白レベルを測定出来る事は言うまでもない。また誤
読取り異常には第3図に示すフローチャートにて以下説
明する方式にて測定点を変更し等価的に測定点を増やし
たのと同じ効果を得ることが出来る。測定点を選び読取
りを行なう。読み取り結果をフォーマットチエツク等を
行ない異常ならば前回と異なる測定点を算出し再度読取
りを行なう。
The level comparator 26 compares the levels stored above and sends to the selection circuit 27 a signal designating the peak hold circuit storing the intermediate level. The selection circuit 27 thereby sends the intermediate level value to the comparator 28, which uses this as a reference value and compares it with the output level of the optical sensor 22 to determine the black and white level. In this embodiment, three measurement points are used, but it goes without saying that increasing the number of measurement points allows for more accurate white level measurement. In addition, for misreading abnormalities, the measurement points can be changed using the method described below using the flowchart shown in FIG. 3, and the same effect as equivalently increasing the number of measurement points can be obtained. Select a measurement point and take a reading. The read result is checked for format, etc., and if it is abnormal, a different measurement point from the previous one is calculated and read again.

この動作により再読取りを行なう度に、測定的な加算さ
れ多くの白レベル測定点を得る事が出来る。
By this operation, each time re-reading is performed, many white level measurement points can be obtained through measurement addition.

第1図ではアナログ回路を主体とした本発明の実施例を
述へたか、A−D変換回路を用いて、プログラムと組合
せて基準値を選択する回路にも適用されることは言うま
でもない。
In FIG. 1, the embodiment of the present invention has been described mainly using an analog circuit, but it goes without saying that the present invention can also be applied to a circuit that uses an A-D converter circuit and selects a reference value in combination with a program.

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

以上述べた如く本発明によれば、光学センサ出力の白/
黒レベル2値化時、基準の白レベルを3ケ所以上で測定
し、測定値の中間値を選択するため、 (1)適切な基準となる白レベルが得られるためバーコ
ード等の誤読取りが減少する。
As described above, according to the present invention, the optical sensor output white/
When converting the black level to binary, the reference white level is measured at three or more locations and the middle value of the measured values is selected. Decrease.

(2)媒体に折れ曲げ跡かあっても読取ることが出来る
(2) Even if there are bending marks on the medium, it can be read.

(3)媒体上に汚れがあっても読取ることが出来る。(3) Even if there is dirt on the medium, it can be read.

等の効果がある。There are other effects.

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

第1図は本発明の一実施例による読取り媒体と光学セン
サの出力の関係説明図、第2図は本発明の一実施例であ
る光学読取り回路のブロック図、第3図は、光゛学セン
サによる読取りのフローチャートである。 21:光学センサ、22:プロセッサ、23゜24.2
5:サンプリンタピークホールド回路、26:レベル比
較器、27:選択回路、28:コンパレータ。
FIG. 1 is an explanatory diagram of the relationship between a reading medium and the output of an optical sensor according to an embodiment of the present invention, FIG. 2 is a block diagram of an optical reading circuit according to an embodiment of the present invention, and FIG. It is a flowchart of reading by a sensor. 21: Optical sensor, 22: Processor, 23°24.2
5: Sampler peak hold circuit, 26: Level comparator, 27: Selection circuit, 28: Comparator.

Claims (1)

【特許請求の範囲】[Claims] 1、媒体上に記録されたバーコード、文字を読み取るた
めに、光学センサを用いる装置において、媒体上の複数
個所の白レベルを記憶する手段と、前記記憶値を比較す
る手段を有し、比較結果より中間値を選択し、選択値を
基準値として、これに基づき白/黒レベルの二値化を行
なう光学センサ出力二値化方式。
1. A device that uses an optical sensor to read barcodes and characters recorded on a medium, comprising means for storing white levels at a plurality of locations on the medium, and means for comparing the stored values; An optical sensor output binarization method that selects an intermediate value from the results, uses the selected value as a reference value, and performs binarization of white/black levels based on this value.
JP1063767A 1989-03-17 1989-03-17 Optical sensor output binarizing system Pending JPH02244291A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1063767A JPH02244291A (en) 1989-03-17 1989-03-17 Optical sensor output binarizing system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1063767A JPH02244291A (en) 1989-03-17 1989-03-17 Optical sensor output binarizing system

Publications (1)

Publication Number Publication Date
JPH02244291A true JPH02244291A (en) 1990-09-28

Family

ID=13238856

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1063767A Pending JPH02244291A (en) 1989-03-17 1989-03-17 Optical sensor output binarizing system

Country Status (1)

Country Link
JP (1) JPH02244291A (en)

Similar Documents

Publication Publication Date Title
EP0067414B1 (en) Method and apparatus for reading a bar code
US5664030A (en) Method and apparatus for recording/reproducing mesh pattern data
US4414468A (en) Systematic error correction in bar code scanner
US5087125A (en) Equipment for measuring a difference in elevation
US4876732A (en) System for detecting rotational angle of objective pattern
JP3324374B2 (en) Barcode demodulation method and barcode reader
JPH07104904B2 (en) Bar code reader
JP2500859B2 (en) Bar code reader
US6098883A (en) Method of estimating the mid-points of bar code elements
JPH02244291A (en) Optical sensor output binarizing system
US4061900A (en) Indicia validation system
JPH05151381A (en) Bar-code reader
JPH06331317A (en) Dimension measuring device
JP2949958B2 (en) Barcode reader
JPS583073A (en) Bar-code read system
JP2953143B2 (en) Barcode reading device and barcode reading method
JP2604922B2 (en) Length measuring machine
JPS5935478B2 (en) Barcode symbol reading method
JPS62192610A (en) Noncontact displacement measuring instrument
JPH0728924A (en) Id mark reading device
JP2522927Y2 (en) Shading image processing device
JP3891072B2 (en) Bar code reading method and bar code reading apparatus
JP2816915B2 (en) Barcode reader and method
JPH0562005A (en) Bar code reader
JPH04251394A (en) Bar code reader