JP5724771B2 - Optical information reader - Google Patents

Optical information reader Download PDF

Info

Publication number
JP5724771B2
JP5724771B2 JP2011195198A JP2011195198A JP5724771B2 JP 5724771 B2 JP5724771 B2 JP 5724771B2 JP 2011195198 A JP2011195198 A JP 2011195198A JP 2011195198 A JP2011195198 A JP 2011195198A JP 5724771 B2 JP5724771 B2 JP 5724771B2
Authority
JP
Japan
Prior art keywords
code
captured
dark color
image
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.)
Active
Application number
JP2011195198A
Other languages
Japanese (ja)
Other versions
JP2013058033A (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 JP2011195198A priority Critical patent/JP5724771B2/en
Publication of JP2013058033A publication Critical patent/JP2013058033A/en
Application granted granted Critical
Publication of JP5724771B2 publication Critical patent/JP5724771B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Description

本発明は、情報コードを光学的に読み取る光学的情報読取装置に関するものである。   The present invention relates to an optical information reader that optically reads an information code.

従来、情報コード(光学的情報)を光学的に読み取る光学的情報読取装置として、下記特許文献1に開示されるハンディーターミナルが知られている。このハンディーターミナルには、その前面にデータ取込口としての開口部が形成されるとともに、その側面にデータ取込口より連続する開口部が形成される。これら開口部は、外部からの光の反射を防止し得る適宜コーティングがなされた透明板により閉塞されている。また、ハンディーターミナル内には、主にデータシンボル(情報コード)に所定光量を照射する照射装置と、読み込まれた情報を取り込む情報取込装置とがそれぞれ配設されている。このハンディーターミナルでは、データ取込口が無反射コーティング透明板により閉塞されることで、照射装置が外部に露呈することがなくなるため、キズが付いたり汚れ等が付着して照射光量が著しく損失される不具合を抑制している。   2. Description of the Related Art Conventionally, a handy terminal disclosed in Patent Document 1 below is known as an optical information reading device that optically reads an information code (optical information). In this handy terminal, an opening as a data intake is formed on the front surface, and an opening continuous from the data intake is formed on a side surface of the handy terminal. These openings are closed by a transparent plate appropriately coated to prevent reflection of light from the outside. In the handy terminal, an irradiation device that mainly irradiates a data symbol (information code) with a predetermined amount of light and an information capture device that captures the read information are provided. In this handy terminal, the data intake is blocked by a non-reflective coating transparent plate, so that the irradiation device is not exposed to the outside, so that the amount of irradiation light is significantly lost due to scratches and dirt. This suppresses malfunctions that occur.

また、下記特許文献2に開示されるバーコードリーダでは、バーコードからの反射光の明度をCCDで取り込むと、その情報がA/D変換部により所定数の階調からなるグレースケールで量子化される。この量子化された情報は、グレースケールの分布を算出してこの算出した分布を解析してしきい値を設定することで、二値化される。そして、この二値化データから識別部によりバーコードの配列パターンが識別されると、この配列パターンがデータ変換部により英数字などのコードデータに変換されることで、バーコードの読み取りが完了する。このように、バーコード自体がかすれてしまった場合であっても、取り込んだ反射光を即時的に二値化するのではなく、一旦グレースケールで取り込み、その傾向を考慮して二値化することで、バーコードが示す情報をより正確に読み取っている。   Further, in the barcode reader disclosed in Patent Document 2 below, when the brightness of reflected light from the barcode is captured by the CCD, the information is quantized by the A / D converter at a gray scale having a predetermined number of gradations. Is done. The quantized information is binarized by calculating a gray scale distribution, analyzing the calculated distribution, and setting a threshold value. When the barcode arrangement pattern is identified from the binarized data by the identification unit, the barcode conversion is completed by converting the arrangement pattern into code data such as alphanumeric characters by the data conversion unit. . In this way, even if the barcode itself has become faint, the captured reflected light is not immediately binarized, but is once captured in gray scale and binarized in consideration of the tendency. Thus, the information indicated by the barcode is read more accurately.

特開平10−228518号公報JP-A-10-228518 特開平09−297807号公報JP 09-297807 A

ところで、店舗や入場口等に設置されるバーコードや二次元コードなどの情報コードを光学的に読み取る定置式光学的情報読取装置では、読取口が上向きに配置される場合が多く、筐体内部に配置されて情報コードからの反射光を読取口を介して受光する受光手段等を保護するために、当該開口部に透光可能な防塵プレートが配設される。   By the way, in a stationary optical information reader that optically reads an information code such as a barcode or a two-dimensional code installed in a store or an entrance, the reading opening is often arranged upward, and the inside of the housing In order to protect the light receiving means and the like that are arranged in the light receiving light reflected from the information code through the reading port, a light-proof dust-proof plate is disposed in the opening.

しかしながら、読取口を保護する防塵プレートなどの保護部材に対して汚れの付着や損傷等が生じると、読み取りが失敗するだけでなく、撮像した汚れや損傷等を暗色系領域と判断することで誤読してしまう場合がある。このような誤読は、定置式の読取装置だけでなく、携帯式の読取装置や上記特許文献1に開示されるハンディーターミナル等でも起こりうる問題である。また、上記特許文献2に開示されるバーコードリーダでは、バーコード自体のかすれに関して補正できても、上述した保護部材に生じた汚れや損傷等に起因する誤読を防止することはできないという問題がある。   However, if dirt is attached or damaged to a protective member such as a dust-proof plate that protects the reading port, reading will not only fail, but it will be misread by judging the imaged dirt and damage as dark areas. May end up. Such misreading is a problem that may occur not only in a stationary reader, but also in a portable reader, a handy terminal disclosed in Patent Document 1, and the like. In addition, the barcode reader disclosed in Patent Document 2 has a problem that even if the barcode itself can be corrected for blurring, it cannot prevent misreading due to dirt or damage generated on the protective member. is there.

本発明は、上述した課題を解決するためになされたものであり、その目的とするところは、読取口を保護する保護部材に生じた汚れや損傷等に起因する誤読を防止し得る光学的読取装置を提供することにある。   The present invention has been made in order to solve the above-described problems, and an object of the present invention is to provide an optical reading that can prevent misreading caused by dirt or damage generated on a protective member that protects a reading port. To provide an apparatus.

上記目的を達成するため、請求項1に記載の光学的情報読取装置は、QRコード(C)からの反射光(Lr)を読取口(13)を介して受光することで当該QRコードを撮像する撮像手段(28)と、前記撮像手段により撮像された前記QRコードのコード画像に基づいて当該QRコードをデコードするデコード手段(40)と、を備える光学的情報読取装置(10)であって、前記反射光が透光可能であって前記読取口内を保護するように当該読取口を覆う保護部材(14)と、前記撮像手段により撮像された撮像画像(P1,P2)が逐次記憶される記憶手段(35)と、前記撮像手段により撮像された前記撮像画像と前記記憶手段に記憶された前記撮像画像とに共通して形状および輝度が変化しない暗色系領域がある場合に、この暗色系領域(S)を不変領域として検出する検出手段(40)と、を備え、前記デコード手段は、前記検出手段により検出された前記不変領域が前記コード画像に含まれるときには、この不変領域が前記コード画像に対して占める割合がデコードに影響を及ぼさない程度である場合に限り、当該コード画像に対してデコードすることを特徴とする。 To achieve the above object, the optical information reader according to claim 1 picks up the QR code by receiving the reflected light (Lr) from the QR code (C) through the reading port (13). An optical information reader (10) comprising: an imaging means (28) for performing decoding; and a decoding means (40) for decoding the QR code based on a code image of the QR code imaged by the imaging means. The protective member (14) that covers the reading port so that the reflected light can be transmitted and protects the reading port, and the captured images (P1, P2) captured by the imaging unit are sequentially stored. If there is a dark color system area whose shape and brightness do not change in common between the storage means (35) and the captured image captured by the imaging means and the captured image stored in the storage means, this dark color Detection means (40) for detecting the system area (S) as an invariant area, and the decoding means includes the invariant area when the invariant area detected by the detection means is included in the code image. The code image is decoded only when the ratio of the code image to the code image does not affect the decoding.

請求項に記載の発明は、請求項に記載の光学的情報読取装置において、前記検出手段は、前記撮像手段により撮像された前記撮像画像と前記記憶手段に記憶された複数の撮像画像とに共通して形状および輝度が変化しない暗色系領域がある場合に、この暗色系領域を前記不変領域として検出することを特徴とする。 The invention described in claim 2 is the optical information reading apparatus according to claim 1, wherein the detecting means includes a plurality of captured images stored in the storage means and the captured image captured by the imaging means If there is a dark color region that does not change in shape and brightness in common, the dark color region is detected as the invariant region.

請求項に記載の発明は、請求項1または2に記載の光学的情報読取装置において、前記検出手段により前記不変領域が検出されると、前記保護部材のメンテナンスを促すメンテナンス情報を報知する報知手段(43)を備えることを特徴とする。 According to a third aspect of the present invention, in the optical information reading device according to the first or second aspect, when the invariable region is detected by the detection means, a notification for informing maintenance information that prompts maintenance of the protection member. Means (43) are provided.

請求項に記載の発明は、請求項に記載の光学的情報読取装置において、前記報知手段は、前記撮像手段により撮像された前記撮像画像に対して前記検出手段により検出された前記不変領域の占める割合(Sr)がデコードに影響を及ぼす程度である場合に、前記メンテナンス情報を報知することを特徴とする。 According to a fourth aspect of the present invention, in the optical information reading device according to the third aspect , the informing means detects the invariable area detected by the detection means with respect to the captured image captured by the imaging means. The maintenance information is notified when the ratio (Sr) occupies is such that it affects decoding.

請求項に記載の発明は、請求項またはに記載の光学的情報読取装置において、前記報知手段は、電源投入時に限り、この電源投入時に前記撮像手段により撮像された撮像画像と前記記憶手段に記憶された撮像画像とに共通して形状および輝度が変化しない暗色系領域がある場合に、この暗色系領域を前記不変領域として前記検出手段により検出されると、前記メンテナンス情報を報知することを特徴とする。
なお、上記各括弧内の符号は、後述する実施形態に記載の具体的手段との対応関係を示すものである。
According to a fifth aspect of the present invention, in the optical information reading apparatus according to the third or fourth aspect , the notifying unit is configured to capture the captured image captured by the imaging unit when the power is turned on and the storage only when the power is turned on. When there is a dark color region where the shape and brightness do not change in common with the captured image stored in the means, the maintenance information is notified when the dark color region is detected as the invariable region by the detection means It is characterized by that.
In addition, the code | symbol in each said parenthesis shows the correspondence with the specific means as described in embodiment mentioned later.

請求項1の発明では、撮像手段により撮像された撮像画像と記憶手段に記憶された撮像画像とに共通して形状および輝度が変化しない暗色系領域がある場合に、この暗色系領域が検出手段により不変領域として検出される。そして、検出手段により検出された上記不変領域がコード画像に含まれるときには、この不変領域がコード画像に対して占める割合がデコードに影響を及ぼさない程度である場合に限り、当該コード画像に対してデコードがなされる。 According to the first aspect of the present invention, when there is a dark color region where the shape and the luminance do not change in common between the captured image captured by the image capturing unit and the captured image stored in the storage unit, the dark color region is detected by the detection unit. Is detected as an invariant region. When the invariant area detected by the detecting means is included in the code image, the code image is only included in the code image only when the ratio of the invariant area to the code image does not affect the decoding. Decoding is done.

これにより、読取口を覆って保護する保護部材に対して汚れの付着や損傷等が生じることから当該汚れや損傷等が暗色系領域として撮像される場合でも、この暗色系領域が上記不変領域として検出されて、この不変領域がコード画像に対して占める割合がデコードに影響を及ぼす程度である場合には、デコードが実施されないので、上記不変領域の原因となる保護部材に生じた汚れや損傷等に起因する誤読を確実に防止することができる。
したがって、読取口を保護する保護部材に生じた汚れや損傷等に起因する誤読を防止することができる。
As a result, dirt adheres to or damages the protective member that covers and protects the reading port. Therefore, even when the dirt or damage is imaged as a dark color area, the dark color area is defined as the invariant area. If it is detected and the proportion of the invariant area to the code image is such that the decoding is affected, the decoding is not performed, so that the protective member causing the invariant area is contaminated or damaged. It is possible to reliably prevent misreading caused by.
Accordingly, it is possible to prevent erroneous reading due to dirt or damage generated on the protective member that protects the reading port.

請求項の発明では、撮像手段により撮像された撮像画像と記憶手段に記憶された複数の撮像画像とに共通して形状および輝度が変化しない暗色系領域がある場合に、この暗色系領域が検出手段により上記不変領域として検出される。このように複数の撮像画像を用いて比較することで、上記不変領域の検出精度を向上させることができる。 In the invention of claim 2 , when there is a dark color region in which the shape and brightness do not change in common between the captured image captured by the image capturing unit and the plurality of captured images stored in the storage unit, the dark color region is It is detected as the invariant region by the detecting means. Thus, the comparison accuracy using the plurality of captured images can improve the detection accuracy of the invariant region.

請求項の発明では、検出手段により上記不変領域が検出される場合、すなわち、保護部材に対して汚れの付着や損傷等が生じた場合には、上記メンテナンス情報が報知手段により報知されて、使用者に対して保護部材のメンテナンスが促される。このメンテナンス情報の報知に応じて保護部材の清掃や交換等がなされることで、撮像手段による撮像時に上記不変領域が撮像されることもないので、保護部材に生じた汚れや損傷等に起因する誤読を確実に防止することができる。 In the invention of claim 3 , when the invariable area is detected by the detecting means, that is, when dirt adheres to the protective member or damage occurs, the maintenance information is notified by the notifying means, The user is prompted to maintain the protective member. The protection member is cleaned or replaced in accordance with the notification of the maintenance information, so that the invariant region is not imaged at the time of imaging by the imaging means, and this is caused by dirt, damage or the like generated on the protection member. Misreading can be reliably prevented.

請求項の発明では、撮像手段により撮像された撮像画像に対して検出手段により検出された上記不変領域の占める割合がデコードに影響を及ぼす程度、例えば3%を超える程度である場合に、上記メンテナンス情報が報知手段により報知される。すなわち、上記不変領域の占める割合がデコードに影響を及ぼさない程度、例えば3%以下程度である場合には、上記メンテナンス情報が報知手段により報知されることもない。このため、デコードに影響を及ぼさない程度の汚れや損傷等が保護部材に生じた場合では、上記メンテナンス情報が報知されないため、過度のメンテナンス情報の報知を避けて適切な時期でのメンテナンス情報の報知を実施することができる。 In the invention of claim 4 , when the ratio of the invariant area detected by the detection unit to the captured image captured by the imaging unit affects the decoding, for example, exceeds 3%, Maintenance information is notified by the notification means. That is, when the proportion of the invariant area does not affect the decoding, for example, about 3% or less, the maintenance information is not notified by the notification means. For this reason, when the protective member is contaminated or damaged so as not to affect the decoding, the maintenance information is not notified. Therefore, the maintenance information is notified at an appropriate time by avoiding excessive maintenance information. Can be implemented.

請求項の発明では、電源投入時に限り、検出手段により上記不変領域が検出されると、報知手段によりメンテナンス情報が報知されるため、日常の始業点検がセルフチェックでき安心して使用することができる。 In the invention of claim 5, only when power is turned on when the constant region is discovered by the detection means, since the maintenance information is notified by the notification means can be used safely everyday start-up inspection can be self-check .

第1実施形態に係る光学的情報読取装置を概略的に示す斜視図である。1 is a perspective view schematically showing an optical information reading device according to a first embodiment. 図1の光学的情報読取装置の電気的構成を示すブロック図である。It is a block diagram which shows the electrical structure of the optical information reader of FIG. 第1実施形態における読取処理の流れを例示するフローチャートである。4 is a flowchart illustrating a flow of a reading process in the first embodiment. 図4(A)は、撮像処理にて撮像された撮像画像を例示する説明図であり、図4(B)は、メモリに記憶された撮像画像を例示する説明図である。FIG. 4A is an explanatory diagram illustrating a captured image captured by the imaging process, and FIG. 4B is an explanatory diagram illustrating a captured image stored in the memory. 第2実施形態における読取処理の流れを例示するフローチャートである。It is a flowchart which illustrates the flow of the reading process in 2nd Embodiment.

[第1実施形態]
以下、本発明の第1実施形態に係る光学的情報読取装置について、図面を参照して説明する。図1は、第1実施形態に係る光学的情報読取装置10を概略的に示す斜視図である。図2は、図1の光学的情報読取装置10の電気的構成を示すブロック図である。
図1に示すように、光学的情報読取装置10は、定置式の読取装置であって、ABS樹脂等の合成樹脂からなるケース11によって外郭が構成され、このケース11の内部には、バーコードや二次元コード等の情報コードの読み取りを行う回路20(後述)が収容されている。なお、図1では、光学的情報読取装置10により、携帯端末Tの表示画面に表示される情報コードを読み取る状態を例示している。
[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. FIG. 1 is a perspective view schematically showing an optical information reading apparatus 10 according to the first embodiment. FIG. 2 is a block diagram showing an electrical configuration of the optical information reading apparatus 10 of FIG.
As shown in FIG. 1, an optical information reader 10 is a stationary reader, and an outer case is formed by a case 11 made of a synthetic resin such as ABS resin. And a circuit 20 (described later) for reading an information code such as a two-dimensional code. FIG. 1 illustrates a state where the optical information reader 10 reads an information code displayed on the display screen of the mobile terminal T.

ケース11の上面12は、略平面状に形成されており、この上面12の中央には、矩形状に形成される読取口13が形成されるとともに、この読取口13内を保護するように当該読取口13を覆う保護部材として読取窓(防塵プレート)14が設けられている。この読取窓14は、当該読取装置10から出射される照明光および情報コードCからの反射光を透過可能な透明のアクリル樹脂やガラス等から形成されている。また、読取窓14をケース11に設けることにより、ケース11内部への塵や埃などの異物の侵入を防止している。   The upper surface 12 of the case 11 is formed in a substantially flat shape, and a reading port 13 formed in a rectangular shape is formed at the center of the upper surface 12, and the reading port 13 is protected so as to protect the inside. A reading window (dust-proof plate) 14 is provided as a protective member that covers the reading port 13. The reading window 14 is formed of a transparent acrylic resin or glass that can transmit illumination light emitted from the reading device 10 and reflected light from the information code C. In addition, by providing the reading window 14 in the case 11, foreign matter such as dust and dirt can be prevented from entering the case 11.

次に、光学的情報読取装置10の回路20の電気的構成について説明する。
図2に示すように、回路20は、主に、照明光源21、受光センサ28、結像レンズ27等の光学系と、メモリ35、制御回路40等のマイクロコンピュータ(以下「マイコン」という)系と、から構成されている。
Next, the electrical configuration of the circuit 20 of the optical information reader 10 will be described.
As shown in FIG. 2, the circuit 20 mainly includes an optical system such as an illumination light source 21, a light receiving sensor 28, and an imaging lens 27, and a microcomputer (hereinafter referred to as “microcomputer”) system such as a memory 35 and a control circuit 40. And is composed of.

光学系は、投光光学系と、受光光学系とに分かれている。投光光学系を構成する照明光源21は、照明光Lfを発光可能な照明光源として機能するもので、例えば、赤色のLEDとこのLEDの出射側に設けられるレンズとから構成されている。なお、図2では、情報コードCが表示画面に表示された携帯端末Tに向けて照明光Lfを照射する例を概念的に示している。なお、照明光Lfは、上述のように、読取窓14を介してケース11外へ出射される。   The optical system is divided into a light projecting optical system and a light receiving optical system. The illumination light source 21 constituting the light projecting optical system functions as an illumination light source capable of emitting the illumination light Lf, and includes, for example, a red LED and a lens provided on the emission side of the LED. In addition, in FIG. 2, the example which irradiates the illumination light Lf toward the portable terminal T with which the information code C was displayed on the display screen is shown notionally. The illumination light Lf is emitted outside the case 11 through the reading window 14 as described above.

受光光学系は、受光センサ28、結像レンズ27、反射鏡(図示略)などによって構成されている。受光センサ28は、CCDエリアセンサとして構成されるものであり、情報コードCまたは携帯端末T等に照射されて反射した反射光Lrを受光可能に構成されている。この受光センサ28は、結像レンズ27を介して入射する入射光を受光可能にプリント配線板(図示略)に実装されている。なお、受光センサ28は、特許請求の範囲に記載の「撮像手段」の一例に相当し得る。   The light receiving optical system includes a light receiving sensor 28, an imaging lens 27, a reflecting mirror (not shown), and the like. The light receiving sensor 28 is configured as a CCD area sensor, and is configured to receive the reflected light Lr irradiated and reflected on the information code C or the portable terminal T. The light receiving sensor 28 is mounted on a printed wiring board (not shown) so as to be able to receive incident light incident through the imaging lens 27. The light receiving sensor 28 may correspond to an example of an “imaging unit” recited in the claims.

結像レンズ27は、外部から読取窓14を介して入射する入射光を集光して受光センサ28の受光面28aに像を結像可能な結像光学系として機能するものである。本実施形態では、照明光源21から照射された照明光Lfが情報コードCにて反射した後、この反射光Lrを結像レンズ27で集光し、受光センサ28の受光面28aに情報コードCの像を結像させている。   The imaging lens 27 functions as an imaging optical system that collects incident light incident from the outside through the reading window 14 and forms an image on the light receiving surface 28a of the light receiving sensor 28. In the present embodiment, after the illumination light Lf emitted from the illumination light source 21 is reflected by the information code C, the reflected light Lr is condensed by the imaging lens 27, and the information code C is applied to the light receiving surface 28 a of the light receiving sensor 28. This image is formed.

マイコン系は、増幅回路31、A/D変換回路33、メモリ35、アドレス発生回路36、同期信号発生回路38、制御回路40等から構成されている。このマイコン系は、マイコン(情報処理装置)として機能し得る制御回路40およびメモリ35を中心として構成され、上述した光学系によって撮像された情報コードCの画像信号をハードウェア的及びソフトウェア的に信号処理し得るものである。   The microcomputer system includes an amplification circuit 31, an A / D conversion circuit 33, a memory 35, an address generation circuit 36, a synchronization signal generation circuit 38, a control circuit 40, and the like. This microcomputer system is configured around a control circuit 40 and a memory 35 that can function as a microcomputer (information processing apparatus), and the image signal of the information code C imaged by the optical system described above is signaled in hardware and software. It can be processed.

光学系の受光センサ28から出力される画像信号(アナログ信号)は、増幅回路31に入力され所定ゲインで増幅された後、A/D変換回路33に入力されると、アナログ信号からディジタル信号に変換される。そして、ディジタル化された画像信号、つまり画像データ(画像情報)は、メモリ35に入力されると、画像データ蓄積領域に蓄積される。なお、同期信号発生回路38は、受光センサ28およびアドレス発生回路36に対する同期信号を発生可能に構成されており、またアドレス発生回路36は、この同期信号発生回路38から供給される同期信号に基づいて、メモリ35に格納される画像データの格納アドレスを発生可能に構成されている。   The image signal (analog signal) output from the light receiving sensor 28 of the optical system is input to the amplification circuit 31 and amplified with a predetermined gain, and then input to the A / D conversion circuit 33. Converted. When the digitized image signal, that is, image data (image information) is input to the memory 35, it is stored in the image data storage area. The synchronization signal generation circuit 38 is configured to generate a synchronization signal for the light receiving sensor 28 and the address generation circuit 36, and the address generation circuit 36 is based on the synchronization signal supplied from the synchronization signal generation circuit 38. Thus, the storage address of the image data stored in the memory 35 can be generated.

メモリ35は、半導体メモリ装置で、例えばRAM(DRAM、SRAM等)やROM(EPROM、EEPROM等)がこれに相当する。このメモリ35のうちのRAMには、上述した画像データ蓄積領域のほかに、制御回路40が算術演算や論理演算等の各処理時に利用する作業領域や読取条件テーブルも確保可能に構成されている。またROMには、後述する読取処理、解析処理等を実行可能な所定プログラムやその他、照明光源21、受光センサ28等の各ハードウェアを制御可能なシステムプログラム等が予め格納されている。なお、メモリ35は、特許請求の範囲に記載の「記憶手段」の一例に相当し得る。   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 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 reading processing, analysis processing, and the like, which will be described later, and a system program that can control each hardware such as the illumination light source 21 and the light receiving sensor 28. The memory 35 may correspond to an example of a “storage unit” described in the claims.

制御回路40は、光学的情報読取装置10全体を制御可能なマイコンで、CPU、システムバス、入出力インタフェース等からなるもので、メモリ35とともに情報処理装置を構成し得るもので情報処理機能を有する。この制御回路40は、内蔵された入出力インタフェースを介して種々の入出力装置(周辺装置)と接続可能に構成されており、本実施形態の場合、制御回路40には、LEDなどからなる発光部43や、各種操作キーなどからなる操作部47、通信インタフェース48等が接続されている。   The control circuit 40 is a microcomputer capable of controlling the entire optical information reading device 10 and includes a CPU, a system bus, an input / output interface, and the like, and can constitute an information processing device together with the memory 35 and has an information processing function. . The control circuit 40 is configured to be connectable to various input / output devices (peripheral devices) via a built-in input / output interface. In the case of the present embodiment, the control circuit 40 includes a light emitting device such as an LED. The unit 43, an operation unit 47 including various operation keys, a communication interface 48, and the like are connected.

これにより、制御回路40は、例えば、情報コードの読み取りやメンテナンスに関する情報を通知するインジケータとして機能する発光部43の点灯・消灯や、操作部47から入力される操作信号に応じた光学的情報読取装置10の動作の制御、外部装置とのシリアル通信を可能にする通信インタフェース48の通信制御等を可能にしている。なお、発光部43は、特許請求の範囲に記載の「報知手段」の一例に相当し得る。   Thereby, the control circuit 40, for example, turns on / off the light emitting unit 43 that functions as an indicator for notifying information on reading of information codes and maintenance, and optical information reading in accordance with an operation signal input from the operation unit 47. Control of the operation of the device 10, communication control of the communication interface 48 enabling serial communication with an external device, and the like are enabled. The light emitting unit 43 may correspond to an example of “notification unit” described in the claims.

次に、このように構成される光学的情報読取装置10の制御回路40にて実行される読取処理について、図を用いて説明する。図3は、第1実施形態における読取処理の流れを例示するフローチャートである。図4(A)は、撮像処理にて撮像された撮像画像P1を例示する説明図であり、図4(B)は、メモリ35に記憶された撮像画像P2を例示する説明図である。   Next, a reading process executed by the control circuit 40 of the optical information reading apparatus 10 configured as described above will be described with reference to the drawings. FIG. 3 is a flowchart illustrating the flow of the reading process in the first embodiment. 4A is an explanatory diagram illustrating the captured image P1 captured by the imaging process, and FIG. 4B is an explanatory diagram illustrating the captured image P2 stored in the memory 35. As illustrated in FIG.

本実施形態のように、読取口13が上向きに配置される定置式の光学的情報読取装置10では、読取口13を保護する読取窓14に汚れ等が付着しやすいだけでなく、読取口13にかざした携帯電話などが接触することで読取窓14に損傷等が生じる場合がある。この場合、読取口13にかざされた情報コードを撮像するときに、汚れや損傷等が反射光を遮るため暗色系領域として撮像されてしまい、この暗色系領域のために撮像した情報コードを誤読してしまう場合がある。このような誤読は、定置式の読取装置だけでなく、携帯式の読取装置でも生じる問題である。   In the stationary optical information reading apparatus 10 in which the reading port 13 is arranged upward as in the present embodiment, not only the dirt is likely to adhere to the reading window 14 that protects the reading port 13, but also the reading port 13. The reading window 14 may be damaged by contact with a mobile phone or the like that is held over. In this case, when the information code held over the reading port 13 is imaged, dirt or damage is captured as a dark color region because the reflected light is blocked, and the information code captured for the dark color region is misread. May end up. Such misreading is a problem that occurs not only in a stationary reader but also in a portable reader.

そこで、本実施形態に係る読取処理では、読取口13を保護する読取窓14に対して汚れの付着や損傷等が生じたことで、これら汚れや損傷等が暗色系領域として撮像される場合でも、この暗色系領域に起因する誤読を防止するための処理がなされる。
以下、制御回路40にて実行される読取処理について図3に示すフローチャートを用いて詳細に説明する。
Therefore, in the reading processing according to the present embodiment, even when dirt is attached or damaged to the reading window 14 that protects the reading port 13, even when the dirt or damage is imaged as a dark color system region. A process for preventing misreading due to the dark color region is performed.
Hereinafter, the reading process executed by the control circuit 40 will be described in detail with reference to the flowchart shown in FIG.

光学的情報読取装置10が作動状態になり、制御回路40により読取処理が開始されると、図3のステップS101に示す判定処理にて、撮像可能状態であるか否かについて判定される。そして、操作部47に対する所定の操作、例えばトリガスイッチが操作されて、光学的情報読取装置10が撮像可能状態になると(S101でYes)、ステップS103に示す撮像処理がなされる。この処理では、照明光源21から照明光Lfが、読取窓14を介して上方に照射される。そして、そして、読取口13にかざされた情報コードなどにて反射された反射光Lrが受光センサ28にて受光されることにより受光センサ28から出力される信号に基づいて撮像画像が取得される。   When the optical information reader 10 is activated and reading processing is started by the control circuit 40, it is determined whether or not the imaging is possible in the determination processing shown in step S101 of FIG. Then, when a predetermined operation on the operation unit 47, for example, a trigger switch is operated and the optical information reading apparatus 10 is ready for imaging (Yes in S101), an imaging process shown in step S103 is performed. In this process, the illumination light Lf is irradiated upward from the illumination light source 21 through the reading window 14. Then, when the reflected light Lr reflected by the information code or the like held over the reading port 13 is received by the light receiving sensor 28, a captured image is acquired based on the signal output from the light receiving sensor 28. .

このように撮像画像が取得されると、ステップS105に示すコード位置検出処理がなされる。この処理では、取得された撮像画像に情報コードが含まれる場合に、その情報コードが撮像画像に占めるコード位置を検出する。例えば、取得された撮像画像にQRコード(登録商標)が含まれる場合には、QRコードの位置検出パターン(ファインダパターン)を抽出することで、当該QRコードが撮像画像に占めるコード位置を検出することができる。   When the captured image is acquired in this way, the code position detection process shown in step S105 is performed. In this process, when an information code is included in the acquired captured image, a code position occupied by the information code in the captured image is detected. For example, when a QR code (registered trademark) is included in the acquired captured image, a code position occupied by the QR code in the captured image is detected by extracting a QR code position detection pattern (finder pattern). be able to.

ここで、撮像された画像に情報コードが含まれていない場合には(S107でNo)、上述したステップS103に示す撮像処理からの処理が繰り返される。そして、読取口13に読み取らせたい情報コードがかざされることで、撮像された画像に情報コードが含まれており、そのコード位置が検出されると(S107でYes)、ステップS109に示す暗色系領域抽出がなされる。   Here, when the information code is not included in the captured image (No in S107), the processing from the imaging processing shown in step S103 described above is repeated. When the information code to be read is held over the reading port 13 and the captured image includes the information code and the code position is detected (Yes in S107), the dark color system shown in step S109 is displayed. Region extraction is performed.

この処理では、上記ステップS103にて撮像された撮像画像と、後述するようにメモリ35に記憶された撮像画像とについて、共通して形状および輝度が変化しない暗色系領域を抽出するための処理がなされる。そして、ステップS111に示す全画像比率判定処理にて、上述のように抽出された暗色系領域の撮像画像に占める割合(以下、不変割合Srという)が第1の閾値Saよりも大きいか否かについて判定される。ここで、第1の閾値Saは、デコードに影響を及ぼさない程度の値であり、例えば、3%に設定されている。   In this process, there is a process for extracting a dark color region in which the shape and brightness do not change in common for the captured image captured in step S103 and the captured image stored in the memory 35 as will be described later. Made. Whether or not the ratio (hereinafter referred to as invariant ratio Sr) of the dark color region extracted as described above to the captured image in the all-image ratio determination process shown in step S111 is larger than the first threshold value Sa. Is determined. Here, the first threshold value Sa is a value that does not affect the decoding, and is set to 3%, for example.

ここで、抽出された暗色系領域の不変割合Srが上記第1の閾値Sa以下であるか、そもそも暗色系領域が抽出されない場合には(S111でNo)、読取窓14に対してデコードに影響を及ぼす程度の汚れの付着や損傷等が生じていないとして、ステップS115に示すデコード処理がなされる。この処理では、撮像された撮像画像のうち情報コードに相当するコード画像に対して公知のデコード処理が実施される。なお、ステップS115に示すデコード処理を実行する制御回路40は、特許請求の範囲に記載の「デコード手段」の一例に相当し得る。   Here, if the invariable ratio Sr of the extracted dark color region is equal to or less than the first threshold value Sa or the dark color region is not extracted in the first place (No in S111), the reading window 14 is affected by the decoding. Decoding processing shown in step S115 is performed on the assumption that no dirt adheres or damages to such an extent as to cause the problem. In this process, a known decoding process is performed on the code image corresponding to the information code among the captured images. The control circuit 40 that executes the decoding process shown in step S115 can correspond to an example of a “decoding unit” recited in the claims.

このデコード処理によるデコードが成功して、情報コードとして符号化された文字データ等が取得されると(S117でYes)、ステップS119に示すデータ送信処理がなされ、上記デコード処理により取得された文字データ等が通信インタフェース48を介して外部機器等の上位システムに送信(出力)される。   When the decoding by the decoding process is successful and character data encoded as an information code is acquired (Yes in S117), the data transmission process shown in step S119 is performed, and the character data acquired by the decoding process is performed. Are transmitted (output) to the host system such as an external device via the communication interface 48.

このように取得された文字データ等が送信されるか、ステップS115に示すデコード処理が失敗すると(S117でNo)、ステップS121に示す全画像比率判定処理にて、上記暗色系領域抽出処理にて抽出された暗色系領域の不変割合Srが第2の閾値Sbよりも大きいか否かについて判定される。ここで、第2の閾値Sbは、デコードに影響を及ぼさない程度の値であり、例えば、3%に設定されている。なお、本実施形態では、第1の閾値Saおよび第2の閾値Sbは、双方とも3%に設定されているが、これに限らず、互いに異なる値に設定されてもよい。   When the character data or the like acquired in this way is transmitted or the decoding process shown in step S115 fails (No in S117), in the entire image ratio determination process shown in step S121, the dark color region extraction process is performed. It is determined whether or not the invariable ratio Sr of the extracted dark color region is larger than the second threshold value Sb. Here, the second threshold value Sb is a value that does not affect the decoding, and is set to 3%, for example. In the present embodiment, the first threshold value Sa and the second threshold value Sb are both set to 3%. However, the present invention is not limited to this, and may be set to different values.

ここで、抽出された暗色系領域の不変割合Srが上記第2の閾値Sb以下であるか、そもそも暗色系領域が抽出されない場合には(S121でNo)、読取窓14に対してデコードに影響を及ぼす程度の汚れの付着や損傷等が生じていないとして、ステップS123に示す画像保存処理がなされる。この処理では、上記撮像処理にて撮像された撮像画像がメモリ35に記憶される。このように、上記撮像処理にて撮像された撮像画像は、順次メモリ35に記憶されることとなる。そして、上記ステップS101に示す判定処理からの処理が繰り返される。なお、メモリ35に記憶される撮像画像は、例えば、リングバッファ形式により古い撮像画像に上書き保存されることで記憶容量を制限するように記憶されてもよいし、所定の期間内に限り記憶されてもよい。   Here, when the invariable ratio Sr of the extracted dark color region is equal to or smaller than the second threshold value Sb or the dark color region is not extracted in the first place (No in S121), the reading window 14 is affected by the decoding. The image storage process shown in step S123 is performed on the assumption that no dirt adheres or damages to such an extent as to cause the damage. In this process, the captured image captured in the imaging process is stored in the memory 35. As described above, the captured images captured by the imaging process are sequentially stored in the memory 35. And the process from the determination process shown to said step S101 is repeated. The captured image stored in the memory 35 may be stored so as to limit the storage capacity by being overwritten and saved on an old captured image in a ring buffer format, for example, or stored only within a predetermined period. May be.

一方、読取窓14に対してデコードに影響を及ぼす程度の汚れの付着や損傷等が生じており、上記撮像処理にて図4(A)に例示するように情報コードC1を含む撮像画像P1が撮像され、メモリ35に図4(B)に例示するように情報コードC2を含む撮像画像P2が記憶されていると、上記暗色系領域抽出処理では、図4(A),(B)の双方に共通する暗色系領域S1と暗色系領域S2とが抽出される。そして、このように抽出された2つの暗色系領域S1および暗色系領域S2のうち、暗色系領域S1の不変割合Srが第1の閾値Saよりも大きくなると(S111でYes)、ステップS113に示す不変領域除外処理がなされる。   On the other hand, the reading window 14 is contaminated or damaged to the extent that the decoding is affected, and the captured image P1 including the information code C1 in the imaging process as shown in FIG. When the captured image P2 including the information code C2 is stored in the memory 35 as illustrated in FIG. 4B, the dark color region extraction process performs both of FIGS. 4A and 4B. A dark color region S1 and a dark color region S2 that are common to each other are extracted. When the invariable ratio Sr of the dark color region S1 out of the two dark color region S1 and dark color region S2 thus extracted becomes larger than the first threshold value Sa (Yes in S111), the process is shown in step S113. Invariant area exclusion processing is performed.

この処理では、上述のように抽出された暗色系領域S1が不変領域として検出され、この不変領域を上記撮像処理にて撮像された撮像画像P1から除外した画像が生成される。そして、この不変領域が除外された画像に対して、ステップS115に示すデコード処理がなされる。これにより、上記不変領域の原因となる読取窓14に生じた汚れや損傷等がデコード結果に影響を及ぼすことを防止することができる。なお、ステップS111に示す判定処理を実行する制御回路40は、特許請求の範囲に記載の「検出手段」の一例に相当し得る。   In this process, the dark color system area S1 extracted as described above is detected as an invariant area, and an image in which the invariant area is excluded from the captured image P1 captured in the imaging process is generated. Then, the decoding process shown in step S115 is performed on the image from which the invariant area is excluded. As a result, it is possible to prevent the decoding result from being affected by dirt, damage, or the like generated in the reading window 14 that causes the invariable area. The control circuit 40 that executes the determination process shown in step S111 may correspond to an example of a “detection unit” recited in the claims.

ここで、双方に共通する暗色系領域が図4(A),(B)に例示する暗色系領域S2のみであり、この暗色系領域S2の不変割合Srが第1の閾値Sa以下であると(S111でNo)、この暗色系領域S2を撮像画像から除外することなく、撮像処理にて撮像された撮像画像について上記デコード処理によりデコード処理がなされることとなる。   Here, the dark color region common to both is only the dark color region S2 illustrated in FIGS. 4A and 4B, and the invariable ratio Sr of the dark color region S2 is equal to or less than the first threshold value Sa. (No in S111), the captured image captured by the imaging process is decoded by the decoding process without excluding the dark color region S2 from the captured image.

なお、ステップ111に示す判定処理では、上述のように抽出された暗色系領域の不変割合Srが第1の閾値Saよりも大きくなる場合に、この暗色系領域を不変領域として検出することに限らず、以下のようにして、不変領域を検出してもよい。
すなわち、撮像画像を複数の分割エリア(例えば、128の分割エリア)に分割して、双方に共通する暗色系領域が隣接するN以上の分割エリア(例えば、4つの分割エリア)にまたがるように検出されるときに、当該暗色系領域を不変領域として検出してもよい。これにより、不変割合Srを算出する必要もないので、不変領域を容易に検出することができる。
In the determination process shown in step 111, when the invariable ratio Sr of the dark color region extracted as described above is larger than the first threshold value Sa, it is not limited to detecting this dark color region as an invariant region. Instead, the invariant area may be detected as follows.
That is, the captured image is divided into a plurality of divided areas (for example, 128 divided areas), and a dark color region common to both is detected so as to extend over N or more adjacent divided areas (for example, four divided areas). In this case, the dark color region may be detected as an invariant region. Thereby, since it is not necessary to calculate the invariant ratio Sr, the invariant region can be easily detected.

また、読取窓14に対してデコードに影響を及ぼす程度の汚れの付着や損傷等が生じていることから、図4(A),(B)に例示するように、上記暗色系領域抽出処理にて抽出された暗色系領域S1の不変割合Srが第2の閾値Sbよりも大きくなると(S121でYes)、ステップS125に示す報知処理がなされる。   Further, since the dirt or the like that has an influence on the decoding has been attached to the reading window 14, the dark color region extraction processing is performed as shown in FIGS. 4A and 4B. When the invariable ratio Sr of the dark color region S1 extracted in this way becomes larger than the second threshold value Sb (Yes in S121), the notification process shown in step S125 is performed.

この処理では、制御回路40により制御されて、発光部43が読取窓14の清掃や修理・交換などのメンテナンスを促すメンテナンス情報を報知するために所定の色に発光する。このように発光する発光部43を視認した使用者は、読取窓14に対してデコードに影響を及ぼす程度の汚れの付着や損傷等が生じていることを認識するので、使用者に対して適切な時期に読取窓14のメンテナンスを促すことができる。   In this process, the light emitting unit 43 emits light in a predetermined color to notify maintenance information that prompts maintenance such as cleaning, repair, and replacement of the reading window 14 under the control of the control circuit 40. The user who visually recognizes the light emitting portion 43 that emits light in this way recognizes that the reading window 14 has been contaminated or damaged to the extent that affects the decoding, and therefore is appropriate for the user. Maintenance of the reading window 14 can be urged at a proper time.

なお、ステップ121に示す判定処理でも、上記ステップS111に示す判定処理と同様に、撮像画像を複数の分割エリアに分割して、双方に共通する暗色系領域が隣接するN以上の分割エリアにまたがるように検出されるときに、上記メンテナンス情報を報知してもよい。   In the determination process shown in step 121 as well, as in the determination process shown in step S111, the captured image is divided into a plurality of divided areas, and dark-colored areas common to both of the divided areas extend over N or more divided areas. The maintenance information may be notified when detected as described above.

以上説明したように、本実施形態に係る光学的情報読取装置10では、撮像処理により撮像された撮像画像とメモリ35に記憶された撮像画像とに共通して形状および輝度が変化しない暗色系領域がある場合に、この暗色系領域の不変割合Srが第1の閾値Saよりも大きくなると(S111でYes)、当該暗色系領域が不変領域として検出される。そして、上記不変領域が検出されるとき、この不変領域を撮像処理により撮像された撮像画像から除いた画像に対して、デコード処理によりデコードがなされる。   As described above, in the optical information reading apparatus 10 according to the present embodiment, the dark color region in which the shape and brightness do not change in common with the captured image captured by the imaging process and the captured image stored in the memory 35. If there is an invariable ratio Sr of the dark color area larger than the first threshold value Sa (Yes in S111), the dark color area is detected as an invariant area. When the invariant area is detected, an image obtained by removing the invariant area from the captured image captured by the imaging process is decoded by the decoding process.

これにより、読取口13を覆って保護する読取窓14に対して汚れの付着や損傷等が生じることから当該汚れや損傷等が暗色系領域Sとして撮像される場合でも、この暗色系領域Sが上記不変領域として検出されて、この不変領域を除いた画像に対してデコードがなされる。このため、上記不変領域の原因となる読取窓14に生じた汚れや損傷等がデコード結果に影響を及ぼすこともない。
したがって、読取口13を保護する読取窓14に生じた汚れや損傷等に起因する誤読を防止することができる。
As a result, dirt adheres to or damages the reading window 14 that covers and protects the reading port 13, so that even when the dirt or damage is imaged as the dark color area S, the dark color area S is detected. The image is detected as the invariant area, and the image excluding the invariant area is decoded. For this reason, stains, damage, or the like generated in the reading window 14 that causes the invariant area does not affect the decoding result.
Therefore, it is possible to prevent erroneous reading due to dirt or damage generated in the reading window 14 that protects the reading port 13.

特に、撮像処理により撮像された撮像画像に対して形状および輝度が変化しない暗色系領域の占める不変割合Srがデコードに影響を及ぼさない程度に設定される第1の閾値Saより大きい程度である場合に、この暗色系領域が上記不変領域として検出される。すなわち、撮像画像に対して形状および輝度が変化しない暗色系領域の占める割合がデコードに影響を及ぼさない程度である場合には、上記不変領域が検出されることなくデコードが実施される。このため、デコードに影響を及ぼさない程度の汚れや損傷等が読取窓14に生じた場合では、上記不変領域が検出されないため、撮像された撮像画像から不変領域を除く画像処理が実施されることもないので、画像処理に関して不要な処理をなくすことができる。   In particular, when the invariable ratio Sr occupied by the dark-colored region whose shape and brightness do not change with respect to the captured image captured by the imaging process is larger than the first threshold value Sa that is set to an extent that does not affect the decoding. In addition, this dark color region is detected as the invariant region. In other words, when the proportion of the dark color region in which the shape and luminance do not change with respect to the captured image is such that the decoding is not affected, the decoding is performed without detecting the invariant region. For this reason, when the reading window 14 is contaminated, damaged, or the like that does not affect the decoding, the invariant area is not detected, and image processing for removing the invariant area from the captured image is performed. Therefore, unnecessary processing for image processing can be eliminated.

また、撮像処理により撮像された撮像画像に対して抽出された暗色系領域の占める不変割合Srが上記第2の閾値Sbより大きい程度である場合、すなわち、読取窓14に対して汚れの付着や損傷等が生じた場合には、上記メンテナンス情報が発光部43の発光により報知されて、使用者に対して読取窓14のメンテナンスが促される。このメンテナンス情報の報知に応じて読取窓14の清掃や交換等がなされることで、撮像処理による撮像時に上記不変領域が撮像されることもないので、読取窓14に生じた汚れや損傷等に起因する誤読を確実に防止することができる。   Further, when the invariable ratio Sr occupied by the dark color system region extracted with respect to the picked-up image picked up by the image pick-up processing is larger than the second threshold value Sb, that is, dirt is attached to the reading window 14. When damage or the like occurs, the maintenance information is notified by the light emission of the light emitting unit 43, and the user is encouraged to maintain the reading window 14. Since the reading window 14 is cleaned or replaced in accordance with the notification of the maintenance information, the invariant area is not imaged during imaging by the imaging process. The resulting misreading can be reliably prevented.

特に、撮像処理により撮像された撮像画像に対して抽出された暗色系領域の占める不変割合Srがデコードに影響を及ぼす程度に設定される第2の閾値Sbより大きい程度である場合に、上記メンテナンス情報が発光部43の発光により報知される。すなわち、上記不変領域の占める不変割合Srがデコードに影響を及ぼさない程度である場合には、上記メンテナンス情報が発光部43の発光により報知されることもない。このため、デコードに影響を及ぼさない程度の汚れや損傷等が読取窓14に生じた場合では、上記メンテナンス情報が報知されないため、過度のメンテナンス情報の報知を避けて適切な時期でのメンテナンス情報の報知を実施することができる。   In particular, when the invariable ratio Sr occupied by the dark color region extracted with respect to the captured image captured by the imaging process is larger than the second threshold value Sb set to an extent that affects the decoding, the maintenance is performed. Information is notified by light emission of the light emitting unit 43. That is, when the invariable ratio Sr occupied by the invariant area is such that the decoding is not affected, the maintenance information is not notified by the light emission of the light emitting unit 43. For this reason, when the reading window 14 is contaminated or damaged to the extent that does not affect the decoding, the maintenance information is not notified. Notification can be implemented.

なお、メンテナンス情報を報知する報知手段として、発光部43の発光状態を利用することに限らず、例えば、所定の情報を表示可能な液晶表示器等にメンテナンスを促すメンテナンス情報を表示してもよい。   Note that the notifying means for notifying the maintenance information is not limited to using the light emission state of the light emitting unit 43. For example, maintenance information for prompting maintenance may be displayed on a liquid crystal display or the like capable of displaying predetermined information. .

なお、第1実施形態の第1変形例として、上記ステップS109に示す暗色系領域抽出処理では、撮像処理により撮像された撮像画像とメモリ35に記憶された複数の撮像画像とに共通して形状および輝度が変化しない暗色系領域がある場合に、この暗色系領域を抽出してもよい。この場合、抽出された暗色系領域の不変割合Srが上記第1の閾値Saよりも大きくなると(S111でYes)、抽出された暗色系領域が不変領域として検出される。このように複数の撮像画像を用いて比較することで、上記不変領域の検出精度を向上させることができる。   As a first modification of the first embodiment, in the dark color region extraction process shown in step S109, the shape is common to the captured image captured by the imaging process and the plurality of captured images stored in the memory 35. If there is a dark color region where the luminance does not change, this dark color region may be extracted. In this case, when the invariable ratio Sr of the extracted dark color region is larger than the first threshold value Sa (Yes in S111), the extracted dark color region is detected as an invariant region. Thus, the comparison accuracy using the plurality of captured images can improve the detection accuracy of the invariant region.

また、第1実施形態の第2変形例として、上記ステップS121に示す判定処理およびステップS125に示す報知処理は、電源投入時に限り、実施してもよい。これにより、電源投入時に限り、上記不変領域が検出されて不変割合Srが第2の閾値Sbよりも大きくなると(S121)、上記報知処理にてメンテナンス情報が報知されるため、日常の始業点検がセルフチェックでき安心して使用することができる。   As a second modification of the first embodiment, the determination process shown in step S121 and the notification process shown in step S125 may be performed only when the power is turned on. As a result, only when the power is turned on, when the invariable area is detected and the invariable ratio Sr becomes larger than the second threshold value Sb (S121), the maintenance information is informed in the informing process. Self-check and safe to use.

[第2実施形態]
次に、本発明の第2実施形態に係る光学的情報読取装置について図5を参照して説明する。図5は、第2実施形態における読取処理の流れを例示するフローチャートである。
本第2実施形態に係る光学的情報読取装置10では、読取窓14に生じた汚れや損傷等に起因する誤読を確実に防止するため、上述した読取処理について図3に示すフローチャートに代えて図5に示すフローチャートに基づいて演算処理している点が、上記第1実施形態に係る光学的情報読取装置と主に異なる。
[Second Embodiment]
Next, an optical information reading apparatus according to a second embodiment of the present invention will be described with reference to FIG. FIG. 5 is a flowchart illustrating the flow of the reading process in the second embodiment.
In the optical information reading apparatus 10 according to the second embodiment, the reading process described above is replaced with a flowchart shown in FIG. 3 in order to reliably prevent misreading due to dirt or damage generated in the reading window 14. 5 is mainly different from the optical information reading apparatus according to the first embodiment in that arithmetic processing is performed based on the flowchart shown in FIG.

本第2実施形態では、検出された上記不変領域が、撮像画像のうち情報コードが占める領域であるコード画像に含まれるときには、この不変領域がコード画像に対して占める割合(以下、第2不変割合S2rという)がデコードに影響を及ぼさない程度の値に設定される第3の閾値Sc以下程度である場合に限り、当該コード画像に対してデコードがなされる In the second embodiment, when the detected invariant area is included in the code image that is the area occupied by the information code in the captured image, the ratio of the invariant area to the code image (hereinafter referred to as the second invariant). The code image is decoded only when the ratio (referred to as ratio S2r) is equal to or less than the third threshold value Sc set to a value that does not affect decoding .

すなわち、図5に示す読取処理のように、ステップS111にてYesと判定された後に、ステップS112に示すコード画像比率判定処理にて、不変領域の第2不変割合S2rが第3の閾値Scよりも大きいか否かについて判定される。そして、第2不変割合S2rが第3の閾値Sc以下であると(S112でNo)、上記不変領域除外処理以降の処理がなされて、デコード処理が実施される。一方、第2不変割合S2rが第3の閾値Scより大きくなると(S112でYes)、デコード処理を実施することなく、ステップS121に示す判定処理以降の処理がなされる。   That is, like the reading process shown in FIG. 5, after it is determined Yes in step S <b> 111, in the code image ratio determination process shown in step S <b> 112, the second invariant ratio S <b> 2 r of the invariable area is greater than the third threshold value Sc. Is also determined as to whether or not is greater. If the second invariant ratio S2r is equal to or less than the third threshold value Sc (No in S112), the processes after the invariant area exclusion process are performed, and the decoding process is performed. On the other hand, when the second invariant ratio S2r is larger than the third threshold value Sc (Yes in S112), the process after the determination process shown in step S121 is performed without performing the decoding process.

このように、第2不変割合S2rが第3の閾値Scより大きくなる場合、すなわち、上記不変領域がコード画像に対して占める割合がデコードに影響を及ぼす程度である場合には、デコードが実施されないので、上記不変領域の原因となる読取窓14に生じた汚れや損傷等に起因する誤読を確実に防止することができる。また、この場合には、上記不変領域除外処理がなされることもないので、制御回路40に対する処理負荷を軽減することができる。   As described above, when the second invariant ratio S2r becomes larger than the third threshold value Sc, that is, when the ratio of the invariant area to the code image has an influence on the decoding, the decoding is not performed. Therefore, it is possible to reliably prevent misreading due to dirt, damage, or the like generated in the reading window 14 that causes the above-described unchanged region. Further, in this case, since the invariant region exclusion process is not performed, the processing load on the control circuit 40 can be reduced.

なお、本発明は上記各実施形態および変形例に限定されるものではなく、以下のように具体化してもよい。
(1)上述した各実施形態では、本発明に係る光学的情報読取装置を、上方に読取口13が設けられる定置式の読取装置に適用して説明したが、これに限らず、上方と異なる方向に読取口13が設けられる定置式の読取装置に適用してもよいし、携帯型の読取装置に適用してもよい。
In addition, this invention is not limited to said each embodiment and modification, You may actualize as follows.
(1) In each of the above-described embodiments, the optical information reading device according to the present invention has been described as applied to a stationary reading device in which the reading port 13 is provided on the upper side. The present invention may be applied to a stationary reading device in which the reading port 13 is provided in the direction, or may be applied to a portable reading device.

(2)上述した各実施形態では、複数の明色系セルおよび暗色系セルが規定の位置に配列されるように表示される表示面、例えば、複数の白及び黒からなるキャリブレーションボードを撮像処理により撮像し、この撮像により得られた撮像画像とメモリ35に記憶された撮像画像とに共通して形状および輝度が変化しない暗色系領域がある場合に、この暗色系領域を不変領域として検出してもよい。これにより、上記規定の位置と異なる位置にある暗色系領域が上記不変領域となるため、当該不変領域を容易かつ確実に検出することができる。 (2) In each of the above-described embodiments, a display surface that is displayed such that a plurality of light-colored cells and dark-colored cells are arranged at a predetermined position, for example, a calibration board composed of a plurality of white and black images is captured. When there is a dark color region in which the shape and brightness do not change in common with the captured image obtained by the imaging and the captured image stored in the memory 35, this dark color region is detected as an invariant region. May be. Thereby, since the dark-colored area | region in the position different from the said prescription | regulation position becomes the said invariable area, the said invariable area can be detected easily and reliably.

また、明色系セルのみからなる表示面を撮像処理により撮像し、この撮像により得られた撮像画像とメモリ35に記憶された撮像画像とに共通して形状および輝度が変化しない暗色系領域がある場合に、この暗色系領域を不変領域として検出してもよい。
また、明色系セルのみからなる表示面を撮像処理により撮像し、この撮像により得られた撮像画像に暗色系領域がある場合に、この暗色系領域を不変領域として検出してもよい。
また、上述した表示面を撮像して不変領域を検出する処理は、電源投入時に限り実施してもよい。
In addition, a dark color region in which the shape and brightness are not changed in common between the captured image obtained by the imaging and the captured image stored in the memory 35 is captured by the imaging process on the display surface including only the bright cell. In some cases, this dark color region may be detected as an invariant region.
Further, when a display surface consisting only of light-colored cells is picked up by image pick-up processing, and the picked-up image obtained by this pick-up has a dark-colored region, this dark-colored region may be detected as an invariant region.
In addition, the above-described processing for imaging the display surface and detecting the invariant region may be performed only when the power is turned on.

(3)上述した光学的情報読取装置10は、操作部47に対する所定の操作に応じて撮像可能状態になることに限らず、例えば、常時撮像可能な状態に維持されるように構成されてもよい。このように構成される場合には、上記ステップS101における判定処理が廃止されることとなる。 (3) The optical information reading apparatus 10 described above is not limited to being in an imageable state in response to a predetermined operation on the operation unit 47. For example, the optical information reading device 10 may be configured to be always in an imageable state. Good. In such a configuration, the determination process in step S101 is abolished.

10…光学的情報読取装置
13…読取口
14…読取窓(保護部材)
28…受光センサ(撮像手段)
35…メモリ(記憶手段)
40…制御回路(デコード手段,検出手段)
43…発光部(報知手段)
C,C1,C2…情報コード
P1,P2…撮像画像
S…暗色系領域
Sr…不変割合
Sa…第1の閾値
Sb…第2の閾値
DESCRIPTION OF SYMBOLS 10 ... Optical information reader 13 ... Reading port 14 ... Reading window (protection member)
28: Light receiving sensor (imaging means)
35 ... Memory (storage means)
40. Control circuit (decoding means, detection means)
43 ... Light emitting section (notification means)
C, C1, C2 ... Information code P1, P2 ... Captured image S ... Dark color region Sr ... Invariant ratio Sa ... First threshold Sb ... Second threshold

Claims (5)

QRコードからの反射光を読取口を介して受光することで当該QRコードを撮像する撮像手段と、
前記撮像手段により撮像された前記QRコードのコード画像に基づいて当該QRコードをデコードするデコード手段と、
を備える光学的情報読取装置であって、
前記反射光が透光可能であって前記読取口内を保護するように当該読取口を覆う保護部材と、
前記撮像手段により撮像された撮像画像が逐次記憶される記憶手段と、
前記撮像手段により撮像された前記撮像画像と前記記憶手段に記憶された前記撮像画像とに共通して形状および輝度が変化しない暗色系領域がある場合に、この暗色系領域を不変領域として検出する検出手段と、を備え、
前記デコード手段は、前記検出手段により検出された前記不変領域が前記コード画像に含まれるときには、この不変領域が前記コード画像に対して占める割合がデコードに影響を及ぼさない程度である場合に限り、当該コード画像に対してデコードすることを特徴とする光学的情報読取装置。
Imaging means for imaging the QR code by receiving reflected light from the QR code through the reading port;
Decoding means for decoding the QR code based on the code image of the QR code imaged by the imaging means;
An optical information reader comprising:
A protective member that can transmit the reflected light and covers the reading port so as to protect the inside of the reading port;
Storage means for sequentially storing picked-up images picked up by the image pickup means;
When there is a dark color region where the shape and brightness do not change in common between the captured image captured by the image capturing unit and the captured image stored in the storage unit, the dark color region is detected as an invariant region. Detecting means,
The decoding means, when the invariant area detected by the detection means is included in the code image, only when the proportion of the invariant area to the code image is such that the decoding is not affected. An optical information reader which decodes the code image.
前記検出手段は、前記撮像手段により撮像された前記撮像画像と前記記憶手段に記憶された複数の撮像画像とに共通して形状および輝度が変化しない暗色系領域がある場合に、この暗色系領域を前記不変領域として検出することを特徴とする請求項1に記載の光学的情報読取装置。 The detection unit includes the dark color region when there is a dark color region where the shape and the luminance do not change in common between the captured image captured by the imaging unit and the plurality of captured images stored in the storage unit. The optical information reader according to claim 1, wherein the optical information reader is detected as the invariant region . 前記検出手段により前記不変領域が検出されると、前記保護部材のメンテナンスを促すメンテナンス情報を報知する報知手段を備えることを特徴とする請求項1または2に記載の光学的情報読取装置。 Wherein when the constant regions by the detection means is detected, reading optical information according to claim 1 or 2, characterized in Rukoto provided with informing means for informing the maintenance information prompting maintenance of the protective member device. 前記報知手段は、前記撮像手段により撮像された前記撮像画像に対して前記検出手段により検出された前記不変領域の占める割合がデコードに影響を及ぼす程度である場合に、前記メンテナンス情報を報知することを特徴とする請求項に記載の光学的情報読取装置。 The notifying means notifies the maintenance information when the ratio of the invariant area detected by the detecting means to the captured image captured by the imaging means is such that it affects decoding. The optical information reader according to claim 3 . 前記報知手段は、電源投入時に限り、この電源投入時に前記撮像手段により撮像された撮像画像と前記記憶手段に記憶された撮像画像とに共通して形状および輝度が変化しない暗色系領域がある場合に、この暗色系領域を前記不変領域として前記検出手段により検出されると、前記メンテナンス情報を報知することを特徴とする請求項3または4に記載の光学的情報読取装置。 The notifying means has a dark color region in which the shape and brightness do not change in common with the captured image captured by the imaging means when the power is turned on and the captured image stored in the storage means only when the power is turned on. , when the dark colored area detected by the detecting means as the constant regions, an optical information reading apparatus according to claim 3 or 4, wherein that you notify the maintenance information.
JP2011195198A 2011-09-07 2011-09-07 Optical information reader Active JP5724771B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2011195198A JP5724771B2 (en) 2011-09-07 2011-09-07 Optical information reader

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2011195198A JP5724771B2 (en) 2011-09-07 2011-09-07 Optical information reader

Publications (2)

Publication Number Publication Date
JP2013058033A JP2013058033A (en) 2013-03-28
JP5724771B2 true JP5724771B2 (en) 2015-05-27

Family

ID=48133887

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2011195198A Active JP5724771B2 (en) 2011-09-07 2011-09-07 Optical information reader

Country Status (1)

Country Link
JP (1) JP5724771B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6583060B2 (en) * 2016-03-07 2019-10-02 株式会社デンソーウェーブ Information code reader

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2572865B2 (en) * 1990-02-14 1997-01-16 シャープ株式会社 Electrophotographic equipment
JP2002109461A (en) * 2000-09-29 2002-04-12 Toshiba Tec Corp Optical reflection type information reading device
US8079523B2 (en) * 2008-12-15 2011-12-20 Symbol Technologies, Inc. Imaging of non-barcoded documents

Also Published As

Publication number Publication date
JP2013058033A (en) 2013-03-28

Similar Documents

Publication Publication Date Title
EP1513095B1 (en) Optical information reading apparatus and related information reading method
EP1854044A2 (en) Methods and apparatus for improving direct part mark scanner performance
JP2023062139A (en) Improved method for correcting errors in matrix symbols
JP5017988B2 (en) Code reader and program
JP5724771B2 (en) Optical information reader
JP2015210612A (en) Information code reading device
JP2016224602A (en) Information reading device
JP4058478B2 (en) Optical information reading method
JP2011197856A (en) Optical information reading device
US8960550B2 (en) Minimizing misdecodes in electro-optical readers
JP2011008574A (en) Optical information reader
JP4650138B2 (en) Optical information reader
JP5810997B2 (en) Two-dimensional code reader
JP5240124B2 (en) Optical information reader
JP4378491B2 (en) Code image output device
US11334964B2 (en) Color image processing on the fly for bar code readers
JP5282559B2 (en) Information code reader
JP5221590B2 (en) Symbol code reader and its control program
JP5007960B2 (en) Optical information reader
JP5152086B2 (en) Bar code reading method and bar code reading apparatus
US8840025B2 (en) Arrangement for and method of preventing symbol misreads in electro-optical readers
JP2012123501A (en) Optical information reading apparatus
JP4497144B2 (en) Optical information reader
JP5401619B2 (en) Symbol code reader and its control program
JP5825141B2 (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: 20140411

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20141021

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20141027

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20141223

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: 20150303

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20150316

R150 Certificate of patent or registration of utility model

Ref document number: 5724771

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

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