JP6183421B2 - Image processing apparatus and program - Google Patents

Image processing apparatus and program Download PDF

Info

Publication number
JP6183421B2
JP6183421B2 JP2015153265A JP2015153265A JP6183421B2 JP 6183421 B2 JP6183421 B2 JP 6183421B2 JP 2015153265 A JP2015153265 A JP 2015153265A JP 2015153265 A JP2015153265 A JP 2015153265A JP 6183421 B2 JP6183421 B2 JP 6183421B2
Authority
JP
Japan
Prior art keywords
image
subject
focus control
focus
processing apparatus
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
JP2015153265A
Other languages
Japanese (ja)
Other versions
JP2016015147A (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 JP2015153265A priority Critical patent/JP6183421B2/en
Publication of JP2016015147A publication Critical patent/JP2016015147A/en
Application granted granted Critical
Publication of JP6183421B2 publication Critical patent/JP6183421B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Description

本発明は、画像処理装置及びプログラムに関する。   The present invention relates to an image processing apparatus and a program.

従来、スキャナ装置には、シンボルとしてのバーコードを撮像してスキャンする2次元のイメージャデバイスが用いられている。従来のイメージャデバイスは、固定焦点のレンズを用いていたため、高分解能のバーコードほど焦点の合う範囲が狭くなっており、バーコードをスキャンするための使い勝手がよくないおそれがあった。   Conventionally, a two-dimensional imager device that images and scans a barcode as a symbol is used in a scanner device. Since the conventional imager device uses a fixed-focus lens, the higher the resolution of the barcode, the narrower the focusing range, and there is a possibility that the convenience for scanning the barcode is not good.

それに対し、スキャナ装置に、焦点深度範囲を広げるために、カメラモジュールのようなオートフォーカス(Auto Focus)をイメージャデバイスとして搭載することも考えられるが、レンズ移動による物理的な焦点調整をしていること、焦点位置を探すためにレンズ移動により全範囲に焦点位置をずらしながら被写体の焦点位置を確認することなどが原因となり、ピントが合うまでに500ミリ秒以上の時間がかかってしまい、スキャナの操作性を悪化させてしまう。   On the other hand, in order to widen the depth of focus range in the scanner device, it may be possible to mount an auto focus such as a camera module as an imager device, but the physical focus is adjusted by moving the lens. In other words, the focus position of the subject is checked while shifting the focus position over the entire range by moving the lens to find the focus position, and it takes 500 milliseconds or more to focus. The operability is deteriorated.

近年、レンズの物理的移動無しに焦点調整のできる液体レンズが開発され、高速での焦点調整が可能になった。例えば、液体レンズの寿命を検知する装置として、液体レンズに電圧を印加して屈折率を変化させることによりコントラストの増減方向をチェックしながら、コントラストの最大点を求め、その最大点に焦点を合わせるべき被写体が存在するとして合焦点位置を求め、この合焦点位置における印加電圧と、予め定められた基準値との差分が所定量を越えた場合に、液体レンズが寿命である旨を検知する技術が知られている(例えば、特許文献1参照)。   In recent years, a liquid lens capable of adjusting the focus without physical movement of the lens has been developed, and it has become possible to adjust the focus at high speed. For example, as a device for detecting the life of a liquid lens, the maximum point of contrast is obtained while checking the direction of contrast increase / decrease by changing the refractive index by applying a voltage to the liquid lens, and focusing on the maximum point A technique for obtaining a focal position assuming that there is a subject to be detected, and detecting that the liquid lens is at the end of its life when a difference between an applied voltage at the focal position and a predetermined reference value exceeds a predetermined amount. Is known (see, for example, Patent Document 1).

特開2006−93805号公報JP 2006-93805 A

しかし、従来の液体レンズは、屈折率の異なる油/水の界面カーブによるレンズ構造となっているため、温度により粘性が変化することで焦点調整時間が異なっていた。また、液体レンズの個体差によっても焦点調整時間が異なっていた。   However, since the conventional liquid lens has a lens structure based on an oil / water interface curve having a different refractive index, the focus adjustment time varies depending on the viscosity depending on the temperature. Also, the focus adjustment time was different depending on the individual difference of the liquid lens.

本発明の課題は、被写体に焦点が合う前であってもその被写体に対する画像認識処理を速やかに開始することである。 An object of the present invention is to promptly start image recognition processing for a subject even before the subject is focused.

請求項1は、撮像手段により被写体を撮像して画像認識処理を行う画像処理装置であって、前記撮像手段で焦点位置を変化させることで前記被写体に焦点を合わせるための焦点制御を行う焦点制御手段と、前記被写体を画像認識する際は、前記焦点制御手段により前記被写体に焦点を合わせるための焦点制御を開始し、その開始後の焦点制御の過程において、前記撮像手段で撮像された前記被写体の撮像画像でのコントラスト値を逐次検出する検出手段と、前記焦点制御の過程において、前記検出手段で検出されたコントラスト値が所定条件に合致したか否かを逐次判別し、合致した場合には前記焦点制御手段による焦点制御で前記被写体に焦点が合う前であっても、前記被写体を撮像した撮像画像に対する前記画像認識処理を開始させる認識制御手段と、を具備したことを特徴とする。

Claim 1, by imaging a subject by the imaging means an image processing apparatus that performs image recognition processing, the focus control for focusing control for focusing on the object by changing the focal position in the imaging means And when the image of the subject is recognized, the focus control unit starts focus control for focusing on the subject, and the subject captured by the imaging unit in the focus control process after the start is performed. Detecting means for sequentially detecting the contrast value in the captured image, and in the process of the focus control, it is sequentially determined whether or not the contrast value detected by the detecting means matches a predetermined condition. even before the in focus on the subject in the focus control by the focus control means, sure to start the image recognition processing for the captured image captured the subject Characterized by comprising a control means.

本発明によれば、被写体に焦点が合う前であってもその被写体に対する画像認識処理を速やかに開始することができる。

According to the present invention, it is possible to quickly start image recognition processing for a subject even before the subject is focused.

本発明に係る実施の形態のスキャナ装置の正面の外観図である。1 is a front external view of a scanner device according to an embodiment of the present invention. スキャナ装置の機能構成を示すブロック図である。It is a block diagram which shows the function structure of a scanner apparatus. イメージャモジュールの構成を示す平面図である。It is a top view which shows the structure of an imager module. 液体レンズの焦点変化を示す図である。It is a figure which shows the focus change of a liquid lens. 近距離又は遠距離に置かれたバーコードのスキャンの様子を示す図である。It is a figure which shows the mode of the scanning of the barcode placed in the short distance or the long distance. (a)は、近距離の焦点位置のバーコードを撮像したフレーム画像を示す図である。(b)は、遠距離の焦点位置のバーコードを撮像したフレーム画像を示す図である。(A) is a figure which shows the frame image which imaged the barcode of the short distance focus position. (B) is a figure which shows the frame image which imaged the barcode of the focus position of a long distance. イメージャモジュールのピント調整における経過時間に対するピント位置を示す図である。It is a figure which shows the focus position with respect to the elapsed time in the focus adjustment of an imager module. フレーム画像と、エイマーの映像の位置と、を示す図である。It is a figure which shows a frame image and the position of the image | video of an aimer. 印加電圧テーブルの構成を示す図である。It is a figure which shows the structure of an applied voltage table. バーコード画像とエイマーの映像とを含むフレーム画像を示す図である。It is a figure which shows the frame image containing a barcode image and the image | video of Aimer. 常温時のイメージャモジュールのピント調整における経過時間に対するピント位置を示す図である。It is a figure which shows the focus position with respect to the elapsed time in the focus adjustment of the imager module at the normal temperature. 図11の点における切り出し画像を示す図である。It is a figure which shows the cut-out image in the point of FIG. CPUが実行するバーコード読み取り処理を示すフローチャートである。It is a flowchart which shows the barcode reading process which CPU performs. イメージャコントローラが実行するスキャン制御処理を示すフローチャートである。It is a flowchart which shows the scan control process which an imager controller performs.

以下、添付図面を参照して本発明に係る実施の形態を詳細に説明する。なお、本発明は、図示例に限定されるものではない。   Embodiments according to the present invention will be described below in detail with reference to the accompanying drawings. The present invention is not limited to the illustrated example.

先ず、図1を参照して、本実施の形態の装置の外観構成を説明する。図1に、本実施の形態のスキャナ装置1の正面の外観構成を示す。   First, the external configuration of the apparatus according to the present embodiment will be described with reference to FIG. FIG. 1 shows an external configuration of the front of the scanner device 1 according to the present embodiment.

本実施の形態のスキャナ装置1は、情報の入力受付け、情報の記憶、情報の送受信、及びバーコード読み取りなどの機能を有する携帯機器である。   The scanner device 1 according to the present embodiment is a portable device having functions such as information input reception, information storage, information transmission / reception, and barcode reading.

図1に示すように、スキャナ装置1は、筐体としてのケース2を備える。スキャナ装置1は、ケース2の正面に、トリガキー12Aと、各種キー12Bと、表示部14と、スピーカ18Aと、を備える。スキャナ装置1は、ケース2の側面に、トリガキー12Cを備える。また、スキャナ装置1は、ケース2の先端に、イメージャモジュール21を備える。スピーカ18Aは、バーコード読み取りのデコード成功時のブザー音等を出力する。   As shown in FIG. 1, the scanner device 1 includes a case 2 as a housing. The scanner device 1 includes a trigger key 12A, various keys 12B, a display unit 14, and a speaker 18A on the front surface of the case 2. The scanner device 1 includes a trigger key 12 </ b> C on the side surface of the case 2. The scanner device 1 also includes an imager module 21 at the tip of the case 2. The speaker 18A outputs a buzzer sound or the like at the time of successful decoding of barcode reading.

トリガキー12A,12Cは、イメージャモジュール21によるスキャン開始の入力を受け付けるトリガキーである。各種キー12Bは、数字、文字等の入力キー、機能キー等からなり、各種情報の入力を受け付ける。表示部14は、イメージャモジュール21を用いたバーコード読み取り時のスルー画面、デコード結果等の表示情報を表示する。   The trigger keys 12 </ b> A and 12 </ b> C are trigger keys that receive a scan start input from the imager module 21. The various keys 12B include input keys such as numbers and characters, function keys, and the like, and accept input of various information. The display unit 14 displays display information such as a through screen at the time of barcode reading using the imager module 21 and a decoding result.

次いで、図2を参照して、スキャナ装置1の内部の機能構成を説明する。図2に、スキャナ装置1の機能構成を示す。   Next, an internal functional configuration of the scanner device 1 will be described with reference to FIG. FIG. 2 shows a functional configuration of the scanner device 1.

図2に示すように、スキャナ装置1は、コントラスト検出部、デコード部及び転送部としてのCPU(central Processing Unit)11と、操作部12と、記憶部としてのRAM(Random Access Memory)13と、表示部14と、ROM(Read Only Memory)15と、通信部16と、フラッシュメモリ17と、音出力部18と、焦点調整部及び切り出し画像生成部としてのイメージャコントローラ19と、電圧昇圧部20と、イメージャモジュール21と、電源部22と、を備える。スキャナ装置1のイメージャモジュール21及び電源部22を除く各部は、バス23を介して接続されている。イメージャモジュール21は、撮像部としての撮像素子211と、可変焦点レンズとしての液体レンズ212と、スポット光照射部としてのエイマー213と、照明光照射部としてのイルミネーション214と、を有する。   As illustrated in FIG. 2, the scanner device 1 includes a central processing unit (CPU) 11 as a contrast detection unit, a decoding unit, and a transfer unit, an operation unit 12, and a RAM (Random Access Memory) 13 as a storage unit, A display unit 14, a ROM (Read Only Memory) 15, a communication unit 16, a flash memory 17, a sound output unit 18, an imager controller 19 as a focus adjustment unit and a cut-out image generation unit, and a voltage boosting unit 20 The imager module 21 and the power supply unit 22 are provided. Each unit of the scanner device 1 except for the imager module 21 and the power supply unit 22 is connected via a bus 23. The imager module 21 includes an imaging element 211 as an imaging unit, a liquid lens 212 as a variable focus lens, an aimer 213 as a spot light irradiation unit, and an illumination 214 as an illumination light irradiation unit.

CPU11は、スキャナ装置1の各部を制御する。CPU11は、ROM15からプログラムを読み出してRAM13に展開し、RAM13に展開されたプログラムとの協働で各種処理を実行する。具体的には、CPU11(コンピュータ)は、後述する図13の処理フローで示すプログラムを実行する。   The CPU 11 controls each part of the scanner device 1. The CPU 11 reads a program from the ROM 15 and develops it in the RAM 13, and executes various processes in cooperation with the program developed in the RAM 13. Specifically, the CPU 11 (computer) executes a program shown in the processing flow of FIG.

CPU11は、バーコード読み取りプログラム151に従って、イメージャコントローラ19に、液体レンズ212を介してバーコードを撮像素子211に撮像させてエイマー213の光の映像を含む切り出し画像の画像データを出力させるとともに、エイマー213の光の映像から液体レンズ212の焦点位置に対応する電圧を液体レンズ212に印加させる。また、CPU11は、イメージャコントローラ19に入力された画像データの光像のコントラストを算出し、そのコントラストが所定値以上になった又は所定時間を経過した場合に、液体レンズ212を介してバーコードを撮像素子211に撮像させてフレーム画像の画像データを出力させるとともに、当該画像データに含まれるバーコード画像をデコードする。   In accordance with the barcode reading program 151, the CPU 11 causes the imager controller 19 to output the image data of the cut-out image including the image of the light of the aimer 213 by causing the image sensor 211 to image the barcode via the liquid lens 212. A voltage corresponding to the focal position of the liquid lens 212 is applied to the liquid lens 212 from the image of the light 213. Further, the CPU 11 calculates the contrast of the optical image of the image data input to the imager controller 19, and when the contrast exceeds a predetermined value or a predetermined time elapses, the CPU 11 calculates the barcode via the liquid lens 212. The image pickup device 211 causes the image pickup device 211 to output image data of a frame image and decodes a barcode image included in the image data.

また、CPU11は、撮像素子211からイメージャコントローラ19に入力された画像のラインデータを、RAM13にDMA(Direct Memory Access)転送し記憶させるDMA転送機能を有する。なお、DMA転送機能は、イメージャコントローラ19が有する構成としてもよい。   In addition, the CPU 11 has a DMA transfer function for transferring line data of an image input from the image sensor 211 to the imager controller 19 and storing it in the RAM 13 by DMA (Direct Memory Access). Note that the DMA transfer function may be included in the imager controller 19.

操作部12は、各種キー12B、トリガキー12A,12C等のキー群を有し、当該キー群の各キーへの押下入力を受け付け、その操作情報をCPU11に出力する。   The operation unit 12 includes a key group such as various keys 12B and trigger keys 12A and 12C, receives a pressing input to each key of the key group, and outputs the operation information to the CPU 11.

RAM13は、揮発性の半導体メモリであり、各種データ及び各種プログラムを格納するワークエリアを有する。   The RAM 13 is a volatile semiconductor memory and has a work area for storing various data and various programs.

表示部14は、LCD(Liquid Crystal Display)、EL(electroluminescent)ディスプレイ等で構成され、各種情報を表示する。   The display unit 14 includes an LCD (Liquid Crystal Display), an EL (electroluminescent) display, and the like, and displays various types of information.

ROM15は、読み出し専用の半導体メモリである。ROM15には、バーコード読み取りプログラム151が記憶されている。   The ROM 15 is a read-only semiconductor memory. The ROM 15 stores a barcode reading program 151.

通信部16は、通信アンテナ、信号処理部、変調部、復調部等を備え、アクセスポイントを介してサーバ装置と通信する無線通信部である。通信部16は、送信情報の信号を信号処理部で処理し、変調部で変調して通信アンテナから電波としてアクセスポイントに送信情報を無線送信する。また、通信部16は、通信アンテナによりアクセスポイントから送信された電波を受信して復調部で復調し、その信号を信号処理部で信号処理して受信情報を取得する。   The communication unit 16 includes a communication antenna, a signal processing unit, a modulation unit, a demodulation unit, and the like, and is a wireless communication unit that communicates with a server device via an access point. The communication unit 16 processes a signal of transmission information with a signal processing unit, modulates the signal with a modulation unit, and wirelessly transmits the transmission information as a radio wave from the communication antenna to the access point. In addition, the communication unit 16 receives radio waves transmitted from the access point through the communication antenna, demodulates them by the demodulation unit, and performs signal processing on the signals by the signal processing unit to obtain reception information.

また、通信部16は、携帯電話通信方式により、基地局を介してサーバ装置と無線通信する無線通信部としてもよい。また、通信部16は、スキャナ装置1を載置するクレードルを介してサーバ装置と有線通信する有線通信部としてもよい。   Moreover, the communication part 16 is good also as a radio | wireless communication part which carries out radio | wireless communication with a server apparatus via a base station by a mobile telephone communication system. The communication unit 16 may be a wired communication unit that performs wired communication with the server device via a cradle on which the scanner device 1 is placed.

フラッシュメモリ17は、各種データを読み出し及び書き込み可能な不揮発性の半導体メモリである。   The flash memory 17 is a nonvolatile semiconductor memory that can read and write various data.

音出力部18は、音源部、アンプ、スピーカ18Aを備え、デコード成功時のブザー音を出力する。音出力部18は、CPU11から入力されたブザー音出力の指示に応じて、音源部でブザー音の信号を生成し、アンプで増幅して、スピーカ18Aから音出力する。   The sound output unit 18 includes a sound source unit, an amplifier, and a speaker 18A, and outputs a buzzer sound when decoding is successful. In response to a buzzer sound output instruction input from the CPU 11, the sound output unit 18 generates a buzzer sound signal in the sound source unit, amplifies it with an amplifier, and outputs the sound from the speaker 18A.

イメージャコントローラ19は、イメージャモジュール21及び電圧昇圧部20の制御部である。イメージャコントローラ19は、ASIC(Application Specific Integrated Circuit)等の半導体回路により構成されている。   The imager controller 19 is a control unit for the imager module 21 and the voltage booster 20. The imager controller 19 is configured by a semiconductor circuit such as an ASIC (Application Specific Integrated Circuit).

イメージャコントローラ19は、撮像素子211から、キャプチャされた画像データの1フレームの出力タイミングに同期したフレーム同期信号と、画像データの1ラインの出力タイミングに同期したライン同期信号と、画像データに同期するためのクロック信号と、が入力される。イメージャコントローラ19は、これらフレーム同期信号、ライン同期信号及びクロック信号に基づいて、RAM13への画像データの転送タイミングを監視する。そして、イメージャコントローラ19は、監視状況に応じて液体レンズ212駆動用の電圧昇圧部20の昇圧レベルをPWM(Pulse Width Modulation)信号でコントロールすることにより液体レンズ212の焦点をリアルタイムに変化させる。   The imager controller 19 synchronizes with the image data from the image sensor 211, the frame synchronization signal synchronized with the output timing of one frame of the captured image data, the line synchronization signal synchronized with the output timing of one line of the image data, and the image data. And a clock signal for input. The imager controller 19 monitors the transfer timing of the image data to the RAM 13 based on the frame synchronization signal, line synchronization signal, and clock signal. Then, the imager controller 19 changes the focus of the liquid lens 212 in real time by controlling the boost level of the voltage booster 20 for driving the liquid lens 212 with a PWM (Pulse Width Modulation) signal according to the monitoring situation.

また、イメージャコントローラ19は、入力される画像データの画像領域を指定する画像領域指定信号を生成して撮像素子211に出力する。   Further, the imager controller 19 generates an image area designation signal that designates an image area of the input image data, and outputs the image area designation signal to the image sensor 211.

電圧昇圧部20は、イメージャコントローラ19から入力されたPWM信号に応じて、液体レンズ212に電圧を印加する。   The voltage booster 20 applies a voltage to the liquid lens 212 in accordance with the PWM signal input from the imager controller 19.

イメージャモジュール21は、焦点を調整してバーコードを撮影するモジュールである。撮像素子211は、CMOS(Complementary Metal Oxide Semiconductor Image Sensor:相補性金属酸化膜半導体)イメージセンサであり、画像領域を指定して画像データを出力することが可能な撮像素子である。撮像素子211は、液体レンズ212を含む光学系を介して入射された被写体像を露光し光電変換して被写体の画像データの電気信号に変換する。   The imager module 21 is a module that takes a barcode by adjusting the focus. The imaging element 211 is a complementary metal oxide semiconductor image sensor (CMOS) image sensor, and is an imaging element that can output image data by designating an image region. The image sensor 211 exposes a subject image incident through an optical system including the liquid lens 212, photoelectrically converts the subject image into an electrical signal of image data of the subject.

撮像素子211は、イメージャコントローラ19から入力された画像領域指定信号により指定されたラインの画像データを1ラインずつラインデータとしてイメージャコントローラ19に出力する。また、撮像素子211は、フレーム同期信号と、ライン同期信号と、クロック信号と、をイメージャコントローラ19に出力する。液体レンズ212は、イメージャモジュール21の光学系の一部を構成する光学素子であり、印加電圧に応じて高速で焦点位置を変更可能な可変焦点レンズである。液体レンズ212については、詳細に後述する。   The image sensor 211 outputs the image data of the line designated by the image area designation signal input from the imager controller 19 to the imager controller 19 as line data line by line. Further, the image sensor 211 outputs a frame synchronization signal, a line synchronization signal, and a clock signal to the imager controller 19. The liquid lens 212 is an optical element that constitutes a part of the optical system of the imager module 21, and is a variable focus lens that can change a focal position at high speed according to an applied voltage. The liquid lens 212 will be described later in detail.

エイマー213は、LD(LASER Diode)等の光源により構成され、被写体にイメージャモジュール21を向けるための基準となるスポット光(目標光)としてのレーザ光を被写体又はその近傍に出射する。イルミネーション214は、LED(Light Emitting Diode)等の光源により構成され、被写体及びその周囲の領域を明るくするための照射光(イルミネーション光とする)を出射する。   The aimer 213 is composed of a light source such as an LD (LASER Diode), and emits laser light as spot light (target light) serving as a reference for directing the imager module 21 toward the subject to or near the subject. The illumination 214 includes a light source such as an LED (Light Emitting Diode), and emits irradiation light (referred to as illumination light) for brightening the subject and the surrounding area.

電源部22は、二次電池等で構成され、スキャナ装置1の各部に電力供給を行う。   The power supply unit 22 is composed of a secondary battery or the like, and supplies power to each unit of the scanner device 1.

次いで、図3を参照して、イメージャモジュール21の各部の配置を詳細に説明する。図3に、イメージャモジュール21の平面構成を示す。   Next, the arrangement of each part of the imager module 21 will be described in detail with reference to FIG. FIG. 3 shows a planar configuration of the imager module 21.

図3に示すように、イメージャモジュール21において、液体レンズ212を含む光学系の光軸に対応する位置に撮像素子211が配置されている。また、液体レンズ212を含む光学系212Aの横に、エイマー213及びイルミネーション214が配置されている。エイマー213のレーザ光がイメージャモジュール21(光学系及び撮像素子211)の画角内に含まれるように、エイマー213が配置されている。また、イルミネーション214の扇状に広がる光がイメージャモジュール21(光学系及び撮像素子211)の画角を含むように、イルミネーション214が配置されている。   As shown in FIG. 3, in the imager module 21, the image sensor 211 is disposed at a position corresponding to the optical axis of the optical system including the liquid lens 212. Further, an aimer 213 and an illumination 214 are arranged beside the optical system 212A including the liquid lens 212. The aimer 213 is arranged so that the laser beam of the aimer 213 is included within the angle of view of the imager module 21 (the optical system and the image sensor 211). The illumination 214 is arranged so that the fan-shaped light of the illumination 214 includes the angle of view of the imager module 21 (optical system and image sensor 211).

エイマー213は、エイマー光が画角方向に平行に照射されるように実装されている。このため、扇状に広がるイメージャモジュール21の画角に対するエイマー213の位置が距離によって異なる。   The aimer 213 is mounted so that aimer light is irradiated in parallel to the angle of view. For this reason, the position of the aimer 213 with respect to the angle of view of the imager module 21 spreading in a fan shape varies depending on the distance.

次いで、図4を参照して、液体レンズ212を詳細に説明する。図4に、印加電圧の変化による液体レンズ212の焦点変化を示す。図4に、液体レンズ212の焦点変化を示す。   Next, the liquid lens 212 will be described in detail with reference to FIG. FIG. 4 shows a change in focus of the liquid lens 212 due to a change in applied voltage. FIG. 4 shows the change in focus of the liquid lens 212.

図4に示すように、液体レンズ212は、液体部2121,2122と、容器2123と、電極2124と、を有する。液体部2121,2122は、互いに屈折率が異なり比重が同じ水溶液及び油である。容器2123は、液体部2121,2122を密閉した容器である。電極2124は、電圧を印加するために液体部2121,2122の周囲に設けられている電極である。   As shown in FIG. 4, the liquid lens 212 includes liquid portions 2121 and 2122, a container 2123, and an electrode 2124. The liquid parts 2121 and 2122 are an aqueous solution and oil having different refractive indexes and the same specific gravity. The container 2123 is a container in which the liquid parts 2121 and 2122 are sealed. The electrode 2124 is an electrode provided around the liquid parts 2121 and 2122 in order to apply a voltage.

液体部2121側の電極2124と、液体部2122側の電極2124との間に、電源30が接続されている構成を考える。電源30により、液体部2121側の電極2124と、液体部2122側の電極2124との間に電圧を印加することで、液体部2121,2122の中央部分の界面がレンズのように湾曲することでレンズ機能を実現する。また、電源30の印加電圧を高くすることで、液体部2121,2122の中央部分の界面の湾曲が大きくなる。界面の湾曲が小さい場合に、液体レンズ212の焦点が遠方の距離の位置に合う。界面の湾曲が大きくなると、液体レンズ212の焦点も近接の距離の位置に合う。   Consider a configuration in which the power supply 30 is connected between an electrode 2124 on the liquid part 2121 side and an electrode 2124 on the liquid part 2122 side. By applying a voltage between the electrode 2124 on the liquid part 2121 side and the electrode 2124 on the liquid part 2122 side by the power supply 30, the interface at the central part of the liquid parts 2121 and 2122 is curved like a lens. Realize the lens function. Further, by increasing the applied voltage of the power source 30, the curvature of the interface at the central portion of the liquid parts 2121 and 2122 becomes larger. When the curvature of the interface is small, the focus of the liquid lens 212 is adjusted to a position at a far distance. When the curvature of the interface increases, the focus of the liquid lens 212 matches the position of a close distance.

また、液体レンズ212にかかる電圧の大きさに応じてレンズ曲率が変化するため、従来のオートフォーカス機構のようなレンズの移動が発生しないまま、電気的に高速に液体レンズ212のレンズ曲率を変化することができる。このように、印加電圧の調整によるレンズ曲率変化により、液体レンズ212の焦点調整を行うことができる。そのため、従来のオートフォーカス機構と比べ、焦点変更にかかる時間が短くなるという利点がある。このように、液体レンズ212の特長として、印加する電圧レベルに応じてレンズ曲率が変化できることと、物理的な可動部がないため耐久性が高いことと、印加電圧レベルは高電圧だが電流が流れないため消費電力が少ないことと、が挙げられる。   In addition, since the lens curvature changes according to the voltage applied to the liquid lens 212, the lens curvature of the liquid lens 212 changes electrically at high speed without causing the lens to move as in the conventional autofocus mechanism. can do. Thus, the focus adjustment of the liquid lens 212 can be performed by the lens curvature change by adjusting the applied voltage. Therefore, there is an advantage that the time required for changing the focus is shortened as compared with the conventional autofocus mechanism. As described above, the liquid lens 212 is characterized by the fact that the lens curvature can be changed according to the applied voltage level, the durability is high because there is no physical moving part, and the applied voltage level is high but the current flows. Because there is no power consumption, it can be mentioned.

次いで、図5及び図6を参照して、撮像素子211により撮像された画像内のエイマー光の位置と、イメージャモジュール21から被写体までの距離と、の関係を説明する。図5に、近距離又は遠距離に置かれたバーコード41のスキャンの様子を示す。図6(a)に、焦点位置Aのバーコード41を撮像したフレーム画像q1を示す。図6(b)に、焦点位置Bのバーコード41を撮像したフレーム画像q2を示す。   Next, the relationship between the position of the aimer light in the image captured by the image sensor 211 and the distance from the imager module 21 to the subject will be described with reference to FIGS. FIG. 5 shows how the bar code 41 is scanned at a short distance or a long distance. FIG. 6A shows a frame image q1 in which the barcode 41 at the focal position A is captured. FIG. 6B shows a frame image q2 obtained by capturing the barcode 41 at the focal position B.

図5に示すように、スキャナ装置1(イメージャモジュール21)からの焦点距離が近距離である焦点位置Aと、焦点距離が遠距離の焦点位置Bと、にバーコード41が置かれているものとする。一例として、この焦点位置A及び焦点位置Bに置かれたバーコード41に対して、スキャナ装置1により画像キャプチャ及びデコードを行うケースを説明する。   As shown in FIG. 5, a barcode 41 is placed at a focal position A having a short focal distance from a scanner apparatus 1 (imager module 21) and a focal position B having a long focal distance. And As an example, a case will be described in which the scanner 41 performs image capture and decoding on the barcode 41 placed at the focal position A and the focal position B.

スキャナ装置1によりバーコード41を近接(焦点位置A)から読み取る場合、撮像素子211の画角に対してバーコード画像の相対サイズが大きくなるため、焦点位置Aの画像領域までバーコードイメージが大きくなったイメージとなり、焦点位置Aの画像領域でデコードが可能となる。図6(a)に示すように、バーコード41を近距離に置いた場合のフレーム画像q1は、バーコード画像Q1と、エイマー213のレーザ光の映像E1と、を含む。映像E1がバーコード画像Q1の端に位置しており、読み取りターゲットのバーコード41が近くにあることを示す。   When the barcode 41 is read from the proximity (focal position A) by the scanner device 1, the barcode image has a relatively large size with respect to the angle of view of the image sensor 211. Thus, the image can be decoded in the image area at the focal position A. As shown in FIG. 6A, the frame image q1 when the barcode 41 is placed at a short distance includes the barcode image Q1 and the image E1 of the laser light of the aimer 213. The image E1 is located at the end of the barcode image Q1, indicating that the barcode 41 of the reading target is nearby.

反対に、スキャナ装置1によりバーコード41を遠方(焦点位置B)から読み取る場合、撮像素子211の画角に対するバーコード画像の相対サイズが小さいため、焦点位置Bの画像領域に収まるような小さなサイズのイメージとなり、焦点位置Bの画像領域でデコードが可能となる。図6(b)に示すように、バーコード41を遠距離に置いた場合のフレーム画像q2は、バーコード画像Q2と、エイマー213のレーザ光の映像E2と、を含む。映像E2は、バーコード画像Q2の外側にあるが、バーコード画像Q2が小さいためである。フレーム画像q2の中心から映像E2までの距離は、フレーム画像q1の中心から映像E1までの距離より小さい。   On the other hand, when the barcode 41 is read from a distance (focal position B) by the scanner device 1, the relative size of the barcode image with respect to the angle of view of the image sensor 211 is small, so that the size is small enough to fit in the image area at the focal position B. And can be decoded in the image area at the focal position B. As shown in FIG. 6B, the frame image q2 when the barcode 41 is placed at a long distance includes the barcode image Q2 and the image E2 of the laser light of the aimer 213. This is because the video E2 is outside the barcode image Q2, but the barcode image Q2 is small. The distance from the center of the frame image q2 to the video E2 is smaller than the distance from the center of the frame image q1 to the video E1.

このように、フレーム画像の大きさを同じにした場合に、フレーム画像の中心からエイマー213のレーザ光の映像までの距離が大きくなるほど、スキャナ装置1から被写体(バーコード41)までの距離が大きくなっている。このことから、フレーム画像中のエイマーの映像位置によりターゲットのバーコードまでの距離を測定することができるため、それに合わせて液体レンズ212の焦点を調整することが可能となる。   As described above, when the frame images have the same size, the distance from the center of the frame image to the laser beam image of the aimer 213 increases, and the distance from the scanner device 1 to the subject (barcode 41) increases. It has become. From this, the distance to the target barcode can be measured from the image position of the aimer in the frame image, and the focus of the liquid lens 212 can be adjusted accordingly.

次いで、図7を参照して、液体レンズ212の温度変化におけるイメージャモジュール21のピント位置(焦点位置)調整を説明する。図7に、イメージャモジュール21のピント調整における経過時間に対するピント位置を示す。   Next, with reference to FIG. 7, adjustment of the focus position (focus position) of the imager module 21 when the temperature of the liquid lens 212 changes will be described. FIG. 7 shows the focus position with respect to the elapsed time in the focus adjustment of the imager module 21.

図7に示すように、液体レンズ212の環境温度を高温、常温、低温のように変化させた場合を考える。液体レンズ212に所定の電圧を印加することにより、イメージャモジュール21のピント位置を、ピントが合うピント調整ターゲット位置に調整するまでの時間は、温度に応じて異なる。というのは、液体レンズ212の特性である温度による曲率変化速度のバラツキがあるためである。環境温度が低いほど、ピント調整ターゲット位置にピント位置が安定する時間が大きくなる。つまり、常温、高温時においても、低温時における最大変化時間分の待ち時間が必要である。   Consider the case where the environmental temperature of the liquid lens 212 is changed to high temperature, normal temperature, and low temperature as shown in FIG. By applying a predetermined voltage to the liquid lens 212, the time until the focus position of the imager module 21 is adjusted to the focused focus adjustment target position varies depending on the temperature. This is because there is variation in the rate of curvature change with temperature, which is a characteristic of the liquid lens 212. The lower the environmental temperature, the longer the time during which the focus position is stabilized at the focus adjustment target position. That is, a waiting time corresponding to the maximum change time at a low temperature is required even at a normal temperature and a high temperature.

次に、図8及び図9を参照して、フラッシュメモリ17に記憶されている情報を説明する。図8に、フレーム画像qと、エイマー213の映像Ea,Ebの位置と、を示す。図9に、印加電圧テーブル171の構成を示す。   Next, information stored in the flash memory 17 will be described with reference to FIGS. FIG. 8 shows the frame image q and the positions of the images Ea and Eb of the aimer 213. FIG. 9 shows the configuration of the applied voltage table 171.

図8に示すように、スキャナ装置1における撮像素子211のフレーム画像qにx軸及びy軸をとり、x座標及びy座標を考える。ターゲットのバーコードがイメージャモジュール21から遠いときのエイマー213の映像Eaの座標を(xa,ye)とする。ターゲットのバーコードがイメージャモジュール21から近いときのエイマー213の映像Ebの座標を(xb,ye)とする。また、フレーム画像qのうち、少なくとも全ての距離のエイマー213の映像を含むことが可能な、映像及びその周辺の領域の画像を切り出し領域画像F1とする。領域画像F1の左上及び右上の座標を、順に、(x1,y1)、(x2,y2)とする。   As shown in FIG. 8, the x-axis and y-axis are taken in the frame image q of the image sensor 211 in the scanner device 1 and the x-coordinate and y-coordinate are considered. Assume that the coordinates of the image Ea of the aimer 213 when the target barcode is far from the imager module 21 are (xa, ye). Assume that the coordinates of the video Eb of the aimer 213 when the target barcode is close to the imager module 21 are (xb, ye). In addition, in the frame image q, an image of a video and its surrounding area that can include the video of the aimer 213 at least at all distances is defined as a cut-out area image F1. The coordinates of the upper left and upper right of the area image F1 are (x1, y1) and (x2, y2) in this order.

図9に示すように、フレーム画像qにおけるエイマー213の映像のx座標に対応る適切な液体レンズ212への印加電圧を定義した印加電圧テーブル171を説明する。印加電圧テーブル171は、フレーム画像qにおけるエイマー213の映像のx座標であるエイマー位置1711と、エイマー位置1711に対応して、ターゲットに焦点を合わせる適切な液体レンズ212への印加電圧である印加電圧1712と、の項目を各エイマー位置毎に予め記憶している。   As shown in FIG. 9, an applied voltage table 171 that defines the applied voltage to the appropriate liquid lens 212 corresponding to the x coordinate of the image of the aimer 213 in the frame image q will be described. The applied voltage table 171 includes an aimer position 1711 that is an x coordinate of the image of the aimer 213 in the frame image q, and an applied voltage that is an applied voltage to an appropriate liquid lens 212 that focuses on the target corresponding to the aimer position 1711. 1712 is stored in advance for each aimer position.

フラッシュメモリ17には、予め、印加電圧テーブル171と、切り出し領域画像F1の座標(x1,y1)、(x2,y2)と、が記憶されている。印加電圧テーブル171と、座標(x1,y1)、(x2,y2)とは、出荷時のキャリブレーションにより設定されて記憶される。切り出し領域画像F1は、ターゲットのバーコードがイメージャモジュール21から遠いときのエイマー213の映像Eaの座標(xa,ye)、及び、ターゲットのバーコードがイメージャモジュール21から近いときのエイマー213の映像Ebの座標(xb,ye)を含む範囲である。   The flash memory 17 stores in advance an applied voltage table 171 and coordinates (x1, y1) and (x2, y2) of the cutout region image F1. The applied voltage table 171 and the coordinates (x1, y1), (x2, y2) are set and stored by calibration at the time of shipment. The cut-out area image F1 includes the coordinates (xa, ye) of the image Ea of the aimer 213 when the target barcode is far from the imager module 21, and the image Eb of the aimer 213 when the target barcode is close to the imager module 21. Is a range including the coordinates (xb, ye).

次に、図10〜図13を参照して、スキャナ装置1の動作を説明する。先ず、図10〜図12を参照して、本実施の形態の液体レンズ212の焦点調整の概要を説明する。図10に、バーコード画像Q3とエイマー213の映像E3とを含むフレーム画像q3を示す。図11に、常温時のイメージャモジュール21のピント調整における経過時間に対するピント位置を示す。図12に、図11の点P1,P2,P3における切り出し画像p1,p2,p3を示す。   Next, the operation of the scanner device 1 will be described with reference to FIGS. First, an outline of focus adjustment of the liquid lens 212 according to the present embodiment will be described with reference to FIGS. FIG. 10 shows a frame image q3 including the barcode image Q3 and the video E3 of the aimer 213. FIG. 11 shows the focus position with respect to the elapsed time in the focus adjustment of the imager module 21 at normal temperature. FIG. 12 shows cut-out images p1, p2, and p3 at points P1, P2, and P3 in FIG.

環境温度が常温時に、スキャナ装置1から任意の距離にあるバーコード41をスキャンするケースを考える。図10に示すように、スキャナ装置1により、初期状態において、バーコード画像Q3とエイマー213の映像E31とを含むフレーム画像q3が得られる。   Consider a case in which a barcode 41 at an arbitrary distance from the scanner device 1 is scanned when the ambient temperature is normal. As shown in FIG. 10, the scanner device 1 obtains a frame image q3 including a barcode image Q3 and a video E31 of the aimer 213 in the initial state.

一方、図11に示すように、常温時のイメージャモジュール21のピント調整における経過時間に対するピント位置の曲線において、予め、デコード可能なピント範囲が設定されている。そして、ピント調整開始からデコード可能なピント範囲までの間に、順に、点P1,P2,P3をとる。   On the other hand, as shown in FIG. 11, a decodable focus range is set in advance in a curve of a focus position with respect to an elapsed time in focus adjustment of the imager module 21 at normal temperature. Then, points P1, P2, and P3 are taken in order from the focus adjustment start to the decodable focus range.

スキャナ装置1は、ピント調整開始からフレーム画像を繰り返し取得していくとともに、各フレーム画像から図8の座標(x1,y1)から座標(x2,y2)までで決定される領域を切り出して切り出し画像を取得する。図12に示すように、点P1,P2,P3に対応して、切り出し画像p1,p2,p3を取得する。切り出し画像p1,p2,p3は、順に、エイマー213の映像E31,E32,E33を含む。ピント調整開始時のフレーム画像q3の切り出し画像は、切り出し画像p1であるものとする。   The scanner apparatus 1 repeatedly acquires frame images from the start of focus adjustment, and cuts out an area determined from the coordinates (x1, y1) to the coordinates (x2, y2) in FIG. 8 from each frame image. To get. As shown in FIG. 12, cut-out images p1, p2, and p3 are acquired corresponding to the points P1, P2, and P3. The cut-out images p1, p2, and p3 include the images E31, E32, and E33 of the aimer 213 in order. It is assumed that the cutout image of the frame image q3 at the start of focus adjustment is the cutout image p1.

先ず、スキャナ装置1は、ピント調整開始し、フレーム画像q3の切り出し画像p1から、映像E31の位置(エイマー位置)を検出し、映像E31のエイマー位置に対応する、スキャナ装置1から被写体のバーコード位置までの距離を推定する。実際には、スキャナ装置1は、推定した距離に合うように液体レンズの焦点を調整するため、印加電圧テーブル171を用いて、映像E31のエイマー位置に対応する液体レンズ212への印加電圧を設定する。そして、スキャナ装置1は、推定された印加電圧を液体レンズ212に印加し、液体レンズ212が変化している間に、フレーム画像を取得してエイマー213の映像を含む切り出し画像を取得することを繰り返し、切り出し画像中の映像のコントラストを監視する。焦点が合っていない間は、映像のスポット形状の輪郭はぼやけているが、焦点が合ってくるとはっきりとしてくる。スキャナ装置1は、切り出し画像のコントラストが予め設定された一定値以上であるか否かを判別する。   First, the scanner device 1 starts focus adjustment, detects the position (aimer position) of the video E31 from the cut-out image p1 of the frame image q3, and the barcode of the subject from the scanner device 1 corresponding to the aimer position of the video E31. Estimate the distance to the position. In practice, the scanner device 1 sets the applied voltage to the liquid lens 212 corresponding to the aimer position of the image E31 using the applied voltage table 171 in order to adjust the focus of the liquid lens so as to match the estimated distance. To do. Then, the scanner device 1 applies the estimated applied voltage to the liquid lens 212, acquires a frame image and acquires a cut-out image including the image of the aimer 213 while the liquid lens 212 is changing. Repeatedly, the contrast of the video in the clipped image is monitored. While the image is out of focus, the contour of the spot shape of the image is blurred, but it becomes clear when the image is in focus. The scanner device 1 determines whether or not the contrast of the cut-out image is equal to or higher than a predetermined value set in advance.

例えば、切り出し画像のコントラストが一定値よりも小さいと、切り出し画像p1,p2に示すように、映像E31,E32がぼやけており、ピント(焦点位置)が合っていない。そして、スキャナ装置1は、切り出し画像のコントラストが一定値以上になると、ピント(焦点位置)がほぼ合っているものとして、その焦点距離でエイマー213を消灯し、イルミネーション214を点灯して、バーコードを撮像し、得られるフレーム画像中のバーコード画像をデコードする。例えば、切り出し画像のコントラストが一定値以上になると、切り出し画像p3に示すように、映像E33の輪郭がはっきりしている。   For example, when the contrast of the cutout image is smaller than a certain value, the images E31 and E32 are blurred and are not in focus (focus position) as shown in the cutout images p1 and p2. Then, when the contrast of the cut-out image exceeds a certain value, the scanner device 1 assumes that the focus (focus position) is almost in focus, turns off the aimer 213 at the focal length, turns on the illumination 214, and displays the barcode. And the barcode image in the obtained frame image is decoded. For example, when the contrast of the cutout image becomes a certain value or more, the outline of the video E33 is clear as shown in the cutout image p3.

また、スキャナ装置1は、焦点調整開始から切り出し画像のコントラストの監視が予め設定された一定時間経過すると、液体レンズ212の焦点変化待ちを終了し、ピント(焦点位置)がほぼ合っているものとみなして、上記バーコードスキャン及びデコードを行う。この一定時間とは、想定される環境温度が最も低い場合に対応してピント位置が最初にピント調整ターゲット位置になる時間である。環境温度が、この一定時間に対応する温度以上となるので、ピント位置がピント調整ターゲット位置になる時間は、この一定時間以下となるからである。   Further, the scanner device 1 ends the waiting for a focus change of the liquid lens 212 after a predetermined time has elapsed from the start of focus adjustment to monitor the contrast of the clipped image, and the focus (focus position) is almost in focus. As a result, the barcode scanning and decoding are performed. This fixed time is the time when the focus position first becomes the focus adjustment target position corresponding to the case where the assumed environmental temperature is the lowest. This is because the environmental temperature is equal to or higher than the temperature corresponding to the certain time, and the time for the focus position to become the focus adjustment target position is equal to or less than the certain time.

次いで、図13及び図14を参照して、スキャナ装置1のCPU11及びイメージャコントローラ19の動作を説明する。図13に、CPU11が実行するバーコード読み取り処理のフローチャートを示す。図14に、イメージャコントローラ19が実行するスキャン制御処理のフローチャートを示す。   Next, operations of the CPU 11 and the imager controller 19 of the scanner device 1 will be described with reference to FIGS. 13 and 14. FIG. 13 shows a flowchart of the barcode reading process executed by the CPU 11. FIG. 14 shows a flowchart of scan control processing executed by the imager controller 19.

図13を参照して、CPU11で実行されるバーコード読み取り処理を説明する。バーコード読み取り処理は、イメージャモジュール21を用いてバーコードをスキャンし、取得したバーコードの画像データをデコードする処理である。スキャナ装置1において、トリガキー12A,12Cがユーザにより押下入力されたことをトリガとして、CPU11は、ROM15から読み出されてRAM13に適宜展開されたバーコード読み取りプログラム151との協働で、バーコード読み取り処理を実行する。   The barcode reading process executed by the CPU 11 will be described with reference to FIG. The barcode reading process is a process of scanning a barcode using the imager module 21 and decoding the acquired barcode image data. In the scanner device 1, triggered by the user pressing the trigger keys 12 </ b> A and 12 </ b> C as a trigger, the CPU 11 reads a barcode in cooperation with a barcode reading program 151 that is read from the ROM 15 and appropriately expanded in the RAM 13. Execute the process.

先ず、CPU11は、初期設定を行い、イメージャモジュール21の起動の指示信号をイメージャコントローラ19に出力する(ステップS11)。ステップS11の初期設定は、例えば、撮像素子211からイメージャコントローラ19に入力された画像データ(ラインデータ)をRAM13にDMA転送する際のRAM13内の記憶領域の設定である。   First, the CPU 11 performs initial setting and outputs an instruction signal for starting the imager module 21 to the imager controller 19 (step S11). The initial setting in step S11 is, for example, the setting of the storage area in the RAM 13 when the image data (line data) input from the image sensor 211 to the imager controller 19 is DMA-transferred to the RAM 13.

そして、CPU11は、エイマー213の点灯の指示信号と、撮像素子211の切り出しキャプチャの指示信号とを、イメージャコントローラ19に出力する(ステップS12)。切り出しキャプチャの指示信号とは、フラッシュメモリ17に記憶されている座標(x1,y1)及び座標(x2,y2)で定義された切り出し領域のラインデータの取得の指示信号である。   Then, the CPU 11 outputs an instruction signal for turning on the aimer 213 and an instruction signal for cut-out capture of the image sensor 211 to the imager controller 19 (step S12). The clipping capture instruction signal is an instruction signal for acquiring line data of the clipping area defined by the coordinates (x1, y1) and coordinates (x2, y2) stored in the flash memory 17.

そして、CPU11は、DMA機能により、撮像素子211からイメージャコントローラ19に入力された切り出し画像のラインデータをRAM13にDMA転送して記憶させる(ステップS13)。そして、CPU11は、RAM13に記憶された切り出し画像の画像データ(ラインデータ)を読み出し、この切り出し画像内のエイマー位置(映像のx座標)を検出する(ステップS14)。エイマー位置の検出は、スキャナ装置1からバーコードまでの距離の推定に対応する。   Then, the CPU 11 DMA-transfers and stores the line data of the cut-out image input from the image sensor 211 to the imager controller 19 by the DMA function (step S13). Then, the CPU 11 reads out the image data (line data) of the clipped image stored in the RAM 13, and detects the aimer position (video x coordinate) in the clipped image (step S14). The detection of the aimer position corresponds to the estimation of the distance from the scanner device 1 to the barcode.

そして、CPU11は、フラッシュメモリ17に記憶された印加電圧テーブル171において、ステップS14で検出したエイマー位置1711に対応する印加電圧1712を読み出し、液体レンズ212への印加電圧をターゲットに焦点を合わせる印加電圧1712に変更する指示信号をイメージャコントローラ19に出力する(ステップS15)。   Then, the CPU 11 reads the applied voltage 1712 corresponding to the aimer position 1711 detected in step S14 in the applied voltage table 171 stored in the flash memory 17, and applies the voltage applied to the liquid lens 212 to focus on the target. An instruction signal to be changed to 1712 is output to the imager controller 19 (step S15).

そして、CPU11は、ステップS16,S17として、ステップS12,S13と同様の処理を実行する。そして、CPU11は、RAM13に記憶された切り出し画像の画像データ(ラインデータ)を読み出し、この切り出し画像内のエイマー213の映像のコントラストを算出する(ステップS18)。そして、CPU11は、ステップS18で算出したコントラストが予め設定された一定値であるか、又は最初のステップS16の実行から予め設定された一定時間をタイムアウトしたか、否かを判別する(ステップS19)。コントラストが一定値以上でなく且つタイムアウトもしていない場合(ステップS19;NO)、ステップS16に移行される。これは、液体レンズ212の焦点調整が行われている場合であり、図12に示すように、映像E31,E32がぼやけており、ピント(焦点位置)が合っていない状態である。このような状態のときは、ステップS16からステップS19の処理を繰り返す。   And CPU11 performs the process similar to step S12, S13 as step S16, S17. Then, the CPU 11 reads out the image data (line data) of the cutout image stored in the RAM 13, and calculates the contrast of the video of the aimer 213 in the cutout image (step S18). Then, the CPU 11 determines whether or not the contrast calculated in step S18 is a preset constant value, or whether a preset preset time has elapsed from the first execution of step S16 (step S19). . If the contrast is not equal to or greater than a certain value and has not timed out (step S19; NO), the process proceeds to step S16. This is a case where the focus adjustment of the liquid lens 212 is performed, and as shown in FIG. 12, the images E31 and E32 are blurred and are out of focus (focus position). In such a state, the processing from step S16 to step S19 is repeated.

コントラストが一定値以上であり又はタイムアウトした場合(ステップS19;YES)、CPU11は、エイマー213の消灯の指示信号をイメージャコントローラ19に出力する(ステップS20)。そして、CPU11は、イルミネーション214の点灯(次画像キャプチャ中のイルミネーション214の点灯及びその後の消灯)の指示信号をイメージャコントローラ19に出力する(ステップS21)。   When the contrast is equal to or higher than a certain value or times out (step S19; YES), the CPU 11 outputs an instruction signal for turning off the aimer 213 to the imager controller 19 (step S20). Then, the CPU 11 outputs an instruction signal for turning on the illumination 214 (turning on the illumination 214 during the next image capture and then turning it off) to the imager controller 19 (step S21).

そして、CPU11は、撮像素子211の全画面の画像キャプチャの指示信号をイメージャコントローラ19に出力する(ステップS22)。そして、ステップS23として、CPU11は、ステップS13と同様の処理を実行する。そして、CPU11は、RAM13に記憶された全画面の画像データ(ラインデータ)を読み出し、この全画面のフレーム画像について、デコードをしやすくする画像処理(一つの画像データに合成する処理等)を施し、画像処理後のフレーム画像中のバーコード画像をデコードする(ステップS24)。   Then, the CPU 11 outputs an image capture instruction signal for the entire screen of the image sensor 211 to the imager controller 19 (step S22). And as step S23, CPU11 performs the process similar to step S13. Then, the CPU 11 reads out the image data (line data) of the entire screen stored in the RAM 13, and performs image processing (such as processing for combining the image data) to facilitate decoding of the frame image of the entire screen. Then, the barcode image in the frame image after the image processing is decoded (step S24).

そして、CPU11は、ステップS24のデコードが成功したか否かを判別する(ステップS25)。デコードが成功していない場合(ステップS25;NO)、ステップS12に移行される。デコードが成功した場合(ステップS25;YES)、CPU11は、イメージャモジュール21の電源オフの指示信号をイメージャコントローラ19に出力する(ステップS17)。そして、CPU11は、デコード結果を表示部14に表示し、デコード成功のブザー音を音出力部18に鳴動させ(ステップS27)、バーコード読み取り処理を終了する。   Then, the CPU 11 determines whether or not the decoding in step S24 is successful (step S25). If the decoding is not successful (step S25; NO), the process proceeds to step S12. If the decoding is successful (step S25; YES), the CPU 11 outputs a power-off instruction signal for the imager module 21 to the imager controller 19 (step S17). Then, the CPU 11 displays the decoding result on the display unit 14 and causes the sound output unit 18 to sound a buzzer sound that is successfully decoded (step S27), and ends the barcode reading process.

次いで、図14を参照して、イメージャコントローラ19で実行されるスキャン制御処理を説明する。スキャン制御処理は、イメージャモジュール21を用いて焦点位置を調整してバーコードをスキャンし、エイマー213の映像を含む切り出し画像やバーコード画像を含むフレーム画像の画像データを取得する処理である。スキャナ装置1において、イメージャコントローラ19は、バーコード読み取り処理のステップS11に対応して、CPU11から起動の指示信号が入力されたことをトリガとして、スキャン制御処理を実行する。   Next, the scan control process executed by the imager controller 19 will be described with reference to FIG. The scan control process is a process of scanning the barcode by adjusting the focal position using the imager module 21 and obtaining image data of a cut-out image including the image of the aimer 213 and a frame image including the barcode image. In the scanner device 1, the imager controller 19 executes a scan control process in response to step S <b> 11 of the barcode reading process, triggered by the activation instruction signal input from the CPU 11.

先ず、イメージャコントローラ19は、初期設定を行う(ステップS31)。ステップS31の初期設定は、例えば、イメージャモジュール21からの画像データの受信に関する設定である。そして、イメージャコントローラ19は、イメージャモジュール21の電源をオンする(ステップS32)。   First, the imager controller 19 performs initial setting (step S31). The initial setting in step S31 is, for example, a setting relating to reception of image data from the imager module 21. Then, the imager controller 19 turns on the power of the imager module 21 (step S32).

そして、イメージャコントローラ19は、バーコード読み取り処理のステップS26に対応して、CPU11からイメージャモジュール21の電源オフの指示信号が入力されたか否かを判別する(ステップS33)。電源オフの指示信号が入力されていない場合(ステップS33;NO)、イメージャコントローラ19は、バーコード読み取り処理のステップS15に対応して、CPU11からの液体レンズ212への印加電圧変更の指示信号が入力されたか否かを判別する(ステップS34)。   Then, the imager controller 19 determines whether or not an instruction signal for powering off the imager module 21 is input from the CPU 11 in response to step S26 of the barcode reading process (step S33). When the power-off instruction signal is not input (step S33; NO), the imager controller 19 receives an instruction signal for changing the applied voltage to the liquid lens 212 from the CPU 11 in response to step S15 of the barcode reading process. It is determined whether or not an input has been made (step S34).

印加電圧変更の指示信号が入力された場合(ステップS34;YES)、イメージャコントローラ19は、印加電圧変更の指示信号の印加電圧値に応じたPWM信号を生成して電圧昇圧部20に出力する(ステップS35)。電圧昇圧部20により、液体レンズ212の印加電圧が変更される。   When the applied voltage change instruction signal is input (step S34; YES), the imager controller 19 generates a PWM signal corresponding to the applied voltage value of the applied voltage change instruction signal and outputs the PWM signal to the voltage booster 20 ( Step S35). The voltage booster 20 changes the voltage applied to the liquid lens 212.

ステップS35の実行後、又は印加電圧変更の指示信号が入力されていない場合(ステップS34;NO)、イメージャコントローラ19は、バーコード読み取り処理のステップS12,S16,S22に対応して、CPU11から画像キャプチャの指示信号が入力されたか否かを判別する(ステップS36)。画像キャプチャの指示信号が入力されていない場合(ステップS36;NO)、ステップS33に移行される。   After the execution of step S35, or when an instruction signal for changing the applied voltage is not input (step S34; NO), the imager controller 19 outputs an image from the CPU 11 corresponding to steps S12, S16, and S22 of the barcode reading process. It is determined whether or not a capture instruction signal is input (step S36). When the image capture instruction signal is not input (step S36; NO), the process proceeds to step S33.

画像キャプチャの指示信号が入力された場合(ステップS36;YES)、イメージャコントローラ19は、ステップS36で入力された画像キャプチャの指示信号に応じて、撮像素子211の画像キャプチャ領域を切り出し画像又は全画面に設定する(ステップS37)。そして、イメージャコントローラ19は、バーコード読み取り処理のステップS12,S16に対応して、CPU11からエイマー213の点灯の指示信号が入力されたか否かを判別する(ステップS38)。   When an image capture instruction signal is input (step S36; YES), the imager controller 19 cuts out the image capture area of the image sensor 211 in accordance with the image capture instruction signal input in step S36, or an image or a full screen. (Step S37). Then, the imager controller 19 determines whether or not an instruction signal for turning on the aimer 213 is input from the CPU 11 in response to steps S12 and S16 of the barcode reading process (step S38).

エイマー213の点灯の指示信号が入力されている場合(ステップS38;YES)、イメージャコントローラ19は、エイマー213を点灯する(ステップS39)。エイマー213の点灯の指示信号が入力されていない場合(ステップS38;NO)、バーコード読み取り処理のステップS20に対応して、CPU11からエイマー213の消灯の指示信号が入力されており、イメージャコントローラ19は、エイマー213を消灯する(ステップS40)。   When the instruction signal for lighting the aimer 213 is input (step S38; YES), the imager controller 19 lights the aimer 213 (step S39). When the instruction signal for turning on the aimer 213 is not inputted (step S38; NO), the instruction signal for turning off the aimer 213 is inputted from the CPU 11 corresponding to step S20 of the barcode reading process, and the imager controller 19 Turns off the aimer 213 (step S40).

そして、イメージャコントローラ19は、バーコード読み取り処理のステップS21に対応して、CPU11からイルミネーション214の点灯の指示信号が入力されたか否かを判別する(ステップS41)。イルミネーション214の点灯の指示信号が入力されていない場合(ステップS41;NO)、イメージャコントローラ19は、ステップS37で設定された切り出し画像の画像キャプチャ領域の画像領域指定信号を生成して撮像素子211に出力し、撮像素子211に画像キャプチャさせ、撮像素子211から切り出し画像の画像データが入力され(ステップS42)、ステップS33に移行される。   Then, the imager controller 19 determines whether or not an instruction signal for lighting the illumination 214 is input from the CPU 11 in response to step S21 of the barcode reading process (step S41). When an instruction signal for lighting the illumination 214 is not input (step S41; NO), the imager controller 19 generates an image area designation signal for the image capture area of the cut-out image set in step S37 and supplies the image sensor 211 with the image area designation signal. Then, the image sensor 211 captures the image, and the image data of the clipped image is input from the image sensor 211 (step S42), and the process proceeds to step S33.

イルミネーション214の点灯の指示信号が入力された場合(ステップS41;NO)、イメージャコントローラ19は、イルミネーション214を点灯する(ステップS43)。そして、イメージャコントローラ19は、ステップS37で設定された全画面の画像キャプチャ領域の画像領域指定信号を生成して撮像素子211に出力し、撮像素子211に画像キャプチャさせ、撮像素子211から全画面のフレーム画像の画像データが入力される(ステップS44)。そして、イメージャコントローラ19は、イルミネーション214を消灯し(ステップS45)、ステップS33に移行される。   When an instruction signal for lighting the illumination 214 is input (step S41; NO), the imager controller 19 lights the illumination 214 (step S43). Then, the imager controller 19 generates an image area designation signal for the image capture area of the full screen set in step S <b> 37, outputs the image area designation signal to the image sensor 211, causes the image sensor 211 to capture an image, and causes the image sensor 211 to capture the full screen. Image data of a frame image is input (step S44). Then, the imager controller 19 turns off the illumination 214 (step S45), and proceeds to step S33.

電源オフの指示信号が入力されていない場合(ステップS33;NO)、イメージャコントローラ19は、イメージャモジュール21の電源をオフし(ステップS46)、スキャン制御処理を終了する。   When the power-off instruction signal is not input (step S33; NO), the imager controller 19 turns off the power of the imager module 21 (step S46) and ends the scan control process.

以上、本実施の形態によれば、スキャナ装置1は、エイマー213と、液体レンズ212と、撮像素子211と、撮像素子211により撮像された画像の中のスポット光(エイマー213の光)の映像の位置から、被写体までの焦点位置に応じた電圧を算出し、当該算出した電圧を液体レンズ212に印加し、液体レンズ212の焦点調整が行われている際に、前記撮像された画像の中から、前記スポット光の映像を含む画像を切り出して切り出し画像を生成し、前記切り出し画像から前記スポット光の映像のコントラストを検出し、予め設定された所定値以上のコントラストを検出する場合に、前記撮像された画像に含まれるシンボル画像をデコードするイメージャコントローラ19及びCPU11と、を備える。このため、温度や個体による可変焦点レンズの焦点変化時間のバラツキによらず、最短の時間で焦点調整を終了することができる。   As described above, according to the present embodiment, the scanner device 1 includes the aimer 213, the liquid lens 212, the image sensor 211, and the image of spot light (light of the aimer 213) in the image captured by the image sensor 211. The voltage corresponding to the focal position from the position to the subject is calculated, and the calculated voltage is applied to the liquid lens 212 to adjust the focus of the liquid lens 212. From the image including the spot light image to generate a clipped image, detecting the contrast of the spot light image from the clipped image, and detecting a contrast equal to or higher than a predetermined value, An imager controller 19 and a CPU 11 that decode a symbol image included in the captured image are provided. For this reason, focus adjustment can be completed in the shortest time regardless of variations in the focus change time of the variable focus lens due to temperature or individual.

また、撮像素子211は、液体レンズ212の駆動が行われている際に、前記画像を順次撮像し、イメージャコントローラ19は、前記順次撮像された画像の中から、前記映像を含む予め定められた領域の画像を切り出す。このため、スポット光の映像を含む切り出し画像を高速に取得できる。   The image sensor 211 sequentially captures the images while the liquid lens 212 is being driven, and the imager controller 19 includes a predetermined image including the video from the sequentially captured images. Cut out the image of the area. For this reason, a cut-out image including a spotlight image can be acquired at high speed.

また、撮像素子211及びイメージャコントローラ19は、スポット光の映像の所定値以上のコントラストを検出するまで、前記映像を含む予め定められた領域の画像の切り出し及びコントラストの検出を繰り返し行う。このため、繰り返し取得した切り出し画像により画像データの転送及びコントラストの検出時間をより短縮できる。   In addition, the image sensor 211 and the imager controller 19 repeatedly perform image segmentation and contrast detection of a predetermined region including the video until the contrast of a predetermined value or more of the video of the spot light is detected. For this reason, the transfer time of image data and the detection time of contrast can be further shortened by the cut image acquired repeatedly.

また、CPU11は、スポット光の映像の所定値以上のコントラストが検出された場合に、撮像素子211に全画面のフレーム画像を撮像させ、当該撮像された全画面の画像をデコードする。このため、全画面のフレーム画像に含まれるバーコード画像を確実にデコードできる。   Further, when a contrast equal to or higher than a predetermined value of the spotlight video is detected, the CPU 11 causes the image sensor 211 to capture a full-screen frame image and decodes the captured full-screen image. For this reason, it is possible to reliably decode the barcode image included in the frame image of the full screen.

また、CPU11は、撮像素子211からイメージャコントローラ19に入力された切り出し画像及びフレーム画像の画像データをRAM13に転送して記憶させる。このため、画像データをRAM13に容易に記憶できる。   Further, the CPU 11 transfers the image data of the cut image and the frame image input from the image sensor 211 to the imager controller 19 and stores them in the RAM 13. For this reason, the image data can be easily stored in the RAM 13.

また、CPU11は、スポット光の映像の所定値以上のコントラストを検出する場合に、エイマー213を消灯して撮像素子211に画像を撮像させる。このため、デコードに不要なスポット光の映像をバーコード画像から除去でき、デコードの精度を高めることができる。   Further, the CPU 11 turns off the aimer 213 and causes the image pickup device 211 to pick up an image when detecting a contrast equal to or higher than a predetermined value of the spotlight video. For this reason, it is possible to remove the spot light video unnecessary for decoding from the barcode image, and to improve the decoding accuracy.

また、CPU11は、スポット光の映像の所定値以上のコントラストを検出する場合に、イルミネーション214を点灯して撮像素子211に画像を撮像させる。このため、バーコード画像のコントラストを高めることができ、デコードの精度を高めることができる。   Further, the CPU 11 turns on the illumination 214 and causes the image sensor 211 to pick up an image when detecting a contrast equal to or higher than a predetermined value of the image of the spot light. For this reason, the contrast of the barcode image can be increased, and the decoding accuracy can be increased.

また、CPU11は、スポット光の映像の所定値以上のコントラストを検出する場合、又は焦点調整開始からの経過時間が予め設定された低温の焦点調整時間に対応する所定時間を超えた場合に、撮像素子211により撮像された画像に含まれるシンボル画像をデコードする。このため、温度による可変焦点レンズの焦点変化時間のバラツキによる影響を少なくし、最短の時間でシンボルの読み取りを行うことができる。   Further, the CPU 11 picks up an image when detecting a contrast equal to or higher than a predetermined value of the image of the spot light, or when an elapsed time from the start of focus adjustment exceeds a predetermined time corresponding to a preset low-temperature focus adjustment time. A symbol image included in an image captured by the element 211 is decoded. For this reason, it is possible to reduce the influence of the variation in the focus change time of the variable focus lens due to the temperature, and to read the symbol in the shortest time.

なお、上記実施の形態における記述は、本発明に係るスキャナ装置及びプログラムの一例であり、これに限定されるものではない。   The description in the above embodiment is an example of the scanner device and the program according to the present invention, and the present invention is not limited to this.

上記実施の形態では、焦点可変レンズとして、液体レンズ212を用いる構成としたが、これに限定されるものではない。例えば、印加電圧により屈折率が変化する「電気光学結晶」の一種であるKTN(タンタル酸ニオブ酸カリウム、KTa1−xNbxO3)を用いた可変焦点レンズ等、他の可変焦点レンズとしてもよい。   In the above embodiment, the liquid lens 212 is used as the variable focus lens. However, the present invention is not limited to this. For example, another variable focus lens such as a variable focus lens using KTN (potassium niobate tantalate, KTa1-xNbxO3), which is a kind of “electro-optic crystal” whose refractive index changes with applied voltage, may be used.

また、上記実施の形態では、シンボルとして1次元バーコードを読み取る構成を説明したが、これに限定されるものではない。例えば、2次元コード等のシンボルを読み取る構成としてもよい。   In the above-described embodiment, the configuration for reading a one-dimensional barcode as a symbol has been described. However, the present invention is not limited to this. For example, a symbol such as a two-dimensional code may be read.

また、上記実施の形態では、エイマー213から照射されたスポット光の映像の例を説明したが、これに限定されるものではない。基準となるスポット光の映像は、他の光源から照射された光の映像であってもよい。この映像は、スキャナ装置と被写体との距離に応じて、画像全体の中で映像の位置が相対的に変化するものであればよい。例えば、スポット光は、液体レンズ212を含む光学系212Aの光軸方向に沿って、ほぼ平行に照射されればよい。   Moreover, although the example of the image of the spot light irradiated from the aimer 213 has been described in the above embodiment, the present invention is not limited to this. The image of the reference spot light may be an image of light emitted from another light source. This video may be any video as long as the position of the video changes relative to the entire image in accordance with the distance between the scanner device and the subject. For example, the spot light may be irradiated substantially in parallel along the optical axis direction of the optical system 212A including the liquid lens 212.

また、上記実施の形態では、エイマー213の光の映像を含む切り出し画像は、予め定めた領域(座標(x1,y1)及び座標(x2,y2)で表される矩形領域)である例で説明したが、これに限定されるものではない。例えば、エイマーの光の映像を含む切り出し画像は、図13のステップS12でその位置が既に検出されているので、同図のステップS16では、エイマーの光の映像が含まれる部分領域であり、前記予め定めた領域より狭い領域を決定でき、この決定された領域の画像を切り出すようにしてもよい。この部分領域は前記予め定めた領域より狭いので、一定値以上のコントラストが検出されるまで繰り返されるステップS16〜ステップS18の処理、即ち、切り出し画像の画像データの転送処理と、コントラスト検出処理と、の時間をより短縮でき、迅速な処理が可能になる。   In the above embodiment, the cut-out image including the light image of the aimer 213 is described as an example of a predetermined region (rectangular region represented by coordinates (x1, y1) and coordinates (x2, y2)). However, the present invention is not limited to this. For example, since the position of the cut-out image including the image of the aimer light has already been detected in step S12 of FIG. 13, in step S16 of FIG. An area narrower than a predetermined area can be determined, and an image of the determined area may be cut out. Since this partial area is narrower than the predetermined area, the processes in steps S16 to S18 that are repeated until a contrast of a certain value or more is detected, that is, the image data transfer process of the cut-out image, the contrast detection process, Time can be further shortened, and rapid processing becomes possible.

また、上記実施の形態では、被写体までの距離を示すエイマー213の光の映像の位置と液体レンズ212への印加電圧との関係を印加電圧テーブル171に予め記憶した例で説明したが、これに限定されるものではない。エイマー213の光の映像の位置と液体レンズ212への印加電圧との関係を計算式で表し、エイマー213の光の映像の位置(距離)から液体レンズ212への印加電圧を上記計算式により直接算出する構成としてもよい。   In the above embodiment, the relationship between the position of the light image of the aimer 213 indicating the distance to the subject and the voltage applied to the liquid lens 212 has been described as an example stored in the applied voltage table 171 in advance. It is not limited. The relationship between the position of the image of the light of the aimer 213 and the voltage applied to the liquid lens 212 is expressed by a calculation formula, and the voltage applied to the liquid lens 212 from the position (distance) of the image of the light of the aimer 213 is directly calculated by the above calculation formula. It is good also as a structure to calculate.

また、上記実施の形態では、エイマー213から照射されるスポット光の映像形状を、円形として説明したが、これに限定されるものではない。スポット光の映像形状は、十字形状等、他の形状であってもよい。   Moreover, in the said embodiment, although the image shape of the spot light irradiated from the aimer 213 was demonstrated as circular, it is not limited to this. The image shape of the spot light may be another shape such as a cross shape.

また、上記実施の形態では、イメージャコントローラ19がASIC等の半導体回路であることとして説明したが、これに限定されるものではない。例えば、イメージャコントローラ19が、CPU、RAM及びROMにより構成され、ROMから読み出されてRAMに展開されたプログラムとCPUとの協働により、イメージャコントローラ19が処理を実行する構成としてもよい。   In the above embodiment, the imager controller 19 is described as a semiconductor circuit such as an ASIC, but the present invention is not limited to this. For example, the imager controller 19 may be configured by a CPU, a RAM, and a ROM, and the imager controller 19 may execute processing in cooperation with a program that is read from the ROM and expanded in the RAM.

また、上記実施の形態におけるスキャナ装置の各構成要素の細部構成及び細部動作に関しては、本発明の趣旨を逸脱することのない範囲で適宜変更可能であることは勿論である。   In addition, it is needless to say that the detailed configuration and detailed operation of each component of the scanner device according to the above-described embodiment can be appropriately changed without departing from the spirit of the present invention.

1 スキャナ装置
2 ケース
11 CPU
12 操作部
12A,12C トリガキー
12B 各種キー
13 RAM
14 表示部
15 ROM
16 通信部
17 フラッシュメモリ
18 音出力部
18A スピーカ
19 イメージャコントローラ
20 電圧昇圧部
21 イメージャモジュール
211 撮像素子
212 液体レンズ
2121,2122 液体部
2123 容器
2124 電極
212A 光学系
213 エイマー
214 イルミネーション
22 電源部
23 バス
30 電源
41 バーコード
1 Scanner device 2 Case 11 CPU
12 Operation unit 12A, 12C Trigger key 12B Various keys 13 RAM
14 Display 15 ROM
DESCRIPTION OF SYMBOLS 16 Communication part 17 Flash memory 18 Sound output part 18A Speaker 19 Imager controller 20 Voltage booster 21 Imager module 211 Image pick-up element 212 Liquid lens 2121,122 Liquid part 2123 Container 2124 Electrode 212A Optical system 213 Aimer 214 Illumination 22 Power supply part 23 Bus 30 Power supply 41 Bar code

Claims (7)

撮像手段により被写体を撮像して画像認識処理を行う画像処理装置であって、
前記撮像手段で焦点位置を変化させることで前記被写体に焦点を合わせるための焦点制御を行う焦点制御手段と、
前記被写体を画像認識する際は、前記焦点制御手段により前記被写体に焦点を合わせるための焦点制御を開始し、その開始後の焦点制御の過程において、前記撮像手段で撮像された前記被写体の撮像画像でのコントラスト値を逐次検出する検出手段と、
前記焦点制御の過程において、前記検出手段で検出されたコントラスト値が所定条件に合致したか否かを逐次判別し、合致した場合には前記焦点制御手段による焦点制御で前記被写体に焦点が合う前であっても、前記被写体を撮像した撮像画像に対する前記画像認識処理を開始させる認識制御手段と、
を具備したことを特徴とする画像処理装置。
An image processing apparatus that performs image recognition processing by imaging a subject with an imaging unit,
And focus control means for performing focus control for focusing on the object by changing the focal position in the imaging unit,
When recognizing the subject, focus control for focusing on the subject is started by the focus control unit, and a captured image of the subject captured by the imaging unit in the focus control process after the focus control unit starts. Detecting means for sequentially detecting the contrast value at
In the focus control process, it is sequentially determined whether or not the contrast value detected by the detection means meets a predetermined condition . If the contrast value matches, the focus control by the focus control means before the subject is focused. Even so, recognition control means for starting the image recognition processing for the captured image obtained by imaging the subject,
An image processing apparatus comprising:
前記認識制御手段は、前記検出手段で検出されたコントラスト値が前記所定条件合致した時点で前記撮像手段で撮像された撮像画像に対して、前記画像認識処理を開始させる、
ことを特徴とする請求項1に記載の画像処理装置。
The recognition control means, the imaging captured image by the image pickup means when the detected contrast value by the detecting means matches the predetermined condition to start the image recognition processing,
The image processing apparatus according to claim 1.
前記焦点制御手段は、前記画像認識処理による認識が成功した場合には、前記被写体に焦点を合わせる焦点制御の途中にあって当該被写体に焦点が合う前であっても、当該被写体に焦点を合わせるための制御を終了する、
ことを特徴とする請求項1又は2に記載の画像処理装置。
It said focus control means, when recognition by the image recognition processing is successful, even before the in focus on the subject be in the middle of the focus control to focus on the subject, focus on the subject End the control for the
The image processing apparatus according to claim 1, wherein the image processing apparatus is an image processing apparatus.
前記画像認識処理による認識が成功しない場合には、前記焦点制御手段による焦点制御あるいは前記検出手段による前記コントラストの検出を継続して行うようにする、
ことを特徴とする請求項1〜3の何れかに記載の画像処理装置。
If recognition by the image recognition process is not successful, focus control by the focus control unit or detection of the contrast by the detection unit is continuously performed.
The image processing apparatus according to any one of claims 1 to 3.
前記検出手段は、前記被写体に焦点を合わせるための焦点制御の過程においては前記被写体に対して照射されるスポット光を撮像したコントラスト値を、前記被写体の撮像画像でのコントラスト値として逐次検出する、
ことを特徴とする請求項1〜4の何れかに記載の画像処理装置。
The detection means sequentially detects a contrast value obtained by imaging a spot light irradiated to the subject as a contrast value in a captured image of the subject in a focus control process for focusing on the subject.
The image processing apparatus according to claim 1, wherein the image processing apparatus is an image processing apparatus.
前記検出手段で検出されたコントラスト値が前記条件に合致した時点で、前記被写体全体に対して照明光による照明を行う照明制御手段と、
を更に具備し、
前記認識制御手段は、前記照明光で照明された被写体を撮像した撮像画像に対する画像認識処理を実行する、
ことを特徴とする請求項1〜5の何れかに記載の画像処理装置。
When the detected contrast value by the detecting means matches the plant constant conditions, and lighting control means for performing illumination by the illumination light with respect to the entire object,
Further comprising
The recognition control means executes an image recognition process on a captured image obtained by imaging a subject illuminated with the illumination light.
The image processing apparatus according to claim 1, wherein the image processing apparatus is an image processing apparatus.
撮像手段により被写体を撮像して画像認識処理を行う画像処理装置のコンピュータを制御するためのプログラムであって、
前記コンピュータを、
前記撮像手段で焦点位置を変化させることで前記被写体に焦点を合わせるための焦点制御を行う焦点制御手段、
前記被写体を画像認識する際は、前記焦点制御手段により前記被写体に焦点を合わせるための焦点制御を開始し、その開始後の焦点制御の過程において、前記撮像手段で撮像された前記被写体の撮像画像でのコントラスト値を逐次検出する検出手段、
前記焦点制御の過程において、前記検出手段で検出されたコントラスト値が所定条件に合致したか否かを逐次判別し、合致した場合には前記焦点制御手段による焦点制御で前記被写体に焦点が合う前であっても、前記被写体を撮像した撮像画像に対する前記画像認識処理を開始させる認識制御手段、
として機能させるようにしたプログラム。
A program for controlling a computer of an image processing apparatus that performs image recognition processing by imaging a subject with an imaging means,
The computer,
Focus control means for performing focus control for focusing on the object by changing the focal position in the imaging unit,
When recognizing the subject, focus control for focusing on the subject is started by the focus control unit, and a captured image of the subject captured by the imaging unit in the focus control process after the focus control unit starts. Detecting means for sequentially detecting the contrast value at
In the focus control process, it is sequentially determined whether or not the contrast value detected by the detection means meets a predetermined condition . If the contrast value matches, the focus control by the focus control means before the subject is focused. Even so, a recognition control means for starting the image recognition processing for a captured image obtained by capturing the subject,
A program designed to function as
JP2015153265A 2015-08-03 2015-08-03 Image processing apparatus and program Active JP6183421B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2015153265A JP6183421B2 (en) 2015-08-03 2015-08-03 Image processing apparatus and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2015153265A JP6183421B2 (en) 2015-08-03 2015-08-03 Image processing apparatus and program

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
JP2014064962A Division JP5794336B2 (en) 2014-03-27 2014-03-27 Image processing apparatus and program

Publications (2)

Publication Number Publication Date
JP2016015147A JP2016015147A (en) 2016-01-28
JP6183421B2 true JP6183421B2 (en) 2017-08-23

Family

ID=55231236

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2015153265A Active JP6183421B2 (en) 2015-08-03 2015-08-03 Image processing apparatus and program

Country Status (1)

Country Link
JP (1) JP6183421B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9900978B2 (en) * 2011-12-31 2018-02-20 Peking University Founder Group Co., Ltd. Printed circuit boards and methods for manufacturing same

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP7367314B2 (en) * 2019-03-25 2023-10-24 カシオ計算機株式会社 Code reading device, code reading method and program

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0833904B2 (en) * 1988-11-17 1996-03-29 アルプス電気株式会社 Laser scan
JP3448829B2 (en) * 1993-10-20 2003-09-22 株式会社ニコン Image reading device
JP2002056348A (en) * 2000-08-07 2002-02-20 Tohken Co Ltd Hand readout device with autofocus function, autofocus method, and distance measuring method
JP3352453B2 (en) * 2000-11-20 2002-12-03 キヤノン株式会社 camera
JP4186915B2 (en) * 2003-12-18 2008-11-26 株式会社デンソーウェーブ Optical information reader
JP4403975B2 (en) * 2005-01-25 2010-01-27 株式会社デンソーウェーブ Optical information reader

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9900978B2 (en) * 2011-12-31 2018-02-20 Peking University Founder Group Co., Ltd. Printed circuit boards and methods for manufacturing same

Also Published As

Publication number Publication date
JP2016015147A (en) 2016-01-28

Similar Documents

Publication Publication Date Title
JP5252023B2 (en) Code reader and program
US8056808B2 (en) Arrangement for and method of controlling image capture parameters in response to motion of an imaging reader
JP4403975B2 (en) Optical information reader
US9033241B2 (en) Barcode reading apparatus and computer program product
JP5234133B2 (en) Code reader and program
US9361502B2 (en) System for, and method of, controlling target illumination for an imaging reader
JP4389812B2 (en) Optical information reader
US9092684B1 (en) Wearable system for, and method of, electro-optically reading a symbol at which a user&#39;s finger is generally pointed
JP5493512B2 (en) IMAGING DEVICE AND CELLULAR PHONE MOUNTING THE SAME
US20140166758A1 (en) Method of driving focusing element in barcode imaging scanner
JP6183421B2 (en) Image processing apparatus and program
JP5794336B2 (en) Image processing apparatus and program
CN114793272A (en) Illumination control for imaging system having multiple image sensors
JP5515887B2 (en) Scanner device and program
JP5737311B2 (en) Code reader and program
JP7367314B2 (en) Code reading device, code reading method and program
JP4331774B2 (en) Scanner device
JP2015212866A (en) Optical information reader and optical information read method
JP7289308B2 (en) Image analysis device, image analysis method and program
JP2012048441A (en) Scanner device and program
KR20080075333A (en) Apparatus for photographing face image in picture area exactly
JP2015179902A (en) imaging system
JP5375980B2 (en) Bar code reader and program
JP7289309B2 (en) Image analysis device, image analysis method and program
JP2004171346A (en) Optical information reader

Legal Events

Date Code Title Description
A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20160620

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20160712

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20160831

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20161129

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20170127

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20170710

R150 Certificate of patent or registration of utility model

Ref document number: 6183421

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150