JP2011197856A - Optical information reading device - Google Patents

Optical information reading device Download PDF

Info

Publication number
JP2011197856A
JP2011197856A JP2010061980A JP2010061980A JP2011197856A JP 2011197856 A JP2011197856 A JP 2011197856A JP 2010061980 A JP2010061980 A JP 2010061980A JP 2010061980 A JP2010061980 A JP 2010061980A JP 2011197856 A JP2011197856 A JP 2011197856A
Authority
JP
Japan
Prior art keywords
light
predetermined
area
color
pixel
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
JP2010061980A
Other languages
Japanese (ja)
Inventor
Hironobu Ando
浩展 安藤
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 JP2010061980A priority Critical patent/JP2011197856A/en
Publication of JP2011197856A publication Critical patent/JP2011197856A/en
Pending legal-status Critical Current

Links

Images

Abstract

PROBLEM TO BE SOLVED: To provide an optical information reading device, accurately reading by suppressing incorrect recognition produced by a situation particular to a color display device, even when an information code displayed on the color display device becomes a reading target.SOLUTION: An optical information reading device 1 includes an optical filter 28 for passing light, having a predetermined frequency band corresponding to illumination light, and for suppressing the passing of light other than the predetermined frequency band. By means of a light receiving sensor 26, the optical information reading device 1 receives reflected light taken in from the read target code through the optical filter 28. Further, based on a received light waveform in a predetermined direction (element disposition direction) in the light receiving sensor 26, the optical information reading device 1 generates a binary data identifying bright color regions and dark color regions in the predetermined direction, and generates a correction data, having a correction region of a predetermined width added to each bright color region in the generated binary data, corresponding to an pixel element on which a display light is suppressed by the optical filter 28.

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.

例えば、図7のように、R画素Ra,G画素Ga、B画素Ba(サブピクセル)が組み合わされて一つの表示画素Sa(ピクセル)が構成され、このような表示画素Saが複数配列されてなる液晶表示装置の場合、ある表示画素Saで白色を表示するときには、実際には、R画素Ra,G画素Ga、B画素Ba(サブピクセル)をそれぞれ発光させることで視覚的に白色と認識しうる光を発生させている。このような液晶表示装置に表示される明暗コードを撮像する場合、図8(A)のように、R画素Raについては当該R画素Raからの発生する赤色光が光学フィルタFを通過するため、明色領域として認識されることとなる。しかしながら、G画素Ga、B画素Baについては、これら画素からの緑色光、青色光が光学フィルタFによって抑制されるため、図8(A)下段のように受光センサでの受光量が抑えられてしまい、本来的には図8(C)のように明色領域として認識されるべき領域であるはずなのに、図8(B)のように暗色領域として誤認識されてしまう。このような誤認識がなされると、情報コードの各明色領域のサイズを適切に認識できなくなり、情報コード全体のデコード不良を招いてしまうことになる。   For example, as shown in FIG. 7, 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 white is displayed on a certain display pixel Sa, actually, the R pixel Ra, the G pixel Ga, and the B pixel Ba (sub-pixel) are each made to emit light and visually recognized as white. It generates bright light. When imaging a light / dark code displayed on such a liquid crystal display device, as shown in FIG. 8A, 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, 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 as shown in the lower part of FIG. Thus, although it should be an area that should be recognized as a bright color area as shown in FIG. 8C, it is erroneously recognized as a dark color area as shown in FIG. 8B. 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 an information code displayed on a color display device and an information code attached to an object, and is particularly displayed on a color display device. An object of the present invention is to provide an optical information reader capable of accurately reading an information code with a false recognition caused by circumstances peculiar to a color display device.

請求項1の発明は、複数色の各画素要素を組み合わせた表示画素を複数配列してなるカラー表示装置に表示された情報コード及び物体に付された情報コードを読取対象コードとして読取可能な光学的情報読取装置であって、前記読取対象コードに対して照明光を照射する照明手段と、前記照明光に対応する所定周波数帯の光を通過させ、前記所定周波数帯以外の光の通過を抑制する光学フィルタと、前記読取対象コードからの反射光を前記光学フィルタを介して受光し、前記反射光に応じた受光信号を出力する受光センサと、前記受光センサにおける所定方向の受光波形に基づき、前記所定方向における明色領域及び暗色領域を特定可能な二値データを生成する二値化手段と、前記二値化手段によって生成された前記二値データにおける各明色領域に対し、前記光学フィルタによって表示光が抑制される前記画素要素に対応した所定幅の補正領域を追加して補正データを生成する補正データ生成手段と、前記補正データ生成手段によって生成された前記補正データに基づいてデコード処理を実行可能なデコード手段と、を備えたことを特徴としている。   According to the first aspect of the present invention, there is provided an optical system capable of reading, as a reading target code, an information code displayed on a color display device formed by arranging a plurality of display pixels obtained by combining pixel elements of a plurality of colors and an information code attached to an object. And an illumination unit that irradiates illumination light to the reading target code and light in a predetermined frequency band corresponding to the illumination light, and suppresses passage of light other than the predetermined frequency band. An optical filter, a light receiving sensor that receives reflected light from the reading target code through the optical filter, and outputs a light receiving signal corresponding to the reflected light, and a light receiving waveform in a predetermined direction in the light receiving sensor, Binarization means for generating binary data capable of specifying the light color area and the dark color area in the predetermined direction; and each light value in the binary data generated by the binarization means. Correction data generating means for generating correction data by adding a correction area having a predetermined width corresponding to the pixel element whose display light is suppressed by the optical filter to the area, and the correction data generating means generated by the correction data generating means And a decoding means capable of executing a decoding process based on the correction data.

請求項2の発明は、請求項1に記載の光学的情報読取装置において、更に、前記補正データ生成手段によって前記補正データの生成を行う補正モードと、前記補正データの生成を行わない通常モードとに切り替えるモード切替手段が設けられ、前記デコード手段が、前記通常モードのときに前記二値データに基づいてデコード処理を行い、前記補正モードのときに前記補正データに基づいてデコード処理を行う構成をなし、前記モード切替手段が、前記補正モードの実行基準となる所定実行条件を満たす場合に前記補正モードに切り替えることを特徴としている。   According to a second aspect of the present invention, in the optical information reading apparatus according to the first aspect, a correction mode in which the correction data generation unit generates the correction data, and a normal mode in which the correction data is not generated. Mode switching means is provided for switching to, and the decoding means performs decoding processing based on the binary data in the normal mode and performs decoding processing based on the correction data in the correction mode. None, wherein the mode switching means switches to the correction mode when a predetermined execution condition that is an execution reference of the correction mode is satisfied.

請求項3の発明は、請求項2に記載の光学的情報読取装置において、更に、前記モード切替手段が、前記二値化手段によって生成された二値データにおいて、前記明色領域又は前記暗色領域の各長さが所定長さとなる領域、又は前記明色領域又は前記暗色領域の周期が所定周期となる領域を検出する領域検出手段を備え、前記領域検出手段によって前記所定長さ又は前記所定周期となる領域が検出されることを条件として前記補正モードに切り替えることを特徴としている。   According to a third aspect of the present invention, in the optical information reader according to the second aspect, the mode switching unit further includes the light color region or the dark color region in the binary data generated by the binarization unit. A region detecting unit that detects a region in which each length is a predetermined length, or a region in which the cycle of the light color region or the dark color region is a predetermined cycle, and the region detecting unit detects the predetermined length or the predetermined cycle. The correction mode is switched on condition that a region to be detected is detected.

請求項4の発明は、請求項3に記載の光学的情報読取装置において、更に、前記照明手段からの前記照明光を導出し、且つ前記読取対象コードからの前記反射光を取り込む読取口が設けられており、前記カラー表示装置を前記読取口に接触させた状態で前記読取対象コードを読み取るように構成されていることを特徴としている。   According to a fourth aspect of the present invention, there is provided the optical information reading device according to the third aspect, further comprising a reading port for deriving the illumination light from the illuminating means and taking in the reflected light from the code to be read. The reading target code is read while the color display device is in contact with the reading port.

請求項5の発明は、請求項3又は請求項4に記載の光学的情報読取装置において、更に、前記モード切替手段が、前記二値化手段によって生成された二値データにおいて、隣り合う前記明色領域及び前記暗色領域の幅の比率が所定比率となる領域を検出する所定比率領域検出手段を備えており、前記所定比率領域検出手段によって前記所定比率となる領域が検出されることを条件として前記補正モードに切り替えることを特徴としている。   According to a fifth aspect of the present invention, in the optical information reading device according to the third or fourth aspect of the present invention, the mode switching unit further includes the adjacent bright data in the binary data generated by the binarizing unit. Provided with a predetermined ratio area detecting means for detecting an area where the ratio of the width of the color area and the dark color area is a predetermined ratio, on condition that the predetermined ratio area detecting means detects the area having the predetermined ratio; It is characterized by switching to the correction mode.

請求項6の発明は、請求項2から請求項4のいずれか一項に記載の光学的情報読取装置において、更に、前記モード切替手段が、前記二値化手段によって生成された二値データにおいて、隣り合う前記明色領域及び前記暗色領域の幅の比率が所定比率となる領域を検出する所定比率領域検出手段を備えており、前記所定比率領域検出手段によって検出される前記所定比率領域が所定回数連続する場合に前記補正モードに切り替えることを特徴としている。   According to a sixth aspect of the present invention, in the optical information reading device according to any one of the second to fourth aspects, the mode switching unit further includes binary data generated by the binarizing unit. A predetermined ratio area detecting means for detecting an area in which the ratio of the widths of the adjacent bright color area and the dark color area is a predetermined ratio, and the predetermined ratio area detected by the predetermined ratio area detecting means is predetermined. When the number of times continues, the correction mode is switched.

請求項7の発明は、請求項1から請求項6のいずれか一項に記載の光学的情報読取装置。
において、更に、前記カラー表示装置が、R画素、G画素、B画素を所定の列方向に並べて構成される前記表示画素を、少なくとも前記列方向に複数配列した構成をなしている。
A seventh aspect of the present invention is the optical information reading device according to any one of the first to sixth aspects.
Further, the color display device has a configuration in which a plurality of the display pixels configured by arranging R pixels, G pixels, and B pixels in a predetermined column direction are arranged in at least the column direction.

請求項8の発明は、請求項7に記載の光学的情報読取装置において、更に、前記照明手段が、赤色の前記照明光を照射する構成をなし、前記光学フィルタは、G画素及びB画素から発せられる前記表示光の通過を、R画素から発せられる光の通過よりも抑制するように構成されている。   The invention according to claim 8 is the optical information reading apparatus according to claim 7, wherein the illumination means is configured to irradiate the red illumination light, and the optical filter includes G pixels and B pixels. The passage of the display light emitted is configured to be less than the passage of light emitted from the R pixel.

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

請求項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 the pixel elements in the area where the bright color pattern is displayed (light that is suppressed by the optical filter is emitted). There is a concern that light from the pixel element) is suppressed by the optical filter, and a waveform component indicating a dark color is included in the waveform of the bright color pattern portion in the light reception signal as noise.
On the other hand, in the present invention, based on the light receiving waveform in the predetermined direction in the light receiving sensor, the binarizing means generates binary data that can specify the bright color area and the dark color area in the predetermined direction, and further the correction data generating means Thus, correction data having a predetermined width corresponding to the pixel element whose display light is suppressed by the optical filter is added to each bright color area in the generated binary data to generate correction data. Then, decoding processing is performed by the decoding means based on the generated correction data.
In this way, the width of pixel elements that are suppressed by the optical filter (pixel elements that should be detected as light color areas but are detected as dark color areas by suppressing light in the optical filter) is considered. Correction data to compensate for this can be generated. Since the decoding process is performed based on the correction data, it is possible to accurately read while suppressing erroneous recognition caused by the circumstances peculiar to the color display device.

請求項2の発明では、補正データ生成手段によって補正データの生成を行う補正モードと、補正データの生成を行わない通常モードとに切り替えるモード切替手段が設けられている。そして、デコード手段は、通常モードのときには二値データに基づいてデコード処理を行い、補正モードのときには補正データに基づいてデコード処理を行う構成をなしており、モード切替手段は、補正モードの実行基準となる所定実行条件を満たす場合に補正モードに切り替えている。このようにすると、闇雲に補正データを生成するのではなく、補正モードの実行基準となる所定実行条件を満たす場合に補正データを生成するため、補正データを生成する必要のない場合には、不要な補正処理を省略することでき、処理の効率化、処理時間の短縮化を図ることができる。   According to the second aspect of the present invention, there is provided mode switching means for switching between a correction mode in which correction data is generated by the correction data generation means and a normal mode in which no correction data is generated. The decoding means is configured to perform decoding processing based on the binary data in the normal mode, and to perform decoding processing based on the correction data in the correction mode. Is switched to the correction mode when the predetermined execution condition is satisfied. In this way, the correction data is not generated in the dark clouds but is generated when the predetermined execution condition that is the execution standard of the correction mode is satisfied. Correction processing can be omitted, and processing efficiency and processing time can be shortened.

請求項3の発明では、二値化手段によって生成された二値データにおいて、明色領域又は暗色領域の各長さが所定長さとなる領域、又は明色領域又は暗色領域の周期が所定周期となる領域を検出する領域検出手段が設けられている。そして、この領域検出手段によって所定長さ又は所定周期となる領域が検出されることを条件として補正モードに切り替えている。カラー表示装置に表示される情報コードを撮像した場合には、カラー表示装置の画素要素の大きさ又は画素要素の配列に起因して、明色領域又は暗色領域の各長さが所定長さとなる領域、又は明色領域又は暗色領域の周期が所定周期となる領域が検出される可能性が高まるため、このような領域の検出を条件として補正モードに切り替えるようにすれば、カラー表示装置が撮像された可能性を適切に判断して補正処理を行うことができる。   In the invention according to claim 3, in the binary data generated by the binarization means, the area where each length of the light color area or the dark color area is a predetermined length, or the period of the light color area or the dark color area is a predetermined period. An area detecting means for detecting the area is provided. And it switches to correction mode on condition that the area | region which becomes predetermined length or a predetermined period is detected by this area | region detection means. When the information code displayed on the color display device is imaged, each length of the light color region or the dark color region becomes a predetermined length due to the size of the pixel element of the color display device or the arrangement of the pixel elements. Since there is an increased possibility that an area, or an area in which the period of a light color area or a dark color area has a predetermined period is detected, if the detection mode is switched to the correction mode on the condition of such an area detection, the color display device captures an image. The correction processing can be performed by appropriately determining the possibility of being made.

請求項4の発明は、照明手段からの照明光を導出し、且つ読取対象コードからの反射光を取り込む読取口が設けられており、カラー表示装置を読取口に接触させた状態で読取対象コードを読み取るように構成されている。このようにすると、コード撮像時に読取口とカラー表示装置との距離を一定の近距離に保つことができるため、明色領域又は暗色領域の各長さ或いは明色領域又は暗色領域の周期が、画素要素に対応した長さ或いは画素要素に対応した周期であるか否かをより正確に判断し易くなる。   According to a fourth aspect of the present invention, there is provided a reading port for deriving illumination light from the illuminating means and taking in reflected light from the reading target code, and the reading target code is in a state where the color display device is in contact with the reading port. Is configured to read. In this way, since the distance between the reading port and the color display device can be kept at a certain short distance at the time of code imaging, each length of the light color region or dark color region or the cycle of the light color region or dark color region is It becomes easier to accurately determine whether the length corresponds to the pixel element or the cycle corresponds to the pixel element.

請求項5の発明は、二値化手段によって生成された二値データにおいて、隣り合う明色領域及び暗色領域の幅の比率が所定比率となる領域を検出する所定比率領域検出手段を備えており、所定比率領域検出手段によって所定比率となる領域が検出されることを条件として補正モードに切り替えている。
カラー表示装置に表示される情報コードを撮像した場合には、画素要素の規則的な配列、及び一部の画素要素からの光の抑制に起因して、隣り合う明色領域及び暗色領域の幅の比率が所定比率となる可能性が高まるため、このような所定比率の検出を条件として補正モードに切り替えるようにすれば、カラー表示装置が撮像された可能性を一層適切に判断して補正処理を行うことができる。
The invention according to claim 5 includes predetermined ratio area detecting means for detecting an area in which the ratio of the widths of adjacent bright color areas and dark color areas is a predetermined ratio in the binary data generated by the binarizing means. The correction mode is switched on condition that the area having the predetermined ratio is detected by the predetermined ratio area detecting means.
When the information code displayed on the color display device is imaged, the widths of the adjacent bright and dark color areas due to the regular arrangement of pixel elements and the suppression of light from some pixel elements If the ratio is switched to the correction mode on condition that such a predetermined ratio is detected, the possibility that the color display device has been imaged is determined more appropriately and the correction process is performed. It can be performed.

請求項6の発明は、二値化手段によって生成された二値データにおいて、隣り合う明色領域及び暗色領域の幅の比率が所定比率となる領域を検出する所定比率領域検出手段を備えており、所定比率領域検出手段によって検出される所定比率領域が所定回数連続する場合に補正モードに切り替えている。
カラー表示装置に表示される情報コードを撮像した場合には、画素要素の規則的な配列、及び一部の画素要素からの光の抑制に起因して、隣り合う明色領域及び暗色領域の幅の比率が所定比率となる可能性が高まるため、このような所定比率の検出を条件として補正モードに切り替えるようにすれば、カラー表示装置が撮像された可能性をより一層適切に判断して補正処理を行うことができる。また、カラー表示装置でコード周辺のマージンを表示する場合、例えば白色を表示する表示画素がある程度の広さで配置されることになるため、当該マージン表示領域では光学フィルタによって抑制される画素要素が一定間隔おきに多数含まれることになる。従って、所定比率領域(明色領域及び暗色領域の幅の比率が所定比率となるが領域)が所定回数連続することを条件として補正モードに切り替えるようにすれば、カラー表示装置が撮像された可能性をより一層適切に判断して補正処理を行うことができる。
The invention according to claim 6 includes predetermined ratio area detecting means for detecting an area in which the ratio of the widths of the adjacent bright color area and dark color area is a predetermined ratio in the binary data generated by the binarizing means. When the predetermined ratio area detected by the predetermined ratio area detecting means continues a predetermined number of times, the mode is switched to the correction mode.
When the information code displayed on the color display device is imaged, the widths of the adjacent bright and dark color areas due to the regular arrangement of pixel elements and the suppression of light from some pixel elements If the ratio is switched to the correction mode on condition that such a predetermined ratio is detected, the possibility that the color display device has been imaged will be determined more appropriately and corrected. Processing can be performed. Further, when displaying a margin around a code in a color display device, for example, display pixels that display white are arranged to a certain extent, and therefore, in the margin display area, pixel elements that are suppressed by an optical filter are present. Many are included at regular intervals. Therefore, the color display device can be imaged by switching to the correction mode on condition that the predetermined ratio area (the ratio of the width of the light color area and the dark color area is the predetermined ratio, but the area) continues for a predetermined number of times. The correction process can be performed by more appropriately determining the characteristics.

請求項7の発明は、カラー表示装置が、R画素、G画素、B画素を所定の列方向に並べて構成される表示画素を、少なくとも列方向に複数配列した構成をなしている。本発明によれば、このように様々な場所で広く用いられるRGB方式のカラー表示装置を読取対象物として当該カラー表示装置に表示される情報コードを良好に読み取ることができ、ユーザの利便性を高めることができる。   According to a seventh aspect of the present invention, the color display device has a configuration in which a plurality of display pixels configured by arranging R pixels, G pixels, and B pixels in a predetermined column direction are arranged in at least the column direction. 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.

請求項8の発明は照明手段が、赤色の照明光を照射する構成をなし、光学フィルタは、G画素及びB画素から発せられる表示光の通過を、R画素から発せられる光の通過よりも抑制するように構成されている。このようにすると、物体に付された情報コードを読取対象コードとして読み取る場合に、照明光が明色領域にて反射した光(赤色光)を光学フィルタにて選択的に透過させることができ、外乱光を良好に除去できる。一方、カラー表示装置に表示される情報コードを読み取る場合、明色パターンを表示する領域においてG画素、B画素からの光が光学フィルタによって抑制され、明色パターン部分の波形に暗色を示す波形成分がノイズとして含まれてしまうことが懸念される。しかしながら、本発明では、このようなG画素、B画素からの光の抑制に起因するノイズを補正した補正データを生成することができ、このようなノイズ(G画素、B画素に起因するノイズ)を適切に除去した上でデコードを良好に行うことができる。   The invention according to claim 8 is configured such that the illumination means emits red illumination light, and the optical filter suppresses the passage of the display light emitted from the G pixel and the B pixel more than the passage of the light emitted from the R pixel. Is configured to do. 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, in the present invention, it is possible to generate correction data in which noise due to suppression of light from such G and B pixels is corrected, and such noise (noise due to G and B pixels). It is possible to perform the decoding satisfactorily after properly removing.

請求項9の発明は、カラー表示装置が、携帯端末に設けられた表示装置であることを特徴としている。このようにすると、様々な場所で広く用いられる携帯端末を読取対象物として当該携帯端末に表示される情報コードを良好に読み取ることができ、ユーザの利便性を一層高めることができる。   The invention of claim 9 is characterized in that the color display device is a display device provided in a portable terminal. 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.

図1は、本発明の第1実施形態に係る光学的情報読取装置を例示するブロック図である。FIG. 1 is a block diagram illustrating an optical information reading apparatus according to the first embodiment of the invention. 図2(A)は、図1の光学的情報読取装置の内部構成を概略的に説明する説明図であり、図2(B)は、読取対象物を読取口に接触させて読み取る様子を説明する説明図である。2A is an explanatory diagram schematically illustrating the internal configuration of the optical information reading apparatus in FIG. 1, and FIG. 2B illustrates a state in which an object to be read is read while being in contact with the reading port. It is explanatory drawing to do. 図3は、図1の光学的情報読取装置にて行われる読取処理の流れを例示するフローチャートである。FIG. 3 is a flowchart illustrating the flow of reading processing performed by the optical information reading apparatus of FIG. 図4は、紙に印刷された情報コードの読み取りを説明する説明図である。FIG. 4 is an explanatory diagram for explaining reading of an information code printed on paper. 図5は、カラー表示装置に表示される情報コードを読取対象とする場合について説明する説明図である。FIG. 5 is an explanatory diagram for explaining a case where an information code displayed on the color display device is to be read. 図6(A)は、カラー表示装置に表示される情報コードを撮像したときの受光信号の波形(受光波形)を例示しており、図6(B)は、その受光波形を二値化した二値データを概念的に示す説明図である。また、図6(C)は、その二値データの補正について説明する説明図であり、図6(D)は、図6(B)の二値データを補正した補正データを概念的に示す説明図である。FIG. 6A illustrates the waveform (light reception waveform) of the light reception signal when the information code displayed on the color display device is imaged, and FIG. 6B is a binarization of the light reception waveform. It is explanatory drawing which shows binary data notionally. FIG. 6C is an explanatory diagram for explaining the correction of the binary data, and FIG. 6D conceptually shows correction data obtained by correcting the binary data of FIG. 6B. FIG. 図7は、従来から用いられているカラー表示装置の画素構成を概念的に説明する説明図である。FIG. 7 is an explanatory diagram conceptually illustrating a pixel configuration of a color display device used conventionally. 図8は、カラー液晶表示装置に表示されるバーコードを読み取るときの問題点を説明する説明図である。FIG. 8 is an explanatory diagram for explaining a problem in reading a barcode displayed on the color liquid crystal display device.

[第1実施形態]
以下、本発明の第1実施形態に係る光学的情報読取装置について図面を参照しつつ説明する。
(全体構成)
図1は、第1実施形態に係る光学的情報読取装置の電気的構成を例示するブロック図であり、 図2は、図1の光学的情報読取装置の内部構成を概略的に説明する説明図である。まず、図1、図2等を参照して本実施形態に係る光学的情報読取装置1の全体構成について説明する。図1に示すように、本実施形態に係る光学的情報読取装置1は、バーコード等の情報コードBを読み取るコードリーダとして構成されるものであり、図示しないケースによって外郭が構成され、このケース内に各種電子部品が収容された構成をなしている。
[First embodiment]
Hereinafter, an optical information reading apparatus according to a first embodiment of the present invention will be described 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. FIG. 2 is an explanatory diagram schematically illustrating the internal configuration of the optical information reading apparatus of FIG. It is. First, the overall configuration of the optical information reading apparatus 1 according to the present embodiment will be described with reference to FIGS. 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、結像レンズ27、光学フィルタ28、反射鏡29等の光学系と、メモリ35、制御回路40、操作スイッチ42、液晶表示器46等のマイクロコンピュータ(以下「マイコン」という)系と、電源スイッチ41等の電源系と、から構成されている。なお、これらは、基板4に実装あるいはケース2(図2)内に内装されている。   The optical information reader 1 mainly includes an optical system such as an illumination light source 20, a light receiving sensor 26, an imaging lens 27, an optical filter 28, a reflecting mirror 29, a memory 35, a control circuit 40, an operation switch 42, a liquid crystal. It comprises a microcomputer (hereinafter referred to as “microcomputer”) system such as a display 46 and a power system such as a power switch 41. Note that these are mounted on the substrate 4 or housed in the case 2 (FIG. 2).

光学系は、照明光源20、受光センサ26、結像レンズ27、光学フィルタ28、反射鏡29等から構成されている。照明光源20は、「照明手段」の一例に相当するものであり、例えば、赤色のLEDと、このLEDの出射側に設けられる拡散レンズ、集光レンズ等を備え、赤色の照明光Lfを照射する構成をなしている。本実施形態では、受光センサ26を挟んだ両側に照明光源20が設けられており、ケースに形成された読取口3(図2)を介して読取対象物Rに向けて照明光Lfを照射可能に構成されている。この読取対象物Rとしては、例えば、樹脂材料、金属材料、紙等の様々な物体、或いは後述するカラー表示装置などが挙げられ、本実施形態に係る光学的情報読取装置1では、このような読取対象物Rにおいて、印刷、ダイレクトマーキングなどによる加工、或いは表示装置による表示等によって示された情報コード(図1ではバーコード)を「読取対象コード」としている。なお、以下の説明では、情報コードBとしてバーコードを例示して説明するが、QRコード、データマトリックコード、マキシコードなどの二次元コードに置き換えてもよい。   The optical system includes an illumination light source 20, a light receiving sensor 26, an imaging lens 27, an optical filter 28, a reflecting mirror 29, 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 this 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 the reading port 3 (FIG. 2) 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, a barcode is exemplified as the information code B, but it 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で受光し得るように基板4に実装されている。また、受光センサ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 the substrate 4 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の各受光素子において、受光量が大きいほど低い電圧の受光信号が出力されるようになっている。また、この場合、このラインセンサの配列方向(所定方向)における各位置の受光量の信号が順次出力され、これら信号が受光波形としてローパスフィルタ回路31に入力されるようになっている。   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, each light receiving element of the light receiving sensor 26 outputs a light reception signal having a lower voltage as the amount of received light is larger. In this case, light reception amount signals at respective positions in the line sensor arrangement direction (predetermined direction) are sequentially output, and these signals are input to the low-pass filter circuit 31 as a light reception waveform.

光学フィルタ28は、照明光Lfに対応する所定周波数帯の光を通過させ、当該所定周波数帯以外の光を抑制する機能を有している。具体的には、照明光源20から照射される赤色光の波長が含まれる所定赤色光波長帯の光の通過を許容し、当該所定赤色光波長帯から外れた光(例えば、緑色光、青色光)の通過を遮断する光学的なフィルタとして構成されており、例えば、ケースに形成された読取口3(図2)と結像レンズ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 the reading port 3 (FIG. 2) 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. is 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 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との間に別途増幅回路を設けることが望ましい。   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).

二値化回路33は、「二値化手段」の一例に相当するものであり、ローパスフィルタ回路31から出力された信号(受光センサ26における所定方向(素子配列方向)の受光波形から高周波成分が除去された信号)に基づき、受光センサ26の所定方向(素子配列方向)における明色領域及び暗色領域を特定可能な二値データを生成するように機能している。この二値化回路は、ローパスフィルタ回路31からの出力信号(高周波ノイズが除去された受光信号)を設定された閾値と比較して、閾値以上の場合には、Lレベル信号を出力し、閾値未満の場合にはHレベル信号を出力している。なお、二値化回路33から出力される信号は、情報コードBのパターンデータとしてメモリ35に蓄積されるようになっている。   The binarization circuit 33 corresponds to an example of “binarization means”, and a high-frequency component is generated from a signal output from the low-pass filter circuit 31 (a light receiving waveform in a predetermined direction (element arrangement direction) in the light receiving sensor 26). Based on the (removed signal), the light sensor 26 functions to generate binary data that can specify the light color area and the dark color area in a predetermined direction (element arrangement direction). 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等により構成されており、制御回路40により管理される電源スイッチ41のオンオフによって、電源から供給される駆動電圧の導通や遮断が制御されている。   The power supply system is composed of a power switch 41 and the like, and the conduction and interruption of the drive voltage supplied from the power supply are controlled by turning on and off the power switch 41 managed by the control circuit 40.

(読取処理)
次に、本実施形態に係る光学的情報読取装置1で行われる読取処理について図3等を参照して説明する。なお、図3は、本実施形態に係る光学的情報読取装置1にて行われる読取処理の流れを例示するフローチャートである。図4は、紙に印刷された情報コードの読み取りを説明する説明図である。なお、図4では、上段に紙に印刷された情報コードの説明図を示し、中段には、その情報コードにおける撮像ラインL1上の部分を拡大して示している。また、下段には、その拡大部分の受光波形を示している。図5は、カラー表示装置に表示された情報コードの読み取りを説明する説明図である。なお、図5では、上段にカラー表示装置に表示された情報コードの説明図を示し、中段には、そのカラー表示装置における撮像ラインL1上の表示画素構成を拡大して示している。また、下段には、その拡大部分の受光波形を示している。また、図6(A)は、カラー表示装置に表示される情報コードを撮像したときの受光信号の波形を例示しており、図6(B)は、その受光信号を二値化した二値データを概念的に示す説明図である。また、図6(C)は、その二値データの補正について説明する説明図であり、図6(D)は、図6(B)の二値データを補正した補正データを概念的に示す説明図である。
(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. 3 is a flowchart illustrating the flow of reading processing performed by the optical information reading apparatus 1 according to this embodiment. FIG. 4 is an explanatory diagram for explaining reading of an information code printed on paper. In FIG. 4, an explanatory diagram of an information code printed on paper is shown in the upper part, and a portion on the imaging line L1 in the information code is shown enlarged in the middle part. In the lower part, the received light waveform of the enlarged portion is shown. FIG. 5 is an explanatory diagram for explaining reading of the information code displayed on the color display device. In FIG. 5, an explanatory diagram of the information code displayed on the color display device is shown in the upper stage, and the display pixel configuration on the imaging line L1 in the color display apparatus is enlarged and shown in the middle stage. In the lower part, the received light waveform of the enlarged portion is shown. FIG. 6A illustrates the waveform of a light reception signal when an information code displayed on a color display device is imaged. FIG. 6B illustrates a binary value obtained by binarizing the light reception signal. It is explanatory drawing which shows data notionally. FIG. 6C is an explanatory diagram for explaining the correction of the binary data, and FIG. 6D conceptually shows correction data obtained by correcting the binary data of FIG. 6B. FIG.

本実施形態では、例えば、ユーザによる所定操作(例えば操作スイッチ42に対する所定操作)をトリガとして図3に示す読取処理が開始され、まず情報コードを撮像する処理が行われる(S1)。この処理では、制御回路40から照明光源20に対して光源駆動信号が与えられて照明光源20から赤色の照明光Lfが照射され、その照射状態で、情報コードからの反射光が受光センサ26によって受光される。   In the present embodiment, for example, the reading process shown in FIG. 3 is started with a predetermined operation by the user (for example, a predetermined operation on the operation switch 42) as a trigger, and first, a process of imaging an information code is performed (S1). In this processing, a light source drive signal is given to the illumination light source 20 from the control circuit 40 and the illumination light source 20 emits red illumination light Lf. In this illumination state, reflected light from the information code is received by the light receiving sensor 26. Received light.

この受光センサ26は、読取対象コードにて反射され且つ光学フィルタ28を透過した反射光を各受光素子にて受光しており、各受光素子での受光量に基づいて、読取対象コードからの反射光に応じた受光信号を出力している。具体的には、制御回路40から与えられる所定周波数のパルス信号(駆動信号)に応じて駆動し、制御回路40から各パルスが入力される毎に、一列に配列された各受光素子の各信号を順番に出力している。例えば、受光センサ26がN個の受光素子を一列に並べたラインセンサとして構成されている場合には、制御回路40からN個のパルスが入力されることで全受光素子の信号が出力されることになる。   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 reflects from the reading target code based on the amount of light received by each light receiving element. A light reception signal corresponding to the light is output. Specifically, the signals are driven according to a pulse signal (drive signal) of a predetermined frequency given from the control circuit 40, and each signal of each light receiving element arranged in a line every time each pulse is inputted from the control circuit 40. Are output in order. 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. It will be.

例えば、図4のような紙Pに印刷された情報コードB(バーコード等)が読取対象コードとされる場合、ラインセンサとして構成される受光センサ26では、撮像対象となる情報コードをライン状に撮像することとなる。図4では、紙Pに記録された情報コードB(バーコード等)が受光センサ26によって撮像されるときの撮像位置をライン(撮像ラインL1)にて概念的に示しており、このように受光センサ26によってライン状に撮像され、各受光素子からの受光信号が順次出力されることにより図4の最下段のような受光波形が得られることとなる。この受光波形は、受光素子の位置が横軸、受光量が縦軸となっており、各受光素子の位置と受光量とが対応付けられた信号となっている。このように受光センサ26から出力される受光信号(受光波形)は、上述のローパスフィルタ回路31にて高周波成分が抑制された後、二値化回路33にて二値データに変換され、メモリ35に記憶される。   For example, when the information code B (bar code or the like) printed on the paper P as shown in FIG. 4 is a reading target code, the light receiving sensor 26 configured as a line sensor converts the information code to be imaged into a line shape. An image is taken. In FIG. 4, the imaging position when the information code B (bar code or the like) recorded on the paper P is imaged by the light receiving sensor 26 is conceptually shown by a line (imaging line L1). The light is picked up by the sensor 26 in a line shape, and the light receiving signal from each light receiving element is sequentially output, whereby a light receiving waveform as shown in the lowermost stage of FIG. 4 is obtained. The light receiving waveform is a signal in which the position of the light receiving element is on the horizontal axis and the amount of received light is on the vertical axis, and the position of each light receiving element and the amount of received light are associated with each other. The light receiving signal (light receiving waveform) output from the light receiving sensor 26 in this way 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 the memory 35. Is remembered.

S1の撮像処理の後には、S1の撮像処理で生成された受光波形において所定周期及び所定比率が存在するか否かを判断する処理が行われる(S2)。この判断処理は、S1で撮像された情報コードがカラー表示装置に表示された情報コードであるか否かを判断する処理に相当している。   After the imaging process of S1, a process of determining whether or not a predetermined period and a predetermined ratio exist in the light reception waveform generated by the imaging process of S1 is performed (S2). This determination process corresponds to a process of determining whether or not the information code captured in S1 is the information code displayed on the color display device.

本実施形態に係る光学的情報読取装置1は、図4のように物体(図4では紙)に付された情報コードを読取対象コートとして読み取ることができると共に、例えば図5のように、カラー表示装置100に表示された情報コードについても読取対象コートとして読み取ることができるようになっている。図5のカラー表示装置100は、例えば液晶表示装置として構成されており、複数色の各画素要素(R画素Ra、G画素Ga、B画素Ba)を組み合わせた表示画素Saを複数配列した構成をなしており、例えば携帯電話機などの情報機器に設けられるものであり、図示しない制御回路の制御によって情報コードBが表示されるようになっている。   The optical information reading apparatus 1 according to the present embodiment can read an information code attached to an object (paper in FIG. 4) as shown in FIG. 4 as a reading target coat, and, for example, as shown in FIG. The information code displayed on the display device 100 can also be read as a reading target coat. The color display device 100 of FIG. 5 is configured as a liquid crystal display device, for example, and has a configuration in which a plurality of display pixels Sa in which pixel elements (R pixel Ra, G pixel Ga, and B pixel Ba) of a plurality of colors are combined are arranged. For example, it is provided in an information device such as a cellular phone, and an information code B is displayed under the control of a control circuit (not shown).

このカラー表示装置100は、図7と同様に、R画素Ra、G画素Ga、B画素Baを所定の列方向に並べて構成される表示画素Saを、少なくとも列方向に複数配列してなるものであり、上述したように、受光センサ26での撮像時に、光学フィルタ28においてG画素Ga及びB画素Baから発せられる光の通過が、R画素から発せられる光の通過よりも抑制されるようになっている(図5も参照)。S2の判断処理では、このような抑制によって受光波形に生じる所定周期及び所定比率の存在を検出することで、S1で撮像された情報コードがカラー表示装置に表示された情報コードであるか否かを判断している。   As in FIG. 7, the color display device 100 is formed by arranging a plurality of display pixels Sa in which R pixels Ra, G pixels Ga, and B pixels Ba are arranged in a predetermined column direction in at least the column direction. In addition, as described above, during imaging by the light receiving sensor 26, the passage of light emitted from the G pixel Ga and the B pixel Ba in the optical filter 28 is suppressed more than the passage of light emitted from the R pixel. (See also FIG. 5). In the determination process of S2, whether or not the information code captured in S1 is the information code displayed on the color display device by detecting the presence of the predetermined period and the predetermined ratio generated in the light reception waveform due to such suppression. Judging.

具体的には、まず、隣接する明色領域と暗色領域との比率が1:2となる領域を検出している。図5のように、RGBの各画素要素が所定方向(図5では横方向)に並んでなる表示画素Saが配列されたカラー表示装置100を撮像する場合において、各画素要素が並ぶ方向(所定方向)に沿うように受光センサ26の撮像ラインL1(撮像位置)が配されて撮像されるときには、G画素Ga、B画素Baからの光が光学フィルタ28で抑制されることにより、これら画素要素(G画素Ga及びB画素Ba)を撮像する受光素子の受光量が抑えられる。これにより、図5最下段及び図6(A)のように、明色(例えば白色)を表示する明色表示画素Swからの受光信号は、明色領域を示す信号(閾値V1以上の信号)と暗色領域を示す信号(閾値V1未満の信号)とが混在した信号となる。このような信号を閾値V1を基準として二値化すると、図6(B)のように、明色表示画素Swからの受光信号を二値化した後の二値データにおいて、明色領域(受光量が閾値V1以上と特定される領域)の幅W1と、暗色領域(受光量が閾値V1未満と特定される領域)の幅B1との比率は1:2となる。即ち、明色表示画素Swからの受光信号の二値データでは、明色領域の幅W1は画素要素一つ分(R画素Raの分)に相当し、暗色領域の幅B1は画素要素2つ分(G画素Ga、B画素Baの分)に相当するため、W1:B1は、1:2となる。S2では、このように受光波形(より詳しくは二値化後の波形)によって特定された明色領域及び暗色領域において、隣接する明色領域及び暗色領域の幅が1:2となる部分が1つ又は所定数存在するか否かを検出している。なお、判断基準となる所定比率は、完全に1:2であってもよく、多少の誤差を含んだ幅をもった値であってもよい。例えば、所定比率を1:nとし、nが、2−α≦n≦2+α(但しαは所定の誤差値)となるような値であってもよい。   Specifically, first, an area where the ratio of the adjacent bright color area to the dark color area is 1: 2 is detected. As shown in FIG. 5, when imaging the color display device 100 in which display pixels Sa in which RGB pixel elements are arranged in a predetermined direction (horizontal direction in FIG. 5) are imaged, the direction in which the pixel elements are arranged (predetermined When the imaging line L1 (imaging position) of the light receiving sensor 26 is arranged along the direction), light from the G pixel Ga and the B pixel Ba is suppressed by the optical filter 28, so that these pixel elements The amount of light received by the light receiving element that images (G pixel Ga and B pixel Ba) is suppressed. As a result, as shown in the lowermost part of FIG. 5 and FIG. 6A, the light reception signal from the light color display pixel Sw displaying a light color (for example, white) is a signal indicating a light color region (a signal equal to or higher than the threshold value V1). And a signal indicating a dark color area (a signal less than the threshold value V1). When such a signal is binarized with reference to the threshold value V1, as shown in FIG. 6B, in the binary data after binarizing the light reception signal from the light color display pixel Sw, the light color region (light reception) The ratio of the width W1 of the region where the amount is specified to be equal to or greater than the threshold value V1 and the width B1 of the dark color region (region where the amount of received light is specified to be less than the threshold value V1) is 1: 2. That is, in the binary data of the light reception signal from the light color display pixel Sw, the width W1 of the light color region corresponds to one pixel element (the amount of R pixel Ra), and the width B1 of the dark color region has two pixel elements. Since this corresponds to the minute (the G pixel Ga and the B pixel Ba), W1: B1 is 1: 2. In S2, in the light color region and the dark color region specified by the light reception waveform (more specifically, the waveform after binarization), the portion where the width of the adjacent light color region and dark color region is 1: 2 is 1 Or a predetermined number is detected. It should be noted that the predetermined ratio serving as a determination criterion may be completely 1: 2, or may be a value having a width including some errors. For example, the predetermined ratio may be 1: n, and n may be a value such that 2-α ≦ n ≦ 2 + α (α is a predetermined error value).

更に、S2では、上述の二値データ(図6(B)参照)において明色領域(受光量が閾値V1以上と特定される領域)の周期が所定の長さとなる領域を検出している。本実施形態に係る光学的情報読取装置1では、図2(A)のように、照明光源20からの照明光を導出し、且つ読取対象コードからの反射光を取り込む読取口3が設けられており、図2(B)のように、読取対象物Rを読取口3に接触させた状態で読取対象コードを読み取ることができるようになっている。このように、読取対象物Rと読取口3との位置関係が一定に定められたときには、装置構成に基づき、受光センサ26上で結像される読取対象物Rの像の倍率も一定に定まるため、この倍率を考慮することで撮像画像の縮尺を特定でき、撮像画像内の各部分の実際の長さを検出できるようになる。例えば、カラー表示装置100(図5)が読取口3に接触した状態で撮像された場合には、このカラー表示装置100がどの程度の倍率で受光センサ26上に結像するかを特定できるため、カラー表示装置100上の各部分の実際の長さ(例えば、カラー表示装置100に表示される情報コードBの明色バーや暗色バーの実際の長さ、或いは各表示画素Sa(1ドット)の実際の長さなど)を特定できるようになる。   Further, in S2, a region in which the period of the bright color region (region where the amount of received light is specified to be equal to or greater than the threshold value V1) in the binary data (see FIG. 6B) is a predetermined length is detected. As shown in FIG. 2A, the optical information reading apparatus 1 according to the present embodiment is provided with a reading port 3 that derives illumination light from the illumination light source 20 and takes in reflected light from a reading target code. As shown in FIG. 2B, the reading target code can be read with the reading object R in contact with the reading port 3. Thus, when the positional relationship between the reading object R and the reading port 3 is determined to be constant, the magnification of the image of the reading object R formed on the light receiving sensor 26 is also fixed based on the apparatus configuration. Therefore, taking this magnification into account, the scale of the captured image can be specified, and the actual length of each part in the captured image can be detected. For example, when an image is captured while the color display device 100 (FIG. 5) is in contact with the reading port 3, it is possible to specify the magnification at which the color display device 100 forms an image on the light receiving sensor 26. The actual length of each part on the color display device 100 (for example, the actual length of the light color bar and dark color bar of the information code B displayed on the color display device 100, or each display pixel Sa (1 dot) Actual length etc.).

このように撮像画像の縮尺を特定できる構成を前提とし、S2では、二値データで特定されるいずれかの明色領域の周期が所定の長さとなっている部分が存在するか否かを検出している。具体的には、例えば、上述したような隣接する明色領域及び暗色領域の幅が1:2となる部分において、明色領域の周期T1(即ち、隣接する明色領域及び暗色領域の幅の比率が1:2となっている部分におけるこれら明色領域及び暗色領域の幅の和)の実際の長さが、VGA表示において1ドット分とされる所定第1サイズ(例えば、0.075mm)、又はQVGA表示において1ドット分とされる所定第2サイズ(例えば0.15mm)のいずれかに該当するか否かが判断される。例えば、撮像画像で周期T1とされる部分が、縮尺を考慮するとカラー表示装置100上で上記所定第1サイズ(VGA表示において1ドット分)又は所定第2サイズ(QVGA表示において1ドット分)に相当する場合、VGA表示又はQVGA表示のカラー表示装置100の明色(例えば白色)表示画素Saが撮像された上でG画素Ga及びB画素Baの光が抑制されている可能性が高いといえるため、S2では、このような場合に「二値データの明色領域が所定周期である」と判断されることになる。なお、「所定周期」は、完全に1つの値であってもよく、多少の誤差を含んだ幅を持った値であってもよい。   Based on the premise that the scale of the captured image can be specified in this way, in S2, it is detected whether there is a part where the cycle of any light color region specified by the binary data has a predetermined length. is doing. Specifically, for example, in the portion where the width of the adjacent light color region and dark color region is 1: 2, as described above, the period T1 of the light color region (that is, the width of the adjacent light color region and dark color region). A predetermined first size (for example, 0.075 mm) in which the actual length of the light color area and the width of the dark color area in the portion where the ratio is 1: 2 is one dot in the VGA display. Or whether it corresponds to one of the predetermined second sizes (for example, 0.15 mm) for one dot in the QVGA display. For example, when the scale is taken into consideration, the portion of the captured image having the period T1 has the predetermined first size (for one dot in VGA display) or the predetermined second size (for one dot in QVGA display) on the color display device 100. In a corresponding case, it is highly likely that the light of the G pixel Ga and the B pixel Ba is suppressed after the bright (for example, white) display pixel Sa of the color display device 100 for VGA display or QVGA display is imaged. Therefore, in S2, in such a case, it is determined that “the light color area of the binary data has a predetermined period”. The “predetermined period” may be a completely single value or a value having a width including some errors.

本実施形態では、S2の判断処理を行う制御回路は、「領域検出手段」の一例に相当し、二値化手段によって生成された二値データにおいて、明色領域の周期が所定周期となる領域を検出しており、更に、所定比率領域検出手段の一例にも相当し、二値化手段によって生成された二値データにおいて、隣り合う明色領域及び暗色領域の幅の比率が所定比率(1:2)となる領域を検出している。更に、S2の判断処理を行う制御回路は「モード切替手段」の一例に相当し、補正データ生成手段によって補正データの生成を行う補正モードと、補正データの生成を行わない通常モードとに切り替えるように機能し、具体的には、補正モードの実行基準となる所定実行条件を満たす場合(領域検出手段によって明色領域が所定周期となる領域が検出される場合であって、且つ所定比率領域検出手段によって隣り合う明色領域及び暗色領域が所定比率(1:2)となる領域が検出される場合)に補正モードに切り替えるように機能している。   In the present embodiment, the control circuit that performs the determination process of S2 corresponds to an example of an “area detection unit”, and in the binary data generated by the binarization unit, a region in which the cycle of the light color region is a predetermined cycle In addition, in the binary data generated by the binarizing means, the ratio of the widths of adjacent bright color areas and dark color areas is a predetermined ratio (1). : 2) is detected. Furthermore, the control circuit that performs the determination process of S2 corresponds to an example of a “mode switching unit”, and switches between a correction mode in which correction data is generated by the correction data generation unit and a normal mode in which no correction data is generated. More specifically, when a predetermined execution condition that is a reference for executing the correction mode is satisfied (when a region having a light color region having a predetermined period is detected by the region detection unit, and a predetermined ratio region detection is performed) When the area where the adjacent bright color area and dark color area have a predetermined ratio (1: 2) is detected), the function is switched to the correction mode.

S2において上述したような所定周期検出処理及び所定比率検出処理が行われたときに、「二値データの明色領域が所定周期である」と判断され、且つ「隣り合う明色領域及び暗色領域が所定比率(1:2)となる領域が検出された」と判断される場合には、S2でYesとなり、図6(B)のような二値データを補正する補正処理が行われる(S3)。   When the predetermined period detection process and the predetermined ratio detection process as described above are performed in S2, it is determined that "the light color area of the binary data has a predetermined period" and "the adjacent light color area and dark color area" If it is determined that an area having a predetermined ratio (1: 2) has been detected ”, the result of S2 is Yes, and correction processing for correcting binary data as shown in FIG. 6B is performed (S3). ).

S3の補正処理では、図6(B)のように得られた二値データにおいて各明色領域の一方側に幅L2の明色領域を加える補正を行う。即ち、S2でYesとなる場合、本来的には明色領域となるべきG画素分及びB画素分が抑制されて暗色領域と判断されているといえ、この抑制された部分の暗色領域の幅は、上述の所定周期T1の2/3であると考えられる。従って、S3の処理では、S1で得られた二値データの各明色領域の片側に対し、図6(C)のように、G画素分及びB画素分に相当する所定長さL1(上述の周期T1の2/3の長さ)の明色領域を追加した補正データを生成する。このようにして、図6(D)のような補正データが得られることとなる。   In the correction process of S3, correction is performed by adding a light color region having a width L2 to one side of each light color region in the binary data obtained as shown in FIG. 6B. In other words, when the result in S2 is Yes, it can be said that the G pixel and B pixel which should be the light color region are originally suppressed and determined as the dark color region, and the width of the dark color region of the suppressed portion is determined. Is considered to be 2/3 of the above-mentioned predetermined period T1. Therefore, in the process of S3, as shown in FIG. 6C, a predetermined length L1 corresponding to the G pixel and the B pixel (described above) is applied to one side of each bright color area of the binary data obtained in S1. Correction data to which a light color area having a length 2/3 of the period T1) is added is generated. In this way, correction data as shown in FIG. 6D is obtained.

なお、S3の処理を実行する制御回路10は、「補正データ生成手段」の一例に相当し、二値化手段によって生成された二値データにおける各明色領域に対し、光学フィルタ28によって表示光が抑制される画素要素(G画素Ga及びB画素Ba)に対応した所定幅L2の補正領域を追加して補正データを生成するように機能する。   The control circuit 10 that executes the process of S3 corresponds to an example of a “correction data generation unit”, and displays light for each light color area in the binary data generated by the binarization unit by the optical filter 28. Functions to generate correction data by adding a correction region having a predetermined width L2 corresponding to pixel elements (G pixel Ga and B pixel Ba) for which the suppression is suppressed.

なお、S2において上述の所定周期及び所定比率のいずれか一方の条件を満たさないと判断される場合(即ち、二値データの明色領域が所定周期であると判断されない場合、又は隣り合う明色領域及び暗色領域が所定比率(1:2)となる領域が検出されない場合)には、S2にてNoに進む。この場合には、カラー表示装置100が撮像された可能性が低いためS3の補正処理は行われないことになる。   Note that if it is determined in S2 that either one of the above-mentioned predetermined cycle and predetermined ratio is not satisfied (that is, if the light color area of the binary data is not determined to be the predetermined cycle, or adjacent light colors) In the case where an area in which the area and the dark area have a predetermined ratio (1: 2) is not detected), the process proceeds to No in S2. In this case, since the possibility that the color display device 100 has been imaged is low, the correction process of S3 is not performed.

S2又はS3の処理の後には、バーコードが存在するか否かを判断する処理が行われる。このバーコードの検出は、S1又はS3で得られた二値データ(S3の場合には補正データ)に基づいて公知の方法で行われる。そして、バーコードが検出される場合には、S4にてYesに進み、その検出されたバーコードについてのデコード処理が行われる(S5)。このデコード処理では、メモリ35に記憶された二値データに基づいて、各明色領域、各暗色領域のサイズ、位置が特定され、公知のデコード方法によって解読が行われる。このデコード処理の後には、デコード結果を液晶表示器46などに出力する処理が行われる(S7)。   After the process of S2 or S3, a process for determining whether or not a barcode exists is performed. This barcode detection is performed by a known method based on the binary data obtained in S1 or S3 (correction data in the case of S3). If a bar code is detected, the process proceeds to Yes in S4, and a decoding process for the detected bar code is performed (S5). 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. After this decoding process, a process of outputting the decoding result to the liquid crystal display 46 or the like is performed (S7).

本実施形態では、制御回路40が「デコード手段」の一例に相当し、通常モードのときに二値データに基づいてデコード処理を行い、補正モードのときに補正データに基づいてデコード処理を行うように機能している。なお、本実施形態では、S2でYesとなる場合が補正モードであり、S2でNoとなる場合が通常モードである。   In the present embodiment, the control circuit 40 corresponds to an example of “decoding means”, and performs decoding processing based on binary data in the normal mode, and performs decoding processing based on the correction data in the correction mode. Is functioning. In the present embodiment, the correction mode is when S2 is Yes, and the normal mode is No when S2.

(第1実施形態の主な効果)
本実施形態に係る光学的情報読取装置1は、照明光源20からの照明光に対応する所定周波数帯の光を通過させ、所定周波数帯以外の光の通過を抑制する光学フィルタ28が設けられており、読取対象コードからの反射光を光学フィルタ28を介して受光センサ26によって受光する構成をなしている。このようにすることで、照明光が読取対象コードにて反射した反射光以外の外乱光を効果的に除去することができる。
一方、このような構成とすると、カラー表示装置100に表示される情報コードBを読取対象コードとした場合に、明色パターンを表示する領域の一部の画素要素(光学フィルタによって抑制される光を発する画素要素)からの光が光学フィルタ28によって抑制されてしまい、受光信号における明色パターン部分の波形に暗色を示す波形成分がノイズとして含まれてしまうことが懸念される。
これに対し、本発明では、受光センサ26における所定方向の受光波形に基づき、二値化手段によって所定方向における明色領域及び暗色領域を特定可能な二値データを生成し、更に、補正データ生成手段により、その生成された二値データにおける各明色領域に対し、光学フィルタ28によって表示光が抑制される画素要素(G画素Ga、B画素Ba)に対応した所定幅L2の補正領域を追加して補正データを生成している。そして、その生成された補正データに基づいてデコード手段によりデコード処理を行っている。
このようにすると、光学フィルタ28によって抑制される画素要素(本来明色領域として検出されるべきであるのに光学フィルタでの光の抑制によって暗色領域として検出されてしまう画素要素)の幅を考慮してこれを補う補正データを生成することができる。そして、この補正データに基づいてデコード処理を行っているため、カラー表示装置特有の事情から生じる誤認識を抑えて正確に読み取ることができる。
(Main effects of the first embodiment)
The optical information reading apparatus 1 according to the present embodiment is provided with an optical filter 28 that allows light in a predetermined frequency band corresponding to the illumination light from the illumination light source 20 to pass and suppresses light other than the predetermined frequency band. The light receiving sensor 26 receives the reflected light from the reading target code via 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 B displayed on the color display device 100 is the code to be read, some pixel elements (light suppressed by the optical filter) in the area displaying the bright color pattern are used. There is a concern that light from a pixel element that emits light) is suppressed by the optical filter 28, and a waveform component indicating a dark color is included as noise in the waveform of the light color pattern portion in the received light signal.
On the other hand, in the present invention, based on the light reception waveform in the predetermined direction in the light receiving sensor 26, binary data capable of specifying the light color area and the dark color area in the predetermined direction is generated by the binarizing means, and further, correction data generation By means, a correction area having a predetermined width L2 corresponding to the pixel element (G pixel Ga, B pixel Ba) whose display light is suppressed by the optical filter 28 is added to each bright color area in the generated binary data. Thus, correction data is generated. Then, decoding processing is performed by the decoding means based on the generated correction data.
In this way, the width of the pixel element that is suppressed by the optical filter 28 (the pixel element that should be detected as a light color area but is detected as a dark color area by suppressing light in the optical filter) is taken into consideration. Thus, correction data that compensates for this can be generated. Since the decoding process is performed based on the correction data, it is possible to accurately read while suppressing erroneous recognition caused by the circumstances peculiar to the color display device.

また、本実施形態では、補正データ生成手段によって補正データの生成を行う補正モードと、補正データの生成を行わない通常モードとに切り替えるモード切替手段が設けられている。そして、デコード手段は、通常モードのときには二値データに基づいてデコード処理を行い、補正モードのときには補正データに基づいてデコード処理を行う構成をなしており、モード切替手段は、補正モードの実行基準となる所定実行条件を満たす場合に補正モードに切り替えている。このようにすると、闇雲に補正データを生成するのではなく、補正モードの実行基準となる所定実行条件を満たす場合に補正データを生成するため、補正データを生成する必要のない場合には、不要な補正処理を省略することでき、処理の効率化、処理時間の短縮化を図ることができる。   In the present embodiment, mode switching means for switching between a correction mode in which correction data is generated by the correction data generation means and a normal mode in which no correction data is generated is provided. The decoding means is configured to perform decoding processing based on the binary data in the normal mode, and to perform decoding processing based on the correction data in the correction mode. Is switched to the correction mode when the predetermined execution condition is satisfied. In this way, the correction data is not generated in the dark clouds but is generated when the predetermined execution condition that is the execution standard of the correction mode is satisfied. Correction processing can be omitted, and processing efficiency and processing time can be shortened.

また、本実施形態では、二値化手段によって生成された二値データにおいて、明色領域の周期が所定周期となる領域を検出する領域検出手段が設けられている。そして、この領域検出手段によって所定周期となる領域が検出されることを条件として補正モードに切り替えている。カラー表示装置に表示される情報コードを撮像した場合には、カラー表示装置の画素要素の大きさ又は画素要素の配列に起因して、明色領域の周期が所定周期となる領域が検出される可能性が高まるため、このような領域の検出を条件として補正モードに切り替えるようにすれば、カラー表示装置が撮像された可能性を適切に判断して補正処理を行うことができる。   In the present embodiment, area detection means for detecting an area in which the period of the bright color area is a predetermined period in the binary data generated by the binarization means is provided. And it switches to correction mode on condition that the area | region which becomes a predetermined period is detected by this area | region detection means. When the information code displayed on the color display device is imaged, an area in which the period of the bright color area is a predetermined period is detected due to the size of the pixel elements of the color display apparatus or the arrangement of the pixel elements. Since the possibility increases, the correction process can be performed by appropriately determining the possibility that the color display device has been imaged by switching to the correction mode on condition that such a region is detected.

また、本実施形態では、照明光源20からの照明光を導出し、且つ読取対象コードからの反射光を取り込む読取口3が設けられており、カラー表示装置100を読取口3に接触させた状態で読取対象コードを読み取るように構成されている。このようにすると、コード撮像時に読取口3とカラー表示装置100との距離を一定の近距離に保つことができるため、明色領域の周期が画素要素に対応した周期であるか否かをより正確に判断し易くなる。   Further, in the present embodiment, the reading port 3 that derives the illumination light from the illumination light source 20 and takes in the reflected light from the reading target code is provided, and the color display device 100 is in contact with the reading port 3. Is configured to read the code to be read. In this way, since the distance between the reading port 3 and the color display device 100 can be kept at a certain short distance when the code is imaged, it is more determined whether or not the cycle of the bright color region is a cycle corresponding to the pixel element. It becomes easy to judge accurately.

また、本実施形態では、二値化手段によって生成された二値データにおいて、隣り合う明色領域及び暗色領域の幅の比率が所定比率(1:2)となる領域を検出する所定比率領域検出手段を備えており、所定比率領域検出手段によって所定比率となる領域が検出されることを条件として補正モードに切り替えている。
図5のようにカラー表示装置100に表示される情報コードBを撮像した場合には、画素要素の規則的な配列、及び一部の画素要素からの光の抑制に起因して、隣り合う明色領域及び暗色領域の幅の比率が所定比率(1:2)となる可能性が高まるため、このような所定比率の検出を条件として補正モードに切り替えるようにすれば、カラー表示装置100が撮像された可能性を一層適切に判断して補正処理を行うことができる。
Further, in the present embodiment, the predetermined ratio area detection that detects an area in which the ratio of the widths of adjacent bright color areas and dark color areas is a predetermined ratio (1: 2) in the binary data generated by the binarization means. Means for switching to the correction mode on condition that the area having the predetermined ratio is detected by the predetermined ratio area detecting means.
When the information code B displayed on the color display device 100 is imaged as shown in FIG. 5, the adjacent bright light is caused by the regular arrangement of the pixel elements and the suppression of light from some of the pixel elements. Since there is a high possibility that the ratio between the width of the color area and the dark area becomes a predetermined ratio (1: 2), the color display device 100 captures an image when the mode is switched to the correction mode on condition that such a predetermined ratio is detected. The correction processing can be performed by more appropriately determining the possibility of being made.

また、撮像対象となるカラー表示装置100は、R画素Ra、G画素Ga、B画素Baを所定の列方向に並べて構成される表示画素Saを、少なくとも列方向に複数配列した構成をなしている。本発明によれば、このように様々な場所で広く用いられるRGB方式のカラー表示装置100を読取対象物として当該カラー表示装置100に表示される情報コードBを良好に読み取ることができ、ユーザの利便性を高めることができる。   The color display device 100 to be imaged has a configuration in which a plurality of display pixels Sa configured by arranging R pixels Ra, G pixels Ga, and B pixels Ba in a predetermined column direction are arranged in at least the column direction. . According to the present invention, the information code B displayed on the color display device 100 can be satisfactorily read by using the RGB color display device 100 widely used in various places as a reading object. Convenience can be improved.

また、本実施形態では、照明光源20が、赤色の照明光を照射する構成をなし、光学フィルタ28は、G画素及びB画素から発せられる表示光の通過を、R画素から発せられる光の通過よりも抑制するように構成されている。このようにすると、図4のように物体に付された情報コードBを読取対象コードとして読み取る場合に、照明光が明色領域にて反射した光(赤色光)を光学フィルタにて選択的に透過させることができ、外乱光を良好に除去できる。一方、図5のようにカラー表示装置100に表示される情報コードBを読み取る場合、明色パターンを表示する領域においてG画素Ga、B画素Baからの光が光学フィルタ28によって抑制され、明色パターン部分の波形に暗色を示す波形成分がノイズとして含まれてしまうことが懸念される。しかしながら、本発明では、このようなG画素Ga、B画素Baからの光の抑制に起因するノイズを補正した補正データを生成することができ、このようなノイズ(G画素Ga、B画素Baに起因するノイズ)を適切に除去した上でデコードを良好に行うことができる。   Further, in the present embodiment, the illumination light source 20 is configured to irradiate red illumination light, and the optical filter 28 passes display light emitted from the G pixel and B pixel, and passes light emitted from the R pixel. It is comprised so that it may suppress more. In this way, when the information code B attached to the object is read as the reading target code as shown in FIG. 4, the light (red light) reflected by the illumination light in the bright color region is selectively selected by the optical filter. It can be transmitted, and disturbance light can be removed well. On the other hand, when the information code B displayed on the color display device 100 is read as shown in FIG. 5, light from the G pixel Ga and B pixel Ba is suppressed by the optical filter 28 in the region where the bright color pattern is displayed. There is a concern that a waveform component showing a dark color is included as noise in the waveform of the pattern portion. However, in the present invention, it is possible to generate correction data in which noise due to suppression of light from the G pixel Ga and B pixel Ba is corrected, and such noise (in the G pixel Ga and B pixel Ba). Decoding can be performed satisfactorily after properly removing (caused noise).

また、本実施形態では、携帯端末(例えば携帯電話機等)に設けられたカラー表示装置100を読み取り対象としている。このようにすると、様々な場所で広く用いられる携帯端末を読取対象物として当該携帯端末に表示される情報コードを良好に読み取ることができ、ユーザの利便性を一層高めることができる。   In this embodiment, the color display device 100 provided in a mobile terminal (for example, a mobile phone) is a reading target. 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.

[他の実施形態]
本発明は上記記述及び図面によって説明した実施形態に限定されるものではなく、例えば次のような実施形態も本発明の技術的範囲に含まれる。
[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.

上記実施形態では、S2の処理において、所定比率及び所定周期を両方検出していたが、いずれか一方のみであってもよい。例えば、S2の処理を変更し、上述の二値化回路33によって生成された二値データにおいて、上記実施形態と同様に、隣り合う明色領域及び暗色領域の幅の比率が所定比率(1:2)となる領域を検出すると共に、この検出される所定比率領域が所定回数連続する場合にS2においてYesと判断する(補正モードに切り替える)ようにしてもよい。
カラー表示装置100でバーコード等の情報コードを表示する場合、コード周辺のマージンにより、明色(例えば白色)を表示する表示画素がある程度の広さで配置されることになり、当該マージン表示領域では光学フィルタ28によって抑制される画素要素(G画素Ga、B画素Ba)が一定間隔おきに多数含まれることになる。従って、所定比率領域(明色領域及び暗色領域の幅の比率が所定比率(1:2)となるが領域)が所定回数連続することを条件として補正モードに切り替えるようにすれば、カラー表示装置100においてバーコードなどの情報コードが撮像された可能性をより一層適切に判断して補正処理を行うことができる。
In the above embodiment, both the predetermined ratio and the predetermined period are detected in the process of S2, but only one of them may be detected. For example, in the binary data generated by the above-described binarization circuit 33 by changing the processing of S2, the ratio of the widths of the adjacent bright color area and dark color area is a predetermined ratio (1: In addition to detecting the region 2), it is also possible to determine Yes in S2 (switch to the correction mode) when the detected predetermined ratio region continues a predetermined number of times.
When an information code such as a barcode is displayed on the color display device 100, a display pixel that displays a bright color (for example, white) is arranged with a certain size by a margin around the code, and the margin display area Then, a large number of pixel elements (G pixel Ga, B pixel Ba) suppressed by the optical filter 28 are included at regular intervals. Therefore, if the predetermined ratio area (the area where the ratio of the widths of the light color area and the dark color area is the predetermined ratio (1: 2)) continues for a predetermined number of times, the color display device is switched to the correction mode. In 100, it is possible to more appropriately determine the possibility that an information code such as a bar code has been imaged, and perform correction processing.

上記実施形態では、受光波形の二値データにおいて明色領域が所定の周期となる部分を検出していたが、暗色領域が所定の周期となる部分を検出してもよい。或いは、明色領域が所定の長さとなる部分或いは暗色領域が所定の長さとなる部分を検出してもよい。   In the above embodiment, the portion where the light color region has a predetermined cycle is detected in the binary data of the light reception waveform, but the portion where the dark color region has a predetermined cycle may be detected. Alternatively, a portion where the light color region has a predetermined length or a portion where the dark color region has a predetermined length may be detected.

1…光学的情報読取装置
3…読取口
20…照明光源(照明手段)
26…受光センサ
28…光学フィルタ
33…二値化回路(二値化手段)
40…制御回路(補正データ生成手段、デコード手段、モード切替手段、領域検出手段、所定比率領域検出手段)
100…カラー表示装置
B…バーコード(情報コード)
Sa…表示画素
Ra…R画素(画素要素)
Ga…G画素(画素要素)
Ba…B画素(画素要素)
DESCRIPTION OF SYMBOLS 1 ... Optical information reader 3 ... Reading port 20 ... Illumination light source (illumination means)
26 ... Light receiving sensor 28 ... Optical filter 33 ... Binarization circuit (binarization means)
40. Control circuit (correction data generating means, decoding means, mode switching means, area detecting means, predetermined ratio area detecting means)
100 ... Color display device B ... Bar code (information code)
Sa ... display pixel Ra ... R pixel (pixel element)
Ga ... G pixel (pixel element)
Ba ... B pixel (pixel element)

Claims (9)

複数色の各画素要素を組み合わせた表示画素を複数配列してなるカラー表示装置に表示された情報コード及び物体に付された情報コードを読取対象コードとして読取可能な光学的情報読取装置であって、
前記読取対象コードに対して照明光を照射する照明手段と、
前記照明光に対応する所定周波数帯の光を通過させ、前記所定周波数帯以外の光の通過を抑制する光学フィルタと、
前記読取対象コードからの反射光を前記光学フィルタを介して受光し、前記反射光に応じた受光信号を出力する受光センサと、
前記受光センサにおける所定方向の受光波形に基づき、前記所定方向における明色領域及び暗色領域を特定可能な二値データを生成する二値化手段と、
前記二値化手段によって生成された前記二値データにおける各明色領域に対し、前記光学フィルタによって表示光が抑制される前記画素要素に対応した所定幅の補正領域を追加して補正データを生成する補正データ生成手段と、
前記補正データ生成手段によって生成された前記補正データに基づいてデコード処理を実行可能なデコード手段と、
を備えたことを特徴とする光学的情報読取装置。
An optical information reader capable of reading, as a reading target code, an information code displayed on a color display device formed by arranging a plurality of display pixels each having a combination of pixel elements of a plurality of colors and an information code attached to an object. ,
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;
Binarization means for generating binary data capable of specifying a light color region and a dark color region in the predetermined direction based on a light reception waveform in a predetermined direction in the light receiving sensor;
For each bright color area in the binary data generated by the binarization means, a correction area having a predetermined width corresponding to the pixel element whose display light is suppressed by the optical filter is added to generate correction data. Correction data generating means to perform,
Decoding means capable of executing decoding processing based on the correction data generated by the correction data generating means;
An optical information reading apparatus comprising:
前記補正データ生成手段によって前記補正データの生成を行う補正モードと、前記補正データの生成を行わない通常モードとに切り替えるモード切替手段を備え、
前記デコード手段は、前記通常モードのときに前記二値データに基づいてデコード処理を行い、前記補正モードのときに前記補正データに基づいてデコード処理を行う構成をなしており、
前記モード切替手段は、前記補正モードの実行基準となる所定実行条件を満たす場合に前記補正モードに切り替えることを特徴とする請求項1に記載の光学的情報読取装置。
A mode switching means for switching between a correction mode in which the correction data is generated by the correction data generation means and a normal mode in which the correction data is not generated;
The decoding means is configured to perform decoding processing based on the binary data in the normal mode, and to perform decoding processing based on the correction data in the correction mode,
The optical information reading apparatus according to claim 1, wherein the mode switching unit switches to the correction mode when a predetermined execution condition that is an execution reference of the correction mode is satisfied.
前記モード切替手段は、
前記二値化手段によって生成された二値データにおいて、前記明色領域又は前記暗色領域の各長さが所定長さとなる領域、又は前記明色領域又は前記暗色領域の周期が所定周期となる領域を検出する領域検出手段を備え、
前記領域検出手段によって前記所定長さ又は前記所定周期となる領域が検出されることを条件として前記補正モードに切り替えることを特徴とする請求項2に記載の光学的情報読取装置。
The mode switching means is
In the binary data generated by the binarization means, a region where each length of the light color region or the dark color region is a predetermined length, or a region where the cycle of the light color region or the dark color region is a predetermined cycle A region detecting means for detecting
3. The optical information reading apparatus according to claim 2, wherein the correction mode is switched on condition that the area having the predetermined length or the predetermined period is detected by the area detecting unit.
前記照明手段からの前記照明光を導出し、且つ前記読取対象コードからの前記反射光を取り込む読取口を備え、
前記カラー表示装置を前記読取口に接触させた状態で前記読取対象コードを読み取ることを特徴とする請求項3に記載の光学的情報読取装置。
A reading port for deriving the illumination light from the illumination means and taking in the reflected light from the reading object code;
The optical information reading device according to claim 3, wherein the reading target code is read in a state where the color display device is in contact with the reading port.
前記モード切替手段は、
前記二値化手段によって生成された二値データにおいて、隣り合う前記明色領域及び前記暗色領域の幅の比率が所定比率となる領域を検出する所定比率領域検出手段を備え、
前記所定比率領域検出手段によって前記所定比率となる領域が検出されることを条件として前記補正モードに切り替えることを特徴とする請求項3又は請求項4に記載の光学的情報読取装置。
The mode switching means is
In the binary data generated by the binarization means, a predetermined ratio area detection means for detecting an area in which the ratio of the width of the adjacent bright color area and the dark color area is a predetermined ratio,
5. The optical information reading apparatus according to claim 3, wherein the correction mode is switched on condition that an area having the predetermined ratio is detected by the predetermined ratio area detecting unit.
前記モード切替手段は、
前記二値化手段によって生成された二値データにおいて、隣り合う前記明色領域及び前記暗色領域の幅の比率が所定比率となる領域を検出する所定比率領域検出手段を備え、
前記所定比率領域検出手段によって検出される前記所定比率領域が所定回数連続する場合に前記補正モードに切り替えることを特徴とする請求項2から請求項4のいずれか一項に記載の光学的情報読取装置。
The mode switching means is
In the binary data generated by the binarization means, a predetermined ratio area detection means for detecting an area in which the ratio of the width of the adjacent bright color area and the dark color area is a predetermined ratio,
The optical information reading according to any one of claims 2 to 4, wherein the correction mode is switched when the predetermined ratio area detected by the predetermined ratio area detecting unit continues a predetermined number of times. apparatus.
前記カラー表示装置は、R画素、G画素、B画素を所定の列方向に並べて構成される前記表示画素を、少なくとも前記列方向に複数配列してなるものであることを特徴とする請求項1から請求項6のいずれか一項に記載の光学的情報読取装置。   2. The color display device according to claim 1, wherein a plurality of the display pixels configured by arranging R pixels, G pixels, and B pixels in a predetermined column direction are arranged in at least the column direction. The optical information reading device according to claim 6. 前記照明手段は、赤色の前記照明光を照射する構成をなし、
前記光学フィルタは、G画素及びB画素から発せられる前記表示光の通過を、R画素から発せられる光の通過よりも抑制するものであることを特徴とする請求項7に記載の光学的情報読取装置。
The illumination means is configured to irradiate the red illumination light,
8. The optical information reading device according to claim 7, wherein the optical filter suppresses the passage of the display light emitted from the G pixel and the B pixel as compared with the passage of the light emitted from the R pixel. apparatus.
前記カラー表示装置は、携帯端末に設けられた表示装置であることを特徴とする請求項1から請求項8のいずれか一項に記載の光学的情報読取装置。   The optical information reader according to claim 1, wherein the color display device is a display device provided in a mobile terminal.
JP2010061980A 2010-03-18 2010-03-18 Optical information reading device Pending JP2011197856A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2010061980A JP2011197856A (en) 2010-03-18 2010-03-18 Optical information reading device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2010061980A JP2011197856A (en) 2010-03-18 2010-03-18 Optical information reading device

Publications (1)

Publication Number Publication Date
JP2011197856A true JP2011197856A (en) 2011-10-06

Family

ID=44876006

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2010061980A Pending JP2011197856A (en) 2010-03-18 2010-03-18 Optical information reading device

Country Status (1)

Country Link
JP (1) JP2011197856A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5374653B1 (en) * 2013-03-11 2013-12-25 アイリスオーヤマ株式会社 Lighting device
CN103514467A (en) * 2012-06-20 2014-01-15 电装波动株式会社 Information code and information code reading apparatus
US11227302B2 (en) * 2017-04-13 2022-01-18 Nec Platforms, Ltd. Code reading device, method, and program

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103514467A (en) * 2012-06-20 2014-01-15 电装波动株式会社 Information code and information code reading apparatus
CN103514467B (en) * 2012-06-20 2018-05-11 电装波动株式会社 Message code and message code reading device
JP5374653B1 (en) * 2013-03-11 2013-12-25 アイリスオーヤマ株式会社 Lighting device
US11227302B2 (en) * 2017-04-13 2022-01-18 Nec Platforms, Ltd. Code reading device, method, and program

Similar Documents

Publication Publication Date Title
US8857719B2 (en) Decoding barcodes displayed on cell phone
CN101911095A (en) Barcode detection based on morphological operations
JP2004234318A (en) Two-dimension information code, and display method, generation method and reading method thereof
JP2005084890A (en) Optical information reader
JP4325602B2 (en) Optical information reader
JP2011197856A (en) Optical information reading device
US10909432B2 (en) Two-dimensional code composed of a plurality of types of cells
JP5168245B2 (en) Optical information reader
JP2007034546A (en) Optical reader
JP2019091431A (en) Information reader
US11120238B2 (en) Decoding color barcodes
US8960550B2 (en) Minimizing misdecodes in electro-optical readers
JP4650138B2 (en) Optical information reader
JP5888199B2 (en) Bar code reader
JP5896488B2 (en) Bar code reading apparatus, bar code reading method and bar code reading program
JP5104557B2 (en) Optical information reader
JP4378491B2 (en) Code image output device
JP5282559B2 (en) Information code reader
US11334964B2 (en) Color image processing on the fly for bar code readers
JP5724771B2 (en) Optical information reader
JP2019046330A (en) Optical type information reading device
US8840025B2 (en) Arrangement for and method of preventing symbol misreads in electro-optical readers
JP5786783B2 (en) Information code reader
JP5895340B2 (en) Optical information reader
JP6083829B2 (en) Bar code reading apparatus, bar code reading method and bar code reading program