JPH04333185A - Scanner device - Google Patents

Scanner device

Info

Publication number
JPH04333185A
JPH04333185A JP3102569A JP10256991A JPH04333185A JP H04333185 A JPH04333185 A JP H04333185A JP 3102569 A JP3102569 A JP 3102569A JP 10256991 A JP10256991 A JP 10256991A JP H04333185 A JPH04333185 A JP H04333185A
Authority
JP
Japan
Prior art keywords
detected
lens
light
optical sensor
reflected light
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
JP3102569A
Other languages
Japanese (ja)
Inventor
Masami Nunokawa
雅己 布川
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.)
Omron Corp
Original Assignee
Omron Corp
Omron Tateisi Electronics Co
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 Omron Corp, Omron Tateisi Electronics Co filed Critical Omron Corp
Priority to JP3102569A priority Critical patent/JPH04333185A/en
Publication of JPH04333185A publication Critical patent/JPH04333185A/en
Pending legal-status Critical Current

Links

Landscapes

  • Variable Magnification In Projection-Type Copying Machines (AREA)
  • Devices For Executing Special Programs (AREA)

Abstract

PURPOSE:To correctly read image data by always forming reflecting light from an object to be detected in a photodetecting part even in the case the distance from the object to be detected to photodetection changes. CONSTITUTION:The light quantity of reflecting light from the object to be detected is detected by an optical sensor 9 so that the position of a lens is inferred in a fuzzy inference device 21 with the output of the optical sensor 9 as an input variable. Inference result in the fuzzy inference device 21 is supplied to a lens driving device 6 so that the lens is shifted by the lens driving device 6 in accordance with the quantity of reflecting light changing by the exhibition position of the object to be detected.

Description

【発明の詳細な説明】[Detailed description of the invention]

【0001】0001

【産業上の利用分野】この発明は、POSシステムに適
用されるバーコードリーダなどのスキャナ装置のように
、被検出物からの反射光を受光部で受光して画像データ
を読み取るスキャナ装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a scanner device, such as a barcode reader applied to a POS system, which receives reflected light from an object at a light receiving section and reads image data.

【0002】0002

【従来の技術】被検出物に対して発光部から光を照射し
、この光の被検出物からの反射光を受光部において受光
し、これを画像データとして読み取るスキャナ装置とし
ては、たとえばPOSシステムにおいて商品に貼付され
たバーコードを読み取るバーコードリーダがある。この
バーコードリーダとして発光部および受光部を台上に設
置した固定式のバーコードリーダがあり、この固定式の
バーコードリーダでは発光部としてレーザビームが一般
的に用いられている。
2. Description of the Related Art Scanner devices that emit light from a light emitting section onto an object to be detected, receive reflected light from the object at a light receiving section, and read this as image data include, for example, a POS system. There are barcode readers that read barcodes attached to products. As this barcode reader, there is a fixed type barcode reader in which a light emitting part and a light receiving part are installed on a table, and a laser beam is generally used as the light emitting part in this fixed type barcode reader.

【0003】0003

【発明が解決しようとする課題】しかしながら、従来の
レーザビーム方式のバーコードリーダでは、被検出物か
らの反射光を受光する受光部の焦点距離が一定にされて
いた。このように、受光部における焦点距離を一定にし
たスキャナ装置では、被検出物と受光部との間の距離が
焦点距離に対して誤差を生じると、受光部において反射
光が拡散して結像しなくなり、正確な画像データの読み
取りを行うことができなくなる問題があった。このよう
な問題は固定式のバーコードリーダにおいて頻繁に発生
する。
However, in conventional laser beam type bar code readers, the focal length of the light receiving section that receives reflected light from the object to be detected is fixed. In this way, in a scanner device in which the focal length of the light receiving section is fixed, if the distance between the object to be detected and the light receiving section causes an error with respect to the focal length, the reflected light will be diffused at the light receiving section and the image will be formed. Therefore, there was a problem that it became impossible to read the image data accurately. Such problems frequently occur in fixed barcode readers.

【0004】この発明の目的は、被検出物からの反射光
の光量に基づいて被検出物と受光部との間の距離を測定
し、この測定結果に基づいて反射光の光路中に設けたレ
ンズの焦点距離を変えて反射光が受光部に正確に結像す
るようにし、被検出物の位置が変化しても常に正確に画
像データの読み取りを行うことができるスキャナ装置を
提供することにある。
An object of the present invention is to measure the distance between the object to be detected and the light receiving section based on the amount of light reflected from the object to be detected, and based on this measurement result, a sensor is installed in the optical path of the reflected light. To provide a scanner device capable of accurately reading image data even if the position of an object to be detected changes by changing the focal length of a lens so that reflected light is accurately focused on a light receiving part. be.

【0005】[0005]

【課題を解決するための手段】この発明のスキャナ装置
は、被検出物からの反射光を受光部で受光して画像デー
タを読み取るスキャナ装置において、前記反射光の光路
中に配置されるとともに焦点距離を変える駆動手段を備
えたレンズと、反射光の光量を検出する光センサと、光
センサの検出出力を入力変数として予め定められたファ
ジィルールおよびメンバーシップ関数に基づいて前記レ
ンズの焦点距離を推論して前記駆動手段に出力するファ
ジィ推論手段と、を設けたことを特徴とする。
[Means for Solving the Problems] A scanner device of the present invention is a scanner device that reads image data by receiving reflected light from an object to be detected by a light receiving section, and is arranged in the optical path of the reflected light and focused. A lens equipped with a driving means for changing the distance, an optical sensor that detects the amount of reflected light, and a focal length of the lens based on a predetermined fuzzy rule and membership function using the detection output of the optical sensor as an input variable. A fuzzy inference means for inferring and outputting the inference to the driving means is provided.

【0006】[0006]

【作用】この発明においては、被検出物から配光された
反射光の光量が光センサにより検出され、この光センサ
の検出出力を入力変数としてファジィ推論手段において
レンズの焦点距離が推論される。この推論結果は被検出
物からの反射光の光路中に配置されたレンズの駆動手段
に供給され、この駆動手段は推論結果に基づいてレンズ
の焦点距離を変える。したがって、被検出物の提示位置
が所定の位置から接近または離間した場合にはレンズの
焦点距離がこれに合わせて変更され、被検出物からの反
射光は常に受光部において結像する。
In the present invention, the amount of reflected light distributed from the object to be detected is detected by the optical sensor, and the focal length of the lens is inferred by the fuzzy inference means using the detection output of the optical sensor as an input variable. This inference result is supplied to a lens driving means arranged in the optical path of the reflected light from the object to be detected, and this driving means changes the focal length of the lens based on the inference result. Therefore, when the presentation position of the object to be detected approaches or moves away from a predetermined position, the focal length of the lens is changed accordingly, and the reflected light from the object to be detected always forms an image on the light receiving section.

【0007】[0007]

【実施例】図1は、この発明の実施例であるスキャナ装
置の構成を示す図である。スキャナ装置装置1は発光部
としてレーザビーム10を備え、このレーザビーム10
から、たとえば商品に貼付されたバーコード等の被検出
物11にレーザ光を照射する。このレーザ光は被検出物
11の表面において反射し、その反射光がミラー2、ホ
ログラムスキャナ3およびレンズ4,5を経由して受光
部8に配光される。
DESCRIPTION OF THE PREFERRED EMBODIMENTS FIG. 1 is a diagram showing the configuration of a scanner device according to an embodiment of the present invention. The scanner device 1 includes a laser beam 10 as a light emitting section, and this laser beam 10
From there, a laser beam is irradiated onto an object 11 to be detected, such as a bar code affixed to a product, for example. This laser light is reflected on the surface of the object to be detected 11, and the reflected light is distributed to the light receiving section 8 via the mirror 2, the hologram scanner 3, and the lenses 4 and 5.

【0008】レンズ4はこの発明の駆動手段であるレン
ズ駆動装置6を備えており、このレンズ駆動装置6によ
りレンズ4は図中矢印LまたはR方向に移動する。この
レンズ4の移動によりレンズ4,5の焦点距離が変わる
。また、レンズ4,5を通過した反射光はハーフミラー
7によって光センサ9にも配光される。この光センサ9
は受光光量に応じた電圧を出力する。
The lens 4 is equipped with a lens drive device 6, which is a drive means of the present invention, and the lens drive device 6 moves the lens 4 in the direction of arrow L or R in the figure. This movement of lens 4 changes the focal lengths of lenses 4 and 5. Further, the reflected light that has passed through the lenses 4 and 5 is also distributed to the optical sensor 9 by the half mirror 7. This optical sensor 9
outputs a voltage according to the amount of received light.

【0009】図2は、上記スキャナ装置が有する制御部
の構成を示すブロック図である。光センサ9の出力部は
ファジィ推論装置21に入力変数として入力される。フ
ァジィ推論装置21には予めファジィルールおよびメン
バーシップ関数が設定されており、ファジィ推論装置2
1はこのファジィルールおよびメンバーシップ関数に基
づくファジィ推論を実行する。このファジィ推論装置2
1にはたとえば図3に示すメンバーシップ関数が設定さ
れており、図3(A)は前件部メンバーシップ関数を表
し、同図(B)は後件部メンバーシップ関数を表してい
る。ファジィ推論装置21は図3(A)の前件部メンバ
ーシップ関数における入力変数の該当ラベルおよび所属
度を求め、このラベルを有するファジィルールを選択す
る。ファジィ推論装置21に予め設定されるファジィル
ールとしては、たとえば、 if(x=PL)  then(y=PL)・・・  
式1if(x=PM)  then(y=PM)・・・
  式2if(x=PS)  then(y=PS)・
・・  式3if(x=ZR)  then(y=ZR
)・・・  式4if(x=NS)  then(y=
NS)・・・  式5等である。ここに、式1は光セン
サ9の受光量がかなり大きく、被検出物までの距離がか
なり短い場合にはレンズ4を図1に示す矢印R方向に速
く移動させることを意味し、同様に式2は、光センサ9
の受光量がやや大きく、被検出物までの距離がやや近い
場合には、レンズ4をやや速く矢印R方向に動かすこと
を意味している。
FIG. 2 is a block diagram showing the configuration of a control section included in the scanner device. The output of the optical sensor 9 is input to the fuzzy inference device 21 as an input variable. Fuzzy rules and membership functions are set in advance in the fuzzy inference device 21, and the fuzzy inference device 2
1 performs fuzzy inference based on this fuzzy rule and membership function. This fuzzy inference device 2
For example, the membership functions shown in FIG. 3 are set in 1, and FIG. 3(A) represents the antecedent membership function, and FIG. 3(B) represents the consequent membership function. The fuzzy inference device 21 determines the corresponding label and degree of membership of the input variable in the antecedent membership function of FIG. 3(A), and selects the fuzzy rule having this label. Examples of fuzzy rules preset in the fuzzy inference device 21 include if(x=PL) then(y=PL)...
Formula 1if(x=PM) then(y=PM)...
Equation 2if(x=PS) then(y=PS)・
・・Formula 3if(x=ZR) then(y=ZR
)... Formula 4if(x=NS) then(y=
NS)... Equation 5, etc. Here, formula 1 means that when the amount of light received by the optical sensor 9 is quite large and the distance to the object to be detected is quite short, the lens 4 is moved quickly in the direction of arrow R shown in FIG. 2 is the optical sensor 9
If the amount of light received is a little large and the distance to the object to be detected is a little short, this means that the lens 4 should be moved a little faster in the direction of arrow R.

【0010】ファジィ推論装置21には、これらファジ
ィルールの中から該当するラベルを前件部に含むファジ
ィルールを選択し、このファジィルールにおける後件部
ラベルのメンバーシップ関数(図3(B)参照)を所属
度で変形し、その重心値を推論結果としてレンズ駆動装
置6に出力する。レンズ駆動装置6はこの推論結果に基
づいてレンズ4を移動する。
The fuzzy inference device 21 selects a fuzzy rule whose antecedent part includes the corresponding label from among these fuzzy rules, and calculates the membership function of the consequent part label in this fuzzy rule (see FIG. 3(B)). ) is transformed by the degree of affiliation, and its center of gravity value is output to the lens driving device 6 as an inference result. The lens driving device 6 moves the lens 4 based on this inference result.

【0011】以上のようにしてこの実施例によれば、被
検出物11の距離に応じて光センサ9の受光量が変化す
ることを利用して光センサ9の出力から最適の焦点距離
を得られる位置にレンズ4を移動する。
As described above, according to this embodiment, the optimum focal length can be obtained from the output of the optical sensor 9 by utilizing the fact that the amount of light received by the optical sensor 9 changes depending on the distance to the detected object 11. Move the lens 4 to the desired position.

【0012】0012

【発明の効果】この発明によれば、受光部が受光する被
検出物からの反射光の光量により反射光の光路中に配置
されたレンズの焦点距離を変えることができ、被検出物
の位置が変化しても被検出物から受光部までの距離に応
じてレンズの焦点距離をファジィ推論によりきめ細かく
設定することができ、常に反射光を受光部に結像させ、
受光部における画像データの読み取りを正確に行うこと
ができる利点がある。
According to the present invention, the focal length of the lens placed in the optical path of the reflected light can be changed depending on the amount of reflected light from the detected object that is received by the light receiving section, and the position of the detected object can be changed. Even if the lens changes, the focal length of the lens can be finely set using fuzzy reasoning according to the distance from the object to the light receiving part, and the reflected light is always focused on the light receiving part.
This has the advantage that image data can be read accurately in the light receiving section.

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

【図1】この発明の実施例であるスキャナ装置の構成を
示す概略図である。
FIG. 1 is a schematic diagram showing the configuration of a scanner device that is an embodiment of the present invention.

【図2】同スキャナ装置の制御部の構成を示すブロック
図である。
FIG. 2 is a block diagram showing the configuration of a control section of the scanner device.

【図3】同制御部のファジィ推論装置2に設定されるメ
ンバーシップ関数の一例を示す図である。
FIG. 3 is a diagram showing an example of membership functions set in the fuzzy inference device 2 of the control unit.

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

1−スキャナ装置 4−レンズ 6−レンズ駆動装置 8−受光部 9−光センサ 21−ファジィ推論装置 1-Scanner device 4-Lens 6-Lens drive device 8-Light receiving part 9-Light sensor 21-Fuzzy inference device

Claims (1)

【特許請求の範囲】[Claims] 【請求項1】被検出物からの反射光を受光部で受光して
画像データを読み取るスキャナ装置において、前記反射
光の光路中に配置されるとともに焦点距離を変える駆動
手段を備えたレンズと、反射光の光量を検出する光セン
サと、光センサの検出出力を入力変数として予め定めら
れたファジィルールおよびメンバーシップ関数に基づい
て前記レンズの焦点距離を推論して前記駆動手段に出力
するファジィ推論手段と、を設けたことを特徴とするス
キャナ装置。
1. A scanner device that reads image data by receiving reflected light from an object to be detected by a light receiving section, comprising: a lens disposed in an optical path of the reflected light and including a driving means for changing a focal length; an optical sensor that detects the amount of reflected light, and fuzzy inference that infers the focal length of the lens based on predetermined fuzzy rules and membership functions using the detection output of the optical sensor as an input variable and outputs it to the driving means. A scanner device comprising: means.
JP3102569A 1991-05-08 1991-05-08 Scanner device Pending JPH04333185A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3102569A JPH04333185A (en) 1991-05-08 1991-05-08 Scanner device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3102569A JPH04333185A (en) 1991-05-08 1991-05-08 Scanner device

Publications (1)

Publication Number Publication Date
JPH04333185A true JPH04333185A (en) 1992-11-20

Family

ID=14330860

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3102569A Pending JPH04333185A (en) 1991-05-08 1991-05-08 Scanner device

Country Status (1)

Country Link
JP (1) JPH04333185A (en)

Similar Documents

Publication Publication Date Title
US5693930A (en) Optical scanner having a plurality of scanning systems
US4006343A (en) Code read-out means
US4418276A (en) Optical bar code reader
US4808804A (en) Bar code symbol readers with variable spot size and/or working distance
US4307408A (en) Recording apparatus using coherent light
JPH02278222A (en) Optical scanner
US4034230A (en) Electro-optical bar-code scanning unit
JPH0687099B2 (en) Laser optical scanning device
JPS6448017A (en) Optical reader
US5387786A (en) Focussing device for a bar code reader
JPH04333185A (en) Scanner device
US5177343A (en) Symbol reader using differentiating circuit for light beam focusing
JP2800262B2 (en) Reader
JPH01175686A (en) Bar code reader
JP2788561B2 (en) Semiconductor laser light source device and bar code reader
JPH0612510A (en) Optical reader
JPH05143761A (en) Bar code reader
JPH08202803A (en) Bar code reader
JP2987243B2 (en) Optical scanning device
JPH01236387A (en) Bar code reading system
JPH01175090A (en) Bar code reader
JP2961268B2 (en) Barcode reader
JPH0612518A (en) Optical reader
JPH0567227A (en) Optical mark reader
JP2877986B2 (en) Optical scanning device and bar code reader