JP5012133B2 - Bar code reader and program - Google Patents

Bar code reader and program Download PDF

Info

Publication number
JP5012133B2
JP5012133B2 JP2007082515A JP2007082515A JP5012133B2 JP 5012133 B2 JP5012133 B2 JP 5012133B2 JP 2007082515 A JP2007082515 A JP 2007082515A JP 2007082515 A JP2007082515 A JP 2007082515A JP 5012133 B2 JP5012133 B2 JP 5012133B2
Authority
JP
Japan
Prior art keywords
barcode
reading
image data
bar
correction
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.)
Expired - Fee Related
Application number
JP2007082515A
Other languages
Japanese (ja)
Other versions
JP2008242828A (en
JP2008242828A5 (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.)
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 JP2007082515A priority Critical patent/JP5012133B2/en
Priority to EP09008776.8A priority patent/EP2101281B1/en
Priority to DE602008006482T priority patent/DE602008006482D1/en
Priority to EP08004739A priority patent/EP1975849B1/en
Priority to US12/079,148 priority patent/US7832642B2/en
Publication of JP2008242828A publication Critical patent/JP2008242828A/en
Publication of JP2008242828A5 publication Critical patent/JP2008242828A5/ja
Application granted granted Critical
Publication of JP5012133B2 publication Critical patent/JP5012133B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Description

本発明は、バーコード読取装置及びプログラムに関する。   The present invention relates to a barcode reader and a program.

印刷品質が粗悪であったり、一部が破損したりしているなど、欠陥を有するバーコード(図21参照)を、レーザ光等を光源とする一次元スキャナで読み取る場合、光が照射される位置によっては、正確に読み取ることができず、デコードすることができないことがある。しかし、実際の読取動作はユーザがスキャナを手に持った状態で行われるため、読取中のユーザの手の動きによって、バーコード面上の様々な位置が読み取られている。このため、図21に示すような欠陥を有するバーコードの場合、図22に示すように、ユーザの手の動きによって光の照射位置(照射ライン)が異なる複数回の読取でそれぞれ得られたイメージデータをメモリに記憶しておき、それぞれのイメージデータを重ね合わせるなどの合成処理によって正しいイメージデータとして再生し、デコードする処理が行われている(例えば、特許文献1参照)。
特開平7−57035号公報
Light is emitted when a bar code (see FIG. 21) having defects such as poor print quality or partly damaged is read by a one-dimensional scanner using laser light or the like as a light source. Depending on the position, it cannot be read accurately and cannot be decoded. However, since the actual reading operation is performed with the user holding the scanner in his / her hand, various positions on the barcode surface are read by the movement of the user's hand during reading. For this reason, in the case of a barcode having a defect as shown in FIG. 21, as shown in FIG. 22, the images respectively obtained by multiple readings in which the light irradiation position (irradiation line) differs depending on the movement of the user's hand. Data is stored in a memory, and a process of reproducing and decoding as correct image data by a synthesis process such as superimposing the respective image data is performed (for example, see Patent Document 1).
Japanese Unexamined Patent Publication No. 7-57035

しかしながら、上述のように、バーコードの読取動作は、ユーザがスキャナを手に持った状態で行われているため、ユーザの手の動きに起因して、読取中の光の照射位置が、図22に示すように上下方向へ移動するだけでなく、バーの配列方向へ移動したり、当該配列方向に対して傾斜したりするなど、様々に変化する。よって、複数回の読取で得られたイメージデータをそのまま合成しても、正確な読取結果を得ることができないという問題がある。   However, as described above, since the barcode reading operation is performed with the user holding the scanner in his / her hand, the irradiation position of the light being read is caused by the movement of the user's hand. In addition to moving up and down as shown in FIG. 22, it changes in various ways, such as moving in the bar arrangement direction or tilting with respect to the arrangement direction. Therefore, there is a problem in that an accurate reading result cannot be obtained even if image data obtained by a plurality of readings are synthesized as they are.

本発明の課題は、バーコードイメージデータを合成する前に、読取手段の移動状態に基づいて、取得した各バーコードイメージデータを補正することにより、正確な合成処理を可能とすることである。 An object of the present invention is to enable accurate combining processing by correcting each acquired barcode image data based on the moving state of the reading unit before combining the barcode image data .

請求項1に記載のバーコード読取装置は、バーコードを複数回読み取り、複数のバーコードイメージデータを取得する読取手段と、前記読取手段により取得されたバーコードイメージデータを記憶する記憶手段と、前記バーコードの読取動作中における前記読取手段の3次元空間での複数の移動状態を検出する検出手段と、前記検出手段により検出された3次元空間での複数の移動状態に基づいて、各々の移動状態に対応する補正処理を夫々行うことにより、前記取得された各バーコードイメージデータにおけるバー幅を補正処理毎に補正する補正手段と、前記補正手段により補正された各バーコードイメージデータを合成して合成イメージデータを生成する合成手段と、前記合成手段により生成された合成イメージデータをデコードするデコード手段と、を備える。 The barcode reading apparatus according to claim 1, a reading unit that reads a barcode a plurality of times and acquires a plurality of barcode image data, and a storage unit that stores the barcode image data acquired by the reading unit; detection means for detecting a plurality of moving state of the three-dimensional space of said reading means during the reading operation of the bar code, based on a plurality of moving state of the three-dimensional space detected by said detecting means, each of A correction unit that corrects the bar width in each acquired barcode image data for each correction process by performing correction processing corresponding to the moving state, and each barcode image data corrected by the correction unit are combined. Combining means for generating composite image data, and a decoder for decoding the composite image data generated by the combining means. It includes an over de means.

請求項2に記載の発明は、請求項1に記載のバーコード読取装置において、前記検出手段は、ジャイロセンサを用いて前記移動状態を検出し、前記ジャイロセンサは、前記読取手段の加速度を検出する加速度センサと、前記読取手段の移動によって生じる当該読取手段の傾きを検出する傾きセンサと、を有する。 According to a second aspect of the present invention, in the barcode reading apparatus according to the first aspect, the detection unit detects the moving state using a gyro sensor, and the gyro sensor detects an acceleration of the reading unit. And an inclination sensor for detecting the inclination of the reading means caused by the movement of the reading means .

請求項3に記載の発明は、請求項1又は2に記載のバーコード読取装置において、前記検出手段は、前記読取手段が前記バーコードに近づくように移動した移動状態あるいは前記読取手段が前記バーコードから遠ざかるように移動した移動状態のいずれかを検出し、前記補正手段は、前記読取手段が前記バーコードに近づくように移動した場合は、前記読取手段の移動距離に応じてバー幅が細くなるように前記バーコードイメージデータを補正し、前記読取手段が前記バーコード面から遠ざかるように移動した場合は、前記読取手段の移動距離に応じてバー幅が太くなるように前記バーコードイメージデータを補正する。
請求項4に記載の発明は、請求項1乃至3のいずれかに記載のバーコード読取装置において、前記検出手段は、前記読取手段が前記バーコードに対して傾斜して光を照射した移動状態を検出し、前記補正手段は、前記読取手段が前記バーコードに対して傾斜して光を照射した場合は、前記読取手段の傾斜角に応じてバーコードイメージデータのバー幅を補正する。
請求項5に記載の発明は、請求項1乃至4のいずれかに記載のバーコード読取装置において、前記検出手段は、前記読取手段が前記バーコードに対してバー配列方向に移動した移動状態を検出し、前記補正手段は、前記読取手段が前記バーコードに対してバー配列方向に移動した場合は、前記読取手段の移動距離に応じてバーコードイメージデータのスタートマージンの幅を補正する。
請求項6に記載の発明は、請求項1乃至5のいずれかに記載のバーコード読取装置において、前記検出手段は、前記読取手段が前記バーコードのバー配列方向に対して傾斜して光を照射した移動状態を検出し、前記補正手段は、前記読取手段が前記バーコードのバー配列方向に対して傾斜して光を照射した場合は、前記読取手段の前記バー配列方向に対する傾斜角に応じてバーコードイメージデータのバー幅を補正する。
請求項7に記載の発明は、コンピュータを、バーコードを読取手段により複数回読み取り、複数のバーコードイメージデータを取得する手段、前記取得されたバーコードイメージデータを記憶手段に記憶させる手段、前記バーコードの読取動作中における前記読取手段の3次元空間での複数の移動状態を検出する手段、前記検出された3次元空間での複数の移動状態に基づいて、各々の移動状態に対応する補正処理を夫々行うことにより、前記取得された各バーコードイメージデータにおけるバー幅を補正処理毎に補正する手段、前記補正された各バーコードイメージデータを合成して合成イメージデータを生成する手段、前記生成された合成イメージデータをデコードする手段、として機能させるためのプログラムである。
According to a third aspect of the present invention, in the barcode reading apparatus according to the first or second aspect, the detection unit is a moving state in which the reading unit is moved closer to the barcode or the reading unit is the bar code. Any of the movement states moved away from the code is detected, and when the reading means moves closer to the barcode, the correction means narrows the bar width according to the moving distance of the reading means. When the barcode image data is corrected so that the reading means moves away from the barcode surface, the barcode image data is set so that the bar width increases according to the moving distance of the reading means. Correct.
According to a fourth aspect of the present invention, in the barcode reader according to any one of the first to third aspects, the detection unit is a moving state in which the reading unit is inclined with respect to the barcode and irradiated with light. The correction means corrects the bar width of the barcode image data according to the inclination angle of the reading means when the reading means is inclined with respect to the barcode and irradiated with light.
According to a fifth aspect of the present invention, in the barcode reading apparatus according to any one of the first to fourth aspects, the detection means has a movement state in which the reading means moves in the bar arrangement direction with respect to the barcode. When the reading means moves in the bar array direction with respect to the barcode, the correction means corrects the width of the start margin of the barcode image data according to the moving distance of the reading means.
According to a sixth aspect of the present invention, in the barcode reading apparatus according to any one of the first to fifth aspects, the detecting means emits light with the reading means inclined with respect to the bar arrangement direction of the barcode. The irradiation movement state is detected, and the correction means responds to the inclination angle of the reading means with respect to the bar arrangement direction when the reading means is irradiated with light inclined with respect to the bar arrangement direction of the barcode. Correct the bar width of the barcode image data.
The invention according to claim 7 is a computer that reads a barcode a plurality of times by a reading unit, acquires a plurality of barcode image data, a unit that stores the acquired barcode image data in a storage unit, Means for detecting a plurality of movement states in the three-dimensional space of the reading means during a barcode reading operation, and correction corresponding to each movement state based on the detected plurality of movement states in the three-dimensional space Means for correcting the bar width in each acquired barcode image data for each correction process by performing each processing, means for generating combined image data by combining the corrected barcode image data, It is a program for functioning as a means for decoding generated composite image data.

本発明によれば、バーコードイメージデータを合成する前に、読取手段の3次元空間での複数の移動状態に基づいて、各々の移動状態に対応する補正処理を夫々行うことにより、取得した各バーコードイメージデータにおけるバー幅を補正処理毎に補正することにより、正確な合成処理が可能となり、正確な読取結果を得ることができる。
According to the present invention, before the barcode image data is synthesized, each of the acquired images is obtained by performing correction processing corresponding to each movement state based on a plurality of movement states in the three-dimensional space of the reading unit. By correcting the bar width in the barcode image data for each correction process , an accurate composition process can be performed and an accurate reading result can be obtained.

以下、図面を参照して、本発明の実施形態を説明する。
まず、本実施形態における構成を説明する。
Hereinafter, embodiments of the present invention will be described with reference to the drawings.
First, the configuration in the present embodiment will be described.

図1に、本発明の実施形態に係るバーコード読取装置1の主要部構成を示す。バーコード読取装置1は、ユーザがスキャナ部分を手に持ってバーコードを読み取らせる手持ち式の読取装置であり、図1に示すように、CPU(Central Processing Unit)10、表示部11、入力部12、記憶部13、RAM(Random Access Memory)14、読取部15、ジャイロセンサ16を備え、各部はバス17を介して電気的に接続され、電源部18からの電力供給を受けている。   FIG. 1 shows a main part configuration of a barcode reading apparatus 1 according to an embodiment of the present invention. The barcode reader 1 is a hand-held reader that allows a user to read a barcode while holding the scanner portion in his / her hand. As shown in FIG. 1, a CPU (Central Processing Unit) 10, a display unit 11, an input unit 12, a storage unit 13, a RAM (Random Access Memory) 14, a reading unit 15, and a gyro sensor 16, and each unit is electrically connected via a bus 17 and receives power supply from a power supply unit 18.

CPU10は、記憶部13に記憶された各種制御プログラムをRAM14に展開し、当該制御プログラムとの協働によって、各種の処理を行う。具体的にCPU10は、記憶部13に記憶された制御プログラムに従ってバーコード読取処理を行う(図2参照)。   The CPU 10 develops various control programs stored in the storage unit 13 in the RAM 14 and performs various processes in cooperation with the control programs. Specifically, the CPU 10 performs a barcode reading process according to a control program stored in the storage unit 13 (see FIG. 2).

表示部11は、LCD(Liquid Crystal Display)等のディスプレイを有し、CPU10から入力される表示制御信号に従って所要の表示処理を行う。   The display unit 11 includes a display such as an LCD (Liquid Crystal Display), and performs a required display process according to a display control signal input from the CPU 10.

入力部12は、バーコードの読み取りを開始させるためのトリガキー等の各種のキーや、表示部11の表示画面上を覆うように設けられたタッチパネルを有し、キー操作又はタッチパネルの操作による操作信号をCPU10に出力する。   The input unit 12 includes various keys such as a trigger key for starting barcode reading, and a touch panel provided so as to cover the display screen of the display unit 11, and an operation signal generated by key operation or touch panel operation. Is output to the CPU 10.

記憶部13は、CPU10により実行される各種制御プログラム及びこれらの制御プログラムの実行時に必要なデータを記憶している。   The storage unit 13 stores various control programs executed by the CPU 10 and data necessary for executing these control programs.

RAM14は、CPU10により実行される各種制御プログラムを展開するプログラム格納領域と、入力データ及び制御プログラムの実行時に生じる処理結果等のデータを一時的に格納するデータ格納領域とを有する。   The RAM 14 has a program storage area for developing various control programs executed by the CPU 10 and a data storage area for temporarily storing input data and data such as processing results generated when the control program is executed.

読取部15は、CMOS(Complementary Metal Oxide Semiconductor)イメージセンサ又はCCD(Charge Coupled Device)イメージセンサ、A/Dコンバータ等により構成される。読取部15は、CMOSイメージセンサ又はCCDイメージセンサにより、読取対象のバーコードに照射されたレーザ光の反射光によってバーコードを読み取り、読取により得られた光画像信号を光電変換により電気信号(アナログ信号)に変換し、A/Dコンバータにより、このアナログ信号をデジタル信号に変換し、バーコードのイメージデータを取得する。   The reading unit 15 includes a CMOS (Complementary Metal Oxide Semiconductor) image sensor, a CCD (Charge Coupled Device) image sensor, an A / D converter, or the like. The reading unit 15 uses a CMOS image sensor or a CCD image sensor to read a barcode with reflected light of a laser beam irradiated on the barcode to be read, and photoelectrically converts the optical image signal obtained by the reading into an electrical signal (analogue). Signal), the analog signal is converted into a digital signal by an A / D converter, and barcode image data is obtained.

ジャイロセンサ16は、加速度センサ161及び傾きセンサ162を有し、バーコードの読取動作中における読取部15の3次元空間での移動状態を検出する。加速度センサ161は、3次元空間で移動した読取部15の加速度、移動した時間、移動した方向を検出する。加速度センサ161により検出された情報によって、読取部15の移動距離を算出することができる。傾きセンサ162は、3次元空間での読取部15の動きによって生じた読取部15の傾きを検出する。傾きセンサ162で検出された傾きによって、バーコード面に対する光の照射角度を算出することができる。   The gyro sensor 16 includes an acceleration sensor 161 and an inclination sensor 162, and detects the movement state of the reading unit 15 in the three-dimensional space during the barcode reading operation. The acceleration sensor 161 detects the acceleration of the reading unit 15 moved in the three-dimensional space, the time moved, and the direction moved. Based on the information detected by the acceleration sensor 161, the moving distance of the reading unit 15 can be calculated. The tilt sensor 162 detects the tilt of the reading unit 15 caused by the movement of the reading unit 15 in the three-dimensional space. Based on the inclination detected by the inclination sensor 162, the light irradiation angle with respect to the barcode surface can be calculated.

次に、本実施形態における動作を説明する。
まず、図2のフローチャートを参照して、バーコード読取装置1のCPU10の制御の下で実行されるバーコード読取処理について説明する。
Next, the operation in this embodiment will be described.
First, the barcode reading process executed under the control of the CPU 10 of the barcode reading apparatus 1 will be described with reference to the flowchart of FIG.

入力部12のトリガキーが押下されると、所定のスキャン速度(例えば、100スキャン/秒)で読取部15によりバーコードの読取が開始され、読取毎にバーコードのイメージデータ(以下、「バーコードイメージデータ」という。)が取得される(ステップS1)。ステップS1で読取毎に取得された各々のバーコードイメージデータは、RAM14に保存される(ステップS2)。   When the trigger key of the input unit 12 is pressed, the reading of the barcode is started by the reading unit 15 at a predetermined scanning speed (for example, 100 scans / second). Image data ”) is acquired (step S1). Each barcode image data acquired for each reading in step S1 is stored in the RAM 14 (step S2).

次いで、ステップS2においてRAM14に保存された各バーコードイメージデータを、予め設定された基準位置から読み取られた場合に取得されるバーコードイメージデータに補正する補正処理が行われる(ステップS3)。ステップS3の補正処理については、後に図3〜図20を参照して詳細に説明する。   Next, correction processing for correcting each barcode image data stored in the RAM 14 in step S2 to barcode image data acquired when read from a preset reference position is performed (step S3). The correction process in step S3 will be described in detail later with reference to FIGS.

次いで、ステップS3において補正された各バーコードイメージデータの合成が行われる(ステップS4)。ステップS4での合成では、例えば、各バーコードイメージデータを重ね合わせることにより、一のバーコードイメージデータにおけるバーの欠損箇所(擦れた箇所、印字が薄い箇所など)を他のバーコードイメージデータで補うなどの処理が行われる。   Next, the barcode image data corrected in step S3 is synthesized (step S4). In the synthesis in step S4, for example, by superimposing each barcode image data, the missing bar portion (rubbed portion, lightly printed portion, etc.) in one barcode image data is replaced with other barcode image data. Processing such as compensation is performed.

次いで、合成後のバーコードイメージデータを用いてバーコードのデコード処理が行われる(ステップS5)。ステップS5でのデコード処理では、バーコードイメージデータによって表される白色と黒色のバーの配列が、数値や文字の配列を表すデータに変換される。   Next, barcode decoding processing is performed using the combined barcode image data (step S5). In the decoding process in step S5, the array of white and black bars represented by the barcode image data is converted into data representing an array of numerical values and characters.

デコード処理が終了すると、ステップS5のデコード処理において正常にデコードすることができたか否かが判定される(ステップS6)。ステップS6において、正常にデコードすることができなかったと判定された場合(ステップS6;NO)、タイムアウトになる前であれば(ステップS7)、ステップS1に戻り、引き続きバーコードの読取動作を継続する。   When the decoding process is completed, it is determined whether or not the decoding process can be normally performed in the decoding process of step S5 (step S6). If it is determined in step S6 that decoding could not be performed normally (step S6; NO), if it is before time-out (step S7), the process returns to step S1 and continues the barcode reading operation. .

ステップS6において、正常にデコードすることができたと判定された場合(ステップS6;YES)、デコード処理の処理結果が出力(例えば、表示部11に表示)され(ステップS8)、本バーコード読取処理が終了する。   In step S6, when it is determined that the decoding can be normally performed (step S6; YES), the decoding processing result is output (for example, displayed on the display unit 11) (step S8), and the barcode reading process is performed. Ends.

次に、図3のフローチャート及び図4〜図20を参照して、バーコードイメージデータの補正処理(図2のステップS3)について詳細に説明する。   Next, barcode image data correction processing (step S3 in FIG. 2) will be described in detail with reference to the flowchart in FIG. 3 and FIGS.

本実施形態においてバーコードイメージデータの補正処理とは、ジャイロセンサ16から取得される読取部15の3次元空間(x−y−z)における移動状態に基づいて、読取部15から実際に取得されたバーコードイメージデータを、予め設定された基準位置から読み取られた場合に取得されるバーコードイメージデータに補正する処理である。以下では、バーコード面の中心部分を直交座標系の原点Oとし、バーコード面に垂直な方向をx軸方向、バーコード面上の各バーが配列する方向をy軸方向として説明する。   In the present embodiment, the barcode image data correction process is actually acquired from the reading unit 15 based on the movement state of the reading unit 15 in the three-dimensional space (xyz) acquired from the gyro sensor 16. In this process, the barcode image data is corrected to barcode image data acquired when the barcode image data is read from a preset reference position. In the following description, it is assumed that the central portion of the barcode surface is the origin O of the orthogonal coordinate system, the direction perpendicular to the barcode surface is the x-axis direction, and the direction in which each bar on the barcode surface is arranged is the y-axis direction.

本実施形態では、ジャイロセンサ16から取得される読取部15の3次元空間における移動状態を、読取部15の光源OSからの照射状態に基づいて以下の5通りに分類し、それぞれの移動状態に対応する補正処理(補正H1〜補正H5)について説明する。   In the present embodiment, the movement state in the three-dimensional space of the reading unit 15 acquired from the gyro sensor 16 is classified into the following five types based on the irradiation state from the light source OS of the reading unit 15, and the respective movement states are classified. A corresponding correction process (correction H1 to correction H5) will be described.

[1]バーコード面βに近づくように光を照射した状態(図4参照);
[2]バーコード面βから遠ざかるように光を照射した状態(図7参照);
[3]x−y平面内の基準方向(x軸方向に平行)に対して傾斜するように光を照射した状態(図10参照);
[4]バーコード面βに対してバーの配列方向(y軸方向)に移動するように光を照射した状態(図13参照);
[5]バーコード面β上の照射ラインがバーの配列方向(y軸方向)に対して傾斜するように光を照射した状態(図16参照).
[1] A state in which light is irradiated so as to approach the barcode surface β (see FIG. 4);
[2] A state in which light is irradiated away from the barcode surface β (see FIG. 7);
[3] A state in which light is irradiated so as to be inclined with respect to a reference direction (parallel to the x-axis direction) in the xy plane (see FIG. 10);
[4] A state in which light is irradiated so as to move in the bar array direction (y-axis direction) with respect to the barcode surface β (see FIG. 13);
[5] A state in which light is irradiated so that the irradiation line on the barcode surface β is inclined with respect to the bar arrangement direction (y-axis direction) (see FIG. 16).

なお、実際にジャイロセンサ16で検出される移動状態は、上記[1]〜[5]に対応する移動状態が複合されたものであるが、これらの複合された移動状態を上記[1]〜[5]に分離して、各々の移動状態に対する補正処理を行うことにより、最終的には複合された移動状態に対する補正処理と同等の結果が得られる。   Note that the movement state actually detected by the gyro sensor 16 is a combination of the movement states corresponding to the above [1] to [5], but these combined movement states are the above [1] to [1] to [5]. By performing the correction process for each moving state separately in [5], a result equivalent to the correction process for the combined moving state is finally obtained.

図3に示すバーコードイメージデータの補正処理では、まず、ジャイロセンサ16から読取部15の移動状態が取得される(ステップS20)。そして、当該移動状態が、図4に示すようにバーコード面βに近づくように光を照射した状態(移動状態[1])又は図7に示すようにバーコード面βから遠ざかるように光を照射した状態(移動状態[2])を含むか否かが判定される(ステップS21)。   In the barcode image data correction process shown in FIG. 3, first, the movement state of the reading unit 15 is acquired from the gyro sensor 16 (step S20). Then, the moving state is such that light is irradiated so as to approach the barcode surface β as shown in FIG. 4 (moving state [1]) or light is moved away from the barcode surface β as shown in FIG. It is determined whether or not the irradiation state (movement state [2]) is included (step S21).

ステップS21において、ジャイロセンサ16から取得された移動状態が、移動状態[1]又は移動状態[2]を含むと判定された場合(ステップS21;YES)、以下の補正H1又は補正H2が行われる(ステップS22)。   If it is determined in step S21 that the movement state acquired from the gyro sensor 16 includes the movement state [1] or the movement state [2] (step S21; YES), the following correction H1 or correction H2 is performed. (Step S22).

[補正H1]
図4に示す移動状態[1]の場合、光源OSがバーコード面βに近づくにつれ、図5(a)に示すように、バーコード面βにおける光の照射ラインLの幅が狭くなる。よって、図5(b)に示すように、実際に読取部15が認識する各バーの幅は、図5(a)に示す元の幅よりも太くなる。図5(a)及び図5(b)において白色及び黒色それぞれに対応する「バー幅」は、バーの幅を表すカウンタ値であり、例えば、バーの配列順に、白色の幅が60、黒色の幅が10、白色の幅が20、…のように表される。以下の、図8、図11、図14、図17についても同様である。
[Correction H1]
In the moving state [1] shown in FIG. 4, as the light source OS approaches the barcode surface β, the width of the light irradiation line L on the barcode surface β becomes narrower as shown in FIG. Therefore, as shown in FIG. 5B, the width of each bar actually recognized by the reading unit 15 is larger than the original width shown in FIG. In FIG. 5 (a) and FIG. 5 (b), the “bar width” corresponding to each of white and black is a counter value that represents the width of the bar. The width is 10, the white width is 20, and so on. The same applies to the following FIG. 8, FIG. 11, FIG. 14, and FIG.

読取部15の光源OSの移動距離に応じてバー幅が太くなる割合は、読取部15で使用されるスキャナモジュールの特性により異なっており、予め設定されている。例えば、図6に示すように、1回目の読取で取得されるバー幅をB1、2回目の読取で取得されるバー幅をB2、ジャイロセンサ16から取得される光源OSの移動距離をΔD、移動距離に応じてバー幅が太くなる割合を補正係数f1とすると、補正H1での補正後のバー幅は、式(1)のように表される。
補正後のバー幅=補正前のバー幅×ΔD×f1 …(1)
The rate at which the bar width increases in accordance with the movement distance of the light source OS of the reading unit 15 varies depending on the characteristics of the scanner module used in the reading unit 15 and is set in advance. For example, as shown in FIG. 6, the bar width acquired by the first reading is B1, the bar width acquired by the second reading is B2, the movement distance of the light source OS acquired from the gyro sensor 16 is ΔD, When the rate at which the bar width becomes thicker according to the movement distance is the correction coefficient f1, the bar width after correction by the correction H1 is expressed as shown in Expression (1).
Bar width after correction = bar width before correction × ΔD × f1 (1)

[補正H2]
図7に示す移動状態[2]の場合、光源OSがバーコード面βから遠ざかるにつれ、図8(a)に示すように、バーコード面βにおける光の照射ラインLが広くなる。よって、図8(b)に示すように実際に読取部15が認識する各バーの幅は、図8(a)に示す元の幅よりも細くなる。
[Correction H2]
In the moving state [2] shown in FIG. 7, as the light source OS moves away from the barcode surface β, the light irradiation line L on the barcode surface β becomes wider as shown in FIG. Therefore, as shown in FIG. 8B, the width of each bar actually recognized by the reading unit 15 is narrower than the original width shown in FIG.

移動距離に応じてバー幅が細くなる割合は、読取部15で使用されるスキャナモジュールの特性により異なっており、予め設定されている。例えば、図9に示すように、1回目の読取で取得されるバー幅をB1、2回目の読取で取得されるバー幅をB2、ジャイロセンサ16から取得される光源OSの移動距離をΔD、移動距離に応じてバー幅が細くなる割合を補正係数f2とすると、補正H2での補正後のバー幅は、式(2)のように表される。
補正後のバー幅=補正前のバー幅×ΔD×f2 …(2)
The rate at which the bar width is reduced according to the moving distance varies depending on the characteristics of the scanner module used in the reading unit 15 and is set in advance. For example, as shown in FIG. 9, the bar width acquired by the first reading is B1, the bar width acquired by the second reading is B2, the movement distance of the light source OS acquired from the gyro sensor 16 is ΔD, When the rate at which the bar width is reduced according to the moving distance is the correction coefficient f2, the bar width after the correction with the correction H2 is expressed as shown in Expression (2).
Bar width after correction = bar width before correction × ΔD × f2 (2)

図3のステップS21において、ジャイロセンサ16から取得された移動状態が、移動状態[1]若しくは移動状態[2]の何れも含まないと判定された場合(ステップS21;NO)、又はステップS22の補正H1若しくは補正H2が終了すると、ジャイロセンサ16から取得された移動状態が、図10に示すように、x−y平面内において基準方向(x軸方向に平行)に対して傾斜するように光を照射した状態(移動状態[3])を含むか否かが判定される(ステップS23)。   In step S21 of FIG. 3, when it is determined that the movement state acquired from the gyro sensor 16 does not include either the movement state [1] or the movement state [2] (step S21; NO), or in step S22 When the correction H1 or the correction H2 ends, the movement state acquired from the gyro sensor 16 is light so as to be inclined with respect to the reference direction (parallel to the x-axis direction) in the xy plane as shown in FIG. It is determined whether the state (moving state [3]) is included (step S23).

ステップS23において、ジャイロセンサ16から取得された移動状態が移動状態[3]を含むと判定された場合(ステップS23;YES)、以下の補正H3が行われる(ステップS24)。   When it is determined in step S23 that the movement state acquired from the gyro sensor 16 includes the movement state [3] (step S23; YES), the following correction H3 is performed (step S24).

[補正H3]
図10に示すように、光の照射方向がx軸に対して傾斜している場合、図11(a)に示すバーコード面β上の照射ラインLは、バーの位置(y座標の値)によって光源OSからの距離が異なる。従って、図10に示す移動状態[3]の場合、図11(b)に示すように、y軸の正の方向に向かって光源OSからの距離が近くなるため、バー幅が太くなり、y軸の負の方向に向かって光源OSからの距離が遠くなるため、バー幅が細くなる。
[Correction H3]
As shown in FIG. 10, when the light irradiation direction is inclined with respect to the x-axis, the irradiation line L on the barcode surface β shown in FIG. 11A is the bar position (y coordinate value). Depending on the distance from the light source OS. Therefore, in the case of the movement state [3] shown in FIG. 10, the distance from the light source OS becomes closer to the positive direction of the y-axis as shown in FIG. Since the distance from the light source OS increases toward the negative direction of the axis, the bar width becomes narrower.

図12に示すように、光の照射方向がx軸に対して傾斜角Θで傾斜している場合、バーの位置(y=Bd)に応じてバー幅が変化する割合は、読取部15で使用されるスキャナモジュールの特性により異なっており、バーの位置Bd、ジャイロセンサ16から取得される傾斜角Θの関数として予め設定されている。バー幅が変化する割合を補正係数f(Bd,Θ)とすると、補正H3での補正後のバー幅は、式(3)のように表される。
補正後のバー幅=補正前のバー幅×f(Bd,Θ) …(3)
As shown in FIG. 12, when the light irradiation direction is inclined at an inclination angle Θ with respect to the x axis, the rate at which the bar width changes according to the bar position (y = Bd) is determined by the reading unit 15. It differs depending on the characteristics of the scanner module used, and is preset as a function of the bar position Bd and the inclination angle Θ acquired from the gyro sensor 16. When the rate at which the bar width changes is the correction coefficient f (Bd, Θ), the bar width after the correction with the correction H3 is expressed as in Expression (3).
Bar width after correction = bar width before correction × f (Bd, Θ) (3)

図3のステップS23において、ジャイロセンサ16から取得された移動状態が、移動状態[3]を含まないと判定された場合(ステップS23;NO)、又はステップS24の補正H3が終了すると、ジャイロセンサ16から取得された移動状態が、図13に示すように、バーコード面βに対してバーの配列方向(y軸方向)に移動するように光を照射した状態(移動状態[4])を含むか否かが判定される(ステップS25)。   In step S23 of FIG. 3, when it is determined that the movement state acquired from the gyro sensor 16 does not include the movement state [3] (step S23; NO), or when the correction H3 in step S24 is completed, the gyro sensor As shown in FIG. 13, the movement state acquired from 16 is a state (movement state [4]) in which light is irradiated such that the barcode surface β moves in the bar arrangement direction (y-axis direction). It is determined whether or not it is included (step S25).

ステップS25において、ジャイロセンサ16から取得された移動状態が、移動状態[4]を含むと判定された場合(ステップS25;YES)、以下の補正H4が行われる(ステップS26)。   When it is determined in step S25 that the movement state acquired from the gyro sensor 16 includes the movement state [4] (step S25; YES), the following correction H4 is performed (step S26).

[補正H4]
図13に示す移動状態[4]の場合、図14(a)に示すバーコード面β上の照射ラインLは、バーの配列方向に移動するため、読取部15が認識するバーコードのスタートマージンの幅(又はエンドマージンの幅)は、図14(b)に示すように変化してしまう。そこで、補正H4では、1回目の読取で取得されたバーコードイメージデータを基準として、2回目の読取で取得されたバーコードイメージデータのスタートマージンの幅を、スタートコード等の特徴を有するバーコードイメージデータに基づいて補正する。
[Correction H4]
In the case of the movement state [4] shown in FIG. 13, the irradiation line L on the barcode surface β shown in FIG. 14A moves in the bar arrangement direction, and therefore the barcode start margin recognized by the reading unit 15. The width (or the width of the end margin) changes as shown in FIG. Therefore, in correction H4, the bar code image data acquired by the second reading is used as a reference, the width of the start margin of the bar code image data acquired by the second reading is determined as a bar code having characteristics such as a start code. Correct based on image data.

図15に示すように、1回目、2回目の読取でのバーコードの最初の黒色までのカウンタ値をそれぞれc1、c2とすると、スタートマージンの幅を、cx=c1−c2の分だけ補正すればよい。即ち、補正後のスタートマージンの幅は、式(4)のように表される。
補正後のスタートマージンの幅=補正前のスタートマージンの幅+cx …(4)
As shown in FIG. 15, if the counter values up to the first black of the barcode in the first and second readings are c1 and c2, respectively, the width of the start margin is corrected by cx = c1-c2. That's fine. That is, the width of the start margin after correction is expressed as Equation (4).
Width of start margin after correction = width of start margin before correction + cx (4)

図3のステップS25において、ジャイロセンサ16から取得された移動状態が、移動状態[4]を含まないと判定された場合(ステップS25;NO)、又はステップS26の補正H4が終了すると、ジャイロセンサ16から取得された移動状態が、図16に示すように、バーコード面β上の照射ラインがバーの配列方向(y軸方向)に対して傾斜するように光を照射した状態(移動状態[5])を含むか否かが判定される(ステップS27)。   In step S25 of FIG. 3, when it is determined that the movement state acquired from the gyro sensor 16 does not include the movement state [4] (step S25; NO), or when the correction H4 in step S26 is completed, the gyro sensor As shown in FIG. 16, the movement state acquired from 16 is a state in which light is irradiated so that the irradiation line on the barcode surface β is inclined with respect to the bar arrangement direction (y-axis direction) (movement state [ 5]) is included (step S27).

ステップS27において、ジャイロセンサ16から取得された移動状態が、移動状態[5]を含むと判定された場合(ステップS27;YES)、以下の補正H5が行われる(ステップS28)。   If it is determined in step S27 that the movement state acquired from the gyro sensor 16 includes the movement state [5] (step S27; YES), the following correction H5 is performed (step S28).

[補正H5]
図16に示す移動状態[5]では、図17(a)に示すように、バーコード面β上の照射ラインLがバーの配列方向(y軸方向)に対して傾斜しているため、図17(b)に示すように、各バーの幅は図17(a)に示す元の幅よりも太くなる。
[Correction H5]
In the moving state [5] shown in FIG. 16, as shown in FIG. 17A, the irradiation line L on the barcode surface β is inclined with respect to the bar arrangement direction (y-axis direction). As shown in FIG. 17 (b), the width of each bar is larger than the original width shown in FIG. 17 (a).

例えば、図18に示すように、1回目の読取方向がバーの配列方向と平行であり(バー幅B1)、2回目の読取方向がバーの配列方向に対して角度θ傾斜している場合、2回目の読取で得られるバー幅B2を補正したバー幅Bは式(5)のように表される。
B=B2・cosθ …(5)
For example, as shown in FIG. 18, when the first reading direction is parallel to the bar arrangement direction (bar width B1), and the second reading direction is inclined at an angle θ with respect to the bar arrangement direction, The bar width B obtained by correcting the bar width B2 obtained by the second reading is expressed as shown in Expression (5).
B = B2 · cosθ (5)

しかし、実際の読取では、1回目の読取が図18のようにバーの配列方向に平行になっているとは限らないため、図19に示すように、1回目の読取もバーの配列方向に対して傾斜している場合も含めてバー幅の補正値を算出すべきである。図19に示すように、1回目の読取で得られるバー幅をB1、2回目の読取で得られるバー幅をB2、1回目と2回目の読取の間にジャイロセンサ16から取得された傾斜角をθとする。この場合、図20に示すように、二辺の長さをB1、B2とし、両辺が挟む角度をθとした三角形において、角度θに対応する頂点から対辺(長さC)に下ろした垂線の長さBが、バー幅の補正値となる。   However, in actual reading, since the first reading is not always parallel to the bar arrangement direction as shown in FIG. 18, the first reading is also performed in the bar arrangement direction as shown in FIG. The correction value of the bar width should be calculated including the case where it is inclined. As shown in FIG. 19, the bar width obtained by the first reading is B1, the bar width obtained by the second reading is B2, and the inclination angle obtained from the gyro sensor 16 between the first and second readings. Is θ. In this case, as shown in FIG. 20, in a triangle in which the lengths of the two sides are B1 and B2 and the angle between both sides is θ, the perpendicular line extending from the vertex corresponding to the angle θ to the opposite side (length C) The length B is a bar width correction value.

図20の三角形において、長さCは式(6)のように算出される。

Figure 0005012133
この三角形の面積は(1/2)B・C=(1/2)B1・B2・sinθゆえ、補正後のバー幅Bは、式(7)のように算出される。
Figure 0005012133
In the triangle of FIG. 20, the length C is calculated as shown in Equation (6).
Figure 0005012133
Since the area of this triangle is (1/2) B · C = (1/2) B1 · B2 · sinθ, the corrected bar width B is calculated as shown in Equation (7).
Figure 0005012133

図3のステップS27において、ジャイロセンサ16から取得された移動状態が、移動状態[5]を含まないと判定された場合(ステップS27;NO)、又はステップS28の補正H5が終了すると、補正されたバーコードイメージデータがRAM14に保存され(ステップS29)、本補正処理が終了する。   In Step S27 of FIG. 3, when it is determined that the movement state acquired from the gyro sensor 16 does not include the movement state [5] (Step S27; NO), or when the correction H5 in Step S28 is completed, the correction is performed. The bar code image data is stored in the RAM 14 (step S29), and the correction process is completed.

以上のように、本実施形態のバーコード読取装置1によれば、ジャイロセンサ16から取得された移動状態に基づいて、読取部15により取得されたバーコードイメージデータを、予め設定された基準位置から読み取った場合のバーコードイメージデータに補正することにより、図21に示すような欠陥を有するバーコードであっても正しく合成処理を行うことができる。これにより、正確な読取結果を得ることができる。   As described above, according to the barcode reading apparatus 1 of the present embodiment, the barcode image data acquired by the reading unit 15 based on the movement state acquired from the gyro sensor 16 is set to a preset reference position. By correcting the barcode image data when read from the barcode, even a barcode having a defect as shown in FIG. 21 can be correctly combined. Thereby, an accurate reading result can be obtained.

なお、本実施形態における記述内容は、本発明の趣旨を逸脱しない範囲で適宜変更可能である。   Note that the description in the present embodiment can be changed as appropriate without departing from the spirit of the present invention.

例えば、上述の実施形態では、バーコード面βに対して光源OSが略x−y平面内を移動したときの補正処理を示したが、上記の移動状態[1]〜[5]に加えてz軸方向への移動を含めた移動状態に対応した補正処理を行うと、より精密な合成処理が可能となる。   For example, in the above-described embodiment, the correction processing when the light source OS moves in the substantially xy plane with respect to the barcode surface β has been described, but in addition to the movement states [1] to [5] described above. When correction processing corresponding to the movement state including movement in the z-axis direction is performed, more precise synthesis processing can be performed.

また、上述の実施形態では、ジャイロセンサ16を用いて読取部15の移動状態を検出する場合を示したが、3次元空間での移動状態が検出可能なものであれば、他のセンサを用いてもよい。   In the above-described embodiment, the case where the moving state of the reading unit 15 is detected using the gyro sensor 16 has been described. However, if the moving state in the three-dimensional space can be detected, another sensor is used. May be.

本発明の実施形態に係るバーコード読取装置の主要部構成を示すブロック図。The block diagram which shows the principal part structure of the barcode reader which concerns on embodiment of this invention. 本実施形態のバーコード読取装置のCPUの制御の下で実行されるバーコード読取処理を示すフローチャート。6 is a flowchart showing a barcode reading process executed under the control of the CPU of the barcode reading apparatus according to the embodiment. 図2に示した補正処理の詳細を示すフローチャート。The flowchart which shows the detail of the correction | amendment process shown in FIG. バーコード面に対する光の照射状態を模式的に示す図であって、バーコード面に近づくように光を照射した状態を示す図。The figure which shows typically the irradiation state of the light with respect to a barcode surface, Comprising: The figure which shows the state irradiated with light so that a barcode surface may be approached. 読取対象のバーコードのイメージデータ及び光の照射ラインを示す図(a)と、図4に示す照射状態において読取部により認識されるバーコードのイメージデータを示す図(b)。5A is a diagram showing barcode image data to be read and a light irradiation line, and FIG. 5B is a diagram showing barcode image data recognized by a reading unit in the irradiation state shown in FIG. 図4に示す照射状態におけるバー幅の補正方法を説明するための図。The figure for demonstrating the correction method of the bar width in the irradiation state shown in FIG. バーコード面に対する光の照射状態を模式的に示す図であって、バーコード面から遠ざかるように光を照射した状態を示す図。The figure which shows typically the irradiation state of the light with respect to a barcode surface, Comprising: The figure which shows the state irradiated with light so that it may distance from a barcode surface. 読取対象のバーコードのイメージデータ及び光の照射ラインを示す図(a)と、図7に示す照射状態において読取部により認識されるバーコードのイメージデータを示す図(b)。The figure (a) which shows the barcode image data and light irradiation line of reading object, and the figure (b) which shows the barcode image data recognized by the reading part in the irradiation state shown in FIG. 図7に示す照射状態におけるバー幅の補正方法を説明するための図。The figure for demonstrating the correction method of the bar width in the irradiation state shown in FIG. バーコード面に対する光の照射状態を模式的に示す図であって、x−y平面内において基準方向(x軸方向に平行)から傾斜するように光を照射した状態を示す図。The figure which shows typically the irradiation state of the light with respect to a barcode surface, Comprising: The figure which shows the state irradiated with light so that it may incline from a reference direction (parallel to x-axis direction) in xy plane. 読取対象のバーコードのイメージデータ及び光の照射ラインを示す図(a)と、図10に示す照射状態において読取部により認識されるバーコードのイメージデータを示す図(b)。FIG. 11A is a diagram showing barcode image data to be read and a light irradiation line, and FIG. 10B is a diagram showing barcode image data recognized by a reading unit in the irradiation state shown in FIG. 図10に示す照射状態におけるバー幅の補正方法を説明するための図。The figure for demonstrating the correction method of the bar width in the irradiation state shown in FIG. バーコード面に対する光の照射状態を模式的に示す図であって、バーコード面に対してy軸方向に移動するように光を照射した状態を示す図。The figure which shows typically the irradiation state of the light with respect to a barcode surface, Comprising: The figure which shows the state irradiated with light so that it may move to a y-axis direction with respect to a barcode surface. 読取対象のバーコードのイメージデータ及び光の照射ラインを示す図(a)と、図13に示す照射状態において読取部により認識されるバーコードのイメージデータを示す図(b)。The figure which shows the barcode image data and light irradiation line of reading object, and the figure which shows the image data of the barcode recognized by the reading part in the irradiation state shown in FIG. 図13に示す照射状態におけるスタートマージン幅の補正方法を説明するための図。The figure for demonstrating the correction method of the start margin width | variety in the irradiation state shown in FIG. バーコード面に対する光の照射状態を模式的に示す図であって、バーコード面上の照射ラインがバーの配列方向(y軸方向)に対して傾斜するように光を照射した状態を示す図。The figure which shows typically the irradiation state of the light with respect to a barcode surface, Comprising: The figure which shows the state irradiated with the light so that the irradiation line on a barcode surface may incline with respect to the arrangement direction (y-axis direction) of a bar . 読取対象のバーコードのイメージデータ及び光の照射ラインを示す図(a)と、図16に示す照射状態の場合に読取部により認識されるバーコードのイメージデータを示す図(b)。The figure (a) which shows the barcode image data and light irradiation line of reading object, and the figure (b) which shows the barcode image data recognized by the reading part in the irradiation state shown in FIG. 図16に示す照射状態におけるバー幅の補正方法を説明するための図。The figure for demonstrating the correction method of the bar width in the irradiation state shown in FIG. 図16に示す照射状態におけるバー幅の補正方法を説明するための図。The figure for demonstrating the correction method of the bar width in the irradiation state shown in FIG. 図16に示す照射状態におけるバー幅の補正方法を説明するための図。The figure for demonstrating the correction method of the bar width in the irradiation state shown in FIG. 欠陥を有するバーコードの一例を示す図。The figure which shows an example of the barcode which has a defect. 図21に示すバーコード面において光の照射位置が異なる複数の照射ラインを示す図。The figure which shows the several irradiation line from which the irradiation position of light differs in the barcode surface shown in FIG.

符号の説明Explanation of symbols

1 バーコード読取装置
10 CPU
11 表示部
12 入力部
13 記憶部
14 RAM
15 読取部
16 ジャイロセンサ
161 加速度センサ
162 傾きセンサ
18 電源部
1 Bar code reader 10 CPU
11 Display unit 12 Input unit 13 Storage unit 14 RAM
15 Reading unit 16 Gyro sensor 161 Acceleration sensor 162 Tilt sensor 18 Power supply unit

Claims (7)

バーコードを複数回読み取り、複数のバーコードイメージデータを取得する読取手段と、
前記読取手段により取得されたバーコードイメージデータを記憶する記憶手段と、
前記バーコードの読取動作中における前記読取手段の3次元空間での複数の移動状態を検出する検出手段と、
前記検出手段により検出された3次元空間での複数の移動状態に基づいて、各々の移動状態にに対応する補正処理を夫々行うことにより、前記取得された各バーコードイメージデータにおけるバー幅を補正処理毎に補正する補正手段と、
前記補正手段により補正された各バーコードイメージデータを合成して合成イメージデータを生成する合成手段と、
前記合成手段により生成された合成イメージデータをデコードするデコード手段と、
を備えるバーコード読取装置。
Reading means for reading a barcode a plurality of times and obtaining a plurality of barcode image data;
Storage means for storing the barcode image data acquired by the reading means;
Detecting means for detecting a plurality of movement states of the reading means in a three-dimensional space during the barcode reading operation;
Based on a plurality of movement states in the three-dimensional space detected by the detection means, correction processing corresponding to each movement state is performed, thereby correcting the bar width in each acquired barcode image data . Correction means for correcting each process ;
Combining means for combining the barcode image data corrected by the correcting means to generate combined image data;
Decoding means for decoding the combined image data generated by the combining means;
A barcode reader.
前記検出手段は、ジャイロセンサを用いて前記移動状態を検出し、
前記ジャイロセンサは、前記読取手段の加速度を検出する加速度センサと、前記読取手段の移動によって生じる当該読取手段の傾きを検出する傾きセンサと、を有する請求項1に記載のバーコード読取装置。
The detection means detects the movement state using a gyro sensor,
The barcode reading apparatus according to claim 1, wherein the gyro sensor includes an acceleration sensor that detects an acceleration of the reading unit and an inclination sensor that detects an inclination of the reading unit caused by movement of the reading unit.
前記検出手段は、前記読取手段が前記バーコードに近づくように移動した移動状態あるいは前記読取手段が前記バーコードから遠ざかるように移動した移動状態のいずれかを検出し、
前記補正手段は、前記読取手段が前記バーコードに近づくように移動した場合は、前記読取手段の移動距離に応じてバー幅が細くなるように前記バーコードイメージデータを補正し、前記読取手段が前記バーコード面から遠ざかるように移動した場合は、前記読取手段の移動距離に応じてバー幅が太くなるように前記バーコードイメージデータを補正することを特徴とする請求項1又は2に記載のバーコード読取装置。
The detecting means detects either the moving state in which the reading means has moved closer to the barcode or the moving state in which the reading means has moved away from the barcode,
The correction means corrects the barcode image data so that a bar width becomes narrow according to a moving distance of the reading means when the reading means moves so as to approach the barcode, and the reading means The bar code image data is corrected so that the bar width becomes thicker according to the moving distance of the reading unit when the bar is moved away from the bar code surface. Bar code reader.
前記検出手段は、前記読取手段が前記バーコードに対して傾斜して光を照射した移動状態を検出し、
前記補正手段は、前記読取手段が前記バーコードに対して傾斜して光を照射した場合は、前記読取手段の傾斜角に応じてバーコードイメージデータのバー幅を補正することを特徴とする請求項1乃至3のいずれかに記載のバーコード読取装置。
The detection unit detects a moving state in which the reading unit is irradiated with light inclined with respect to the barcode,
The correction means corrects the bar width of the barcode image data in accordance with the inclination angle of the reading means when the reading means irradiates light with an inclination with respect to the barcode. Item 4. The barcode reader according to any one of Items 1 to 3.
前記検出手段は、前記読取手段が前記バーコードに対してバー配列方向に移動した移動状態を検出し、
前記補正手段は、前記読取手段が前記バーコードに対してバー配列方向に移動した場合は、前記読取手段の移動距離に応じてバーコードイメージデータのスタートマージンの幅を補正することを特徴とする請求項1乃至4のいずれかに記載のバーコード読取装置。
The detection means detects a movement state in which the reading means moves in the bar arrangement direction with respect to the barcode,
The correction means corrects the width of the start margin of the barcode image data according to the moving distance of the reading means when the reading means moves in the bar arrangement direction with respect to the barcode. The barcode reader according to any one of claims 1 to 4.
前記検出手段は、前記読取手段が前記バーコードのバー配列方向に対して傾斜して光を照射した移動状態を検出し、
前記補正手段は、前記読取手段が前記バーコードのバー配列方向に対して傾斜して光を照射した場合は、前記読取手段の前記バー配列方向に対する傾斜角に応じてバーコードイメージデータのバー幅を補正することを特徴とする請求項1乃至5のいずれかに記載のバーコード読取装置。
The detection means detects a movement state in which the reading means is irradiated with light inclined with respect to the bar arrangement direction of the barcode,
When the reading unit irradiates light with an inclination with respect to the bar arrangement direction of the barcode, the correction unit determines the bar width of the barcode image data according to the inclination angle of the reading unit with respect to the bar arrangement direction. The barcode reader according to claim 1, wherein the barcode reader is corrected.
コンピュータを、
バーコードを読取手段により複数回読み取り、複数のバーコードイメージデータを取得する手段、
前記取得されたバーコードイメージデータを記憶手段に記憶させる手段、
前記バーコードの読取動作中における前記読取手段の3次元空間での複数の移動状態を検出する手段、
前記検出された3次元空間での複数の移動状態に基づいて、各々の移動状態に対応する補正処理を夫々行うことにより、前記取得された各バーコードイメージデータにおけるバー幅を補正処理毎に補正する手段、
前記補正された各バーコードイメージデータを合成して合成イメージデータを生成する手段、
前記生成された合成イメージデータをデコードする手段、
として機能させるためのプログラム。
Computer
Means for reading a bar code a plurality of times by a reading means and obtaining a plurality of bar code image data;
Means for storing the acquired barcode image data in a storage means;
Means for detecting a plurality of movement states of the reading means in a three-dimensional space during the barcode reading operation;
Based on the detected plurality of movement states in the three-dimensional space, correction processing corresponding to each movement state is performed, thereby correcting the bar width in each acquired barcode image data for each correction processing. Means to
Means for combining the corrected barcode image data to generate combined image data;
Means for decoding the generated composite image data;
Program to function as.
JP2007082515A 2007-03-27 2007-03-27 Bar code reader and program Expired - Fee Related JP5012133B2 (en)

Priority Applications (5)

Application Number Priority Date Filing Date Title
JP2007082515A JP5012133B2 (en) 2007-03-27 2007-03-27 Bar code reader and program
EP09008776.8A EP2101281B1 (en) 2007-03-27 2008-03-13 Bar-code reading apparatus and computer-readable medium
DE602008006482T DE602008006482D1 (en) 2007-03-27 2008-03-13 Bar code reader and computer readable medium
EP08004739A EP1975849B1 (en) 2007-03-27 2008-03-13 Bar-code reading apparatus and computer-readable medium
US12/079,148 US7832642B2 (en) 2007-03-27 2008-03-25 Bar-code reading apparatus and computer-readable medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2007082515A JP5012133B2 (en) 2007-03-27 2007-03-27 Bar code reader and program

Related Child Applications (1)

Application Number Title Priority Date Filing Date
JP2012061026A Division JP5403091B2 (en) 2012-03-16 2012-03-16 Reading apparatus and program

Publications (3)

Publication Number Publication Date
JP2008242828A JP2008242828A (en) 2008-10-09
JP2008242828A5 JP2008242828A5 (en) 2009-12-03
JP5012133B2 true JP5012133B2 (en) 2012-08-29

Family

ID=39914094

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2007082515A Expired - Fee Related JP5012133B2 (en) 2007-03-27 2007-03-27 Bar code reader and program

Country Status (1)

Country Link
JP (1) JP5012133B2 (en)

Families Citing this family (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9208482B2 (en) 2010-04-09 2015-12-08 Paypal, Inc. Transaction token issuing authorities
US8380177B2 (en) 2010-04-09 2013-02-19 Paydiant, Inc. Mobile phone payment processing methods and systems
US10445723B2 (en) 2010-04-09 2019-10-15 Paypal, Inc. NFC-transaction processing systems and methods
US10304051B2 (en) 2010-04-09 2019-05-28 Paypal, Inc. NFC mobile wallet processing systems and methods
US10134031B2 (en) 2010-04-09 2018-11-20 Paypal, Inc. Transaction token issuing authorities
US11887105B2 (en) 2010-04-09 2024-01-30 Paypal, Inc. Transaction token issuing authorities
US9400978B2 (en) 2010-04-09 2016-07-26 Paypal, Inc. Methods and systems for selecting accounts and offers in payment transactions
EP2656292A4 (en) 2010-12-23 2014-07-02 Paydiant Inc Mobile phone atm processing methods and systems
US20130317928A1 (en) 2012-05-24 2013-11-28 Kevin Laracey Methods and systems for wallet enrollment
US11049096B2 (en) 2015-12-31 2021-06-29 Paypal, Inc. Fault tolerant token based transaction systems

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH08114439A (en) * 1994-10-14 1996-05-07 Nippondenso Co Ltd Portable type dimension measuring device
JP3723595B2 (en) * 1995-02-28 2005-12-07 株式会社ウェルキャット Barcode reader
JP2003203198A (en) * 2002-01-08 2003-07-18 Canon Inc Imaging device, imaging method, computer readable storage medium and computer program
JP4306457B2 (en) * 2004-01-08 2009-08-05 株式会社デンソーウェーブ Optical information reader

Also Published As

Publication number Publication date
JP2008242828A (en) 2008-10-09

Similar Documents

Publication Publication Date Title
JP5012133B2 (en) Bar code reader and program
EP1975849B1 (en) Bar-code reading apparatus and computer-readable medium
JP4111166B2 (en) 3D shape input device
US8270044B2 (en) Scanning apparatus having image correction function
JP5087528B2 (en) Image reading apparatus and shading correction method
JP6241052B2 (en) Image processing system and image processing program
JP5111070B2 (en) Image forming apparatus and calibration method thereof
JP4306457B2 (en) Optical information reader
JP4910822B2 (en) Bar code reader and program
JP5403091B2 (en) Reading apparatus and program
JP6041011B2 (en) Portable processing apparatus and program
JP4930076B2 (en) Image information management system, image information management apparatus, image forming apparatus, image information management program, and image forming program
JP2013250993A (en) Portable processing apparatus and program
JPH1091752A (en) Device and method for correcting picture
JP2008140255A (en) Bar code reader and bar code reading method
JP4134151B2 (en) Image reading apparatus and shading correction data creation method
JP2005063142A (en) Code read device
JP2007049603A (en) Image processing apparatus, image forming apparatus, image processing method and program
JP2011151548A (en) Method for calibrating flat bed scanner
JP4397866B2 (en) Two-dimensional pattern reading device, two-dimensional pattern reading method
KR100700927B1 (en) Method of scanning an image using surface coordinate values and device using thereof
US20130028535A1 (en) Image Scanning Apparatus
JP2017169198A (en) Image readout device, image readout method and program
JP2020119158A (en) Image reader
JP2020120230A (en) Image reading device

Legal Events

Date Code Title Description
A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20091016

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20091016

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20110607

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20110802

RD02 Notification of acceptance of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7422

Effective date: 20110802

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20111220

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20120316

A911 Transfer of reconsideration by examiner before appeal (zenchi)

Free format text: JAPANESE INTERMEDIATE CODE: A911

Effective date: 20120323

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

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

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

Free format text: PAYMENT UNTIL: 20150615

Year of fee payment: 3

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

LAPS Cancellation because of no payment of annual fees