JP2010092211A - Symbol reading device and program - Google Patents

Symbol reading device and program Download PDF

Info

Publication number
JP2010092211A
JP2010092211A JP2008260660A JP2008260660A JP2010092211A JP 2010092211 A JP2010092211 A JP 2010092211A JP 2008260660 A JP2008260660 A JP 2008260660A JP 2008260660 A JP2008260660 A JP 2008260660A JP 2010092211 A JP2010092211 A JP 2010092211A
Authority
JP
Japan
Prior art keywords
symbol
frame
imaging
display
range
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.)
Granted
Application number
JP2008260660A
Other languages
Japanese (ja)
Other versions
JP5217872B2 (en
Inventor
Noriyoshi Irie
知徳 入江
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.)
Casio Computer Co Ltd
Original Assignee
Casio Computer Co Ltd
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 Casio Computer Co Ltd filed Critical Casio Computer Co Ltd
Priority to JP2008260660A priority Critical patent/JP5217872B2/en
Publication of JP2010092211A publication Critical patent/JP2010092211A/en
Application granted granted Critical
Publication of JP5217872B2 publication Critical patent/JP5217872B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To provide a symbol reading device more suitably reading a symbol. <P>SOLUTION: This symbol reading device includes: a camera 14 imaging the symbol; a display 16 displaying an imaged image by the camera 14; and a CPU 11 displaying a frame on a display 16, setting a range in the frame of the imaged image as a decoding range, reading the symbol from the decoding range, and performing the processing of reducing the range in the frame when an average cell size of the read symbol is larger than a prescribed cell size. <P>COPYRIGHT: (C)2010,JPO&INPIT

Description

本発明は、シンボル読取装置及びプログラムに関する。   The present invention relates to a symbol reader and a program.

二次元バーコード等のシンボルを撮像して当該シンボルに含まれる文字列等の情報を読み取るシンボル読取装置が知られている。シンボル読取装置は、カメラ等の撮像装置でシンボルを撮像し、撮像画像をデコードエンジン等の読取装置が解析することで、シンボルの内容を読み取る。   2. Description of the Related Art A symbol reading device that images a symbol such as a two-dimensional barcode and reads information such as a character string included in the symbol is known. The symbol reader captures a symbol with an imaging device such as a camera, and reads the contents of the symbol by analyzing the captured image with a reader such as a decoding engine.

シンボル読取装置の使用者は、シンボルを撮像するためカメラの撮像範囲内にシンボルを収められるようカメラ又はシンボル読取装置のカメラ部分の位置や角度を調節する必要がある。シンボルの撮像操作を助けるため、カメラによる撮像範囲をプレビュー表示する表示装置を備えるシンボル読取装置がある。さらに、デコードエンジンによるシンボルの解析範囲よりも広い範囲をプレビュー表示すると共に、当該プレビュー表示内においてデコードエンジンによるシンボルの解析範囲となる範囲を示す枠を表示して当該枠内にシンボルを収めて撮像するよう促すシンボル読取装置が知られている(例えば特許文献1)。
特開2004−287808号公報
The user of the symbol reader needs to adjust the position and angle of the camera or the camera portion of the symbol reader so that the symbol can be captured within the imaging range of the camera in order to capture the symbol. In order to assist the symbol imaging operation, there is a symbol reading apparatus including a display device that displays a preview of an imaging range by a camera. In addition, a preview area that is wider than the analysis range of the symbol by the decode engine is displayed as a preview, and a frame indicating the range that is the analysis range of the symbol by the decode engine is displayed in the preview display. A symbol reading device that prompts the user to do this is known (for example, Patent Document 1).
JP 2004-287808 A

しかしながら、特許文献1のシンボル読取装置では、シンボルを好適に読み取れることができない場合がある。
プレビュー表示内に表示される枠及び枠内の範囲は、固定のサイズである。一方、シンボルの面積はシンボル毎に異なる。そして、シンボル読取装置の使用者は、枠いっぱいにシンボルを撮像しようとすることが多い。このため、例えば枠内の範囲の大きさに対して小さいシンボルを撮像した場合に、枠いっぱいにシンボルを拡大するためにカメラをシンボルに近づけすぎてしまい、その結果シンボルに対して焦点が合わない状態で撮像を行ってしまうことがある。焦点が合わないシンボルの撮像画像にはぼやけが生じ、デコードエンジンによる読取が行えない場合がある。
However, the symbol reading apparatus disclosed in Patent Document 1 may not be able to read symbols favorably.
The frame displayed in the preview display and the range within the frame have a fixed size. On the other hand, the area of the symbol varies from symbol to symbol. The user of the symbol reading apparatus often tries to image the symbol in the full frame. For this reason, for example, when a small symbol is captured with respect to the size of the range in the frame, the camera is brought too close to the symbol to enlarge the symbol to fill the frame, and as a result, the symbol is not focused. In some cases, imaging may be performed. In some cases, a captured image of an out-of-focus symbol is blurred and cannot be read by a decoding engine.

一方、枠内の範囲の大きさに対してシンボルの面積が大きい場合、使用者は枠内にシンボルを収めようとする結果、シンボルから大きく離れた位置からの撮像を行うことが多い。その結果、撮像されたシンボルはシンボルの面積に対して非常に小さくなり、シンボルの撮像画像につぶれが生じてデコードエンジンによる読取が行えないことがある。この場合もシンボル読取装置によるシンボルの読取は好適に行うことができない。   On the other hand, when the area of the symbol is large with respect to the size of the range in the frame, the user often takes an image from a position far away from the symbol as a result of trying to fit the symbol in the frame. As a result, the captured symbol becomes very small with respect to the area of the symbol, and the captured image of the symbol may be crushed and cannot be read by the decoding engine. Also in this case, the symbol reading by the symbol reading device cannot be suitably performed.

本発明の課題は、シンボルをより好適に読み取ることが可能なシンボル読取装置を提供することである。   The subject of this invention is providing the symbol reader which can read a symbol more suitably.

上記課題を解決するため、請求項1記載の発明によるシンボル読取装置は、被写体を撮像する撮像手段と、前記撮像手段による撮像画像を表示する表示手段と、前記撮像画像のうち所定の範囲をシンボル読取領域として設定し、当該所定の範囲内からシンボルを読み取る読取手段と、前記所定の範囲を示す枠を前記表示手段に表示する枠表示手段と、読み取ったシンボルを構成するセル幅が所定のセル幅より大きい場合、前記枠内に含まれる範囲を小さくするよう前記枠を表示させる第1の表示制御手段と、を備えることを特徴とする。   In order to solve the above-described problem, a symbol reading apparatus according to a first aspect of the present invention includes an imaging unit that images a subject, a display unit that displays an image captured by the imaging unit, and a predetermined range of the captured image as a symbol. A reading unit that is set as a reading region and reads a symbol from within the predetermined range, a frame display unit that displays a frame indicating the predetermined range on the display unit, and a cell width that constitutes the read symbol is a predetermined cell And a first display control means for displaying the frame so as to reduce a range included in the frame when larger than the width.

請求項2記載の発明によるシンボル読取装置は、被写体を撮像する撮像手段と、前記撮像手段による撮像画像を表示する表示手段と、前記撮像画像のうち所定の範囲をシンボル読取領域として設定し、当該所定の範囲内からシンボルを読み取る読取手段と、前記所定の範囲を示す枠を前記表示手段に表示する枠表示手段と、読み取ったシンボルを構成するセル幅が所定のセル幅より小さい場合、前記枠内に含まれる範囲を大きくするよう前記枠を表示させる第2の表示制御手段と、を備えることを特徴とする。   According to a second aspect of the present invention, there is provided a symbol reading device that sets an imaging unit that images a subject, a display unit that displays an image captured by the imaging unit, and a predetermined range of the captured image as a symbol reading region. A reading unit that reads a symbol from within a predetermined range; a frame display unit that displays a frame indicating the predetermined range on the display unit; and a cell width that configures the read symbol is smaller than a predetermined cell width. And a second display control means for displaying the frame so as to enlarge the range included therein.

請求項3記載の発明は、請求項1又は2に記載のシンボル読取装置において、前記枠内に収まるよう撮像されたシンボルのセル幅が前記所定のセル幅以下となる前記枠を表示させる第3の表示制御手段を備えることを特徴とする。   According to a third aspect of the present invention, there is provided the symbol reading apparatus according to the first or second aspect, wherein the frame in which the cell width of the symbol imaged to be within the frame is equal to or smaller than the predetermined cell width is displayed. The display control means is provided.

請求項4記載の発明は、請求項1から3のいずれか一項に記載のシンボル読取装置において、前記撮像画像にぶれが生じていることを検出するぶれ検出手段と、前記撮像画像にぶれが生じている場合、ぶれが生じていることを示す表示を通知するぶれ通知手段と、を備えることを特徴とする。   According to a fourth aspect of the present invention, in the symbol reading apparatus according to any one of the first to third aspects, a blur detection unit that detects that a blur has occurred in the captured image, and a blur in the captured image. And a shake notification means for notifying a display indicating that a shake has occurred.

請求項5記載の発明は、請求項1から4のいずれか一項に記載のシンボル読取装置において、前記シンボルの四辺の対向する二辺の長さの比率が所定の比率より大きい場合に、前記撮像手段による撮像が前記被写体に対して斜め方向から行われていると判定する斜め撮像判定手段と、前記撮像手段による撮像が前記被写体に対して斜め方向から行われていると判定された場合、斜め方向からの撮像が行われていることを通知する斜め撮像通知手段を備えることを特徴とする。   According to a fifth aspect of the present invention, in the symbol reading apparatus according to any one of the first to fourth aspects, when the ratio of the lengths of two opposite sides of the four sides of the symbol is larger than a predetermined ratio, When it is determined that the imaging by the imaging unit is performed from an oblique direction with respect to the subject, and when it is determined that the imaging by the imaging unit is performed from the oblique direction, An oblique imaging notification means for notifying that imaging from an oblique direction is being performed is provided.

請求項6記載のプログラムは、コンピュータを、撮像手段による被写体の撮像を制御する撮像制御手段、前記撮像手段による撮像画像を表示手段へ表示する表示制御手段、前記撮像画像のうち所定の範囲をシンボル読取領域として設定し、当該所定の範囲内からシンボルを読み取る読取手段、前記所定の範囲を示す枠を前記表示手段に表示する枠表示手段、読み取ったシンボルを構成するセル幅が所定のセル幅より大きい場合、前記枠内に含まれる範囲を小さくするよう前記枠を表示させる第1の表示制御手段、として機能させることを特徴とする。   According to a sixth aspect of the present invention, there is provided a program for controlling a computer to capture an image of a subject by the imaging unit, a display control unit for displaying a captured image by the imaging unit on a display unit, and a predetermined range of the captured image as a symbol. A reading unit that is set as a reading area and reads a symbol from within the predetermined range, a frame display unit that displays a frame indicating the predetermined range on the display unit, and a cell width constituting the read symbol is greater than a predetermined cell width When it is large, it is made to function as a first display control means for displaying the frame so as to reduce the range included in the frame.

請求項7記載のプログラムは、コンピュータを、撮像手段による被写体の撮像を制御する撮像制御手段、前記撮像手段による撮像画像を表示手段へ表示する表示制御手段、前記撮像画像のうち所定の範囲をシンボル読取領域として設定し、当該所定の範囲内からシンボルを読み取る読取手段、前記所定の範囲を示す枠を前記表示手段に表示する枠表示手段、読み取ったシンボルを構成するセル幅が所定のセル幅より小さい場合、前記枠内に含まれる範囲を大きくするよう前記枠を表示させる第2の表示制御手段、として機能させることを特徴とする。   According to a seventh aspect of the present invention, there is provided a program for controlling a computer to capture an image of a subject by the imaging unit, a display control unit for displaying a captured image by the imaging unit on a display unit, and a predetermined range of the captured image as a symbol. A reading unit that is set as a reading area and reads a symbol from within the predetermined range, a frame display unit that displays a frame indicating the predetermined range on the display unit, and a cell width constituting the read symbol is greater than a predetermined cell width When it is small, it is made to function as a 2nd display control means to display the said frame so that the range included in the said frame may be enlarged.

本発明によれば、シンボルをより好適に読み取ることが可能なシンボル読取装置を提供できる。   ADVANTAGE OF THE INVENTION According to this invention, the symbol reader which can read a symbol more suitably can be provided.

以下、図を参照して本発明の実施形態について詳細に説明するが、この発明は、この実施の形態に限定されない。また、この発明の実施の形態は発明の最も好ましい形態を示すものであり、発明の用途はこれに限定されない。   Hereinafter, embodiments of the present invention will be described in detail with reference to the drawings. However, the present invention is not limited to the embodiments. The embodiment of the present invention shows the most preferable mode of the invention, and the application of the invention is not limited to this.

図1に、本発明の第1の実施形態によるシンボル読取装置1の主要構成を示す。
シンボル読取装置1は、シンボル読取装置1の動作制御のための各種の処理を行うCPU11と、各種のプログラム及びデータ等を記憶するROM12と、一時的に生じるデータを格納するRAM13と、被写体を撮像する撮像装置として機能するカメラ14と、カメラ14による撮像操作入力その他の入力を可能とする入力装置15と、カメラ14による撮像画像の表示、シンボルSを収める範囲をガイダンスする枠21の表示及びその他の各種情報を表示する表示装置16と、シンボル読取装置1の各部に電力を供給する電源装置17と、を備える。
FIG. 1 shows a main configuration of a symbol reading apparatus 1 according to the first embodiment of the present invention.
The symbol reader 1 is a CPU 11 that performs various processes for controlling the operation of the symbol reader 1, a ROM 12 that stores various programs and data, a RAM 13 that stores temporarily generated data, and an image of a subject. A camera 14 that functions as an imaging device, an input device 15 that enables an imaging operation input and other inputs by the camera 14, a display of a captured image by the camera 14, a display of a frame 21 that provides guidance on a range in which the symbol S is accommodated, and others The display device 16 for displaying the various information and the power supply device 17 for supplying power to each part of the symbol reading device 1 are provided.

CPU11は、ROM12から処理内容に応じたプログラム及びデータ等を読み込んで処理を行う所謂ソフトウェア処理によってシンボル読取装置1の各部の動作制御を行う。当該処理において一時的に生じるデータはRAM13に格納され、必要に応じて呼び出される。以下、CPU11が行う処理はソフトウェア処理による。   The CPU 11 controls the operation of each unit of the symbol reading device 1 by so-called software processing that reads a program and data corresponding to the processing content from the ROM 12 and performs processing. Data temporarily generated in the processing is stored in the RAM 13 and is called up as necessary. Hereinafter, the processing performed by the CPU 11 is based on software processing.

ROM12は、少なくともシンボル解析プログラム12a、枠表示プログラム12b、デコード範囲枠決定プログラム12c及びデコード範囲データ12dを記憶する。これらのプログラム及びデータによるCPU11の動作制御については後述する。   The ROM 12 stores at least a symbol analysis program 12a, a frame display program 12b, a decode range frame determination program 12c, and decode range data 12d. The operation control of the CPU 11 by these programs and data will be described later.

カメラ14は、少なくともセンサー14a、レンズ14b及び制御部14cを有する。センサー14bはイメージセンサであり、例えばCCDやCMOS等を用いたものが挙げられる。センサー14aはレンズ14bを介して被写体を撮像する。制御部14cはセンサー14aによる撮像に関る動作制御を行う。カメラ14による撮像画像は縦横に整列された複数の画素(ピクセル)を有し、RAM13にデータとして保存される。   The camera 14 includes at least a sensor 14a, a lens 14b, and a control unit 14c. The sensor 14b is an image sensor, for example, a sensor using a CCD, a CMOS, or the like. The sensor 14a images the subject via the lens 14b. The control unit 14c performs operation control related to imaging by the sensor 14a. An image captured by the camera 14 has a plurality of pixels (pixels) aligned vertically and horizontally, and is stored in the RAM 13 as data.

入力装置15は少なくともトリガキー15aを有する。トリガキー15aはシンボル読取装置1の使用者による手動でのON/OFFの切替を可能とするスイッチであり、例えば押圧操作によるボタン等である。トリガキー15aがONのとき、制御部14cはセンサー14aを動作させてカメラ14による被写体の撮像を行わせる。このとき、カメラ14はトリガキー15aがONとなっている間、所定の秒間フレームで撮像を継続する。   The input device 15 has at least a trigger key 15a. The trigger key 15a is a switch that allows a user of the symbol reading device 1 to manually switch on / off, and is, for example, a button by a pressing operation. When the trigger key 15a is ON, the control unit 14c operates the sensor 14a to cause the camera 14 to image the subject. At this time, the camera 14 continues imaging in a predetermined second frame while the trigger key 15a is ON.

表示装置16は、カメラ14による撮像画像を表示すると共に、表示装置16はシンボルSを収める範囲をガイダンスする枠21の表示を行う。以下、カメラ14による撮像画像の表示をプレビューと称する。   The display device 16 displays an image captured by the camera 14, and the display device 16 displays a frame 21 that provides guidance on a range in which the symbol S is stored. Hereinafter, the display of the captured image by the camera 14 is referred to as a preview.

図2にプレビュー画面の一例を示す。
図2に示すように、プレビュー画面には枠21が表示される。図2に示すプレビュー画面では、被写体に含まれるシンボルSが枠21で囲われた範囲内に収まっている。
FIG. 2 shows an example of the preview screen.
As shown in FIG. 2, a frame 21 is displayed on the preview screen. In the preview screen shown in FIG. 2, the symbol S included in the subject is within the range surrounded by the frame 21.

枠21の内側は、デコード範囲である。CPU11は、デコード範囲に収まるよう撮像されたシンボルSの解析(デコード)を行い、シンボルSの内容即ちシンボルSが含む文字列情報を読み取る。CPU11は、シンボル解析プログラム12aを読み込んで処理することにより、シンボルSの解析(デコード)を行う。即ち、デコード範囲はシンボル読取領域であり、シンボル解析プログラム12aはCPU11を読取手段として機能させる。   The inside of the frame 21 is a decoding range. The CPU 11 analyzes (decodes) the captured symbol S so as to be within the decoding range, and reads the contents of the symbol S, that is, the character string information included in the symbol S. The CPU 11 analyzes (decodes) the symbol S by reading and processing the symbol analysis program 12a. That is, the decoding range is a symbol reading area, and the symbol analysis program 12a causes the CPU 11 to function as reading means.

枠21は、デコード範囲の外周四隅を示す枠として表示される。枠21の表示は、CPU11が枠表示プログラム12bを読み込んで処理することによって表示装置16に表示される。即ち、枠表示プログラム12bはCPU11を枠表示手段として機能させる。   The frame 21 is displayed as a frame indicating the outer peripheral four corners of the decoding range. The display of the frame 21 is displayed on the display device 16 by the CPU 11 reading and processing the frame display program 12b. That is, the frame display program 12b causes the CPU 11 to function as a frame display means.

枠21の表示位置即ちデコード範囲の位置は、デコード範囲データ12dにより決定される。デコード範囲データ12dは、プレビュー画面の左上始点座標(X1,Y1)と、右下終点座標(X2,Y2)とを含むデータであり、CPU11は当該始点座標と終点座標に基づき、(X1,Y1)、(X1,Y2)、(X2,Y1)、(X2,Y2)内の範囲をデコード範囲として設定する。プレビュー画面は複数のピクセルを有する撮像画像を表示する画面であり、始点座標(X1,Y1)及び終点座標(X2,Y2)はプレビュー画面内のある画素の位置と対応する。なお、図2以下の各図で示す画面において、横方向の幅をX方向の幅、縦方向の幅をY方向の幅とする。
デコード範囲データ12dの読み込みは、カメラ14による撮像前に行われる。
The display position of the frame 21, that is, the position of the decoding range is determined by the decoding range data 12d. The decode range data 12d is data including the upper left start point coordinates (X1, Y1) and the lower right end point coordinates (X2, Y2) of the preview screen, and the CPU 11 (X1, Y1) based on the start point coordinates and the end point coordinates. ), (X1, Y2), (X2, Y1), and (X2, Y2) are set as decoding ranges. The preview screen is a screen that displays a captured image having a plurality of pixels, and the start point coordinates (X1, Y1) and the end point coordinates (X2, Y2) correspond to the position of a certain pixel in the preview screen. In the screens shown in FIG. 2 and subsequent figures, the width in the horizontal direction is the width in the X direction, and the width in the vertical direction is the width in the Y direction.
Reading of the decoding range data 12d is performed before imaging by the camera 14.

次に、CPU11によるシンボルSの解析について説明する。シンボルSの解析は、シンボル検出処理、二値化処理、デコード処理を含む。以下、順を追って説明する。   Next, the analysis of the symbol S by the CPU 11 will be described. The analysis of the symbol S includes symbol detection processing, binarization processing, and decoding processing. In the following, description will be given in order.

まず、シンボル検出について説明する。
図3に、シンボル検出処理の概念図を示す。
シンボル検出処理では、CPU11はシンボル読取領域内でエッジ検出を行う。エッジ検出によって検出されたエッジが四つの角を有し、各角が直線(図3に示す方形状の直線L)で結ばれて四つの角の内側を閉じた領域としていた場合に、閉じた領域内をシンボルSとして検出する。
First, symbol detection will be described.
FIG. 3 shows a conceptual diagram of symbol detection processing.
In the symbol detection process, the CPU 11 performs edge detection within the symbol reading area. The edge detected by the edge detection has four corners, and each corner is connected by a straight line (rectangular straight line L shown in FIG. 3) and is closed when the inside of the four corners is a closed region. The area is detected as a symbol S.

シンボルSの検出に成功した場合、検出したシンボルSに対して二値化処理を行う。シンボルSの検出に失敗した場合、再度撮像画像を得てシンボル検出処理を行う。   When the detection of the symbol S is successful, the binarization process is performed on the detected symbol S. When the detection of the symbol S fails, the captured image is obtained again and the symbol detection process is performed.

シンボル検出処理におけるエッジ検出は既存の技術によるエッジ検出方法であるので、詳細は省略する。エッジ検出は、厳密なエッジ検出を必要とせず、撮像されたシンボルSにある程度(例えば予め設定された閾値以下)のぼけや滲み等が生じていたとしてもエッジを検出できるよう設定されることが望ましい。また、エッジで囲われた範囲が閉じた領域となっているか否かの判別についても、完全に閉じている必要はなく、直線にある程度(例えば予め設定された閾値以下)の欠落があっても構わないよう設定されることが望ましい。   Since edge detection in the symbol detection process is an edge detection method based on an existing technique, details thereof are omitted. Edge detection does not require strict edge detection, and may be set so that an edge can be detected even if the imaged symbol S has some degree of blurring or blurring (for example, below a preset threshold). desirable. Also, it is not necessary to determine whether or not the range surrounded by the edge is a closed region, and it is not necessary to completely close the region. It is desirable to set so that it does not matter.

次に、二値化処理について説明する。二値化処理は、輝度検出処理、セルサイズ検出処理、平均セルサイズ算出処理、二値化成否判定処理を含む。以下、順を追って説明する。   Next, the binarization process will be described. The binarization processing includes luminance detection processing, cell size detection processing, average cell size calculation processing, and binarization success / failure determination processing. In the following, description will be given in order.

輝度検出処理は、撮像されたシンボルSを所定の数の連続したピクセル(単位ピクセル)で区切り、単位ピクセル間の輝度の明暗の差(輝度差)に基づき輝度の明るい部分を白セル、輝度の暗い部分を黒セル、白セルとも黒セルとも判別できない部分をグレーゾーンとして判別し、白セル、黒セル及びグレーゾーンの配列パターンを得る処理である。白セル、黒セル及びグレーゾーンの判別は、輝度差が所定の閾値より大きいか否かに基づく。   In the luminance detection process, the captured symbol S is divided by a predetermined number of continuous pixels (unit pixels), and a bright portion is divided into white cells based on the luminance difference (luminance difference) between unit pixels. This is a process for determining a dark cell as a black cell, a region that cannot be determined as a white cell and a black cell as a gray zone, and obtaining an array pattern of white cells, black cells, and gray zones. The discrimination between the white cell, the black cell, and the gray zone is based on whether the luminance difference is larger than a predetermined threshold value.

図4に、撮像されたシンボルSの一例を示す。図4(a)はぼけや滲みがない又はほとんど生じていないシンボルS、図4(b)はぼけや滲みが生じているシンボルSである。
図5に、輝度検出処理によって検出された輝度分布の一例を示す。図5(a)は図4(a)に示すシンボルSの一部分の輝度分布、図5(b)は図4(b)に示すシンボルSの一部分の輝度分布である。
FIG. 4 shows an example of the imaged symbol S. FIG. 4A shows a symbol S with no blur or blur, and FIG. 4B shows a symbol S with blur or blur.
FIG. 5 shows an example of the luminance distribution detected by the luminance detection process. FIG. 5A shows the luminance distribution of a part of the symbol S shown in FIG. 4A, and FIG. 5B shows the luminance distribution of a part of the symbol S shown in FIG. 4B.

レンズ14bとシンボルSとの間の距離が好適な状態で撮像が行われると、図4(a)に示すように、ぼけや滲みがない又はほとんど生じていないシンボルSの撮像画像が得られる。この場合、輝度検出処理によって得られる輝度分布は、図5(a)に示すように、輝度差が大きく現れる部分が多くなり、その結果、白セル、黒セルの判定を行える部分が多くなる。即ち、グレーゾーンの割合が小さくなる。   When imaging is performed in a state in which the distance between the lens 14b and the symbol S is favorable, a captured image of the symbol S with no or almost no blur or blur is obtained as shown in FIG. In this case, as shown in FIG. 5A, the luminance distribution obtained by the luminance detection process has many portions where the luminance difference appears large, and as a result, there are many portions where white cells and black cells can be determined. That is, the gray zone ratio is reduced.

一方、レンズ14bとシンボルSとの間の距離が不適切な状態で撮像が行われると、図4(b)に示すように、ぼけや滲みが生じたシンボルSの撮像画像が得られる。この場合、輝度検出処理によって得られる輝度分布は、図5(b)に示すように、輝度差が明確に現れず、グレーゾーンの割合が大きくなる。   On the other hand, when imaging is performed with an inappropriate distance between the lens 14b and the symbol S, a captured image of the symbol S in which blurring or blurring has occurred is obtained as shown in FIG. 4B. In this case, in the luminance distribution obtained by the luminance detection process, as shown in FIG. 5B, the luminance difference does not appear clearly, and the ratio of the gray zone increases.

セルサイズ検出処理は、白セル又は黒セルとして判定された部分の連続するピクセル数(セルサイズ)を検出する処理である。各セルサイズはRAM13に格納される。
平均セルサイズ算出処理は、セルサイズ検出処理で検出された白セル及び黒セルのセルサイズの平均を算出する。平均セルサイズはRAM13に格納される。
The cell size detection process is a process for detecting the number of continuous pixels (cell size) of a portion determined as a white cell or a black cell. Each cell size is stored in the RAM 13.
The average cell size calculation process calculates the average of the cell sizes of the white cell and the black cell detected by the cell size detection process. The average cell size is stored in the RAM 13.

二値化成否判定処理は、シンボルSとして検出された全範囲に対するグレーゾーンの割合が所定の割合以下であるか否かに基づき、二値化処理の成否を判定する処理である。本実施形態では、グレーゾーンの割合が20%以下の場合に二値化成功、20%を上回った場合に二値化失敗と判定する。
二値化成功した場合、デコード処理を行う。二値化失敗した場合、トリガー15aがONである限り再度撮像画像を得てシンボルSの解析を行う。
The binarization success / failure determination process is a process of determining the success / failure of the binarization process based on whether or not the ratio of the gray zone with respect to the entire range detected as the symbol S is equal to or less than a predetermined ratio. In the present embodiment, it is determined that the binarization is successful when the gray zone ratio is 20% or less, and the binarization failure is determined when it exceeds 20%.
When binarization is successful, decode processing is performed. When binarization fails, as long as the trigger 15a is ON, a captured image is obtained again and the symbol S is analyzed.

次に、デコード処理について説明する。
デコード処理は、所定のルールに基づいてシンボルSに含まれる白セル及び黒セルの配列パターンを解析し、文字列を読み出す処理である。
Next, the decoding process will be described.
The decoding process is a process of analyzing a white cell and black cell arrangement pattern included in the symbol S based on a predetermined rule and reading a character string.

デコード処理に成功した場合、当該シンボルSの読取は終了する。デコード処理に失敗した場合、トリガー15aがONである限り再度撮像画像を得てシンボルSの解析を行う。   If the decoding process is successful, the reading of the symbol S ends. If the decoding process fails, the captured image is obtained again and the symbol S is analyzed as long as the trigger 15a is ON.

二値化失敗時又はデコード失敗時、CPU11は再度撮像画像を得る前にデコード枠範囲決定処理を行う。デコード枠範囲決定処理は、枠21内の範囲を縮小するよう枠21の表示位置を変更する処理である。   At the time of binarization failure or decoding failure, the CPU 11 performs a decoding frame range determination process before obtaining a captured image again. The decode frame range determination process is a process of changing the display position of the frame 21 so as to reduce the range within the frame 21.

図6に、枠21の縮小前後のプレビュー画面の一例を示す。図6(a)は枠21の縮小前、図6(b)は枠21の縮小後である。
二値化失敗又はデコード失敗の場合、例えば図4(b)及び図6(a)に示すように、シンボルSの撮像画像にぼけや滲みが生じていることが多い。このため、二値化処理においてグレーゾーンの割合が大きくなり二値化失敗となる。あるいは二値化成功しても白セル、黒セルの間に含まれるグレーゾーン部分によりデコード処理が妨げられてデコード処理が失敗する。
FIG. 6 shows an example of a preview screen before and after the frame 21 is reduced. 6A is before the frame 21 is reduced, and FIG. 6B is after the frame 21 is reduced.
In the case of binarization failure or decoding failure, for example, as shown in FIGS. 4B and 6A, the captured image of the symbol S is often blurred or blurred. For this reason, in the binarization process, the ratio of the gray zone becomes large and binarization fails. Alternatively, even if the binarization is successful, the decoding process is hindered by the gray zone portion included between the white cell and the black cell, and the decoding process fails.

シンボルSの撮像画像におけるぼけや滲みは、レンズ14bとシンボルSとの間の距離が不適切であることが原因で生じることが多い。特に、レンズ14bとシンボルSとの間の距離が近すぎる場合にぼけや滲みが生じやすい。レンズ14bとシンボルSとの間の距離が近すぎると、好適な二値化処理及びデコード処理を行える場合のシンボルSの撮像画像に比して大きなシンボルSの撮像画像が得られる。言い換えれば、シンボルSの撮像画像にぼけや滲みが生じる場合、シンボルSの撮像画像は必要以上に大きく撮像されている。そこで、シンボルSの撮像画像が必要以上に大きく撮像されている場合、デコード枠範囲決定処理により枠21を縮小し、枠内にシンボルSを収めて撮像しようとする使用者にシンボルSを好適な大きさで撮像するよう促す。   The blur and blur in the captured image of the symbol S often occur due to an inappropriate distance between the lens 14b and the symbol S. In particular, when the distance between the lens 14b and the symbol S is too close, blurring or blurring is likely to occur. If the distance between the lens 14b and the symbol S is too short, a captured image of the symbol S larger than the captured image of the symbol S when a suitable binarization process and decoding process can be performed is obtained. In other words, when the captured image of the symbol S is blurred or blurred, the captured image of the symbol S is captured larger than necessary. Therefore, when the captured image of the symbol S is captured larger than necessary, the frame 21 is reduced by the decoding frame range determination process, and the symbol S is suitable for the user who wants to capture the symbol S within the frame. Encourage them to take a picture in size.

デコード枠範囲決定処理は、CPU11がデコード範囲枠決定プログラム12cを読み込んで処理することにより行われる。以下、デコード枠範囲決定処理の詳細について説明する。
まず、CPU11は平均セルサイズの呼び出しを行う。平均セルサイズは、二値化処理の平均セルサイズ算出処理において算出された平均セルサイズである。次に、CPU11は平均セルサイズが所定のセルサイズ(例えば3ピクセル)より大きいか否か判定する。このとき、平均セルサイズが3ピクセルより大きい場合、CPU11は枠21の幅(枠幅)のピクセルサイズを縮小する。枠幅の縮小は、X方向及びY方向の両方について行われる。
The decode frame range determination process is performed by the CPU 11 reading and processing the decode range frame determination program 12c. Details of the decoding frame range determination process will be described below.
First, the CPU 11 calls the average cell size. The average cell size is the average cell size calculated in the average cell size calculation process of the binarization process. Next, the CPU 11 determines whether or not the average cell size is larger than a predetermined cell size (for example, 3 pixels). At this time, if the average cell size is larger than 3 pixels, the CPU 11 reduces the pixel size of the width of the frame 21 (frame width). The frame width is reduced in both the X direction and the Y direction.

具体的には以下の式(1)により縮小後の枠幅を算出し、枠幅を縮小して表示装置16に再表示させる。

(1)… 現在の枠幅×3/平均セルサイズ
Specifically, the reduced frame width is calculated by the following formula (1), the frame width is reduced, and the display device 16 displays the frame width again.

(1) ... Current frame width x 3 / average cell size

(1)の式における現在の枠幅は、デコード枠範囲決定処理による枠幅の縮小が一回も行われていない場合、デコード範囲データのX1−X2間のピクセルサイズ及びY1−Y2間のピクセルサイズに基づく。デコード枠範囲決定処理による枠幅の縮小が一回以上行われた後は、前回の枠幅の縮小による枠幅に基づく。(1)の式で算出された枠幅は、RAM13に保存される。   The current frame width in the expression (1) is the pixel size between X1 and X2 and the pixel between Y1 and Y2 of the decoding range data when the frame width has not been reduced by the decoding frame range determination process. Based on size. After the frame width reduction by the decoding frame range determination process is performed one or more times, the frame width is based on the previous frame width reduction. The frame width calculated by the expression (1) is stored in the RAM 13.

(1)の式で算出した枠幅を、デコード範囲データ12dに反映してもよい。その場合、ROM12を書き換え可能な記憶装置とするか、別途書き換え可能な記憶装置をシンボル読取装置1に設け、デコード範囲データ12dを書き換え可能な記憶装置に記憶させる等の措置を要する。   The frame width calculated by the expression (1) may be reflected in the decoding range data 12d. In that case, it is necessary to take measures such as making the ROM 12 a rewritable storage device, or providing a separately rewritable storage device in the symbol reading device 1 and storing the decode range data 12d in the rewritable storage device.

平均セルサイズが3ピクセル以下である場合、枠幅を縮小する処理は行わず、デコード枠範囲決定処理を終了する。   If the average cell size is 3 pixels or less, the process of reducing the frame width is not performed, and the decoding frame range determination process is terminated.

なお、枠幅の縮小の際に、前述の式(1)における現在の枠幅を、シンボル検出処理においてシンボルSとして検出された範囲のX方向及びY方向の幅としてもよい。この場合、枠幅は、シンボルSを所定のセルサイズとなるよう撮像した場合の幅と等しくなる。その結果、枠21に収まるよう撮像されたシンボルSのセルサイズは、所定のセルサイズ(3ピクセル)以下となる。   Note that, when the frame width is reduced, the current frame width in the above-described equation (1) may be the width in the X direction and the Y direction of the range detected as the symbol S in the symbol detection process. In this case, the frame width is equal to the width when the symbol S is imaged to have a predetermined cell size. As a result, the cell size of the symbol S imaged so as to fit within the frame 21 is equal to or less than a predetermined cell size (3 pixels).

次に、シンボル読取装置1によるシンボルSの撮像から結果出力までの処理について、図7及至図9のフローチャートを用いて説明する。
図7は、シンボル読取装置1の動作を示すフローチャートである。
Next, processing from the imaging of the symbol S to the result output by the symbol reader 1 will be described with reference to the flowcharts of FIGS.
FIG. 7 is a flowchart showing the operation of the symbol reading apparatus 1.

使用者の操作によってトリガキー15aがONの状態となると(ステップS1)、CPU11はデコード範囲データ12dを読み込む(ステップS2)。その後、CPU11はカメラ14に被写体の撮像を行わせ(ステップS3)、撮像画像のデータをRAM13に保存し(ステップS4)、撮像画像のデータを表示装置16にプレビューとして表示させる(ステップS5)。   When the trigger key 15a is turned on by the user's operation (step S1), the CPU 11 reads the decode range data 12d (step S2). Thereafter, the CPU 11 causes the camera 14 to image the subject (step S3), stores the captured image data in the RAM 13 (step S4), and causes the display device 16 to display the captured image data as a preview (step S5).

CPU11は、枠21の表示位置を決定する(ステップS6)。シンボル読取装置1の起動直後の枠21の表示位置は、ステップS2で読み込まれたデコード範囲データに基づく。
その後、CPU11は表示装置16に表示されたプレビュー画面に枠21を表示させ、(ステップS7)。枠内の範囲即ちデコード範囲に対してシンボル検出処理を行う(ステップS8)。シンボル検出処理に失敗した場合(ステップS9:NO)、ステップS3に戻る。シンボル検出処理に成功した場合(ステップS9:YES)、CPU11は二値化処理を行う(ステップS10)。
The CPU 11 determines the display position of the frame 21 (step S6). The display position of the frame 21 immediately after the activation of the symbol reader 1 is based on the decoding range data read in step S2.
Thereafter, the CPU 11 displays the frame 21 on the preview screen displayed on the display device 16 (step S7). Symbol detection processing is performed on the range within the frame, that is, the decoding range (step S8). If the symbol detection process has failed (step S9: NO), the process returns to step S3. If the symbol detection process is successful (step S9: YES), the CPU 11 performs a binarization process (step S10).

図8は、図7のステップS10に示す二値化処理の動作を示すフローチャートである。
二値化処理において、CPU11はシンボルSとして検出された画像を走査し(ステップS21)、単位ピクセル間の輝度差をチェックする(ステップS22)。輝度差が所定の閾値より大きい場合(ステップS23:YES)、CPU11は輝度の変化が暗部から明部へと向けて明るくなっているか否かを判定する(ステップS24)。輝度の変化が暗部から明部へと向けて明るくなっている場合(ステップS24:YES)、CPU11は白セルを検出する(ステップS25)。ステップS24において輝度の変化が暗部から明部へと向けて明るくなっていない場合(ステップS24:NO)、即ち輝度の変化が明部から暗部へと向けて暗くなっている場合、CPU11は黒セルを検出する(ステップS26)。ステップS25及びステップS26の後、CPU11は検出された白セル又は黒セルのセルサイズを検出する(ステップS27)。ステップS23において、輝度差が所定の閾値以下である場合(ステップS23:NO)、その部分はグレーゾーンとして判定される(ステップS28)。ステップS21〜S28の処理は、シンボルSとして検出された画像の全範囲の走査が完了するまで行われる(ステップS29:NO)。
FIG. 8 is a flowchart showing the operation of the binarization process shown in step S10 of FIG.
In the binarization process, the CPU 11 scans the image detected as the symbol S (step S21) and checks the luminance difference between unit pixels (step S22). When the luminance difference is larger than the predetermined threshold (step S23: YES), the CPU 11 determines whether or not the luminance change is brighter from the dark part toward the bright part (step S24). When the change in luminance is brighter from the dark part toward the bright part (step S24: YES), the CPU 11 detects a white cell (step S25). If the change in luminance is not bright from the dark part to the bright part in step S24 (step S24: NO), that is, if the change in luminance is dark from the bright part to the dark part, the CPU 11 Is detected (step S26). After step S25 and step S26, the CPU 11 detects the cell size of the detected white cell or black cell (step S27). In step S23, when the luminance difference is equal to or smaller than a predetermined threshold (step S23: NO), the portion is determined as a gray zone (step S28). The processes in steps S21 to S28 are performed until the scanning of the entire range of the image detected as the symbol S is completed (step S29: NO).

シンボルSとして検出された画像の全範囲の走査が完了すると(ステップS29:YES)、CPU11は平均セル幅を算出する(ステップS30)。その後、CPU11は、シンボルSとして検出された画像の全範囲に対してグレーゾーンの割合が20%以下であるかどうか判定し(ステップS31)、20%以下である場合(ステップS31:YES)、二値化成功と判定する。20%より大きい場合(ステップS31:NO)、二値化失敗と判定する。以上で二値化処理は終了する。   When scanning of the entire range of the image detected as the symbol S is completed (step S29: YES), the CPU 11 calculates an average cell width (step S30). Thereafter, the CPU 11 determines whether the ratio of the gray zone is 20% or less with respect to the entire range of the image detected as the symbol S (step S31), and if it is 20% or less (step S31: YES), Judge that binarization was successful. When larger than 20% (step S31: NO), it is determined that the binarization has failed. This completes the binarization process.

二値化処理後、二値化に成功していた場合(ステップS11:YES)、CPU11はデコード処理を行う(ステップS12)。デコード処理に成功した場合(ステップS13:YES)、CPU11は得られた文字列を表示装置16に表示する等の結果出力を行い(ステップS14)、動作を終了する。   If the binarization is successful after the binarization process (step S11: YES), the CPU 11 performs a decoding process (step S12). If the decoding process is successful (step S13: YES), the CPU 11 outputs a result such as displaying the obtained character string on the display device 16 (step S14), and ends the operation.

二値化失敗の場合(ステップS11:NO)又はデコード処理に失敗した場合(ステップS13:NO)、CPU11はトリガキー15aがON状態であるか否かをチェックする(ステップS15)。トリガキー15aがOFFである場合(ステップS15:NO)、CPU11は所定のエラー処理を行い、動作を終了する。   If the binarization has failed (step S11: NO) or the decoding process has failed (step S13: NO), the CPU 11 checks whether the trigger key 15a is in the ON state (step S15). When the trigger key 15a is OFF (step S15: NO), the CPU 11 performs a predetermined error process and ends the operation.

ステップS15においてトリガキー15aがONである場合(ステップS15:YES)、CPU11はデコード範囲枠決定処理を行う(ステップS16)。   When the trigger key 15a is ON in step S15 (step S15: YES), the CPU 11 performs a decoding range frame determination process (step S16).

図9は、図7のステップS16に示すデコード範囲枠決定処理の動作を示すフローチャートである。
デコード範囲枠決定処理において、CPU11は、平均セルサイズの呼び出しを行い(ステップS41)。平均セルサイズが3ピクセルより大きいかどうか判定する(ステップS42)。平均セルサイズが3ピクセルより大きい場合(ステップS42:YES)、CPU11は現在の枠幅を呼び出し(ステップS43)、前述の(1)の式の算出結果により枠幅を縮小し(ステップS44)、デコード範囲枠決定処理を終了する。
ステップS42において、平均セルサイズが3ピクセル以下の場合(ステップS42:NO)、CPU11はデコード範囲枠決定処理を終了する。
FIG. 9 is a flowchart showing the operation of the decoding range frame determination process shown in step S16 of FIG.
In the decoding range frame determination process, the CPU 11 calls the average cell size (step S41). It is determined whether the average cell size is larger than 3 pixels (step S42). When the average cell size is larger than 3 pixels (step S42: YES), the CPU 11 calls the current frame width (step S43), reduces the frame width based on the calculation result of the above-described formula (1) (step S44), The decoding range frame determination process ends.
In step S42, when the average cell size is 3 pixels or less (step S42: NO), the CPU 11 ends the decoding range frame determination process.

ステップS16のデコード範囲枠決定処理後、ステップS3の処理に戻る。その後行われる処理は前述と同様であるが、ステップS16のデコード範囲枠決定処理で枠幅を縮小する処理を行っていた場合、ステップS6における枠21の表示位置決定処理は縮小された枠幅に基づく。   After the decoding range frame determination process in step S16, the process returns to step S3. The processing performed thereafter is the same as described above. However, when the processing for reducing the frame width is performed in the decoding range frame determination processing in step S16, the display position determination processing for the frame 21 in step S6 is performed with the reduced frame width. Based.

第1の実施形態によれば、平均セルサイズが所定のセルサイズより大きい場合、枠幅が縮小されるので、シンボルSが必要以上に大きくなりすぎる近距離での撮像を防止できる。即ち、枠幅が小さな枠21にシンボルSを収めて撮像しようとした場合、シンボルSの撮像画像にぼけや滲みが生じるほどシンボルSとカメラ14との距離を近接させることが困難となるので、使用者は適切なシンボルSとカメラ14との距離に誘導される。適切な距離で撮像されたシンボルSの撮像画像は、二値化及びデコードを好適に行うことができるので、シンボルSをより好適に読み取ることが可能なシンボル読取装置を提供することができる。   According to the first embodiment, when the average cell size is larger than the predetermined cell size, the frame width is reduced. Therefore, it is possible to prevent imaging at a short distance where the symbol S becomes excessively large. That is, when the symbol S is captured in the frame 21 having a small frame width, it becomes difficult to make the distance between the symbol S and the camera 14 so close that the captured image of the symbol S is blurred or blurred. The user is guided to the appropriate distance between the symbol S and the camera 14. Since the picked-up image of the symbol S picked up at an appropriate distance can be suitably binarized and decoded, a symbol reader capable of reading the symbol S more suitably can be provided.

さらに、枠幅の縮小の際に、前述の式(1)における現在の枠幅を、シンボル検出処理においてシンボルSとして検出された範囲のX方向及びY方向の幅とすることで、枠幅はシンボルSを所定のセルサイズとなるよう撮像した場合の幅と等しくなる。その結果、枠21に収まるよう撮像されたシンボルSのセルサイズは、所定のセルサイズ以下となるので、より確実に二値化及びデコードを好適に行うことができるシンボルSの撮像画像が得られる。   Further, when the frame width is reduced, the current frame width in the above-described equation (1) is set as the width in the X direction and the Y direction of the range detected as the symbol S in the symbol detection process. It is equal to the width when the symbol S is imaged so as to have a predetermined cell size. As a result, the cell size of the symbol S imaged so as to fit in the frame 21 is equal to or smaller than the predetermined cell size, and thus a captured image of the symbol S that can be favorably binarized and decoded more reliably is obtained. .

次に、第1の実施形態とは異なる実施形態である、本発明の第2の実施形態によるシンボル読取装置2について説明する。なお、第1の実施形態と同様の構成については同じ符号を付して説明を省略する。   Next, a symbol reading apparatus 2 according to a second embodiment of the present invention, which is an embodiment different from the first embodiment, will be described. In addition, about the structure similar to 1st Embodiment, the same code | symbol is attached | subjected and description is abbreviate | omitted.

図10に、本発明の第2の実施形態によるシンボル読取装置2の主要構成を示す。   FIG. 10 shows a main configuration of the symbol reading apparatus 2 according to the second embodiment of the present invention.

ROM12は、第1の実施形態のROM12が記憶する各プログラム及びデータに加え、少なくともぶれ検出プログラム12e、斜め撮像判定プログラム12fを記憶する。   The ROM 12 stores at least a shake detection program 12e and an oblique imaging determination program 12f in addition to the programs and data stored in the ROM 12 of the first embodiment.

ぶれ検出プログラム12eは、シンボルSの撮像画像に生じたぶれを検出し、ぶれが生じていることを示す表示を表示装置16に出力する。
例えば、カメラ14による撮像時、使用者が手ぶれ等を生じさせた場合、撮像画像は当該手振れによりぶれを生じた撮像画像となる。具体的には、ぶれが生じた場合、白セル、黒セル及びグレーゾーンの並びパターン即ち輝度差の変化パターンが同じ又は酷似した部分が複数存在する撮像画像が得られる。ぶれ検出プログラム12eは、そのような輝度差の変化パターンに基づき、ぶれを検出する。
The shake detection program 12e detects a shake that has occurred in the captured image of the symbol S and outputs a display indicating that the shake has occurred to the display device 16.
For example, when the user causes camera shake or the like during imaging by the camera 14, the captured image is a captured image in which camera shake has occurred due to the camera shake. Specifically, when blurring occurs, a captured image in which a plurality of portions having the same or very similar arrangement pattern of white cells, black cells, and gray zones, that is, a luminance difference change pattern, is obtained. The shake detection program 12e detects shake based on such a change pattern of the luminance difference.

図11に、ぶれが生じていることを示す表示を含む画面の一例を示す。
ぶれ検出プログラム12eは、ぶれを検出した場合、プレビュー画面に表示される枠21の右上にぶれが生じていることを示すマーク31を表示させる。
FIG. 11 shows an example of a screen including a display indicating that blurring has occurred.
When the shake detection program 12e detects a shake, the shake detection program 12e displays a mark 31 indicating that a shake has occurred in the upper right of the frame 21 displayed on the preview screen.

斜め撮像判定プログラム12fは、シンボルSの四辺の対向する二辺の長さの比率が所定の比率より大きい場合に、カメラ14による撮像がシンボルSに対して斜め方向から行われていると判別する。   The oblique imaging determination program 12f determines that imaging by the camera 14 is performed in an oblique direction with respect to the symbol S when the ratio of the lengths of the two opposite sides of the symbol S is greater than a predetermined ratio. .

例えば、被写体であるシンボルSを含む平面に対して、センサー15aの画像認識部が平行又はほぼ平行な状態ではなく斜めとなる状態で撮像された場合、シンボルSの四辺の対向する二辺について、一方の辺のカメラ14に対する焦点距離と、他方の辺のカメラ14に対する焦点距離とに差が生じることにより、一方の辺と他方の辺の長さは異なって撮像される。その結果、四方形のシンボルSは台形状に撮像される。
斜め撮像判別プログラム12fは、シンボルSの四辺の対向する二辺について、二辺の長さの比率が所定よりも大きい(例えば一方の辺の長さと他方の辺の長さの比率が2倍より大きい)場合、シンボルSに対して斜め方向から撮像が行われていると判定する。二辺の長さは、前述のシンボル検出処理におけるエッジ検出により、四つの角を結ぶ直線として認識された四辺のうち対向する二辺の長さを用いる。
For example, when the image recognition unit of the sensor 15a is imaged with respect to a plane including the symbol S, which is the subject, in an oblique state rather than in a parallel or substantially parallel state, two opposite sides of the four sides of the symbol S are Due to the difference between the focal length of one side with respect to the camera 14 and the focal length with respect to the camera 14 on the other side, the lengths of one side and the other side are imaged differently. As a result, the square symbol S is imaged in a trapezoidal shape.
The oblique imaging determination program 12f has a ratio of the lengths of two sides of two opposite sides of the symbol S larger than a predetermined value (for example, the ratio of the length of one side to the length of the other side is more than twice). Large), it is determined that the imaging is performed on the symbol S from an oblique direction. As the lengths of the two sides, the lengths of two opposite sides among the four sides recognized as straight lines connecting the four corners by the edge detection in the above-described symbol detection process are used.

図12に、斜め方向から撮像が行われていることを示す表示を含む画面の一例を示す。
斜め撮像判別プログラム12fは、斜め方向から撮像が行われていると判別した場合、プレビュー画面に表示される枠21の形状を図12のように台形状にして表示させる。
FIG. 12 shows an example of a screen including a display indicating that imaging is being performed from an oblique direction.
When the oblique imaging determination program 12f determines that imaging is being performed from an oblique direction, the oblique imaging determination program 12f displays the frame 21 displayed on the preview screen in a trapezoidal shape as shown in FIG.

長さを比較する二辺は、撮像画像におけるシンボルSの上下の辺でもよいし、左右の辺でもよい。上下及び左右についてそれぞれ比較してもよい。   The two sides whose lengths are compared may be the upper and lower sides of the symbol S in the captured image, or the left and right sides. You may compare about upper and lower sides, and right and left, respectively.

第2の実施形態によるシンボル解析プログラム12aは、第1の実施形態に記載した機能に加え、デコード枠範囲決定処理において枠幅を拡大する機能をCPU11に提供する。   In addition to the functions described in the first embodiment, the symbol analysis program 12a according to the second embodiment provides the CPU 11 with a function for expanding the frame width in the decoding frame range determination process.

図13に、枠21の拡大前後のプレビュー画面の一例を示す。図13(a)は枠21の拡大前、図13(b)は枠21の拡大後である。
レンズ14bとシンボルSとの間の距離が遠すぎると、図13(a)に示すように、好適な二値化処理及びデコード処理を行える場合のシンボルSの撮像画像に比して小さなシンボルSの撮像画像が得られる。小さく撮像されたシンボルSの撮像画像は、その一部又は全部につぶれ、ぼけ、滲み等を生じさせることがあり、二値化失敗やデコード失敗の原因となり得る。そこで、シンボルSの撮像画像が小さく撮像されている場合、デコード枠範囲決定処理により枠21を拡大し、使用者にシンボルSを好適な大きさで撮像するよう促す。
FIG. 13 shows an example of a preview screen before and after the frame 21 is enlarged. 13A is before the frame 21 is enlarged, and FIG. 13B is after the frame 21 is enlarged.
If the distance between the lens 14b and the symbol S is too long, as shown in FIG. 13A, the symbol S is smaller than the captured image of the symbol S when a suitable binarization process and decoding process can be performed. The captured image is obtained. The captured image of the symbol S that is captured in a small size may be partially or wholly crushed, blurred, or blurred, and may cause binarization failure or decoding failure. Therefore, when the captured image of the symbol S is captured small, the frame 21 is enlarged by the decoding frame range determination process, and the user is prompted to capture the symbol S in a suitable size.

具体的には、二値化処理における平均セルサイズの算出結果が枠幅拡大の基準となる所定のセルサイズ(例えば3ピクセル)より小さい場合、第1の実施形態における(1)の式と同様の式の算出結果に基づき、枠幅を拡大する。
第2の実施形態では、デコード枠範囲決定処理において、第1の実施形態と同様の枠幅の縮小も可能である。第2の実施形態では、枠幅拡大の基準となる所定のセルサイズ(例えば3ピクセル)と、枠幅縮小の基準となる所定のセルサイズ(例えば5ピクセル)は別個に設けられる。
Specifically, when the calculation result of the average cell size in the binarization process is smaller than a predetermined cell size (for example, 3 pixels) as a reference for the frame width expansion, the same as the expression (1) in the first embodiment The frame width is expanded based on the calculation result of
In the second embodiment, it is possible to reduce the frame width as in the first embodiment in the decoding frame range determination process. In the second embodiment, a predetermined cell size (for example, 3 pixels) as a reference for frame width expansion and a predetermined cell size (for example, 5 pixels) as a reference for frame width reduction are provided separately.

なお、枠幅の拡大の際に、前述の式(1)における現在の枠幅を、シンボル検出処理においてシンボルSとして検出された範囲のX方向及びY方向の幅としてもよい。この場合、枠幅は、シンボルSを所定のセルサイズとなるよう撮像した場合の幅と等しくなる。その結果、枠21に収まるよう撮像されたシンボルSのセルサイズは、所定のセルサイズ(3ピクセル)以下となる。   Note that when the frame width is expanded, the current frame width in the above equation (1) may be the width in the X direction and the Y direction of the range detected as the symbol S in the symbol detection process. In this case, the frame width is equal to the width when the symbol S is imaged to have a predetermined cell size. As a result, the cell size of the symbol S imaged so as to fit within the frame 21 is equal to or less than a predetermined cell size (3 pixels).

次に、シンボル読取装置2によるシンボルSの撮像から結果出力までの処理について、図14及至図16のフローチャートを用いて説明する。
図14は、シンボル読取装置2の動作を示すフローチャートである。図14に示すフローチャートは、図7に示すシンボル読取装置1のフローチャートのステップS6をステップS17に置き換えたフローチャートであり、他のステップについては図7及び前述の記載と同様である。
Next, processing from the imaging of the symbol S to the result output by the symbol reader 2 will be described with reference to the flowcharts of FIGS.
FIG. 14 is a flowchart showing the operation of the symbol reading device 2. The flowchart shown in FIG. 14 is a flowchart in which step S6 of the flowchart of the symbol reading apparatus 1 shown in FIG. 7 is replaced with step S17, and the other steps are the same as those in FIG. 7 and the above description.

シンボル読取装置2のCPU11は、ステップS5の処理後、枠の表示位置及び台形表示の有無、ぶれ表示の有無を決定する(ステップS17)。その後、CPU11はステップS51の決定内容に応じた枠を表示する(ステップS7)。   After the process of step S5, the CPU 11 of the symbol reading device 2 determines the frame display position, the presence or absence of trapezoidal display, and the presence or absence of blur display (step S17). Thereafter, the CPU 11 displays a frame corresponding to the determination content of step S51 (step S7).

図15は、図14のステップS16に示すデコード範囲枠決定処理の動作を示すフローチャートである。
シンボル読取装置2のCPU11は、デコード範囲枠決定処理において、ぶれの検出を行う(ステップS51)。ぶれが検出された場合(ステップS52:YES)、枠21の右上にぶれが生じていることを示すマーク31を追加表示する処理を行い(ステップS53)、デコード範囲枠決定処理を終了する。ぶれが検出されなかった場合(ステップS52:NO)、CPU11は斜めスキャン検出処理を行う(ステップS54)。
FIG. 15 is a flowchart showing the operation of the decoding range frame determination process shown in step S16 of FIG.
The CPU 11 of the symbol reading device 2 detects blurring in the decoding range frame determination process (step S51). When blurring is detected (step S52: YES), processing for additionally displaying the mark 31 indicating that blurring has occurred in the upper right of the frame 21 is performed (step S53), and the decoding range frame determination processing is terminated. If no blur is detected (step S52: NO), the CPU 11 performs an oblique scan detection process (step S54).

図16は、図15のステップS54に示す斜めスキャン検出処理の動作を示すフローチャートである。
斜めスキャン検出処理において、CPU11は、シンボルSの四方の辺のうち対向する二辺の長さを求め(ステップS71)、一方の辺の長さと他方の辺の長さの比率が2倍より大きいか否かをする(ステップS72)。一方の辺の長さと他方の辺の長さの比率が2倍より大きい場合(ステップS72:YES)、CPU11は斜め方向から撮像が行われている(斜めスキャン)と判定する。一方の辺の長さと他方の辺の長さの比率が2倍以下の場合(ステップS72:NO)、CPU11は通常スキャンと判定する。
FIG. 16 is a flowchart showing the operation of the oblique scan detection process shown in step S54 of FIG.
In the oblique scan detection process, the CPU 11 obtains the lengths of two opposite sides of the four sides of the symbol S (step S71), and the ratio of the length of one side to the length of the other side is greater than twice. (Step S72). When the ratio between the length of one side and the length of the other side is greater than twice (step S72: YES), the CPU 11 determines that imaging is being performed from an oblique direction (oblique scanning). When the ratio between the length of one side and the length of the other side is twice or less (step S72: NO), the CPU 11 determines that the scan is normal.

ステップS54の斜めスキャン検出処理後、斜めスキャンであると判定されている場合(ステップS55:YES)、CPU11は枠21を台形状にし(ステップS56)、デコード範囲枠決定処理を終了する。通常スキャンであると判定されている場合(ステップS55:NO)、CPU11は平均セルサイズを呼び出し(ステップS57)、平均セルサイズが3ピクセルより小さいかどうか判定する(ステップS58)。平均セルサイズが3ピクセルより小さい場合(ステップS58:YES)、CPU11は現在の枠幅を呼び出し(ステップS59)、枠幅を前述の(1)の式の算出結果による枠幅とする(ステップS60)。平均セルサイズが3ピクセル以上の場合(ステップS58:NO)、CPU11は平均セルサイズが5ピクセルより大きいかどうか判定する(ステップS61)。平均セルサイズが5ピクセルより大きい場合(ステップS61:YES)、ステップS59以降の処理を行う。平均セルサイズが5ピクセル以下の場合(ステップS61:NO)、デコード範囲枠決定処理を終了する。   If it is determined that the scan is an oblique scan after the oblique scan detection process in step S54 (step S55: YES), the CPU 11 makes the frame 21 trapezoidal (step S56) and ends the decode range frame determination process. If it is determined that the scan is normal scanning (step S55: NO), the CPU 11 calls the average cell size (step S57), and determines whether the average cell size is smaller than 3 pixels (step S58). When the average cell size is smaller than 3 pixels (step S58: YES), the CPU 11 calls the current frame width (step S59), and sets the frame width to the frame width based on the calculation result of the above-described formula (1) (step S60). ). When the average cell size is 3 pixels or more (step S58: NO), the CPU 11 determines whether the average cell size is larger than 5 pixels (step S61). When the average cell size is larger than 5 pixels (step S61: YES), the processing after step S59 is performed. If the average cell size is 5 pixels or less (step S61: NO), the decoding range frame determination process is terminated.

第2の実施形態によれば、第1の実施形態の効果に加え、平均セルサイズが所定のセルサイズより小さい場合、枠幅が拡大されるので、シンボルSが小さくなりすぎる遠距離での撮像を防止できる。即ち、枠幅を拡大することで、より大きなシンボルSの撮像画像を得られる操作即ち近距離での撮像を行うよう使用者に促すことができるので、使用者は適切なシンボルSとカメラ14との距離に誘導される。適切な距離で撮像されたシンボルSの撮像画像は、二値化及びデコードを好適に行うことができるので、シンボルSをより好適に読み取ることが可能なシンボル読取装置を提供することができる。   According to the second embodiment, in addition to the effects of the first embodiment, when the average cell size is smaller than the predetermined cell size, the frame width is enlarged, so that the imaging at a long distance is performed because the symbol S becomes too small. Can be prevented. That is, by enlarging the frame width, it is possible to prompt the user to perform an operation that can obtain a captured image of a larger symbol S, that is, to perform imaging at a short distance. Induced to the distance. Since the picked-up image of the symbol S picked up at an appropriate distance can be suitably binarized and decoded, a symbol reader capable of reading the symbol S more suitably can be provided.

さらに、枠幅の拡大の際に現在の枠幅をシンボル検出処理においてシンボルSとして検出された範囲のX方向及びY方向の幅とすることで、枠幅はシンボルSを所定のセルサイズとなるよう撮像した場合の幅と等しくなる。その結果、枠21に収まるよう撮像されたシンボルSのセルサイズは、所定のセルサイズ以下となるので、より確実に二値化及びデコードを好適に行うことができるシンボルSの撮像画像が得られる。   Furthermore, when the frame width is enlarged, the current frame width is set to the width in the X direction and the Y direction of the range detected as the symbol S in the symbol detection process, so that the frame width becomes the predetermined cell size of the symbol S. It becomes equal to the width when the image is taken. As a result, the cell size of the symbol S imaged so as to fit in the frame 21 is equal to or smaller than the predetermined cell size, and thus a captured image of the symbol S that can be favorably binarized and decoded more reliably is obtained. .

さらに、撮像画像にぶれを検出した場合、枠21の右上にぶれが生じていることを示すマーク31を表示させるので、ぶれにより好適なシンボルSの撮像及び読み込みができない場合の原因を使用者に明確に通知することができると共に、撮像時の手ぶれ等のぶれに対する注意を使用者に喚起することができる。   Further, when a shake is detected in the captured image, a mark 31 indicating that the shake has occurred is displayed on the upper right of the frame 21, so that the cause of the case where a suitable symbol S cannot be captured and read due to the shake is shown to the user. It is possible to notify clearly, and to alert the user to a shake such as a camera shake during imaging.

さらに、斜め方向から撮像が行われていると判別した場合、枠21の形状を台形状にして表示させるので、斜め方向からの撮像により好適なシンボルSの撮像及び読み込みができない場合の原因を使用者に明確に通知することができると共に、斜め方向から撮像が行われていることに対する注意を使用者に喚起することができる。   Further, when it is determined that imaging is performed from an oblique direction, the shape of the frame 21 is displayed in a trapezoidal shape. Therefore, the cause of the case where imaging and reading of the symbol S suitable for imaging from the oblique direction cannot be performed is used. The user can be clearly notified, and the user can be alerted to the fact that the image is being taken from an oblique direction.

なお、本実施の形態における記述は、本発明の一例を示すものであり、これに限定しない。
例えば、第1及び第2の実施形態に示したピクセル数、所定のセルサイズ、図5に示す輝度、二辺の比率その他の各数値は一例であり、他の数値を設定してもよい。
Note that the description in the present embodiment shows an example of the present invention, and the present invention is not limited to this.
For example, the number of pixels, the predetermined cell size, the luminance, the ratio of two sides, and other numerical values shown in the first and second embodiments are examples, and other numerical values may be set.

各実施形態で図示する被写体に含まれるシンボルSは二次元バーコードであるが、他のシンボルでもよい。例えば一次元のバーコード等でもよい。   The symbol S included in the subject illustrated in each embodiment is a two-dimensional barcode, but other symbols may be used. For example, a one-dimensional barcode may be used.

ぶれの表示や斜めスキャンの表示は他の方法によってもよい。例えば、シンボル読取装置に通知のためのLED等を儲け、ぶれの検出や斜めスキャン判定に基づきLEDを発光又は点滅させるようにしてもよいし、デコード範囲枠決定処理の内容に応じて異なる色で発光させるようにしてもよい。また、音声による通知でもよい。   The blur display and the oblique scan display may be performed by other methods. For example, an LED or the like for notification may be provided to the symbol reading device, and the LED may be caused to emit light or blink based on blur detection or oblique scan determination, or in different colors depending on the content of the decoding range frame determination process. You may make it light-emit. Also, notification by voice may be used.

ぶれの検出は撮像画像に基づくソフトウェア処理によって行っているが、専用のハードウェアを用いてもよい。同様に、シンボル読取装置の機能のうち、ソフトウェア処理で行われている各構成は、各機能に専用の構成を設けてもよい。   Although blur detection is performed by software processing based on the captured image, dedicated hardware may be used. Similarly, among the functions of the symbol reading apparatus, each configuration performed by software processing may be provided with a dedicated configuration for each function.

本発明の第1の実施形態によるシンボル読取装置の主要構成を示す。1 shows a main configuration of a symbol reading apparatus according to a first embodiment of the present invention. プレビュー画面の一例を示す。An example of a preview screen is shown. シンボル検出処理の概念図を示す。A conceptual diagram of symbol detection processing is shown. 撮像されたシンボルの一例を示す。図4(a)はぼけや滲みがない又はほとんど生じていないシンボル、図4(b)はぼけや滲みが生じているシンボルである。An example of the imaged symbol is shown. FIG. 4A shows a symbol with no blur or blur, and FIG. 4B shows a symbol with blur or blur. 輝度検出処理によって検出された輝度分布の一例を示す。図5(a)は図4(a)に示すシンボルの一部分の輝度分布、図5(b)は図4(b)に示すシンボルの一部分の輝度分布である。An example of the luminance distribution detected by the luminance detection process is shown. FIG. 5A shows the luminance distribution of a part of the symbol shown in FIG. 4A, and FIG. 5B shows the luminance distribution of a part of the symbol shown in FIG. 4B. 枠の縮小前後のプレビュー画面の一例を示す。図6(a)は枠の縮小前、図6(b)は枠の縮小後である。An example of a preview screen before and after frame reduction is shown. FIG. 6A is before the frame is reduced, and FIG. 6B is after the frame is reduced. シンボル読取装置の動作を示すフローチャートである。It is a flowchart which shows operation | movement of a symbol reader. 図7のステップS10に示す二値化処理の動作を示すフローチャートである。It is a flowchart which shows the operation | movement of the binarization process shown to step S10 of FIG. 図7のステップS16に示すデコード範囲枠決定処理の動作を示すフローチャートである。It is a flowchart which shows the operation | movement of the decoding range frame determination process shown to FIG.7 S16. 本発明の第2の実施形態によるシンボル読取装置の主要構成を示す。The main structure of the symbol reader by the 2nd Embodiment of this invention is shown. ぶれが生じていることを示す表示を含む画面の一例を示す。An example of the screen containing the display which shows that the blurring has arisen is shown. 斜め方向から撮像が行われていることを示す表示を含む画面の一例を示す。An example of the screen containing the display which shows that the imaging is performed from the diagonal direction is shown. 枠の拡大前後のプレビュー画面の一例を示す。図13(a)は枠の拡大前、図13(b)は枠の拡大後である。An example of a preview screen before and after enlarging a frame is shown. FIG. 13A is before the frame is enlarged, and FIG. 13B is after the frame is enlarged. シンボル読取装置2の動作を示すフローチャートである。4 is a flowchart showing an operation of the symbol reading device 2. 図14のステップS16に示すデコード範囲枠決定処理の動作を示すフローチャートである。It is a flowchart which shows the operation | movement of the decoding range frame determination process shown to step S16 of FIG. 図15のステップS54に示す斜めスキャン検出処理の動作を示すフローチャートである。16 is a flowchart showing an operation of an oblique scan detection process shown in step S54 of FIG.

符号の説明Explanation of symbols

11 CPU
12 ROM
13 RAM
14 カメラ
15 入力装置
16 表示装置
21 枠
S シンボル
11 CPU
12 ROM
13 RAM
14 Camera 15 Input Device 16 Display Device 21 Frame S Symbol

Claims (7)

被写体を撮像する撮像手段と、
前記撮像手段による撮像画像を表示する表示手段と、
前記撮像画像のうち所定の範囲をシンボル読取領域として設定し、当該所定の範囲内からシンボルを読み取る読取手段と、
前記所定の範囲を示す枠を前記表示手段に表示する枠表示手段と、
読み取ったシンボルを構成するセル幅が所定のセル幅より大きい場合、前記枠内に含まれる範囲を小さくするよう前記枠を表示させる第1の表示制御手段と、
を備えることを特徴とするシンボル読取装置。
Imaging means for imaging a subject;
Display means for displaying an image captured by the imaging means;
A reading unit that sets a predetermined range of the captured image as a symbol reading region and reads a symbol from the predetermined range;
Frame display means for displaying a frame indicating the predetermined range on the display means;
First display control means for displaying the frame so as to reduce a range included in the frame when a cell width constituting the read symbol is larger than a predetermined cell width;
A symbol reading apparatus comprising:
被写体を撮像する撮像手段と、
前記撮像手段による撮像画像を表示する表示手段と、
前記撮像画像のうち所定の範囲をシンボル読取領域として設定し、当該所定の範囲内からシンボルを読み取る読取手段と、
前記所定の範囲を示す枠を前記表示手段に表示する枠表示手段と、
読み取ったシンボルを構成するセル幅が所定のセル幅より小さい場合、前記枠内に含まれる範囲を大きくするよう前記枠を表示させる第2の表示制御手段と、
を備えることを特徴とするシンボル読取装置。
Imaging means for imaging a subject;
Display means for displaying an image captured by the imaging means;
A reading unit that sets a predetermined range of the captured image as a symbol reading region and reads a symbol from the predetermined range;
Frame display means for displaying a frame indicating the predetermined range on the display means;
A second display control means for displaying the frame so as to enlarge a range included in the frame when a cell width constituting the read symbol is smaller than a predetermined cell width;
A symbol reading apparatus comprising:
前記枠内に収まるよう撮像されたシンボルのセル幅が前記所定のセル幅以下となる前記枠を表示させる第3の表示制御手段を備えることを特徴とする請求項1又は2に記載のシンボル読取装置。   3. The symbol reading according to claim 1, further comprising: a third display control unit configured to display the frame in which a cell width of a symbol imaged so as to be within the frame is equal to or less than the predetermined cell width. apparatus. 前記撮像画像にぶれが生じていることを検出するぶれ検出手段と、
前記撮像画像にぶれが生じている場合、ぶれが生じていることを示す表示を通知するぶれ通知手段と、
を備えることを特徴とする請求項1から3のいずれか一項に記載のシンボル読取装置。
A shake detection means for detecting the occurrence of shake in the captured image;
A blur notification means for notifying a display indicating that a blur has occurred when the captured image has a blur;
4. The symbol reading apparatus according to claim 1, further comprising:
前記シンボルの四辺の対向する二辺の長さの比率が所定の比率より大きい場合に、前記撮像手段による撮像が前記被写体に対して斜め方向から行われていると判定する斜め撮像判定手段と、
前記撮像手段による撮像が前記被写体に対して斜め方向から行われていると判定された場合、斜め方向からの撮像が行われていることを通知する斜め撮像通知手段を備えることを特徴とする請求項1から4のいずれか一項に記載のシンボル読取装置。
An oblique imaging determination unit that determines that imaging by the imaging unit is performed in an oblique direction with respect to the subject when a ratio of lengths of two opposite sides of the four sides of the symbol is greater than a predetermined ratio;
An oblique imaging notification means for notifying that imaging from an oblique direction is performed when it is determined that imaging by the imaging means is performed from an oblique direction with respect to the subject. Item 5. The symbol reading device according to any one of Items 1 to 4.
コンピュータを、
撮像手段による被写体の撮像を制御する撮像制御手段、
前記撮像手段による撮像画像を表示手段へ表示する表示制御手段、
前記撮像画像のうち所定の範囲をシンボル読取領域として設定し、当該所定の範囲内からシンボルを読み取る読取手段、
前記所定の範囲を示す枠を前記表示手段に表示する枠表示手段、
読み取ったシンボルを構成するセル幅が所定のセル幅より大きい場合、前記枠内に含まれる範囲を小さくするよう前記枠を表示させる第1の表示制御手段、
として機能させるためのプログラム。
Computer
Imaging control means for controlling imaging of a subject by the imaging means;
Display control means for displaying an image captured by the imaging means on a display means;
A reading unit that sets a predetermined range of the captured image as a symbol reading region and reads a symbol from the predetermined range;
Frame display means for displaying a frame indicating the predetermined range on the display means;
First display control means for displaying the frame so as to reduce a range included in the frame when a cell width constituting the read symbol is larger than a predetermined cell width;
Program to function as.
コンピュータを、
撮像手段による被写体の撮像を制御する撮像制御手段、
前記撮像手段による撮像画像を表示手段へ表示する表示制御手段、
前記撮像画像のうち所定の範囲をシンボル読取領域として設定し、当該所定の範囲内からシンボルを読み取る読取手段、
前記所定の範囲を示す枠を前記表示手段に表示する枠表示手段、
読み取ったシンボルを構成するセル幅が所定のセル幅より小さい場合、前記枠内に含まれる範囲を大きくするよう前記枠を表示させる第2の表示制御手段、
として機能させるためのプログラム。
Computer
Imaging control means for controlling imaging of a subject by the imaging means;
Display control means for displaying an image captured by the imaging means on a display means;
A reading unit that sets a predetermined range of the captured image as a symbol reading region and reads a symbol from the predetermined range;
Frame display means for displaying a frame indicating the predetermined range on the display means;
A second display control means for displaying the frame so as to enlarge a range included in the frame when a cell width constituting the read symbol is smaller than a predetermined cell width;
Program to function as.
JP2008260660A 2008-10-07 2008-10-07 Symbol reader and program Active JP5217872B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2008260660A JP5217872B2 (en) 2008-10-07 2008-10-07 Symbol reader and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2008260660A JP5217872B2 (en) 2008-10-07 2008-10-07 Symbol reader and program

Related Child Applications (1)

Application Number Title Priority Date Filing Date
JP2013034088A Division JP5482925B2 (en) 2013-02-25 2013-02-25 Image capturing apparatus and program

Publications (2)

Publication Number Publication Date
JP2010092211A true JP2010092211A (en) 2010-04-22
JP5217872B2 JP5217872B2 (en) 2013-06-19

Family

ID=42254868

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2008260660A Active JP5217872B2 (en) 2008-10-07 2008-10-07 Symbol reader and program

Country Status (1)

Country Link
JP (1) JP5217872B2 (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012053693A (en) * 2010-09-01 2012-03-15 Toshiba Tec Corp Code reader and program
JP2013045149A (en) * 2011-08-22 2013-03-04 Denso Wave Inc Information code reader
US8857718B2 (en) 2012-07-20 2014-10-14 Casio Computer Co., Ltd Information terminal and computer readable medium
JP2015520895A (en) * 2012-05-07 2015-07-23 ハン ヤン チョ Product authentication label, authentication code generation method for the label, authentication method and system for the label, portable terminal for authenticating the label, and computer-readable recording medium for authentication of the label
JP2016157059A (en) * 2015-02-26 2016-09-01 コニカミノルタ株式会社 Image inspection device and image forming apparatus

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006344066A (en) * 2005-06-09 2006-12-21 Sharp Corp Figure code reading device
JP2007122229A (en) * 2005-10-26 2007-05-17 Casio Comput Co Ltd Code reader and program

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006344066A (en) * 2005-06-09 2006-12-21 Sharp Corp Figure code reading device
JP2007122229A (en) * 2005-10-26 2007-05-17 Casio Comput Co Ltd Code reader and program

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012053693A (en) * 2010-09-01 2012-03-15 Toshiba Tec Corp Code reader and program
JP2013045149A (en) * 2011-08-22 2013-03-04 Denso Wave Inc Information code reader
JP2015520895A (en) * 2012-05-07 2015-07-23 ハン ヤン チョ Product authentication label, authentication code generation method for the label, authentication method and system for the label, portable terminal for authenticating the label, and computer-readable recording medium for authentication of the label
JP2018142320A (en) * 2012-05-07 2018-09-13 ハン ヤン チョ Product authentication label, method of generating authentication code for the above label, method and system of authenticating the above label, portable terminal for authenticating the label, computer readable recording medium for use in authentication of the label
US8857718B2 (en) 2012-07-20 2014-10-14 Casio Computer Co., Ltd Information terminal and computer readable medium
JP2016157059A (en) * 2015-02-26 2016-09-01 コニカミノルタ株式会社 Image inspection device and image forming apparatus

Also Published As

Publication number Publication date
JP5217872B2 (en) 2013-06-19

Similar Documents

Publication Publication Date Title
JP4670657B2 (en) Image processing apparatus, image processing method, and program
CN101911094B (en) Image capture device with integrated barcode scanning
CN101911095B (en) Barcode detection based on morphological operations
KR101353110B1 (en) Projection image area detecting device, projection image area detecting system, and projection image area detecting method
US9071749B2 (en) Camera apparatus and method of recognizing an object by using a camera
US20080073434A1 (en) System and method for an image decoder with feedback
US9060129B2 (en) Imaging device, control method of imaging device, and computer program
WO2013108727A1 (en) Image-capturing device, captured image processing system, program, and recording medium
JP5217872B2 (en) Symbol reader and program
JP4412214B2 (en) Pattern recognition apparatus, pattern recognition method, and electronic apparatus having the pattern recognition apparatus
US20080063273A1 (en) Character extracting apparatus, method, and program
JP2012027687A (en) Image processing apparatus and program
JP2005173646A (en) Code-kind discrimination method and code border detecting method
JP6426815B2 (en) Image processing apparatus and image processing method
JP2008283649A (en) Image processing method, image region detecting method, image processing program, image region detection program, image processing apparatus, and image region detecting apparatus
US20130076854A1 (en) Image processing apparatus, image processing method, and computer readable medium
US8139861B2 (en) Character extracting apparatus, method, and program
JP2009016941A (en) Imaging apparatus
JP5482925B2 (en) Image capturing apparatus and program
JP4335229B2 (en) QR code recognition device, QR code recognition device control method, QR code recognition device control program, and computer-readable recording medium recording the same
JP4103909B2 (en) Portable information terminal and image processing method
JP2006318151A (en) Digital image display device and digital image display method
JP6172973B2 (en) Image processing device
JP2009027223A (en) Image display device, image display method, and program
CN112997217A (en) Document detection from video images

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20110916

RD02 Notification of acceptance of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7422

Effective date: 20110916

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20130128

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20130218

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

Free format text: PAYMENT UNTIL: 20160315

Year of fee payment: 3

R150 Certificate of patent or registration of utility model

Ref document number: 5217872

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

Free format text: JAPANESE INTERMEDIATE CODE: R150