JP2001175799A - Photodetector device, brightness/darkness information code reader and its adjusting method - Google Patents

Photodetector device, brightness/darkness information code reader and its adjusting method

Info

Publication number
JP2001175799A
JP2001175799A JP2000301976A JP2000301976A JP2001175799A JP 2001175799 A JP2001175799 A JP 2001175799A JP 2000301976 A JP2000301976 A JP 2000301976A JP 2000301976 A JP2000301976 A JP 2000301976A JP 2001175799 A JP2001175799 A JP 2001175799A
Authority
JP
Japan
Prior art keywords
light
value
information code
dark
optical sensor
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
JP2000301976A
Other languages
Japanese (ja)
Inventor
Yutaka Sugita
裕 杉田
Koichi Hirasawa
耕一 平澤
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.)
Fujifilm Holdings Corp
Original Assignee
Fuji Photo Film 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 Fuji Photo Film Co Ltd filed Critical Fuji Photo Film Co Ltd
Priority to JP2000301976A priority Critical patent/JP2001175799A/en
Publication of JP2001175799A publication Critical patent/JP2001175799A/en
Pending legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To provide a photodetector device and a brightness/darkness information code reader, in which the sensitivity adjustment of an optical sensor is automated, the S/N of the optical sensor is improved with a simple method and calibration in accordance with the secular deterioration of the optical sensor is automated. SOLUTION: A bar code is illuminated by the light of a light emitting diode 12 and a phototransistor 14 receives the reflected light or transmission light. The output voltage signal of the phototransistor 14 is amplified by an amplifier 18 and is inputted to a microcomputer 22 through an A/D converter 20. The microcomputer compares an A/D value equivalent to the white part of the bar code and an A/D value equivalent to a black part with a reference value which is previously decided, and judges whether the adjustment of sensor output is required or not. When it is judged that the S/N requested in a black/white judgment processing cannot be obtained, the ports P1 to P4 of the microcomputer 22 are controlled, the electric resistance value of a resistance circuit 16 is changed and an output voltage value is changed.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は光検出装置、明暗情
報コード読取装置及びその調整方法に係り、特にバーコ
ード読取装置などに適用される光センサ検出部の感度調
整を自動化する技術に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a light detecting device, a light / dark information code reading device and a method for adjusting the same, and more particularly to a technology for automatically adjusting the sensitivity of a light sensor detecting portion applied to a bar code reading device and the like.

【0002】[0002]

【従来の技術】商品等に付されるバーコードを読み取る
ためのバーコード読取装置は、発光素子と受光素子とを
組み合わせた反射型又は透過型の光センサを備えている
(特開平5−246414号公報、特開平10−637
68号公報)。従来、このようなバーコード読取部の感
度調整は、光センサ出力後のアンプゲインや2値化回路
(A/Dコンバータ)のしきい値を変化させることで対
応していた。
2. Description of the Related Art A bar code reader for reading a bar code attached to a product or the like is provided with a reflective or transmissive optical sensor in which a light emitting element and a light receiving element are combined (Japanese Patent Laid-Open No. 5-246414). No., JP-A-10-637
No. 68). Conventionally, such sensitivity adjustment of the barcode reading unit has been dealt with by changing the amplifier gain after the output of the optical sensor and the threshold value of the binarization circuit (A / D converter).

【0003】[0003]

【発明が解決しようとする課題】しかしながら、一般的
に使用される低コストの光センサは、出力のバラツキが
大きいため、光センサの感度を最適に調整する必要があ
る。従来は工場出荷時に各装置毎に感度調整ツマミ等を
調節しなけらばならず、作業負担が大きかった。また、
光センサは経時劣化によって出力特性が変わるため、再
調整が必要になる場合があるという問題がある。
However, a low-cost optical sensor generally used has a large output variation, so that it is necessary to adjust the sensitivity of the optical sensor optimally. In the past, sensitivity adjustment knobs and the like had to be adjusted for each device at the time of shipment from the factory, and the work load was large. Also,
Since the output characteristics of the optical sensor change due to deterioration with time, there is a problem that readjustment may be required.

【0004】一方、特開平10−63768号公報に示
されているように、アンプゲインや2値化回路のしきい
値を自動調整する手法においても、アンプの直前で出力
信号が電源側又はグランド側に飽和した状態(サチレー
ション状態)となるケースがあり得るため、感度調整ツ
マミによる各装置毎の感度調整作業は不可欠であった。
On the other hand, as disclosed in Japanese Patent Application Laid-Open No. H10-63768, even in a method of automatically adjusting an amplifier gain and a threshold value of a binarization circuit, an output signal is supplied to a power supply or a ground immediately before an amplifier. Since there may be a case where the side becomes saturated (saturation state), it is indispensable to perform a sensitivity adjustment operation for each device using the sensitivity adjustment knob.

【0005】また、光センサを取り付ける向きや、光セ
ンサの光のスポット径にバラツキがあるため、DC的な
出力調整が行われてもAC的(明暗の連続するパターン
でも出力振幅)は満足できないという問題がある。
[0005] Further, since there are variations in the mounting direction of the optical sensor and the spot diameter of the light from the optical sensor, even if DC-like output adjustment is performed, AC-like output (even in a continuous pattern of bright and dark) cannot be satisfied. There is a problem.

【0006】本発明はこのような事情に鑑みてなされた
もので、品質上のバラツキがある光センサを使用する場
合においても、光センサの感度調整を自動化することで
作業負担を軽減する一方、簡易な方法で光センサのS/
N比の改善を図り、光センサの経時劣化に対してもキャ
リブレーションの自動化によってその影響を回避できる
光検出装置、明暗情報コード読取装置及びその調整方法
を提供することを目的とする。
The present invention has been made in view of such circumstances, and even when an optical sensor having a variation in quality is used, the work load is reduced by automating the sensitivity adjustment of the optical sensor. S / S of optical sensor by simple method
It is an object of the present invention to provide a light detection device, a light / dark information code reading device, and a method of adjusting the light detection device capable of improving the N ratio and avoiding the influence of the aging of the optical sensor over time by automating the calibration.

【0007】[0007]

【課題を解決するための手段】前記目的を達成するため
に本発明に係る光検出装置は、受光量に応じた電気信号
を発生させる受光手段と、前記受光手段からの出力信号
を増幅する増幅手段と、前記増幅手段で得られた信号を
デジタル信号に変換するA/D変換手段と、前記A/D
変換手段から出力されるデジタル信号値を受入し、該デ
ジタル信号値に基づいて前記受光手段の出力信号値を変
化させる制御を行う制御手段と、前記制御手段の制御に
したがって前記受光手段の出力信号値を前記増幅手段の
前段において可変し得る出力調整手段と、を備えたこと
を特徴とする。
In order to achieve the above object, a photodetecting device according to the present invention comprises a light receiving means for generating an electric signal corresponding to a received light amount, and an amplifying means for amplifying an output signal from the light receiving means. Means, A / D conversion means for converting a signal obtained by the amplification means into a digital signal, and A / D conversion means.
Control means for receiving a digital signal value output from the conversion means and controlling to change an output signal value of the light receiving means based on the digital signal value; and an output signal of the light receiving means according to the control of the control means. Output adjusting means capable of changing a value at a stage preceding the amplifying means.

【0008】本発明によれば、A/D変換手段を介して
受光手段の出力信号が制御手段に入力され、制御手段に
よって受光手段の出力信号(センサ出力)が適正な検出
処理を行うに十分な状態であるか否かが判断される。信
号のS/N比が悪い状態にあると判定した時は、最適な
出力信号値が得られるように制御手段によって出力調整
手段を制御し、前記増幅手段の手前で受光手段の出力信
号値を変化させる。
According to the present invention, the output signal of the light receiving means is input to the control means via the A / D conversion means, and the output signal (sensor output) of the light receiving means is sufficiently controlled by the control means to perform appropriate detection processing. It is determined whether the state is correct. When it is determined that the S / N ratio of the signal is in a bad state, the output control means is controlled by the control means so as to obtain an optimum output signal value, and the output signal value of the light receiving means is provided before the amplifying means. Change.

【0009】このように、増幅手段に入力する手前で受
光手段の出力信号値を最適化するので、S/N比を改善
することができる。また、受光手段から取り出す出力信
号値を、制御手段の制御で自動調整するので、従来必要
とされていた感度調整作業の負担を軽減できるととも
に、センサの経時劣化等にも対応できる。
As described above, since the output signal value of the light receiving means is optimized before input to the amplifying means, the S / N ratio can be improved. In addition, since the output signal value extracted from the light receiving means is automatically adjusted by the control of the control means, the load of the sensitivity adjustment work which has been conventionally required can be reduced, and it is possible to cope with the aging of the sensor and the like.

【0010】本発明の他の態様に係る光検出装置は、上
述した構成に加えて、対象物を照明する発光手段を有
し、前記受光手段は、前記対象物からの反射光又は透過
光を受光し、その受光量に応じた電気信号を発生させる
ことを特徴とする。本発明の光検出装置の一態様とし
て、前記制御手段はマイクロコンピュータで構成される
とともに、前記出力調整手段は前記マイクロコンピュー
タのポート制御によって抵抗値が可変する可変抵抗回路
から成ることを特徴とする。
A photodetecting device according to another aspect of the present invention has, in addition to the above-described configuration, light emitting means for illuminating an object, and the light receiving means detects reflected light or transmitted light from the object. It is characterized by receiving light and generating an electric signal corresponding to the amount of received light. As one mode of the photodetector of the present invention, the control means is constituted by a microcomputer, and the output adjusting means is constituted by a variable resistance circuit whose resistance value is varied by port control of the microcomputer. .

【0011】また、前記目的を達成するために、本発明
に係る明暗情報コード読取装置は、明部と暗部の組み合
わせパターンからなる明暗情報コードを照明する発光手
段と、前記明暗情報コードからの反射光又は透過光を受
光し、その受光量に応じた電気信号を発生させる受光手
段と、前記受光手段の出力信号を増幅する増幅手段と、
前記増幅手段で得られた信号をデジタル信号に変換する
A/D変換手段と、前記A/D変換手段から出力される
デジタル信号値を受入し、該デジタル信号値に基づいて
前記受光手段の出力信号値を変化させる制御を行う制御
手段と、前記制御手段の制御にしたがって前記受光手段
の出力信号値を前記増幅手段の前段において可変し得る
出力調整手段と、を備えたことを特徴とする。
According to another aspect of the present invention, there is provided a light / dark information code reading device for illuminating a light / dark information code comprising a combination pattern of a light portion and a dark portion; Light receiving means for receiving light or transmitted light and generating an electric signal according to the amount of received light, and amplifying means for amplifying an output signal of the light receiving means,
A / D conversion means for converting a signal obtained by the amplification means into a digital signal, a digital signal value output from the A / D conversion means, and an output of the light receiving means based on the digital signal value. Control means for performing control for changing a signal value; and output adjusting means for changing an output signal value of the light receiving means at a stage preceding the amplifying means in accordance with control of the control means.

【0012】明暗情報コードは、例えば、バーコード、
カルラコード、ベリコード等の種々の態様があり、明部
(例えば白色部分)と暗部(例えば黒色部分)の組み合
わせ(模様)によって定義されている情報内容を表すコ
ードである。
The light / dark information code is, for example, a bar code,
There are various modes such as a Carla code, a Veri code, and the like. The code represents information content defined by a combination (pattern) of a light portion (for example, a white portion) and a dark portion (for example, a black portion).

【0013】本発明の明暗情報コード読取装置によれ
ば、発光手段から照射される光によってバーコード等の
明暗情報コードを照明し、その反射光又は透過光を受光
手段で受光する。受光手段は光電変換機能を有してお
り、受光手段の出力信号は明暗情報コードの明暗パター
ンに応じて変化する。出力信号は増幅手段で増幅された
後、A/D変換手段を介して制御手段に入力される。制
御手段は、A/D変換手段から受入した信号から明暗パ
ターンの検出動作を行うに十分な状態であるか否かを判
断する。出力信号のS/N比が悪い状態にあると判定し
た時は、適正な出力信号値が得られるように制御手段が
出力調整手段を制御して、前記増幅手段の手前で受光手
段の出力信号値を可変する。
According to the light / dark information code reading apparatus of the present invention, the light / dark information code such as a bar code is illuminated by the light emitted from the light emitting means, and the reflected light or transmitted light is received by the light receiving means. The light receiving means has a photoelectric conversion function, and the output signal of the light receiving means changes according to the light / dark pattern of the light / dark information code. After the output signal is amplified by the amplifying means, it is input to the control means via the A / D conversion means. The control means determines from the signal received from the A / D conversion means whether or not it is in a state sufficient to perform a light / dark pattern detection operation. When it is determined that the S / N ratio of the output signal is in a bad state, the control means controls the output adjusting means so that an appropriate output signal value is obtained, and the output signal of the light receiving means is provided before the amplifying means. Change the value.

【0014】これにより、受光手段から取り出す出力信
号を自動的に適正化できる。また、明暗情報コードの読
み取り信号に基づいて自動キャリブレーションを行うの
で、読取対象物たる明暗情報コードの明暗(濃淡)のバ
ラツキに対する最適な調整が可能となる。
Thus, the output signal taken out from the light receiving means can be automatically optimized. In addition, since the automatic calibration is performed based on the read signal of the light / dark information code, it is possible to optimally adjust the variation of the light / dark (shade) of the light / dark information code to be read.

【0015】また、本発明に係る他の態様の明暗情報コ
ード読取装置は、明部と暗部の組み合わせパターンから
なる明暗情報コードを照明する発光部と、前記明暗情報
コードからの反射光又は透過光を受光し、その受光量に
応じた電気信号を発生させる受光部とからなる光センサ
と、前記明暗情報コードの読み取り時に前記光センサに
よって前記明暗情報コードを走査させる手段と、前記走
査時に前記光センサを介して得られた信号のうちの前記
明暗情報コードによる明暗の振幅とノイズの振幅とを区
別するための閾値が設定される閾値設定手段と、前記走
査時に前記光センサを介して得られた信号の振幅の変化
に基づいて前記明暗情報コードを読み取る読取手段であ
って、前記閾値設定手段に設定された閾値以上の振幅の
変化のみを前記明暗情報コードとして読み取る読取手段
と、感度調整時に前記光センサを介して得られた信号の
振幅値の大きさに対応した閾値となるように前記閾値設
定手段の閾値を設定する感度調整手段と、を備えたこと
を特徴としている。
According to another aspect of the present invention, there is provided a light / dark information code reading device for illuminating a light / dark information code formed by a combination pattern of a light portion and a dark portion, and light reflected or transmitted from the light / dark information code. And a light receiving unit for generating an electrical signal according to the amount of received light, a means for scanning the light / dark information code by the light sensor when reading the light / dark information code, and Threshold setting means for setting a threshold for distinguishing between light and dark amplitude and noise amplitude of the light and dark information code among signals obtained through a sensor, and a threshold obtained through the optical sensor during the scanning. Reading means for reading the light / dark information code based on a change in the amplitude of the signal, wherein only the change in the amplitude equal to or greater than a threshold value set in the threshold value setting means is detected. Reading means for reading as an information code, and sensitivity adjusting means for setting a threshold value of the threshold value setting means so as to be a threshold value corresponding to the magnitude of the amplitude value of a signal obtained through the optical sensor during sensitivity adjustment. It is characterized by having.

【0016】即ち、前記明暗情報コードを読み取った時
のAC的な振幅値の大きさを測定し、その振幅値に合わ
せた閾値を採用することで、光センサのスポット径のバ
ラツキ(AC的な振幅)に影響されない感度調整ができ
る。例えば、前記明暗情報コードを光センサで走査して
得られる出力振幅に対し、明暗の振幅とノイズの振幅と
を区別するための閾値が大きすぎる場合には、明暗情報
を検出することができず、閾値が小さすぎる場合には、
ノイズを明暗情報として誤検出することになるが、本発
明によれば、上記閾値の適正化を図ることができる。
That is, by measuring the magnitude of the AC amplitude value when the light / dark information code is read, and adopting a threshold value corresponding to the amplitude value, the spot diameter variation of the optical sensor (AC The sensitivity can be adjusted without being affected by the amplitude. For example, if the threshold for distinguishing between the amplitude of light and dark and the amplitude of noise is too large for the output amplitude obtained by scanning the light and dark information code with an optical sensor, the light and dark information cannot be detected. , If the threshold is too small,
Although noise is erroneously detected as light / dark information, according to the present invention, the threshold can be optimized.

【0017】本発明に係る更に他の態様の明暗情報コー
ド読取装置は、明部と暗部の組み合わせパターンからな
る明暗情報コードを照明する発光部と、前記明暗情報コ
ードからの反射光又は透過光を受光し、その受光量に応
じた電気信号を発生させる受光部とからなる光センサ
と、前記光センサの出力信号を増幅する増幅手段と、前
記増幅手段で得られた信号をデジタル信号に変換するA
/D変換手段と、前記明暗情報コードの読み取り時に前
記光センサによって前記明暗情報コードを走査させる手
段と、前記走査時に前記A/D変換手段から出力される
デジタル信号値を記憶する記憶手段と、前記記憶手段に
記憶されたデジタル信号値のうちの前記明暗情報コード
による明暗の振幅とノイズの振幅とを区別するための閾
値が設定される閾値設定手段と、前記記憶手段に記憶さ
れたデジタル信号値の振幅の変化に基づいて前記明暗情
報コードを読み取る読取手段であって、前記閾値設定手
段に設定された閾値以上の振幅の変化のみを前記明暗情
報コードとして読み取る読取手段と、出力調整時に前記
光センサを前記明暗情報コードの明部と同じ明るさの位
置に移動させ、前記A/D変換手段から出力されるデジ
タル信号値を受入し、該デジタル信号値に基づいて前記
受光手段の出力信号値を変化させる制御を行う第1の制
御手段と、前記第1の制御手段の制御にしたがって前記
光センサの出力信号値を前記増幅手段の前段において可
変し得る出力調整手段と、前記出力調整後の感度調整時
に前記光センサによって前記明暗情報コードを走査さ
せ、前記記憶手段に記憶されたデジタル信号値の振幅値
の大きさに対応した閾値となるように前記閾値設定手段
に閾値を設定する感度調整手段と、を備えたことを特徴
としている。
A light / dark information code reading apparatus according to still another aspect of the present invention includes a light emitting unit for illuminating a light / dark information code composed of a combination pattern of a light portion and a dark portion, and a light reflected or transmitted from the light / dark information code. An optical sensor comprising a light receiving unit for receiving light and generating an electric signal corresponding to the amount of received light; an amplifying means for amplifying an output signal of the optical sensor; and converting a signal obtained by the amplifying means into a digital signal A
/ D conversion means, means for causing the light sensor to scan the light / dark information code when reading the light / dark information code, and storage means for storing a digital signal value output from the A / D conversion means during the scanning. Threshold setting means for setting a threshold for distinguishing between light and dark amplitude and noise amplitude based on the light and dark information code among the digital signal values stored in the storage means, and a digital signal stored in the storage means Reading means for reading the light / dark information code based on a change in the amplitude of the value, wherein the reading means reads only a change in amplitude equal to or greater than a threshold value set in the threshold value setting means as the light / dark information code; and The optical sensor is moved to a position having the same brightness as the bright portion of the light / dark information code, and receives a digital signal value output from the A / D conversion means. A first control unit for performing control to change an output signal value of the light receiving unit based on the digital signal value, and an output signal value of the optical sensor according to the control of the first control unit. An output adjusting means that can be varied in the preceding stage, and a threshold value corresponding to the magnitude of the amplitude value of the digital signal value stored in the storage means, wherein the light sensor scans the light / dark information code at the time of sensitivity adjustment after the output adjustment. And a sensitivity adjusting means for setting a threshold value in the threshold value setting means such that

【0018】即ち、光センサから取り出す出力信号の適
正化を図るとともに、明暗の振幅とノイズの振幅とを区
別するための閾値の適正化を図ることができる。
That is, the output signal extracted from the optical sensor can be optimized, and the threshold value for distinguishing the amplitude of light and dark from the amplitude of noise can be optimized.

【0019】前記感度調整手段は、自動調整指令を受入
すると、前記光センサによって明暗情報コードを走査さ
せ、その走査時に前記光センタを介して得られた信号の
振幅値を測定する振幅測定手段と、前記測定した振幅値
に基づいて該振幅値の大きさに対応した前記閾値を求め
る手段と、前記閾値設定手段に前記求めた閾値を設定す
る手段と、を備えたことを特徴としている。前記閾値を
求める手段は、前記閾値を求めるための計算式又はルッ
クアップテーブルを有することを特徴としている。ま
た、前記計算式又はルックアップテーブルは、前記測定
した振幅値が所定の値以下のときには一定値となり、前
記所定の値を越えると、該測定した振幅値に比例して連
続的に又は段階的に大きくなる閾値を求めるものであ
る。
The sensitivity adjusting means, when receiving the automatic adjustment command, causes the optical sensor to scan the light / dark information code, and measures the amplitude value of a signal obtained via the optical center during the scanning. Means for calculating the threshold value corresponding to the magnitude of the amplitude value based on the measured amplitude value, and means for setting the obtained threshold value in the threshold value setting means. The means for determining the threshold has a calculation formula or a look-up table for determining the threshold. Further, the calculation formula or the look-up table has a constant value when the measured amplitude value is equal to or less than a predetermined value, and when the measured amplitude value exceeds the predetermined value, continuously or stepwise in proportion to the measured amplitude value. Is determined.

【0020】本発明の他の態様は、明部と暗部の組み合
わせパターンからなる明暗情報コードと光センサとを相
対的に移動させ、該光センサを介して得られる電気信号
に基づいて前記明暗情報コードを読み取る明暗情報コー
ド読取方法であって、予め閾値設定手段に設定された閾
値に基づいて前記明暗情報コードによる明暗の振幅とノ
イズの振幅とを区別するようにした明暗情報コード読取
装置の調整方法において、感度調整時に調整用の明暗情
報コードが付された対象物と前記光センタとを相対的に
移動させ、前記明暗情報コードに対応した正弦波状の電
気信号を得る工程と、前記正弦波状の電気信号の振幅値
を測定する工程と、前記測定した振幅値に基づいて前記
明暗情報コードによる明暗の振幅とノイズの振幅とを区
別するための閾値を、計算式又はルックアップテーブル
から求める工程と、前記求めた閾値を前記閾値設定手段
に設定する工程と、を備えたことを特徴としている。
According to another aspect of the present invention, a light / dark information code composed of a combination pattern of a light portion and a dark portion is relatively moved, and the light / dark information is based on an electric signal obtained via the light sensor. A brightness / darkness information code reading method for reading a code, wherein the brightness / darkness information code reading device is configured to distinguish between a brightness amplitude and a noise amplitude by the brightness / darkness information code based on a threshold value set in advance by a threshold value setting unit. A method of relatively moving an object provided with an adjustment light / dark information code during sensitivity adjustment and the optical center to obtain a sinusoidal electric signal corresponding to the light / dark information code; Measuring the amplitude value of the electrical signal, and a threshold value for distinguishing between the brightness amplitude and the noise amplitude based on the brightness information code based on the measured amplitude value , And a step of determining from a calculation or look-up table, and setting the determined threshold to the threshold setting means, comprising the.

【0021】また、本発明の更に他の態様の明暗情報コ
ード読取装置の調整方法は、前記感度調整前の出力調整
時に、前記光センサを前記明暗情報コードの明部と同じ
明るさの位置に移動させ、前記明部に対応した出力信号
値を得る工程と、前記出力信号値が基準の範囲内になる
ように前記光センサの出力信号値を調整する工程と、を
含むことを特徴としている。
According to still another aspect of the present invention, there is provided a method for adjusting a light / dark information code reading apparatus, wherein the light sensor is positioned at the same brightness as the light portion of the light / dark information code at the time of output adjustment before the sensitivity adjustment. Moving the optical sensor to obtain an output signal value corresponding to the bright portion, and adjusting the output signal value of the optical sensor so that the output signal value falls within a reference range. .

【0022】[0022]

【発明の実施の形態】以下添付図面に従って本発明に係
る光検出装置、明暗情報コード読取装置及びその調整方
法の好ましい実施の形態について説明する。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS Preferred embodiments of a photodetector, a light / dark information code reader and a method for adjusting the same according to the present invention will be described below with reference to the accompanying drawings.

【0023】図1には本発明の第1の実施の形態に係る
バーコード読取装置の構成が示されている。同図に示す
ように、このバーコード読取装置10は、発光部に相当
する発光ダイオード12と、受光部に相当するフォトト
ランジスタ14と、前記フォトトランジスタ14の出力
電圧を可変する抵抗回路16と、前記フォトトランジス
タ14の出力電圧を増幅するアンプ18と、前記アンプ
18の出力信号をデジタル信号に変換するA/D変換器
20と、前記抵抗回路16の抵抗値を制御する制御手段
に相当するマイクロコンピュータ(以下、マイコンと略
記する。)22とから構成される。
FIG. 1 shows the configuration of a bar code reader according to a first embodiment of the present invention. As shown in FIG. 1, the barcode reader 10 includes a light emitting diode 12 corresponding to a light emitting unit, a phototransistor 14 corresponding to a light receiving unit, a resistance circuit 16 for varying an output voltage of the phototransistor 14, An amplifier 18 for amplifying the output voltage of the phototransistor 14, an A / D converter 20 for converting an output signal of the amplifier 18 into a digital signal, and a micro-controller corresponding to a control unit for controlling a resistance value of the resistor circuit 16. And a computer (hereinafter abbreviated as a microcomputer) 22.

【0024】発光ダイオード12は電源端子24から電
力が供給されることにより発光し、その光によって図示
せぬバーコードを照明する。バーコードは明部に相当す
る白色部と暗部に相当する黒色部の組み合わせによっ
て、ある定義された情報内容を表している。なお、明部
と暗部を分ける色の組み合わせは白と黒に限定するもの
ではなく、白と青、白と茶、赤と黒、という具合に、明
部の検出信号と暗部の検出信号を区別できるものであれ
ば、その色の組み合わせは多様な態様が可能である。
The light emitting diode 12 emits light when power is supplied from a power supply terminal 24, and illuminates a bar code (not shown) with the light. The bar code represents a certain defined information content by a combination of a white portion corresponding to a bright portion and a black portion corresponding to a dark portion. Note that the combination of colors that separate the light and dark areas is not limited to white and black, and the detection signal for the light area and the detection signal for the dark area are distinguished, such as white and blue, white and brown, and red and black. If possible, various combinations of the colors are possible.

【0025】バーコードからの反射光、又はバーコード
を透過した光(透過光)はフォトトランジスタ14によ
って受光され、フォトトランジスタ14において受光量
に応じた電気信号に変換される。すなわち、フォトトラ
ンジスタ14には受光量に応じた電流値の電流が流れ
る。
Light reflected from the bar code or light transmitted through the bar code (transmitted light) is received by the phototransistor 14, and is converted into an electric signal corresponding to the amount of light received by the phototransistor 14. That is, a current having a current value corresponding to the amount of received light flows through the phototransistor 14.

【0026】フォトトランジスタ14のエミッタ端子と
グランド(GND)の間には、抵抗R0 が接続されてお
り、この抵抗R0 と抵抗回路16の抵抗値の組み合わせ
からなる電気抵抗によってフォトトランジスタ14の出
力電流が電圧信号に変換される。
A resistor R0 is connected between the emitter terminal of the phototransistor 14 and ground (GND). The output current of the phototransistor 14 is determined by an electric resistance formed by a combination of the resistance R0 and the resistance value of the resistor circuit 16. Is converted to a voltage signal.

【0027】抵抗回路16は、抵抗R1 、R2 、R3 、
R4 を含み、各抵抗R1 〜R4 はそれぞれフォトトラン
ジスタ14のエミッタ端子とマイコン22のポートP1
、P2 、P3 、P4 の間に接続されている。マイコン
22は各ポートP1 〜P4 をLow(クローズ)又はオ
ープンの何れかの状態に選択的に制御することができ、
マイコン22のポート制御に従って前記抵抗R0 と並列
接続される抵抗R1〜R4 の組み合わせが変更される。
このように、本例のバーコード読取装置10は、マイコ
ン22のポート制御によって、エミッタ−グランド間の
電気抵抗値を可変し、フォトトランジスタ14の出力電
圧値(すなわち、アンプ18入力直前の電圧値)を変化
させる。マイコン22によるポート制御方法は後述す
る。
The resistor circuit 16 includes resistors R1, R2, R3,
R4, the resistors R1 to R4 are respectively connected to the emitter terminal of the phototransistor 14 and the port P1 of the microcomputer 22.
, P2, P3, P4. The microcomputer 22 can selectively control each of the ports P1 to P4 to be in a low (closed) or open state.
According to the port control of the microcomputer 22, the combination of the resistors R1 to R4 connected in parallel with the resistor R0 is changed.
As described above, the barcode reader 10 of the present embodiment varies the electric resistance between the emitter and the ground by the port control of the microcomputer 22 and changes the output voltage of the phototransistor 14 (that is, the voltage immediately before the input to the amplifier 18). Change). The port control method by the microcomputer 22 will be described later.

【0028】フォトトランジスタ14の出力電圧信号は
アンプ18に入力され、該アンプ18によって増幅され
る。アンプ18から出力された信号はA/D変換器20
に加えられ、該A/D変換器20よってデジタル信号に
変換される。A/D変換器20から出力されるデジタル
信号は、フォトトランジスタ14の出力電圧値を反映す
るデジタルデータとなっており、このデジタルデータ
(A/D値)はマイコン22に入力される。
The output voltage signal of the phototransistor 14 is input to an amplifier 18 and amplified by the amplifier 18. The signal output from the amplifier 18 is converted to an A / D converter 20
And converted into a digital signal by the A / D converter 20. The digital signal output from the A / D converter 20 is digital data reflecting the output voltage value of the phototransistor 14, and the digital data (A / D value) is input to the microcomputer 22.

【0029】マイコン22は、A/D変換器20から受
入するデジタルデータに基づいて、前記抵抗回路16の
抵抗値を制御するポート制御手段として機能するととも
に、読み取ったバーコードの明暗判別処理やバーコード
が示す情報内容を判読する処理を行う信号処理部として
機能する。
The microcomputer 22 functions as a port control means for controlling the resistance value of the resistance circuit 16 based on the digital data received from the A / D converter 20, and performs a process of discriminating the brightness of the read bar code and a bar code. It functions as a signal processing unit that performs a process of reading the information content indicated by the code.

【0030】図2は本例のバーコード読取装置10にお
ける自動感度調整の手順を示すフローチャートである。
本装置の初期状態において、前記抵抗回路16に使用さ
れるマイコン22のポートP1 〜P4 は全てオープン状
態に設定されるものとする。このとき、ポートP1 〜P
4 の制御状態を示す状態番号Nは、初期値としてN=0
に設定される(ステップS210)。
FIG. 2 is a flowchart showing the procedure of the automatic sensitivity adjustment in the bar code reader 10 of the present embodiment.
In the initial state of the apparatus, all the ports P1 to P4 of the microcomputer 22 used for the resistance circuit 16 are set to the open state. At this time, ports P1 to P
The state number N indicating the control state of No. 4 is N = 0 as an initial value.
Is set to (step S210).

【0031】かかる初期状態のもとで、バーコードの読
み取りを実行する(ステップS212)。すなわち、発
光ダイオード12から発せられた光はバーコードラベル
に照射される。バーコードの白色部分(明部)と黒色部
分(暗部)とでは光の反射率が異なるので、フォトトラ
ンジスタ14のエミッタ端子にはバーコードの白黒パタ
ーンに対応して変動する電圧信号が出力される。
Under such an initial state, a bar code is read (step S212). That is, the light emitted from the light emitting diode 12 is applied to the barcode label. Since the reflectance of light is different between the white portion (bright portion) and the black portion (dark portion) of the bar code, a voltage signal that fluctuates according to the bar code monochrome pattern is output to the emitter terminal of the phototransistor 14. .

【0032】この出力電圧信号はアンプ18によって増
幅され、A/D変換器20を介してマイコン22に入力
される。マイコン22はA/D変換器20から出力され
るデジタルデータ(A/D値)を読み込む(ステップS
214)。そして、マイコン22は、バーコードの白部
分に相当するA/D値、黒部分に相当するA/D値をそ
れぞれあらかじめ定められている基準値と比較し(ステ
ップS216)、出力感度の調整が必要であるか否かの
判断を行う(ステップS218)。
This output voltage signal is amplified by the amplifier 18 and input to the microcomputer 22 via the A / D converter 20. The microcomputer 22 reads the digital data (A / D value) output from the A / D converter 20 (Step S)
214). Then, the microcomputer 22 compares the A / D value corresponding to the white portion of the barcode and the A / D value corresponding to the black portion with a predetermined reference value (step S216), and adjusts the output sensitivity. It is determined whether it is necessary (step S218).

【0033】前記基準値は、フォトトランジスタ14か
らの出力信号(以下、センサ出力という)が白黒判定処
理に適当なS/N比であるか否か、若しくは、出力信号
が飽和しているか否か(いわゆるサチレーションを起こ
している状態にあるか否か)を判断し得るように設定さ
れている。
The reference value is determined based on whether an output signal from the phototransistor 14 (hereinafter referred to as a sensor output) has an S / N ratio suitable for a black-and-white determination process or whether the output signal is saturated. (Whether or not a state where a so-called saturation is occurring) is set.

【0034】ステップS218の判定工程において、セ
ンサ出力の調整が必要であると判定した時は、マイコン
22のポートのN+1番目の出力をLowとする(ステ
ップS220)。これによりフォトトランジスタ14の
エミッタとグランドとの間に接続される電気抵抗値が変
更され、フォトトランジスタ14の出力電圧値が変化す
る。また、ポートのN+1番目の出力をLowにした際
に、制御番号Nを+1だけカウントアップする(ステッ
プS222)。その後、処理はステップS212に戻
る。
In the determination step of step S218, when it is determined that the sensor output needs to be adjusted, the (N + 1) th output of the port of the microcomputer 22 is set to be low (step S220). As a result, the electric resistance value connected between the emitter of the phototransistor 14 and the ground changes, and the output voltage value of the phototransistor 14 changes. When the (N + 1) th output of the port is set to Low, the control number N is counted up by +1 (Step S222). Thereafter, the process returns to step S212.

【0035】こうして、良好なS/N比のセンサ出力が
得られる状態まで、ポート制御が自動的に行われる。ス
テップS218でセンサ出力の調整が必要ないと判定し
た時は、ステップS224に進んで処理を終了する。
Thus, the port control is automatically performed until a sensor output with a good S / N ratio is obtained. If it is determined in step S218 that the sensor output does not need to be adjusted, the process proceeds to step S224 and ends.

【0036】通常、このような感度調整は製品の工場出
荷時に行われ、一旦調整を行った後は、使用の都度キャ
リブレーションを行う必要はない。しかし、本例のバー
コード読取装置10はバーコードのパリティエラー(白
黒の判定エラー)や、白黒の総数チェックなどで異常が
検出された場合には図2で説明した自動感度調整の処理
が実施される。このように、本例のバーコード読取装置
10は、検出エラー時に自動キャリブレーションを行う
ので、読取対象物(バーコード)のバラツキに対する最
適な調整が可能である。
Normally, such sensitivity adjustment is performed when the product is shipped from the factory. Once the adjustment is performed, it is not necessary to perform the calibration each time the product is used. However, when an error is detected in the bar code reading error of the bar code reading device 10 or the parity check of the bar code (black / white determination error) or the total number of black and white is detected, the automatic sensitivity adjustment process described with reference to FIG. 2 is performed. Is done. As described above, the barcode reading device 10 of the present embodiment performs the automatic calibration at the time of the detection error, so that it is possible to perform the optimal adjustment for the variation of the reading target (the barcode).

【0037】図1に示した第1の実施の形態では、4つ
の抵抗R1 〜R4 、とマイコンポートP1 〜P4によっ
て抵抗回路16を形成しているが、抵抗回路の構成形態
はこれに限定するものではなく、抵抗の個数や使用する
ポートの数などは設計変更が可能である。
In the first embodiment shown in FIG. 1, the resistor circuit 16 is formed by the four resistors R1 to R4 and the microcomputer ports P1 to P4, but the configuration of the resistor circuit is not limited to this. However, the design of the number of resistors, the number of ports used, and the like can be changed.

【0038】また、本実施の形態の変形例として、抵抗
R0 をマイコン22によって外部コントロール可能な可
変抵抗値で構成してもよい。かかる態様によれば、図1
に示した抵抗回路16の部分を省略することができる。
As a modification of this embodiment, the resistor R0 may be constituted by a variable resistance value which can be externally controlled by the microcomputer 22. According to such an embodiment, FIG.
1 can be omitted.

【0039】図3は、本発明の第2の実施の形態に係る
バーコード読取装置のブロック回路図である。図3中図
1で説明した第1の実施の形態と共通又は類似する部分
には同一の符号を付し、説明は省略する。図1で説明し
た例ではフォトトランジスタ14のエミッタ端子からセ
ンサ出力を得ているが、図3に示す第2の実施の形態
は、フォトトランジスタ14のコレクタ端子からセンサ
出力を得ており、マイコン22の各ポートP1 〜P4 が
Hiまたはオープンの2状態から選択される点で図1の
例と異なる。
FIG. 3 is a block circuit diagram of a bar code reader according to a second embodiment of the present invention. In FIG. 3, portions common or similar to those of the first embodiment described with reference to FIG. 1 are denoted by the same reference numerals, and description thereof is omitted. Although the sensor output is obtained from the emitter terminal of the phototransistor 14 in the example described with reference to FIG. 1, the sensor output is obtained from the collector terminal of the phototransistor 14 in the second embodiment shown in FIG. Is different from the example of FIG. 1 in that each of the ports P1 to P4 is selected from two states of Hi or open.

【0040】抵抗回路16の形態の任意性を考慮して、
図3の抵抗回路16と置換可能な部分をブロック化して
図示すると、図4に示すようになる。同図において、抵
抗回路ブロック26は、マイコン22の制御によって抵
抗値が可変する構造を有するものである。マイコン22
は、A/D変換器20を介して受入したA/D値からキ
ャリブレーションが必要と判断した場合に、抵抗回路ブ
ロック26の抵抗値を制御して、フォトトランジスタ1
4の出力電圧値を最適なレベルに変化させる。
Considering the arbitrariness of the form of the resistance circuit 16,
FIG. 4 shows a block diagram of a portion that can be replaced with the resistor circuit 16 of FIG. In the figure, a resistance circuit block 26 has a structure in which a resistance value is variable under the control of a microcomputer 22. Microcomputer 22
Controls the resistance value of the resistance circuit block 26 when it is determined that calibration is necessary based on the A / D value received via the A / D converter 20, and
4 is changed to an optimum level.

【0041】図5は本発明の第3の実施の形態に係るバ
ーコード読取装置のブロック回路図である。図5中図1
で説明した第1の実施の形態と共通又は類似する部分に
は同一の符号を付し、説明は省略する。図5に示す回路
構成によれば、フォトダイオード14の出力電流を、カ
レントミラー回路30に流す電流量と比較させ、その結
果をアンプ(バッファ)18経由でA/D変換器20に
返すように構成されている。
FIG. 5 is a block circuit diagram of a bar code reader according to a third embodiment of the present invention. 1 in FIG.
Portions common or similar to those of the first embodiment described above are denoted by the same reference numerals, and description thereof is omitted. According to the circuit configuration shown in FIG. 5, the output current of the photodiode 14 is compared with the amount of current flowing through the current mirror circuit 30, and the result is returned to the A / D converter 20 via the amplifier (buffer) 18. It is configured.

【0042】カレントミラー回路30のバイアス電流
は、マイコン22のポートP1 〜P4を使用したR−2
R回路32によって細かく設定することが可能である。
なお、マイコン22自体にD/A変換器を有していれ
ば、R−2R回路32に代えて、マイコン22内蔵のD
/A変換器を使用することにより、カレントミラー回路
30に流すバイアス電流を制御する構成も可能である。
The bias current of the current mirror circuit 30 is set to R-2 using the ports P1 to P4 of the microcomputer 22.
It can be set finely by the R circuit 32.
If the microcomputer 22 itself has a D / A converter, instead of the R-2R circuit 32, the built-in D / A converter of the microcomputer 22 is used.
By using the / A converter, a configuration for controlling the bias current flowing through the current mirror circuit 30 is also possible.

【0043】上述の各実施の形態で説明したフォトトラ
ンジスタ14の出力調整に加えて、アンプ18の利得や
A/D変換器20における入力信号の振幅範囲を規定す
るV Top 及びVBottomの値もマイコン22の制御によっ
て最適な値に変化させてもよい。例えば、8ビットのA
/D変換器を用いる場合、VTop からVBottomまでの範
囲を256の分解能でA/D変換することになるので、
小さい振幅の信号をA/D変換器20に入力する時は、
その振幅に合わせてVTop 及びVBottomを調整するのが
よい。
The photo truck described in each of the above embodiments is described.
In addition to adjusting the output of the transistor 14, the gain of the amplifier 18
Defines the amplitude range of the input signal in A / D converter 20
V TopAnd VBottomIs also controlled by the microcomputer 22.
May be changed to an optimum value. For example, an 8-bit A
When a / D converter is used, VTopTo VBottomRange to
A / D conversion is performed on the box with a resolution of 256.
When inputting a small amplitude signal to the A / D converter 20,
V according to the amplitudeTopAnd VBottomTo adjust
Good.

【0044】図1乃至図5で説明したバーコード読取装
置10は、様々な用途があるが、例えば、サーモオート
クローム(TA)方式のプリンタに適用される。TAプ
リンタに使用されるプリントペーパーは、支持体の上に
シアン、マゼンタ、イエローの3層発色層が形成され、
最上層に耐熱保護層が形成されて成る。各発色層は発色
の感度にバラツキがあるため、当該用紙の各色の感度が
所定の基準感度からどの程度ずれているかというランク
付けがなされている。
The bar code reader 10 described with reference to FIGS. 1 to 5 has various uses, but is applied to, for example, a printer of a thermoautochrome (TA) system. The print paper used in the TA printer has a cyan, magenta, and yellow color forming layer formed on a support,
A heat-resistant protective layer is formed on the uppermost layer. Since the color forming layers vary in color forming sensitivity, a ranking is made as to how much the color sensitivity of the paper deviates from a predetermined reference sensitivity.

【0045】かかる感度情報は、図6に示すようにプリ
ントペーパー40の収容体(カートリッジ)42上にバ
ーコード44として付されている。
As shown in FIG. 6, the sensitivity information is provided as a bar code 44 on the container (cartridge) 42 of the print paper 40.

【0046】このバーコード44は、図6に示すように
白地のバーコードラベル45上に、黒色の5本の同期用
マーカー46とデータ用マーカー47とが印刷されてい
る。同期用マーカー46とデータ用マーカー47とは、
互いに平行に設けられるとともに、マーカー幅の2分の
1の長さだけ互いに位相がずれて設けられている。
As shown in FIG. 6, the barcode 44 has five black synchronization markers 46 and data markers 47 printed on a white barcode label 45. The synchronization marker 46 and the data marker 47 are
They are provided in parallel with each other and are shifted in phase from each other by half the length of the marker.

【0047】図7に示すように同期用マーカー46の白
黒の変化点(マーカーエッジ)に同期してデータ用マー
カー47が読み込まれる。尚、同期用マーカー46は、
前述したように5本あるため、10個のマーカーエッジ
を有しており、従って、データ用マーカー47は10ビ
ットによって構成されている。
As shown in FIG. 7, the data marker 47 is read in synchronization with the black / white change point (marker edge) of the synchronization marker 46. Note that the synchronization marker 46 is
As described above, since there are five markers, the marker has ten marker edges. Therefore, the data marker 47 is constituted by 10 bits.

【0048】10ビットの内訳は、1ビットがパリティ
ーチェック用であり、2ビットがプリントペーパーの種
類(ノーマル、2分割、4分割、16分割のプリントペ
ーパー)を示し、残りの7ビットが3層発色層の感度の
ランクを示す感度情報を示す。この感度情報は、各発色
層ごとに5段階にランク付けされており、7ビット(1
28)>5×5×5=125で表現されている。
The breakdown of the 10 bits is that 1 bit is for parity check, 2 bits indicate the type of print paper (normal, 2 division, 4 division, 16 division print paper), and the remaining 7 bits are 3 layers. 6 shows sensitivity information indicating the rank of the sensitivity of the coloring layer. This sensitivity information is ranked in five stages for each color forming layer, and is 7 bits (1 bit).
28)> 5 × 5 × 5 = 125.

【0049】また、図7に示すように、上記同期用マー
カー46を検出する第1の光センサ50と、データ用マ
ーカー47を検出する第2の光センサ52とは並設さ
れ、同期用マーカー46及びデータ用マーカー47が形
成されている長手方向(矢印方向)に一定の速度で移動
し、それぞれ同期用マーカー46及びデータ用マーカー
47からの入射光量に応じてアナログ信号を出力する。
As shown in FIG. 7, a first optical sensor 50 for detecting the synchronization marker 46 and a second optical sensor 52 for detecting the data marker 47 are provided side by side. It moves at a constant speed in the longitudinal direction (the direction of the arrow) where the data marker 47 and the data marker 47 are formed, and outputs an analog signal according to the amount of incident light from the synchronization marker 46 and the data marker 47, respectively.

【0050】図示しないセンサ駆動部は、マイコン22
からの速度制御指令により第1の光センサ50及び第2
の光センサ52を、同期用マーカー46及びデータ用マ
ーカー47上を所定の速度で移動させる。尚、この実施
の形態では、センサ側を移動させるようにしたが、マー
カー側(バーコード側)を移動させるようにしてもよ
い。
The sensor driving unit (not shown) is
The first optical sensor 50 and the second optical sensor 50
Is moved at a predetermined speed on the synchronization marker 46 and the data marker 47. In this embodiment, the sensor side is moved, but the marker side (bar code side) may be moved.

【0051】同期用マーカー46を検出する第1の光セ
ンサ50は、図7(C)に示すように同期用マーカー4
6(図7(A))に応じたアナログ信号を出力し、同様
にデータ用マーカー47を検出する第2の光センサ52
は、図7(D)に示すようにデータ用マーカー47(図
7(B))に応じたアナログ信号を出力する。
The first optical sensor 50 for detecting the synchronization marker 46 is provided with the synchronization marker 4 as shown in FIG.
6 (FIG. 7 (A)) to output an analog signal and similarly detect the data marker 47.
Outputs an analog signal corresponding to the data marker 47 (FIG. 7B) as shown in FIG. 7D.

【0052】尚、第1の光センサ50及び第2の光セン
サ52は、それぞれ図1等に示したように発光部に相当
する発光ダイオードと、受光部に相当するフォトトラン
ジスタとから構成されている。また、第1の光センサ5
0及び第2の光センサ52としては、コピー機などでコ
ピー用紙の有無を検知する程度の安価なものが使用され
ており、また、発光光量、受光光量、及びセンサ取付向
きのバラツキによって第1の光センサ50及び第2の光
センサ52のアナログ出力にはバラツキがあり、更にバ
ーコード44の光沢むら、印刷むらなどがノイズとして
アナログ出力に含まれている。
The first optical sensor 50 and the second optical sensor 52 are each composed of a light emitting diode corresponding to a light emitting unit and a phototransistor corresponding to a light receiving unit as shown in FIG. I have. Also, the first optical sensor 5
As the zero and second optical sensors 52, those which are inexpensive enough to detect the presence or absence of a copy sheet by a copying machine or the like are used. Further, the first and second optical sensors 52 vary in light emission amount, light reception amount, and sensor mounting direction. The analog outputs of the optical sensor 50 and the second optical sensor 52 have variations, and unevenness in gloss and printing of the barcode 44 are included in the analog output as noise.

【0053】上記第1の光センサ50及び第2の光セン
サ52から出力されるアナログ信号は、それぞれA/D
変換器に加えられ、ここでデジタル信号に変換される。
このデジタル信号(A/D値)はマイコンに入力され、
同期用マーカー及びデータ用マーカーのデータとしてデ
ータバッファに一時記憶される。
The analog signals output from the first optical sensor 50 and the second optical sensor 52 are respectively A / D
It is applied to a converter where it is converted to a digital signal.
This digital signal (A / D value) is input to the microcomputer,
The data is temporarily stored in the data buffer as the data of the synchronization marker and the data marker.

【0054】マイコンは、所定の読取アルゴリズムに従
ってデータバッファに記憶された同期用マーカーのデー
タから同期用マーカーの変化点(マーカーエッジ)を検
知したり、同期用マーカーのマーカーエッジに同期して
データ用マーカーのデータが、ハイレベル(Hレベル)
かローレベル(Lレベル)かの判断などを行う。
The microcomputer detects a change point (marker edge) of the synchronization marker from the data of the synchronization marker stored in the data buffer according to a predetermined reading algorithm, or synchronizes with the marker edge of the synchronization marker for the data. Marker data is high level (H level)
Or low level (L level).

【0055】さて、上記読取アルゴリズム中には、同期
用マーカーやデータ用マーカーのデータから、マーカー
に対応した正弦波を検知するアルゴリズムがある。即
ち、同期用マーカーやデータ用マーカーのデータから山
(極大値)、谷(極小値)を検知し、その検知した振幅
がノイズ除去用の閾値以上の場合にマーカーに対応した
正弦波と判断し、閾値以下の場合にはノイズとして判断
する。
Now, among the above reading algorithms, there is an algorithm for detecting a sine wave corresponding to a marker from data of a synchronization marker or a data marker. That is, peaks (maximum values) and valleys (minimum values) are detected from the data of the synchronization marker and the data marker, and when the detected amplitude is equal to or larger than the noise removal threshold value, it is determined that the sine wave corresponds to the marker. , When it is equal to or smaller than the threshold, it is determined as noise.

【0056】ところで、上記閾値を大きく設定しすぎる
と、マーカーに対応した正弦波を検出することができ
ず、一方、閾値を小さく設定しすぎると、ノイズを検出
するという問題がある。
If the threshold is set too large, a sine wave corresponding to the marker cannot be detected. On the other hand, if the threshold is set too small, noise is detected.

【0057】次に、上記閾値を最適値に調整するバーコ
ード読取装置の調整方法について説明する。
Next, a description will be given of a method of adjusting the bar code reader for adjusting the threshold to an optimum value.

【0058】バーコード読取装置を備えたTAプリンタ
の工場出荷前の調整時に、図8に示すようにTAプリン
タに自動調整用コマンドを送り、自動調整を開始させる
(ステップS300)。
At the time of adjustment of the TA printer equipped with the bar code reader before shipment from the factory, an automatic adjustment command is sent to the TA printer as shown in FIG. 8 to start the automatic adjustment (step S300).

【0059】自動調整用コマンドを受入すると、TAプ
リンタは第1の光センサ50及び第2の光センサ52を
バーコードの白部分に移動させる(ステップS30
2)。尚、この自動調整時には、5本の同期用マーカー
と、5本のデータ用マーカーとが印刷されたテスト用バ
ーコードを使用する。また、テスト用バーコードは、明
暗のコントラストが通常のプリントペーパー40のカー
トリッジ42上に貼付されるバーコード44よりも大き
く、かつ光沢むらや印刷むらのないものが使用される。
Upon receiving the command for automatic adjustment, the TA printer moves the first optical sensor 50 and the second optical sensor 52 to the white portion of the bar code (step S30).
2). In this automatic adjustment, a test barcode on which five synchronization markers and five data markers are printed is used. The test bar code used has a higher contrast between light and dark than the bar code 44 attached to the cartridge 42 of the normal print paper 40 and has no gloss unevenness or print unevenness.

【0060】続いて、第1の光センサ50及び第2の光
センサ52を介してそれぞれ得られる白部分のA/D値
を、ある決められた基準値と比較する(ステップS30
4)。この比較結果に基づき感度調整が必要か否かを判
別する(ステップS306)。感度調整が必要な場合に
は、ステップS308で調整処理を行い、ステップS3
04に戻る。これにより、光センサのDC的な出力調整
が行われる。尚、ステップS308での感度調整は、図
2で説明したポート制御によって行うことができる。ま
た、第1の光センサ50及び第2の光センサ52の感度
調整は個別に行われる。
Subsequently, the A / D value of the white portion obtained via the first optical sensor 50 and the second optical sensor 52 is compared with a predetermined reference value (step S30).
4). It is determined whether sensitivity adjustment is necessary based on the comparison result (step S306). If sensitivity adjustment is necessary, an adjustment process is performed in step S308, and step S3 is performed.
Return to 04. Thereby, DC output adjustment of the optical sensor is performed. The sensitivity adjustment in step S308 can be performed by the port control described with reference to FIG. The sensitivity adjustment of the first optical sensor 50 and the second optical sensor 52 is performed individually.

【0061】次に、第1の光センサ50及び第2の光セ
ンサ52を移動させ、前記テスト用バーコードを読み取
り、それぞれテスト用バーコードの同期用マーカー及び
データ用マーカーのデータをデータバッファに一時記憶
させる(ステップS310)。
Next, the first optical sensor 50 and the second optical sensor 52 are moved to read the test bar code, and the data of the synchronization marker and the data marker of the test bar code are respectively stored in the data buffer. It is temporarily stored (step S310).

【0062】上記データバッファに記憶された同期用マ
ーカーのデータに基づき第1の光センサ50のAC的振
幅値を測定し、同様にデータ用マーカーのデータに基づ
き第2の光センサ52のAC的振幅値を測定する(ステ
ップS312)。続いて、ステップS312で測定した
AC的振幅値に合わせたノイズ除去用の閾値を求める
(ステップS314)。
The AC amplitude value of the first optical sensor 50 is measured based on the synchronization marker data stored in the data buffer. Similarly, the AC amplitude value of the second optical sensor 52 is measured based on the data marker data. The amplitude value is measured (Step S312). Subsequently, a noise removal threshold value is determined in accordance with the AC amplitude value measured in step S312 (step S314).

【0063】このノイズ除去用の閾値は以下のようにし
て求める。
The threshold value for noise removal is obtained as follows.

【0064】TAプリンタは、図9のグラフに示すよう
な計算式を有しており、この計算式にステップS312
で測定した振幅値を代入することにより、ノイズ除去用
の閾値を求める。即ち、測定した振幅値をAとすると、
閾値Dは、次式、
The TA printer has a calculation formula as shown in the graph of FIG.
By substituting the amplitude value measured in the above, a threshold value for noise removal is obtained. That is, if the measured amplitude value is A,
The threshold D is given by the following equation:

【0065】[0065]

【数1】D=D0 (A≦A0 ) D={(D1 −D0 )/(A1 −A2 )}A+(D0
1 −D1 0 )/(A1 −A0 ) (A0 <A<A1 ) D=D2 (A1 ≦A) によって算出される。尚、A0 、A1 、D0 、D1 は、
多くの光センサを使用したバーコードの読み取り試験を
通じて最適値に設定されている。また、この実施の形態
では、振幅値AがA1 以上の場合には、閾値DをD1
固定したが、これに限らず、図9のグラフの一点鎖線で
示すように振幅値Aに比例した値にしてもよい。また、
閾値Dは、振幅値AがA0 <A<A1 の範囲では振幅値
Aに比例して連続的に大きくなる値をとっているが、段
階的に大きくなる値をとるようにしてもよい。更に、こ
の実施の形態では、数1に示した計算式から閾値Dを算
出するようにしたが、これに限らず、図9のグラフに対
応するルックアップテーブルを準備しておき、このルッ
クアップテーブルから振幅値Aに応じて閾値Dを読み出
すようにしてもよい。
D = D 0 (A ≦ A 0 ) D = {(D 1 −D 0 ) / (A 1 −A 2 )} A + (D 0 A
1− D 1 A 0 ) / (A 1 −A 0 ) (A 0 <A <A 1 ) D = D 2 (A 1 ≦ A) A 0 , A 1 , D 0 , D 1 are
The optimal value is set through a barcode reading test using many optical sensors. Further, in this embodiment, when the amplitude value A is A 1 or more, a threshold value D has been fixed to the D 1, is not limited to this, the amplitude value A as indicated by a chain line in the graph of FIG. 9 It may be a proportional value. Also,
The threshold value D is a value that increases continuously in proportion to the amplitude value A when the amplitude value A is in the range of A 0 <A <A 1 , but may be a value that increases stepwise. . Furthermore, in this embodiment, the threshold value D is calculated from the calculation formula shown in Expression 1, but the present invention is not limited to this. A lookup table corresponding to the graph of FIG. The threshold value D may be read from the table according to the amplitude value A.

【0066】上記のようにして求めた閾値Dは、TAプ
リンタ内の不揮発性の内部メモリに書き込み、自動調整
を終了する(ステップS316)。
The threshold value D obtained as described above is written into the non-volatile internal memory of the TA printer, and the automatic adjustment ends (step S316).

【0067】内部メモリに書き込んだ閾値Dは、前述し
たようにマーカーに対応した正弦波とノイズとを判別す
る際に使用される。例えば、第2の光センサ52に対し
て求めた閾値Dが、図7(D)の矢印で示す大きさの値
の場合、波形a,bの振幅は閾値Dよりも大きいため、
データ用マーカーに対応した正弦波として判別され、波
形cの振幅は閾値Dよりも小さいため、ノイズとして判
別される。また、第1の光センサ50に対して求めた閾
値は、5本の同期用マーカーに対応した5つの正弦波の
検出に使用される。尚、5つの正弦波が検出されない場
合には異常と判断し、プリントペーパーの種類はノーマ
ルとし、プリントペーパーの3層発色層の感度のランク
はセンター値にする。
The threshold value D written in the internal memory is used when discriminating a sine wave corresponding to a marker from noise as described above. For example, when the threshold value D obtained for the second optical sensor 52 is a value having a size indicated by an arrow in FIG. 7D, the amplitudes of the waveforms a and b are larger than the threshold value D.
It is determined as a sine wave corresponding to the data marker, and since the amplitude of the waveform c is smaller than the threshold D, it is determined as noise. The threshold value obtained for the first optical sensor 50 is used for detecting five sine waves corresponding to the five synchronization markers. If five sine waves are not detected, it is determined that there is an abnormality, the type of print paper is normal, and the rank of the sensitivity of the three color forming layers of the print paper is a center value.

【0068】TAプリンタは、図8のフローチャートに
示した処理を行うプログラムを有しており、自動調整用
コマンドを受入すると、TAプリンタ自身がそのプログ
ラムを実行して自動調整を行う。
The TA printer has a program for performing the processing shown in the flowchart of FIG. 8, and upon receiving an automatic adjustment command, the TA printer itself executes the program to perform automatic adjustment.

【0069】尚、この実施の形態では、製品の工場出荷
前に調整を行うようにしたが、TAプリンタ自身が自動
調整機能を有するため、アフターサービス時に現場で調
整を行うことができる。これによれば、光センサが経時
変化した場合に対応することができる。
In this embodiment, the adjustment is performed before the product is shipped from the factory. However, since the TA printer itself has an automatic adjustment function, the adjustment can be performed on site at the time of after-sales service. According to this, it is possible to cope with a case where the optical sensor changes with time.

【0070】上述の説明においては、本発明をバーコー
ド読取装置に適用した例を述べたが、本発明はバーコー
ド読取装置に限らず、光信号を電気信号に変換して検出
する光センサに広く適用することができる。
In the above description, an example in which the present invention is applied to a bar code reader is described. However, the present invention is not limited to a bar code reader, but may be applied to an optical sensor that converts an optical signal into an electric signal and detects it. Can be widely applied.

【0071】[0071]

【発明の効果】以上説明したように本発明によれば、受
光手段の出力を反映する信号をA/D変換して制御手段
に入力し、その信号に基づいてキャリブレーションの必
要性を判定し、必要な場合には、制御手段によって出力
調整手段を制御し、前記増幅手段の手前で受光手段の出
力信号値を変化させるようにしたので、感度調整を自動
化することができる。
As described above, according to the present invention, a signal reflecting the output of the light receiving means is A / D converted and input to the control means, and the necessity of calibration is determined based on the signal. If necessary, the output adjusting means is controlled by the control means to change the output signal value of the light receiving means before the amplifying means, so that the sensitivity adjustment can be automated.

【0072】また、検出エラーが発生した時に、自動的
にキャリブレーションの処理を実行するように構成する
ことで、バーコードなどの読取対象物のバラツキに対す
る最適な調整が可能である。
Further, by automatically executing the calibration process when a detection error occurs, it is possible to make an optimal adjustment for the variation of the object to be read such as a bar code.

【0073】さらに、本発明によれば、明暗情報コード
を読み取った時のAC的な振幅値の大きさを測定し、そ
の振幅値に合わせたノイズ除去用の閾値を採用すること
で、明暗の振幅とノイズの振幅とを区別するための閾値
の適正化を図ることができ、光センサのスポット径のバ
ラツキ(AC的な振幅)に影響されない感度調整ができ
る。
Further, according to the present invention, the magnitude of the AC amplitude value at the time of reading the light / dark information code is measured, and a threshold value for noise removal in accordance with the amplitude value is adopted, whereby the brightness / darkness is determined. The threshold value for distinguishing the amplitude from the noise amplitude can be optimized, and the sensitivity can be adjusted without being affected by the spot diameter variation (AC amplitude) of the optical sensor.

【0074】さらにまた、本発明によれば、上述した自
動感度調整を実現したことによって、センサ出力の経時
変化があっても、キャリブレーションによる再調整が容
易である。
Further, according to the present invention, since the above-described automatic sensitivity adjustment is realized, even if the sensor output changes over time, readjustment by calibration is easy.

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

【図1】本発明の第1の実施の形態に係るバーコード読
取装置の構成を示すブロック回路図
FIG. 1 is a block circuit diagram showing a configuration of a barcode reading device according to a first embodiment of the present invention.

【図2】図1に示したバーコード読取装置の自動感度調
整処理の手順を示すフローチャート
FIG. 2 is a flowchart showing a procedure of an automatic sensitivity adjustment process of the barcode reader shown in FIG. 1;

【図3】本発明の第2の実施の形態に係るバーコード読
取装置の構成を示すブロック回路図
FIG. 3 is a block circuit diagram showing a configuration of a barcode reading device according to a second embodiment of the present invention.

【図4】図3に示した第2の実施の形態の変形例を示す
ブロック回路図
FIG. 4 is a block circuit diagram showing a modification of the second embodiment shown in FIG. 3;

【図5】本発明の第3の実施の形態に係るバーコード読
取装置の構成を示すブロック回路図
FIG. 5 is a block circuit diagram showing a configuration of a barcode reader according to a third embodiment of the present invention.

【図6】バーコードが付されたプリントペーパーのカー
トリッジの平面図
FIG. 6 is a plan view of a print paper cartridge provided with a bar code.

【図7】同期用マーカー、データ用マーカーと、これら
のマーカーをそれぞれ検出する光センサのアナログ出力
との関係を示す図
FIG. 7 is a diagram showing a relationship between a synchronization marker, a data marker, and an analog output of an optical sensor that detects these markers.

【図8】バーコード読取装置における調整手順を示すフ
ローチャート
FIG. 8 is a flowchart showing an adjustment procedure in the bar code reader.

【図9】ノイズ除去用の閾値の求め方を説明するために
用いたグラフ
FIG. 9 is a graph used to explain how to obtain a threshold value for noise removal.

【符号の説明】[Explanation of symbols]

10…バーコード読取装置、12…発光ダイオード(発
光手段)、14…フォトトランジスタ(受光手段)、1
6…抵抗回路(出力調整手段)、18…アンプ(増幅手
段)、20…A/D変換器(A/D変換手段)、22…
マイコン(制御手段)、40…プリントペーパー、42
…収容体(カートリッジ)、44…バーコード、46…
同期用マーカー、47…データ用マーカー、50…第1
の光センサ、52…第2の光センサ
10 bar code reader, 12 light emitting diode (light emitting means), 14 photo transistor (light receiving means), 1
6 ... resistance circuit (output adjustment means), 18 ... amplifier (amplification means), 20 ... A / D converter (A / D conversion means), 22 ...
Microcomputer (control means), 40 ... print paper, 42
... Container (cartridge), 44 ... Barcode, 46 ...
Synchronization marker, 47 ... data marker, 50 ... first
52, the second optical sensor

Claims (12)

【特許請求の範囲】[Claims] 【請求項1】 受光量に応じた電気信号を発生させる受
光手段と、 前記受光手段からの出力信号を増幅する増幅手段と、 前記増幅手段で得られた信号をデジタル信号に変換する
A/D変換手段と、 前記A/D変換手段から出力されるデジタル信号値を受
入し、該デジタル信号値に基づいて前記受光手段の出力
信号値を変化させる制御を行う制御手段と、 前記制御手段の制御にしたがって前記受光手段の出力信
号値を前記増幅手段の前段において可変し得る出力調整
手段と、 を備えたことを特徴とする光検出装置。
1. A light receiving means for generating an electric signal corresponding to a light receiving amount, an amplifying means for amplifying an output signal from the light receiving means, and an A / D for converting a signal obtained by the amplifying means into a digital signal. Conversion means; control means for receiving a digital signal value output from the A / D conversion means, and controlling to change an output signal value of the light receiving means based on the digital signal value; control of the control means And an output adjusting unit that can vary an output signal value of the light receiving unit in a stage preceding the amplifying unit.
【請求項2】 請求項1の光検出装置において、該装置
は、対象物を照明する発光手段を有し、前記受光手段
は、前記対象物からの反射光又は透過光を受光し、その
受光量に応じた電気信号を発生させることを特徴とする
光検出装置。
2. The light detection device according to claim 1, wherein the device has a light emitting unit for illuminating the object, and the light receiving unit receives reflected light or transmitted light from the object, and receives the light. A photodetector for generating an electric signal according to an amount.
【請求項3】 前記制御手段はマイクロコンピュータで
構成されるとともに、前記出力調整手段は前記マイクロ
コンピュータのポート制御によって電気抵抗値が可変す
る抵抗回路から成ることを特徴とする請求項1又は2の
光検出装置。
3. The control device according to claim 1, wherein said control means is constituted by a microcomputer, and said output adjusting means is constituted by a resistance circuit whose electric resistance value is varied by port control of said microcomputer. Photodetector.
【請求項4】 明部と暗部の組み合わせパターンからな
る明暗情報コードを照明する発光手段と、 前記明暗情報コードからの反射光又は透過光を受光し、
その受光量に応じた電気信号を発生させる受光手段と、 前記受光手段の出力信号を増幅する増幅手段と、 前記増幅手段で得られた信号をデジタル信号に変換する
A/D変換手段と、 前記A/D変換手段から出力されるデジタル信号値を受
入し、該デジタル信号値に基づいて前記受光手段の出力
信号値を変化させる制御を行う制御手段と、 前記制御手段の制御にしたがって前記受光手段の出力信
号値を前記増幅手段の前段において可変し得る出力調整
手段と、 を備えたことを特徴とする明暗情報コード読取装置。
4. A light emitting means for illuminating a light / dark information code composed of a combination pattern of a light part and a dark part; and receiving reflected light or transmitted light from the light / dark information code;
Light receiving means for generating an electric signal according to the amount of received light; amplifying means for amplifying an output signal of the light receiving means; A / D converting means for converting a signal obtained by the amplifying means into a digital signal; Control means for receiving a digital signal value output from the A / D conversion means and controlling to change the output signal value of the light receiving means based on the digital signal value; and the light receiving means according to the control of the control means A light / dark information code reading device, comprising: an output adjusting unit capable of changing the output signal value of the above at the preceding stage of the amplifying unit.
【請求項5】 明部と暗部の組み合わせパターンからな
る明暗情報コードを照明する発光部と、前記明暗情報コ
ードからの反射光又は透過光を受光し、その受光量に応
じた電気信号を発生させる受光部とからなる光センサ
と、 前記明暗情報コードの読み取り時に前記光センサによっ
て前記明暗情報コードを走査させる手段と、 前記走査時に前記光センサを介して得られた信号のうち
の前記明暗情報コードによる明暗の振幅とノイズの振幅
とを区別するための閾値が設定される閾値設定手段と、 前記走査時に前記光センサを介して得られた信号の振幅
の変化に基づいて前記明暗情報コードを読み取る読取手
段であって、前記閾値設定手段に設定された閾値以上の
振幅の変化のみを前記明暗情報コードとして読み取る読
取手段と、 感度調整時に前記光センサを介して得られた信号の振幅
値の大きさに対応した閾値となるように前記閾値設定手
段の閾値を設定する感度調整手段と、 を備えたことを特徴とする明暗情報コード読取装置。
5. A light-emitting unit for illuminating a light / dark information code composed of a combination pattern of a light part and a dark part, receiving light reflected or transmitted from the light / dark information code, and generating an electric signal corresponding to the amount of received light. An optical sensor comprising a light receiving unit; a means for causing the optical sensor to scan the light / dark information code when reading the light / dark information code; and the light / dark information code among signals obtained via the light sensor during the scanning. Threshold setting means for setting a threshold for distinguishing between light and dark amplitudes and noise amplitudes, and reading the light and dark information code based on a change in the amplitude of a signal obtained via the optical sensor during the scanning. Reading means for reading only a change in amplitude equal to or greater than a threshold value set in the threshold value setting means as the light / dark information code; and And a sensitivity adjusting unit that sets a threshold value of the threshold value setting unit so as to be a threshold value corresponding to a magnitude of an amplitude value of a signal obtained via the light recording sensor. apparatus.
【請求項6】 明部と暗部の組み合わせパターンからな
る明暗情報コードを照明する発光部と、前記明暗情報コ
ードからの反射光又は透過光を受光し、その受光量に応
じた電気信号を発生させる受光部とからなる光センサ
と、 前記光センサの出力信号を増幅する増幅手段と、 前記増幅手段で得られた信号をデジタル信号に変換する
A/D変換手段と、 前記明暗情報コードの読み取り時に前記光センサによっ
て前記明暗情報コードを走査させる手段と、 前記走査時に前記A/D変換手段から出力されるデジタ
ル信号値を記憶する記憶手段と、 前記記憶手段に記憶されたデジタル信号値のうちの前記
明暗情報コードによる明暗の振幅とノイズの振幅とを区
別するための閾値が設定される閾値設定手段と、 前記記憶手段に記憶されたデジタル信号値の振幅の変化
に基づいて前記明暗情報コードを読み取る読取手段であ
って、前記閾値設定手段に設定された閾値以上の振幅の
変化のみを前記明暗情報コードとして読み取る読取手段
と、 出力調整時に前記光センサを前記明暗情報コードの明部
と同じ明るさの位置に移動させ、前記A/D変換手段か
ら出力されるデジタル信号値を受入し、該デジタル信号
値に基づいて前記受光手段の出力信号値を変化させる制
御を行う第1の制御手段と、 前記第1の制御手段の制御にしたがって前記光センサの
出力信号値を前記増幅手段の前段において可変し得る出
力調整手段と、 前記出力調整後の感度調整時に前記光センサによって前
記明暗情報コードを走査させ、前記記憶手段に記憶され
たデジタル信号値の振幅値の大きさに対応した閾値とな
るように前記閾値設定手段に閾値を設定する感度調整手
段と、 を備えたことを特徴とする明暗情報コード読取装置。
6. A light-emitting unit for illuminating a light / dark information code composed of a combination pattern of a light part and a dark part, receiving light reflected or transmitted from the light / dark information code, and generating an electric signal corresponding to the amount of received light. An optical sensor comprising a light receiving unit; an amplifier for amplifying an output signal of the optical sensor; an A / D converter for converting a signal obtained by the amplifier into a digital signal; Means for scanning the light / dark information code by the optical sensor; storage means for storing a digital signal value output from the A / D conversion means at the time of the scanning; and a digital signal value stored in the storage means Threshold value setting means for setting a threshold value for distinguishing between light and dark amplitude and noise amplitude according to the light and dark information code; and a digital signal stored in the storage means. Reading means for reading the brightness information code based on a change in the amplitude of the value, wherein the reading means reads only a change in amplitude equal to or greater than a threshold value set in the threshold value setting means as the brightness information code; and The optical sensor is moved to a position having the same brightness as the bright portion of the light / dark information code, receives a digital signal value output from the A / D conversion means, and outputs an output signal of the light receiving means based on the digital signal value. First control means for performing control to change the value, output adjustment means capable of changing an output signal value of the optical sensor in a stage preceding the amplification means under the control of the first control means, and after the output adjustment When the sensitivity is adjusted, the light / dark information code is scanned by the optical sensor so that a threshold value corresponding to the magnitude of the amplitude value of the digital signal value stored in the storage unit is obtained. Brightness information code reading apparatus, wherein the sensitivity adjusting means for setting a threshold value, further comprising a said threshold value setting means.
【請求項7】 前記感度調整手段は、自動調整指令を受
入すると、前記光センサによって明暗情報コードを走査
させ、その走査時に前記光センタを介して得られた信号
の振幅値を測定する振幅測定手段と、前記測定した振幅
値に基づいて該振幅値の大きさに対応した前記閾値を求
める手段と、前記閾値設定手段に前記求めた閾値を設定
する手段と、を備えたことを特徴とする請求項5又は6
の明暗情報コード読取装置。
7. An amplitude measuring device, when receiving an automatic adjustment command, causes the optical sensor to scan a light / dark information code and measures an amplitude value of a signal obtained through the optical center during the scanning. Means, means for obtaining the threshold value corresponding to the magnitude of the amplitude value based on the measured amplitude value, and means for setting the obtained threshold value to the threshold value setting means. Claim 5 or 6
Light / dark information code reader.
【請求項8】 前記閾値を求める手段は、前記閾値を求
めるための計算式又はルックアップテーブルを有するこ
とを特徴とする請求項7の明暗情報コード読取装置。
8. The light / dark information code reading apparatus according to claim 7, wherein said means for calculating said threshold value has a calculation formula or a look-up table for calculating said threshold value.
【請求項9】 前記計算式又はルックアップテーブル
は、前記測定した振幅値が所定の値以下のときには一定
値となり、前記所定の値を越えると、該測定した振幅値
に比例して連続的に又は段階的に大きくなる閾値を求め
るものである請求項8の明暗情報コード読取装置。
9. The calculation formula or look-up table has a constant value when the measured amplitude value is equal to or less than a predetermined value, and continuously exceeds the predetermined value in proportion to the measured amplitude value. 9. The light / dark information code reading device according to claim 8, wherein a threshold value that increases stepwise is obtained.
【請求項10】 明部と暗部の組み合わせパターンから
なる明暗情報コードと光センサとを相対的に移動させ、
該光センサを介して得られる電気信号に基づいて前記明
暗情報コードを読み取る明暗情報コード読取方法であっ
て、予め閾値設定手段に設定された閾値に基づいて前記
明暗情報コードによる明暗の振幅とノイズの振幅とを区
別するようにした明暗情報コード読取装置の調整方法に
おいて、 感度調整時に調整用の明暗情報コードが付された対象物
と前記光センタとを相対的に移動させ、前記明暗情報コ
ードに対応した正弦波状の電気信号を得る工程と、 前記正弦波状の電気信号の振幅値を測定する工程と、 前記測定した振幅値に基づいて前記明暗情報コードによ
る明暗の振幅とノイズの振幅とを区別するための閾値
を、計算式又はルックアップテーブルから求める工程
と、 前記求めた閾値を前記閾値設定手段に設定する工程と、 を備えたことを特徴とする明暗情報コード読取装置の調
整方法。
10. A light / dark information code comprising a combination pattern of a light part and a dark part and an optical sensor are relatively moved.
A light / dark information code reading method for reading the light / dark information code based on an electric signal obtained through the optical sensor, comprising: a light / dark amplitude and a noise based on the light / dark information code based on a threshold set in advance by a threshold setting unit. The method for adjusting a light / dark information code reading device, which distinguishes between the light center and the light center, at the time of sensitivity adjustment, is relatively moved between the object and the optical center. Obtaining a sinusoidal electric signal corresponding to: a step of measuring an amplitude value of the sinusoidal electric signal; anda light / dark amplitude and a noise amplitude by the light / dark information code based on the measured amplitude value. Determining a threshold for distinction from a calculation formula or a lookup table; and setting the determined threshold in the threshold setting unit. Method of adjusting brightness information code reading apparatus according to claim.
【請求項11】 前記計算式又はルックアップテーブル
は、前記測定した振幅値が所定の値以下のときには一定
値となり、前記所定の値を越えると、該測定した振幅値
に比例して連続的に又は段階的に大きくなる閾値を求め
るものである請求項10の明暗情報コード読取装置の調
整方法。
11. The calculation formula or look-up table has a constant value when the measured amplitude value is equal to or less than a predetermined value, and continuously exceeds the predetermined value in proportion to the measured amplitude value. 11. The method for adjusting a light / dark information code reading device according to claim 10, wherein a threshold value that increases stepwise is obtained.
【請求項12】 前記感度調整前の出力調整時に、前記
光センサを前記明暗情報コードの明部と同じ明るさの位
置に移動させ、前記明部に対応した出力信号値を得る工
程と、 前記出力信号値が基準の範囲内になるように前記光セン
サの出力信号値を調整する工程と、 を含むことを特徴とする明暗情報コード読取装置の調整
方法。
12. When the output is adjusted before the sensitivity adjustment, the optical sensor is moved to a position having the same brightness as the bright portion of the brightness information code to obtain an output signal value corresponding to the bright portion. Adjusting the output signal value of the optical sensor so that the output signal value falls within a reference range.
JP2000301976A 1999-10-07 2000-10-02 Photodetector device, brightness/darkness information code reader and its adjusting method Pending JP2001175799A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2000301976A JP2001175799A (en) 1999-10-07 2000-10-02 Photodetector device, brightness/darkness information code reader and its adjusting method

Applications Claiming Priority (3)

Application Number Priority Date Filing Date Title
JP28683499 1999-10-07
JP11-286834 1999-10-07
JP2000301976A JP2001175799A (en) 1999-10-07 2000-10-02 Photodetector device, brightness/darkness information code reader and its adjusting method

Publications (1)

Publication Number Publication Date
JP2001175799A true JP2001175799A (en) 2001-06-29

Family

ID=26556475

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2000301976A Pending JP2001175799A (en) 1999-10-07 2000-10-02 Photodetector device, brightness/darkness information code reader and its adjusting method

Country Status (1)

Country Link
JP (1) JP2001175799A (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003065848A (en) * 2001-08-29 2003-03-05 Fuji Electric Co Ltd Ranking method by light intensity of subject, and optical sensor unit
JP2004502601A (en) * 2000-07-03 2004-01-29 テトラ ラバル ホールデイングス エ フイナンス ソシエテ アノニム Packaging machines for continuous production of sealed packaging
KR100654205B1 (en) * 2004-04-05 2006-12-06 후지 샤신 필름 가부시기가이샤 Measuring method and device for measuring distribution of sensitivity
JP2008090749A (en) * 2006-10-04 2008-04-17 Kyocera Corp Portable electronic apparatus, and method of controlling portable electronic apparatus
JP2008182219A (en) * 2006-12-28 2008-08-07 Semiconductor Energy Lab Co Ltd Semiconductor device
JP2009038246A (en) * 2007-08-02 2009-02-19 Rohm Co Ltd Electronic instrument
JP2013545363A (en) * 2010-10-15 2013-12-19 エス.シー. ジョンソン アンド サン、インコーポレイテッド Application specific integrated circuit including motion detection system
US8714688B2 (en) 2008-07-30 2014-05-06 Seiko Epson Corporation Paper width detection method for a label printer, printing control method for a label printer, and a label printer

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004502601A (en) * 2000-07-03 2004-01-29 テトラ ラバル ホールデイングス エ フイナンス ソシエテ アノニム Packaging machines for continuous production of sealed packaging
JP2003065848A (en) * 2001-08-29 2003-03-05 Fuji Electric Co Ltd Ranking method by light intensity of subject, and optical sensor unit
JP4617623B2 (en) * 2001-08-29 2011-01-26 富士電機システムズ株式会社 Method for ranking according to light and darkness of subject and optical sensor device thereof
KR100654205B1 (en) * 2004-04-05 2006-12-06 후지 샤신 필름 가부시기가이샤 Measuring method and device for measuring distribution of sensitivity
US7199352B2 (en) 2004-04-05 2007-04-03 Fuji Photo Film Co., Ltd. Measuring method and device for measuring distribution of sensitivity
JP2008090749A (en) * 2006-10-04 2008-04-17 Kyocera Corp Portable electronic apparatus, and method of controlling portable electronic apparatus
KR101472762B1 (en) * 2006-12-28 2014-12-15 가부시키가이샤 한도오따이 에네루기 켄큐쇼 semiconductor device
JP2008182219A (en) * 2006-12-28 2008-08-07 Semiconductor Energy Lab Co Ltd Semiconductor device
US8514165B2 (en) 2006-12-28 2013-08-20 Semiconductor Energy Laboratory Co., Ltd. Semiconductor device
JP2009038246A (en) * 2007-08-02 2009-02-19 Rohm Co Ltd Electronic instrument
US8714688B2 (en) 2008-07-30 2014-05-06 Seiko Epson Corporation Paper width detection method for a label printer, printing control method for a label printer, and a label printer
US9211734B2 (en) 2008-07-30 2015-12-15 Seiko Epson Corporation Paper width detection method for a label printer, printing control method for a label printer, and a label printer
JP2013545363A (en) * 2010-10-15 2013-12-19 エス.シー. ジョンソン アンド サン、インコーポレイテッド Application specific integrated circuit including motion detection system

Similar Documents

Publication Publication Date Title
US5859933A (en) Image forming apparatus
US5550625A (en) Color image forming apparatus providing registration control for individual color images
US5258783A (en) Image processing method and apparatus with gamma-correction control
US5278674A (en) Method and apparatus for providing illumination compensation in a document scanner
US20050179954A1 (en) Image processing apparatus resolving dust problem
US4745488A (en) Image reader
JP2001175799A (en) Photodetector device, brightness/darkness information code reader and its adjusting method
US6324375B1 (en) Image forming apparatus for adjusting image forming condition and image forming condition adjusting method
US4709147A (en) Image reading apparatus which calculates an original reading domain
US6982813B2 (en) Light quantity correction method for exposing device, and image forming device
US6075621A (en) Image sensing apparatus and shading correction method
US20020002410A1 (en) Information acquisition method and apparatus
JP2000306036A (en) Device, method and system for optical reading
CA2748131A1 (en) System and method for calibrating an optical reader system
US6229628B1 (en) Image reading apparatus
US5981944A (en) Optical scanner which reduces the effects of external electrical noise and disturbing light
JPS63311489A (en) Bar-code reader
US6111669A (en) Method and apparatus for reading a colored document
JPH04364592A (en) Optical reader
JP2005271369A (en) Image forming device and method of correcting image forming position
US20210266420A1 (en) Multi-mode scanning camera system and method
JPH0730398A (en) Photosensor circuit for medium detection
KR940003119B1 (en) Circuit and method for adjusting automatic exposure
JP2878558B2 (en) Optical reader
JP2001341347A (en) Image forming apparatus and method of controlling driving of laser therefor