JP6583060B2 - Information code reader - Google Patents

Information code reader Download PDF

Info

Publication number
JP6583060B2
JP6583060B2 JP2016043784A JP2016043784A JP6583060B2 JP 6583060 B2 JP6583060 B2 JP 6583060B2 JP 2016043784 A JP2016043784 A JP 2016043784A JP 2016043784 A JP2016043784 A JP 2016043784A JP 6583060 B2 JP6583060 B2 JP 6583060B2
Authority
JP
Japan
Prior art keywords
information code
reading
image
specific range
control unit
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
JP2016043784A
Other languages
Japanese (ja)
Other versions
JP2017162016A (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 JP2016043784A priority Critical patent/JP6583060B2/en
Publication of JP2017162016A publication Critical patent/JP2017162016A/en
Application granted granted Critical
Publication of JP6583060B2 publication Critical patent/JP6583060B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Description

本明細書で開示する技術は、情報コード読取装置に関する。   The technology disclosed in this specification relates to an information code reader.

特許文献1には、バーコードや二次元コード等の情報コードを読み取るための据置型の情報コード読取装置が開示されている。この情報コード読取装置は、読取口が形成されたケースと、読取口を閉塞する光透過性のプレートと、ケース内に設けられ、プレートで閉塞された読取口を介してケース外の情報コードを撮像する撮像部と、撮像部が撮像した撮像画像に基づいて情報コードを解読する解読部とを備える。この情報コード読取装置では、プレートは、ケース内の撮像部を塵芥等から保護する保護プレートとして機能する。   Patent Document 1 discloses a stationary information code reader for reading an information code such as a barcode or a two-dimensional code. This information code reader includes a case in which a reading port is formed, a light-transmitting plate that closes the reading port, and an information code outside the case that is provided in the case and that is closed by the plate. An imaging unit that captures an image and a decoding unit that decodes the information code based on the captured image captured by the imaging unit. In this information code reader, the plate functions as a protective plate that protects the imaging unit in the case from dust and the like.

特開2014−67177号公報JP 2014-67177 A

特許文献1の情報コード読取装置の使用中に、読取口を閉塞するプレートに汚れや異物が付着する場合がある。そのような場合、情報コードの読み取りに失敗したり、撮像された汚れ等を暗色系領域と誤判断することによって情報コードが誤読されたりする事態が発生する可能性もある。   During use of the information code reader of Patent Document 1, dirt or foreign matter may adhere to the plate that closes the reading port. In such a case, the information code may fail to be read, or the information code may be erroneously read due to erroneous determination of the captured dirt or the like as a dark color area.

本明細書では、プレートに汚れ等が付着していることを適切に判定するとともにその旨を適切に報知することにより、情報コードの読み取りに失敗したり、情報コードが誤読されたりする事態の発生を抑制し得る技術を提供する。   In this specification, by appropriately determining that dirt or the like is attached to the plate and appropriately informing that, occurrence of a situation in which reading of the information code fails or the information code is misread Provide technology that can suppress

本明細書は、以下の情報コード読取装置を開示する。情報コード読取装置は、読取口が形成されたケースと、読取口を閉塞する光透過性のプレートと、ケース内に設けられ、プレートによって閉塞された読取口からケースの外側の特定範囲を撮像可能な撮像部と、特定範囲に情報コードが配置される場合に撮像部によって撮像される情報コードの画像に基づいて、情報コードに記録されたデータを読み取る読取処理を実行する制御部と、メモリと、報知動作を実行可能な報知部と、を備えている。制御部は、特定の期間ごとに、撮像部によって撮像される特定範囲の画像をメモリに記憶させ、読取処理が実行された場合において、さらに、(a)読み取りの際の情報コードの誤り訂正率が第1の閾値を越えること、(b)読み取りの開始から終了までの時間が第2の閾値を越えること、のうちの少なくとも一方が成立する場合に、メモリに記憶されている特定範囲の画像と、読取処理の実行後の時点の特定範囲の画像とを比較し、両者の差異が第3の閾値を越えるか否かを判断する判断処理を実行し、判断処理において肯定的に判断される場合に、報知部に報知動作を実行させる。   This specification discloses the following information code reader. The information code reader can capture images of a specific area outside the case from the reading port closed by the plate, a case with a reading port, a light transmissive plate that closes the reading port, and the case. An imaging unit, a control unit that executes a reading process of reading data recorded in the information code based on an image of the information code captured by the imaging unit when the information code is arranged in a specific range, a memory, A notification unit capable of performing a notification operation. The control unit stores, in a memory, an image in a specific range captured by the imaging unit for each specific period, and when the reading process is executed, (a) an error correction rate of the information code at the time of reading Exceeds at least one of the first threshold value and (b) the time from the start to the end of reading exceeds the second threshold value. Is compared with an image in a specific range at the time after execution of the reading process, a determination process is performed to determine whether the difference between the two exceeds a third threshold value, and a positive determination is made in the determination process. In this case, the notification unit is caused to execute a notification operation.

上記の構成によると、制御部は、上記の(a)(b)のうちの少なくとも一方が成立する場合に、上記の判断処理を実行する。上記の(a)(b)のうちの少なくとも一方が成立する場合は、情報コードの読取処理の際に何らかの問題が発生していた可能性がある。そして、それがプレートに汚れ等が付着したことに起因するものである可能性もある。即ち、制御部は、プレートに汚れ等が付着している可能性がある場合に、判断処理を実行する。そして、上記の構成によると、制御部は、判断処理において、メモリに記憶されている特定範囲の画像と、読取処理の実行後の時点の特定範囲の画像とを比較し、両者の差異が第3の閾値を越えるか否かを判断する。判断処理において肯定的に判断される場合には、プレートに汚れ等が付着している可能性が高いと言える。上記の構成によると、制御部は、その場合に報知動作を実行させることができる。情報コード読取装置の管理者等は、情報コード読取装置が実行する報知動作によって、プレートに汚れ等が付着している可能性が高いことを把握することができる。そして、情報コード読取装置の管理者等は、次回以降の読取処理時に、プレートの汚れ等が原因で情報コードの読み取りに失敗したり、情報コードが誤読されたりする事態が発生する前に、プレートを清掃したり修理したりすることができる。そのため、上記の情報コード読取装置によると、プレートに汚れ等が付着していることを適切に判定するとともにその旨を適切に報知することによって、情報コードの読み取りに失敗したり、情報コードが誤読されたりする事態の発生を抑制し得る。   According to said structure, a control part performs said determination process, when at least one of said (a) (b) is materialized. If at least one of the above (a) and (b) is established, there may be some problem during the information code reading process. And it may be due to dirt or the like adhering to the plate. That is, the control unit executes the determination process when there is a possibility that dirt or the like is attached to the plate. According to the above configuration, in the determination process, the control unit compares the image in the specific range stored in the memory with the image in the specific range at the time after the execution of the reading process. It is determined whether or not the threshold of 3 is exceeded. When a positive determination is made in the determination process, it can be said that there is a high possibility that dirt or the like is attached to the plate. According to said structure, the control part can perform alerting | reporting operation | movement in that case. An administrator or the like of the information code reading device can grasp that there is a high possibility that dirt or the like is attached to the plate by the notification operation executed by the information code reading device. Then, the administrator of the information code reading device, etc., before the next reading process, before the situation that reading of the information code fails or the information code is erroneously read due to dirt on the plate or the like occurs, Can be cleaned and repaired. For this reason, according to the information code reading apparatus described above, it is possible to fail to read the information code or to read the information code incorrectly by appropriately determining that the plate is contaminated and notifying appropriately. It is possible to suppress the occurrence of the situation that is.

情報コード読取装置の外観を概略的に示す斜視図。The perspective view which shows the external appearance of an information code reader roughly. 情報コード読取装置の内部構成を模式的に示すブロック図。The block diagram which shows typically the internal structure of an information code reader. 情報コード読取装置の制御部が実行するメイン処理を示すフローチャート。The flowchart which shows the main process which the control part of an information code reader performs. 読取対象の情報コードの一例を示す説明図。Explanatory drawing which shows an example of the information code of reading object. 特定範囲の画像の一例を示す説明図。Explanatory drawing which shows an example of the image of a specific range.

以下に説明する実施例の主要な特徴を列記しておく。なお、以下に示す技術要素は、それぞれ独立した技術要素であって、単独であるいは各種の組み合わせによって技術的有用性を発揮するものであり、出願時請求項記載の組み合わせに限定されるものではない。   The main features of the embodiments described below are listed. In addition, the technical elements shown below are independent technical elements and exhibit technical usefulness alone or in various combinations, and are not limited to the combinations described in the claims at the time of filing. .

(特徴1)第1の閾値は、情報コードに予め記録されている最大許容誤り訂正率のうちの特定割合を示す値であってもよい。 (Feature 1) The first threshold value may be a value indicating a specific ratio of the maximum allowable error correction rate recorded in advance in the information code.

この構成によると、第1の閾値は、読取対象の情報コードの最大許容誤り訂正率に応じて相対的に定められる。そのため、読取対象の情報コードごとに適切な第1の閾値を設定し得る。従って、情報コード読取装置は、プレートに汚れ等が付着している可能性があるか否かを適切に判定し得る。   According to this configuration, the first threshold is relatively determined according to the maximum allowable error correction rate of the information code to be read. Therefore, an appropriate first threshold value can be set for each information code to be read. Therefore, the information code reader can appropriately determine whether there is a possibility that dirt or the like is attached to the plate.

(特徴2)読み取りの開始から終了までの時間は、情報コードに含まれる特徴パターンの認識から情報コードに記録されたデータのデコードの完了までの時間を含んでもよい。 (Feature 2) The time from the start to the end of reading may include the time from the recognition of the feature pattern included in the information code to the completion of decoding of the data recorded in the information code.

この構成によると、情報コード読取装置は、読み取りの開始から終了までの時間が第2の閾値を越える場合に、それがプレートに汚れ等が付着したことに起因するものである可能性があると適切に判定し得る。上記の構成における「特徴パターン」は、情報コードの上下左右方向を特定するための所定のパターン(例えばファインダパターン)を含む。   According to this configuration, when the time from the start to the end of reading exceeds the second threshold, the information code reading device may be caused by dirt or the like adhering to the plate. It can be determined appropriately. The “feature pattern” in the above configuration includes a predetermined pattern (for example, a finder pattern) for specifying the vertical and horizontal directions of the information code.

(特徴3)特定範囲の画像は、第1領域と、第1領域とは異なる第2領域とを有していてもよい。制御部は、判断処理において、(A)メモリに記憶されている特定範囲の画像のうちの第1領域と、読取処理の実行後の時点の特定範囲の画像のうちの第1領域とを比較し、両者の差異が第3の閾値を越えるか否かを判断するとともに、(B)メモリに記憶されている特定範囲の画像のうちの第2領域と、読取処理の実行後の時点の特定範囲の画像のうちの第2領域とを比較し、両者の差異が第3の閾値とは異なる第4の閾値を越えるか否かを判断し、(A)(B)のうちの少なくとも一方で肯定的に判断される場合に、報知部に報知動作を実行させるようにしてもよい。 (Characteristic 3) The image in the specific range may have a first area and a second area different from the first area. In the determination process, the control unit compares (A) the first area in the image in the specific range stored in the memory and the first area in the image in the specific range at the time after the reading process is executed. Then, it is determined whether or not the difference between the two exceeds the third threshold, and (B) the second region of the image in the specific range stored in the memory and the time point after the execution of the reading process are specified. Comparing the second region of the images in the range and determining whether the difference between the two regions exceeds a fourth threshold value different from the third threshold value, and at least one of (A) and (B) When a positive determination is made, the notification unit may perform a notification operation.

この構成によると、制御部は、判断処理において、特定範囲の画像のうちの第1領域と、特定範囲の画像のうちの第2領域との間で、異なる閾値を用いることができる。そのため、例えば、第1領域が第2領域に比べて情報コードの読み取りの成否に与える影響が大きい領域である場合に、第3の閾値を第4の閾値より小さくする等、第3の閾値と第4の閾値とを適切に設定しておくことによって、情報コードの読取処理の実情に合わせて、プレートに汚れ等が付着している可能性が高いことを適切に判定することができる。   According to this configuration, in the determination process, the control unit can use different threshold values between the first region of the specific range image and the second region of the specific range image. Therefore, for example, when the first area is an area that has a larger influence on the success or failure of reading the information code than the second area, the third threshold is set to be smaller than the fourth threshold. By appropriately setting the fourth threshold value, it is possible to appropriately determine that there is a high possibility that dirt or the like is attached to the plate in accordance with the actual situation of the information code reading process.

(実施例)
(情報コード読取装置2の構成;図1、図2)
図1に示すように、本実施例の情報コード読取装置2は、例えば、携帯端末Tの表示部に表示されている情報コード(例えば二次元コード等)を読み取ってデータを取得するための据置式の装置である。図1は、情報コード読取装置2の外観を示す。情報コード読取装置2は、読取口6が開口されたケース4と、プレート8と、表示部16と、スピーカ18と、を備えている。
(Example)
(Configuration of information code reader 2; FIGS. 1 and 2)
As shown in FIG. 1, the information code reader 2 of the present embodiment is, for example, a stationary device for acquiring data by reading an information code (for example, a two-dimensional code) displayed on the display unit of the mobile terminal T. Device of the type. FIG. 1 shows the appearance of the information code reader 2. The information code reading device 2 includes a case 4 in which a reading port 6 is opened, a plate 8, a display unit 16, and a speaker 18.

ケース4は、情報コード読取装置2の本体を構成する筐体であり、各種構成要素(図2の撮像部12等)を収容している。読取口6は、ケース4の上面に開口されている。プレート8は、光透過性の部材で構成された板材であり、読取口6を閉塞している。プレート8は、ケース4内の各種構成要素を塵芥等から保護する保護プレートとして機能する。表示部16及びスピーカ18は、一部がケース4の表面に露出するように設けられている。表示部16は、各種情報を表示可能である。スピーカ18は、所定の報知音等を発生させる。   The case 4 is a housing that constitutes the main body of the information code reader 2, and houses various components (such as the imaging unit 12 in FIG. 2). The reading port 6 is opened on the upper surface of the case 4. The plate 8 is a plate material made of a light transmissive member and closes the reading port 6. The plate 8 functions as a protective plate that protects various components in the case 4 from dust and the like. The display unit 16 and the speaker 18 are provided so as to be partially exposed on the surface of the case 4. The display unit 16 can display various information. The speaker 18 generates a predetermined notification sound or the like.

図2を参照して、ケース4内の構成要素について説明する。ケース4内には、撮像部12と、照明部14と、表示部16と、スピーカ18と、通信インターフェース20と、制御部22と、メモリ24と、が備えられている。以下では、インターフェースを「I/F」と表記する。   The components in the case 4 will be described with reference to FIG. In the case 4, an imaging unit 12, an illumination unit 14, a display unit 16, a speaker 18, a communication interface 20, a control unit 22, and a memory 24 are provided. Hereinafter, the interface is referred to as “I / F”.

撮像部12は、プレート8によって閉塞された読取口6から、プレート8を介して、ケース4の外側の特定範囲を撮像可能な撮像装置である。照明部14は、読取口6から、ケース4の外側の特定範囲に照明光を照射するための照明装置である。表示部16及びスピーカ18は、上記の通りであり、一部がケース4の表面に露出するように設けられている。通信I/F20は、図示しない外部端末(例えばPOS端末等)と通信を実行するためのI/Fである。   The imaging unit 12 is an imaging device capable of imaging a specific range outside the case 4 through the plate 8 from the reading port 6 closed by the plate 8. The illumination unit 14 is an illumination device for irradiating illumination light from the reading port 6 to a specific range outside the case 4. The display unit 16 and the speaker 18 are as described above, and are provided so as to be partially exposed on the surface of the case 4. The communication I / F 20 is an I / F for executing communication with an external terminal (not shown) (for example, a POS terminal).

制御部22は、メモリ24のプログラムに従って様々な処理を実行する。メモリ24は、様々なプログラムを記憶している。また、メモリ24は、様々な情報(例えば、電源オン時点の特定範囲の画像、確認フラグ、等)を記憶するための領域を有している。   The control unit 22 executes various processes according to the program in the memory 24. The memory 24 stores various programs. The memory 24 has an area for storing various information (for example, an image of a specific range at the time of power-on, a confirmation flag, etc.).

(制御部22が実行するメイン処理;図3)
続いて、図3を参照して、情報コード読取装置2の制御部22が実行するメイン処理について説明する。情報コード読取装置2の電源がオンされると、制御部22は、図3の処理を開始する。まず、S10では、制御部22は、撮像部12に、情報コード読取装置2の電源がオンされた時点の特定範囲の画像(以下では、「第1の特定範囲の画像」と呼ぶ)を撮影させる。これにより、制御部22は、第1の特定範囲の画像を取得する。第1の特定範囲の画像は、撮像部12が、プレート8を介してケース4の外側の特定範囲を撮影した画像である。第1の特定範囲の画像は、情報コード読取装置2の電源がオンされた時点のプレート8の状況を撮影した画像であると言うことができる。そして、制御部22は、取得された第1の特定範囲の画像を、メモリ24に記憶させる。
(Main processing executed by the control unit 22; FIG. 3)
Subsequently, a main process executed by the control unit 22 of the information code reading device 2 will be described with reference to FIG. When the information code reader 2 is turned on, the control unit 22 starts the process of FIG. First, in S <b> 10, the control unit 22 takes an image of a specific range at the time when the information code reader 2 is turned on (hereinafter, referred to as “image of the first specific range”) on the imaging unit 12. Let Thereby, the control part 22 acquires the image of the 1st specific range. The image of the first specific range is an image in which the imaging unit 12 images the specific range outside the case 4 via the plate 8. It can be said that the image of the first specific range is an image obtained by photographing the state of the plate 8 at the time when the power of the information code reader 2 is turned on. Then, the control unit 22 causes the memory 24 to store the acquired image of the first specific range.

続くS12では、制御部22は、外部端末から、通信I/F20を介して読取開始指示を取得することを監視する。ユーザが、外部端末の操作部(図示省略)において、情報コード読取装置2に情報コードの読取処理を開始させるための特定の操作を入力すると、外部端末は、情報コード読取装置2に対して、読取開始指示を供給する。この場合、制御部22は、外部端末から、通信I/F20を介して読取開始指示を取得する。制御部22は、読取開始指示を取得すると、S12でYESと判断し、S14に進む。   In subsequent S12, the control unit 22 monitors the acquisition of a reading start instruction from the external terminal via the communication I / F 20. When the user inputs a specific operation for starting the information code reading process to the information code reader 2 in the operation unit (not shown) of the external terminal, the external terminal A reading start instruction is supplied. In this case, the control unit 22 acquires a reading start instruction from the external terminal via the communication I / F 20. When acquiring the reading start instruction, the control unit 22 determines YES in S12, and proceeds to S14.

S14では、制御部22は、情報コードを読み取るための読取処理を実行する。具体的に言うと、まず、制御部22は、照明部14によって特定範囲に照明光を照射するとともに、撮像部12によって、特定範囲の画像の撮影を開始する。また、制御部22は、表示部16に、情報コード読取装置2の利用者に対して、読取対象の情報コード(以下では「対象コード」と呼ぶ場合がある)をプレート8に向けるように促すためのメッセージを表示する。利用者は、例えば、携帯端末T(図1参照)の表示部に対象コードを表示させ、プレート8に向けて近づける(かざす)ことができる。撮像部12は、特定範囲内に配置された対象コードの画像を撮影する。制御部22は、撮像部12によって撮影された対象コードの画像を取得すると、その対象コードの画像に基づいて、当該画像に含まれる対象コードに記録されたデータのデコード(即ち読み取り)を開始する。   In S14, the control unit 22 executes a reading process for reading the information code. Specifically, first, the control unit 22 irradiates a specific range with illumination light by the illumination unit 14 and starts capturing an image of the specific range by the imaging unit 12. Further, the control unit 22 prompts the user of the information code reading device 2 to direct the information code to be read (hereinafter sometimes referred to as “target code”) to the plate 8 on the display unit 16. Displays a message for For example, the user can display the target code on the display unit of the mobile terminal T (see FIG. 1), and can bring it close to the plate 8. The imaging unit 12 captures an image of the target code arranged within the specific range. When the control unit 22 acquires the image of the target code captured by the imaging unit 12, the control unit 22 starts decoding (that is, reading) data recorded in the target code included in the image based on the target code image. .

制御部22が行うデコードの内容について説明する前に、図4を参照して、情報コード読取装置2が読み取る対象である情報コードの一般的な構成について説明しておく。   Before describing the contents of decoding performed by the control unit 22, a general configuration of an information code to be read by the information code reader 2 will be described with reference to FIG.

図4には、情報コード40の一例が示されている。この情報コード40は、2次元コードである。情報コード40は、暗色(黒色)のセルと、明色(白色)のセルとの組合せによって構成されている。情報コード40は、3箇所の角部に配置されたファインダパターン42と、それらのファインダパターン42の中央に配置されたデータセル領域44と、を含む。ファインダパターン42は、情報コード40の読取の際に最初に認識される部分であり、情報コード40の上下左右位置を特定するためのパターンである。ファインダパターン42の位置、大きさ、形状等は予め定められている。読取装置(例えば情報コード読取装置2)は、ファインダパターン42を認識することで、情報コード40の向きに関わらず、どの方向からでも情報コード40に記録されたデータを読み取ることができるようになる。データセル領域44は、情報コード40に記録されるデータを表現するための各種セルが含まれる領域である。データセル領域44には、データキャラクタ、誤り訂正符号等が含まれる。データキャラクタは、情報コード40に記録されるデータが含まれる。データキャラクタによって表現されるデータには、デコード対象のデータ自身のほかに、最大誤り訂正許容率を示すデータも含まれる。最大誤り訂正許容率とは、情報コード40が汚損等している場合においても、データをデコードし得る許容率の最大値を示す。例えば最大誤り訂正許容率が20%である情報コードの場合、情報コード40のデータセル領域44に含まれるセルのうちの20%が損傷している場合であっても、読取装置は当該情報コード40からデータをデコード可能であることを意味する。誤り訂正符号は、情報コード40を読み取った読取装置が、読み取ったデータの誤りを検出し、訂正することを可能にするための情報である。読取装置は、読み取ったデータと誤り訂正符号とを比較して、データに誤り(即ち、欠け等)があるか否かを判定することができるとともに、誤りがある場合に、誤り訂正符号に基づいて誤り部分を補完することができる。この機能は誤り訂正機能と呼ばれ、一般に知られている。   FIG. 4 shows an example of the information code 40. This information code 40 is a two-dimensional code. The information code 40 is composed of a combination of dark (black) cells and light (white) cells. The information code 40 includes a finder pattern 42 arranged at three corners and a data cell region 44 arranged at the center of the finder pattern 42. The finder pattern 42 is a portion that is first recognized when the information code 40 is read, and is a pattern for specifying the vertical and horizontal positions of the information code 40. The position, size, shape and the like of the finder pattern 42 are determined in advance. The reading device (for example, the information code reading device 2) can read the data recorded in the information code 40 from any direction regardless of the direction of the information code 40 by recognizing the finder pattern 42. . The data cell area 44 is an area that includes various cells for expressing data recorded in the information code 40. The data cell area 44 includes data characters, error correction codes, and the like. The data character includes data recorded in the information code 40. The data represented by the data character includes data indicating the maximum error correction allowable rate in addition to the data to be decoded. The maximum error correction allowable rate indicates the maximum value of the allowable rate at which data can be decoded even when the information code 40 is contaminated. For example, in the case of an information code having a maximum error correction allowance rate of 20%, even if 20% of the cells included in the data cell area 44 of the information code 40 are damaged, the reading device can read the information code. This means that data can be decoded from 40. The error correction code is information for enabling the reading device that has read the information code 40 to detect and correct an error in the read data. The reading device can compare the read data with the error correction code to determine whether or not there is an error (that is, lack of data) in the data, and if there is an error, based on the error correction code Error can be complemented. This function is called an error correction function and is generally known.

上記の通り、図2のS14において、制御部22は、撮像部12によって撮影された対象コードの画像に基づいて、当該画像に含まれる対象コードに記録されたデータのデコード(即ち読み取り)を実行する。制御部22は、まず、画像に含まれる対象コードのファインダパターン(図4の符号42参照)を認識し、対象コードの上下左右位置を特定する。この際、制御部22は、読取時間を測定するためのタイマのカウントを開始させる。次いで、制御部22は、対象コード中のデータセル領域から、対象コードに記録されている各種データ(デコード対象のデータ自身、対象コードの最大誤り訂正許容率等)を読み出す。この際、制御部22は、データの読み出しの際に行った誤り訂正の割合(即ち、誤り訂正率)を併せて算出する。   As described above, in S14 of FIG. 2, the control unit 22 performs decoding (that is, reading) of data recorded in the target code included in the image based on the image of the target code captured by the imaging unit 12. To do. First, the control unit 22 recognizes the finder pattern (see reference numeral 42 in FIG. 4) of the target code included in the image, and specifies the vertical and horizontal positions of the target code. At this time, the control unit 22 starts counting a timer for measuring the reading time. Next, the control unit 22 reads various data recorded in the target code (decoding target data itself, maximum error correction allowable rate of the target code, etc.) from the data cell area in the target code. At this time, the control unit 22 also calculates a rate of error correction (ie, error correction rate) performed at the time of data reading.

続くS16では、制御部22は、対象コードの読み取りが成功したか否かを判断する。上記タイマのカウントが開始されてから所定のタイムアウト期間(例えば15秒間)が経過する前に、対象コードに記録されている各種データの読み取り(デコード)及び誤り訂正率の算出が完了した場合には、制御部22は、S16でYES(即ち対象コードの読み取りが成功した)と判断する。この場合、制御部22は、タイマのカウントを停止し、読取時間(即ち、対象コードのファインダパターンの認識からデコードの完了までの時間)を特定する。その後、S18に進む。   In subsequent S16, the control unit 22 determines whether or not the target code has been successfully read. When the reading of various data recorded in the target code and the calculation of the error correction rate are completed before a predetermined timeout period (for example, 15 seconds) elapses after the timer starts counting The controller 22 determines YES in S16 (that is, the target code has been successfully read). In this case, the control unit 22 stops the count of the timer and specifies the reading time (that is, the time from the recognition of the finder pattern of the target code to the completion of decoding). Thereafter, the process proceeds to S18.

一方、対象コードに記録されている各種データの読み取り(デコード)及び誤り訂正率の算出が完了する前に、上記のタイムアウト期間が経過した場合には、制御部22は、S16でNO(即ち対象コードの読み取りが失敗した)と判断し、S40に進む。S40では、制御部22は、対象コードの読み取りが失敗したことを報知するためのエラー報知動作を実行する。具体的には、制御部22は、表示部16に所定のエラーメッセージを表示させるとともに、スピーカ18から所定のエラー報知音声を発生させる。これにより、情報コード読取装置2の利用者及び管理者等は、対象コードの読み取りが失敗したことを把握することができる。S40を終えると、S12に戻る。   On the other hand, if the above-described timeout period has elapsed before the completion of reading (decoding) various data recorded in the target code and calculating the error correction rate, the control unit 22 determines NO in S16 (that is, the target). The process proceeds to S40. In S40, the control unit 22 executes an error notification operation for notifying that reading of the target code has failed. Specifically, the control unit 22 displays a predetermined error message on the display unit 16 and generates a predetermined error notification sound from the speaker 18. Thereby, the user of the information code reader 2, an administrator, etc. can grasp that reading of the object code failed. When S40 ends, the process returns to S12.

S18では、制御部22は、対象コードの読み取りの際に算出された誤り訂正率が、所定の閾値Th1を超えるか否かを判断する。本実施例では、閾値Th1は、対象コードに記録されている最大誤り訂正許容率ごとに定められる相対値である。即ち、閾値Th1は、対象コードに記録されている最大誤り訂正許容率のうちの予め定められた特定割合(例えば50%)を示す値である。例えば、対象コードに記録されている最大誤り訂正許容率が20%である場合において、特定割合が50%である場合には、閾値Th1は10%に定められる。この例の場合、対象コードの読み取りの際に算出された誤り訂正率が10%を超える場合(例えば12%であった場合)、制御部22は、S18でYESと判断し、S22に進む。一方、誤り訂正率が10%以下である場合(例えば7%であった場合)、制御部22は、S18でNOと判断し、S20に進む。誤り訂正率が閾値Th1を超える場合(S18でYESの場合)には、情報コードの読み取りの際に何らかの問題が発生していた可能性がある。そして、それがプレート8に汚れ等が付着したことに起因するものである可能性もある。   In S18, the control unit 22 determines whether or not the error correction rate calculated when the target code is read exceeds a predetermined threshold Th1. In the present embodiment, the threshold value Th1 is a relative value determined for each maximum error correction allowable rate recorded in the target code. That is, the threshold value Th1 is a value indicating a predetermined specific ratio (for example, 50%) of the maximum error correction allowable rate recorded in the target code. For example, when the maximum error correction allowable rate recorded in the target code is 20% and the specific ratio is 50%, the threshold value Th1 is set to 10%. In this example, when the error correction rate calculated at the time of reading the target code exceeds 10% (for example, 12%), the control unit 22 determines YES in S18 and proceeds to S22. On the other hand, when the error correction rate is 10% or less (for example, 7%), the control unit 22 determines NO in S18 and proceeds to S20. If the error correction rate exceeds the threshold Th1 (YES in S18), there may be some problem in reading the information code. And it may be due to the fact that dirt or the like adheres to the plate 8.

S20では、制御部22は、対象コードの読み取りの際の読取時間が、所定の閾値Th2を超えるか否かを判断する。閾値Th2は、上記のタイムアウト期間よりも短い期間であり、予め定められている期間(例えば7秒間)を示す。読取時間が閾値Th2を超える場合、制御部22は、S20でYESと判断し、S22に進む。一方、読取時間が閾値Th2以下である場合、制御部22は、S20でNOと判断し、S24に進む。読取時間が閾値Th2を超える場合(S20でYESの場合)には、情報コードの読み取りの際に何らかの問題が発生していた可能性がある。そして、それがプレート8に汚れ等が付着したことに起因するものである可能性もある。   In S20, the control unit 22 determines whether or not the reading time when reading the target code exceeds a predetermined threshold Th2. The threshold value Th2 is a period shorter than the timeout period and indicates a predetermined period (for example, 7 seconds). When the reading time exceeds the threshold Th2, the control unit 22 determines YES in S20, and proceeds to S22. On the other hand, when the reading time is equal to or less than the threshold Th2, the control unit 22 determines NO in S20, and proceeds to S24. If the reading time exceeds the threshold value Th2 (YES in S20), there may be some problem in reading the information code. And it may be due to the fact that dirt or the like adheres to the plate 8.

S22では、制御部22は、メモリ24に確認フラグを記憶させる。確認フラグは、制御部22に後述のS28〜S36の各処理を実行させるためのフラグである。変形例では、メモリ24には予め確認フラグが記憶されていてもよい。その場合、S22では、制御部22は、メモリ24内の確認フラグに「ON」を示す情報を対応付けて記憶させるようにしてもよい。   In S <b> 22, the control unit 22 stores a confirmation flag in the memory 24. The confirmation flag is a flag for causing the control unit 22 to execute each process of S28 to S36 described later. In the modification, a confirmation flag may be stored in the memory 24 in advance. In that case, in S <b> 22, the control unit 22 may store information indicating “ON” in association with the confirmation flag in the memory 24.

S24では、制御部22は、対象コードの読み取り結果を出力する。具体的には、例えば、制御部22は、対象コードから読み出されたデータを、通信I/F20を介して外部端末に送信する。さらに、制御部22は、対象コードから読み出されたデータのうちの少なくとも一部を、メモリ24に記憶させるとともに、表示部16に表示させる。   In S24, the control unit 22 outputs the reading result of the target code. Specifically, for example, the control unit 22 transmits data read from the target code to the external terminal via the communication I / F 20. Further, the control unit 22 stores at least a part of the data read from the target code in the memory 24 and causes the display unit 16 to display the data.

続くS26では、制御部22は、メモリ24に確認フラグが記憶されているか否かを判断する。この時点でメモリ24に確認フラグが記憶されている場合(即ち、上記S22の処理を実行済みの場合)には、制御部22は、S26でYESと判断し、S28に進む。一方、この時点でメモリ24に確認フラグが記憶されていない場合(即ち、上記S22の処理がスキップされている場合)には、制御部22は、S26でNOと判断し、S12に戻る。   In subsequent S <b> 26, the control unit 22 determines whether or not a confirmation flag is stored in the memory 24. If the confirmation flag is stored in the memory 24 at this time (that is, if the process of S22 has been executed), the control unit 22 determines YES in S26 and proceeds to S28. On the other hand, when the confirmation flag is not stored in the memory 24 at this time (that is, when the process of S22 is skipped), the control unit 22 determines NO in S26 and returns to S12.

S28では、制御部22は、撮像部12に、この時点における特定範囲の画像(以下では、「第2の特定範囲の画像」と呼ぶ)を撮影させる。これにより、制御部22は、第2の特定範囲の画像を取得する。上記の第1の特定範囲の画像(S10)と同様に、第2の特定範囲の画像も、撮像部12が、プレート8を介してケース4の外側の特定範囲を撮影した画像である。そのため、第2の特定範囲の画像は、この時点のプレート8の状況を撮影した画像であると言うことができる。   In S <b> 28, the control unit 22 causes the imaging unit 12 to capture an image of a specific range at this time (hereinafter referred to as “second image of a specific range”). Thereby, the control part 22 acquires the image of the 2nd specific range. Similar to the first specific range image (S <b> 10), the second specific range image is also an image obtained by the imaging unit 12 capturing a specific range outside the case 4 via the plate 8. Therefore, it can be said that the image of the second specific range is an image obtained by photographing the state of the plate 8 at this time.

続くS30では、制御部22は、メモリ24に記憶されている第1の特定範囲の画像(S10)の中心領域と、S28で取得された第2の特定範囲の画像の中心領域とを比較し、両者の差異の割合が所定の閾値Th3を超えるか否かを判断する。図5(a)(b)は、それぞれ、第1の特定範囲の画像50Aと、第2の特定範囲の画像50Bの一例とを示す。図5(a)(b)において破線で示された範囲の内側の領域が、それぞれ、第1の特定範囲の画像50Aの中心領域52A、及び、第2の特定範囲の画像50Bの中心領域52Bに相当する。図5の例では、中心領域52Aには汚れは付着していない。一方、中心領域52Bには汚れD1が付着している。閾値Th3は、0%より大きく100%より小さい割合であって、予め定められている割合(例えば1%)を示す。S30では、まず、制御部22は、第1の特定範囲の画像の中心領域(図5(a)の52A参照)と、第2の特定範囲の画像の中心領域(図5(b)の52B参照)とを比較し、両者の差異の割合を特定する。図5(a)(b)の例のように、第2の特定範囲の画像の中心領域に、第1の特定範囲の画像の中心領域には存在しない汚れ等が存在する場合、両者の差異の割合は0%より大きい値になる。第2の特定範囲の画像の中心領域にのみ存在する汚れ等の数が多く、大きさが大きいほど、両者の差異の割合は大きい値になる。そして、制御部22は、特定された差異の割合が閾値Th3を超える場合には、S30でYESと判断し、S34に進む。一方、制御部22は、特定された差異の割合が閾値Th3以下である場合には、S30でNOと判断し、S32に進む。   In subsequent S30, the control unit 22 compares the central region of the first specific range image (S10) stored in the memory 24 with the central region of the second specific range image acquired in S28. Then, it is determined whether or not the difference ratio between the two exceeds a predetermined threshold Th3. FIGS. 5A and 5B respectively show an image 50A in the first specific range and an example of an image 50B in the second specific range. In FIG. 5A and FIG. 5B, the areas inside the range indicated by the broken line are the center area 52A of the image 50A in the first specific range and the center area 52B of the image 50B in the second specific range, respectively. It corresponds to. In the example of FIG. 5, no dirt is attached to the central region 52A. On the other hand, the dirt D1 is attached to the central region 52B. The threshold Th3 is a ratio that is greater than 0% and less than 100%, and indicates a predetermined ratio (for example, 1%). In S30, the control unit 22 firstly, the central area of the image in the first specific range (see 52A in FIG. 5A) and the central area of the image in the second specific range (52B in FIG. 5B). And the ratio of the difference between the two is specified. As in the example of FIGS. 5A and 5B, when there is a stain or the like that does not exist in the central region of the image of the first specific range in the central region of the image of the second specific range, the difference between the two The ratio is greater than 0%. The greater the number of stains and the like existing only in the central region of the image in the second specific range and the larger the size, the greater the difference between the two. If the specified difference ratio exceeds the threshold Th3, the control unit 22 determines YES in S30, and proceeds to S34. On the other hand, when the ratio of the identified difference is equal to or less than the threshold Th3, the control unit 22 determines NO in S30, and proceeds to S32.

S32では、制御部22は、第1の特定範囲の画像の周辺領域と、第2の特定範囲の画像の周辺領域とを比較し、両者の差異の割合が所定の閾値Th4を超えるか否かを判断する。図5(a)(b)の例では、破線で示された範囲の外側の領域が、それぞれ、第1の特定範囲の画像50Aの周辺領域54A、及び、第2の特定範囲の画像50Bの周辺領域54Bに相当する。図5の例では、周辺領域54Aには汚れは付着していない。一方、周辺領域54Bには汚れD2、D3が付着している。閾値Th4は、0%より大きく100%より小さい割合であって、予め定められている割合(例えば3%)を示す。一般的に、周辺領域は、汚れ等が情報コードの読み取りに与える影響が中心領域に比べて小さい。そのため、本実施例では、閾値Th4が示す割合は閾値Th3より大きい値に設定されている。S32では、まず、制御部22は、第1の特定範囲の画像の周辺領域(図5(a)の54A参照)と、第2の特定範囲の画像の周辺領域(図5(b)の54B参照)とを比較し、両者の差異の割合を特定する。図5(a)(b)の例のように、第2の特定範囲の画像の周辺領域に、第1の特定範囲の画像の周辺領域には存在しない汚れが存在する場合、両者の差異の割合は0%より大きい値になる。第2の特定範囲の画像の周辺領域にのみ存在する汚れ等の数が多く、大きさが大きいほど、両者の差異の割合は大きい値になる。そして、制御部22は、特定された差異の割合が閾値Th4を超える場合には、S32でYESと判断し、S34に進む。一方、制御部22は、特定された差異の割合が閾値Th3以下である場合には、S32でNOと判断し、S34をスキップしてS36に進む。   In S32, the control unit 22 compares the peripheral area of the image in the first specific range with the peripheral area of the image in the second specific range, and determines whether or not the ratio of the difference between the two exceeds a predetermined threshold Th4. Judging. In the example of FIGS. 5A and 5B, the areas outside the range indicated by the broken line are the peripheral area 54A of the image 50A in the first specific range and the image 50B in the second specific range, respectively. This corresponds to the peripheral region 54B. In the example of FIG. 5, no dirt is attached to the peripheral region 54A. On the other hand, dirt D2 and D3 adhere to the peripheral region 54B. The threshold Th4 is a ratio that is greater than 0% and less than 100%, and indicates a predetermined ratio (for example, 3%). In general, the peripheral area has less influence on the reading of the information code by dirt or the like than the central area. Therefore, in the present embodiment, the ratio indicated by the threshold Th4 is set to a value larger than the threshold Th3. In S32, the control unit 22 firstly, the peripheral area of the first specific range image (see 54A in FIG. 5A) and the peripheral area of the second specific range image (54B in FIG. 5B). And the ratio of the difference between the two is specified. As in the example of FIGS. 5A and 5B, when there is a stain that does not exist in the peripheral region of the image in the second specific range in the peripheral region of the second specific range, The ratio is greater than 0%. The greater the number of stains and the like existing only in the peripheral area of the image in the second specific range, the larger the ratio, the greater the difference between the two. Then, if the specified difference ratio exceeds the threshold Th4, the control unit 22 determines YES in S32 and proceeds to S34. On the other hand, when the ratio of the identified difference is equal to or less than the threshold Th3, the control unit 22 determines NO in S32, skips S34, and proceeds to S36.

S34では、制御部22は、報知動作を実行する。具体的には、制御部22は、表示部16に、プレート8が汚損している旨のメッセージを表示させるとともに、スピーカ18から、プレート8が汚損している旨の報知音声を発生させる。さらに、制御部22は、照明部14に特定範囲を照明させる。この報知動作が行われることにより、プレート8に汚れ等が付着している可能性が高いことを把握することができる。   In S34, the control unit 22 performs a notification operation. Specifically, the control unit 22 causes the display unit 16 to display a message indicating that the plate 8 is soiled, and generates a notification sound from the speaker 18 that the plate 8 is soiled. Furthermore, the control unit 22 causes the illumination unit 14 to illuminate a specific range. By performing this notification operation, it is possible to grasp that there is a high possibility that dirt or the like is attached to the plate 8.

続くS36では、制御部22は、メモリ24に記憶されている確認フラグをメモリ24から消去する。即ち、制御部22は、確認フラグをリセットする。S36を終えると、再びS12に戻る。   In subsequent S <b> 36, the control unit 22 deletes the confirmation flag stored in the memory 24 from the memory 24. That is, the control unit 22 resets the confirmation flag. When S36 ends, the process returns to S12 again.

(制御部22が実行するテスト処理)
続いて、制御部22が実行するテスト処理について説明する。テスト処理は、メイン処理とは別個に実行される処理であり、情報コード読取装置2が情報コードを適切に読み取り可能か否かをテストするための処理である。情報コード読取装置2の管理者等が、外部端末等を介して、情報コード読取装置2に所定のテスト処理開始指示を入力すると、制御部22は、テスト処理を開始する。まず、制御部22は、照明部14によって特定範囲を照明するとともに、撮像部12によって、特定範囲の画像の撮影を開始する。そして、制御部22は、表示部16に、テストを開始する旨のメッセージとともに、管理者等に対して所定のテストシートをプレート8に向けるように促すためのメッセージを表示する。ここで、テストシートは、プレート8のサイズに適合する大きさのシートであり、プレート8を9分割した場合の9個の各区分に対応する位置のそれぞれに、テスト用の情報コード(以下「テストコード」と呼ぶ)が印刷されたシートである。テストシートは、ベンダによって予め準備されており、情報コード読取装置2の出荷時に、情報コード読取装置2とともに梱包されている。
(Test processing executed by the control unit 22)
Next, the test process executed by the control unit 22 will be described. The test process is a process executed separately from the main process, and is a process for testing whether the information code reader 2 can appropriately read the information code. When an administrator of the information code reading device 2 inputs a predetermined test processing start instruction to the information code reading device 2 via an external terminal or the like, the control unit 22 starts the test processing. First, the control unit 22 illuminates a specific range by the illumination unit 14 and starts capturing an image of the specific range by the imaging unit 12. Then, the control unit 22 displays a message for prompting the administrator or the like to point a predetermined test sheet toward the plate 8 together with a message indicating that the test is started on the display unit 16. Here, the test sheet is a sheet having a size that fits the size of the plate 8, and a test information code (hereinafter ““ This is a sheet printed with a test code. The test sheet is prepared in advance by a vendor and is packed together with the information code reader 2 when the information code reader 2 is shipped.

管理者等は、テストシートをプレートに向けて近づける(かざす)ことができる。この場合、撮像部12は、特定範囲内に配置されたテストシートに印刷されている9個のテストコードの画像を撮影する。制御部22は、9個のテストコードのそれぞれに記録されたデータのデコード(即ち読み取り)を開始する。   The administrator or the like can bring the test sheet closer to the plate. In this case, the imaging unit 12 captures nine test code images printed on a test sheet arranged within a specific range. The control unit 22 starts decoding (that is, reading) data recorded in each of the nine test codes.

9個のテストコードに記録されたデータのデコードがすべて成功した場合には、制御部22は、表示部16に、テストが正常終了した旨のメッセージを表示させる。一方、9個のテストコードのうちの1個以上に記録されたデータのデコードが失敗した場合には、制御部22は、表示部16に、テストが異常終了した旨のメッセージとともに、管理者等に対してプレート8の清掃及び点検を促すためのメッセージを表示させる。   If all the data recorded in the nine test codes have been successfully decoded, the control unit 22 causes the display unit 16 to display a message indicating that the test has been completed normally. On the other hand, when the decoding of the data recorded in one or more of the nine test codes fails, the control unit 22 displays a message indicating that the test has ended abnormally on the display unit 16 as well as an administrator or the like. A message for prompting cleaning and inspection of the plate 8 is displayed.

以上、本実施例の情報コード読取装置2の構成及び動作について説明した。上記の通り、本実施例では、制御部22は、図3のS18、S20のうちの一方でYESと判断する場合に、確認フラグをメモリ24に記憶させる。そして、制御部22は、S30、S32の判断を実行する。上記のS18、S20のうちの一方でYESと判断される場合は、情報コード読取処理の際に何らかの問題が発生していた可能性がある。そして、それがプレート8の汚損等に起因するものである可能性もある。即ち、制御部22は、プレート8が汚損している可能性がある場合に、S30、S32の処理を実行する。そして、S30、S32のうちの一方でYESと判断される場合は、プレート8が汚損している可能性が高いと言える。そして、制御部22は、S30、S32のうちの一方でYESと判断する場合には、報知動作を実行させる(S34)。情報コード読取装置2の管理者等は、情報コード読取装置2が実行する報知動作によって、プレート8が汚損している可能性が高いことを把握することができる。そして、情報コード読取装置2の管理者等は、次回以降の読取処理時に、プレート8の汚れ等が原因で情報コードの読み取りに失敗したり、情報コードが誤読されたりする事態が発生する前に、プレート8を清掃したり修理したりすることができる。従って、本実施例の情報コード読取装置2によると、プレート8に汚れ等が付着していることを適切に判定するとともにその旨を適切に報知することによって、情報コードの読み取りに失敗したり、情報コードが誤読されたりする事態の発生を適切に抑制することができる。   The configuration and operation of the information code reading device 2 according to the present embodiment have been described above. As described above, in this embodiment, the control unit 22 stores the confirmation flag in the memory 24 when determining YES in one of S18 and S20 in FIG. And the control part 22 performs judgment of S30 and S32. If YES is determined in one of the above S18 and S20, there may be some problem during the information code reading process. And there is a possibility that it is caused by the contamination of the plate 8 or the like. That is, the control unit 22 performs the processes of S30 and S32 when there is a possibility that the plate 8 is soiled. And when it is judged as YES in one of S30 and S32, it can be said that there is a high possibility that the plate 8 is soiled. And the control part 22 performs alerting | reporting operation, when it determines YES in one of S30 and S32 (S34). The administrator of the information code reading device 2 can grasp that the possibility that the plate 8 is contaminated is high by the notification operation executed by the information code reading device 2. Then, the administrator of the information code reader 2 or the like before the next reading process, before the situation where the reading of the information code fails due to dirt on the plate 8 or the situation where the information code is misread occurs. The plate 8 can be cleaned or repaired. Therefore, according to the information code reading device 2 of the present embodiment, the information code reading apparatus 2 fails to read the information code by appropriately determining that the dirt or the like is attached to the plate 8 and appropriately informing that. The occurrence of a situation where the information code is misread can be appropriately suppressed.

また、上記の通り、本実施例では、閾値Th1は、対象コードに記録されている最大誤り訂正許容率のうちの予め定められた特定割合を示す値である。即ち、閾値Th1は、対象コードの最大許容誤り訂正率に応じて相対的に定められる。そのため、読取対象の情報コードごとに適切な閾値Th1を設定し得る。従って、本実施例では、情報コード読取装置2は、プレート8に汚れ等が付着している可能性があるか否かを適切に判定し得る。   Further, as described above, in the present embodiment, the threshold value Th1 is a value indicating a predetermined specific ratio of the maximum error correction allowable rate recorded in the target code. That is, the threshold value Th1 is relatively determined according to the maximum allowable error correction rate of the target code. Therefore, an appropriate threshold value Th1 can be set for each information code to be read. Therefore, in this embodiment, the information code reading device 2 can appropriately determine whether or not there is a possibility that dirt or the like is attached to the plate 8.

また、本実施例では、対象コードの読み取りの際の読取時間は、対象コードのファインダパターンの認識からデコードの完了までの時間に相当する。そして、制御部22は、読取時間が閾値Th2を超える場合に、図3のS20でYESと判断し、確認フラグをメモリ24に記憶させる(S22)。そのため、本実施例では、情報コード読取装置2は、読み取りの開始から終了までの時間が閾値Th2を越える場合に、それがプレート8に汚れ等が付着したことに起因するものである可能性があると適切に判定し得る。   In this embodiment, the reading time when reading the target code corresponds to the time from the recognition of the finder pattern of the target code to the completion of decoding. When the reading time exceeds the threshold Th2, the control unit 22 determines YES in S20 of FIG. 3 and stores a confirmation flag in the memory 24 (S22). Therefore, in this embodiment, when the time from the start to the end of the reading exceeds the threshold value Th2, the information code reading device 2 may be due to the fact that dirt or the like has adhered to the plate 8. It can be appropriately determined that there is.

また、本実施例では、閾値Th4(S32)が示す割合は閾値Th3(S30)が示す割合より大きい。一般的に、特定範囲の画像のうちの周辺領域は中心領域に比べて情報コードの読み取りの成否に与える影響が小さい。このように、本実施例では、特定範囲の画像中の場所に応じて、閾値Th3と閾値Th4とを適切に設定しておくことによって、読取処理の実情に合わせて、プレート8に汚れ等が付着している可能性が高いことを適切に判定することができる。   In the present embodiment, the ratio indicated by the threshold Th4 (S32) is larger than the ratio indicated by the threshold Th3 (S30). In general, the peripheral area of the image in the specific range has a smaller influence on the success or failure of reading the information code than the central area. As described above, in this embodiment, the threshold value Th3 and the threshold value Th4 are appropriately set according to the location in the image within the specific range, so that the plate 8 is stained according to the actual situation of the reading process. It is possible to appropriately determine that the possibility of adhesion is high.

本実施例と請求項の記載の対応関係を説明しておく。図4のファインダパターン42が「特徴パターン」の一例である。特定範囲の画像のうちの中心領域(図5の52A、52B参照)が「第1領域」の一例であり、特定範囲の画像のうちの周辺領域(図5の54A、54B参照)が「第2領域」の一例である。   The correspondence relationship between the present embodiment and claims will be described. The finder pattern 42 in FIG. 4 is an example of the “feature pattern”. The center area (see 52A and 52B in FIG. 5) of the image in the specific range is an example of the “first area”, and the peripheral area (see 54A and 54B in FIG. 5) in the image in the specific range is the “first area”. This is an example of “two regions”.

以上、本発明の実施例について詳細に説明したが、これらは例示に過ぎず、特許請求の範囲を限定するものではない。特許請求の範囲に記載の技術には、以上に例示した具体例を様々に変形、変更したものが含まれる。例えば、以下の変形例を採用してもよい。   As mentioned above, although the Example of this invention was described in detail, these are only illustrations and do not limit a claim. The technology described in the claims includes various modifications and changes of the specific examples illustrated above. For example, the following modifications may be adopted.

(変形例1)上記の実施例では、制御部22は、図3のS18の処理(即ち、誤り訂正率が閾値Th1を超えるか否かを判断する処理)と、S20の処理(即ち、読取時間が閾値Th2を超えるか否かを判断する処理)とをこの順で実行している。これに限られず、制御部22は、S20の処理をS18の処理よりも先に実行するようにしてもよい。また、制御部22は、S18の処理とS20の処理とのうち一方のみを実行するようにしてもよい。 (Modification 1) In the above embodiment, the control unit 22 performs the processing of S18 in FIG. 3 (that is, processing for determining whether the error correction rate exceeds the threshold Th1) and the processing of S20 (that is, reading). And processing for determining whether or not the time exceeds the threshold Th2) in this order. However, the present invention is not limited to this, and the control unit 22 may execute the process of S20 before the process of S18. Moreover, you may make it the control part 22 perform only one of the process of S18, and the process of S20.

(変形例2)上記の実施例では、制御部22は、情報コード読取装置2の電源がオンされた場合に、撮像部12に、情報コード読取装置2の電源がオンされた時点の特定範囲の画像(即ち第1の特定範囲の画像)を撮影させ、メモリ24に記憶させる。これに限られず、制御部22は、情報コード読取装置2の電源がオンされた後、特定の期間(例えば1時間)ごとに、特定範囲の画像を撮影し、メモリ24に記憶させるようにしてもよい。その場合、制御部22は、メモリ24に最新の特定範囲の画像のみを記憶させるようにしてもよい(即ち、メモリ24内の特定範囲の画像を更新するようにしてもよい)。 (Modification 2) In the above embodiment, when the information code reader 2 is turned on, the control unit 22 causes the imaging unit 12 to specify a specific range when the information code reader 2 is turned on. (I.e., an image of the first specific range) is captured and stored in the memory 24. The controller 22 is not limited to this, and after the information code reader 2 is turned on, the controller 22 captures an image of a specific range and stores it in the memory 24 every specific period (for example, 1 hour). Also good. In this case, the control unit 22 may store only the latest specific range image in the memory 24 (that is, the specific range image in the memory 24 may be updated).

(変形例3)図3のS34で実行される報知動作は、上記のものには限られない。従って、例えば、制御部22は、通信I/F20を介して外部端末に所定の報知信号を供給するようにしてもよい。この場合、外部端末は、報知信号を取得すると、外部端末の表示部にプレート8が汚損している旨のメッセージを表示させるようにしてもよい。 (Modification 3) The notification operation executed in S34 of FIG. 3 is not limited to the above. Therefore, for example, the control unit 22 may supply a predetermined notification signal to the external terminal via the communication I / F 20. In this case, when the external terminal acquires the notification signal, the external terminal may display a message indicating that the plate 8 is soiled on the display unit of the external terminal.

(変形例4)上記の実施例では、制御部22は、S30の処理とS32の処理とをこの順で実行している。これに限られず、制御部22は、S30、S32の処理に代えて、第1の特定範囲の画像の全体と第2の特定範囲の画像の全体とを比較し、両者の差異の割合が所定の閾値Th3´を越えるか否かを判断する処理を実行してもよい。この場合、制御部22は、差異の割合が所定の閾値Th3´を越える場合に、S34で報知動作を実行させるようにしてもよい。この場合、閾値Th3´が「第3の閾値」の一例である。 (Modification 4) In the above embodiment, the control unit 22 executes the processing of S30 and the processing of S32 in this order. Without being limited thereto, the control unit 22 compares the entire image in the first specific range and the entire image in the second specific range instead of the processing of S30 and S32, and the ratio of the difference between the two is predetermined. A process for determining whether or not the threshold Th3 ′ is exceeded may be executed. In this case, the control unit 22 may cause the notification operation to be executed in S34 when the difference ratio exceeds the predetermined threshold Th3 ′. In this case, the threshold Th3 ′ is an example of a “third threshold”.

(変形例5)上記の実施例では、閾値Th1(S18)は、対象コードに記録されている最大誤り訂正許容率のうちの予め定められた特定割合(例えば50%)を示す値(即ち対象コードの最大誤り訂正許容率ごとに定められる相対値)である。これに限られず、閾値Th1は、対象コードの最大誤り訂正許容率に関わらず、予め定められた一定の値(即ち絶対値)であってもよい。 (Modification 5) In the above embodiment, the threshold value Th1 (S18) is a value indicating a predetermined specific ratio (for example, 50%) of the maximum error correction allowable rate recorded in the target code (that is, the target). Relative value determined for each maximum error correction allowable rate of code). The threshold Th1 is not limited to this, and may be a predetermined constant value (that is, an absolute value) regardless of the maximum error correction allowable rate of the target code.

(変形例6)制御部22は、上記のメイン処理及びテスト処理とは別に、外部端末との間で定期通信(例えば、デコード実績の報告のための通信等)を実行してもよい。その際に、制御部22は、プレート8の清掃を促すメッセージを含む報告信号を外部端末に供給するようにしてもよい。その場合、外部端末は、報告信号に基づいて、外部端末の表示部にプレート8の清掃を促すメッセージを表示させるようにしてもよい。 (Modification 6) The control unit 22 may execute regular communication (for example, communication for reporting the decoding performance) with an external terminal, separately from the main processing and the test processing. At that time, the control unit 22 may supply a report signal including a message prompting the cleaning of the plate 8 to the external terminal. In that case, the external terminal may display a message prompting the cleaning of the plate 8 on the display unit of the external terminal based on the report signal.

本明細書または図面に説明した技術要素は、単独であるいは各種の組み合わせによって技術的有用性を発揮するものであり、出願時請求項記載の組み合わせに限定されるものではない。また、本明細書または図面に例示した技術は複数目的を同時に達成するものであり、そのうちの一つの目的を達成すること自体で技術的有用性を持つものである。   The technical elements described in this specification or the drawings exhibit technical usefulness alone or in various combinations, and are not limited to the combinations described in the claims at the time of filing. In addition, the technology illustrated in the present specification or the drawings achieves a plurality of objects at the same time, and has technical utility by achieving one of the objects.

2:情報コード読取装置
4:ケース
6:読取口
8:プレート
12:撮像部
14:照明部
16:表示部
18:スピーカ
20:通信I/F
22:制御部
24:メモリ
40:情報コード
42:ファインダパターン
44:データセル領域
50A:第1の特定範囲の画像
50B:第2の特定範囲の画像
52A:(第1の特定範囲の画像の)中心領域
52B:(第2の特定範囲の画像の)中心領域
54A:(第1の特定範囲の画像の)周辺領域
54B:(第2の特定範囲の画像の)周辺領域
T:携帯端末
2: Information code reading device 4: Case 6: Reading port 8: Plate 12: Imaging unit 14: Illumination unit 16: Display unit 18: Speaker 20: Communication I / F
22: control unit 24: memory 40: information code 42: finder pattern 44: data cell area 50A: first specific range image 50B: second specific range image 52A: (of the first specific range image) Center region 52B: Center region 54A (of the second specific range image): Peripheral region 54B (of the first specific range image) Peripheral region T (of the second specific range image) T: Mobile terminal

Claims (4)

読取口が形成されたケースと、
前記読取口を閉塞する光透過性のプレートと、
前記ケース内に設けられ、前記プレートによって閉塞された前記読取口から前記ケースの外側の特定範囲を撮像可能な撮像部と、
前記特定範囲に情報コードが配置される場合に前記撮像部によって撮像される前記情報コードの画像に基づいて、前記情報コードに記録されたデータを読み取る読取処理を実行する制御部と、
メモリと、
報知動作を実行可能な報知部と、
を備えており、
前記制御部は、
特定の期間ごとに、前記撮像部によって撮像される前記特定範囲の画像を前記メモリに記憶させ、
前記読取処理が実行された場合において、さらに、
(a)読み取りの際の前記情報コードの誤り訂正率が第1の閾値を越えること、
(b)読み取りの開始から終了までの時間が第2の閾値を越えること、
のうちの少なくとも一方が成立する場合に、
前記メモリに記憶されている前記特定範囲の画像と、前記読取処理の実行後の時点の前記特定範囲の画像とを比較し、両者の差異が第3の閾値を越えるか否かを判断する判断処理を実行し、
前記判断処理において肯定的に判断される場合に、前記報知部に前記報知動作を実行させる、
情報コード読取装置。
A case where a reading port is formed;
A light transmissive plate for closing the reading port;
An imaging unit provided in the case and capable of imaging a specific range outside the case from the reading port closed by the plate;
A control unit that executes a reading process of reading data recorded in the information code based on an image of the information code captured by the imaging unit when the information code is arranged in the specific range;
Memory,
A notification unit capable of performing a notification operation;
With
The controller is
For each specific period, the image of the specific range captured by the imaging unit is stored in the memory,
In the case where the reading process is executed,
(A) an error correction rate of the information code at the time of reading exceeds a first threshold;
(B) the time from the start to the end of reading exceeds the second threshold;
If at least one of
Judgment comparing the image of the specific range stored in the memory with the image of the specific range at the time after execution of the reading process, and determining whether the difference between the two exceeds a third threshold value Execute the process,
If the determination process is positively determined, the notification section is caused to execute the notification operation.
Information code reader.
前記第1の閾値は、前記情報コードに予め記録されている最大許容誤り訂正率のうちの特定割合を示す値である、
請求項1に記載の情報コード読取装置。
The first threshold is a value indicating a specific ratio of the maximum allowable error correction rate recorded in advance in the information code.
The information code reading device according to claim 1.
前記読み取りの開始から終了までの時間は、前記情報コードに含まれる特徴パターンの認識から前記情報コードに記録されたデータのデコードの完了までの時間を含む、
請求項1又は2に記載の情報コード読取装置。
The time from the start to the end of reading includes a time from recognition of a feature pattern included in the information code to completion of decoding of data recorded in the information code.
The information code reader according to claim 1 or 2.
前記特定範囲の画像は、第1領域と、前記第1領域とは異なる第2領域とを有しており、
前記制御部は、前記判断処理において、
(A)前記メモリに記憶されている前記特定範囲の画像のうちの前記第1領域と、前記読取処理の実行後の時点の前記特定範囲の画像のうちの前記第1領域とを比較し、両者の差異が前記第3の閾値を越えるか否かを判断するとともに、
(B)前記メモリに記憶されている前記特定範囲の画像のうちの前記第2領域と、前記読取処理の実行後の時点の前記特定範囲の画像のうちの前記第2領域とを比較し、両者の差異が前記第3の閾値とは異なる第4の閾値を越えるか否かを判断し、
前記(A)(B)のうちの少なくとも一方で肯定的に判断される場合に、前記報知部に前記報知動作を実行させる、
請求項1から3のいずれか一項に記載の情報コード読取装置。
The image of the specific range includes a first area and a second area different from the first area,
In the determination process, the control unit
(A) comparing the first area of the image of the specific range stored in the memory with the first area of the image of the specific range at the time after execution of the reading process; Determining whether the difference between the two exceeds the third threshold;
(B) comparing the second region of the image of the specific range stored in the memory with the second region of the image of the specific range at the time after execution of the reading process; Determining whether the difference between the two exceeds a fourth threshold different from the third threshold;
When the determination is positive in at least one of (A) and (B), the notification unit is caused to execute the notification operation.
The information code reading device according to any one of claims 1 to 3.
JP2016043784A 2016-03-07 2016-03-07 Information code reader Active JP6583060B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2016043784A JP6583060B2 (en) 2016-03-07 2016-03-07 Information code reader

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2016043784A JP6583060B2 (en) 2016-03-07 2016-03-07 Information code reader

Publications (2)

Publication Number Publication Date
JP2017162016A JP2017162016A (en) 2017-09-14
JP6583060B2 true JP6583060B2 (en) 2019-10-02

Family

ID=59853038

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2016043784A Active JP6583060B2 (en) 2016-03-07 2016-03-07 Information code reader

Country Status (1)

Country Link
JP (1) JP6583060B2 (en)

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3906660B2 (en) * 2001-09-14 2007-04-18 松下電器産業株式会社 Optical information reader, optical information reading system, and process management system
JP5724771B2 (en) * 2011-09-07 2015-05-27 株式会社デンソーウェーブ Optical information reader
US9298957B2 (en) * 2014-07-31 2016-03-29 Symbol Technologies, Llc Detecting window deterioration on barcode scanning workstation

Also Published As

Publication number Publication date
JP2017162016A (en) 2017-09-14

Similar Documents

Publication Publication Date Title
JP3516144B1 (en) Optical information code reading method and optical information code reader
JP6951056B2 (en) Acceleration-based motion tolerance and predictive coding
JP2020126661A (en) Screen damage detection for devices
JP6323259B2 (en) Image reading apparatus, computer program, and method
CN109523527B (en) Method and device for detecting dirty area in image and electronic equipment
US11521312B2 (en) Image processing apparatus, image processing method, and storage medium
CN109584219B (en) Method for detecting dirt of camera device and cooking equipment
US20200014856A1 (en) Image processing device, control method, and program storage medium
US20150116543A1 (en) Information processing apparatus, information processing method, and storage medium
JP6583060B2 (en) Information code reader
JP2015212897A5 (en)
JP5217872B2 (en) Symbol reader and program
CN108234974A (en) Projection control, method for controlling projection and recording medium
US10489895B2 (en) Image processing apparatus, image processing method, and storage medium
JP6569764B2 (en) Image reading apparatus, computer program, and method
JP2015152417A (en) Object recognition device, object recognition method, and object recognition program
JP2015176252A (en) Image processor and image processing method
JP5482925B2 (en) Image capturing apparatus and program
CN110755105B (en) Detection method and detection system
CN113596420A (en) Projector lens detection method and device, projector and readable storage medium
JP5724771B2 (en) Optical information reader
JP5825110B2 (en) Two-dimensional code reader
JP2012118684A (en) Intruder monitoring device, identification method of foreign object solid image, and program
WO2024044942A1 (en) Point inspection method and device for visual inspection system
JP2010097316A (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: 20180712

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20181219

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20181225

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20190819

R150 Certificate of patent or registration of utility model

Ref document number: 6583060

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