JP2020160486A - Code reading apparatus and program - Google Patents
Code reading apparatus and program Download PDFInfo
- Publication number
- JP2020160486A JP2020160486A JP2019055903A JP2019055903A JP2020160486A JP 2020160486 A JP2020160486 A JP 2020160486A JP 2019055903 A JP2019055903 A JP 2019055903A JP 2019055903 A JP2019055903 A JP 2019055903A JP 2020160486 A JP2020160486 A JP 2020160486A
- Authority
- JP
- Japan
- Prior art keywords
- code
- image
- exposure time
- size
- length
- 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
Links
- 238000003384 imaging method Methods 0.000 claims description 24
- 230000003287 optical effect Effects 0.000 abstract description 14
- 238000000034 method Methods 0.000 description 51
- 238000004891 communication Methods 0.000 description 17
- 238000005286 illumination Methods 0.000 description 9
- 238000012546 transfer Methods 0.000 description 7
- 238000010586 diagram Methods 0.000 description 6
- 230000015654 memory Effects 0.000 description 6
- 239000007788 liquid Substances 0.000 description 5
- 238000012545 processing Methods 0.000 description 5
- 230000006870 function Effects 0.000 description 4
- 230000005540 biological transmission Effects 0.000 description 3
- 239000004065 semiconductor Substances 0.000 description 3
- 239000011521 glass Substances 0.000 description 2
- 239000007787 solid Substances 0.000 description 2
- 230000001360 synchronised effect Effects 0.000 description 2
- 230000000295 complement effect Effects 0.000 description 1
- 239000013078 crystal Substances 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 238000005259 measurement Methods 0.000 description 1
- 229910044991 metal oxide Inorganic materials 0.000 description 1
- 150000004706 metal oxides Chemical class 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- UKDIAJWKFXFVFG-UHFFFAOYSA-N potassium;oxido(dioxo)niobium Chemical compound [K+].[O-][Nb](=O)=O UKDIAJWKFXFVFG-UHFFFAOYSA-N 0.000 description 1
- 238000003825 pressing Methods 0.000 description 1
- 230000003936 working memory Effects 0.000 description 1
Images
Abstract
Description
本発明は、コード読取装置及びプログラムに関する。 The present invention relates to a code reader and a program.
従来、プレスキャンで読取られるプレスキャン画像における指定された読取範囲内の画像を解析し、プレスキャン画像の出力値の最大値が閾値より小さい場合、プレスキャン画像の出力値の最大値がスキャナ装置のダイナミックレンジの最大値となるように露光時間を調整し、本スキャンの画像読取りを行う画像読取制御方法が開示されている(例えば、特許文献1参照)。 Conventionally, when an image within a specified scanning range in a prescan image read by prescan is analyzed and the maximum value of the output value of the prescan image is smaller than the threshold value, the maximum value of the output value of the prescan image is the scanner device. An image reading control method for adjusting the exposure time so as to have the maximum value of the dynamic range of the above and performing the image reading of this scan is disclosed (see, for example, Patent Document 1).
しかしながら、上記特許文献1に開示されている画像読取制御方法では、暗い原稿を読み取る場合、露光時間の調整によってスキャンのフレームレートが低下するため、読み取りに時間がかかってしまうという問題がある。
However, the image scanning control method disclosed in
本発明は、このような問題に鑑みてなされたものであり、暗所でも効率良く読み取りを行うことを目的とする。 The present invention has been made in view of such a problem, and an object of the present invention is to efficiently read even in a dark place.
上記課題を解決するため、本発明に係るコード読取装置は、
光学的に読取可能なコードを読み取るコード読取装置であって、
前記コードの画像を撮影する撮像手段と、
前記撮像手段により撮影された前記コードの画像に基づいて、当該撮像手段による次回以降のコードの画像の撮影時の露光時間と当該次回以降のコードの画像の出力画像サイズとを調整する調整手段と、
前記次回以降のコードの画像の撮影時に、前記撮像手段が前記調整手段により調整された前記露光時間で撮影を行い、前記出力画像サイズのコードの画像を出力するよう制御する制御手段と、
を備えることを特徴とする。
In order to solve the above problems, the code reader according to the present invention is
A code reader that reads an optically readable code.
An imaging means for capturing an image of the code and
Based on the image of the code taken by the imaging means, the adjusting means for adjusting the exposure time at the time of shooting the image of the code after the next time by the imaging means and the output image size of the image of the code after the next time. ,
When the image of the code is taken from the next time onward, the image pickup means takes a picture with the exposure time adjusted by the adjusting means, and the control means for controlling to output the image of the code of the output image size.
It is characterized by having.
本発明によれば、暗所でも効率良く読み取りを行うことができる。 According to the present invention, reading can be performed efficiently even in a dark place.
以下、本発明の実施の形態を図面に基づいて説明する。 Hereinafter, embodiments of the present invention will be described with reference to the drawings.
図1は、本発明の実施形態のコード読取装置の全体構造を示す正面図である。
本実施形態のコード読取装置(コンピューター)1は、一次元バーコード、二次元コード等のコードの読み取り機能を有する携帯機器である。
FIG. 1 is a front view showing the overall structure of the code reader according to the embodiment of the present invention.
The code reading device (computer) 1 of the present embodiment is a portable device having a code reading function such as a one-dimensional bar code and a two-dimensional code.
コード読取装置1は、筐体としてのケース2を備える。コード読取装置1は、ケース2の正面に、トリガキー12Aと、各種キー12Bと、表示部14と、を備える。コード読取装置1は、ケース2の側面に、トリガキー12Cを備える。また、コード読取装置1は、ケース2の先端部に、イメージャモジュール(スキャナデバイス)21を備える。
The
トリガキー12A、12Cは、イメージャモジュール21によるコード読み取り動作の開始命令の入力を受け付けるトリガキーである。各種キー12Bは、数字、文字等の入力キー、機能キー等からなり、各種情報の入力操作を受け付ける。表示部14は、入力操作に係るメニューやステータスなどの情報、及び、イメージャモジュール21を用いたコード読み取り動作の実行時のステータスやデコード結果等の情報を表示する。
The
図2は、コード読取装置1の内部構成を示すブロック図である。
FIG. 2 is a block diagram showing an internal configuration of the
コード読取装置1は、調整手段、制御手段、デコード手段、決定手段としてのCPU(Central Processing Unit)11と、操作部12と、RAM(Random Access Memory)13と、表示部14と、記憶部15と、通信部16と、イメージャコントローラ19と、イメージャモジュール21と、電源部22と、レーザ駆動電源23と、を備える。
The
コード読取装置1のイメージャモジュール21及び電源部22を除く各部は、バス24を介して互いに接続されている。イメージャモジュール21は、撮像素子(撮像手段)211と、可変焦点レンズ212と、可変焦点レンズ212を駆動して焦点を調節するフォーカス機構213と、エイマー(発光手段)214と、イルミネーション(照明手段)215と、を有する。
Each part of the
CPU11は、コード読取装置1の各部を制御する。CPU11は、記憶部15から種々のプログラムを読み出してRAM13に展開し、RAM13に展開されたプログラムとの協働で各種処理を実行する。
The
操作部12は、各種キー12B、トリガキー12A、12C等のキー群を有し、当該キー群の各キーの押下操作を受け付け、その操作情報を入力信号に変換してCPU11へ出力する。
The
RAM13は、揮発性の半導体メモリであり、CPU11に作業用メモリ空間を提供する。また、RAM13は、各種データの一時記憶、及び、各種プログラムを実行する際の展開に用いられる。
The
表示部14は、LCD(Liquid Crystal Display)や、EL(Electro Luminescent)ディスプレイ等で構成され、CPU11から入力される表示情報に応じて各種情報を表示する。
The
記憶部15は、読み書きの可能な不揮発性メモリであり、例えば、フラッシュメモリである。記憶部15には、予め種々のプログラムや設定データが格納されている。或いは、記憶部15は、EEPROM(Electrically Erasable and Programmable Read Only Memory)やハードディスクであってもよい。又は、専用のコード読取装置においては、ROM(Read Only Memory)を用いることとしてもよい。この記憶部15に格納されたプログラムには、イメージャモジュール21を用いてコードをスキャンし、取得したコードの画像データをデコードする処理を行うプログラム15aが含まれる。
The
通信部16は、通信アンテナ、信号処理部、変調部、復調部等を備え、アクセスポイントと無線通信する。アクセスポイントは、通信を中継する機器である。つまり、コード読取装置1は、通信部16により、アクセスポイントを介して、当該アクセスポイントに接続されたサーバ装置等の外部機器と通信する。通信部16は、送信情報の信号を信号処理部で処理し、変調部で変調して通信アンテナから電波としてアクセスポイントに送信情報を無線送信する。また、通信部16は、通信アンテナによりアクセスポイントから送信された電波を受信して復調部で復調し、その信号を信号処理部で信号処理して受信情報を取得する。
The
また、通信部16は、携帯電話通信方式により、基地局を介してサーバ装置と無線通信する無線通信部としてもよい。また、通信部16は、コード読取装置1を載置するクレードル、又は通信ケーブルを介して、サーバ装置と有線通信する有線通信部としてもよい。
Further, the
イメージャコントローラ19は、イメージャモジュール21の各部の動作を制御し、イメージャモジュール21とコード読取装置1の他の部位との間のデータの送受信を制御する。イメージャコントローラ19は、ASIC(Application Specific Integrated Circuit)等の半導体回路により構成されている。
The
イメージャコントローラ19は、撮像素子211から、キャプチャされた画像データの1フレームの出力タイミングに同期したフレーム同期信号と、画像データの1ラインの出力タイミングに同期したライン同期信号と、画像データに同期するためのクロック信号と、が入力される。イメージャコントローラ19は、これらフレーム同期信号、ライン同期信号及びクロック信号に基づいて、RAM13への画像データの転送タイミングを監視する。イメージャコントローラ19は、撮像素子211からイメージャコントローラ19に入力された画像データを、CPU11を介さずに直接RAM13に転送するDMA(Direct Memory Access)転送機能を有する。
The
イメージャモジュール21は、可変焦点レンズ212の焦点位置を調整して被写体のコードを撮像するモジュールである。撮像素子211は、特には限られないが、CMOS(Complementary Metal Oxide Semiconductor:相補性金属酸化膜半導体)イメージセンサである。撮像素子211は、可変焦点レンズ212を含む光学系を介して入射された被写体像を光電変換して電気信号に変換することで、画像データをキャプチャ(取得)する。
The
撮像素子211は、イメージャコントローラ19から入力された画像領域指定信号により指定されたラインの画像データを1ラインずつラインデータとしてイメージャコントローラ19に出力する。また、撮像素子211は、フレーム同期信号、ライン同期信号、及び、クロック信号をイメージャコントローラ19に出力する。可変焦点レンズ212は、例えば、液体レンズであり、イメージャモジュール21の光学系の一部を構成する光学素子である。この液体レンズは、フォーカス機構213に印加される電圧に応じて高速で焦点位置を変更可能な構成となっている。
The
フォーカス機構213は、可変焦点レンズ212の焦点位置を調節する駆動部である。可変焦点レンズ212が液体レンズである場合には、フォーカス機構213は、当該液体レンズの所定箇所に電圧を加えるための電極を含む電気回路である。また、可変焦点レンズ212としてガラスやプラスチックなどの固体レンズを用いる場合には、フォーカス機構213には、例えば、ボイスコイルモータが用いられる。
The
エイマー214は、イメージャモジュール21と被写体であるコードとの距離の測定指標、及び、イメージャモジュール21の撮像方向と被写体方向とを合わせるための基準となるスポット光(目標光)としてのレーザ光ビームを出射するレーザダイオード(LD)である。イルミネーション215は、例えば、LED(Light Emitting Diode)といった光源により構成され、被写体及びその周囲の領域を明るく照らすための照射光を出射する。
The
電源部22は、二次電池等で構成され、コード読取装置1の各部に電力供給を行う。レーザ駆動電源23は、エイマー214を駆動してスポット光を出射させる際の電力を供給する。レーザ駆動電源23は、イメージャコントローラ19と共にメイン基板上に配置される。
The
次いで、図3を参照して、イメージャモジュール21の各部の配置を詳細に説明する。
図3は、イメージャモジュール21の平面図である。
Next, the arrangement of each part of the
FIG. 3 is a plan view of the
イメージャモジュール21において、可変焦点レンズ212を含む光学系212Aは、当該イメージャモジュール21の外側を撮像可能に配置される。また、撮像素子211は、光学系212Aの光軸に対して垂直に配置されている。エイマー214及びイルミネーション215は、光学系212A及びフォーカス機構213に並列して配置されている。エイマー214は、出射するビーム状のレーザ光が光学系212Aについて変更可能な焦点距離内においてイメージャモジュール21(光学系212A及び撮像素子211)により撮像可能な画角内に含まれる配置となっている。本実施形態では、このレーザ光のビームは、光学系212Aの光軸に平行な方向に出射される。また、イルミネーション215は、扇状に照射する光が光学系212Aについて変更可能な焦点距離内において、イメージャモジュール21(光学系212A及び撮像素子211)により撮影可能な画角内に含まれる配置となっている。
In the
次いで、図4を参照して、コード読取装置1の動作を説明する。図4は、コード読取装置1によるコード読み取り処理の制御手順を示すフローチャートである。
Next, the operation of the
コード読み取り処理は、イメージャモジュール21を用いてコードをスキャンし、取得したコードの画像データをデコードする処理である。コード読取装置1において、トリガキー12A,12Cがユーザーにより押下入力されたことをトリガとして、CPU11は、ROM15から読み出されてRAM13に適宜展開されたプログラム15aとの協働で、コード読み取り処理を実行する。
The code reading process is a process of scanning the code using the
図4に示すように、先ず、コード読取装置1のCPU11は、イメージャコントローラ19へ指令を送り、イメージャモジュール21を起動させる(ステップS1)。
As shown in FIG. 4, first, the
次いで、CPU11は、初期設定を行う(ステップS2)。具体的には、CPU11は、イメージャコントローラ19へ指令を送り、撮像素子211により被写体であるコードを撮影する際の露光時間Eを予め定められた初期値(標準的な明るさの露光値)E0に設定させるとともに、撮像素子211により撮影されたコードの画像データをRAM13に転送(出力)する際の出力画像サイズRを当該画像データの全体のサイズRfullに設定させる。また、CPU11は、コード読み取り処理のループ回数Lを初期値(L=0)に設定する。
Next, the
次いで、CPU11は、コード読み取り処理のループ回数Lの値を1インクリメントする(ステップS3)。
Next, the
次いで、CPU11は、イメージャコントローラ19へ指令を送り、撮像素子211にコードを撮影させるとともに、撮像素子211からイメージャコントローラ19へ送られる当該コードの画像データをDMAによってRAM13へ直接転送させる(ステップS4)。また、ステップS4において、CPU11は、イメージャコントローラ19へ指令を送り、撮像素子211によるコードの撮影時にはイルミネーション215を照射させることにより、明るい画像を撮影できるようにする。また、コードの画像データの転送時にはエイマー214を照射させることにより、ユーザーに撮影位置を指し示すことができるようにする。
Next, the
次いで、CPU11は、RAM13に転送された画像データに基づいて、コードのデコード(解読)を行う(ステップS5)。
Next, the
次いで、CPU11は、コードのデコードに成功したか否かを判定する(ステップS6)。
Next, the
ステップS6において、コードのデコードに成功したと判定された場合(ステップS6;YES)、CPU11は、デコードデータを表示部14に表示(出力)し(ステップS7)、コード読み取り処理を終了する。
一方、ステップS6において、コードのデコードに成功していない、すなわち失敗したと判定された場合(ステップS6;NO)、CPU11は、ループ回数Lの値が3よりも大きいか否かを判定する(ステップS8)。
If it is determined in step S6 that the code decoding is successful (step S6; YES), the
On the other hand, in step S6, when it is determined that the code decoding has not succeeded, that is, it has failed (step S6; NO), the
ステップS8において、ループ回数Lの値が3よりも大きいと判定された場合(ステップS8;YES)、CPU11は、デコード失敗データ(例えば、「コードを読み取ることができません」等の文字データ)を表示部14に表示(出力)し(ステップS9)、コード読み取り処理を終了する。
一方、ステップS8において、ループ回数Lの値が3よりも大きくない、すなわち3以下であると判定された場合(ステップS8;NO)、CPU11は、露光時間・画像サイズ(出力画像サイズ)調整処理(後述)を行う(ステップS10)。そして、CPU11は、処理をステップS3へ戻し、それ以降の処理を繰り返し行う。
If it is determined in step S8 that the value of the loop count L is greater than 3 (step S8; YES), the
On the other hand, in step S8, when it is determined that the value of the number of loops L is not greater than 3, that is, 3 or less (step S8; NO), the
図5は、コード読取装置1による露光時間・画像サイズ(出力画像サイズ)調整処理の制御手順を示すフローチャートである。露光時間・画像サイズ調整処理は、撮像素子211による次回以降の撮影時の露光時間と出力画像サイズとを決定する処理である。
FIG. 5 is a flowchart showing a control procedure of the exposure time / image size (output image size) adjustment process by the
図5に示すように、先ず、CPU11は、露光時間候補E1を決定する(ステップS21)。具体的には、CPU11は、上述のコード読み取り処理のステップS5においてデコードがなされたコードの画像データの輝度値を導出する。そして、CPU11は、導出された輝度値を対象として露出制御処理を行い、適正な露光時間候補E1を決定する。なお、露出制御処理は公知の技術であるため、その説明は省略する。
As shown in FIG. 5, first, the
次いで、CPU11は、露光時間候補E1の長さがイメージャモジュール21に設定可能な最小露光時間Eminの長さよりも短いか否かを判定する(ステップS22)。
Next, the
ステップS22において、露光時間候補E1の長さが最小露光時間Eminの長さよりも短いと判定された場合(ステップS22;YES)、CPU11は、イメージャコントローラ19へ指令を送り、出力画像サイズRを、図6(a)に示すように、撮像素子211により撮影された画像全体のサイズRfullに調整させ(ステップS23)、また、露光時間Eを最小露光時間Eminに調整させ(ステップS24)、露光時間・画像サイズ調整処理を終了する。
When it is determined in step S22 that the length of the exposure time candidate E1 is shorter than the length of the minimum exposure time Emin (step S22; YES), the
また、ステップS22において、露光時間候補E1の長さが最小露光時間Eminの長さよりも短くない、すなわち最小露光時間Eminの長さ以上であると判定された場合(ステップS22;NO)、CPU11は、露光時間候補E1の長さがイメージャモジュール21に設定可能な第1の最大露光時間Emax1の長さよりも短いか否かを判定する(ステップS25)。ここで、第1の最大露光時間Emax1とは、出力画像サイズRがRfullに設定されている際にイメージャモジュール21に設定可能な最大露光時間を意味する。
Further, in step S22, when it is determined that the length of the exposure time candidate E1 is not shorter than the length of the minimum exposure time Emin, that is, equal to or greater than the length of the minimum exposure time Emin (step S22; NO), the
ステップS25において、露光時間候補E1の長さが第1の最大露光時間Emax1の長さよりも短いと判定された場合(ステップS25;YES)、CPU11は、イメージャコントローラ19へ指令を送り、出力画像サイズRを撮像素子211により撮影された画像全体のサイズRfullに調整させ(ステップS26)、また、露光時間Eを露光時間候補E1に調整させ(ステップS27)、露光時間・画像サイズ調整処理を終了する。
When it is determined in step S25 that the length of the exposure time candidate E1 is shorter than the length of the first maximum exposure time Emax1 (step S25; YES), the
また、ステップS25において、露光時間候補E1の長さが第1の最大露光時間Emax1の長さよりも短くない、すなわち第1の最大露光時間Emax1の長さ以上であると判定された場合(ステップS25;NO)、CPU11は、露光時間候補E1の長さがイメージャモジュール21に設定可能な第2の最大露光時間Emax2の長さよりも短いか否かを判定する(ステップS28)。ここで、第2の最大露光時間Emax2とは、出力画像サイズRがRfullの半分のサイズRhalf(図6(b)参照)に設定されている際にイメージャモジュール21に設定可能な最大露光時間を意味する。
Further, in step S25, when it is determined that the length of the exposure time candidate E1 is not shorter than the length of the first maximum exposure time Emax1, that is, is equal to or longer than the length of the first maximum exposure time Emax1 (step S25). (NO), the
ステップS28において、露光時間候補E1の長さが第2の最大露光時間Emax2の長さよりも短いと判定された場合(ステップS28;YES)、CPU11は、イメージャコントローラ19へ指令を送り、出力画像サイズRを、図6(b)に示すように、Rfullの半分のサイズRhalfに調整させ(ステップS29)、また、露光時間Eを露光時間候補E1に調整させ(ステップS27)、露光時間・画像サイズ調整処理を終了する。
When it is determined in step S28 that the length of the exposure time candidate E1 is shorter than the length of the second maximum exposure time Emax2 (step S28; YES), the
また、ステップS28において、露光時間候補E1の長さが第2の最大露光時間Emax2の長さよりも短くない、すなわち第2の最大露光時間Emax2の長さ以上であると判定された場合(ステップS28;NO)、CPU11は、イメージャコントローラ19へ指令を送り、出力画像サイズRをRfullの半分のサイズRhalfに調整させ(ステップS30)、また、露光時間Eを第2の最大露光時間Emax2に調整させ(ステップS31)、露光時間・画像サイズ調整処理を終了する。
Further, in step S28, when it is determined that the length of the exposure time candidate E1 is not shorter than the length of the second maximum exposure time Emax2, that is, is equal to or longer than the length of the second maximum exposure time Emax2 (step S28). (NO), the
次いで、暗所において実行されたコード読み取り処理の一態様について、図6(c)を参照して説明する。図6(c)は、コード読み取り処理の時間配分を模式的に示した図である。 Next, one aspect of the code reading process executed in the dark place will be described with reference to FIG. 6 (c). FIG. 6C is a diagram schematically showing the time allocation of the code reading process.
図6(c)に示すように、先ず、コード読取装置1において、トリガキー12A,12Cがユーザーにより押下入力されたことをトリガとして、イメージャモジュール(スキャナデバイス)21が起動され、露光時間Eが初期値E0に設定されるとともに、出力画像サイズRがRfullに設定される。そして、1回目(ループ回数L=1)のコード読み取り処理が行われる。
As shown in FIG. 6C, first, in the
1回目のコード読み取り処理では、撮像素子211により露光時間E0でコードの撮影が行われ、撮影されたコードの画像データが出力画像サイズRfullでRAM13に転送される。そして、1回目のコード読み取り処理では、RAM13に転送された画像データの輝度値が低いためデコードに失敗し、上述の露光時間・画像サイズ調整処理が行われることとなる。ここで、露光時間E0は露光時間候補E1に調整され、出力画像サイズRは1回目のコード読み取り処理と同様にRfullに調整されるものとする。そして、2回目(ループ回数L=2)のコード読み取り処理が行われる。
In the first code reading process, the
2回目のコード読み取り処理では、撮像素子211により露光時間候補E1でコードの撮影が行われ、撮影されたコードの画像データが出力画像サイズRfullでRAM13に転送される。そして、2回目のコード読み取り処理でも、RAM13に転送された画像データの輝度値が低いためデコードに失敗し、上述の露光時間・画像サイズ調整処理が行われることとなる。ここで、露光時間候補E1は第2の最大露光時間Emax2に調整され、出力画像サイズRはRhalfに調整されるものとする。そして、3回目(ループ回数L=3)のコード読み取り処理が行われる。
In the second code reading process, the
3回目のコード読み取り処理では、撮像素子211により第2の最大露光時間Emax2でコードの撮影が行われ、撮影されたコードの画像データが出力画像サイズRhalfでRAM13に転送される。つまり、3回目のコード読み取り処理では、露光時間が長くなる一方で、画像転送に費やされる時間が短くなっており、1回目や2回目のコード読み取り処理に費やされる時間とほぼ同等の時間でコード読み取り処理が行われるようになっている。そして、3回目のコード読み取り処理では、露光時間候補E1よりも露光時間が長い第2の最大露光時間Emax2で撮影が行われたことによって、RAM13に転送される画像データの輝度値が高くなりデコードに成功する。
In the third code reading process, the
以上のように、本実施形態のコード読取装置1は、光学的に読取可能なコードを読み取るコード読取装置1であって、コードの画像を撮影する撮像素子211と、撮像素子211により撮影されたコードの画像に基づいて、撮像素子211による次回以降のコードの画像の撮影時の露光時間Eと当該次回以降のコードの画像の出力画像サイズRとを調整し、次回以降のコードの画像の撮影時に、撮像素子211が調整された露光時間Eで撮影を行い、調整された出力画像サイズRのコードの画像を出力するよう制御する。
このような構成によれば、例えば、暗所においてコードの読み取り作業が行われ、次回以降のコードの画像の撮影時の露光時間Eが長くなるように調整された場合であっても、出力画像サイズRを小さくすることにより画像データの転送時間が短くなるように調整することができる。
したがって、暗所でも通常時と同等の時間でコードの読み取りを行うことができるので、暗所でも効率良くコードの読み取りを行うことができる。
As described above, the
According to such a configuration, for example, even when the code reading operation is performed in a dark place and the exposure time E at the time of shooting the code image from the next time onward is adjusted to be long, the output image is output. By reducing the size R, it is possible to adjust so that the transfer time of the image data is shortened.
Therefore, since the code can be read in a dark place in the same time as in a normal time, the code can be read efficiently even in a dark place.
また、コード読取装置1は、デコードに失敗した場合、当該デコードの対象となったコードの画像に基づいて、露光時間Eと出力画像サイズRとを調整するので、デコードの失敗が繰り返されることを抑制することができる。
Further, when the decoding fails, the
また、コード読取装置1は、デコードの対象となったコードの画像の輝度値に基づいて、次回以降のコードの画像の撮影時において候補となる露光時間(露光時間候補E1)を決定し、決定された候補となる露光時間の長さが予め定めた最小露光時間Eminの長さよりも短い場合、露光時間Eを当該最小露光時間Eminに調整するとともに、出力画像サイズRをRfull(所定のサイズ)に調整する。
このような構成によれば、コードの読み取り精度を向上させるとともに、効率良くコードの読み取りを行うことができる。
Further, the
According to such a configuration, the reading accuracy of the code can be improved and the code can be read efficiently.
また、コード読取装置1は、候補となる露光時間(露光時間候補E1)の長さが最小露光時間Eminの長さ以上であり、且つ、予め定めた第1の最大露光時間Emax1の長さよりも短い場合、露光時間Eを当該候補となる露光時間に調整するとともに、出力画像サイズRをRfull(所定のサイズ)に調整する。
このような構成によれば、コードの読み取り精度を向上させるとともに、効率良くコードの読み取りを行うことができる。
Further, in the
According to such a configuration, the reading accuracy of the code can be improved and the code can be read efficiently.
また、コード読取装置1は、候補となる露光時間(露光時間候補E1)の長さが第1の最大露光時間Emax1の長さ以上であり、且つ、予め定めた第2の最大露光時間Emax2の長さよりも短い場合、露光時間Eを当該候補となる露光時間に調整するとともに、出力画像サイズRをRfull(所定のサイズ)に調整する。
このような構成によれば、コードの読み取り精度を向上させるとともに、効率良くコードの読み取りを行うことができる。
Further, in the
According to such a configuration, the reading accuracy of the code can be improved and the code can be read efficiently.
また、コード読取装置1は、候補となる露光時間(露光時間候補E1)の長さが第2の最大露光時間Emax2の長さ以上である場合、露光時間Eを第2の最大露光時間Emax2に調整するとともに、出力画像サイズRをRhalf(所定のサイズの半分のサイズ)に調整する。
このような構成によれば、コードの読み取り精度を向上させるとともに、効率良くコードの読み取りを行うことができる。
Further, when the length of the candidate exposure time (exposure time candidate E1) is equal to or longer than the length of the second maximum exposure time Emax2, the
According to such a configuration, the reading accuracy of the code can be improved and the code can be read efficiently.
また、コード読取装置1は、イルミネーション215と、エイマー214と、を備え、撮像素子211にコードの画像を撮影させる際にイルミネーション215を点灯させ、撮像素子211により撮影されたコードの画像を転送(出力)させる際にエイマー214を点灯させるので、暗所でもコードの読み取り精度を向上させることができる。
Further, the
なお、本発明は、上記実施の形態に限られるものではなく、様々な変更が可能である。
例えば、上記実施の形態では、RAM13にDMA転送された画像データに基づいて、CPU11がコードのデコードを行ったが、イメージャコントローラ19が当該デコードの機能をASIC基板上に実装してハードウェア的に演算可能としても良い。
The present invention is not limited to the above embodiment, and various modifications can be made.
For example, in the above embodiment, the
また、上記実施の形態における可変焦点レンズとして、液体レンズ及びガラス等を用いた固体レンズを例に挙げたが、これらに限定されるものではない。例えば、印加電圧により屈折率が変化する「電気光学結晶」の一種であるKTN(タンタル酸ニオブ酸カリウム、KTa1−xNbxO3)を用いた可変焦点レンズも利用可能である。 Further, as the varifocal lens in the above embodiment, a liquid lens, a solid lens using glass or the like is given as an example, but the present invention is not limited thereto. For example, a varifocal lens using KTN (potassium niobate tantalate, KTa 1-x Nb x O 3 ), which is a kind of "electro-optical crystal" whose refractive index changes depending on the applied voltage, can also be used.
また、上記実施の形態では、本発明に係るプログラムのコンピューター読み取り可能な媒体として記憶部15(例えば、フラッシュメモリ、EEPROM、ハードディスク、ROM)を使用した例を開示したが、この例に限定されない。その他のコンピューター読み取り可能な媒体として、CD−ROM等の可搬型記録媒体を適用することが可能である。また、本発明に係るプログラムのデータを通信回線を介して提供する媒体として、キャリアウエーブ(搬送波)も本発明に適用される。 Further, in the above-described embodiment, an example in which the storage unit 15 (for example, flash memory, EEPROM, hard disk, ROM) is used as a computer-readable medium for the program according to the present invention has been disclosed, but the present invention is not limited to this example. As another computer-readable medium, a portable recording medium such as a CD-ROM can be applied. A carrier wave is also applied to the present invention as a medium for providing data of a program according to the present invention via a communication line.
また、上記実施の形態では、コードのデコードが成功した時点でコード読み取り処理を終了としたが、デコードに成功した際の露光時間E及び出力画像サイズRの設定値を引き継いで複数のコードを連続して読み取るようにしてもよい。
その他、上記実施の形態で示した数値、制御の順序などの具体的な細部は、本発明の趣旨を逸脱しない範囲において適宜変更可能である。
Further, in the above embodiment, the code reading process is terminated when the code decoding is successful, but the set values of the exposure time E and the output image size R when the decoding is successful are inherited and a plurality of codes are continuously connected. You may read it.
In addition, specific details such as the numerical values and the order of control shown in the above-described embodiment can be appropriately changed without departing from the spirit of the present invention.
本発明の実施形態を説明したが、本発明の範囲は、上述の実施の形態に限定するものではなく、特許請求の範囲に記載された発明の範囲とその均等の範囲を含む。
以下に、この出願の願書に最初に添付した特許請求の範囲に記載した発明を付記する。付記に記載した請求項の項番は、この出願の願書に最初に添付した特許請求の範囲の通りである。
Although the embodiments of the present invention have been described, the scope of the present invention is not limited to the above-described embodiments, but includes the scope of the invention described in the claims and the equivalent scope thereof.
The inventions described in the claims originally attached to the application of this application are added below. The item number of the claim described in the appendix is the scope of the claims originally attached to the application of this application.
[付記]
<請求項1>
光学的に読取可能なコードを読み取るコード読取装置であって、
前記コードの画像を撮影する撮像手段と、
前記撮像手段により撮影された前記コードの画像に基づいて、当該撮像手段による次回以降のコードの画像の撮影時の露光時間と当該次回以降のコードの画像の出力画像サイズとを調整する調整手段と、
前記次回以降のコードの画像の撮影時に、前記撮像手段が前記調整手段により調整された前記露光時間で撮影を行い、前記出力画像サイズのコードの画像を出力するよう制御する制御手段と、
を備えることを特徴とするコード読取装置。
<請求項2>
前記撮像手段により撮影された前記コードの画像に基づいて、当該コードをデコードするデコード手段を備え、
前記調整手段は、前記デコード手段によるデコードに失敗した場合、当該デコードの対象となったコードの画像に基づいて、前記露光時間と前記出力画像サイズとを調整することを特徴とする請求項1に記載のコード読取装置。
<請求項3>
前記デコードの対象となったコードの画像の輝度値に基づいて、前記次回以降のコードの画像の撮影時において候補となる露光時間を決定する決定手段を備え、
前記調整手段は、前記決定手段により決定された前記候補となる露光時間の長さが予め定めた最小露光時間の長さよりも短い場合、前記露光時間を当該最小露光時間に調整するとともに、前記出力画像サイズを所定のサイズに調整することを特徴とする請求項2に記載のコード読取装置。
<請求項4>
前記調整手段は、前記候補となる露光時間の長さが前記最小露光時間の長さ以上であり、且つ、予め定めた第1の最大露光時間の長さよりも短い場合、前記露光時間を当該候補となる露光時間に調整するとともに、前記出力画像サイズを前記所定のサイズに調整することを特徴とする請求項3に記載のコード読取装置。
<請求項5>
前記調整手段は、前記候補となる露光時間の長さが前記第1の最大露光時間の長さ以上であり、且つ、予め定めた第2の最大露光時間の長さよりも短い場合、前記露光時間を当該候補となる露光時間に調整するとともに、前記出力画像サイズを前記所定のサイズの半分のサイズに調整することを特徴とする請求項4に記載のコード読取装置。
<請求項6>
前記調整手段は、前記候補となる露光時間の長さが前記第2の最大露光時間の長さ以上である場合、前記露光時間を前記第2の最大露光時間に調整するとともに、前記出力画像サイズを前記所定のサイズの半分のサイズに調整することを特徴とする請求項5に記載のコード読取装置。
<請求項7>
撮影位置を照らす照明手段と、
撮影位置を案内するための発光手段と、
を備え、
前記制御手段は、前記撮像手段に前記コードの画像を撮影させる際に前記照明手段を点灯させ、前記撮像手段により撮影された前記コードの画像を出力させる際に前記発光手段を点灯させることを特徴とする請求項1〜6のいずれか一項に記載のコード読取装置。
<請求項8>
光学的に読取可能なコードの画像を撮影する撮像手段を備えるコード読取装置のコンピューターを、
前記撮像手段により撮影された前記コードの画像に基づいて、当該撮像手段による次回以降のコードの画像の撮影時の露光時間と当該次回以降のコードの画像の出力画像サイズとを調整する調整手段、
前記次回以降のコードの画像の撮影時に、前記撮像手段が前記調整手段により調整された前記露光時間で撮影を行い、前記出力画像サイズのコードの画像を出力するよう制御する制御手段、
として機能させることを特徴とするプログラム。
[Additional Notes]
<Claim 1>
A code reader that reads an optically readable code.
An imaging means for capturing an image of the code and
Based on the image of the code taken by the imaging means, the adjusting means for adjusting the exposure time at the time of shooting the image of the code after the next time by the imaging means and the output image size of the image of the code after the next time. ,
When the image of the code is taken from the next time onward, the image pickup means takes a picture with the exposure time adjusted by the adjusting means, and the control means for controlling to output the image of the code of the output image size.
A code reader comprising.
<Claim 2>
A decoding means for decoding the code based on the image of the code taken by the imaging means is provided.
The first aspect of the present invention is characterized in that, when decoding by the decoding means fails, the adjusting means adjusts the exposure time and the output image size based on the image of the code to be decoded. The code reader described.
<Claim 3>
A determination means for determining a candidate exposure time at the time of shooting the image of the code from the next time onward based on the brightness value of the image of the code to be decoded is provided.
When the length of the candidate exposure time determined by the determination means is shorter than the length of the predetermined minimum exposure time, the adjusting means adjusts the exposure time to the minimum exposure time and outputs the output. The code reading device according to
<Claim 4>
When the length of the exposure time as the candidate is equal to or greater than the length of the minimum exposure time and shorter than the length of the first maximum exposure time determined in advance, the adjusting means sets the exposure time as the candidate. The code reading device according to
<Claim 5>
When the length of the candidate exposure time is equal to or longer than the length of the first maximum exposure time and shorter than the length of the predetermined second maximum exposure time, the adjusting means said the exposure time. The code reading device according to claim 4, wherein the output image size is adjusted to half the size of the predetermined size while adjusting the exposure time to be the candidate exposure time.
<Claim 6>
When the length of the candidate exposure time is equal to or longer than the length of the second maximum exposure time, the adjusting means adjusts the exposure time to the second maximum exposure time and the output image size. The code reading device according to claim 5, wherein the size is adjusted to half the size of the predetermined size.
<Claim 7>
Lighting means to illuminate the shooting position and
Light emitting means for guiding the shooting position,
With
The control means is characterized in that the lighting means is turned on when the imaging means is made to take an image of the code, and the light emitting means is turned on when the image of the code taken by the taking image is output. The code reading device according to any one of
<Claim 8>
A computer of a code reader equipped with an imaging means for capturing an image of an optically readable code,
An adjusting means for adjusting the exposure time at the time of shooting the image of the code after the next time by the imaging means and the output image size of the image of the code after the next time based on the image of the code taken by the imaging means.
A control means for controlling the imaging means to take an image at the exposure time adjusted by the adjusting means and output an image of the code of the output image size when the image of the code of the next time or later is taken.
A program characterized by functioning as.
1 コード読取装置
11 CPU(調整手段、制御手段、デコード手段、決定手段)
211 撮像素子(撮像手段)
214 エイマー(発光手段)
215 イルミネーション(照明手段)
211 Image sensor (imaging means)
214 Aimer (light emitting means)
215 Illuminations (lighting means)
Claims (8)
前記コードの画像を撮影する撮像手段と、
前記撮像手段により撮影された前記コードの画像に基づいて、当該撮像手段による次回以降のコードの画像の撮影時の露光時間と当該次回以降のコードの画像の出力画像サイズとを調整する調整手段と、
前記次回以降のコードの画像の撮影時に、前記撮像手段が前記調整手段により調整された前記露光時間で撮影を行い、前記出力画像サイズのコードの画像を出力するよう制御する制御手段と、
を備えることを特徴とするコード読取装置。 A code reader that reads an optically readable code.
An imaging means for capturing an image of the code and
Based on the image of the code taken by the imaging means, the adjusting means for adjusting the exposure time at the time of shooting the image of the code after the next time by the imaging means and the output image size of the image of the code after the next time. ,
When the image of the code is taken from the next time onward, the image pickup means takes a picture with the exposure time adjusted by the adjusting means, and the control means for controlling to output the image of the code of the output image size.
A code reader comprising.
前記調整手段は、前記デコード手段によるデコードに失敗した場合、当該デコードの対象となったコードの画像に基づいて、前記露光時間と前記出力画像サイズとを調整することを特徴とする請求項1に記載のコード読取装置。 A decoding means for decoding the code based on the image of the code taken by the imaging means is provided.
The first aspect of the present invention is characterized in that, when decoding by the decoding means fails, the adjusting means adjusts the exposure time and the output image size based on the image of the code to be decoded. The code reader described.
前記調整手段は、前記決定手段により決定された前記候補となる露光時間の長さが予め定めた最小露光時間の長さよりも短い場合、前記露光時間を当該最小露光時間に調整するとともに、前記出力画像サイズを所定のサイズに調整することを特徴とする請求項2に記載のコード読取装置。 A determination means for determining a candidate exposure time at the time of shooting the image of the code from the next time onward based on the brightness value of the image of the code to be decoded is provided.
When the length of the candidate exposure time determined by the determination means is shorter than the length of the predetermined minimum exposure time, the adjusting means adjusts the exposure time to the minimum exposure time and outputs the output. The code reading device according to claim 2, wherein the image size is adjusted to a predetermined size.
撮影位置を案内するための発光手段と、
を備え、
前記制御手段は、前記撮像手段に前記コードの画像を撮影させる際に前記照明手段を点灯させ、前記撮像手段により撮影された前記コードの画像を出力させる際に前記発光手段を点灯させることを特徴とする請求項1〜6のいずれか一項に記載のコード読取装置。 Lighting means to illuminate the shooting position and
Light emitting means for guiding the shooting position,
With
The control means is characterized in that the lighting means is turned on when the imaging means is made to take an image of the code, and the light emitting means is turned on when the image of the code taken by the taking image is output. The code reading device according to any one of claims 1 to 6.
前記撮像手段により撮影された前記コードの画像に基づいて、当該撮像手段による次回以降のコードの画像の撮影時の露光時間と当該次回以降のコードの画像の出力画像サイズとを調整する調整手段、
前記次回以降のコードの画像の撮影時に、前記撮像手段が前記調整手段により調整された前記露光時間で撮影を行い、前記出力画像サイズのコードの画像を出力するよう制御する制御手段、
として機能させることを特徴とするプログラム。 A computer of a code reader equipped with an imaging means that captures an image of an optically readable code.
An adjusting means for adjusting the exposure time at the time of shooting the image of the code after the next time by the imaging means and the output image size of the image of the code after the next time based on the image of the code taken by the imaging means.
A control means for controlling the imaging means to take an image at the exposure time adjusted by the adjusting means and output an image of the code of the output image size when the image of the code of the next time or later is taken.
A program characterized by functioning as.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2019055903A JP7367314B2 (en) | 2019-03-25 | 2019-03-25 | Code reading device, code reading method and program |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2019055903A JP7367314B2 (en) | 2019-03-25 | 2019-03-25 | Code reading device, code reading method and program |
Publications (2)
Publication Number | Publication Date |
---|---|
JP2020160486A true JP2020160486A (en) | 2020-10-01 |
JP7367314B2 JP7367314B2 (en) | 2023-10-24 |
Family
ID=72643298
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2019055903A Active JP7367314B2 (en) | 2019-03-25 | 2019-03-25 | Code reading device, code reading method and program |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP7367314B2 (en) |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2004102762A (en) * | 2002-09-11 | 2004-04-02 | Casio Comput Co Ltd | Information reading device and program |
JP2004145630A (en) * | 2002-10-24 | 2004-05-20 | Denso Wave Inc | Optical information reader |
JP2004157812A (en) * | 2002-11-07 | 2004-06-03 | Casio Comput Co Ltd | Information reading device and program |
JP2005135149A (en) * | 2003-10-30 | 2005-05-26 | Casio Comput Co Ltd | Code information reader and program |
JP2005295313A (en) * | 2004-04-01 | 2005-10-20 | Sharp Corp | Cord reader, electronic equipment, and method and program for adjusting parameter |
JP2006293596A (en) * | 2005-04-08 | 2006-10-26 | Casio Comput Co Ltd | Code reader |
JP2016015147A (en) * | 2015-08-03 | 2016-01-28 | カシオ計算機株式会社 | Image processing apparatus and program |
-
2019
- 2019-03-25 JP JP2019055903A patent/JP7367314B2/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2004102762A (en) * | 2002-09-11 | 2004-04-02 | Casio Comput Co Ltd | Information reading device and program |
JP2004145630A (en) * | 2002-10-24 | 2004-05-20 | Denso Wave Inc | Optical information reader |
JP2004157812A (en) * | 2002-11-07 | 2004-06-03 | Casio Comput Co Ltd | Information reading device and program |
JP2005135149A (en) * | 2003-10-30 | 2005-05-26 | Casio Comput Co Ltd | Code information reader and program |
JP2005295313A (en) * | 2004-04-01 | 2005-10-20 | Sharp Corp | Cord reader, electronic equipment, and method and program for adjusting parameter |
JP2006293596A (en) * | 2005-04-08 | 2006-10-26 | Casio Comput Co Ltd | Code reader |
JP2016015147A (en) * | 2015-08-03 | 2016-01-28 | カシオ計算機株式会社 | Image processing apparatus and program |
Also Published As
Publication number | Publication date |
---|---|
JP7367314B2 (en) | 2023-10-24 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP5252023B2 (en) | Code reader and program | |
JP5234133B2 (en) | Code reader and program | |
EP2444917B1 (en) | Autofocusing optical imaging device | |
US9033241B2 (en) | Barcode reading apparatus and computer program product | |
JP2005084890A (en) | Optical information reader | |
CN109508569B (en) | Bar code reading device, image pickup method, and computer-readable storage medium | |
JP2014157519A (en) | Optical code reading system and reading control method of optical code | |
JP2002027047A (en) | Portable information terminal equipment | |
JP6658696B2 (en) | Barcode reader, control method and program therefor | |
JP7367314B2 (en) | Code reading device, code reading method and program | |
JP5737311B2 (en) | Code reader and program | |
JP6183421B2 (en) | Image processing apparatus and program | |
JP5794336B2 (en) | Image processing apparatus and program | |
JP2015212866A (en) | Optical information reader and optical information read method | |
JP5515887B2 (en) | Scanner device and program | |
JPWO2021065175A5 (en) | ||
JP2006129173A (en) | Camera system | |
JP6799279B2 (en) | Image acquisition device, image acquisition method, and program | |
JP5375980B2 (en) | Bar code reader and program | |
JP7230388B2 (en) | BARCODE READER, BARCODE READING METHOD AND PROGRAM | |
JP2012048441A (en) | Scanner device and program | |
JP2006222825A (en) | Image pickup device | |
JP2022046842A (en) | Terminal device and program | |
JP2019220219A (en) | Slip processing device, slip processing method and program | |
KR20110060062A (en) | System and method of connecting for local wireless communication and record media recorded program for realizing the same |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20220127 |
|
A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20230106 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20230117 |
|
A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20230201 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20230516 |
|
A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20230602 |
|
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: 20230912 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20230925 |
|
R150 | Certificate of patent or registration of utility model |
Ref document number: 7367314 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 |