JP4968043B2 - Optical information reader - Google Patents

Optical information reader Download PDF

Info

Publication number
JP4968043B2
JP4968043B2 JP2007327354A JP2007327354A JP4968043B2 JP 4968043 B2 JP4968043 B2 JP 4968043B2 JP 2007327354 A JP2007327354 A JP 2007327354A JP 2007327354 A JP2007327354 A JP 2007327354A JP 4968043 B2 JP4968043 B2 JP 4968043B2
Authority
JP
Japan
Prior art keywords
image
optical information
read
information code
code
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
JP2007327354A
Other languages
Japanese (ja)
Other versions
JP2009151446A (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 JP2007327354A priority Critical patent/JP4968043B2/en
Publication of JP2009151446A publication Critical patent/JP2009151446A/en
Application granted granted Critical
Publication of JP4968043B2 publication Critical patent/JP4968043B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Description

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

従来よりバーコードや二次元コードを読み取る光学的情報読取装置が広く知られている。この種の光学的情報読取装置では、情報コード(バーコードや二次元コード等)からの反射光を光学センサによって受光すると共に、その受光結果に応じて得られる画像データをメモリに一旦記憶し、その記憶された画像データを公知の手法によってデコードするように読取処理を行っている。
特開2001−266064公報
2. Description of the Related Art Conventionally, optical information readers that read bar codes and two-dimensional codes are widely known. In this type of optical information reading device, reflected light from an information code (bar code, two-dimensional code, etc.) is received by an optical sensor, and image data obtained according to the light reception result is temporarily stored in a memory, Reading processing is performed so as to decode the stored image data by a known method.
JP 2001-266064 A

上記の光学的情報読取装置では、受光結果に応じて得られた画像データ内に複数の情報コードが含まれる場合があり、このような場合、希望する情報コードをどのようにして特定し、読み取るかが問題となる。特許文献1では、このように画像データ内に複数の情報コードが含まれる場合に、それら情報コードをディスプレイ上に表示してユーザに選択させようとする技術が開示されている。この技術によれば、ユーザが希望する情報コードを正確に特定でき、デコード処理を的確に行うことができる。   In the above optical information reader, there are cases where a plurality of information codes are included in the image data obtained according to the light reception result. In such a case, how to identify and read the desired information code Is a problem. Japanese Patent Application Laid-Open No. 2004-133867 discloses a technique for displaying information codes on a display and allowing a user to select them when image data includes a plurality of information codes. According to this technique, the information code desired by the user can be accurately specified, and the decoding process can be accurately performed.

しかしながら、特許文献1の技術は、ユーザに装置内の一部部位(タッチパネル)を操作させることでデコードすべき情報コードを特定しようとするものであるため、特定の際に細かな操作を必要とし、また操作上の手間が大きくなるという問題がある。さらに、上記技術は、取得した画像データを一旦ディスプレイ上に表示した上で、ユーザに判断を仰ぎ、その上で上記操作を行わせるものであるため、デコード対象を特定するまでに時間がかかってしまい、ひいては読取処理全体として時間がかかるという問題もある。   However, since the technique of Patent Document 1 tries to specify an information code to be decoded by causing a user to operate a part of the device (touch panel), a detailed operation is required at the time of specification. In addition, there is a problem that the labor for operation increases. Furthermore, since the above technique displays the acquired image data once on the display and asks the user to perform the above operation, it takes time to specify the decoding target. As a result, there is also a problem that the entire reading process takes time.

本発明は、上述した課題を解決するためになされたものであり、読み取りエリア内に複数の情報コードが含まれる場合に、ユーザが希望する情報コードを迅速かつ的確に特定でき、ひいては読取処理時間を短縮化できる光学的情報読取装置を提供することを目的とする。   The present invention has been made in order to solve the above-described problem. When a plurality of information codes are included in the reading area, the information code desired by the user can be quickly and accurately specified, and the reading processing time can be increased. It is an object of the present invention to provide an optical information reading apparatus capable of shortening the length.

上記目的を達成するため、請求項1の発明は、情報コードが記録された読取対象からの反射光を受光する受光手段と、少なくとも第1の時期における前記受光手段による受光結果に基づいて読取対象の第1画像を生成する画像生成手段と、前記読取対象の第1画像に含まれる前記情報コードの画像をデコードするデコード手段と、を備えた光学的情報読取装置であって、前記デコード手段は、前記第1の時期後のユーザによる前記光学的情報読取装置の操作方向を検出する操作方向検出手段と、前記読取対象の第1画像において前記情報コードの画像が複数含まれる場合に、前記操作方向検出手段によって検出された前記操作方向に基づいて、いずれかの前記情報コードを選択する選択手段と、を備え、かつ、前記選択手段によって選択された前記情報コードのデコード結果を出力することを特徴とする。   In order to achieve the above object, the invention according to claim 1 is directed to a light receiving means for receiving reflected light from a reading object on which an information code is recorded, and a reading object based on a light reception result by the light receiving means at least at a first time. An optical information reading apparatus comprising: an image generating means for generating a first image; and a decoding means for decoding an image of the information code included in the first image to be read, wherein the decoding means The operation direction detecting means for detecting the operation direction of the optical information reading device by the user after the first period, and the operation when the plurality of information code images are included in the first image to be read. Selection means for selecting any one of the information codes based on the operation direction detected by the direction detection means, and selected by the selection means And outputs the result of decoding the information code.

請求項2の発明は、請求項1に記載の光学的情報読取装置であって、前記第1の時期後の前記ユーザによる前記光学的情報読取装置の操作量を検出する操作量検出手段を備え、前記選択手段は、前記読取対象の第1画像において前記情報コードの画像が複数含まれる場合に、前記操作方向検出手段によって検出された前記操作方向と、前記操作量検出手段によって検出された前記操作量と、に基づいて、いずれかの前記情報コードを選択することを特徴とする。   According to a second aspect of the present invention, there is provided the optical information reading device according to the first aspect, comprising operation amount detecting means for detecting an operation amount of the optical information reading device by the user after the first period. The selection unit includes the operation direction detected by the operation direction detection unit and the operation amount detection unit detected by the operation amount detection unit when the first image to be read includes a plurality of images of the information code. One of the information codes is selected based on an operation amount.

請求項3の発明は、請求項1に記載の光学的情報読取装置において、前記画像生成手段は、前記第1の時期において前記読取対象の第1画像を生成すると共に、前記第1の時期の後に前記ユーザが前記光学的情報読取装置を移動させた後の前記受光手段による受光結果に基づいて読取対象の第2画像を生成し、前記操作方向検出手段は、前記読取対象の第1画像と、前記読取対象の第2画像と、に基づいて前記操作方向を検出することを特徴とする。   According to a third aspect of the present invention, in the optical information reading device according to the first aspect, the image generating means generates the first image to be read at the first time and the first time. A second image to be read is generated based on a light reception result by the light receiving unit after the user has moved the optical information reading device later, and the operation direction detection unit is configured to detect the first image to be read The operation direction is detected based on the second image to be read.

請求項4の発明は、請求項2に記載の光学的情報読取装置において、前記画像生成手段は、前記第1の時期において前記読取対象の第1画像を生成すると共に、前記第1の時期の後に前記ユーザが前記光学的情報読取装置を移動させた後の前記受光手段による受光結果に基づいて読取対象の第2画像を生成し、前記操作方向検出手段及び前記操作量検出手段は、前記読取対象の第1画像と、前記読取対象の第2画像と、に基づいて、前記操作方向及び前記操作量をそれぞれ検出することを特徴とする。   According to a fourth aspect of the present invention, in the optical information reading device according to the second aspect, the image generating means generates the first image to be read at the first time period, and at the first time period. A second image to be read is generated based on a light reception result by the light receiving means after the user has moved the optical information reading device, and the operation direction detection means and the operation amount detection means The operation direction and the operation amount are detected based on the first image of the object and the second image of the object to be read.

請求項5の発明は、請求項4に記載の光学的情報読取装置において、前記情報コードは位置検出パターンを含んだ二次元コードであり、前記操作方向検出手段及び前記操作量検出手段は、前記読取対象の第1画像に含まれる前記情報コードの前記位置検出パターンと、前記読取対象の第2画像に含まれる前記情報コードの前記位置検出パターンと、に基づいて前記操作方向及び前記操作量をそれぞれ検出することを特徴とする。   According to a fifth aspect of the present invention, in the optical information reading device according to the fourth aspect, the information code is a two-dimensional code including a position detection pattern, and the operation direction detection means and the operation amount detection means are Based on the position detection pattern of the information code included in the first image to be read and the position detection pattern of the information code included in the second image to be read, the operation direction and the operation amount are determined. Each is detected.

請求項6の発明は、請求項3から請求項5のいずれか一項に記載の光学的情報読取装置において、前記選択手段は、前記読取対象の第1画像から前記読取対象の第2画像に変化する際に、画像中心位置へ接近しようとする前記情報コードを選択することを特徴とする。   According to a sixth aspect of the present invention, in the optical information reading device according to any one of the third to fifth aspects, the selecting unit changes the first image to be read from the first image to be read to the second image to be read. When changing, the information code is selected to approach the image center position.

請求項7の発明は、請求項1に記載の光学的情報読取装置において、前記操作方向検出手段は、前記光学的情報読取装置の加速度を検出する加速度検出手段からなることを特徴とする。   According to a seventh aspect of the present invention, in the optical information reading apparatus according to the first aspect, the operation direction detecting means includes an acceleration detecting means for detecting an acceleration of the optical information reading apparatus.

請求項8の発明は、請求項2に記載の光学的情報読取装置において、前記操作方向検出手段及び前記操作量検出手段は、前記光学的情報読取装置の加速度を検出する加速度検出手段からなることを特徴とする。   According to an eighth aspect of the present invention, in the optical information reading device according to the second aspect, the operation direction detecting means and the operation amount detecting means comprise acceleration detecting means for detecting an acceleration of the optical information reading device. It is characterized by.

請求項9の発明は、請求項1から請求項8のいずれか一項に記載の光学的情報読取装置において、前記選択手段は、前記読取対象の第1画像を複数領域に分割する分割手段と、前記複数領域の各領域に数値を割り当てる割当手段と、を備え、前記割当手段は、前記ユーザによる前記光学的情報読取装置の前記操作方向に基づいて前記複数領域のうちの一部領域の数値を、前記一部領域以外に割り当てられる基準値よりも大きく設定するように各領域に数値を割り当て、前記選択手段は、前記読取対象の第1画像において前記情報コードの画像が複数含まれる場合、各情報コードの画像が配されている前記領域の前記数値に基づいていずれかの前記情報コードを選択することを特徴とする。   According to a ninth aspect of the present invention, in the optical information reading apparatus according to any one of the first to eighth aspects, the selecting means includes a dividing means for dividing the first image to be read into a plurality of regions. And assigning means for assigning a numerical value to each of the plurality of areas, wherein the assigning means is a numerical value of a part of the plurality of areas based on the operation direction of the optical information reading device by the user. Assigning a numerical value to each region so as to be set larger than a reference value assigned to other than the partial region, and the selection means includes a plurality of images of the information code in the first image to be read; Any one of the information codes is selected based on the numerical value of the area where the image of each information code is arranged.

請求項10の発明は、請求項9に記載の光学的情報読取装置において、前記割当手段は、前記ユーザによる前記光学的情報読取装置の操作量に応じた広さで前記一部領域を設定することを特徴とする。   According to a tenth aspect of the present invention, in the optical information reading device according to the ninth aspect, the allocating unit sets the partial area with a width corresponding to an operation amount of the optical information reading device by the user. It is characterized by that.

請求項11の発明は、請求項9又は請求項10に記載の光学的情報読取装置において、前記読取対象の第1画像を表示すると共に、当該読取対象の第1画像における前記複数領域のそれぞれを、各領域の前記数値に対応した態様で表示する領域態様表示手段を備えたことを特徴とする。 The invention according to claim 11 is the optical information reading device according to claim 9 or 10 , wherein the first image to be read is displayed and each of the plurality of regions in the first image to be read is displayed. Further, it is characterized by comprising area mode display means for displaying in a mode corresponding to the numerical value of each area.

請求項12の発明は、請求項1から請求項11のいずれか一項に記載の光学的情報読取装置において、前記デコード手段は、前記読取対象の第1画像において前記情報コードの画像が複数含まれる場合、前記選択手段による選択に先立ってその複数の前記情報コードをそれぞれデコードし、かつ、前記ユーザによる前記光学的情報読取装置の前記操作方向に基づいて、既にデコードされたいずれかの前記情報コードを前記選択手段によって選択し、デコード結果を出力することを特徴とする。 According to a twelfth aspect of the present invention, in the optical information reading apparatus according to any one of the first to eleventh aspects, the decoding means includes a plurality of images of the information code in the first image to be read. If the information is decoded, each of the plurality of the information codes is decoded prior to selection by the selection unit, and any of the information that has already been decoded based on the operation direction of the optical information reader by the user A code is selected by the selection means, and a decoding result is output.

請求項13の発明は、請求項9から請求項11のいずれか一項に記載の光学的情報読取装置において、前記デコード手段は、前記読取対象の第1画像において前記情報コードの画像が複数含まれる場合、それら複数の前記情報コードの画像について、前記数値の大きい前記領域に配される前記情報コードから順にデコードを行い、最初にデコードを正常に行うことができた前記情報コードのデコード結果を出力することを特徴とする。 According to a thirteenth aspect of the present invention, in the optical information reading device according to any one of the ninth to eleventh aspects, the decoding unit includes a plurality of images of the information code in the first image to be read. The information code images are decoded in order starting from the information code arranged in the area having the larger numerical value, and the decoding result of the information code that can be normally decoded first is obtained. It is characterized by outputting.

請求項14の発明は、請求項1から請求項13のいずれか一項に記載の光学的情報読取装置において、前記読取対象と、前記光学的情報読取装置との対応関係を示す表示手段を備えたことを特徴とする。 A fourteenth aspect of the present invention is the optical information reading device according to any one of the first to thirteenth aspects, further comprising display means for indicating a correspondence relationship between the reading target and the optical information reading device. It is characterized by that.

請求項15の発明は、請求項14に記載の光学的情報読取装置において、前記表示手段は、少なくとも前記読取対象の第1画像を表示すると共に、前記読取対象の第1画像の所定位置に識別マークを表示する表示器からなり、前記表示器は、前記第1の時期後の前記操作方向に応じた前記読取対象における画像取得領域の移動方向に対応させて、前記読取対象の第1画像に付されている前記識別マークの表示位置を移動させることを特徴とする。 According to a fifteenth aspect of the present invention, in the optical information reading device according to the fourteenth aspect , the display means displays at least the first image to be read and identifies the predetermined position of the first image to be read. A display for displaying a mark, the display corresponding to a moving direction of an image acquisition region in the reading target according to the operation direction after the first time period, on the first image of the reading target . The display position of the attached identification mark is moved.

請求項16の発明は、請求項15に記載の光学的情報読取装置において、前記表示器は、前記第1の時期後の前記ユーザによる前記光学的情報読取装置の操作に応じ、前記選択手段によって選択される前記情報コードの画像位置に前記識別マークの表示位置を移動させることを特徴とする。 According to a sixteenth aspect of the present invention, in the optical information reading device according to the fifteenth aspect , the display unit is operated by the selection unit according to an operation of the optical information reading device by the user after the first period. The display position of the identification mark is moved to the image position of the selected information code.

請求項17の発明は、請求項14に記載の光学的情報読取装置において、前記表示手段は、前記読取対象に対してマーカ光を照射するマーカ光照射手段からなり、前記マーカ光照射手段は、前記読取対象における前記光学的情報読取装置による画像取得領域の所定位置に前記マーカ光を照射することで、前記読取対象と前記光学的情報読取装置との対応関係を示すことを特徴とする。 The invention of claim 17 is the optical information reader according to claim 14 , wherein the display means comprises marker light irradiating means for irradiating the reading object with marker light, and the marker light irradiating means comprises: A correspondence relationship between the reading target and the optical information reading device is shown by irradiating the marker light to a predetermined position of an image acquisition region of the reading target by the optical information reading device.

請求項18の発明は、請求項1から請求項17のいずれか一項に記載の光学的情報読取装置において、前記選択手段による前記情報コードの選択結果を表示する選択コード表示手段と、前記ユーザからの解除操作に基づき、前記選択手段による前記情報コードの選択を解除する選択解除手段と、を備えたことを特徴とする。 The invention according to claim 18 is the optical information reading device according to any one of claims 1 to 17 , wherein the selection code display means for displaying the selection result of the information code by the selection means, and the user Selection canceling means for canceling the selection of the information code by the selection means based on a canceling operation.

請求項1の発明では、第1の時期に得られた読取対象の第1画像内に複数の情報コードが含まれる場合、操作方向検出手段によって検出された操作方向に基づいて、いずれかの情報コードを選択し、その選択された情報コードのデコード結果を出力するようにしている。この構成では、読み取りエリア内に複数の情報コードが含まれる場合、ユーザが当該光学的情報読取装置を適切な方向に操作することによって情報コードを選択できるようになるため、情報コードの選択操作を容易化することができる。また、ディスプレイ上に複数の情報コードを表示した上で細かな選択操作を行わせる従来構成と比較して、情報コードの特定処理を迅速に行うことができ、ひいては読取処理時間をより短縮化できるようになる。   According to the first aspect of the present invention, when a plurality of information codes are included in the first image to be read obtained at the first time, any information is based on the operation direction detected by the operation direction detection means. A code is selected, and the decoding result of the selected information code is output. In this configuration, when a plurality of information codes are included in the reading area, the user can select the information code by operating the optical information reading device in an appropriate direction. Can be facilitated. In addition, information code identification processing can be performed quickly, and reading processing time can be further shortened, as compared with a conventional configuration in which a plurality of information codes are displayed on a display and a fine selection operation is performed. It becomes like this.

請求項2の発明では、操作方向検出手段によって検出された操作方向と、操作量検出手段によって検出された操作量と、に基づいて、いずれかの情報コードを選択するようにしている。このようにすれば、操作方向だけでは情報コードを特定しきれない場合であっても操作量に基づいて適切に特定することができる。   According to the second aspect of the present invention, any one of the information codes is selected based on the operation direction detected by the operation direction detection means and the operation amount detected by the operation amount detection means. In this way, even if the information code cannot be specified only by the operation direction, it can be appropriately specified based on the operation amount.

請求項3の発明では、第1の時期の受光結果に基づいて得られる読取対象の第1画像と、第1の時期後にユーザが光学的情報読取装置を移動させた後の受光結果により得られる読取対象の第2画像と、に基づいて操作方向を検出している。このように、異なる時期に得られた画像に基づいて操作方向を検出するようにすれば、画像処理を行う手段を操作方向検出手段として兼用できるため、複雑な検出手段を別途特別に設ける必要がなく、高機能な構成をコストを抑えて実現できることとなる。   According to the third aspect of the present invention, the first image to be read obtained based on the light reception result at the first time and the light reception result after the user moves the optical information reader after the first time are obtained. The operation direction is detected based on the second image to be read. In this way, if the operation direction is detected based on images obtained at different times, the image processing means can be used as the operation direction detection means, and therefore it is necessary to provide a complicated detection means separately. Therefore, a highly functional configuration can be realized at a reduced cost.

請求項4の発明のように、異なる時期に得られた画像に基づいて操作方向及び操作量を検出するようにすれば、画像処理を行う手段を操作方向検出手段及び操作量検出手段として兼用できるため、高機能な構成をコストを抑えて実現という点でより有利となる。   If the operation direction and the operation amount are detected based on images obtained at different times as in the invention of claim 4, the means for performing image processing can be used as the operation direction detection means and the operation amount detection means. Therefore, it is more advantageous in terms of realizing a highly functional configuration at a reduced cost.

請求項5の発明では、位置検出パターンを含んだ二次元コードを読取対象とし、読取対象の第1画像に含まれる二次元コードの位置検出パターンと、読取対象の第2画像に含まれる二次元コードの位置検出パターンと、に基づいて操作方向及び操作量をそれぞれ検出している。このように、二次元コードの特徴的な部分に着目すれば、異なる時期に得られる二画像の差異を的確かつ迅速に把握できるようになり、当該光学的情報読取装置の操作量及び操作方向をより精度高く短時間で検出できるようになる。   In the invention of claim 5, a two-dimensional code including a position detection pattern is to be read, and a two-dimensional code position detection pattern included in the first image to be read and a two-dimensional code included in the second image to be read. The operation direction and the operation amount are detected based on the code position detection pattern. Thus, by paying attention to the characteristic part of the two-dimensional code, it becomes possible to accurately and quickly grasp the difference between the two images obtained at different times, and the operation amount and operation direction of the optical information reading device can be determined. It becomes possible to detect with higher accuracy in a shorter time.

請求項6の発明は、読取対象の第1画像から読取対象の第2画像に変化する際に、画像中心位置へ接近しようとする情報コードを選択するように構成されている。この構成によれば、ユーザが、希望する情報コードを読み取りエリアの中心位置に向かわせるように当該光学的情報読取装置を操作すればその情報コードが選択されるようになり、操作性、利便性に優れた構成となる。   The invention according to claim 6 is configured to select an information code to approach the image center position when changing from the first image to be read to the second image to be read. According to this configuration, if the user operates the optical information reading device so that the desired information code is directed to the center position of the reading area, the information code can be selected. The configuration is excellent.

請求項7の発明では、光学的情報読取装置の加速度を検出する加速度検出手段が設けられ、これが操作方向検出手段として機能している。このようにすれば、ユーザによる光学的情報読取装置の操作方向を良好に検出できるようになる。   In the invention of claim 7, acceleration detection means for detecting the acceleration of the optical information reader is provided, and this functions as operation direction detection means. In this way, the operation direction of the optical information reader by the user can be detected well.

請求項8の発明では、光学的情報読取装置の加速度を検出する加速度検出手段が設けられ、これが操作方向検出手段及び操作量検出手段として機能している。このようにすれば、ユーザによる光学的情報読取装置の操作方向及び操作量を良好に検出できるようになる。   In the invention of claim 8, acceleration detecting means for detecting the acceleration of the optical information reader is provided, and this functions as an operation direction detecting means and an operation amount detecting means. In this way, the operation direction and operation amount of the optical information reading apparatus by the user can be detected well.

請求項9の発明では、読取対象の第1画像を複数領域に分割する分割手段と、複数領域の各領域に数値を割り当てる割当手段と、が設けられ、この割当手段は、ユーザによる光学的情報読取装置の操作方向に基づいて複数領域のうちの一部領域の数値を、一部領域以外に割り当てられる基準値よりも大きく設定するように各領域に数値を割り当てている。そして、読取対象の第1画像において情報コードの画像が複数含まれる場合、各情報コードの画像が配されている領域の数値に基づいていずれかの情報コードを選択するようにしている。この構成によれば、操作方向に対応する特定領域を他の領域と差別化するように数値設定でき、このような数値設定に基づいてユーザが希望する情報コードを適切に選択できるようになる。   According to the ninth aspect of the present invention, there are provided dividing means for dividing the first image to be read into a plurality of areas, and assigning means for assigning numerical values to each of the plurality of areas. Based on the operation direction of the reading device, a numerical value is assigned to each area so that a numerical value of a partial area of the plurality of areas is set to be larger than a reference value assigned to other than the partial area. When the first image to be read includes a plurality of information code images, one of the information codes is selected based on the numerical value of the area where the information code image is arranged. According to this configuration, the specific area corresponding to the operation direction can be set numerically so as to be differentiated from other areas, and the information code desired by the user can be appropriately selected based on such numerical setting.

請求項10の発明では、ユーザによる光学的情報読取装置の操作量に応じた広さで一部領域(数値を大きく設定する領域)を設定している。操作量が大きくなるような場合、操作の性質上、操作方向と希望する情報コードとのズレが大きくなりやすいが、本発明では、操作量が大きくなる場合には、一部領域(数値を大きく設定する領域)を広く設定してズレの影響を抑えるようにしている。また、操作量が小さい場合、操作の性質上、操作方向と情報コードとを比較的対応させやすいが、本発明では、操作量が小さくなる場合には一部領域(数値を大きく設定する領域)が狭く設定されるため、操作方向との関連性が小さい情報コードが選択されにくくなる。   In a tenth aspect of the present invention, a partial area (an area where a numerical value is set to be large) is set with a size corresponding to the amount of operation of the optical information reader by the user. When the amount of operation increases, due to the nature of the operation, the deviation between the operation direction and the desired information code tends to increase. However, in the present invention, when the amount of operation increases, a certain area (the numerical value is increased). The area to be set) is set wide to suppress the influence of the shift. In addition, when the operation amount is small, the operation direction and the information code are relatively easily associated with each other due to the nature of the operation. However, in the present invention, when the operation amount is small, a partial area (area where the numerical value is set large). Is set narrowly, it becomes difficult to select an information code having a small relationship with the operation direction.

請求項11の発明では、読取対象の第1画像を表示すると共に、当該読取対象の第1画像における複数領域のそれぞれを、各領域の数値に対応した態様で表示するようにしている。このようにすれば、ユーザによる操作と情報コードとの対応関係を、実際に取得された画像(読取対象の第1画像)に基づいてユーザに的確に把握させることができ、選択操作を行う上での利便性を一層向上できる。 In the eleventh aspect of the invention, the first image to be read is displayed, and each of the plurality of regions in the first image to be read is displayed in a manner corresponding to the numerical value of each region. In this way, the correspondence between the user's operation and the information code can be accurately grasped by the user based on the actually acquired image (first image to be read), and the selection operation can be performed. The convenience in the can be further improved.

請求項12の発明では、読取対象の第1画像において情報コードの画像が複数含まれる場合、選択手段による選択に先立ってその複数の情報コードをそれぞれデコードし、かつ、ユーザによる光学的情報読取装置の操作方向に基づいて、既にデコードされたいずれかの情報コードを選択手段によって選択し、デコード結果を出力するようにしている。このように、予め複数の情報コードをデコードしてからいずれかの情報コードを選択するようにすれば、操作方向と対応する情報コードを検出しやすく、また、選択後のデコード不良を防止できる。 In the invention of claim 12 , when a plurality of information code images are included in the first image to be read, each of the plurality of information codes is decoded prior to selection by the selection means, and the optical information reading device by the user Based on the operation direction, any one of the already decoded information codes is selected by the selection means, and the decoding result is output. As described above, if one of the information codes is selected after previously decoding a plurality of information codes, it is easy to detect the information code corresponding to the operation direction, and it is possible to prevent a decoding failure after the selection.

請求項13の発明では、読取対象の第1画像において情報コードの画像が複数含まれる場合、それら複数の情報コードの画像について、数値の大きい領域に配される情報コードから順にデコードを行い、最初にデコードを正常に行うことができた情報コードのデコード結果を出力するようにしている。このようにすれば、デコード処理を必要最低限の回数に抑えることができ、処理の高速化を図ることができる。 In the invention of claim 13 , when a plurality of information code images are included in the first image to be read, the plurality of information code images are decoded in order starting from the information code arranged in the area having a large numerical value. The decoding result of the information code that has been successfully decoded is output. In this way, the decoding process can be suppressed to the minimum necessary number, and the processing speed can be increased.

請求項14の発明では、読取対象と光学的情報読取装置との対応関係を示す表示手段が設けられている。従って、読取対象と光学的情報読取装置との対応関係を、ユーザが的確に把握することができ、ユーザは、情報コードを選択するための選択操作を、表示手段を確認しながら適切に行うことができる。 According to the fourteenth aspect of the present invention, there is provided display means for indicating the correspondence between the reading object and the optical information reading device. Accordingly, the user can accurately grasp the correspondence between the reading target and the optical information reading apparatus, and the user appropriately performs the selection operation for selecting the information code while checking the display means. Can do.

請求項15の発明では、少なくとも読取対象の第1画像を表示すると共に、読取対象の第1画像の所定位置に識別マークを表示する表示器が設けられ、第1の時期後の操作に応じた画像取得領域の移動方向に対応させて識別マークの表示位置を移動させるようにしている。このようにすれば、読取対象と光学的情報読取装置との対応関係をユーザが良好に把握できると共に、当該光学的情報読取装置が操作された後の読取対象との対応関係も確認できるようになる。従って、ユーザが情報コードの選択操作をより一層良好に行うことができる。 According to the fifteenth aspect of the present invention, there is provided a display for displaying at least a first image to be read and displaying an identification mark at a predetermined position of the first image to be read, in accordance with an operation after the first time. The display position of the identification mark is moved in correspondence with the moving direction of the image acquisition area. In this way, the user can better understand the correspondence between the reading target and the optical information reading device, and can also check the correspondence with the reading target after the optical information reading device is operated. Become. Therefore, the user can perform the selection operation of the information code even better.

請求項16の発明では、第1の時期後のユーザによる光学的情報読取装置の操作に応じ、選択手段によって選択される情報コードの画像位置に識別マークの表示位置を移動させるようにしている。このようにすれば、どの情報コードが選択されるのかをユーザに迅速に示すことができる。 In the invention of claim 16 , the display position of the identification mark is moved to the image position of the information code selected by the selection means in accordance with the operation of the optical information reader by the user after the first period. In this way, it is possible to quickly indicate to the user which information code is selected.

請求項17の発明では、読取対象に対してマーカ光を照射するマーカ光照射手段が設けられ、読取対象における光学的情報読取装置による画像取得領域の所定位置にマーカ光を照射することで、読取対象と光学的情報読取装置との対応関係を示している。このようにすれば、複雑な構成を用いずに、読取対象と光学的情報読取装置との対応関係をユーザに知らしめることができ、ユーザはマーカ光を拠り所として選択操作を適切に行うことができる。 In the invention of claim 17 , marker light irradiating means for irradiating the reading target with marker light is provided, and the reading is performed by irradiating the marker light to a predetermined position of the image acquisition region by the optical information reading device on the reading target. The correspondence relationship between the object and the optical information reader is shown. In this way, it is possible to inform the user of the correspondence between the reading target and the optical information reading device without using a complicated configuration, and the user can appropriately perform the selection operation based on the marker light. it can.

請求項18の発明は、選択手段による情報コードの選択結果を表示する選択コード表示手段と、ユーザからの解除操作に基づき、選択手段による情報コードの選択を解除する選択解除手段と、が設けられている。このようにすれば、希望する情報コードを選択したか否かをユーザが把握することができ、誤った情報コードを選択した場合にはその選択を解除できるようになる。 The invention according to claim 18 is provided with a selection code display means for displaying the selection result of the information code by the selection means, and a selection release means for releasing the selection of the information code by the selection means based on a release operation from the user. ing. In this way, the user can grasp whether or not the desired information code has been selected, and when an incorrect information code is selected, the selection can be canceled.

[第1実施形態]
以下、本発明の第1実施形態について図面を参照して説明する。図1は、本発明の第1実施形態に係る光学的情報読取装置を概略的に例示するブロック図である。図2は、図1の光学的情報読取装置による読取処理のメインルーチンを例示するフローチャートである。図3は、移動検出処理の流れを例示するフローチャートである。図4は、優先順位設定処理の流れを例示するフローチャートである。図5は、第1の時期における画像取得の様子を説明する説明図である。図6は、第2の時期における画像取得の様子を説明する説明図である。図7は、取得画像に基づいて移動方向及び移動量を検出する概念を説明する説明図である。図8は、第1画像を複数領域に分割した例を示す説明図である。図9(a)は移動量がゼロの場合、若しくは所定の微動状態であるときの数値設定を説明する説明図であり、(b)は、移動量が所定の小状態であるときの数値設定を説明する説明図である。図10(a)は、移動量が所定の中状態であるときの数値設定を説明する説明図であり、(b)は、移動量が所定の大状態のときの数値設定を説明する説明図である。図11(a)は、第1画像を表示する様子を説明する説明図であり、(b)は、各領域の態様を数値設定に応じて変化させる例を説明する説明図である。図12は、情報コードが選択された状態を画像表示する例を説明する説明図である。
[First embodiment]
Hereinafter, a first embodiment of the present invention will be described with reference to the drawings. FIG. 1 is a block diagram schematically illustrating an optical information reading apparatus according to the first embodiment of the present invention. FIG. 2 is a flowchart illustrating a main routine of a reading process by the optical information reading apparatus of FIG. FIG. 3 is a flowchart illustrating the flow of the movement detection process. FIG. 4 is a flowchart illustrating the flow of priority order setting processing. FIG. 5 is an explanatory diagram for explaining a state of image acquisition in the first period. FIG. 6 is an explanatory diagram for explaining a state of image acquisition in the second period. FIG. 7 is an explanatory diagram for explaining the concept of detecting the movement direction and the movement amount based on the acquired image. FIG. 8 is an explanatory diagram illustrating an example in which the first image is divided into a plurality of regions. FIG. 9A is an explanatory diagram for explaining the numerical setting when the movement amount is zero or in a predetermined fine movement state, and FIG. 9B is the numerical setting when the movement amount is in a predetermined small state. It is explanatory drawing explaining these. FIG. 10A is an explanatory diagram for explaining the numerical setting when the movement amount is in a predetermined middle state, and FIG. 10B is an explanatory diagram for explaining the numerical setting when the movement amount is in a predetermined large state. It is. FIG. 11A is an explanatory diagram for explaining a state in which the first image is displayed, and FIG. 11B is an explanatory diagram for explaining an example in which the mode of each region is changed in accordance with the numerical value setting. FIG. 12 is an explanatory diagram for explaining an example in which the state in which the information code is selected is displayed as an image.

(1.全体構成)
図1に示す光学的情報読取装置1は、バーコードや二次元コードを読み取るコードリーダとして構成されるものであり、主に、照明光源21、受光センサ23、フィルタ25、結像レンズ27等の光学系と、メモリ35、制御回路40、操作スイッチ42、液晶表示装置46等のマイクロコンピュータ(以下「マイコン」という)系と、電源スイッチ41、電池49等の電源系と、から構成されている。なお、これらは、図略のプリント配線板に実装あるいは図略のハウジング内に内装されている。
(1. Overall configuration)
An optical information reading apparatus 1 shown in FIG. 1 is configured as a code reader that reads a bar code or a two-dimensional code, and mainly includes an illumination light source 21, a light receiving sensor 23, a filter 25, an imaging lens 27, and the like. It comprises an optical system, a memory 35, a control circuit 40, an operation switch 42, a microcomputer system such as a liquid crystal display device 46 and the like, and a power supply system such as a power switch 41 and a battery 49. . These are mounted on a printed wiring board (not shown) or housed in a housing (not shown).

光学系は、照明光源21、受光センサ23、フィルタ25、結像レンズ27等から構成されている。照明光源21は、照明光Lfを発光可能な照明光源として機能するもので、例えば、赤色のLEDとこのLEDの出射側に設けられる拡散レンズ、集光レンズ等とから構成されている。本実施形態では、受光センサ23を挟んだ両側に照明光源21が設けられており、図略のハウジングの読取口を介して読取対象物Rに向けて照明光Lfを照射可能に構成されている。この読取対象物Rは、例えば、包装容器や包装用紙あるいはラベルといった表示媒体に相当するもので、その表面には情報コードC(例えば後述するバーコードBや二次元コードQ1,Q2等)が印刷等により付されている。   The optical system includes an illumination light source 21, a light receiving sensor 23, a filter 25, an imaging lens 27, and the like. The illumination light source 21 functions as an illumination light source capable of emitting illumination light Lf, and includes, for example, a red LED and a diffusion lens, a condensing lens, and the like provided on the emission side of the LED. In the present embodiment, illumination light sources 21 are provided on both sides of the light receiving sensor 23, and configured to irradiate the illumination light Lf toward the reading object R through a reading port of a housing (not shown). . The reading object R corresponds to a display medium such as a packaging container, packaging paper, or label, for example, and an information code C (for example, a bar code B or a two-dimensional code Q1, Q2 described later) is printed on the surface thereof. Etc. are attached.

受光センサ23は、読取対象物Rや情報コードCに照射されて反射した反射光Lrを受光可能に構成されるもので、例えば、C−MOSやCCD等の固体撮像素子である受光素子を2次元に配列したエリアセンサが、これに相当する。この受光センサ23の受光面23aは、ハウジング外から読取口を介して外観可能に位置しており、受光センサ23は、結像レンズ27を介して入射する入射光をこの受光面23aで受光可能に図略のプリント配線板に実装されている。   The light receiving sensor 23 is configured to be able to receive the reflected light Lr irradiated and reflected on the reading object R and the information code C. For example, the light receiving element 23 is a solid-state image pickup device such as a C-MOS or CCD. An area sensor arranged in a dimension corresponds to this. The light receiving surface 23a of the light receiving sensor 23 is positioned so as to be externally visible through the reading port from the outside of the housing. The light receiving sensor 23 can receive incident light incident through the imaging lens 27 on the light receiving surface 23a. It is mounted on a printed wiring board (not shown).

フィルタ25は、反射光Lrの波長相当以下の光の通過を許容し、当該波長相当を超える光の通過を遮断し得る光学的なローパスフィルタで、ハウジングの読取口と結像レンズ27との間に設けられている。これにより、反射光Lrの波長相当を超える不要な光が受光センサ23に入射することを抑制している。   The filter 25 is an optical low-pass filter that allows passage of light that is less than or equal to the wavelength of the reflected light Lr, and that can block passage of light that exceeds the wavelength, and is provided between the reading port of the housing and the imaging lens 27. Is provided. Thereby, unnecessary light exceeding the wavelength equivalent of the reflected light Lr is prevented from entering the light receiving sensor 23.

結像レンズ27は、外部から読取口を介して入射する入射光を集光して受光センサ23の受光面23aに像を結像可能な結像光学系として機能するもので、例えば、鏡筒とこの鏡筒内に収容される複数の集光レンズとにより構成されている。本実施形態では、照明光源21から照射された照明光Lfが情報コードCに反射して読取口に入射する反射光Lrを集光することにより、受光センサ23の受光面23aに情報コードCのコード画像を結像可能にしている。   The imaging lens 27 functions as an imaging optical system capable of condensing incident light incident from the outside via a reading port and forming an image on the light receiving surface 23a of the light receiving sensor 23. And a plurality of condensing lenses housed in the lens barrel. In the present embodiment, the illumination light Lf emitted from the illumination light source 21 is reflected by the information code C and the reflected light Lr incident on the reading port is collected, whereby the information code C is reflected on the light receiving surface 23a of the light receiving sensor 23. The code image can be formed.

次に、マイコン系の構成概要を説明する。マイコン系は、増幅回路31、A/D変換回路33、メモリ35、アドレス発生回路36、同期信号発生回路38、制御回路40、操作スイッチ42、LED43、ブザー44、液晶表示装置46、通信インタフェース48等から構成されている。このマイコン系は、その名の通り、マイコン(情報処理装置)として機能し得る制御回路40およびメモリ35を中心に構成されるもので、前述した光学系によって撮像された情報コードCの画像信号をハードウェア的およびソフトウェア的に信号処理し得るものである。また制御回路40は、当該光学的情報読取装置1の全体システムに関する制御も行っている。   Next, a configuration outline of the microcomputer system will be described. 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, an operation switch 42, an LED 43, a buzzer 44, a liquid crystal display device 46, and a communication interface 48. Etc. As the name suggests, this microcomputer system is composed mainly of a control circuit 40 and a memory 35 that can function as a microcomputer (information processing device). The image signal of the information code C imaged by the optical system described above is obtained. It can perform signal processing in terms of hardware and software. The control circuit 40 also performs control related to the entire system of the optical information reading apparatus 1.

光学系の受光センサ23から出力される画像信号(アナログ信号)は、増幅回路31に入力されることで所定ゲインで増幅された後、A/D変換回路33に入力されると、アナログ信号からディジタル信号に変換される。そして、ディジタル化された画像信号、つまり画像データ(画像情報)は、メモリ35に入力されると、画像データ蓄積領域に蓄積される。なお、同期信号発生回路38は、受光センサ23およびアドレス発生回路36に対する同期信号を発生可能に構成されており、またアドレス発生回路36は、この同期信号発生回路38から供給される同期信号に基づいて、メモリ35に格納される画像データの格納アドレスを発生可能に構成されている。   An image signal (analog signal) output from the light receiving sensor 23 of the optical system is input to the amplification circuit 31 and amplified by a predetermined gain, and then input to the A / D conversion circuit 33. Converted into a digital signal. 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 23 and the address generation circuit 36. 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、受光センサ23等の各ハードウェアを制御可能なシステムプログラム等が予め格納されている。   The memory 35 is a semiconductor memory device, and corresponds to, for example, a RAM (DRAM, SRAM, etc.) or a ROM (EPROM, EEPROM, etc.). In addition to the above-described image data storage area, the RAM of the memory 35 is configured to be able to secure a work area and a reading condition table that are used by the control circuit 40 in each processing such as arithmetic operation and logical operation. . The ROM stores in advance a predetermined program that can execute a reading process and the like that will be described later, and a system program that can control each piece of hardware such as the illumination light source 21 and the light receiving sensor 23.

制御回路40は、光学的情報読取装置1全体を制御可能なマイコンで、CPU、システムバス、入出力インタフェース等からなるもので、メモリ35とともに情報処理装置を構成し得るもので情報処理機能を有する。この制御回路40には、内蔵された入出力インタフェースを介して種々の入出力装置(周辺装置)と接続可能に構成されており、本実施形態の場合、電源スイッチ41、操作スイッチ42、LED43、ブザー44、液晶表示装置46、通信インタフェース48等を接続されている。   The control circuit 40 is a microcomputer that can control the entire optical information reading apparatus 1 and includes a CPU, a system bus, an input / output interface, and the like. The control circuit 40 can constitute an information processing apparatus 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. A buzzer 44, a liquid crystal display device 46, a communication interface 48, and the like are connected.

これにより、例えば、電源スイッチ41や操作スイッチ42の監視や管理、またインジケータとして機能するLED43の点灯・消灯、ビープ音やアラーム音を発生可能なブザー44の鳴動のオンオフ、さらには読み取った情報コードCによるコード内容を画面表示可能な液晶表示装置46の画面制御や外部装置とのシリアル通信を可能にする通信インタフェース48の通信制御等を可能にしている。また、通信インタフェース48に接続される外部装置には、当該光学的情報読取装置1の上位システムに相当するホストコンピュータHST等が含まれる。   Thereby, for example, monitoring and management of the power switch 41 and the operation switch 42, turning on / off the LED 43 functioning as an indicator, turning on / off the buzzer 44 capable of generating a beep sound and an alarm sound, and further reading the information code The screen control of the liquid crystal display device 46 capable of displaying the code content by C, the communication control of the communication interface 48 enabling serial communication with an external device, and the like are enabled. The external devices connected to the communication interface 48 include a host computer HST corresponding to the host system of the optical information reading device 1 and the like.

電源系は、電源スイッチ41、電池49等により構成されており、制御回路40により管理される電源スイッチ41のオンオフによって、上述した各装置や各回路に、電池49から供給される駆動電圧の導通や遮断が制御されている。なお、電池49は、所定の直流電圧を発生可能な2次電池で、例えば、リチウムイオン電池等がこれに相当する。また、電池49によることなく、例えば、通信インタフェース48を介して接続されるホストコンピュータHST等の外部装置から電力供給を受ける構成を採る場合もあり、この場合には当該電池49は不要となる。   The power supply system includes a power switch 41, a battery 49, and the like. When the power switch 41 managed by the control circuit 40 is turned on and off, the conduction of the drive voltage supplied from the battery 49 to each device and each circuit described above is established. Or shut off is controlled. The battery 49 is a secondary battery that can generate a predetermined DC voltage, and corresponds to, for example, a lithium ion battery. Further, the battery 49 may be configured to receive power supply from an external device such as the host computer HST connected via the communication interface 48 without using the battery 49. In this case, the battery 49 is unnecessary.

このように光学的情報読取装置1を構成することによって、例えば、電源スイッチ41がオンされて所定の自己診断処理等が正常終了し、情報コードCの読み取りが可能な状態になると、照明光Lfの発光を指示する操作スイッチ42(例えばトリガースイッチ)の入力を受け付ける。これにより、作業者がトリガースイッチを押圧しオンにすることで、制御回路40が同期信号を基準に照明光源21に発光信号を出力するので、当該発光信号を受けた照明光源21は、LEDを発光させて照明光Lfを照射する。   By configuring the optical information reader 1 in this way, for example, when the power switch 41 is turned on and a predetermined self-diagnosis process or the like is normally completed and the information code C can be read, the illumination light Lf The input of the operation switch 42 (for example, a trigger switch) for instructing the light emission is received. As a result, when the operator presses the trigger switch to turn it on, the control circuit 40 outputs a light emission signal to the illumination light source 21 based on the synchronization signal. Light is emitted to irradiate illumination light Lf.

すると、情報コードCに照射された照明光Lfが反射しその反射光Lrが読取口およびフィルタ25を介して結像レンズ27に入射するため、受光センサ23の受光面23aには、結像レンズ27により情報コードCの像、つまりコード画像が結像される。受光センサ23の各受光素子はこの結像に応じた信号をそれぞれ出力する。受光センサ23から出力される信号データは増幅回路31で増幅された後、A/D変換回路にてデジタル信号に変換され、情報コードCの画像を含んだ画像データとしてメモリ35内に記憶されることとなる。なお、本実施形態では、受光センサ23が「受光手段」の一例に相当し、情報コードが記録された読取対象からの反射光を受光するように機能する。また、制御回路40は、「画像生成手段」の一例に相当し、第1の時期(後述する画像取得処理がなされる時期(図2))における受光センサ23による受光結果に基づいて読取対象の第1画像を生成するように機能する。また、制御回路40は、「デコード手段」の一例にも相当し、読取対象の第1画像に含まれる情報コードの画像をデコードするように機能する。   Then, the illumination light Lf applied to the information code C is reflected, and the reflected light Lr enters the imaging lens 27 through the reading port and the filter 25, so that the imaging lens is formed on the light receiving surface 23a of the light receiving sensor 23. 27, an image of the information code C, that is, a code image is formed. Each light receiving element of the light receiving sensor 23 outputs a signal corresponding to this image formation. The signal data output from the light receiving sensor 23 is amplified by the amplification circuit 31, and then converted into a digital signal by the A / D conversion circuit, and stored in the memory 35 as image data including an image of the information code C. It will be. In the present embodiment, the light receiving sensor 23 corresponds to an example of a “light receiving unit” and functions to receive reflected light from a reading target on which an information code is recorded. The control circuit 40 corresponds to an example of an “image generation unit”, and is based on a light reception result by the light receiving sensor 23 at a first time (a time when image acquisition processing described later is performed (FIG. 2)). It functions to generate the first image. The control circuit 40 corresponds to an example of a “decoding unit” and functions to decode an image of an information code included in the first image to be read.

上記のように取得される画像データに含まれる情報コードは1つに限られず、2以上の場合もある(即ち、受光センサ23の受光面23aに二以上の情報コードの像が結像する場合もある。そこで、本発明ではこのように2以上の情報コードが取得される場合であっても希望する情報コードをデコードできるように以下のような読取処理を行っている。   The information code included in the image data acquired as described above is not limited to one, but may be two or more (that is, two or more information code images are formed on the light receiving surface 23a of the light receiving sensor 23). Therefore, in the present invention, the following reading process is performed so that the desired information code can be decoded even when two or more information codes are acquired in this way.

(2.読取処理)
図2に示す読取処理は、ROM等に記憶されるプログラムに基づいて制御回路40によって実行されるものであり、例えば、所定の開始操作(トリガスイッチの操作等)をトリガとして開始される。当該処理が開始されると、まずS1の画像取得処理がなされる。この画像取得処理は、上記開始操作がなされた直後(第1の時期)における受光センサ23の受光結果に基づいて(即ち、第1の時期において受光センサ23上に結像される像に基づいて)情報コードの画像を含んだ画像データを上述のようにメモリ35に記憶する。そして、この画像取得処理がなされた後、取得画像(第1の時期に取得された画像(即ち読取対象の第1画像))を液晶表示器46(図1)に表示する処理が行われる(S2)。なお、図11(a)には取得した読取対象の画像の表示例を示している。
本実施形態では、 制御回路40及び液晶表示器46が「表示手段」の一例に相当し、読取対象と光学的情報読取装置1との対応関係を示すように機能する。
(2. Reading process)
The reading process shown in FIG. 2 is executed by the control circuit 40 based on a program stored in a ROM or the like, and is started with, for example, a predetermined start operation (such as operation of a trigger switch) as a trigger. When the process is started, first, an image acquisition process of S1 is performed. This image acquisition processing is based on the light reception result of the light receiving sensor 23 immediately after the start operation is performed (first time) (that is, based on the image formed on the light receiving sensor 23 at the first time). ) Image data including an image of the information code is stored in the memory 35 as described above. Then, after this image acquisition process is performed, a process of displaying the acquired image (the image acquired at the first time (ie, the first image to be read)) on the liquid crystal display 46 (FIG. 1) is performed ( S2). FIG. 11A shows a display example of the acquired image to be read.
In the present embodiment, the control circuit 40 and the liquid crystal display 46 correspond to an example of “display means” and function to indicate the correspondence between the reading target and the optical information reading device 1.

そして、S1にて取得した画像データ内に含まれる情報コードをデコードする処理を行う(S3)。このデコード処理では、画像データ内に含まれる情報コードの全てのデコードを行う。即ち、画像データ内に含まれる情報コードが1つのみである場合にはその情報コードのデコードを行い、画像データ内に2以上の情報コードが含まれる場合にはその複数の情報コードを全てデコードする。そして、各情報コードとそのデコード結果とを対応付けてメモリ35に記憶しておく。なお、画像データに基づいてバーコードや二次元コードのデコードを行う技術は公知であるので詳細は省略するが、概要としては、S1にて取得した画像データを2値化した後、所定の情報処理を施すことによって情報コードとして符号化された文字データ等をデコードし、その内容をメモリ35に記憶している。   And the process which decodes the information code contained in the image data acquired by S1 is performed (S3). In this decoding process, all information codes included in the image data are decoded. That is, when only one information code is included in the image data, the information code is decoded. When two or more information codes are included in the image data, all the plurality of information codes are decoded. To do. Each information code and its decoding result are stored in the memory 35 in association with each other. Although a technique for decoding a barcode or a two-dimensional code based on image data is well known and will not be described in detail, as an outline, after binarizing the image data acquired in S1, predetermined information By performing processing, character data encoded as an information code is decoded, and the contents are stored in the memory 35.

その後、デコードが正常に行われたか否かを判断する(S4)。デコードが正常に行われなかった場合(情報コードのデコード結果が1つも得られなかった場合)にはS4にてNoに進み、再びS1に戻ってS1以降の処理を繰り返す。なお、デコードが正常に行われなかった場合には、その旨を示す報知出力(例えば「NG」の文字、長いビープ音や赤色光)を、液晶表示装置46、ブザー44やLED43により出力することによって、当該光学的情報読取装置1の使用者に報知してもよい。   Thereafter, it is determined whether or not the decoding has been normally performed (S4). If the decoding is not performed normally (when no decoding result of the information code is obtained), the process proceeds to No in S4, returns to S1 again, and repeats the processes after S1. If the decoding is not performed normally, a notification output (for example, “NG”, long beep sound or red light) is output by the liquid crystal display device 46, the buzzer 44 or the LED 43. The user of the optical information reader 1 may be notified by

一方、S4においてデコードが正常に行われたと判断される場合(少なくとも1つのデコード結果が得られた場合)には、S4にてYesに進み、取得した画像データに情報コードが複数含まれているか否かを判断する(S5)。本実施形態では、取得した画像データに含まれる情報コードが1つのみの場合にはS5にてNoに進み、その情報コードのデコード結果を出力し(S12)、他方、取得した画像データに複数の情報コードが含まれる場合にはS5にてYesに進み、S6以降の処理を実施することでいずれかの情報コードを選択するようにしている。   On the other hand, if it is determined in S4 that the decoding has been normally performed (when at least one decoding result is obtained), the process proceeds to Yes in S4, and whether the acquired image data includes a plurality of information codes. It is determined whether or not (S5). In this embodiment, if the acquired image data includes only one information code, the process proceeds to No in S5, and the decoding result of the information code is output (S12). If the information code is included, the process proceeds to Yes in S5, and any information code is selected by performing the processing from S6 onward.

S5にてYesに進む場合(即ち、取得した画像データに複数の情報コードが含まれる場合)には、まずS6にて操作検出処理が行われる。この操作検出処理は、S1にて画像が取得された後にユーザによって行われる光学的情報読取装置1の操作方向及び操作量を検出する処理であり、例えば図3のような流れで行われる。図3の例では、まず、当該操作方向検出処理開始直後(第2の時期)における受光センサ23の受光結果に基づいて(即ち、第2の時期において受光センサ23上に結像される像に基づいて)画像データを生成しメモリ35に記憶する処理(画像取得処理)が行われる(S61)。S61にて取得される画像は、S1の画像取得(第1の時期)後においてユーザによって光学的情報読取装置1の移動操作が行われたの受光センサ23による受光結果に基づいて得られる画像であり、「読取対象の第2画像」に相当する。   When the process proceeds to Yes in S5 (that is, when the acquired image data includes a plurality of information codes), an operation detection process is first performed in S6. This operation detection process is a process for detecting the operation direction and the operation amount of the optical information reading apparatus 1 performed by the user after the image is acquired in S1, and is performed in the flow as shown in FIG. 3, for example. In the example of FIG. 3, first, based on the light reception result of the light receiving sensor 23 immediately after the start of the operation direction detection process (second time) (that is, in an image formed on the light receiving sensor 23 at the second time). Based on this, processing (image acquisition processing) for generating image data and storing it in the memory 35 is performed (S61). The image acquired in S61 is an image obtained based on the light reception result by the light receiving sensor 23 in which the user has performed the moving operation of the optical information reading device 1 after the image acquisition of S1 (first time). Yes, corresponding to “second image to be read”.

その後、比較基準位置を検出する処理を行う(S62)。この比較基準位置検出処理は、第1画像と第2画像を比較する上での基準位置を検出する処理であり、第1画像及び第2画像に二次元コードが含まれる場合にはその二次元コードの位置検出パターンをそれぞれの画像において検出する。また、二次元コードが含まれない場合には、含まれる情報コードの特定のパターン(例えばバーコードの左端バー)をそれぞれの画像において検出する。   Thereafter, processing for detecting the comparison reference position is performed (S62). The comparison reference position detection process is a process for detecting a reference position for comparing the first image and the second image. If the first image and the second image include a two-dimensional code, the two-dimensional code is detected. A code position detection pattern is detected in each image. In addition, when the two-dimensional code is not included, a specific pattern of the included information code (for example, the left end bar of the barcode) is detected in each image.

その後、操作量検出処理を行う(S63)。この操作量検出処理は、S62にて検出された比較基準位置の移動量に基づいてユーザによる光学的情報読取装置1の操作量を検出する処理である。例えば、第1の時期において図5のような読み取りを行った後、光学的情報読取装置1が右下の方向に操作され、第2の時期において図6のような読み取りが行われた場合、取得画像の変化は図7のようになる。S63では、このような取得画像の変化に基づいて光学的情報読取装置1の操作量を検出している。   Thereafter, an operation amount detection process is performed (S63). This operation amount detection process is a process for detecting the operation amount of the optical information reading apparatus 1 by the user based on the movement amount of the comparison reference position detected in S62. For example, after reading as shown in FIG. 5 at the first time, the optical information reader 1 is operated in the lower right direction, and reading as shown in FIG. 6 is performed at the second time. The change of the acquired image is as shown in FIG. In S63, the operation amount of the optical information reading apparatus 1 is detected based on such a change in the acquired image.

図7は主として変化後の第2画像を示すものであり、変化前の第1画像については各情報コードの一部を示し対応関係を説明している。図5〜図7に示すように、画像取得の性質上、光学的情報読取装置1の操作方向と、画像内での情報コードの移動方向とは逆の関係にあるため、S63では画像内における情報コードの移動方向を検出することで光学的情報読取装置1の操作方向を検出している。具体的には、いずれか1つの二次元コード(図7の例ではQRコード(商標名)として構成される情報コードQ1)の画像Q1'における位置検出パターンの一つを比較基準位置として着目し、この比較基準位置とされる位置検出パターンの移動方向を検出している。   FIG. 7 mainly shows the second image after the change. For the first image before the change, a part of each information code is shown to explain the correspondence. As shown in FIGS. 5 to 7, because of the nature of image acquisition, the operation direction of the optical information reading apparatus 1 and the movement direction of the information code in the image are opposite to each other. The operation direction of the optical information reader 1 is detected by detecting the movement direction of the information code. Specifically, paying attention to one of the position detection patterns in the image Q1 ′ of any one two-dimensional code (information code Q1 configured as a QR code (trade name) in the example of FIG. 7) as a comparison reference position. The moving direction of the position detection pattern used as the comparison reference position is detected.

図7の例では、情報コードQ1における右上の位置検出パターンを比較基準位置としており、第2画像に含まれる情報コードQ1の画像Q1"において右上の位置検出パターンPA2の所定位置を基点とし、第1画像における情報コードQ1の画像Q1'における右上の位置検出パターンPA1の所定位置に至るまでの座標値の増加量をX軸方向及びY軸方向についてそれぞれ検出している。なお、図7の例では、情報コードQ1の右上の位置検出パターンの右上角部を前記「所定位置」としており、第2画像における右上の位置検出パターンPA2の右上角部P2の座標(Xb,Yb)を基点とし、第1画像における右上の位置検出パターンPA1の右上角部P1の座標(Xa,Ya)に至るまでのX軸方向の増加量(Xa−Xb)及びY軸方向の増加量(Ya−Yb)に基づいて、操作量を以下の式にて求めている。   In the example of FIG. 7, the upper right position detection pattern in the information code Q1 is used as a comparison reference position, and the predetermined position of the upper right position detection pattern PA2 in the image Q1 "of the information code Q1 included in the second image is used as a base point. The amount of increase in the coordinate value until reaching the predetermined position of the upper right position detection pattern PA1 in the image Q1 ′ of the information code Q1 in one image is detected in each of the X-axis direction and the Y-axis direction. Then, the upper right corner of the upper right position detection pattern of the information code Q1 is set as the “predetermined position”, and the coordinates (Xb, Yb) of the upper right corner P2 of the upper right position detection pattern PA2 in the second image are used as base points. Increase amount (Xa-Xb) in the X-axis direction and the Y-axis direction until reaching the coordinates (Xa, Ya) of the upper-right corner P1 of the upper-right position detection pattern PA1 in the first image On the basis of the increase amount (Ya-Yb), the operation amount is obtained by the following equation.

Figure 0004968043
Figure 0004968043

さらに、操作方向を検出する処理を行う(S64)。具体的には、上述して得られたX軸方向の増加量(Xa−Xb)及びY軸方向の増加量(Ya−Yb)に基づいて、以下の式により操作方向を求めることができる。   Furthermore, the process which detects an operation direction is performed (S64). Specifically, the operation direction can be obtained by the following formula based on the increase amount (Xa−Xb) and the increase amount (Ya−Yb) in the Y axis direction obtained as described above.

Figure 0004968043
Figure 0004968043

本実施形態では、制御回路40が「操作方向検出手段」の一例に相当し、ユーザによる光学的情報読取装置1の操作方向を検出するように機能する。また、制御回路40は、「操作量検出手段」の一例にも相当し、第1の時期後のユーザによる光学的情報読取装置1の操作量を検出するように機能する。   In the present embodiment, the control circuit 40 corresponds to an example of “operation direction detection means” and functions to detect the operation direction of the optical information reading apparatus 1 by the user. The control circuit 40 corresponds to an example of an “operation amount detection unit” and functions to detect an operation amount of the optical information reading apparatus 1 by the user after the first period.

なお、上記例では情報コードQ1の右上の位置検出パターンを比較基準位置としたが他の位置検出パターンを比較基準位置としてもよい。また上記例では、位置検出パターンの右上角部を「所定位置」とし、この右上角部の移動量変化、移動方向変化を求めたが、別の位置を「所定位置」としての当該位置の移動量変化、移動方向変化を検出するようにしてもよい。例えば、位置検出パターンの中心位置を上記「所定位置」とし、中心位置の移動量変化、移動方向変化を検出しても良い。   In the above example, the upper right position detection pattern of the information code Q1 is used as the comparison reference position, but another position detection pattern may be used as the comparison reference position. In the above example, the upper right corner of the position detection pattern is set to “predetermined position”, and the movement amount change and the movement direction change of this upper right corner are obtained. You may make it detect a quantity change and a moving direction change. For example, the center position of the position detection pattern may be set as the “predetermined position”, and the movement amount change and movement direction change of the center position may be detected.

次に優先順位設定処理を行う(S7)。この優先順位設定処理は、各領域の優先順位を設定する処理であり、この優先順位は、複数ある情報コードのうちのいずれを選択するか判断する際に判断指標となるものである。この優先順位設定処理は、例えば図4のような流れで行われるものであり、S1にて取得された画像(読取対象の第1画像)を、図8のように複数領域に分割すると共に、それら複数領域の各領域に初期値を割り当て、その後、ユーザによる光学的情報読取装置1の操作方向に基づいてそれら複数領域のうちの一部領域の数値を、一部領域以外に割り当てられる基準値よりも大きく設定するように各領域の数値設定を行うようにしている。   Next, priority setting processing is performed (S7). This priority order setting process is a process of setting the priority order of each area, and this priority order serves as a determination index when determining which of a plurality of information codes is to be selected. This priority setting process is performed, for example, in a flow as shown in FIG. 4, and the image (first image to be read) acquired in S1 is divided into a plurality of areas as shown in FIG. An initial value is assigned to each of the plurality of regions, and thereafter, a numerical value of a part of the plurality of regions based on the direction of operation of the optical information reading device 1 by the user is assigned to a reference value other than the part of the region. The numerical value of each area is set so as to be larger than that.

図4の例では、当該処理の開始に伴い、まずS1にて取得された画像(読取対象の第1画像)を図8のように格子状の複数のブロックに分割し(S71)、それら複数の分割ブロック全部に初期値を設定する(S72)。なお、図8の例では初期値として「1」を設定している。なお、本実施形態では、制御回路40が、「分割手段」に相当し、読取対象の第1画像を複数領域に分割するように機能する。   In the example of FIG. 4, at the start of the processing, first, the image (first image to be read) acquired in S1 is divided into a plurality of grid-like blocks as shown in FIG. 8 (S71). Initial values are set for all the divided blocks (S72). In the example of FIG. 8, “1” is set as the initial value. In the present embodiment, the control circuit 40 corresponds to “dividing means” and functions to divide the first image to be read into a plurality of regions.

その後、第2基準位置設定処理を行う(S73)。本実施形態では、図8のように読取対象の第1画像の中心位置PC1を第1基準位置とし、その中心位置PC1を始点としてS63,S64で検出された移動方向及び移動量分だけずらした位置を第2基準位置PC2としている。S73ではこのような第2基準位置PC2を演算によって算出している。   Thereafter, a second reference position setting process is performed (S73). In the present embodiment, as shown in FIG. 8, the center position PC1 of the first image to be read is set as the first reference position, and the center position PC1 is used as the starting point and is shifted by the moving direction and moving amount detected in S63 and S64. The position is a second reference position PC2. In S73, such a second reference position PC2 is calculated by calculation.

第2基準位置PC2を特定した後、中央領域特定処理を行う(S74)。この中央領域特定処理は、数値加算すべき領域の中心部となる中央領域を特定する処理であり、本実施形態では、第2基準位置PC1に最も近い4マスを中央領域として特定している。図8の例では太線ARにて囲まれる領域が中央領域とされている。   After specifying the second reference position PC2, the central region specifying process is performed (S74). This center area specifying process is a process for specifying the center area that is the center of the area to be numerically added. In the present embodiment, the four squares closest to the second reference position PC1 are specified as the center area. In the example of FIG. 8, the area surrounded by the thick line AR is the central area.

S74にて特定された中央領域に設定すべきポイント値P1を算出し、中央領域に当該ポイント値P1を設定する処理を行う(S75)。本実施形態では中央領域に設定すべきポイント値P1をS63(図3)にて検出された移動量に基づいて定めている。具体的には、S63にて検出された移動量が所定の大レベルのときには初期値「1」に対して4を加算してポイント値を「5」とし、所定の中レベルのときには3を加算してポイント値を「4」とし、所定の小レベルのときには2を加算してポイント値を「3」としている。また、移動量無し若しくは所定の微動レベルのときには1を加算してポイント値を「2」としている。   A point value P1 to be set in the central area specified in S74 is calculated, and processing for setting the point value P1 in the central area is performed (S75). In the present embodiment, the point value P1 to be set in the central region is determined based on the movement amount detected in S63 (FIG. 3). Specifically, when the amount of movement detected in S63 is a predetermined large level, 4 is added to the initial value “1” to set the point value to “5”, and when it is a predetermined medium level, 3 is added. Thus, the point value is set to “4”, and at a predetermined small level, 2 is added to set the point value to “3”. Further, when there is no movement amount or a predetermined fine movement level, 1 is added to set the point value to “2”.

その後、中央領域に設定したポイント値P1から1を減算した値が「1」となるか否かを判断し(S76)、「1」となる場合にはS76にてYesに進んで当該処理を終了し、S2のメインルーチンに戻る。P1から1を減算した値が「1」よりも大きい場合にはS76にてNoに進み、次の周辺領域を特定する(S77)。「次の周辺領域」は、先に数値設定を行った領域の周囲を取り囲む隣接領域であり、先の数値設定がS75における中央領域の数値設定である場合にはその中央領域を取り囲む隣接領域が「次の周辺領域」として特定される。先の数値設定が、後述するS79の数値設定である場合には、そのS79で設定される領域を取り囲む隣接領域が「次の周辺領域」として特定される。   Thereafter, it is determined whether or not the value obtained by subtracting 1 from the point value P1 set in the central area is “1” (S76). If it is “1”, the process proceeds to Yes in S76 and the process is performed. End and return to the main routine of S2. If the value obtained by subtracting 1 from P1 is larger than “1”, the process proceeds to No in S76, and the next peripheral area is specified (S77). The “next peripheral area” is an adjacent area surrounding the periphery of the area where the numerical value has been previously set. When the previous numerical setting is the numerical setting of the central area in S75, the adjacent area surrounding the central area is Identified as “next peripheral area”. When the previous numerical value setting is the numerical value setting of S79 described later, the adjacent area surrounding the area set in S79 is specified as the “next peripheral area”.

その後、現在のポイント値P1から1デクリメントし(S78)、そのデクリメント後のポイント値P1をS77にて特定された周辺領域に設定する(S79)。例えば中央領域のポイント値が「5」の場合には、中央領域を取り囲む隣接領域のポイント値は「4」となる。また、先に行われたS79の処理においてある領域のポイント値を「3」と設定した場合には、その領域を取り囲む隣接領域のポイント値を、その後に行われるS79の処理において「2」と設定することとなる。   Thereafter, the current point value P1 is decremented by 1 (S78), and the decremented point value P1 is set in the peripheral area specified in S77 (S79). For example, when the point value of the central area is “5”, the point value of the adjacent area surrounding the central area is “4”. If the point value of a certain area is set to “3” in the process of S79 performed earlier, the point value of the adjacent area surrounding the area is set to “2” in the process of S79 performed thereafter. It will be set.

S79の処理の後には、再びS76に戻り、P1−1=1となるか否かを判断し、P1が1よりも大きい場合にはS77以降の処理を繰り返すこととなる。   After the process of S79, the process returns to S76 again, and it is determined whether or not P1-1 = 1. If P1 is greater than 1, the processes after S77 are repeated.

上述したように、本実施形態では、S71にて分割された複数領域の一部領域に対し数値を加算する処理を、S72〜S79のように行っており、上述の「中央領域」は「一部領域の少なくとも一部」に相当している。また、この中央領域に対して操作量に応じた大きさでポイント値が設定され、中央領域から遠ざかるにつれポイント値が減少するように数値が設定されるため、ユーザによる操作量が大きいほど加算領域(初期値よりも大きな値で設定される領域)は広くなる。   As described above, in this embodiment, the process of adding numerical values to the partial areas of the plurality of areas divided in S71 is performed as in S72 to S79. Corresponds to “at least part of the partial area”. In addition, a point value is set for this central area in a size corresponding to the operation amount, and a numerical value is set so that the point value decreases as the distance from the central area increases. (A region set with a value larger than the initial value) becomes wider.

図9、図10は、ポイント値の設定例について各領域に具体的な値を付して説明するものであり、ユーザによる操作方向が右下の場合を例に挙げて説明している。ユーザによる移動量がゼロ若しくは所定の微動レベルの場合には第2基準位置PC2と中心位置PC1とが同位置又は近接位置にあるため、S74にて特定される中央領域は、図9(a)のように中心位置PC1付近の4マスとなり、ポイント値は「2」となる。   FIG. 9 and FIG. 10 describe examples of setting point values by giving specific values to each region, and illustrate the case where the user's operation direction is in the lower right as an example. When the amount of movement by the user is zero or at a predetermined fine movement level, the second reference position PC2 and the center position PC1 are at the same position or close positions. Therefore, the central area specified in S74 is shown in FIG. Thus, there are 4 squares near the center position PC1, and the point value is “2”.

また、図9(b)のように、移動量が所定の小レベル(「微動レベル」の移動量範囲よりも移動量が大きい所定移動量範囲)の場合には図9(a)のときよりも離れた位置に第2基準位置PC2が設定され、中央領域のポイント値は図9(a)よりも大きい「3」となる。この場合、中央領域の周囲にポイント値「2」の領域が設定されるため、加算領域(初期値よりもポイント値(数値)が大きくなる領域)は図9(a)のときよりも広くなる。   Further, as shown in FIG. 9B, when the movement amount is a predetermined small level (a predetermined movement amount range in which the movement amount is larger than the movement amount range of the “fine movement level”), it is more than that in FIG. 9A. The second reference position PC2 is set at a further distance, and the point value in the central region is “3”, which is larger than that in FIG. In this case, since the area of the point value “2” is set around the central area, the addition area (area where the point value (numerical value is larger than the initial value)) is wider than that in FIG. .

また、図10(a)のように、移動量が所定の中レベル(「小レベル」の移動量範囲よりも移動量が大きい所定移動量範囲)の場合には、図9(b)のときよりも離れた位置に第2基準位置PC2が設定され、中央領域のポイント値は図9(b)よりも大きい「4」となる。この場合、中央領域の周囲にポイント値「3」の領域が設定され、更にその周囲にポイント値「2」の領域が設定されるため、、加算領域(初期値よりもポイント値(数値)が大きくなる領域)は図9(b)のときよりも広くなる。同様に、移動量が所定の大レベル(「中レベル」の移動量範囲よりも移動量が大きい所定移動量範囲)の場合には、図10(a)のときよりも離れた位置に第2基準位置PC2が設定され、中央領域のポイント値は図10(a)よりも大きい「5」となる。この場合、中央領域の周囲にポイント値「4」の領域が設定され、更にその周囲にポイント値「3」の領域が設定され、その周囲にはポイント値「2」の領域が設定されるため、加算領域(初期値よりもポイント値(数値)が大きくなる領域)は図10(a)のときよりも広くなる。   Also, as shown in FIG. 10A, when the movement amount is a predetermined middle level (a predetermined movement amount range in which the movement amount is larger than the “small level” movement amount range), The second reference position PC2 is set at a position farther than that, and the point value in the central region is “4”, which is larger than that in FIG. 9B. In this case, since the area of the point value “3” is set around the central area and the area of the point value “2” is set around the center area, the addition area (the point value (numerical value) is set higher than the initial value). The (larger region) is wider than in FIG. 9B. Similarly, when the movement amount is a predetermined large level (a predetermined movement amount range in which the movement amount is larger than the “medium level” movement amount range), the second position is further away than in the case of FIG. The reference position PC2 is set, and the point value in the central area is “5”, which is larger than that in FIG. In this case, the area of the point value “4” is set around the central area, the area of the point value “3” is set around the area, and the area of the point value “2” is set around the area. The addition region (region where the point value (numerical value) is larger than the initial value) is wider than that in FIG.

本実施形態では、制御回路40が「割当手段」の一例に相当し、S71にて分割された複数領域の各領域に数値を割り当てるように機能しており、更に言えば、ユーザによる光学的情報読取装置1の操作方向に基づき、複数領域(S71にて分割された領域)のうちの一部領域の数値を一部領域以外に割り当てられる基準値よりも大きく設定し、各領域に優先順位を設定している。   In the present embodiment, the control circuit 40 corresponds to an example of “assignment means” and functions to assign a numerical value to each of a plurality of areas divided in S71. Based on the operation direction of the reading device 1, the numerical values of some areas of the plurality of areas (areas divided in S71) are set to be larger than the reference value assigned to other areas, and priorities are assigned to the respective areas. It is set.

なお、本実施形態では、上述したようにS2において第1の時期に取得された画像(読取対象の第1画像)の画像表示を開始しているが(図11(a)参照)、S7において優先順位が設定された後には、図11(b)のように、読取対象の第1画像における複数領域(S71にて分割された領域)のそれぞれを、各領域の数値に対応した態様で表示してもよい。この場合には、制御回路40及び液晶表示器46が「領域態様表示手段」として機能することとなる。   In this embodiment, as described above, image display of the image (first image to be read) acquired at the first time in S2 is started (see FIG. 11A), but in S7. After the priority order is set, as shown in FIG. 11B, each of a plurality of regions (regions divided in S71) in the first image to be read is displayed in a mode corresponding to the numerical value of each region. May be. In this case, the control circuit 40 and the liquid crystal display 46 function as “region mode display means”.

図2に示すように、S7の処理が終わると、S8にて情報コード選択処理が行われる。この情報コード選択処理は、S7にて設定された各領域のポイント値(優先順位)に基づき、取得画像に複数含まれる情報コードの中からいずれかの情報コードを選択する処理である。具体的には、情報コードの配置領域か否かをポイント値が大きい領域(即ち、より優先順位が高い領域)から順に調べ、よりポイント値が大きい領域に配置される情報コードをデコードすべき情報コードとして選択するように処理を行っている。例えば、図10(a)のように各領域が設定された場合、ポイント値「4」の領域に一部が配置される情報コードがあればその情報コードが選択されることとなる。また、そのような情報コードが存在しない場合、ポイント値「3」の領域に一部が配置される情報コードが存在するか否かを調べ、存在する場合にはその情報コードをデコードすべき情報コードとして選択する。   As shown in FIG. 2, when the process of S7 ends, an information code selection process is performed in S8. This information code selection process is a process of selecting any information code from among a plurality of information codes included in the acquired image based on the point value (priority order) of each area set in S7. Specifically, the information code should be decoded in order from the area with the larger point value (that is, the area with the higher priority) to determine whether it is the information code arrangement area or not. Processing is performed to select the code. For example, when each area is set as shown in FIG. 10A, if there is an information code that is partially arranged in the area of the point value “4”, the information code is selected. If such an information code does not exist, it is checked whether there is an information code that is partially arranged in the area of the point value “3”. Select as code.

なお、S7では第1画像から第2画像に変化する際に、画像中心位置へ接近しようとする領域のポイント値が高くなるように各領域が数値設定されるため、S8の処理では、第1画像から第2画像に変化する際に画像中心位置に接近しようとするコード画像に対応した情報コードが選択されることとなる。例えば、図7の例では、画像中心位置に近づこうとする右下領域のポイント値が高くなるように数値設定され、画像中心位置に接近しようとするコード画像(符号Q1',Q2"参照)に対応した情報コードQ2が選択されることとなる。   In S7, when changing from the first image to the second image, each region is numerically set so that the point value of the region that is about to approach the image center position is increased. When changing from the image to the second image, the information code corresponding to the code image that is about to approach the image center position is selected. For example, in the example of FIG. 7, a numerical value is set so that the point value in the lower right region that is going to approach the image center position is increased, and the code image (see reference numerals Q1 ′ and Q2 ″) that approaches the image center position is set. The corresponding information code Q2 is selected.

本実施形態では、制御回路40が「選択手段」の一例に相当し、S63、S64にて検出された操作方向及び操作量に基づいて、S1の取得画像(第1画像)に含まれるいずれかの情報コードを選択するように機能する。より具体的にはS1の取得画像(第1画像)において情報コードの画像が複数含まれる場合、上述のように各情報コードの画像が配されている領域の数値に基づいていずれかの情報コードを選択するように機能する。   In the present embodiment, the control circuit 40 corresponds to an example of a “selecting unit”, and one of the acquired images (first image) included in S1 based on the operation direction and the operation amount detected in S63 and S64. It functions to select the information code. More specifically, in the case where a plurality of information code images are included in the acquired image (first image) in S1, any one of the information codes is based on the numerical value of the area where the information code images are arranged as described above. Function to select.

その後、S8においてデコードすべき1つの情報コードが選択できたか否かを判断する。情報コードの選択が適切に行われなかった場合(例えば、複数の情報コード全てがポイント値「1」の領域に配置されている場合等)にはS9にてNoに進み、S1以降の処理を繰り返す。一方、S9にて1つの情報コードが選択できた場合にはS9にてYesに進み、S10にて確認画面を表示する処理を行う。   Thereafter, in S8, it is determined whether one information code to be decoded has been selected. If the information code is not properly selected (for example, when all of the plurality of information codes are arranged in the area of the point value “1”), the process proceeds to No in S9, and the processes after S1 are performed. repeat. On the other hand, if one information code can be selected in S9, the process proceeds to Yes in S9, and a process for displaying a confirmation screen is performed in S10.

本実施形態では、制御回路40及び液晶表示器46が「表示器」として機能しており、S2にて読取対象の第1画像を表示する際に、図11(a)のように当該第1画像の所定位置(図11(a)の例では第一画像の中央部)に識別マークMKを表示させるように表示制御を行っている。そして、S10の処理では、このように表示される識別マークMKを、S8の処理によって選択される情報コードの位置に移動させ、どの情報コードが選択されたかをユーザに視覚的に認識させるようにしている(図12)。なお、制御回路40及び液晶表示器46は、「選択コード表示手段」の一例に相当している。   In the present embodiment, the control circuit 40 and the liquid crystal display 46 function as a “display”, and when the first image to be read is displayed in S2, the first circuit as shown in FIG. Display control is performed so that the identification mark MK is displayed at a predetermined position of the image (the center of the first image in the example of FIG. 11A). In the process of S10, the identification mark MK displayed in this way is moved to the position of the information code selected in the process of S8 so that the user can visually recognize which information code has been selected. (FIG. 12). The control circuit 40 and the liquid crystal display 46 correspond to an example of “selection code display means”.

また、図12に示すように、選択された情報コードの位置に識別マークMKを移動させる表示制御に加え、その選択を確定させるか解除するかを判断させる判断情報を表示し、ユーザによる解除操作を受け付けるようにしている。本実施形態では、液晶表示器46に「転送」という表示ボタンBT1と、「キャンセル」という表示ボタンBT2とを表示させており、図示しない操作部を利用してユーザがいずれかの表示ボタンを選択できる構成となっている。「キャンセル」の表示ボタンBT2が選択される場合には、S11にてYesに進みS1以降の処理を再び繰り返すこととなる。一方「転送」の表示ボタンBT1が選択される場合には、S11にてNoに進み、識別マークMKと対応付けられた情報コード(図12の例では図5、図6に示す情報コードQ2)の選択を確定させてその情報コードのデコード結果を出力する(S12)。なお、制御回路40は、「選択解除手段」の一例に相当し、ユーザからの解除操作に基づいて情報コードの選択を解除するように機能する。   Further, as shown in FIG. 12, in addition to the display control for moving the identification mark MK to the position of the selected information code, judgment information for determining whether to confirm or cancel the selection is displayed, and the release operation by the user To accept. In this embodiment, a display button BT1 “Transfer” and a display button BT2 “Cancel” are displayed on the liquid crystal display 46, and the user selects one of the display buttons using an operation unit (not shown). It can be configured. When the “Cancel” display button BT2 is selected, the process proceeds to Yes in S11, and the processes after S1 are repeated again. On the other hand, when the “transfer” display button BT1 is selected, the process proceeds to No in S11, and the information code associated with the identification mark MK (information code Q2 shown in FIGS. 5 and 6 in the example of FIG. 12). And the decoding result of the information code is output (S12). The control circuit 40 corresponds to an example of “selection canceling means” and functions to cancel the selection of the information code based on a canceling operation from the user.

また、制御回路40は「デコード手段」の一例に相当し、選択された情報コードのデコード結果を出力するように機能する。なお、デコードされたデータ(選択された情報コードの内容)は液晶表示装置46に出力したり、通信インタフェース48を介してホストコンピュータHSTに出力する。   The control circuit 40 corresponds to an example of “decoding means” and functions to output a decoding result of the selected information code. The decoded data (the content of the selected information code) is output to the liquid crystal display device 46 or output to the host computer HST via the communication interface 48.

なお、本実施形態では、読取対象の第1画像に付された識別マークを第1の時期後の操作方向に対応させて移動させる例として、図12のような例(即ち、S8の処理によって選択される情報コードの位置に識別マークを移動させる構成)を示しているが、識別マークは、選択される情報コードの位置まで移動させなくてもよく、選択される情報コードを越えた位置まで移動させてもよい。要するに、第1の時期後の操作方向に対応させさえすれば、選択される情報コードに位置合わせせずに識別マークを移動させるようにしてもよい。 In this embodiment, as an example in which the identification mark attached to the first image to be read is moved in correspondence with the operation direction after the first time, an example as shown in FIG. 12 (that is, by the process of S8). The configuration is shown in which the identification mark is moved to the position of the selected information code), but the identification mark need not be moved to the position of the selected information code, but to the position beyond the selected information code. It may be moved. In short, as long as it corresponds to the operation direction after the first period, the identification mark may be moved without being aligned with the selected information code.

本実施形態では、第1の時期に得られた画像(読取対象の第1画像)内に複数の情報コードが含まれる場合、上記「操作方向検出手段」によって検出された操作方向に基づいて、いずれかの情報コードを選択し、その選択された情報コードのデコード結果を出力するようにしている。この構成によれば、読み取りエリア内に複数の情報コードが含まれる場合、ユーザが当該光学的情報読取装置1を適切な方向に操作することによって情報コードを選択できるようになるため、情報コードの選択操作を容易化することができる。また、ディスプレイ上に複数の情報コードを表示した上で細かな選択操作を行わせる従来構成と比較して、情報コードの特定処理を迅速に行うことができ、ひいては読取処理時間をより短縮化できるようになる。   In the present embodiment, when a plurality of information codes are included in the image obtained at the first time (first image to be read), based on the operation direction detected by the “operation direction detection unit”, One of the information codes is selected, and the decoding result of the selected information code is output. According to this configuration, when a plurality of information codes are included in the reading area, the user can select the information code by operating the optical information reading device 1 in an appropriate direction. The selection operation can be facilitated. In addition, information code identification processing can be performed quickly, and reading processing time can be further shortened, as compared with a conventional configuration in which a plurality of information codes are displayed on a display and a fine selection operation is performed. It becomes like this.

また、操作方向及び操作量を両方考慮していずれかの情報コードを選択しているため、操作方向だけでは情報コードを特定しきれない場合であっても操作量に基づいて適切に特定することができる。   In addition, since either information code is selected in consideration of both the operation direction and the operation amount, even if the information code cannot be specified only by the operation direction, it should be appropriately specified based on the operation amount. Can do.

また、第1の時期の受光結果に基づいて得られる画像(読取対象の第1画像)と、第1の時期後にユーザが光学的情報読取装置1を移動させた後の受光結果により得られる画像(読取対象の第2画像)と、に基づいて操作方向を検出している。このように、異なる時期に得られた画像に基づいて操作方向を検出すれば、画像処理を行う手段を「操作方向検出手段」として兼用できるため、複雑な検出手段を別途特別に設ける必要がなく、高機能な構成をコストを抑えて実現できることとなる。   Also, an image obtained based on the light reception result at the first time (first image to be read) and an image obtained from the light reception result after the user moved the optical information reader 1 after the first time. The operation direction is detected based on (second image to be read). In this way, if the operation direction is detected based on images obtained at different times, the image processing means can be used as the “operation direction detection means”, so there is no need to separately provide a complicated detection means. Therefore, a highly functional configuration can be realized at a reduced cost.

また、異なる時期(第1の時期及び第2の時期)にそれぞれ得られた画像に基づいて操作方向だけでなく操作量をも検出している。このようにすれば、画像処理を行う手段を「操作方向検出手段」及び「操作量検出手段」として兼用できるため、高機能化、低コスト化の面で一層有利となる。   Further, not only the operation direction but also the operation amount is detected based on images obtained at different times (first time and second time). In this way, since the means for performing image processing can be used as both the “operation direction detecting means” and the “operation amount detecting means”, it is further advantageous in terms of high functionality and low cost.

また、位置検出パターンを含んだ二次元コードを読取対象とし、読取対象の第1画像に含まれる二次元コードの位置検出パターンと、読取対象の第2画像に含まれる二次元コードの位置検出パターンと、に基づいて操作方向及び操作量をそれぞれ検出している。このように、二次元コードの特徴的な部分に着目すれば、異なる時期に得られる二画像の差異を的確かつ迅速に把握できるようになり、ユーザによる光学的情報読取装置1の操作量及び操作方向をより精度高く短時間で検出できるようになる。   Further, a two-dimensional code including a position detection pattern is to be read, a position detection pattern of a two-dimensional code included in the first image to be read, and a position detection pattern of a two-dimensional code included in the second image to be read The operation direction and the operation amount are detected based on the above. In this way, by paying attention to the characteristic part of the two-dimensional code, it becomes possible to accurately and quickly grasp the difference between two images obtained at different times, and the operation amount and operation of the optical information reader 1 by the user. The direction can be detected with higher accuracy in a shorter time.

また、第1画像から第2画像に変化する際に、画像中心位置へ接近しようとする情報コードを選択するように構成されている。このように構成すると、ユーザが、希望する情報コードを読み取りエリアの中心位置に向かわせるように当該光学的情報読取装置1を操作しさえすれば、その情報コードを良好に選択できるようになる。従って、操作性、利便性の面で極めて有利となる。   In addition, when changing from the first image to the second image, an information code to be approached to the image center position is selected. If comprised in this way, if the user will just operate the said optical information reader 1 so that the desired information code may face the center position of a reading area, it will become possible to select the information code favorably. Therefore, it is extremely advantageous in terms of operability and convenience.

また、第1の時期に得られた画像(読取対象の第1画像)を複数領域に分割する「分割手段」と、その分割された複数領域の各領域に数値を割り当てる「割当手段」と、が設けられ、この「割当手段」は、ユーザによる光学的情報読取装置1の操作方向に基づいて複数領域のうちの一部領域の数値を、一部領域以外に割り当てられる基準値よりも大きく設定するように各領域に数値を割り当てている。この数値は情報コードを選択する上での優先度として扱われるものであり、読取対象の第1画像において情報コードの画像が複数含まれる場合、各情報コードの画像が配されている領域の数値に基づいていずれかの情報コードを選択するようにしている。この構成によれば、操作方向に対応する特定領域を他の領域と差別化するように数値設定でき、このような数値設定に基づいてユーザが希望する情報コードを適切に選択できるようになる。   In addition, a “dividing unit” that divides an image (first image to be read) obtained in the first period into a plurality of regions, an “allocating unit” that assigns a numerical value to each of the divided plurality of regions, The “assignment means” sets a numerical value of a part of the plurality of regions to be larger than a reference value assigned to the part other than the part based on the operation direction of the optical information reading apparatus 1 by the user. A numerical value is assigned to each area. This numerical value is treated as a priority in selecting an information code. When a plurality of information code images are included in the first image to be read, the numerical value of the area where the information code image is arranged One of the information codes is selected based on the information. According to this configuration, the specific area corresponding to the operation direction can be set numerically so as to be differentiated from other areas, and the information code desired by the user can be appropriately selected based on such numerical setting.

また、ユーザによる光学的情報読取装置1の操作量に応じた広さで一部領域(数値を大きく設定する領域)を設定している。操作量が大きくなるような場合、操作の性質上、操作方向と希望する情報コードとのズレが大きくなりやすいが、本発明では、操作量が大きくなる場合には、一部領域(数値を大きく設定する領域)を広く設定してズレの影響を抑えるようにしている。また、操作量が小さい場合、操作の性質上、操作方向と情報コードとを比較的対応させやすいが、本発明では、操作量が小さくなる場合には一部領域(数値を大きく設定する領域)が狭く設定されるため、操作方向との関連性が小さい情報コードが選択されにくくなる。   In addition, a partial area (an area where a numerical value is set large) is set with a size corresponding to the amount of operation of the optical information reading apparatus 1 by the user. When the amount of operation increases, due to the nature of the operation, the deviation between the operation direction and the desired information code tends to increase. However, in the present invention, when the amount of operation increases, a certain area (the numerical value is increased). The area to be set) is set wide to suppress the influence of the shift. In addition, when the operation amount is small, the operation direction and the information code are relatively easily associated with each other due to the nature of the operation. However, in the present invention, when the operation amount is small, a partial area (area where the numerical value is set large). Is set narrowly, it becomes difficult to select an information code having a small relationship with the operation direction.

また、一部領域(数値を大きく設定する領域)の少なくとも一部の数値を、ユーザによる光学的情報読取装置1の操作量に応じた大きさに加算して設定(即ち優先度を大きく設定)するようにしている。このような数値設定に基づいて情報コードを選択する構成とすれば、ユーザによる操作方向及び操作量を共に反映したより適切な選択が可能となる。   In addition, at least a part of numerical values in a partial region (region where a numerical value is set to be large) is set by adding to a size corresponding to the amount of operation of the optical information reading device 1 by the user (that is, the priority is set to be large). Like to do. If the information code is selected based on such numerical setting, a more appropriate selection reflecting both the operation direction and the operation amount by the user becomes possible.

また、第1の時期に得られた画像(読取対象の第1画像)を液晶表示器46を用いて表示すると共に、当該読取対象の第1画像における複数領域のそれぞれを、各領域の数値に対応した態様で表示するようにしている。このようにすれば、ユーザによる操作と情報コードとの対応関係を、実際に取得された画像(読取対象の第1画像)に基づいてユーザに的確に把握させることができ、ユーザが選択操作を行う上での利便性を一層向上できる。   In addition, the image (first image to be read) obtained at the first time is displayed using the liquid crystal display 46, and each of the plurality of areas in the first image to be read is set to a numerical value of each area. The display is made in a corresponding manner. In this way, the correspondence between the operation by the user and the information code can be accurately grasped by the user based on the actually acquired image (first image to be read), and the user can perform the selection operation. Convenience in performing can be further improved.

また、第1の時期に得られた画像(読取対象の第1画像)において情報コードの画像が複数含まれる場合、S8における情報コードの選択に先立ってそれら複数の情報コードをそれぞれデコードするようにしている。このように、予め複数の情報コードをデコードしてからいずれかの情報コードを選択するようにすれば、操作方向と対応する情報コードを検出しやすく、また、選択後のデコード不良を防止できる。   In addition, when the image obtained at the first time (the first image to be read) includes a plurality of information code images, the plurality of information codes are decoded prior to the selection of the information code in S8. ing. As described above, if one of the information codes is selected after previously decoding a plurality of information codes, it is easy to detect the information code corresponding to the operation direction, and it is possible to prevent a decoding failure after the selection.

また、本実施形態では、制御回路40及び液晶表示器46を「表示手段」として機能させ、読取対象と光学的情報読取装置1との対応関係を示している。このようにすれば、読取対象と光学的情報読取装置1との対応関係を、ユーザが的確に把握することができ、ユーザは、情報コードを選択するための選択操作を、液晶表示器46を確認しながら適切に行うことができる。   Further, in the present embodiment, the control circuit 40 and the liquid crystal display 46 are caused to function as “display means”, and the correspondence relationship between the reading target and the optical information reading device 1 is shown. In this way, the user can accurately grasp the correspondence relationship between the reading target and the optical information reading device 1, and the user performs the selection operation for selecting the information code on the liquid crystal display 46. It can be done properly while checking.

また、制御回路40及び液晶表示器46を「表示器」として機能させ、読取対象の第1画像を表示すると共に、その第1画像の所定位置に識別マークMKを表示させており、さらに、第1の時期後のユーザによる操作に応じた画像取得領域の移動方向に対応させて識別マークMKの表示位置を移動させるようにしている。このようにすれば、読取対象と光学的情報読取装置1との対応関係をユーザが良好に把握できると共に、当該光学的情報読取装置1が操作された後の読取対象との対応関係も確認できるようになる。従って、ユーザが情報コードの選択操作をより一層良好に行うことができる。   The control circuit 40 and the liquid crystal display 46 function as a “display” to display a first image to be read and an identification mark MK at a predetermined position of the first image. The display position of the identification mark MK is moved in correspondence with the moving direction of the image acquisition area according to the operation by the user after the first period. In this way, the user can better understand the correspondence between the reading target and the optical information reading device 1 and can also check the correspondence with the reading target after the optical information reading device 1 is operated. It becomes like this. Therefore, the user can perform the selection operation of the information code even better.

また、第1の時期後のユーザによる光学的情報読取装置1の操作に応じて選択される情報コードの画像位置に、識別マークMKの表示位置を移動させるようにしている。このようにすれば、どの情報コードが選択されるのかをユーザに迅速かつ明瞭に示すことができる。   Further, the display position of the identification mark MK is moved to the image position of the information code selected in accordance with the operation of the optical information reader 1 by the user after the first period. In this way, it is possible to quickly and clearly indicate to the user which information code is selected.

また、情報コードの選択結果を表示する「選択コード表示手段」と、ユーザからの解除操作に基づき情報コードの選択を解除する「選択解除手段」と、が設けられている。このようにすれば、希望する情報コードを選択したか否かをユーザが把握することができ、誤った情報コードを選択した場合にはその選択を解除できるようになる。   In addition, a “selection code display unit” that displays the selection result of the information code and a “selection release unit” that cancels the selection of the information code based on a release operation from the user are provided. In this way, the user can grasp whether or not the desired information code has been selected, and when an incorrect information code is selected, the selection can be canceled.

[第2実施形態]
次に第2実施形態について説明する。図13は、本発明の第2実施形態に係る光学的情報読取装置を概略的に例示するブロック図である。図14は、図13の光学的情報読取装置を用いた場合の第1の時期における画像取得の様子を説明する説明図である。図15は、図13の光学的情報読取装置を用いた場合の第2の時期における画像取得の様子を説明する説明図である。なお、第2実施形態は、マーカ光照射部51が設けられている点が第1実施形態と異なり、それ以外の構成は第1実施形態と同様である。具体的には、図2、図3、図7〜図12については第1実施形態と同一であり、図1の構成に代えて図13の構成を用いている。また、画像取得の様子は、図4、図5に代えて図14、図15を参照して説明することとする。
マーカ光照射部51は、「表示手段」「マーカ光照射手段」の一例に相当するものである。
[Second Embodiment]
Next, a second embodiment will be described. FIG. 13 is a block diagram schematically illustrating an optical information reading apparatus according to the second embodiment of the present invention. FIG. 14 is an explanatory diagram for explaining a state of image acquisition at the first time when the optical information reading apparatus of FIG. 13 is used. FIG. 15 is an explanatory diagram for explaining the state of image acquisition at the second time when the optical information reading apparatus of FIG. 13 is used. The second embodiment is different from the first embodiment in that the marker light irradiation unit 51 is provided, and other configurations are the same as those in the first embodiment. Specifically, FIGS. 2, 3, and 7 to 12 are the same as those of the first embodiment, and the configuration of FIG. 13 is used instead of the configuration of FIG. The image acquisition will be described with reference to FIGS. 14 and 15 instead of FIGS.
The marker light irradiation unit 51 corresponds to an example of “display means” and “marker light irradiation means”.

マーカ光照射部51は、レーザダイオードと、レンズと、レーザダイオードを駆動する駆動回路とからなるものである。駆動回路は、図13に示す制御回路40からの信号に応じてレーザダイオードを駆動するものであり、駆動回路によって駆動されるレーザダイオードからはレーザ光からなるマーカ光が出射され、このマーカ光がレンズを介して外部に照射されるようになっている。なお、駆動回路によってレーザダイオードを駆動する構成は、公知であるので詳細は省略する。   The marker light irradiation unit 51 includes a laser diode, a lens, and a drive circuit that drives the laser diode. The drive circuit drives a laser diode in accordance with a signal from the control circuit 40 shown in FIG. 13, and a marker light composed of a laser beam is emitted from the laser diode driven by the drive circuit. The light is irradiated to the outside through a lens. The configuration for driving the laser diode by the drive circuit is well known and will not be described in detail.

マーカ光照射部51によって出射されたマーカ光は、図14に示すように、読取対象の表面に、読取領域の境界を示すパターンPT1と、読取領域の中央部を示すパターンPT2と、を表示するようになっている。マーカ光照射部51は、読取対象における光学的情報読取装置1による画像取得領域の所定位置にマーカ光を照射することで、読取対象と光学的情報読取装置1との対応関係を示すように機能している。   As shown in FIG. 14, the marker light emitted by the marker light irradiation unit 51 displays a pattern PT1 indicating the boundary of the reading area and a pattern PT2 indicating the center of the reading area on the surface of the reading target. It is like that. The marker light irradiation unit 51 functions to indicate the correspondence between the reading target and the optical information reading device 1 by irradiating the marker light to a predetermined position of the image acquisition region by the optical information reading device 1 on the reading target. is doing.

このようにパターンPT1、PT2を表示すると、読取対象上で画像取得領域の移動方向(即ち、光学的情報読取装置1の操作方向)を確認できるようになる。また、この構成では、読取対象の中央部のパターンPT2を希望する情報コード側に移動させるように光学的情報装置1の操作を行えば、図2のS7の処理において、そのパターンPT2が向かう情報コード側の領域の数値(優先度)が大きくなるように優先順位が設定され、そのパターンPT2が向かう情報コードが選択されることとなる。例えば、図14の状態から図15のように操作を行えば図2のS7の処理において、パターンPT2が向かう情報コードQ2側の数値が大きくなるように優先順位が設定され、希望する情報コードQ2が選択されることとなる。   When the patterns PT1 and PT2 are displayed in this way, the moving direction of the image acquisition region on the reading target (that is, the operation direction of the optical information reading device 1) can be confirmed. Further, in this configuration, if the optical information apparatus 1 is operated so as to move the pattern PT2 in the center of the reading target to the desired information code side, the information that the pattern PT2 is directed to in the process of S7 in FIG. The priority order is set so that the numerical value (priority) of the area on the code side is increased, and the information code toward the pattern PT2 is selected. For example, if the operation shown in FIG. 15 is performed from the state shown in FIG. 14, the priority is set so that the numerical value on the information code Q2 side toward the pattern PT2 increases in the process of S7 in FIG. Will be selected.

以上のように、本実施形態では、読取対象に対してマーカ光を照射するマーカ光照射部51が設けられ、読取対象における画像取得領域の所定位置にマーカ光を照射することで、読取対象と光学的情報読取装置1との対応関係を示している。このようにすれば、複雑な構成を用いずに、読取対象と光学的情報読取装置との対応関係をユーザに知らしめることができ、ユーザはマーカ光を拠り所として選択操作を適切に行うことができる。   As described above, in the present embodiment, the marker light irradiation unit 51 that irradiates the reading target with the marker light is provided, and by irradiating the marker light to a predetermined position of the image acquisition region in the reading target, The correspondence relationship with the optical information reader 1 is shown. In this way, it is possible to inform the user of the correspondence between the reading target and the optical information reading device without using a complicated configuration, and the user can appropriately perform the selection operation based on the marker light. it can.

[第3実施形態]
次に第3実施形態について説明する。図16は、第3実施形態の光学的情報読取装置における読取処理のメインルーチンを例示するフローチャートである。本実施形態では、読取処理を図2に代えて図16のようにした点が第1実施形態と異なり、それ以外は第1実施形態と同様である。従って、図1、図3〜図12については第1実施形態と同一であるとして説明する。
[Third Embodiment]
Next, a third embodiment will be described. FIG. 16 is a flowchart illustrating a main routine of a reading process in the optical information reading apparatus according to the third embodiment. This embodiment is different from the first embodiment in that the reading process is performed as shown in FIG. 16 instead of FIG. 2, and the rest is the same as the first embodiment. Accordingly, FIGS. 1 and 3 to 12 will be described as being the same as the first embodiment.

図16の読取処理では、まずS100にて画像取得処理が行われ、次いで画像表示が開始される(S110)。S100の画像取得処理は図2のS1の処理と同一の処理であり、S110の画像表示は図2のS2と同一の処理である。   In the reading process of FIG. 16, first, an image acquisition process is performed in S100, and then image display is started (S110). The image acquisition process of S100 is the same process as the process of S1 of FIG. 2, and the image display of S110 is the same process as S2 of FIG.

その後、操作検出処理が行われる(S120)。この操作検出処理はS6と同一の処理であり、図3と同一の流れで行われ、第1の時期後(即ちS100での画像取得後)の受光センサ23の受光結果に基づいて、光学的情報読取装置1の操作量と操作方向が検出される。   Thereafter, an operation detection process is performed (S120). This operation detection process is the same process as S6, and is performed in the same flow as in FIG. 3, and based on the light reception result of the light reception sensor 23 after the first period (that is, after image acquisition in S100) An operation amount and an operation direction of the information reading apparatus 1 are detected.

さらに、優先順位設定処理が行われる(S130)。この優先順位設定処理はS7と同一の処理であり、図4と同一の流れで行われ、S100にて取得した画像(第1画像)の各領域に対し、図9、図10のような数値(優先順位)を設定する。なお、本実施形態でも制御回路40が、「分割手段」「割当手段」の一例に相当し、第1実施形態と同様の機能を果たす。   Further, priority order setting processing is performed (S130). This priority order setting process is the same process as S7, and is performed in the same flow as in FIG. 4. For each area of the image (first image) acquired in S100, numerical values as shown in FIG. 9 and FIG. Set (Priority). In this embodiment as well, the control circuit 40 corresponds to an example of “dividing means” and “allocating means” and performs the same function as in the first embodiment.

その後、情報コード選択処理を行う(S140)。この情報コード選択処理も図2のS8と同様の処理であり、S130にて設定された各領域のポイント値(優先順位)に基づき、取得画像に複数含まれる情報コードの中からいずれかの情報コードを選択する処理である。具体的には、情報コードの配置領域か否かをポイント値が大きい領域(即ち、より優先順位が高い領域)から順に調べ、よりポイント値が大きい領域に配置される情報コードをデコードすべき情報コードとして選択するように処理を行っている。なお、本実施形態では、S100の画像取得処理において、取得された画像(第1画像)においてどの領域が情報コードの領域であるかを予め検出しており、情報コードの領域の位置データをメモリ35に記憶しているため、この記憶データを参照すれば、各領域に情報コードが配置されているか否かを正確に判断できる。   Thereafter, an information code selection process is performed (S140). This information code selection process is also the same process as S8 in FIG. 2, and based on the point value (priority order) of each area set in S130, any one of the information codes included in the acquired image is selected. This is the process of selecting a code. Specifically, the information code should be decoded in order from the area with the larger point value (that is, the area with the higher priority) to determine whether it is the information code arrangement area or not. Processing is performed to select the code. In the present embodiment, in the image acquisition process of S100, which area is the information code area in the acquired image (first image) is detected in advance, and the position data of the information code area is stored in the memory. 35, it is possible to accurately determine whether or not an information code is arranged in each area by referring to the stored data.

なお、本実施形態の情報コード選択処理(S140)では、ポイント値に基づいて情報コードを選択する点についてはS8と同一であるが、その後、ポイント値に基づいて選択された情報コードをデコードするようにしている。そのデコードが正常に行われた場合には、その情報コードを以降の処理においてデコードすべき情報コードとして扱い、デコードが正常に行われなかった場合には、そのデコード不良の情報コードをキャンセルし、そのキャンセルされた情報コード以外の情報コードであって、且つよりポイント値が大きい領域に配置される情報コードをデコードすべき情報コードとして再び選択する。このような選択処理は、正常にデコードできる情報コードに到達するまで繰り返される。
なお、本実施形態でも制御回路40が「選択手段」「デコード手段」の一例に相当し、第1実施形態と同様の機能を果たす。
In the information code selection process (S140) of the present embodiment, the point of selecting the information code based on the point value is the same as that of S8. Thereafter, the information code selected based on the point value is decoded. I am doing so. When the decoding is normally performed, the information code is treated as an information code to be decoded in the subsequent processing. When the decoding is not normally performed, the information code with the defective decoding is canceled, An information code other than the canceled information code and arranged in an area having a larger point value is selected again as an information code to be decoded. Such a selection process is repeated until an information code that can be normally decoded is reached.
In this embodiment as well, the control circuit 40 corresponds to an example of “selecting means” and “decoding means” and performs the same function as in the first embodiment.

その後、S150にて確認画面表示処理を行う。この処理は図2のS10と同一の処理であり、図12のような確認画面を液晶表示器46に表示する。本実施形態でも、制御回路40及び液晶表示器46が「表示器」として機能しており、S110にて読取対象の第1画像を表示する際に、図11(a)のように当該第1画像の所定位置(図11(a)の例では第一画像の中央部)に識別マークMKを表示させるように表示制御を行っている。そして、S150の処理では、このように表示される識別マークMKを、S140の処理によって選択される情報コードの位置に移動させ、どの情報コードが選択されたかをユーザに視覚的に認識させるようにしている(図12)。
なお、本実施形態でも制御回路40及び液晶表示器46が「選択コード表示手段」の一例に相当し、第1実施形態と同様の機能を果たす。
Thereafter, a confirmation screen display process is performed in S150. This process is the same process as S10 in FIG. 2, and a confirmation screen as shown in FIG. 12 is displayed on the liquid crystal display 46. Also in the present embodiment, the control circuit 40 and the liquid crystal display 46 function as a “display”, and when the first image to be read is displayed in S110, the first circuit as shown in FIG. Display control is performed so that the identification mark MK is displayed at a predetermined position of the image (the center of the first image in the example of FIG. 11A). In the process of S150, the identification mark MK displayed in this way is moved to the position of the information code selected in the process of S140 so that the user can visually recognize which information code has been selected. (FIG. 12).
In this embodiment as well, the control circuit 40 and the liquid crystal display 46 correspond to an example of “selection code display means” and perform the same functions as those in the first embodiment.

また、図12に示すように、選択された情報コードの位置に識別マークMKを移動させる表示制御に加え、その選択を確定させるか解除するかを判断させる判断情報を表示し、ユーザによる解除操作を受け付けるようにしている。即ち、本実施形態でも、液晶表示器46に「転送」という表示ボタンBT1と、「キャンセル」という表示ボタンBT2とを表示させており、図示しない操作部を利用してユーザがいずれかの表示ボタンを選択できる構成となっている。「キャンセル」の表示ボタンBT2が選択される場合には、S160にてYesに進みS100以降の処理を再び繰り返すこととなる。一方「転送」の表示ボタンBT1が選択される場合には、S160にてNoに進み、識別マークMKと対応付けられた情報コードの選択を確定させる。S160にてYesに進む場合には、S160にて確定させた情報コードのデコード結果を出力する(S170)。
なお、本実施形態でも、制御回路40が「選択解除手段」の一例に相当し、ユーザからの解除操作に基づいて情報コードの選択を解除するように機能する。
Further, as shown in FIG. 12, in addition to the display control for moving the identification mark MK to the position of the selected information code, judgment information for determining whether to confirm or cancel the selection is displayed, and the release operation by the user To accept. That is, also in this embodiment, the display button BT1 “Transfer” and the display button BT2 “Cancel” are displayed on the liquid crystal display 46, and the user uses the operation unit (not shown) to display one of the display buttons. Can be selected. When the “cancel” display button BT2 is selected, the process proceeds to Yes in S160, and the processes after S100 are repeated. On the other hand, when the “transfer” display button BT1 is selected, the process proceeds to No in S160 to confirm the selection of the information code associated with the identification mark MK. When the process proceeds to Yes in S160, the decoding result of the information code determined in S160 is output (S170).
In this embodiment as well, the control circuit 40 corresponds to an example of “selection canceling means” and functions to cancel the selection of the information code based on the canceling operation from the user.

以上のように、本実施形態では、読取対象の第1画像において情報コードの画像が複数含まれる場合、それら複数の情報コードの画像について、数値の大きい領域に配される情報コードから順にデコードを行い、最初にデコードを正常に行うことができた情報コードのデコード結果を出力するようにしている。このようにすれば、デコード処理を必要最低限の回数に抑えることができ、処理の高速化を図ることができる。   As described above, in the present embodiment, when a plurality of information code images are included in the first image to be read, the plurality of information code images are decoded in order from the information code arranged in the large numerical value area. First, the decoding result of the information code that can be normally decoded first is output. In this way, the decoding process can be suppressed to the minimum necessary number, and the processing speed can be increased.

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

上記実施形態では、異なる時期に得られた2つの画像(第1画像及び第2画像)を用いて光学的情報読取装置1の操作方向及び操作量を検出したが、光学的情報読取装置1内に加速度センサを設け、これを「操作方向検出手段」「操作量検出手段」として機能させてもよい。   In the above embodiment, the operation direction and the operation amount of the optical information reading device 1 are detected using two images (first image and second image) obtained at different times. An acceleration sensor may be provided in the apparatus so as to function as “operation direction detection means” and “operation amount detection means”.

図17(a)は、光学的情報読取装置1内に加速度センサを設けた構成を説明する説明図であり、図17(b)は読取口付近に加速度センサを配置した例を説明する説明図である。図17の例では、光学的情報読取装置1の所定方向についての加速度を検出する第1加速度センサ71と、第1加速度センサ71による加速度検出方向(前記所定方向)と直交する方向についての加速度を検出する第2加速度検出センサ72とが設けられている。なお、図17の構成は、図3のような操作検出処理に代えて第1加速度センサ71及び第2加速度センサ72を用いた操作検出処理が行われている点が第1実施形態と異なるが、それ以外は第1実施形態と同様であり、図1、図2、図4〜図12については第1実施形態と同様であるとして説明する。   FIG. 17A is an explanatory diagram for explaining a configuration in which an acceleration sensor is provided in the optical information reader 1, and FIG. 17B is an explanatory diagram for explaining an example in which an acceleration sensor is arranged near the reading port. It is. In the example of FIG. 17, a first acceleration sensor 71 that detects acceleration in a predetermined direction of the optical information reader 1 and acceleration in a direction orthogonal to the acceleration detection direction (the predetermined direction) by the first acceleration sensor 71 are measured. A second acceleration detection sensor 72 for detection is provided. 17 differs from the first embodiment in that an operation detection process using the first acceleration sensor 71 and the second acceleration sensor 72 is performed instead of the operation detection process as shown in FIG. Other than that, the second embodiment is the same as the first embodiment, and FIGS. 1, 2, and 4 to 12 will be described as being the same as the first embodiment.

第1加速度センサ71は、光学的情報読取装置1の読取口3が、当該読取口3の開口の長手方向(図17ではX軸方向)に変位する際の加速度を検出するように配置されている。また、第2加速度センサ72は、光学的情報読取装置1の読取口3が、当該読取口3の開口の短手方向(図17ではY軸方向)に変位する際の加速度を検出するように配置されている。これら第1加速度センサ71及び第2加速度センサ72の検出値は制御回路40(図1)に入力されるようになっている。   The first acceleration sensor 71 is arranged to detect acceleration when the reading port 3 of the optical information reading device 1 is displaced in the longitudinal direction of the opening of the reading port 3 (X-axis direction in FIG. 17). Yes. The second acceleration sensor 72 detects the acceleration when the reading port 3 of the optical information reading device 1 is displaced in the short direction (Y-axis direction in FIG. 17) of the opening of the reading port 3. Has been placed. The detection values of the first acceleration sensor 71 and the second acceleration sensor 72 are input to the control circuit 40 (FIG. 1).

この構成の場合、第1の時期後(S1にて画像取得がなされた後)に第1加速度センサ71及び第2加速度センサ72から制御回路40に入力される値に基づいて、光学的情報読取装置1の移動方向及び移動量(より詳しくは読取口3付近の移動方向及び移動量)を検出することができる。具体的には、第1加速度センサ71の値に基づきX軸方向における単位時間当たりの移動量Lxを算出でき、第2加速度センサ72に基づきY軸方向における単位時間当たりの移動量Lyを算出できるため、これら移動量Lx、Lyから単位時間当たりの全体の移動量Laを求め、これを光学的情報読取装置1の操作量としてS7以降の処理で用いることができる。また、移動量Lx、Lyから図17(a)のように移動方向θを求めこれを操作方向としてS7以降の処理で用いることができる。   In the case of this configuration, optical information reading is performed based on values input from the first acceleration sensor 71 and the second acceleration sensor 72 to the control circuit 40 after the first period (after image acquisition is performed in S1). The moving direction and moving amount of the apparatus 1 (more specifically, the moving direction and moving amount near the reading port 3) can be detected. Specifically, the movement amount Lx per unit time in the X-axis direction can be calculated based on the value of the first acceleration sensor 71, and the movement amount Ly per unit time in the Y-axis direction can be calculated based on the second acceleration sensor 72. Therefore, the total movement amount La per unit time can be obtained from these movement amounts Lx and Ly, and this can be used as the operation amount of the optical information reading apparatus 1 in the processing after S7. Further, the movement direction θ is obtained from the movement amounts Lx and Ly as shown in FIG. 17A, and this can be used as the operation direction in the processing after S7.

図1は、本発明の第1実施形態に係る光学的情報読取装置を概略的に例示するブロック図である。FIG. 1 is a block diagram schematically illustrating an optical information reading apparatus according to the first embodiment of the present invention. 図2は、図1の光学的情報読取装置による読取処理のメインルーチンを例示するフローチャートである。FIG. 2 is a flowchart illustrating a main routine of a reading process by the optical information reading apparatus of FIG. 図3は、移動検出処理の流れを例示するフローチャートである。FIG. 3 is a flowchart illustrating the flow of the movement detection process. 図4は、優先順位設定処理の流れを例示するフローチャートである。FIG. 4 is a flowchart illustrating the flow of priority order setting processing. 図5は、第1の時期における画像取得の様子を説明する説明図である。FIG. 5 is an explanatory diagram for explaining a state of image acquisition in the first period. 図6は、第2の時期における画像取得の様子を説明する説明図である。FIG. 6 is an explanatory diagram for explaining a state of image acquisition in the second period. 図7は、取得画像に基づいて移動方向及び移動量を検出する概念を説明する説明図である。FIG. 7 is an explanatory diagram for explaining the concept of detecting the movement direction and the movement amount based on the acquired image. 図8は、第1画像を複数領域に分割した例を示す説明図である。FIG. 8 is an explanatory diagram illustrating an example in which the first image is divided into a plurality of regions. 図9(a)は移動量がゼロの場合、若しくは所定の微動状態であるときの数値設定を説明する説明図であり、(b)は、移動量が所定の小状態であるときの数値設定を説明する説明図である。FIG. 9A is an explanatory diagram for explaining the numerical setting when the movement amount is zero or in a predetermined fine movement state, and FIG. 9B is the numerical setting when the movement amount is in a predetermined small state. It is explanatory drawing explaining these. 図10(a)は、移動量が所定の中状態であるときの数値設定を説明する説明図であり、(b)は、移動量が所定の大状態のときの数値設定を説明する説明図である。FIG. 10A is an explanatory diagram for explaining the numerical setting when the movement amount is in a predetermined middle state, and FIG. 10B is an explanatory diagram for explaining the numerical setting when the movement amount is in a predetermined large state. It is. 図11(a)は、第1画像を表示する様子を説明する説明図であり、(b)は、各領域の態様を数値設定に応じて変化させる例を説明する説明図である。FIG. 11A is an explanatory diagram for explaining a state in which the first image is displayed, and FIG. 11B is an explanatory diagram for explaining an example in which the mode of each region is changed in accordance with the numerical value setting. 図12は、情報コードが選択された状態を画像表示する例を説明する説明図である。FIG. 12 is an explanatory diagram for explaining an example in which the state in which the information code is selected is displayed as an image. 図13は、本発明の第2実施形態に係る光学的情報読取装置を概略的に例示するブロック図である。FIG. 13 is a block diagram schematically illustrating an optical information reading apparatus according to the second embodiment of the present invention. 図14は、図13の光学的情報読取装置を用いた場合の第1の時期における画像取得の様子を説明する説明図である。FIG. 14 is an explanatory diagram for explaining a state of image acquisition at the first time when the optical information reading apparatus of FIG. 13 is used. 図15は、図13の光学的情報読取装置を用いた場合の第2の時期における画像取得の様子を説明する説明図である。FIG. 15 is an explanatory diagram for explaining the state of image acquisition at the second time when the optical information reading apparatus of FIG. 13 is used. 図16は、第3実施形態の光学的情報読取装置において行われる読取処理のメインルーチンを例示するフローチャートである。FIG. 16 is a flowchart illustrating a main routine of a reading process performed in the optical information reading apparatus according to the third embodiment. 図17は、加速度センサを用いて操作方向及び操作量を検出する例を説明する説明図である。FIG. 17 is an explanatory diagram illustrating an example in which an operation direction and an operation amount are detected using an acceleration sensor.

符号の説明Explanation of symbols

1…光学的情報読取装置
23…受光センサ(受光手段)
40…制御回路(画像生成手段、デコード手段、操作方向検出手段、選択手段、操作量検出手段、分割手段、割当手段、領域態様表示手段、表示手段、表示器、選択コード表示手段、選択解除手段)
46…液晶表示器(領域態様表示手段、表示手段、表示器、選択コード表示手段)
51…レーザダイオード(マーカ光照射手段)
71…第1加速度センサ(加速度検出手段)
72…第2加速度センサ(加速度検出手段)
DESCRIPTION OF SYMBOLS 1 ... Optical information reader 23 ... Light receiving sensor (light receiving means)
40... Control circuit (image generation means, decoding means, operation direction detection means, selection means, operation amount detection means, division means, allocation means, area mode display means, display means, display, selection code display means, selection release means )
46 ... Liquid crystal display (region mode display means, display means, display, selection code display means)
51 ... Laser diode (marker light irradiation means)
71 ... 1st acceleration sensor (acceleration detection means)
72. Second acceleration sensor (acceleration detecting means)

Claims (18)

情報コードが記録された読取対象からの反射光を受光する受光手段と、
少なくとも第1の時期における前記受光手段による受光結果に基づいて読取対象の第1画像を生成する画像生成手段と、
前記読取対象の第1画像に含まれる前記情報コードの画像をデコードするデコード手段と、
を備えた光学的情報読取装置であって、
前記デコード手段は、
前記第1の時期後のユーザによる前記光学的情報読取装置の操作方向を検出する操作方向検出手段と、
前記読取対象の第1画像において前記情報コードの画像が複数含まれる場合に、前記操作方向検出手段によって検出された前記操作方向に基づいて、いずれかの前記情報コードを選択する選択手段と、
を備え、
かつ、前記選択手段によって選択された前記情報コードのデコード結果を出力することを特徴とする光学的情報読取装置。
A light receiving means for receiving reflected light from a reading object in which an information code is recorded;
Image generating means for generating a first image to be read based on a light reception result by the light receiving means at least at a first time;
Decoding means for decoding an image of the information code included in the first image to be read;
An optical information reader comprising:
The decoding means includes
An operation direction detecting means for detecting an operation direction of the optical information reader by the user after the first period;
A selection unit that selects any one of the information codes based on the operation direction detected by the operation direction detection unit when a plurality of images of the information code are included in the first image to be read;
With
An optical information reading apparatus that outputs a decoding result of the information code selected by the selection means.
前記第1の時期後の前記ユーザによる前記光学的情報読取装置の操作量を検出する操作量検出手段を備え、
前記選択手段は、前記読取対象の第1画像において前記情報コードの画像が複数含まれる場合に、前記操作方向検出手段によって検出された前記操作方向と、前記操作量検出手段によって検出された前記操作量と、に基づいて、いずれかの前記情報コードを選択することを特徴とする請求項1に記載の光学的情報読取装置。
An operation amount detection means for detecting an operation amount of the optical information reader by the user after the first period;
The selection unit includes the operation direction detected by the operation direction detection unit and the operation detected by the operation amount detection unit when a plurality of images of the information code are included in the first image to be read. The optical information reading apparatus according to claim 1, wherein any one of the information codes is selected based on a quantity.
前記画像生成手段は、前記第1の時期において前記読取対象の第1画像を生成すると共に、前記第1の時期の後に前記ユーザが前記光学的情報読取装置を移動させた後の前記受光手段による受光結果に基づいて読取対象の第2画像を生成し、
前記操作方向検出手段は、前記読取対象の第1画像と、前記読取対象の第2画像と、に基づいて前記操作方向を検出することを特徴とする請求項1に記載の光学的情報読取装置。
The image generating means generates the first image to be read at the first time, and the light receiving means after the user moves the optical information reading device after the first time. Generating a second image to be read based on the light reception result;
The optical information reader according to claim 1, wherein the operation direction detection unit detects the operation direction based on the first image to be read and the second image to be read. .
前記画像生成手段は、前記第1の時期において前記読取対象の第1画像を生成すると共に、前記第1の時期の後に前記ユーザが前記光学的情報読取装置を移動させた後の前記受光手段による受光結果に基づいて読取対象の第2画像を生成し、
前記操作方向検出手段及び前記操作量検出手段は、前記読取対象の第1画像と、前記読取対象の第2画像と、に基づいて、前記操作方向及び前記操作量をそれぞれ検出することを特徴とする請求項2に記載の光学的情報読取装置。
The image generating means generates the first image to be read at the first time, and the light receiving means after the user moves the optical information reading device after the first time. Generating a second image to be read based on the light reception result;
The operation direction detection unit and the operation amount detection unit detect the operation direction and the operation amount based on the first image to be read and the second image to be read, respectively. The optical information reader according to claim 2.
前記情報コードは位置検出パターンを含んだ二次元コードであり、
前記操作方向検出手段及び前記操作量検出手段は、前記読取対象の第1画像に含まれる前記情報コードの前記位置検出パターンと、前記読取対象の第2画像に含まれる前記情報コードの前記位置検出パターンと、に基づいて前記操作方向及び前記操作量をそれぞれ検出することを特徴とする請求項4に記載の光学的情報読取装置。
The information code is a two-dimensional code including a position detection pattern,
The operation direction detection unit and the operation amount detection unit detect the position of the information code included in the first image to be read and the position detection of the information code included in the second image to be read. The optical information reader according to claim 4, wherein the operation direction and the operation amount are detected based on a pattern.
前記選択手段は、前記読取対象の第1画像から前記読取対象の第2画像に変化する際に、画像中心位置へ接近しようとする前記情報コードを選択することを特徴とする請求項3から請求項5のいずれか一項に記載の光学的情報読取装置。   The said selection means selects the said information code which is going to approach an image center position, when changing from the said 1st image of the said reading object to the 2nd image of the said reading object. Item 6. The optical information reading device according to any one of Items 5 to 6. 前記操作方向検出手段は、前記光学的情報読取装置の加速度を検出する加速度検出手段からなることを特徴とする請求項1に記載の光学的情報読取装置。   The optical information reading apparatus according to claim 1, wherein the operation direction detecting unit includes an acceleration detecting unit that detects an acceleration of the optical information reading apparatus. 前記操作方向検出手段及び前記操作量検出手段は、前記光学的情報読取装置の加速度を検出する加速度検出手段からなることを特徴とする請求項2に記載の光学的情報読取装置。   3. The optical information reading apparatus according to claim 2, wherein the operation direction detection unit and the operation amount detection unit include an acceleration detection unit that detects an acceleration of the optical information reading apparatus. 前記選択手段は、
前記読取対象の第1画像を複数領域に分割する分割手段と、
前記複数領域の各領域に数値を割り当てる割当手段と、
を備え、
前記割当手段は、前記ユーザによる前記光学的情報読取装置の前記操作方向に基づいて前記複数領域のうちの一部領域の数値を、前記一部領域以外に割り当てられる基準値よりも大きく設定するように各領域に数値を割り当て、
前記選択手段は、前記読取対象の第1画像において前記情報コードの画像が複数含まれる場合、各情報コードの画像が配されている前記領域の前記数値に基づいていずれかの前記情報コードを選択することを特徴とする請求項1から請求項8のいずれか一項に記載の光学的情報読取装置。
The selection means includes
Dividing means for dividing the first image to be read into a plurality of regions;
Assigning means for assigning a numerical value to each of the plurality of areas;
With
The assigning means sets a numerical value of a partial area of the plurality of areas to be larger than a reference value assigned to other than the partial area based on the operation direction of the optical information reading apparatus by the user. Assign a number to each area,
The selection means selects one of the information codes based on the numerical value of the area where the information code images are arranged when the first image to be read includes a plurality of information code images. The optical information reading apparatus according to claim 1, wherein the optical information reading apparatus is an optical information reading apparatus.
前記割当手段は、前記ユーザによる前記光学的情報読取装置の操作量に応じた広さで前記一部領域を設定することを特徴とする請求項9に記載の光学的情報読取装置。   The optical information reading apparatus according to claim 9, wherein the allocating unit sets the partial area with a size corresponding to an operation amount of the optical information reading apparatus by the user. 前記読取対象の第1画像を表示すると共に、当該読取対象の第1画像における前記複数領域のそれぞれを、各領域の前記数値に対応した態様で表示する領域態様表示手段を備えたことを特徴とする請求項9又は請求項10に記載の光学的情報読取装置。  In addition to displaying the first image to be read, there is provided area mode display means for displaying each of the plurality of areas in the first image to be read in a mode corresponding to the numerical value of each area. The optical information reading device according to claim 9 or 10. 前記デコード手段は、  The decoding means includes
前記読取対象の第1画像において前記情報コードの画像が複数含まれる場合、前記選択手段による選択に先立ってその複数の前記情報コードをそれぞれデコードし、  When a plurality of images of the information code are included in the first image to be read, each of the plurality of information codes is decoded prior to selection by the selection unit,
かつ、前記ユーザによる前記光学的情報読取装置の前記操作方向に基づいて、既にデコードされたいずれかの前記情報コードを前記選択手段によって選択し、デコード結果を出力することを特徴とする請求項1から請求項11のいずれか一項に記載の光学的情報読取装置。  The selection means selects one of the already decoded information codes based on the operation direction of the optical information reader by the user, and outputs a decoding result. The optical information reader according to claim 11.
前記デコード手段は、  The decoding means includes
前記読取対象の第1画像において前記情報コードの画像が複数含まれる場合、それら複数の前記情報コードの画像について、前記数値の大きい前記領域に配される前記情報コードから順にデコードを行い、最初にデコードを正常に行うことができた前記情報コードのデコード結果を出力することを特徴とする請求項9から請求項11のいずれか一項に記載の光学的情報読取装置。  When a plurality of images of the information code are included in the first image to be read, the plurality of information code images are decoded in order from the information code arranged in the region having the larger numerical value. The optical information reading apparatus according to any one of claims 9 to 11, wherein a decoding result of the information code that has been successfully decoded is output.
前記読取対象と、前記光学的情報読取装置との対応関係を示す表示手段を備えたことを特徴とする請求項1から請求項13のいずれか一項に記載の光学的情報読取装置。  14. The optical information reading apparatus according to claim 1, further comprising a display unit that indicates a correspondence relationship between the reading target and the optical information reading apparatus. 前記表示手段は、少なくとも前記読取対象の第1画像を表示すると共に、前記読取対象の第1画像の所定位置に識別マークを表示する表示器からなり、  The display means includes a display for displaying at least a first image to be read and an identification mark at a predetermined position of the first image to be read.
前記表示器は、  The indicator is
前記第1の時期後の前記操作方向に応じた前記読取対象における画像取得領域の移動方向に対応させて、前記読取対象の第1画像に付されている前記識別マークの表示位置を移動させることを特徴とする請求項14に記載の光学的情報読取装置。  The display position of the identification mark attached to the first image to be read is moved in correspondence with the moving direction of the image acquisition region in the read object according to the operation direction after the first time. The optical information reading device according to claim 14.
前記表示器は、前記第1の時期後の前記ユーザによる前記光学的情報読取装置の操作に応じ、前記選択手段によって選択される前記情報コードの画像位置に前記識別マークの表示位置を移動させることを特徴とする請求項15に記載の光学的情報読取装置。  The display unit moves the display position of the identification mark to the image position of the information code selected by the selection unit in response to an operation of the optical information reader by the user after the first period. The optical information reader according to claim 15. 前記表示手段は、前記読取対象に対してマーカ光を照射するマーカ光照射手段からなり、  The display means includes marker light irradiation means for irradiating the reading target with marker light,
前記マーカ光照射手段は、前記読取対象における前記光学的情報読取装置による画像取得領域の所定位置に前記マーカ光を照射することで、前記読取対象と前記光学的情報読取装置との対応関係を示すことを特徴とする請求項14に記載の光学的情報読取装置。  The marker light irradiation means irradiates the marker light to a predetermined position of an image acquisition region by the optical information reading device on the reading target, thereby indicating a correspondence relationship between the reading target and the optical information reading device. The optical information reader according to claim 14.
前記選択手段による前記情報コードの選択結果を表示する選択コード表示手段と、  Selection code display means for displaying the selection result of the information code by the selection means;
前記ユーザからの解除操作に基づき、前記選択手段による前記情報コードの選択を解除する選択解除手段と、  Selection canceling means for canceling the selection of the information code by the selection means based on a canceling operation from the user;
を備えたことを特徴とする請求項1から請求項17のいずれか一項に記載の光学的情報読取装置。  The optical information reader according to claim 1, further comprising:
JP2007327354A 2007-12-19 2007-12-19 Optical information reader Active JP4968043B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2007327354A JP4968043B2 (en) 2007-12-19 2007-12-19 Optical information reader

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2007327354A JP4968043B2 (en) 2007-12-19 2007-12-19 Optical information reader

Publications (2)

Publication Number Publication Date
JP2009151446A JP2009151446A (en) 2009-07-09
JP4968043B2 true JP4968043B2 (en) 2012-07-04

Family

ID=40920559

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2007327354A Active JP4968043B2 (en) 2007-12-19 2007-12-19 Optical information reader

Country Status (1)

Country Link
JP (1) JP4968043B2 (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012018494A (en) * 2010-07-07 2012-01-26 Keyence Corp Bar code symbol reader, bar code symbol reading method, and computer program
DE202013012944U1 (en) * 2012-11-15 2023-03-07 Hand Held Products, Inc. doing business as Honeywell Scanning & Mobility Mobile computers configured to read multiple decodable characters
JP2015075873A (en) * 2013-10-08 2015-04-20 シャープ株式会社 Code symbol reader
US9652653B2 (en) * 2014-12-27 2017-05-16 Hand Held Products, Inc. Acceleration-based motion tolerance and predictive coding
JP6468225B2 (en) * 2016-03-18 2019-02-13 株式会社デンソーウェーブ Information code reader
JP7328785B2 (en) * 2019-04-15 2023-08-17 株式会社キーエンス Optical information reader
WO2020218542A1 (en) * 2019-04-26 2020-10-29 株式会社デンソーウェーブ Optical information reading device
JP7323901B1 (en) * 2022-11-09 2023-08-09 ソノー電機工業株式会社 Information processing program and information processing terminal

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4058529B2 (en) * 2003-09-08 2008-03-12 株式会社デンソーウェーブ Optical information reader
JP4192847B2 (en) * 2004-06-16 2008-12-10 カシオ計算機株式会社 Code reader and program
JP4379340B2 (en) * 2005-01-19 2009-12-09 株式会社デンソーウェーブ Information processing system and information input terminal

Also Published As

Publication number Publication date
JP2009151446A (en) 2009-07-09

Similar Documents

Publication Publication Date Title
JP4968043B2 (en) Optical information reader
JP4968093B2 (en) Optical information reader
US11354525B2 (en) Optical information reader manually handled by users
CN109657513B (en) Two-dimensional code
CN110945530A (en) Two-dimensional code and two-dimensional code reading device
JP7167553B2 (en) Two-dimensional code
JP4466522B2 (en) Optical information reader
JP4650138B2 (en) Optical information reader
JP5888199B2 (en) Bar code reader
JP5780192B2 (en) Information code reader
JP5104713B2 (en) Optical information reader
JP5104557B2 (en) Optical information reader
JP2009015742A (en) Optical information reader
JP2011008574A (en) Optical information reader
JP5786784B2 (en) Information code reader
JP5212389B2 (en) Optical information reader
JP2011048561A (en) Optical information read device
JP5056627B2 (en) Optical information reader
JP6398809B2 (en) Information code reader
JP5007960B2 (en) Optical information reader
JP2010097316A (en) Optical information reader
JP2008033466A (en) Optical reader
JP2014203239A (en) Optical information reading device
JP2748672B2 (en) Barcode reader
US20170068834A1 (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: 20091217

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20120127

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20120131

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20120214

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

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20120319

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

Free format text: PAYMENT UNTIL: 20150413

Year of fee payment: 3

R150 Certificate of patent or registration of utility model

Ref document number: 4968043

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

Free format text: JAPANESE INTERMEDIATE CODE: R150

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

Free format text: PAYMENT UNTIL: 20150413

Year of fee payment: 3

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250