JP5168245B2 - Optical information reader - Google Patents

Optical information reader Download PDF

Info

Publication number
JP5168245B2
JP5168245B2 JP2009175197A JP2009175197A JP5168245B2 JP 5168245 B2 JP5168245 B2 JP 5168245B2 JP 2009175197 A JP2009175197 A JP 2009175197A JP 2009175197 A JP2009175197 A JP 2009175197A JP 5168245 B2 JP5168245 B2 JP 5168245B2
Authority
JP
Japan
Prior art keywords
mode
light
frequency
signal
reading
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP2009175197A
Other languages
Japanese (ja)
Other versions
JP2011028617A (en
Inventor
達明 加藤
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Denso Wave Inc
Original Assignee
Denso Wave Inc
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 Denso Wave Inc filed Critical Denso Wave Inc
Priority to JP2009175197A priority Critical patent/JP5168245B2/en
Publication of JP2011028617A publication Critical patent/JP2011028617A/en
Application granted granted Critical
Publication of JP5168245B2 publication Critical patent/JP5168245B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Description

本発明は、光学的情報読取装置に関するものである。   The present invention relates to an optical information reader.

バーコードリーダ等の光学的情報読取装置では、一般的に、受光素子を複数配列してなる受光センサ(例えば、CCDセンサ、CMOSセンサ等)が用いられ、この受光センサによってバーコード等の情報コードから反射光を受光すると共に、情報コードの像に応じた受光信号(電気信号)を出力している。そして、その出力された受光信号を二値化回路によって二値化し、その二値データを解読手段によって解読している。   In an optical information reader such as a barcode reader, a light receiving sensor (for example, a CCD sensor, a CMOS sensor, etc.) in which a plurality of light receiving elements are arranged is generally used, and an information code such as a barcode is used by the light receiving sensor. In addition to receiving reflected light from the light, a light reception signal (electric signal) corresponding to the image of the information code is output. The output received light signal is binarized by a binarization circuit, and the binary data is decoded by a decoding means.

特開2005−293327公報JP 2005-293327 A 特開平10−320496号公報Japanese Patent Laid-Open No. 10-320496

この種の光学的情報読取装置では、受光信号に含まれるノイズを如何に除去するかが問題となっている。受光信号に含まれるノイズを除去する技術としては、例えば特許文献1、2のようなものがあり、特許文献1では、ローパスフィルタ等を用いて受光信号から高周波ノイズ成分を除去する技術が開示されている。また、特許文献2では、ローパスフィルタを用いたときの問題点を解消しようとする技術が開示されている。   In this type of optical information reader, there is a problem of how to remove noise contained in the light reception signal. For example, Patent Documents 1 and 2 disclose techniques for removing noise contained in a light reception signal. Patent Document 1 discloses a technique for removing high-frequency noise components from a light reception signal using a low-pass filter or the like. ing. Further, Patent Document 2 discloses a technique for solving a problem when a low-pass filter is used.

一方、ノイズ除去の方法としては、特定色の照明光を照射する照明光源を設けると共に、この特定色に対応する周波数帯の光を透過させ、他の周波数帯の光を遮断する光学フィルタを併用する構成なども考えられる。この構成によれば、照明光とは周波数が大きく異なる外乱光を良好に除去することができ、受光信号に外乱光に起因するノイズが含まれることを効果的に抑制することができる。   On the other hand, as a noise removal method, an illumination light source that emits illumination light of a specific color is provided, and an optical filter that transmits light in a frequency band corresponding to the specific color and blocks light in other frequency bands is used in combination. It is also possible to consider a configuration that performs the above. According to this configuration, it is possible to satisfactorily remove disturbance light having a frequency that is significantly different from that of the illumination light, and to effectively suppress noise caused by the disturbance light in the received light signal.

また、上記ローパスフィルタを用いた構成も、光学フィルタを用いた構成も、それぞれ特有の利点を有しており、これらを併用する構成とすれば、より効果的なノイズ除去が期待できる。しかしながら、読取対象となる情報コードの表示態様は様々なケースが考えられ、場合によっては、上記ローパスフィルタ及び光学フィルタを併用したとしても、ノイズ除去が十分に行われない場合があり得る。例えば、近年の光学的情報読取装置では、カラー表示装置に表示される情報コードを読取対象とするニーズが増加しており、このようにカラー表示装置に表示される情報コードを読取対象とする場合、上記ローパスフィルタ及び光学フィルタを併用したとしても、カラー表示装置特有の事情から、ノイズ除去が適切になされない場合があった。   In addition, both the configuration using the low-pass filter and the configuration using the optical filter have specific advantages, and more effective noise removal can be expected if they are used in combination. However, there are various cases for the display mode of the information code to be read, and in some cases, noise removal may not be sufficiently performed even if the low-pass filter and the optical filter are used in combination. For example, in recent optical information readers, there is an increasing need to read information codes displayed on a color display device, and thus information codes displayed on a color display device are to be read. Even if the low-pass filter and the optical filter are used in combination, noise removal may not be performed properly due to circumstances peculiar to the color display device.

例えば、赤色の照明光を照射する照明光源を用い、赤色に対応する所定周波数帯以外の光を抑制する光学フィルタを用いる場合、読取対象が紙媒体等に付された明暗コード(例えばバーコード)であれば、明色領域からの赤色の反射光を選択的に透過させることができ、赤色以外の外乱光を効果的に除去することができるため、明色領域と暗色領域のパターンを適切に反映した波形を得ることができる。しかしながら、液晶表示装置などのカラー表示装置に表示される明暗コード(例えばバーコード)を撮像する場合、明色領域から光学フィルタでの透過対象色(ここでは赤色)以外の光が発生するため、明色領域の一部の領域からの光がカットされてしまうという問題があった。   For example, when an illumination light source that emits red illumination light is used and an optical filter that suppresses light other than a predetermined frequency band corresponding to red is used, a light / dark code (for example, a barcode) that is read on a paper medium or the like If so, it is possible to selectively transmit the red reflected light from the light color region, and to effectively remove disturbance light other than red, so the pattern of the light color region and the dark color region can be appropriately set. A reflected waveform can be obtained. However, when imaging a light and dark code (for example, a barcode) displayed on a color display device such as a liquid crystal display device, light other than the color to be transmitted through the optical filter (in this case, red) is generated from the light color region. There is a problem that light from a part of the bright color area is cut off.

例えば、図10のようにR画素Ra,G画素Ga、B画素Ba(サブピクセル)が組み合わされて一つの表示画素Sa(ピクセル)が構成され、このような表示画素Saが複数配列されてなる液晶表示装置の場合、ある表示画素Saで白色を表示するときには、実際には、R画素Ra,G画素Ga、B画素Ba(サブピクセル)をそれぞれ発光させることで視覚的に白色と認識しうる光を発生させている。このような液晶表示装置に表示される明暗コードを撮像する場合、図11(a)のように、R画素Raについては当該R画素Raからの発生する赤色光が光学フィルタFを通過するため、明色領域として認識されることとなる。しかしながら、図11(a)中段、下段に示すように、G画素Ga、B画素Baについては、これら画素からの緑色光、青色光が光学フィルタFによって抑制されるため、受光センサでの受光量が抑えられてしまい、本来明色領域として認識されるべき領域であるはずなのに、暗色領域として誤認識されてしまう。なお、図11(a)上段は、液晶表示装置に表示されるバーコードを例示するものである。また、図11(a)中段は、このようなバーコードをラインセンサによって撮像するときの撮像位置(一点鎖線Lの位置)の一部(暗色バーB1、明色バーW1、暗色バーB2の部分)における表示画素の配列を例示している。また、図11(a)下段は、図11(a)中段の各表示画素Saからの光を受光することで生成される受光信号を概念的に示している。   For example, as shown in FIG. 10, R pixel Ra, G pixel Ga, and B pixel Ba (sub pixel) are combined to form one display pixel Sa (pixel), and a plurality of such display pixels Sa are arranged. In the case of a liquid crystal display device, when displaying a white color on a certain display pixel Sa, in reality, the R pixel Ra, the G pixel Ga, and the B pixel Ba (sub-pixel) can be visually recognized as white by visually emitting light. It is generating light. When imaging a light / dark code displayed on such a liquid crystal display device, as shown in FIG. 11A, the red light generated from the R pixel Ra passes through the optical filter F for the R pixel Ra. It will be recognized as a bright color area. However, as shown in the middle and lower parts of FIG. 11A, for the G pixel Ga and the B pixel Ba, since the green light and blue light from these pixels are suppressed by the optical filter F, the amount of light received by the light receiving sensor. Is suppressed, and although it should be an area that should originally be recognized as a bright color area, it is erroneously recognized as a dark color area. Note that the upper part of FIG. 11A illustrates a barcode displayed on the liquid crystal display device. Further, the middle part of FIG. 11A shows a part (dark color bar B1, light color bar W1, dark color bar B2) of an image pickup position (position of a dashed line L) when such a barcode is imaged by a line sensor. The arrangement of display pixels in FIG. Further, the lower part of FIG. 11A conceptually shows a light reception signal generated by receiving light from each display pixel Sa in the middle part of FIG.

図11(b)では、図11(a)下段の受光信号を二値化した信号を示しており、この二値化信号では、本来的には図11(c)のように一連の明色領域として特定されるべきエリアAR(明色バーW1に相当するエリア)において、一部が暗色領域を示す値(この例ではLレベル)となってしまっている。このような誤認識がなされると、情報コードの各明色領域のサイズを適切に認識できなくなり、情報コード全体のデコード不良を招いてしまうことになる。   FIG. 11B shows a signal obtained by binarizing the light reception signal in the lower part of FIG. 11A. This binarized signal is essentially a series of bright colors as shown in FIG. 11C. In an area AR (an area corresponding to the light color bar W1) to be specified as an area, a part of the area AR is a value indicating a dark color area (L level in this example). If such a misrecognition is made, the size of each bright color area of the information code cannot be properly recognized, leading to a decoding failure of the entire information code.

本発明は、上述した課題を解決するためになされたものであり、カラー表示装置に表示された情報コード及び物体に付された情報コードをいずれも読み取ることができ、カラー表示装置に表示される情報コードを読み取る場合であっても、ノイズを適切に除去することができ、且つ明色領域及び暗色領域を正確に認識しうる光学的情報読取装置を提供することを目的とする。   The present invention has been made to solve the above-described problems, and can read both the information code displayed on the color display device and the information code attached to the object, and can be displayed on the color display device. It is an object of the present invention to provide an optical information reader capable of properly removing noise and accurately recognizing a bright color area and a dark color area even when reading an information code.

請求項1の発明は、カラー表示装置に表示された情報コード及び物体に付された情報コードを読取対象コードとして読取可能な光学的情報読取装置であって、前記読取対象コードに対して照明光を照射する照明手段と、前記照明光に対応する所定周波数帯の光を通過させ、前記所定周波数帯以外の光の通過を抑制する光学フィルタと、前記読取対象コードからの反射光を前記光学フィルタを介して受光し、前記反射光に応じた受光信号を出力する受光センサと、前記受光センサに対し、設定された周波数の駆動信号を出力するセンサ駆動回路と、前記受光センサから出力された前記受光信号が入力される構成をなし、規定のカットオフ周波数の以上の周波数の信号を抑制するローパスフィルタ回路と、前記ローパスフィルタ回路から出力される前記受光信号を二値化する二値化手段と、前記二値化手段にて生成された二値化信号に基づいてデコード処理を行うデコード手段と、第1モードと第2モードとに設定変更可能なモード切替手段と、を備えている。
そして、前記センサ駆動回路は、前記モード切替手段によって前記第1モードに設定された場合に、前記駆動信号の周波数を第1の周波数に設定し、前記第2モードに設定された場合に、前記駆動信号の周波数を前記第1の周波数よりも大きい第2の周波数に設定変更する構成をなし、前記受光センサは、前記センサ駆動回路から前記第1の周波数の前記駆動信号が出力される場合に、前記読取対象コードからの前記反射光に応じた前記受光信号を、前記第1の周波数に対応する速度で出力し、前記第2の周波数の前記駆動信号が出力される場合には、前記反射光に応じた前記受光信号を、前記第2の周波数に対応する速度で出力する構成をなしている。
The invention according to claim 1 is an optical information reading device capable of reading an information code displayed on a color display device and an information code attached to an object as a reading target code, and illuminating light to the reading target code Illuminating means for irradiating light, an optical filter for passing light in a predetermined frequency band corresponding to the illumination light, and suppressing passage of light outside the predetermined frequency band, and reflected light from the reading target code in the optical filter A light receiving sensor that outputs a light receiving signal corresponding to the reflected light, a sensor driving circuit that outputs a driving signal having a set frequency to the light receiving sensor, and the light output from the light receiving sensor. A light-receiving signal is input and a low-pass filter circuit that suppresses signals with a frequency higher than the specified cutoff frequency is output from the low-pass filter circuit. The binarizing means for binarizing the received light signal, the decoding means for performing a decoding process based on the binarized signal generated by the binarizing means, and the setting change between the first mode and the second mode Possible mode switching means.
The sensor driving circuit sets the frequency of the driving signal to the first frequency when the mode switching unit sets the first mode, and when the mode switching unit sets the second mode, The configuration is such that the frequency of the drive signal is changed to a second frequency that is higher than the first frequency, and the light receiving sensor is configured to output the drive signal of the first frequency from the sensor drive circuit. The light reception signal corresponding to the reflected light from the code to be read is output at a speed corresponding to the first frequency, and the reflection signal is output when the drive signal of the second frequency is output. The light reception signal corresponding to light is output at a speed corresponding to the second frequency.

請求項2の発明は、請求項1に記載の光学的情報読取装置において、前記カラー表示装置が、R画素、G画素、B画素の組み合わせによって構成される表示画素を複数配列してなるものであることを特徴としている。   According to a second aspect of the present invention, in the optical information reading device according to the first aspect, the color display device is formed by arranging a plurality of display pixels constituted by combinations of R pixels, G pixels, and B pixels. It is characterized by being.

請求項3の発明は、請求項2に記載の光学的情報読取装置において、前記照明手段が、赤色の前記照明光を照射する構成をなし、前記光学フィルタが、G画素及びB画素から発せられる光の通過を、R画素から発せられる光の通過よりも抑制することを特徴としている。   According to a third aspect of the present invention, in the optical information reading apparatus according to the second aspect, the illuminating unit irradiates the red illumination light, and the optical filter is emitted from the G pixel and the B pixel. It is characterized in that the passage of light is suppressed more than the passage of light emitted from the R pixel.

請求項4の発明は、請求項1から請求項3のいずれか一項に記載の光学的情報読取装置において、前記カラー表示装置が、携帯端末に設けられた表示装置であることを特徴としている。   According to a fourth aspect of the present invention, in the optical information reading device according to any one of the first to third aspects, the color display device is a display device provided in a portable terminal. .

請求項5の発明は、請求項1から請求項4のいずれか一項に記載の光学的情報読取装置において、更に、前記第1モード及び前記第2モードの設定順序を定めるモード順序規定手段が設けられ、前記モード切替手段が、前記モード順序規定手段によって規定された順序に従い、前記第1モード及び前記第2モードのいずれか一方を先のモードとして設定し、当該先のモードに設定された状態で行われた前記デコード処理が失敗した場合に、他方に設定変更することを特徴としている。   According to a fifth aspect of the present invention, in the optical information reading device according to any one of the first to fourth aspects, the mode order defining means for determining a setting order of the first mode and the second mode is further provided. Provided, and the mode switching means sets either the first mode or the second mode as the previous mode according to the order defined by the mode order defining means, and is set to the previous mode. When the decoding process performed in the state fails, the setting is changed to the other.

請求項6の発明は、請求項5に記載の光学的情報読取装置において、更に、前記第1モード又は前記第2モードにて行われた前記デコード処理の結果を当該デコード処理が行われたモードと対応付けて記憶可能な記憶手段が設けられ、前記モード順序規定手段が、前記記憶手段の記憶内容に基づき、前記第1モード及び前記第2モードの内、前記デコード処理が前回成功したモードを優先的に設定することを特徴としている。   A sixth aspect of the present invention is the optical information reading apparatus according to the fifth aspect, further comprising a mode in which the decoding process is performed on the result of the decoding process performed in the first mode or the second mode. Storage means that can be stored in association with each other, and the mode order defining means, based on the storage contents of the storage means, of the first mode and the second mode, the mode in which the decoding process was successful last time. It is characterized by priority setting.

請求項1の発明は、照明光に対応する所定周波数帯の光を通過させ、所定周波数帯以外の光の通過を抑制する光学フィルタが設けられており、読取対象コードからの反射光を光学フィルタを介して受光センサによって受光する構成をなしている。このようにすることで、照明光が読取対象コードにて反射した反射光以外の外乱光を効果的に除去することができる。
一方、このような構成とすると、カラー表示装置に表示される情報コードを読取対象コードとした場合に、明色パターンを表示する領域の一部画素(光学フィルタによって抑制される光を発する画素)からの光が光学フィルタによって抑制されてしまい、受光信号における明色パターン部分の波形に暗色を示す波形成分がノイズとして含まれてしまうことが懸念される。
これに対し、本発明は、第1モードに設定された場合に、駆動信号の周波数を第1の周波数に設定し、第2モードに設定された場合に、駆動信号の周波数を第1の周波数よりも大きい第2の周波数に設定変更している。そして、第1の周波数の駆動信号が出力される場合には、読取対象コードからの反射光に応じた受光信号を、第1の周波数に対応する速度で出力し、第2の周波数の駆動信号が出力される場合には、第2の周波数に対応する速度で出力している。
このようにすると、カラー表示装置に表示される情報コードが読取対象とされ、明色パターン領域の波形に暗色を示す波形成分がノイズとして含まれるような場合に、第2の周波数で受光センサを駆動して、明色パターン領域の波形(明色を示す正常信号と暗色を示すノイズとを含んだ明暗交互信号の波形)の周波数を相対的に高めることができる。これにより、受光信号をローパスフィルタ回路に入力させたときに、明色パターン領域の信号の減衰度合いが大きくなり、当該明色パターン領域の信号に含まれる暗色を示すノイズを効果的に除去することができる。
一方、必要に応じて第1の周波数で受光センサを駆動することができるため、紙媒体に付された情報コードを読み取る場合等、明色パターン領域の誤認識がなされにくい場合(即ち、明色パターン領域の受光信号に暗色を示すノイズが含まれにくい場合)には、駆動周波数を低く抑え、より細かな読み取りに有利な設定とすることができる。
The invention according to claim 1 is provided with an optical filter that transmits light in a predetermined frequency band corresponding to the illumination light and suppresses passage of light other than the predetermined frequency band, and reflects the reflected light from the reading target code as an optical filter. The light receiving sensor is configured to receive light via By doing in this way, disturbance light other than the reflected light which illumination light reflected in the reading object code | cord | chord can be removed effectively.
On the other hand, with such a configuration, when the information code displayed on the color display device is the code to be read, a part of pixels in the area displaying the bright color pattern (pixels that emit light suppressed by the optical filter) There is a concern that the light from the light is suppressed by the optical filter, and the waveform component indicating the dark color is included in the waveform of the light color pattern portion in the light reception signal as noise.
On the other hand, the present invention sets the frequency of the drive signal to the first frequency when set to the first mode, and sets the frequency of the drive signal to the first frequency when set to the second mode. The setting is changed to a second frequency larger than that. When the drive signal having the first frequency is output, the light reception signal corresponding to the reflected light from the reading target code is output at a speed corresponding to the first frequency, and the drive signal having the second frequency is output. Is output at a speed corresponding to the second frequency.
In this case, when the information code displayed on the color display device is to be read, and the waveform component indicating the dark color is included as noise in the waveform of the bright color pattern region, the light receiving sensor is operated at the second frequency. By driving, it is possible to relatively increase the frequency of the waveform of the light color pattern region (the waveform of the light / dark alternating signal including the normal signal indicating the light color and the noise indicating the dark color). As a result, when the received light signal is input to the low-pass filter circuit, the attenuation level of the signal in the bright color pattern area is increased, and noise indicating the dark color included in the signal in the bright color pattern area is effectively removed. Can do.
On the other hand, since the light receiving sensor can be driven at the first frequency as needed, it is difficult to misrecognize the bright color pattern area when reading the information code attached to the paper medium (that is, the bright color). In the case where it is difficult for the received light signal in the pattern area to contain dark-colored noise), the drive frequency can be suppressed to a setting that is advantageous for finer reading.

請求項2の発明では、読み取りの対象となるカラー表示装置が、R画素、G画素、B画素の組み合わせによって構成される表示画素を複数配列した構成をなしている。本発明によれば、このように様々な場所で広く用いられるRGB方式のカラー表示装置を読取対象物として当該カラー表示装置に表示される情報コードを良好に読み取ることができ、ユーザの利便性を高めることができる。   According to the second aspect of the present invention, the color display device to be read has a configuration in which a plurality of display pixels constituted by combinations of R pixels, G pixels, and B pixels are arranged. According to the present invention, the information code displayed on the color display device can be read well with the RGB color display device widely used in various places as an object to be read. Can be increased.

請求項3の発明は、照明手段が、赤色の照明光を照射する構成をなし、光学フィルタが、G画素及びB画素から発せられる光の通過を、R画素から発せられる光の通過よりも抑制している。このようにすると、物体に付された情報コードを読取対象コードとして読み取る場合に、照明光が明色領域にて反射した光(赤色光)を光学フィルタにて選択的に透過させることができ、外乱光を良好に除去できる。一方、カラー表示装置に表示される情報コードを読み取る場合、明色パターンを表示する領域においてG画素、B画素からの光が光学フィルタによって抑制され、明色パターン部分の波形に暗色を示す波形成分がノイズとして含まれてしまうことが懸念される。しかしながら、必要に応じてセンサ駆動信号の周波数を高めることができるため、受光信号の周波数を相対的に高めることができ、明色パターン領域の信号波形に暗色を示すノイズ(G画素、B画素に起因するノイズ)が含まれるような場合に、明色パターン領域の信号のローパスフィルタ回路での減衰度合いを大きくすることができる。従って、明色パターン領域の信号波形に暗色を示すノイズ(G画素、B画素に起因するノイズ)が含まれるような場合であっても、当該ノイズを効果的に除去することができる。   According to a third aspect of the present invention, the illumination means emits red illumination light, and the optical filter suppresses passage of light emitted from the G pixel and B pixel as compared with passage of light emitted from the R pixel. doing. In this case, when the information code attached to the object is read as the reading target code, the light reflected by the bright color region (red light) can be selectively transmitted by the optical filter, The disturbance light can be removed well. On the other hand, when reading the information code displayed on the color display device, the light component from the G pixel and B pixel is suppressed by the optical filter in the region where the bright color pattern is displayed, and the waveform component indicating the dark color in the waveform of the bright color pattern portion May be included as noise. However, since the frequency of the sensor drive signal can be increased as necessary, the frequency of the light reception signal can be relatively increased, and noise (G pixel and B pixel) indicating a dark color in the signal waveform of the bright color pattern region. In the case where noise due to the noise is included, it is possible to increase the degree of attenuation of the signal in the light color pattern region in the low-pass filter circuit. Therefore, even if the signal waveform in the light color pattern region includes noise indicating a dark color (noise due to the G pixel and B pixel), the noise can be effectively removed.

請求項4の発明では、携帯端末に設けられたカラー表示装置に表示される情報コードを読取対象コードとしている。このようにすると、様々な場所で広く用いられる携帯端末を読取対象物として当該携帯端末に表示される情報コードを良好に読み取ることができ、ユーザの利便性を一層高めることができる。   In the invention of claim 4, the information code displayed on the color display device provided in the portable terminal is used as the reading object code. In this way, it is possible to satisfactorily read an information code displayed on the mobile terminal using a mobile terminal widely used in various places as a reading target, and the convenience for the user can be further enhanced.

請求項5の発明では、第1モード及び第2モードの設定順序を定めるモード順序規定手段が設けられている。そして、モード切替手段は、モード順序規定手段によって規定された順序に従い、第1モード及び第2モードのいずれか一方を先のモードとして設定し、当該先のモードに設定された状態で行われたデコード処理が失敗した場合に、他方に設定変更している。このようにすると、一方のモードでデコード処理が失敗した場合に、迅速且つスムーズに他方のモードに切り替えて、当該他方のモードでデコード処理を再度実行することができ、ユーザに特別な負担を強いることなくデコードの成功確率を効果的に高めることができる。   According to a fifth aspect of the present invention, mode order defining means for determining the setting order of the first mode and the second mode is provided. Then, the mode switching means sets one of the first mode and the second mode as the previous mode according to the order defined by the mode order defining means, and is performed in a state where the previous mode is set. When the decoding process fails, the setting is changed to the other. In this way, when the decoding process fails in one mode, it is possible to quickly and smoothly switch to the other mode and execute the decoding process again in the other mode, which imposes a special burden on the user. Therefore, it is possible to effectively increase the decoding success probability.

請求項6の発明では、第1モード又は第2モードにてデコード処理が行われたときのデコード処理の結果を当該デコード処理が行われたモードと対応付けて記憶可能な記憶手段が設けられ、記憶手段の記憶内容に基づき、第1モード及び第2モードの内、デコード処理が前回成功したモードを優先的に設定している。デコード処理が前回成功したモードは他方のモードと比較してデコード処理が成功する可能性が高く、このモードを優先的に設定する構成とすれば、デコード処理の成功確率を効果的に高めることができ、読取処理の迅速化を図ることができる。   In the invention of claim 6, there is provided storage means capable of storing the result of the decoding process when the decoding process is performed in the first mode or the second mode in association with the mode in which the decoding process is performed, Based on the stored contents of the storage means, the mode in which the decoding process was last successful is preferentially set out of the first mode and the second mode. The mode in which the decoding process was successful last time is more likely to succeed in the decoding mode than the other mode, and if this mode is set with priority, the success probability of the decoding process can be effectively increased. The reading process can be speeded up.

図1は、本発明の第1実施形態に係る光学的情報読取装置を例示するブロック図である。FIG. 1 is a block diagram illustrating an optical information reading apparatus according to the first embodiment of the invention. 図2は、図1の光学的情報読取装置にて行われる読取処理の流れを例示するフローチャートである。FIG. 2 is a flowchart illustrating the flow of reading processing performed by the optical information reading apparatus of FIG. 図3(a)は、第1モードのときに出力されるセンサ駆動信号を例示する説明図であり、図3(b)は、第2モードのときに出力されるセンサ駆動信号を例示する説明図である。FIG. 3A is an explanatory diagram illustrating a sensor drive signal output in the first mode, and FIG. 3B is an explanatory diagram illustrating a sensor drive signal output in the second mode. FIG. 図4は、カラー表示装置に表示される情報コードを読取対象とする場合を説明する説明図である。FIG. 4 is an explanatory diagram for explaining a case where an information code displayed on the color display device is to be read. 図5は、上段にローパスフィルタ回路で変換された明色領域の波形を概念的に示し、下段にその二値データを概念的に示しており、(a)は、第1の周波数で受光センサが駆動される場合を示すものであり、(b)は、第2の周波数で受光センサが駆動される場合を示すものである。FIG. 5 conceptually shows the waveform of the bright color region converted by the low-pass filter circuit in the upper stage, and conceptually shows the binary data in the lower stage. FIG. 5A shows the light receiving sensor at the first frequency. (B) shows the case where the light receiving sensor is driven at the second frequency. 図6は、液晶表示装置に表示されるバーコードを撮像したときの受光信号を例示する波形図であり、(a)は、第1の周波数で受光センサが駆動される場合を示すものであり、(b)は、第2の周波数で受光センサが駆動される場合を示すものである。FIG. 6 is a waveform diagram illustrating a light reception signal when a bar code displayed on the liquid crystal display device is imaged. FIG. 6A illustrates a case where the light reception sensor is driven at the first frequency. , (B) shows a case where the light receiving sensor is driven at the second frequency. 図7(a)は、図6(a)の受光信号をローパスフィルタ回路で変換した信号を示す波形図であり、図7(b)は、図7(a)の信号を二値化回路にて二値化した信号を示す波形図である。FIG. 7A is a waveform diagram showing a signal obtained by converting the received light signal of FIG. 6A by a low-pass filter circuit, and FIG. 7B is a binarization circuit for the signal of FIG. 7A. It is a wave form diagram which shows the signal binarized. 図8(a)は、図6(b)の受光信号をローパスフィルタ回路で変換した信号を示す波形図であり、図8(b)は、図8(a)の信号を二値化回路にて二値化した信号を示す波形図である。FIG. 8A is a waveform diagram showing a signal obtained by converting the received light signal of FIG. 6B by a low-pass filter circuit, and FIG. 8B shows the signal of FIG. 8A as a binarization circuit. It is a wave form diagram which shows the signal binarized. 図9は、第2実施形態に係る光学的情報読取装置にて行われる読取処理を例示するフローチャートである。FIG. 9 is a flowchart illustrating a reading process performed by the optical information reading apparatus according to the second embodiment. 図10は、従来から用いられているカラー表示装置の画素構成を概念的に説明する説明図である。FIG. 10 is an explanatory diagram for conceptually explaining a pixel configuration of a color display device conventionally used. 図11は、カラー液晶表示装置に表示されるバーコードを読み取るときの問題点を説明する説明図である。FIG. 11 is an explanatory diagram for explaining a problem in reading a barcode displayed on the color liquid crystal display device.

[第1実施形態]
以下、第1実施形態に係る光学的情報読取装置について図面を参照しつつ説明する。
(全体構成)
図1は、第1実施形態に係る光学的情報読取装置の電気的構成を例示するブロック図であり、まず、図1等を参照して本実施形態に係る光学的情報読取装置1の全体構成について説明する。図1に示すように、本実施形態に係る光学的情報読取装置1は、バーコード等の情報コードBを読み取るコードリーダとして構成されるものであり、図示しないケースによって外郭が構成され、このケース内に各種電子部品が収容された構成をなしている。
[First embodiment]
The optical information reading apparatus according to the first embodiment will be described below with reference to the drawings.
(overall structure)
FIG. 1 is a block diagram illustrating the electrical configuration of the optical information reading apparatus according to the first embodiment. First, the overall configuration of the optical information reading apparatus 1 according to this embodiment with reference to FIG. 1 and the like. Will be described. As shown in FIG. 1, the optical information reader 1 according to the present embodiment is configured as a code reader that reads an information code B such as a barcode, and an outer case is formed by a case (not shown). It has a configuration in which various electronic components are accommodated.

この光学的情報読取装置1は、主に、照明光源20、受光センサ26、光学フィルタ28、結像レンズ27等の光学系と、メモリ35、制御回路40、操作スイッチ42、液晶表示装置46等のマイクロコンピュータ(以下「マイコン」という)系と、電源スイッチ41、電池49等の電源系と、から構成されている。なお、これらは、図略のプリント配線板に実装あるいはケース(図示略)内に内装されている。   The optical information reading apparatus 1 mainly includes an optical system such as an illumination light source 20, a light receiving sensor 26, an optical filter 28, and an imaging lens 27, a memory 35, a control circuit 40, an operation switch 42, a liquid crystal display device 46, and the like. And a power source system such as a power switch 41 and a battery 49. These are mounted on a printed wiring board (not shown) or housed in a case (not shown).

光学系は、照明光源20、受光センサ26、光学フィルタ28、結像レンズ27等から構成されている。照明光源20は、「照明手段」の一例に相当するものであり、例えば、赤色のLEDと、このLEDの出射側に設けられる拡散レンズ、集光レンズ等を備え、赤色の照明光Lfを照射する構成をなしている。本実施形態では、受光センサ26を挟んだ両側に照明光源20が設けられており、ケースに形成された読取口(図示略)を介して読取対象物Rに向けて照明光Lfを照射可能に構成されている。この読取対象物Rとしては、例えば、樹脂材料、金属材料、紙等の様々な物体、或いは後述するカラー表示装置などが挙げられ、本実施形態に係る光学的情報読取装置1では、このような読取対象物Rにおいて、印刷、ダイレクトマーキングなどによる加工、或いは表示装置による表示等によって示された情報コード(図1ではバーコード)を「読取対象コード」としている。なお、以下の説明では、情報コードとしてバーコードBを例示して説明するが、QRコード、データマトリックコード、マキシコードなどの二次元コードに置き換えてもよい。   The optical system includes an illumination light source 20, a light receiving sensor 26, an optical filter 28, an imaging lens 27, and the like. The illumination light source 20 corresponds to an example of “illumination means”, and includes, for example, a red LED, a diffusion lens provided on the emission side of the LED, a condenser lens, and the like, and irradiates the red illumination light Lf. It is configured to do. In the present embodiment, the illumination light source 20 is provided on both sides of the light receiving sensor 26, and the illumination light Lf can be irradiated toward the reading object R through a reading port (not shown) formed in the case. It is configured. Examples of the reading object R include various objects such as a resin material, a metal material, paper, or a color display device described later. In the optical information reading device 1 according to the present embodiment, In the reading object R, an information code (bar code in FIG. 1) indicated by processing such as printing, direct marking, or display by a display device is a “reading object code”. In the following description, the barcode B is exemplified as the information code. However, the information code may be replaced with a two-dimensional code such as a QR code, a data matrix code, or a maxi code.

受光センサ26は、読取対象物Rや情報コードBに照射されて反射した反射光Lrを受光可能に構成されるもので、例えば、C−MOSやCCD等の固体撮像素子である受光素子を一次元に配列したラインセンサ、或いは2次元に配列したエリアセンサが、これに相当する。この受光センサ26は、結像レンズ27を介して入射する入射光を受光面26aで受光し得るように図略のプリント配線板に実装されている。また、受光センサ26は、制御回路40から設定された周波数のパルス信号(駆動信号)が入力される構成をなしており、制御回路40からの各パルスの入力と同期させて各受光素子の信号が順番に出力される構成となっている。   The light receiving sensor 26 is configured to be able to receive the reflected light Lr irradiated and reflected on the reading object R or the information code B. For example, the light receiving sensor 26 is a primary element such as a C-MOS or CCD. A line sensor originally arranged or an area sensor arranged two-dimensionally corresponds to this. The light receiving sensor 26 is mounted on a printed wiring board (not shown) so that incident light incident through the imaging lens 27 can be received by the light receiving surface 26a. The light receiving sensor 26 is configured to receive a pulse signal (driving signal) having a frequency set from the control circuit 40, and the signal of each light receiving element is synchronized with the input of each pulse from the control circuit 40. Are output in order.

なお、以下の説明では、受光センサ26がラインセンサからなる構成を代表例として説明し、この代表例では、受光センサ26の各受光素子において、受光量が大きいほど低い電圧の受光信号が出力されるようになっている。   In the following description, a configuration in which the light receiving sensor 26 is a line sensor will be described as a representative example. In this representative example, a light receiving signal with a lower voltage is output as the amount of received light increases in each light receiving element of the light receiving sensor 26. It has become so.

光学フィルタ28は、照明光Lfに対応する所定周波数帯の光を通過させ、当該所定周波数帯以外の光を抑制する機能を有している。具体的には、照明光源20から照射される赤色光の波長が含まれる所定赤色光波長帯の光の通過を許容し、当該所定赤色光波長帯から外れた光(例えば、緑色光、青色光)の通過を遮断する光学的なフィルタとして構成されており、例えば、ケースに形成された読取口(図示略)と結像レンズ27との間に設けられている。これにより、照明光Lfが読取対象物Rで反射した光(反射光Lr)を選択的に受光し、当該反射光Lrの波長から大きく外れた不要な光が受光センサ26に入射することを抑制している。   The optical filter 28 has a function of allowing light in a predetermined frequency band corresponding to the illumination light Lf to pass therethrough and suppressing light outside the predetermined frequency band. Specifically, the light of the predetermined red light wavelength band including the wavelength of the red light emitted from the illumination light source 20 is allowed to pass, and the light deviated from the predetermined red light wavelength band (for example, green light, blue light) ), And is provided between a reading port (not shown) formed in the case and the imaging lens 27, for example. Thereby, the light (reflected light Lr) reflected by the reading object R is selectively received by the illumination light Lf, and unnecessary light greatly deviating from the wavelength of the reflected light Lr is prevented from entering the light receiving sensor 26. doing.

結像レンズ27は、例えば、鏡筒とこの鏡筒内に収容される複数の集光レンズとによって構成されており、本実施形態では、ケースに形成された読取口(図示略)に入射する反射光Lrを集光し、受光センサ26の受光面26aに情報コードBのコード画像を結像するように構成されている。   The imaging lens 27 is constituted by, for example, a lens barrel and a plurality of condensing lenses accommodated in the lens barrel. In the present embodiment, the image forming lens 27 is incident on a reading port (not shown) formed in the case. The reflected light Lr is collected and a code image of the information code B is formed on the light receiving surface 26 a of the light receiving sensor 26.

マイコン系は、マイコン(情報処理装置)として機能し得る制御回路40及びメモリ35を中心として構成され、前述した光学系によって撮像された情報コードBの画像信号をハードウェア的およびソフトウェア的に信号処理し得るものである。   The microcomputer system is configured around a control circuit 40 and a memory 35 that can function as a microcomputer (information processing apparatus), and performs signal processing on the image signal of the information code B imaged by the optical system described above in hardware and software. It is possible.

制御回路40は、光学的情報読取装置1全体を制御可能なマイコンで、CPU、システムバス、入出力インタフェース等からなるものであり、情報処理機能を有している。この制御回路40には、内蔵された入出力インタフェースを介して種々の入出力装置(周辺装置)が接続されており、本実施形態の場合、電源スイッチ41、操作スイッチ42、LED43、ブザー44、液晶表示装置46、通信インタフェース48等が接続されている。また、通信インタフェース48には、光学的情報読取装置1の上位システムに相当するホストコンピュータHSTなどを接続できるようになっている。   The control circuit 40 is a microcomputer capable of controlling the entire optical information reading apparatus 1 and includes a CPU, a system bus, an input / output interface, and the like, and has an information processing function. Various input / output devices (peripheral devices) are connected to the control circuit 40 via a built-in input / output interface. In this embodiment, a power switch 41, an operation switch 42, an LED 43, a buzzer 44, A liquid crystal display device 46, a communication interface 48, and the like are connected. The communication interface 48 can be connected to a host computer HST corresponding to the host system of the optical information reader 1.

メモリ35は、半導体メモリ装置であり、例えばRAM(DRAM、SRAM等)やROM(EPROM、EEPROM等)がこれに相当する。このメモリ35のうちのRAMには、前述した画像データ蓄積領域のほかに、制御回路40が算術演算や論理演算等の各処理時に利用する作業領域や読取条件テーブルも確保可能に構成されている。またROMには、後述する読取処理等を実行可能な所定プログラムやその他、照明光源20、受光センサ26等の各ハードウェアを制御可能なシステムプログラム等が予め格納されている。   The memory 35 is a semiconductor memory device, and corresponds to, for example, a RAM (DRAM, SRAM, etc.) or a ROM (EPROM, EEPROM, etc.). In addition to the above-described image data storage area, the RAM of the memory 35 is configured to be able to secure a work area and a reading condition table that are used by the control circuit 40 in each processing such as arithmetic operation and logical operation. . The ROM stores in advance a predetermined program that can execute a reading process and the like that will be described later, and a system program that can control each hardware such as the illumination light source 20 and the light receiving sensor 26.

ローパスフィルタ回路31は、受光センサ26の出力側に設けられ、受光センサ26から出力される受光信号を入力信号として、当該受光信号の高周波成分を除去する機能を有している。このローパスフィルタ回路31は、公知のローパスフィルタとして構成されており、予め規定されたカットオフ周波数以下の周波数の信号を減衰させずに通過させ、カットオフ周波数を超える高周波領域の信号については、入力信号の周波数が高くなるほど、フィルタを通った出力信号が抑制(減衰)される構成をなしている。   The low-pass filter circuit 31 is provided on the output side of the light receiving sensor 26 and has a function of removing a high frequency component of the light receiving signal using the light receiving signal output from the light receiving sensor 26 as an input signal. The low-pass filter circuit 31 is configured as a known low-pass filter, passes a signal having a frequency equal to or lower than a predetermined cutoff frequency without being attenuated, and inputs a signal in a high frequency region exceeding the cutoff frequency. The higher the signal frequency, the more the output signal that has passed through the filter is suppressed (attenuated).

ローパスフィルタ回路31は、反転増幅回路として構成される公知のローパスフィルタ(オペアンプを用いた公知のローパスフィルタ)であってもよく、非反転増幅回路として構成される公知のローパスフィルタであってもよい。或いは、オペアンプを用いない公知のCRフィルタであってもよい(この場合、受光センサ26とローパスフィルタ回路31との間に別途増幅回路を設けることが望ましい。なお、以下の説明では、ローパスフィルタ回路31が、「反転増幅回路として構成される公知ローパスフィルタ」である例を代表例として説明する。   The low-pass filter circuit 31 may be a known low-pass filter (known low-pass filter using an operational amplifier) configured as an inverting amplifier circuit, or may be a known low-pass filter configured as a non-inverting amplifier circuit. . Alternatively, a known CR filter that does not use an operational amplifier may be used (in this case, it is desirable to provide a separate amplifier circuit between the light receiving sensor 26 and the low-pass filter circuit 31. In the following description, the low-pass filter circuit is provided. An example in which 31 is a “known low-pass filter configured as an inverting amplifier circuit” will be described as a representative example.

二値化回路33は、「二値化手段」の一例に相当するものであり、ローパスフィルタ回路31から出力された信号を二値データに変換する機能を有している。この二値化回路は、ローパスフィルタ回路31からの出力信号(高周波ノイズが除去された受光信号)を設定された閾値と比較して、閾値以上の場合には、Lレベル信号を出力し、閾値未満の場合にはHレベル信号を出力している。なお、二値化回路33から出力される信号は、情報コードBのパターンデータとしてメモリ35に蓄積されるようになっている。   The binarization circuit 33 corresponds to an example of “binarization means”, and has a function of converting a signal output from the low-pass filter circuit 31 into binary data. This binarization circuit compares the output signal from the low-pass filter circuit 31 (light-receiving signal from which high-frequency noise has been removed) with a set threshold value, and outputs an L level signal if the threshold value is exceeded. If it is less than that, an H level signal is output. Note that the signal output from the binarization circuit 33 is stored in the memory 35 as pattern data of the information code B.

電源系は、電源スイッチ41、電池49等により構成されており、制御回路40により管理される電源スイッチ41のオンオフによって、電池49から供給される駆動電圧の導通や遮断が制御されている。なお、電池49は、所定の直流電圧を発生可能な2次電池で、例えば、リチウムイオン電池等がこれに相当する。   The power supply system includes a power switch 41, a battery 49, and the like, and conduction and interruption of the drive voltage supplied from the battery 49 are controlled by turning on and off the power switch 41 managed by the control circuit 40. The battery 49 is a secondary battery that can generate a predetermined DC voltage, and corresponds to, for example, a lithium ion battery.

(読取処理)
次に、本実施形態に係る光学的情報読取装置1で行われる読取処理について図2等を参照して説明する。なお、図2は、本実施形態に係る光学的情報読取装置1にて行われる読取処理の流れを例示するフローチャートである。
(Reading process)
Next, a reading process performed by the optical information reading apparatus 1 according to the present embodiment will be described with reference to FIG. FIG. 2 is a flowchart illustrating the flow of reading processing performed by the optical information reading apparatus 1 according to this embodiment.

本実施形態では、例えば、ユーザによる所定操作(例えば操作スイッチ42に対する所定操作)をトリガとして図2に示す読取処理が開始され、まず照明光源20を駆動する処理が行われる(S1)。この処理では、制御回路40から照明光源20に対して光源駆動信号が与えられ、照明光源20から赤色の照明光Lfが照射される。   In the present embodiment, for example, the reading process shown in FIG. 2 is started by a predetermined operation by the user (for example, a predetermined operation on the operation switch 42), and the process of driving the illumination light source 20 is first performed (S1). In this process, a light source drive signal is given from the control circuit 40 to the illumination light source 20, and the illumination light source 20 emits red illumination light Lf.

その後、読取モードを第1モードに設定する処理が行われる(S2)。本実施形態では、読取モードを第1モード(駆動信号の周波数をf1に設定するモード)と第2モード(駆動信号の周波数をf2に設定するモード)とに切り替えうる構成をなしており、図2の読取処理開始に伴い、「第2モード」よりも優先させて「第1モード」に設定している。なお、現在設定されているモードが「第1モード」及び「第2モード」のいずれであるかを示すデータは、例えばメモリ35に記録される。
本実施形態では、制御回路40が「モード切替手段」の一例に相当しており、第1モードと第2モードとに設定変更する機能を有している。
Thereafter, a process of setting the reading mode to the first mode is performed (S2). In the present embodiment, the reading mode can be switched between a first mode (mode in which the frequency of the drive signal is set to f1) and a second mode (mode in which the frequency of the drive signal is set to f2). As the reading process No. 2 starts, the “first mode” is set with priority over the “second mode”. Note that data indicating whether the currently set mode is the “first mode” or the “second mode” is recorded in the memory 35, for example.
In the present embodiment, the control circuit 40 corresponds to an example of “mode switching means” and has a function of changing the setting between the first mode and the second mode.

S2の処理の後には、撮像処理が行われる(S3)。本実施形態では、制御回路40が「センサ駆動回路」の一例に相当しており、S3の処理が開始されると、制御回路40から受光センサ26に対し、設定された周波数のパルス信号(駆動信号)が出力される。具体的には、現在のモードに応じた周波数のパルス信号を出力しており、第1モードに設定されている場合には、駆動信号の周波数が第1の周波数f1に設定され(図3(a)参照)、第2モードに設定された場合には、駆動信号の周波数が前記第1の周波数よりも大きい第2の周波数f2に設定されるようになっている(図3(b)参照)。図2の読取処理開始直後(S2の処理直後)には、S2にて読取モードが「第1モード」に設定されるため、図3(a)のように第1の周波数f1に設定されたパルス信号(駆動信号)が出力されることになる。   An imaging process is performed after the process of S2 (S3). In the present embodiment, the control circuit 40 corresponds to an example of a “sensor drive circuit”. When the process of S3 is started, the control circuit 40 sends a pulse signal (drive) with a set frequency to the light receiving sensor 26. Signal) is output. Specifically, a pulse signal having a frequency corresponding to the current mode is output, and when the first mode is set, the frequency of the drive signal is set to the first frequency f1 (FIG. 3 ( a)), when the second mode is set, the frequency of the drive signal is set to a second frequency f2 higher than the first frequency (see FIG. 3B). ). Immediately after the start of the reading process in FIG. 2 (immediately after the process in S2), the reading mode is set to “first mode” in S2, so that the first frequency f1 is set as shown in FIG. A pulse signal (drive signal) is output.

受光センサ26は、読取対象コードにて反射され且つ光学フィルタ28を透過した反射光を各受光素子にて受光しており、各受光素子での受光量に基づいて、読取対象コードからの反射光に応じた受光信号を出力している。具体的には、制御回路40から与えられるパルス信号(駆動信号)に応じて駆動し、制御回路40から各パルスが入力される毎に、一列に配列された各受光素子の各信号を順番に出力している。従って、制御回路40(センサ駆動回路)から図3(a)のように第1の周波数f1のパルス信号(駆動信号)が出力される場合には、読取対象コードからの反射光に応じた受光信号が、第1の周波数f1に対応する速度で出力され、図3(b)のように第2の周波数f2のパルス信号(駆動信号)が出力される場合には、読取対象コードからの反射光に応じた受光信号が、第2の周波数f2に対応する速度で出力されるようになっている。例えば、受光センサ26がN個の受光素子を一列に並べたラインセンサとして構成されている場合には、制御回路40からN個のパルスが入力されることで全受光素子の信号が出力されることになり、第1の周波数f1のときよりも第2の周波数f2のときのほうが短い時間で全受光素子の信号が出力されることになる。   The light receiving sensor 26 receives the reflected light reflected by the reading target code and transmitted through the optical filter 28 by each light receiving element, and the reflected light from the reading target code based on the amount of light received by each light receiving element. The light reception signal corresponding to the is output. Specifically, driving is performed according to a pulse signal (driving signal) given from the control circuit 40, and each signal of each light receiving element arranged in a line is sequentially input every time each pulse is inputted from the control circuit 40. Output. Therefore, when a pulse signal (drive signal) having the first frequency f1 is output from the control circuit 40 (sensor drive circuit) as shown in FIG. 3A, the light received according to the reflected light from the reading target code. When a signal is output at a speed corresponding to the first frequency f1 and a pulse signal (drive signal) of the second frequency f2 is output as shown in FIG. 3B, reflection from the code to be read is performed. A light reception signal corresponding to the light is output at a speed corresponding to the second frequency f2. For example, when the light receiving sensor 26 is configured as a line sensor in which N light receiving elements are arranged in a line, the signals of all the light receiving elements are output by inputting N pulses from the control circuit 40. In other words, the signals of all the light receiving elements are output in a shorter time at the second frequency f2 than at the first frequency f1.

S2の処理直後のS3の撮像処理では、読取モードが「第1モード」に設定されており、制御回路40から第1の周波数f1に設定されたパルス信号(駆動信号:図3(a))が出力されるため、全受光素子の受光信号が第1の周波数f1に対応する速度で出力され、第2の周波数f2の場合と比較してやや長めの時間で全受光素子の受光信号が出力されることとなる。   In the imaging process of S3 immediately after the process of S2, the reading mode is set to the “first mode”, and the pulse signal (drive signal: FIG. 3A) set to the first frequency f1 from the control circuit 40. Is output at a speed corresponding to the first frequency f1, and the light reception signals of all the light receiving elements are output in a slightly longer time than the case of the second frequency f2. The Rukoto.

受光センサ26から出力される受光信号は、上述のローパスフィルタ回路31にて高周波成分が抑制された後、二値化回路33にて二値データに変換され、メモリ35に記憶されることとなる。   The light reception signal output from the light reception sensor 26 is converted into binary data by the binarization circuit 33 after the high frequency component is suppressed by the low-pass filter circuit 31 described above, and stored in the memory 35. .

S3の撮像処理の後には、デコード処理が行われる(S4)。このデコード処理では、メモリ35に記憶された二値データに基づいて、各明色領域、各暗色領域のサイズ、位置が特定され、公知のデコード方法によって解読が行われる。なお、本実施形態では、制御回路40が「デコード手段」の一例に相当する。   After the imaging process of S3, a decoding process is performed (S4). In this decoding process, the size and position of each bright color area and each dark color area are specified based on the binary data stored in the memory 35, and decoding is performed by a known decoding method. In the present embodiment, the control circuit 40 corresponds to an example of “decoding means”.

S4のデコード処理の後には、S5においてデコード処理が成功したか否かが判断され、成功した場合には(S5:Yes)、そのデコード結果が例えば液晶表示器46(図1)などに出力される(S6)。   After the decoding process in S4, it is determined whether or not the decoding process is successful in S5. If the decoding process is successful (S5: Yes), the decoding result is output to the liquid crystal display 46 (FIG. 1), for example. (S6).

一方、S4のデコード処理が失敗した場合には、S5にてNoに進み、両モード(第1モード及び第2モード)を実行済みか否かを判断する(S7)。このとき、両モードが実行されていない場合(即ち、第1モードのみが実行され、第2モードが実行されていない場合)には、S7にてNoに進み、読取モードを第2モードに設定する処理を行う(S8)。そして、その設定された第2モードで後述の撮像処理(S3)、デコード処理(S4)を行うことになる。   On the other hand, if the decoding process in S4 has failed, the process proceeds to No in S5, and it is determined whether or not both modes (first mode and second mode) have been executed (S7). At this time, if both modes are not executed (that is, only the first mode is executed and the second mode is not executed), the process proceeds to No in S7, and the reading mode is set to the second mode. (S8). Then, an imaging process (S3) and a decoding process (S4) described later are performed in the set second mode.

次に、第1モードでデコード処理が失敗し、第2モードに再設定して撮像処理、デコード処理を行う場合について、図4〜図8等を参照して詳述する。
図4は、カラー表示装置に表示されるバーコード(情報コード)を読取対象とする場合を説明する説明図である。また、図5では、上段にローパスフィルタ回路31で変換された明色領域の波形を概念的に示し、下段にその二値データを概念的に示しており、(a)は、第1の周波数f1で受光センサ26が駆動される場合を示し、(b)は、第2の周波数で受光センサ26が駆動される場合を示している。また、図6は、液晶表示装置に表示されるバーコードを撮像したときの受光信号を例示しており、(a)は、第1の周波数f1で受光センサ26が駆動される場合を示し、(b)は、第2の周波数で受光センサ26が駆動される場合を示している。なお、図6(b)は、図6(a)と同一対象を撮像した場合を示しており、図6(a)(b)共に、横軸を時間とし、縦軸を電圧として受光信号の波形を示し、(a)と(b)では、横軸の時間のスケール(1目盛り当たりの時間)を同じとしている。また、図7(a)には、図6(a)の受光信号をローパスフィルタ回路31で変換した信号を示しており、図7(b)には、図7(a)の信号を二値化回路33にて所定の閾値に基づいて二値化した信号を示している。更に、図8(a)には、図6(b)の受光信号をローパスフィルタ回路31で変換した信号を示しており、図8(b)には、図8(a)の信号を二値化回路33にて所定の閾値に基づいて二値化した信号を示している。図7、図8でも、横軸を時間とし、縦軸を電圧として信号波形を示しており、図7(a)(b)、図8(a)(b)は、いずれも横軸の時間のスケール(1目盛り当たりの時間)を同じとしている。
Next, the case where the decoding process fails in the first mode and the imaging process and the decoding process are performed after resetting to the second mode will be described in detail with reference to FIGS.
FIG. 4 is an explanatory diagram for explaining a case where a barcode (information code) displayed on the color display device is to be read. FIG. 5 conceptually shows the waveform of the bright color region converted by the low-pass filter circuit 31 in the upper stage, conceptually shows the binary data in the lower stage, and (a) shows the first frequency. The case where the light receiving sensor 26 is driven by f1 is shown, and (b) shows the case where the light receiving sensor 26 is driven at the second frequency. FIG. 6 illustrates a light reception signal when a bar code displayed on the liquid crystal display device is imaged. FIG. 6A illustrates a case where the light reception sensor 26 is driven at the first frequency f1. (B) shows a case where the light receiving sensor 26 is driven at the second frequency. FIG. 6B shows a case where the same object as that in FIG. 6A is imaged. In both FIGS. 6A and 6B, the horizontal axis represents time and the vertical axis represents voltage. Waveforms are shown, and the horizontal scale of time (time per division) is the same in (a) and (b). 7A shows a signal obtained by converting the received light signal of FIG. 6A by the low-pass filter circuit 31, and FIG. 7B shows the binary signal of FIG. 7A. A signal binarized by the digitizing circuit 33 based on a predetermined threshold is shown. Further, FIG. 8A shows a signal obtained by converting the received light signal of FIG. 6B by the low-pass filter circuit 31, and FIG. 8B shows the binary signal of FIG. 8A. A signal binarized by the digitizing circuit 33 based on a predetermined threshold is shown. 7 and 8 also show signal waveforms with the horizontal axis representing time and the vertical axis representing voltage, and FIGS. 7A, 7B, and 8A, 8B all show time on the horizontal axis. The scale (time per division) is the same.

第1モードでデコード処理が失敗したときに、第2モードに再設定した上で、再度、撮像処理、デコード処理を行うべき場合としては、例えば図4のように、携帯電話機等の携帯側情報端末(携帯端末)に設けられた液晶表示装置100に表示されるバーコードBを読み取る場合などが考えられる。この液晶表示装置100は、図10と同様に、R画素Ra、G画素Ga、B画素Baの組み合わせによって構成される表示画素Saを複数配列してなるものであり、上述したように光学フィルタ28において、G画素Ga及びB画素Baから発せられる光の通過が、R画素から発せられる光の通過よりも抑制されてしまう(図4も参照)。   When the decoding process fails in the first mode, the second mode is reset and the imaging process and decoding process should be performed again. For example, as shown in FIG. The case where the barcode B displayed on the liquid crystal display device 100 provided in the terminal (mobile terminal) is read can be considered. Similar to FIG. 10, the liquid crystal display device 100 is configured by arranging a plurality of display pixels Sa configured by a combination of the R pixel Ra, the G pixel Ga, and the B pixel Ba, and as described above, the optical filter 28. , The passage of light emitted from the G pixel Ga and the B pixel Ba is suppressed more than the passage of light emitted from the R pixel (see also FIG. 4).

このような場合、図4下段、図6(a)に示すように、受光センサ26から出力される明色領域の波形(符号WA1参照)において、暗色を示す信号がノイズとして含まれてしまい、ローパスフィルタ回路31に入力させたとしても、当該明色領域の波形の周波数が低いため、図5(a)上段及び図7(a)において符号WA2に示すように、ノイズを減衰させることができず、ノイズの除去が不十分となってしまう。その結果、図5(a)下段及び図7(b)において符号WA3に示すように、明色領域の一部が暗色領域として認識されてしまうことになり、これによりデコード不良が生じることになる。   In such a case, as shown in the lower part of FIG. 4 and FIG. 6A, in the waveform of the bright color region output from the light receiving sensor 26 (see WA1), a signal indicating a dark color is included as noise, Even if it is input to the low-pass filter circuit 31, since the frequency of the waveform in the light color region is low, noise can be attenuated as indicated by reference numeral WA2 in the upper part of FIG. 5 (a) and FIG. 7 (a). Therefore, noise removal is insufficient. As a result, a part of the bright color area is recognized as a dark color area as shown by reference numeral WA3 in the lower part of FIG. 5A and FIG. 7B, and this causes a decoding defect. .

本実施形態では、このようなデコード不良が生じた場合、図2に示すように、S8にて第2モードに設定し、その第2モードにおいてS3の撮像処理を実行している。この第2モードの撮像処理では、制御回路40から受光センサ26に対し、第2の周波数f2に設定されたパルス信号(駆動信号)が与えられることになる(図3(b)参照)。従って、液晶表示装置100に表示されるバーコードB(読取対象コード)から発せられる光に応じた受光信号が、第2の周波数f2に対応する速度で出力され、第1の周波数f1のときよりも短い時間で全受光素子の信号が出力されることになる。   In the present embodiment, when such a decoding failure occurs, as shown in FIG. 2, the second mode is set in S8, and the imaging process of S3 is executed in the second mode. In this second mode imaging process, the control circuit 40 gives a pulse signal (drive signal) set to the second frequency f2 to the light receiving sensor 26 (see FIG. 3B). Accordingly, a light reception signal corresponding to the light emitted from the bar code B (read target code) displayed on the liquid crystal display device 100 is output at a speed corresponding to the second frequency f2, and from the time of the first frequency f1. The signals of all the light receiving elements are output in a short time.

図6(a)(b)に示すように、第1の周波数f1のときに、受光センサ26の一部の信号出力に時間T1を要する場合であっても、第2の周波数f2のときにはこれよりも短い時間T2で当該一部の信号出力を行うことができ、第2の周波数f2のときのほうが、受光信号全体として周波数が高められることになる。従って、図6(b)において符号WB1に示すように、明色領域の波形(暗色と認識されるノイズを含んだ波形)の周波数も、第1モードの場合(図6(a)の符号WA1)と比較して高くなり、図5(b)上段及び図8(a)において符号WB2に示すように、当該明色領域の波形においてノイズを減衰させ、ノイズを除去できるようになる。その結果、図5(b)下段及び図8(b)において符号WB3に示すように、二値データにおいて、明色領域となるべき領域が正確に明色領域に相当する値を示すこととなり、ひいては、デコード不良を効果的に解消できることとなる。   As shown in FIGS. 6 (a) and 6 (b), even when the time T1 is required for the signal output of a part of the light receiving sensor 26 at the first frequency f1, this is the case at the second frequency f2. The partial signal output can be performed in a shorter time T2, and the frequency of the received light signal as a whole is increased at the second frequency f2. Accordingly, as indicated by reference numeral WB1 in FIG. 6B, the frequency of the waveform in the light color region (the waveform including noise recognized as a dark color) is also the case of the first mode (reference numeral WA1 in FIG. 6A). ), And as shown by reference numeral WB2 in the upper part of FIG. 5B and FIG. 8A, the noise can be attenuated and the noise can be removed. As a result, as indicated by reference numeral WB3 in the lower part of FIG. 5 (b) and FIG. 8 (b), in the binary data, the region to be the light color region accurately indicates a value corresponding to the light color region. As a result, the decoding failure can be effectively eliminated.

なお、本実施形態では、制御回路40が、図2の処理を実行するプログラムに基づいて、第1モード及び第2モードの設定順序を定めており、制御回路40及び当該プログラムが「モード順序規定手段」の一例に相当している。そして、「モード切替手段」として機能する制御回路40は、上記プログラムで規定された順序に従い、第1モード(第1の周波数f1の駆動信号を用いるモード)を「先のモード」として設定し、当該第1モードに設定された状態で行われたデコード処理が失敗した場合に、第2のモード(第2の周波数f2の駆動信号を用いるモード)に設定変更している。   In the present embodiment, the control circuit 40 determines the setting order of the first mode and the second mode based on the program that executes the processing of FIG. It corresponds to an example of “means”. Then, the control circuit 40 functioning as the “mode switching unit” sets the first mode (the mode using the drive signal of the first frequency f1) as the “previous mode” according to the order defined by the program, When the decoding process performed in the state set to the first mode fails, the setting is changed to the second mode (the mode using the drive signal of the second frequency f2).

(本実施形態の主な効果)
本実施形態に係る光学的情報読取装置1では、照明光に対応する所定周波数帯の光を通過させ、所定周波数帯以外の光の通過を抑制する光学フィルタ28が設けられており、読取対象コードからの反射光を光学フィルタ28を介して受光センサ26によって受光する構成をなしている。このようにすることで、照明光が読取対象コードにて反射した反射光以外の外乱光を効果的に除去することができる。
一方、このような構成とすると、カラー表示装置に表示される情報コードを読取対象コードとした場合に、明色パターンを表示する領域の一部画素(光学フィルタによって抑制される光を発する画素)からの光が光学フィルタ28によって抑制されてしまい、受光信号における明色パターン部分の波形に暗色を示す波形成分がノイズとして含まれてしまうことが懸念される。
これに対し、本実施形態では、第1モードに設定された場合に、駆動信号の周波数を第1の周波数f1に設定し、第2モードに設定された場合に、駆動信号の周波数を第1の周波数f1よりも大きい第2の周波数f2に設定変更している。そして、第1の周波数f1の駆動信号が出力される場合には、読取対象コードからの反射光に応じた受光信号を、第1の周波数f1に対応する速度で出力し、第2の周波数f2の駆動信号が出力される場合には、第2の周波数f2に対応する速度で出力している。
このようにすると、カラー表示装置に表示される情報コードが読取対象とされ、明色パターン領域の波形に暗色を示す波形成分がノイズとして含まれるような場合に、第2の周波数f2で受光センサ26を駆動して、明色パターン領域の波形(明色を示す正常信号と暗色を示すノイズとを含んだ明暗交互信号の波形)の周波数を相対的に高めることができる。これにより、受光信号をローパスフィルタ回路31に入力させたときに、明色パターン領域の信号の減衰度合いが大きくなり、当該明色パターン領域の信号に含まれる暗色を示すノイズを効果的に除去することができる。
一方、必要に応じて第1の周波数f1で受光センサを駆動することができるため、紙媒体に付された情報コードを読み取る場合等、明色パターン領域の誤認識がなされにくい場合(即ち、明色パターン領域の受光信号に暗色を示すノイズが含まれにくい場合)には、駆動周波数を低く抑え、より細かな読み取りに有利な設定とすることができる。
(Main effects of this embodiment)
In the optical information reading apparatus 1 according to the present embodiment, an optical filter 28 that allows light in a predetermined frequency band corresponding to illumination light to pass and suppresses light other than the predetermined frequency band is provided. The reflected light from the light is received by the light receiving sensor 26 through the optical filter 28. By doing in this way, disturbance light other than the reflected light which illumination light reflected in the reading object code | cord | chord can be removed effectively.
On the other hand, with such a configuration, when the information code displayed on the color display device is the code to be read, a part of pixels in the area displaying the bright color pattern (pixels that emit light suppressed by the optical filter) There is a concern that the light from the light is suppressed by the optical filter 28, and the waveform component indicating the dark color is included as noise in the waveform of the bright color pattern portion in the light reception signal.
In contrast, in this embodiment, when the first mode is set, the frequency of the drive signal is set to the first frequency f1, and when the second mode is set, the frequency of the drive signal is set to the first frequency. The setting is changed to the second frequency f2, which is larger than the frequency f1. When the drive signal having the first frequency f1 is output, a light reception signal corresponding to the reflected light from the reading target code is output at a speed corresponding to the first frequency f1, and the second frequency f2 is output. Is output at a speed corresponding to the second frequency f2.
In this case, when the information code displayed on the color display device is to be read, and the waveform component indicating the dark color is included as noise in the waveform of the bright color pattern region, the light receiving sensor at the second frequency f2. 26 can be driven to relatively increase the frequency of the waveform of the bright color pattern region (the waveform of the bright and dark alternating signal including the normal signal indicating the bright color and the noise indicating the dark color). Thereby, when the received light signal is input to the low-pass filter circuit 31, the degree of attenuation of the signal in the light color pattern region increases, and noise indicating the dark color included in the signal in the light color pattern region is effectively removed. be able to.
On the other hand, since it is possible to drive the light receiving sensor at the first frequency f1 as necessary, it is difficult to erroneously recognize the bright color pattern area, such as when reading an information code attached to a paper medium (that is, bright In the case where it is difficult for the received light signal in the color pattern area to contain dark-colored noise), the driving frequency can be suppressed to a setting that is advantageous for finer reading.

また、読み取りの対象となるカラー表示装置が、R画素Ra、Ga画素、Ba画素の組み合わせによって構成される表示画素Saを複数配列した構成をなしている。このように様々な場所で広く用いられるRGB方式のカラー表示装置を読取対象物として当該カラー表示装置に表示される情報コードを読取対象コードとし、このような情報コードを良好に読み取りうる構成とすることで、ユーザの利便性を高めることができる。   Further, the color display device to be read has a configuration in which a plurality of display pixels Sa configured by a combination of R pixel Ra, Ga pixel, and Ba pixel are arranged. In this way, an RGB color display device widely used in various places is used as a reading object, and an information code displayed on the color display device is used as a reading object code, and such an information code can be read satisfactorily. Thus, the convenience for the user can be improved.

具体的には、様々な場所に携帯されて利用される携帯端末を読取対象物として当該携帯端末に表示される情報コードを読取対象コードとしており、このような情報コードを良好に読み取りうる構成とすることで、ユーザの利便性を一層高めることができる。   Specifically, a mobile terminal that is carried and used in various places is used as an object to be read, and an information code displayed on the mobile terminal is used as a read target code, and such an information code can be satisfactorily read. By doing so, user convenience can be further enhanced.

また、本実施形態に係る光学的情報読取装置1は、第1モード及び第2モードの設定順序を定める「モード順序規定手段」を備えており、この「モード順序規定手段」によって規定された順序に従い、第1モード及び第2モードのいずれか一方を先のモードとして設定し、当該先のモードに設定された状態で行われたデコード処理が失敗した場合に、他方に設定変更している。このようにすると、一方のモードでデコード処理が失敗した場合に、迅速且つスムーズに他方のモードに切り替えて、当該他方のモードでデコード処理を再度実行することができ、ユーザに特別な負担を強いることなくデコードの成功確率を効果的に高めることができる。   Further, the optical information reading apparatus 1 according to the present embodiment includes “mode order defining means” that determines the setting order of the first mode and the second mode, and the order defined by the “mode order defining means”. Accordingly, one of the first mode and the second mode is set as the previous mode, and when the decoding process performed in the state set in the previous mode fails, the setting is changed to the other mode. In this way, when the decoding process fails in one mode, it is possible to quickly and smoothly switch to the other mode and execute the decoding process again in the other mode, which imposes a special burden on the user. Therefore, it is possible to effectively increase the decoding success probability.

[第2実施形態]
次に、図9を参照して第2実施形態について説明する。図9は、本実施形態に係る光学的情報読取装置で行われる読取処理の流れを例示するフローチャートである。
[Second Embodiment]
Next, a second embodiment will be described with reference to FIG. FIG. 9 is a flowchart illustrating the flow of reading processing performed by the optical information reading apparatus according to this embodiment.

なお、本実施形態では、読取処理における読取モードの設定方法のみが第1実施形態と異なり、それ以外は第1実施形態と同様である。例えば、図1、図3〜図8に基づく説明は、第1実施形態と同様であるため、適宜これらの図を参照することとする。また、読取処理についても、図9のS21の処理は、図2のS1と同様であり、図9の読取処理で行われる各モードでのS25の撮像処理、S26のデコード処理は、第1実施形態で説明した各モードでのS3の撮像処理、S4のデコード処理とそれぞれ同様である。よってこれらの詳細については説明を省略する。   In the present embodiment, only the reading mode setting method in the reading process is different from that of the first embodiment, and other than that is the same as that of the first embodiment. For example, the description based on FIGS. 1 and 3 to 8 is the same as that of the first embodiment, and therefore, these drawings will be referred to as appropriate. As for the reading process, the process of S21 of FIG. 9 is the same as S1 of FIG. 2, and the imaging process of S25 and the decoding process of S26 in each mode performed in the reading process of FIG. This is the same as the imaging process in S3 and the decoding process in S4 in each mode described in the embodiment. Therefore, description of these details is omitted.

本実施形態では、第1モード又は第2モードにてデコード処理が行われたときのデコード結果を当該デコード処理が行われたモードと対応付けてメモリ35(メモリ35は「記憶手段」の一例に相当する)に記憶しており、このメモリ35の記憶内容に基づき、第1モード及び第2モードの内、デコード処理が前回成功したモードを優先的に設定することを特徴としている。なお、本実施形態では、図9のプログラム及び制御回路40が「モード順序規定手段」の一例に相当する。   In this embodiment, the decoding result when the decoding process is performed in the first mode or the second mode is associated with the mode in which the decoding process is performed, and the memory 35 (the memory 35 is an example of “storage means”). In the first mode and the second mode, the mode in which the decoding process was successful last time is preferentially set based on the stored contents of the memory 35. In the present embodiment, the program and control circuit 40 in FIG. 9 corresponds to an example of “mode order defining means”.

具体的には、図9に示すように、S21にて照明光源20を駆動した後、メモリ35の記憶内容を確認し、前回の読取成功モードが「第2モード」か否かを確認する。本実施形態では、メモリ35において前回の成功モードが第1モード及び第2モードのいずれであるかを記憶しており、S22ではこれを参照して判断処理を行う。前回の読取成功モードが第2モードでない場合には、S22にてNoに進み、「第1モード」に設定(又は第1モードの設定を維持)する(S23)。   Specifically, as shown in FIG. 9, after the illumination light source 20 is driven in S21, the stored contents of the memory 35 are confirmed, and it is confirmed whether or not the previous successful reading mode is the “second mode”. In the present embodiment, the memory 35 stores whether the previous successful mode is the first mode or the second mode, and the determination process is performed with reference to this in S22. If the previous successful reading mode is not the second mode, the process proceeds to No in S22, and is set to “first mode” (or maintains the setting of the first mode) (S23).

S23にて第1モードに設定された場合には、当該第1モードのときに第1実施形態で行われた撮像処理(S3)、デコード処理(S4)と同様の撮像処理(S25)、デコード処理(S26)を行う。そして、デコード処理が成功した場合には、S27にてYesに進んでデコード結果を出力し(S28)、その成功したモード(第1モード)を前回成功モードとして記憶する(S29)。一方、デコード処理が失敗した場合(例えば、第1実施形態で説明したように液晶表示装置100のバーコードを読取対象コードとしてデコードが失敗したような場合)には、S27にてNoに進み、両モードが実行済みか否かを判断する(S30)。第2モードが実行されていない場合には、S30にてNoに進み、他方の第2モードに設定変更した後(S31)、S23の撮像処理、S26のデコード処理を行う。   When the first mode is set in S23, the same imaging process (S25) and decoding as the imaging process (S3) and decoding process (S4) performed in the first embodiment in the first mode. Processing (S26) is performed. If the decoding process is successful, the process proceeds to Yes in S27 to output a decoding result (S28), and the successful mode (first mode) is stored as the previous successful mode (S29). On the other hand, when the decoding process has failed (for example, when decoding using the barcode of the liquid crystal display device 100 as a reading target code as described in the first embodiment), the process proceeds to No in S27. It is determined whether or not both modes have been executed (S30). If the second mode is not executed, the process proceeds to No in S30, and after changing the setting to the other second mode (S31), the imaging process in S23 and the decoding process in S26 are performed.

一方、S22にて前回の読取成功モードが「第2モード」と判断された場合には、S22にてYesに進み、読取モードを「第2モード」に設定する(S24)。そして、第2モードのときに第1実施形態で行われた撮像処理(S3)、デコード処理(S4)と同様の撮像処理(S25)、デコード処理(S26)を行う。そして、デコード処理が成功した場合には、S27にてYesに進んでデコード結果を出力し(S28)、その成功したモード(第2モード)を前回成功モードとして記憶する(S29)。一方、デコード処理が失敗した場合には、S27にてNoに進み、両モードが実行済みか否かを判断する(S30)。この場合、第1モードが実行されていない場合には、S30にてNoに進み、他方の第1モードに設定変更した後(S31)、S23の撮像処理、S26のデコード処理を行う。   On the other hand, if it is determined in S22 that the previous successful reading mode is “second mode”, the process proceeds to Yes in S22, and the reading mode is set to “second mode” (S24). Then, imaging processing (S25) and decoding processing (S26) similar to the imaging processing (S3) and decoding processing (S4) performed in the first embodiment in the second mode are performed. If the decoding process is successful, the process proceeds to Yes in S27 to output a decoding result (S28), and the successful mode (second mode) is stored as the previous successful mode (S29). On the other hand, if the decoding process has failed, the process proceeds to No in S27 to determine whether or not both modes have been executed (S30). In this case, when the first mode is not executed, the process proceeds to No in S30, and after changing the setting to the other first mode (S31), the imaging process of S23 and the decoding process of S26 are performed.

第2実施形態の光学的情報読取装置では、第1モード又は第2モードにてデコード処理が行われたときのデコード結果を当該デコード処理が行われたモードと対応付けて記憶可能なメモリ35(記憶手段)が設けられ、メモリ35(記憶手段)の記憶内容に基づき、第1モード及び第2モードの内、デコード処理が前回成功したモードを優先的に設定している。デコード処理が前回成功したモードは他方のモードと比較してデコード処理が成功する可能性が高く、このモードを優先的に設定する構成とすれば、デコード処理の成功確率を効果的に高めることができ、読取処理の迅速化を図ることができる。   In the optical information reading apparatus according to the second embodiment, a memory 35 that can store the decoding result when the decoding process is performed in the first mode or the second mode in association with the mode in which the decoding process is performed ( Storage means) is provided, and based on the storage contents of the memory 35 (storage means), the mode in which the decoding process was last successful is preferentially set out of the first mode and the second mode. The mode in which the decoding process was successful last time is more likely to succeed in the decoding mode than the other mode, and if this mode is set with priority, the success probability of the decoding process can be effectively increased. The reading process can be speeded up.

[他の実施形態]
本発明は上記記述及び図面によって説明した実施形態に限定されるものではなく、例えば次のような実施形態も本発明の技術的範囲に含まれる。
[Other Embodiments]
The present invention is not limited to the embodiments described with reference to the above description and drawings. For example, the following embodiments are also included in the technical scope of the present invention.

上記実施形態では、受光センサ26がラインセンサ(一次元センサ)として構成される例を代表例として示したが、二次元センサとして構成される場合であっても同様に適用できる。   In the above embodiment, an example in which the light receiving sensor 26 is configured as a line sensor (one-dimensional sensor) has been shown as a representative example.

上記実施形態では、赤色の照明光を発する照明光源20を設け、且つ赤色に相当する所定周波数帯の光を選択的に通過する光学フィルタ28を設けた例を示したが、この構成に限定されない。例えば、他の色(緑色、青色等)の照明光を発する照明光源を設け、当該他の色を選択的に透過する光学フィルタを設けるようにしてもよい。   In the above-described embodiment, an example in which the illumination light source 20 that emits red illumination light is provided and the optical filter 28 that selectively passes light in a predetermined frequency band corresponding to red is provided. However, the present invention is not limited to this configuration. . For example, an illumination light source that emits illumination light of other colors (green, blue, etc.) may be provided, and an optical filter that selectively transmits the other colors may be provided.

上記実施形態では、制御回路40から受光センサ26に与えられるセンサ駆動信号の周波数を2段階に切り替えうる構成を例示したが、3段階以上に切り替えうる構成であってもよい。   In the above-described embodiment, the configuration in which the frequency of the sensor drive signal supplied from the control circuit 40 to the light receiving sensor 26 can be switched in two stages is exemplified.

上記実施形態では、カラー表示装置として液晶表示装置100(図4)を例示したが、ELディスプレイ等の他のカラー表示装置に表示される情報コードを読取対象コードとしてもよい。   In the above embodiment, the liquid crystal display device 100 (FIG. 4) is exemplified as the color display device. However, an information code displayed on another color display device such as an EL display may be used as a reading target code.

1…光学的情報読取装置
20・・・照明光源(照明手段)
26・・・受光センサ
28・・・光学フィルタ
31・・・ローパスフィルタ回路
33・・・二値化回路(二値化手段)
35・・・メモリ(記憶手段)
40・・・制御回路(センサ駆動回路、デコード手段、モード切替手段、モード順序規定手段)
100・・・カラー表示装置
Ra・・・R画素
Ga・・・G画素
Ba・・・B画素
Sa・・・表示画素
DESCRIPTION OF SYMBOLS 1 ... Optical information reader 20 ... Illumination light source (illumination means)
26... Light receiving sensor 28... Optical filter 31 .. Low pass filter circuit 33... Binarization circuit (binarization means)
35 ... Memory (storage means)
40... Control circuit (sensor drive circuit, decoding means, mode switching means, mode order defining means)
DESCRIPTION OF SYMBOLS 100 ... Color display apparatus Ra ... R pixel Ga ... G pixel Ba ... B pixel Sa ... Display pixel

Claims (6)

カラー表示装置に表示された情報コード及び物体に付された情報コードを読取対象コードとして読取可能な光学的情報読取装置であって、
前記読取対象コードに対して照明光を照射する照明手段と、
前記照明光に対応する所定周波数帯の光を通過させ、前記所定周波数帯以外の光の通過を抑制する光学フィルタと、
前記読取対象コードからの反射光を前記光学フィルタを介して受光し、前記反射光に応じた受光信号を出力する受光センサと、
前記受光センサに対し、設定された周波数の駆動信号を出力するセンサ駆動回路と、
前記受光センサから出力された前記受光信号が入力される構成をなし、規定のカットオフ周波数の以上の周波数の信号を抑制するローパスフィルタ回路と、
前記ローパスフィルタ回路から出力される前記受光信号を二値化する二値化手段と、
前記二値化手段にて生成された二値化信号に基づいてデコード処理を行うデコード手段と、
第1モードと第2モードとに設定変更可能なモード切替手段と、
を備え、
前記センサ駆動回路は、前記モード切替手段によって前記第1モードに設定された場合に、前記駆動信号の周波数を第1の周波数に設定し、前記第2モードに設定された場合に、前記駆動信号の周波数を前記第1の周波数よりも大きい第2の周波数に設定変更する構成をなし、
前記受光センサは、前記センサ駆動回路から前記第1の周波数の前記駆動信号が出力される場合に、前記読取対象コードからの前記反射光に応じた前記受光信号を、前記第1の周波数に対応する速度で出力し、前記第2の周波数の前記駆動信号が出力される場合には、前記反射光に応じた前記受光信号を、前記第2の周波数に対応する速度で出力することを特徴とする光学的情報読取装置。
An optical information reading device capable of reading an information code displayed on a color display device and an information code attached to an object as a reading target code,
Illuminating means for illuminating the reading target code with illumination light;
An optical filter that transmits light in a predetermined frequency band corresponding to the illumination light and suppresses light other than the predetermined frequency band; and
A light receiving sensor that receives reflected light from the reading target code via the optical filter and outputs a light receiving signal corresponding to the reflected light;
A sensor driving circuit that outputs a driving signal of a set frequency to the light receiving sensor;
A low-pass filter circuit configured to receive the light reception signal output from the light reception sensor, and to suppress a signal having a frequency equal to or higher than a predetermined cutoff frequency;
Binarization means for binarizing the received light signal output from the low-pass filter circuit;
Decoding means for performing decoding processing based on the binarized signal generated by the binarization means;
Mode switching means capable of changing the setting between the first mode and the second mode;
With
The sensor drive circuit sets the frequency of the drive signal to the first frequency when set to the first mode by the mode switching means, and the drive signal when set to the second mode. The frequency is set to a second frequency that is higher than the first frequency.
The light receiving sensor responds to the first frequency with respect to the light receiving signal corresponding to the reflected light from the code to be read when the driving signal having the first frequency is output from the sensor driving circuit. When the drive signal having the second frequency is output, the light reception signal corresponding to the reflected light is output at a speed corresponding to the second frequency. An optical information reader.
前記カラー表示装置は、R画素、G画素、B画素の組み合わせによって構成される表示画素を複数配列してなるものであることを特徴とする請求項1に記載の光学的情報読取装置。   2. The optical information reading apparatus according to claim 1, wherein the color display device is formed by arranging a plurality of display pixels configured by combinations of R pixels, G pixels, and B pixels. 前記照明手段は、赤色の前記照明光を照射する構成をなし、
前記光学フィルタは、G画素及びB画素から発せられる光の通過を、R画素から発せられる光の通過よりも抑制するものであることを特徴とする請求項2に記載の光学的情報読取装置。
The illumination means is configured to irradiate the red illumination light,
The optical information reading apparatus according to claim 2, wherein the optical filter suppresses passage of light emitted from the G pixel and B pixel rather than passage of light emitted from the R pixel.
前記カラー表示装置は、携帯端末に設けられた表示装置であることを特徴とする請求項1から請求項3のいずれか一項に記載の光学的情報読取装置。   The optical information reader according to claim 1, wherein the color display device is a display device provided in a mobile terminal. 前記第1モード及び前記第2モードの設定順序を定めるモード順序規定手段を備え、
前記モード切替手段は、前記モード順序規定手段によって規定された順序に従い、前記第1モード及び前記第2モードのいずれか一方を先のモードとして設定し、当該先のモードに設定された状態で行われた前記デコード処理が失敗した場合に、他方に設定変更することを特徴とする請求項1から請求項4のいずれか一項に記載の光学的情報読取装置。
A mode order defining means for determining a setting order of the first mode and the second mode;
The mode switching means sets one of the first mode and the second mode as the previous mode according to the order defined by the mode order defining means, and performs the operation in the state set to the previous mode. 5. The optical information reading apparatus according to claim 1, wherein, when the decoded processing fails, the setting is changed to the other. 6.
前記第1モード又は前記第2モードにて行われた前記デコード処理の結果を当該デコード処理が行われたモードと対応付けて記憶可能な記憶手段を備え、
前記モード順序規定手段は、前記記憶手段の記憶内容に基づき、前記第1モード及び前記第2モードの内、前記デコード処理が前回成功したモードを優先的に設定することを特徴とする請求項5に記載の光学的情報読取装置。
Storage means capable of storing the result of the decoding process performed in the first mode or the second mode in association with the mode in which the decoding process is performed;
6. The mode order defining means preferentially sets a mode in which the decoding process has been successful last time out of the first mode and the second mode based on the stored contents of the storage means. An optical information reading device described in 1.
JP2009175197A 2009-07-28 2009-07-28 Optical information reader Expired - Fee Related JP5168245B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2009175197A JP5168245B2 (en) 2009-07-28 2009-07-28 Optical information reader

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2009175197A JP5168245B2 (en) 2009-07-28 2009-07-28 Optical information reader

Publications (2)

Publication Number Publication Date
JP2011028617A JP2011028617A (en) 2011-02-10
JP5168245B2 true JP5168245B2 (en) 2013-03-21

Family

ID=43637266

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2009175197A Expired - Fee Related JP5168245B2 (en) 2009-07-28 2009-07-28 Optical information reader

Country Status (1)

Country Link
JP (1) JP5168245B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105844199A (en) * 2016-03-30 2016-08-10 乐视控股(北京)有限公司 Method and device for determining aiming positions of game guns on display screen

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002207959A (en) * 2001-01-12 2002-07-26 Matsushita Electric Ind Co Ltd Optical information reader
JP3675398B2 (en) * 2001-04-24 2005-07-27 松下電器産業株式会社 Optical information reader

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105844199A (en) * 2016-03-30 2016-08-10 乐视控股(北京)有限公司 Method and device for determining aiming positions of game guns on display screen

Also Published As

Publication number Publication date
JP2011028617A (en) 2011-02-10

Similar Documents

Publication Publication Date Title
JP4058529B2 (en) Optical information reader
EP3040906B1 (en) Visual feedback for code readers
CN104054090B (en) Bar code shown on decoding cellular phone
JP4186915B2 (en) Optical information reader
JP4059173B2 (en) Optical information reading apparatus and optical information reading method
JP2006209208A (en) Optical information reading device
JP4325602B2 (en) Optical information reader
JP5168245B2 (en) Optical information reader
JP2011197856A (en) Optical information reading device
US20060138234A1 (en) Methods and apparatus for improving direct part mark scanner performance
US11531826B2 (en) Systems and methods for user choice of barcode scanning range
JP2007034546A (en) Optical reader
JP2004110670A (en) Information code reader
US8960550B2 (en) Minimizing misdecodes in electro-optical readers
JP4650138B2 (en) Optical information reader
JP5888199B2 (en) Bar code reader
JP2011008574A (en) Optical information reader
JP4258523B2 (en) Optical information reader
JP5195264B2 (en) Bar code reading method and bar code reading apparatus
US11334964B2 (en) Color image processing on the fly for bar code readers
JP5282559B2 (en) Information code reader
JP2018136858A (en) Optical information reader
JP2010097453A (en) Optical information reading apparatus
JP4082321B2 (en) Optical information reader
JP2009294769A (en) Optical information reader

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20110822

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20121108

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20121127

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20121210

R150 Certificate of patent or registration of utility model

Ref document number: 5168245

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20160111

Year of fee payment: 3

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

LAPS Cancellation because of no payment of annual fees