Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP6523908B2 - Code reader, code reading method, and program - Google Patents
[go: Go Back, main page]

JP6523908B2 - Code reader, code reading method, and program - Google Patents

Code reader, code reading method, and program Download PDF

Info

Publication number
JP6523908B2
JP6523908B2 JP2015197456A JP2015197456A JP6523908B2 JP 6523908 B2 JP6523908 B2 JP 6523908B2 JP 2015197456 A JP2015197456 A JP 2015197456A JP 2015197456 A JP2015197456 A JP 2015197456A JP 6523908 B2 JP6523908 B2 JP 6523908B2
Authority
JP
Japan
Prior art keywords
unit
code
color
light
image
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
JP2015197456A
Other languages
Japanese (ja)
Other versions
JP2016170768A (en
Inventor
潔 上野
潔 上野
Original Assignee
ワム・システム・デザイン株式会社
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 ワム・システム・デザイン株式会社 filed Critical ワム・システム・デザイン株式会社
Publication of JP2016170768A publication Critical patent/JP2016170768A/en
Application granted granted Critical
Publication of JP6523908B2 publication Critical patent/JP6523908B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Circuit Arrangement For Electric Light Sources In General (AREA)
  • Studio Devices (AREA)

Description

本発明は、コードの読み取りを行なうコード読取装置等に関するものである。   The present invention relates to a code reader and the like for reading a code.

従来の技術として、2次元に配置された複数のセルの各々のセルの色彩又は濃度又は輝度によって、情報を符号化するカラー2次元コードが知られていた(例えば、特許文献1参照)。   As a prior art, a color two-dimensional code has been known which encodes information according to the color or density or luminance of each of a plurality of two-dimensionally arranged cells (see, for example, Patent Document 1).

特開2003−178277号公報(第1頁、第1図等)JP 2003-178277 A (page 1, FIG. 1, etc.)

しかしながら、従来のコード読取装置等においては、撮影時の環境によって、コードを適切に読み取ることができない、という課題があった。   However, in the conventional code reader and the like, there is a problem that the code can not be read properly depending on the environment at the time of shooting.

例えば、従来のコード読取装置等においては、カラー二次元コードや、バーコード等のコードが配置されている環境によっては、コードに当たる光が不適切であること等によって、コードを適切に読み取ることができない場合がある、という課題があった。例えば、コードが配置されている場所に当たる光が少なく暗い場合、コードを撮影した画像から、コードを検出できず、コードを読み取ることができないという問題があった。   For example, in a conventional code reader or the like, the code may be properly read by, for example, the light falling on the code being inappropriate depending on the environment in which the color two-dimensional code or the code such as a bar code is arranged. There was a problem that it might not be possible. For example, when there is little light falling on the place where the code is placed, there is a problem that the code can not be detected from the image obtained by capturing the code and the code can not be read.

また、例えば、コードがカラーコードである場合、カラーコードに当たる光の色によって、カラーコードを構成するそれぞれの色を適切に認識できなくなってしまい、コードを読み取ることができないという問題があった。例えば、ハロゲンランプで照明されている環境下(例えば、トンネル内等)においては、カラーコードがオレンジがかったモノクロームの画像にしか見えず、適切にカラーコードの各色を認識できない、という問題があった。   Further, for example, when the code is a color code, there is a problem that the color of light falling on the color code can not appropriately recognize each color constituting the color code, and the code can not be read. For example, in an environment illuminated with a halogen lamp (for example, in a tunnel etc.), there is a problem that the color code can only be seen as an orangeish monochrome image, and each color of the color code can not be properly recognized. .

また、例えば、画像を投影する装置等を用いて投影したコードを、読取対象のコードとして利用する場合、投影される場所の環境光や、投影する装置の設定等により、コードを適切に読み取ることができない場合がある、という課題があった。   Also, for example, when using a code projected using an apparatus for projecting an image or the like as a code to be read, the code is appropriately read by ambient light of a projected place, setting of an apparatus for projecting, etc. There is a problem that there are cases where you can not

本発明は、上記のような課題を解消するためになされたものであり、コードを適切に読み取ることができるコード読取装置を提供することを目的とする。   The present invention has been made to solve the problems as described above, and it is an object of the present invention to provide a code reader capable of properly reading a code.

本発明のコード読取装置は、一以上のコードを含む領域を撮影して撮影画像を取得する撮影部と、撮影画像内において一以上のコードを検出し、検出した一以上のコードから、コードに対応づけられた情報を取得する取得部と、取得部が取得した情報を出力する出力部と、撮影画像に応じて、撮影画像を取得するための環境を制御する制御部とを備えたコード読取装置である。   The code reader according to the present invention detects a region including one or more codes to obtain a photographed image, detects the one or more codes in the photographed image, and detects the code from the one or more codes. Code reading comprising an acquisition unit for acquiring associated information, an output unit for outputting information acquired by the acquisition unit, and a control unit for controlling an environment for acquiring a photographed image according to the photographed image It is an apparatus.

かかる構成により、撮影画像を取得するための環境を撮影画像に応じて制御することで、コードを適切に読み取ることができる。   According to this configuration, the code can be appropriately read by controlling the environment for acquiring the photographed image according to the photographed image.

また、本発明のコード読取装置は、前記コード読取装置において、撮影部が撮影する領域に光を照射する照明部を更に備え、制御部は、撮影画像に応じて、照明部が撮影領域に対して照射する光を制御するコード読取装置である。   In the code reading device according to the present invention, the code reading device further includes an illumination unit for emitting light to the area photographed by the imaging unit, and the control unit controls the illumination unit to the imaging area according to the photographed image. It is a code reader that controls the light to be emitted.

かかる構成により、撮影領域に対して照射する光を撮影画像に応じて制御することで、コードを適切に読み取ることができる。   According to this configuration, the code can be read appropriately by controlling the light emitted to the imaging region according to the captured image.

また、本発明のコード読取装置は、前記コード読取装置において、制御部は、取得部が撮影画像からコードに対応した情報を取得できなかった場合に、撮影画像から取得した情報に応じて、照明部が撮影領域に対して照射する光を制御するコード読取装置である。   Further, in the code reading device according to the present invention, in the code reading device, when the acquisition unit can not acquire the information corresponding to the code from the photographed image, the control unit illuminates according to the information acquired from the photographed image. The unit is a code reader that controls light emitted to the imaging region.

かかる構成により、撮影画像からコードに対応した情報を取得できない場合に、照明部が照射する光を制御することにより、コードを適切に読み取ることができる。また、コードが読み取れる場合には、照明を行わないようにして、電力消費を抑えるとともに、処理を高速化することができる。   According to this configuration, when the information corresponding to the code can not be acquired from the photographed image, the code can be read appropriately by controlling the light emitted by the illumination unit. In addition, when the code can be read, it is possible to suppress the power consumption and speed up the process by not performing the illumination.

また、本発明のコード読取装置は、前記コード読取装置において、制御部は、撮影画像から、一以上のパラメータを取得し、取得したパラメータに応じて、照明部が撮影領域に対して照射する光を制御するコード読取装置である。   Further, in the code reading device according to the present invention, in the code reading device, the control unit acquires one or more parameters from the photographed image, and the light emitted from the lighting unit to the photographing region according to the acquired parameters. Is a code reader that controls

かかる構成により、撮影画像から取得したパラメータを用いて、適切に照明部が照射する光を制御することができる。   With this configuration, it is possible to appropriately control the light emitted by the illumination unit using the parameters acquired from the captured image.

また、本発明のコード読取装置は、前記コード読取装置において、制御部は、撮影画像から、光量に関するパラメータを取得し、取得したパラメータに応じて、照明部が撮影領域に対して照射する光の光量を制御するコード読取装置である。   Further, in the code reading device according to the present invention, in the code reading device, the control unit acquires a parameter related to the light amount from the captured image, and the illumination unit irradiates the imaging region according to the acquired parameter. It is a code reader that controls the amount of light.

かかる構成により、撮影画像から取得した光量に関するパラメータを用いて、照明部が照射する光の光量を適切に制御ことができ、適切にコードを読み取ることができる。   According to this configuration, the light amount of the light emitted by the illumination unit can be appropriately controlled using the parameter related to the light amount acquired from the photographed image, and the code can be read appropriately.

また、本発明のコード読取装置は、前記コード読取装置において、照明部は、照射する光の色を変更可能であり、制御部は、撮影画像から、光の色に関するパラメータを取得し、取得したパラメータに応じて、照明部が撮影領域に対して照射する光の色を制御するコード読取装置である。   Further, in the code reader according to the present invention, in the code reader, the illumination unit can change the color of light to be emitted, and the control unit acquires and acquires parameters relating to the color of light from the captured image. It is a code reader which controls the color of the light which an illumination part irradiates to a photography field according to a parameter.

かかる構成により、撮影画像から取得した光の色に関するパラメータを用いて、照明部が照射する光の色を適切に制御ことができ、適切にコードを読み取ることができる。   With this configuration, it is possible to appropriately control the color of the light emitted by the illumination unit using the parameter related to the color of the light acquired from the photographed image, and the code can be read appropriately.

また、本発明のコード読取装置は、前記コード読取装置において、制御部は、撮影画像に応じて、撮影部による撮影時のシャッタースピードを制御するコード読取装置である。   Further, in the code reading device according to the present invention, in the code reading device, the control unit is a code reading device that controls a shutter speed at the time of shooting by the shooting unit according to a shot image.

かかる構成により、撮影時の露光時間を適切に制御ことができ、適切にコードを読み取ることができる。   With this configuration, the exposure time at the time of shooting can be appropriately controlled, and the code can be read appropriately.

また、本発明のコード読取装置は、前記コード読取装置において、撮影部は、投影装置が撮影して取得し投影した1以上のコードを含む領域の画像である投影画像を撮影して、撮影画像を取得し、制御部は、撮影画像に応じて、投影装置による画像の投影を制御するコード読取装置である。   Further, in the code reading device according to the present invention, in the code reading device, the shooting unit shoots a projected image which is an image of a region including one or more codes shot and acquired and projected by the projection device. The control unit is a code reading device that controls the projection of the image by the projection device according to the captured image.

かかる構成により、撮影対象となる投影画像を適切に制御ことができ、適切にコードを読み取ることができる。   According to this configuration, the projection image to be photographed can be appropriately controlled, and the code can be read appropriately.

本発明によるコード読取装置等によれば、コードを適切に読み取ることができる。   According to the code reader and the like according to the present invention, the code can be read properly.

本発明の実施の形態1におけるコード読取装置のブロック図Block diagram of code reader in Embodiment 1 of the present invention 同コード読取装置の動作について説明するフローチャートFlow chart for explaining the operation of the same code reader 同コード読取装置の撮影状況を示すための、正面側から見た斜視図(図3(a))、および背面側から見た斜視図(図3(b))The perspective view seen from the front side (Drawing 3 (a)) and the perspective view seen from the back side (Drawing 3 (b)) in order to show the photography situation of the same code reading device 同カラーコード読取装置を実現するコンピュータシステムの一例を示す図The figure which shows an example of the computer system which implement | achieves the color code reader 本発明の実施の形態2におけるコード読取装置のブロック図Block diagram of code reader in Embodiment 2 of the present invention 同コード読取装置の動作について説明するフローチャートFlow chart for explaining the operation of the same code reader 本発明の実施の形態3におけるコード読取装置と投影装置のブロック図Block diagram of code reading device and projection device in the third embodiment of the present invention 同コード読取装置の動作について説明するフローチャートFlow chart for explaining the operation of the same code reader 同コード読取装置と投影装置とを説明するための模式図A schematic diagram for explaining the code reader and the projector

以下、コード読取装置等の実施形態について図面を参照して説明する。なお、実施の形態において同じ符号を付した構成要素は同様の動作を行うので、再度の説明を省略する場合がある。   Hereinafter, embodiments of the code reader and the like will be described with reference to the drawings. In addition, since the component which attached the same code in embodiment performs the same operation | movement, description for the second time may be abbreviate | omitted.

(実施の形態1)
図1は、本実施の形態におけるコード読取装置1のブロック図である。
Embodiment 1
FIG. 1 is a block diagram of a code reader 1 according to the present embodiment.

コード読取装置1は、撮影部101、照明部102、取得部103、制御部104、出力部105を備える。   The code reading device 1 includes an imaging unit 101, an illumination unit 102, an acquisition unit 103, a control unit 104, and an output unit 105.

コード読取装置1は、コードを読み取るための装置である。コード読取装置は、コード読取のための専用の装置であっても良く、他の機能を有する汎用の装置等であっても良い。例えば、コード読取装置は、いわゆるスマートフォン等の多機能携帯電話や、タブレット型端末や、携帯電話等の、カメラ等を備えた携帯情報端末等と考えてもよい。   The code reader 1 is a device for reading a code. The code reading device may be a dedicated device for reading a code, or may be a general-purpose device having other functions. For example, the code reading apparatus may be considered as a so-called multi-functional mobile phone such as a smart phone, a tablet type terminal, a portable information terminal such as a mobile phone provided with a camera or the like.

撮影部101は、一以上のコードを含む領域を撮影して撮影画像を取得する。撮影部101は、例えば、一の画像において、二以上のコードを含む領域を撮影した撮影画像を取得してもよい。撮影部101は、例えば、CCDやCMOS等の撮像素子を備えたカメラである。撮影部101は、ビデオカメラであっても良く、デジタルスチルカメラであっても良い。撮影画像は、通常、動画像であるが、静止画像であっても良く、予め指定された時間間隔を隔てて撮影された一連の複数の静止画像等であっても良い。また、撮影画像は、動画像を構成する一または二以上のフレーム画像と考えてもよい。二以上のフレーム画像は、連続していてもよく、連続していなくても良い。例えば、二以上のフレーム画像は、予め指定された数のフレーム画像を隔てて取得された二以上のフレーム画像であっても良い。また、撮影部101が撮影する撮影画像の画素数や、撮影部101が送信する撮影画像のファイル形式や、圧縮方式等は問わない。また、撮影部101が撮影画像を撮影するタイミング等は問わない。なお、撮影部101は、外部のカメラ等を制御するドライバー等と考えてもよい。   The imaging unit 101 captures an area including one or more codes to obtain a captured image. For example, the imaging unit 101 may acquire a captured image obtained by capturing an area including two or more codes in one image. The imaging unit 101 is, for example, a camera provided with an imaging device such as a CCD or a CMOS. The photographing unit 101 may be a video camera or a digital still camera. The photographed image is usually a moving image, but may be a still image, or may be a series of plural still images or the like photographed at predetermined time intervals. Also, the captured image may be considered as one or more frame images constituting a moving image. Two or more frame images may or may not be consecutive. For example, two or more frame images may be two or more frame images acquired by separating a predetermined number of frame images. Further, the number of pixels of the photographed image photographed by the photographing unit 101, the file format of the photographed image transmitted by the photographing unit 101, the compression method, and the like do not matter. Further, the timing at which the imaging unit 101 captures a captured image does not matter. The photographing unit 101 may be considered as a driver or the like that controls an external camera or the like.

撮影部101は、いわゆるスマートフォン等の多機能携帯電話や、タブレット型端末や、携帯電話等のカメラ等と考えてもよい。   The photographing unit 101 may be considered as a so-called multi-functional mobile phone such as a so-called smartphone, a tablet type terminal, a camera such as a mobile phone, or the like.

一以上のコードは、情報と対応づけられたコードである。コードと対応づけられた情報は、例えば、コードから読み出される情報である。一以上のコードと対応づけられた情報は、例えば、コードの識別子である。一以上のコードと対応づけられた情報は、例えば、物品またはサービスの識別子と対応づけられた情報である。コードと対応づけられた情報が、物品またはサービスの識別子と対応づけられているということは、例えば、コードと対応づけられた情報自身が、物品またはサービスの識別子であることであっても良く、コードと対応づけられた情報が、物品またはサービスの識別子と対応づけられていることであってもよい。例えば、コードから読み出される情報と、物品識別子とを対応づけて有する情報を図示しない格納部等に予め格納しておくことで、コードから読み出される情報と、物品識別子とを対応づけて管理することができる。   One or more codes are codes associated with information. The information associated with the code is, for example, information read from the code. The information associated with one or more codes is, for example, an identifier of the code. The information associated with one or more codes is, for example, information associated with an identifier of an article or service. That the information associated with the code is associated with the identifier of the article or service may be, for example, that the information associated with the code itself is the identifier of the article or service. The information associated with the code may be associated with the identifier of the article or service. For example, the information read out from the code and the article identifier are managed in correspondence with each other by storing in advance the information having the information read out from the code and the article identifier in association with each other. Can.

一以上のコードは、例えば、物品あるいはそのパッケージの表面や、サービスを示すメニュー等に配置(例えば、添付や印刷)されている。コードは、例えば、二次元状のコードである。一以上のコードは、このコードに対応づけられた物品が配置されている位置の近傍に配置されていても良い。例えば、一以上のコードは、このコードに対応づけられた物品が配置されている棚やパレットや、物品を仕切っている仕切板等に配置(例えば添付)されたコードであってもよい。   One or more codes are arranged (for example, attached or printed) on, for example, the surface of an article or its package, a menu indicating a service, or the like. The code is, for example, a two-dimensional code. One or more cords may be arranged in the vicinity of the position where the article corresponding to this cord is arranged. For example, the one or more cords may be a cord arranged (for example, attached) on a shelf or a pallet on which the article corresponding to the cord is arranged, a partition plate partitioning the article, or the like.

コードとは、例えば、バーコード、二次元バーコード、QRコード(登録商標)、カラーコード、文字列、数字列等の識別可能なものであれば何でも良い。コードは、例えば、光学的な機器を用いて読取り可能な情報である。コードは、文字列や数字列を除いた図形の形状や色やパターンやこれらの組合わせにより識別可能なコードであることが好ましい。コードは、色の配列を識別のための情報として有する二次元コードであるカラーコードであることは好適である。カラーコードは、例えば、カメレオンコードやカラーバーコード、カラー二次元コードとも呼ばれる場合がある。   The code may be anything that can be identified, for example, a barcode, a two-dimensional barcode, a QR code (registered trademark), a color code, a character string, and a number string. The code is, for example, information readable using an optical device. The code is preferably a code that can be identified by the shape, color, pattern of a figure excluding a character string or a number string, or a combination thereof. The code is preferably a color code which is a two-dimensional code having an arrangement of colors as information for identification. The color code may be called, for example, a chameleon code, a color barcode, or a color two-dimensional code.

なお、以下、本実施の形態においては、後述する取得部103がコードから取得する情報がコードの識別子であるコード識別子である場合を例に挙げて説明する。コード識別子は、例えば、コードに対応した文字列や、数字列や、文字列と数字列との組合わせ等である。   In the following, in the present embodiment, an example will be described in which the information acquired by the acquisition unit 103 described later from the code is a code identifier which is an identifier of the code. The code identifier is, for example, a character string corresponding to a code, a number string, or a combination of a character string and a number string.

照明部102は、撮影部101が撮影する領域に光を照射する。照明部102は、例えば、照明のオン、オフや照明の光量等を調節するためのドライバ等を有している。また、照明部102は、通常、一以上の光源(図示せず)を有している。ただし、照明部102は、光源を備えておらず、ドライバ等により照明部102の外部の光源(図示せず)等を用いて光を照射させるようにしても良い。照明部102の照射する光は、後述する制御部104により制御される。照明部102は、いわゆるスマートフォン等の多機能携帯電話や、タブレット型端末や、携帯電話等のフラッシュや照明と考えてもよい。なお、照明部102は、結果として、撮影部101が撮影する領域に光を照射できればよい。   The illumination unit 102 emits light to the area to be photographed by the photographing unit 101. The illumination unit 102 has, for example, a driver or the like for adjusting the on / off of the illumination, the light amount of the illumination, and the like. In addition, the illumination unit 102 generally includes one or more light sources (not shown). However, the illumination unit 102 does not include a light source, and a driver or the like may emit light using a light source (not shown) outside the illumination unit 102 or the like. The light emitted from the illumination unit 102 is controlled by a control unit 104 described later. The illumination unit 102 may be considered as a flash or illumination of a so-called smart phone or other multifunctional mobile phone, a tablet type terminal, a mobile phone or the like. As a result, the lighting unit 102 only needs to be able to emit light to the area photographed by the photographing unit 101.

照明部102は、例えば、照射する光の量(以下、光量と称す)を変更可能なものである。例えば、照明部102は、制御部104が出力する制御信号等に応じて、動作電流を制御することで、発光する光量を調節可能なものであることが好ましい。また、発光する光量が異なる照明を切り替えたり、照明に利用する光源の数を変更することで、結果的に、照射する光の光量を変更可能なものであっても良い。照射する光の量は、光の強度と考えてもよい。また、光量の代わりに光の照度を考えるようにしてもよい。   The illumination unit 102 can change, for example, the amount of light to be emitted (hereinafter, referred to as light amount). For example, it is preferable that the illumination unit 102 be capable of adjusting the amount of light to be emitted by controlling the operating current according to a control signal or the like output from the control unit 104. Further, the amount of light to be emitted may be changed as a result by switching between illuminations with different amounts of light emitted or changing the number of light sources used for the illumination. The amount of light emitted may be considered as the intensity of the light. Also, instead of the light amount, the illuminance of light may be considered.

照明部102は、例えば、照射する光の色を変更可能なものである。例えば、照明部102が照射する光の色は、制御部104により制御される。照明部102は、どのような構成により照射する光の色を変更できるものであっても良い。照明部102は、例えば、異なる色を発する二以上の光源(図示せず)を有しており、これらの光源が出力する光量を個別に制御することで、照射する光の色を変更可能なものである。例えば、照明部102は、個別に光量を制御可能な、R(赤)の光を照射する光源と、G(緑)の光を照射する光源と、B(青)の光を照射する光源とを備えたものであり、各光源の光量を個別に制御することで、照射する光の色を変更可能なものである。光の強度を制御することは、光をオン、オフすることも含む概念である。また、照明部102は、例えば、1以上の光源から出射される光を、カラーフィルタを透過させることによって着色して出力することで、光の色を制御してもよい。例えば、複数の光源から出力される光が、それぞれ異なる色のカラーフィルタを通過して出力されるようにし、各光源の出力を変更することで、光の色を制御しても良い。また、例えば、複数の光源から出力される光が、それぞれ、液晶フィルタ(図示せず)と、異なるカラーフィルタ(図示せず)とを通過して出力されるようにし、制御部104が出力する制御信号等に応じて、各液晶フィルタについての光の透過、非透過を個別に切り替えることで、照射される光の色を制御しても良い。例えば、光の透過を個別に切り替えて、各カラーフィルタから出射される光の組み合わせを変更することで、異なる色の光を照射できるようにしてもよい。異なるカラーフィルタは、例えば、R、G、Bのカラーフィルタである。   The illumination unit 102 can change, for example, the color of light to be emitted. For example, the color of light emitted by the illumination unit 102 is controlled by the control unit 104. The illumination unit 102 may be capable of changing the color of light to be emitted with any configuration. The illumination unit 102 has, for example, two or more light sources (not shown) emitting different colors, and the color of the light to be irradiated can be changed by individually controlling the light amounts output from these light sources. It is a thing. For example, the illumination unit 102 can control the light amount individually, a light source for emitting R (red) light, a light source for emitting G (green) light, and a light source for emitting B (blue) light. The color of the light to be irradiated can be changed by individually controlling the light amount of each light source. Controlling the light intensity is a concept that also includes turning on and off the light. In addition, the illumination unit 102 may control the color of light by, for example, coloring light emitted from one or more light sources by transmitting a color filter and outputting the light. For example, light output from a plurality of light sources may be output through color filters of different colors, and the color of light may be controlled by changing the output of each light source. Also, for example, light output from a plurality of light sources is output by passing through a liquid crystal filter (not shown) and a different color filter (not shown), respectively, and the control unit 104 outputs The color of light to be emitted may be controlled by switching transmission and non-transmission of light of each liquid crystal filter individually according to a control signal or the like. For example, light of different colors may be emitted by switching transmission of light individually and changing the combination of light emitted from each color filter. The different color filters are, for example, R, G, B color filters.

取得部103は、撮影部101が取得した撮影画像内において一または二以上のコードを検出する処理を行なう。そして、取得部103は、検出した一または二以上のコードから、このコードに対応づけられた情報を取得する。例えば、取得部103は、コードと対応づけられた情報として、コード識別子を取得する。   The acquisition unit 103 performs processing for detecting one or more codes in the captured image acquired by the imaging unit 101. Then, the acquisition unit 103 acquires, from the detected one or more codes, information associated with the codes. For example, the acquisition unit 103 acquires a code identifier as the information associated with the code.

取得部103によるコードの検出は、コードの画像や、コードの領域を検出することと考えてもよい。例えば、撮影画像が動画像である場合、取得部103は、撮影部101が取得したフレーム画像を二値化して、パターンマッチングや特徴量を検出する処理等により、コードの外枠等の形状を認識して、撮影画像内のコードが配置されている領域を検出する。そして、検出したコードの画像を取得する。撮影画像が静止画像である場合においても同様である。なお、取得部103は、一の撮影画像から、複数のコードの画像を取得しても良い。また、取得部103は、取得したコードの画像の形状を、適宜補正してもよい。なお、撮影画像から、コードを検出してコード識別子を取得する処理等は、公知技術であるため、ここでは詳細な説明は省略する。   The detection of the code by the acquisition unit 103 may be considered as detecting an image of the code or an area of the code. For example, when the captured image is a moving image, the acquisition unit 103 binarizes the frame image acquired by the imaging unit 101 and performs pattern matching, processing of detecting a feature amount, or the like to obtain the shape such as the outer frame of the code. It recognizes and detects the area | region where the code | cord | chord in the picked-up image is arrange | positioned. Then, an image of the detected code is acquired. The same applies to the case where the photographed image is a still image. Note that the acquisition unit 103 may acquire images of a plurality of codes from one captured image. In addition, the acquisition unit 103 may appropriately correct the shape of the acquired code image. It is to be noted that processing for detecting a code from a photographed image and acquiring a code identifier is a well-known technology, and thus detailed description will be omitted here.

取得部103は、例えば、撮影画像内においてコードを検出できなかった場合、コードが検出できなかったことを示す情報を、後述する制御部104に出力してもよい。例えば、撮影画像が動画像である場合においては、コードの検出を開始してから予め指定された時間内にコードが検出できなかった場合に、コードを検出できなかったことを示す情報を出力しても良い。   For example, when the code can not be detected in the captured image, the acquisition unit 103 may output information indicating that the code can not be detected to the control unit 104 described later. For example, when the captured image is a moving image, information indicating that the code could not be detected is output if the code can not be detected within a predetermined time after the detection of the code is started. It is good.

取得部103が、撮影画像から検出した一または二以上のコードから、この一または二以上のコードに対応づけられた情報、例えば、コード識別子等を取得する処理については、公知の技術であるため、ここでは、詳細な説明は省略する。   A process of acquiring information associated with one or more codes, for example, a code identifier, from the one or more codes detected from the captured image, for example, the processing performed by the acquisition unit 103 from the one or more codes is a known technique. Here, the detailed description is omitted.

取得部103は、例えば、撮影画像から検出したコードから、このコードに対応づけられた情報を取得できなかった場合、コードが取得できなかったことを示す情報を、後述する制御部104に出力してもよい。検出されたコードから、コードに対応づけられた情報を取得できなかった場合とは、例えば、コードがカラーコードであった場合において、コードが配置されている領域は検出できたが、このコードを構成する色が判別できなかった場合等である。例えば、撮影画像が動画像である場合においては、コードの検出を開始してから予め指定された時間内にコードに対応づけられた情報が取得できなかった場合、取得部103は、コードに対応づけられた情報が取得できなかったことを示す情報を出力しても良い。   For example, when the information associated with the code can not be acquired from the code detected from the captured image, the acquiring unit 103 outputs information indicating that the code can not be acquired to the control unit 104 described later. May be If the information associated with the code can not be acquired from the detected code, for example, in the case where the code is a color code, the area in which the code is arranged can be detected. This is the case, for example, when the color to be configured can not be determined. For example, when the captured image is a moving image, the acquisition unit 103 corresponds to the code when the information associated with the code can not be acquired within the time designated in advance after the detection of the code is started. Information indicating that the attached information could not be acquired may be output.

取得部103は、更に、図示しない格納部等に予め格納されているコード識別子と物品またはサービスの識別子とを対応づけて有する複数の情報から、上記で取得した一以上のコード識別子に対応した物品またはサービスの識別子を取得するようにしてもよい。   The acquiring unit 103 further transmits an item corresponding to one or more code identifiers acquired above from a plurality of pieces of information having code identifiers stored in advance in a storage unit (not shown) and the like, and identifiers of the articles or services. Alternatively, the identifier of the service may be acquired.

なお、例えば、カラーコード等の、色の配列を識別情報として有する二次元コードの場合、一の撮影画像に複数のコードが存在する場合であっても、複数の各コードからそれぞれコード識別子等のコードに対応する情報を取得可能なものがあることが知られている。このため、このようなコードを使うことで、一の撮影画像内の複数のコードについてそれぞれ、コード識別子等の情報を取得することが可能である。   Note that, for example, in the case of a two-dimensional code having a color array such as a color code as identification information, even if a plurality of codes exist in one captured image, a code identifier etc. It is known that there is one that can obtain information corresponding to the code. Therefore, by using such a code, it is possible to obtain information such as a code identifier for each of a plurality of codes in one shot image.

取得部103は、例えば、一の撮影画像について一以上のコードを検出した場合、あるいは、検出したコードから、このコードに対応する情報が取得できた場合、それ以降は、同じ撮影画像については、コードの検出や、コードに対応する情報の取得は行なわないようにしても良い。   If, for example, one or more codes are detected for one captured image, or if information corresponding to this code can be obtained from the detected code, the acquiring unit 103 thereafter, for the same captured image, The detection of the code or the acquisition of the information corresponding to the code may not be performed.

制御部104は、取得部103が撮影画像から取得した情報に応じて、照明部102が撮影領域に対して照射する光を制御する。例えば、制御部104は、照明部102が照射する光の光量や、光の色を制御する。制御部104による照明部102の制御は、例えば、照明部102に対して、制御信号等を出力することにより行なわれる。   The control unit 104 controls the light emitted from the illumination unit 102 to the imaging region according to the information acquired by the acquiring unit 103 from the captured image. For example, the control unit 104 controls the amount of light emitted by the illumination unit 102 and the color of the light. The control of the illumination unit 102 by the control unit 104 is performed, for example, by outputting a control signal or the like to the illumination unit 102.

制御部104は、例えば、撮影部101が取得した撮影画像から、一以上のパラメータを取得し、取得したパラメータに応じて、照明部102が撮影領域に対して照射する光を制御する。制御部104が取得するパラメータは、どのようなパラメータであっても良い。制御部104が取得するパラメータは、例えば、撮影領域に対して照射されている光の状況に対応関係を有するパラメータである。   The control unit 104 acquires, for example, one or more parameters from the captured image acquired by the imaging unit 101, and controls the light emitted from the illumination unit 102 to the imaging region according to the acquired parameter. The parameter acquired by the control unit 104 may be any parameter. The parameter acquired by the control unit 104 is, for example, a parameter having a correspondence relationship with the state of light being irradiated to the imaging region.

制御部104が撮影画像から取得するパラメータは、例えば、光量に関するパラメータである。制御部104は、例えば、撮影画像から、光量に関するパラメータを取得し、取得したパラメータに応じて、照明部102が撮影領域に対して照射する光の光量を制御する。光量に関するパラメータは、光の強度に関するパラメータと考えてもよい。光量に関するパラメータは、例えば、撮影領域に照射されている光の光量を結果的に判断可能なパラメータである。照明の光量に関するパラメータとは、例えば、照明の光量に対して対応関係を有する撮影画像のパラメータである。光量に関するパラメータは、例えば、撮影画像全体あるいはその一部の、明度または輝度のパラメータである。明度または輝度のパラメータは、例えば、撮影画像全体あるいはその一部を構成する一以上の画素の明度または輝度や、その平均値や中央値等の代表値や、最大値や最小値等である。また、光量に関するパラメータは、例えば、撮影画像全体あるいはその一部の、Rチャンネルや、Gチャンネル、Bチャンネル等の一以上のチャンネルの値やその代表値や最大値や最小値等であってもよい。   The parameters acquired by the control unit 104 from the photographed image are, for example, parameters related to the light amount. The control unit 104 acquires, for example, a parameter related to the light amount from the captured image, and controls the light amount of the light emitted to the imaging region by the illumination unit 102 according to the acquired parameter. The parameter relating to the light quantity may be considered as a parameter relating to the light intensity. The parameter related to the light amount is, for example, a parameter that can determine the light amount of the light irradiated to the imaging region as a result. The parameter related to the light amount of the illumination is, for example, a parameter of a photographed image having a correspondence with the light amount of the illumination. The parameter relating to the light quantity is, for example, a parameter of lightness or luminance of the whole captured image or a part thereof. The parameter of lightness or luminance is, for example, the lightness or luminance of one or more pixels constituting the entire captured image or a part thereof, a representative value such as an average value or a median value thereof, or a maximum value or a minimum value. Further, the parameter relating to the light quantity may be, for example, the value of one or more channels such as R channel, G channel, B channel, etc. of the whole or part of the photographed image, or its representative value, maximum value or minimum value etc. Good.

制御部104は、例えば、光量に関するパラメータを取得して、取得したパラメータが予め指定された条件を満たす場合に、照明部102が撮影領域に対して照射する光の光量を制御する。予め指定された条件とは、例えば、撮影領域からコードを適切に読み取れないことを判断するための光量に関する条件である。予め指定された条件は、例えば、光量に関するパラメータが第一の閾値以下であるという条件や、第二の閾値以上であるという条件(ただし、第一の閾値は、第二の閾値よりも小さい値であるとする)等である。   For example, the control unit 104 acquires a parameter related to the light amount, and controls the light amount of the light emitted to the imaging region by the illumination unit 102 when the acquired parameter satisfies a predetermined condition. The condition designated in advance is, for example, a condition relating to the amount of light for judging that the code can not be read properly from the photographing area. The condition designated in advance is, for example, the condition that the parameter related to the light quantity is less than or equal to the first threshold, or the condition that it is greater than or equal to the second threshold (however, the first threshold is smaller than the second threshold) And so on).

制御部104は、例えば、取得した光量に関するパラメータが予め指定された条件を満たすと判断した場合に、照明部102により、撮影領域を照明させるようにしてもよい。この際、制御部104は、例えば、照明部102に予め指定された光量で撮影領域を照明させてもよい。なお、上述した閾値は、コード読取装置1が利用される環境等に応じて、適宜変更可能である。また、閾値の最適な値は、例えば、実験結果や経験値等に応じて得られた値を設定することが好ましい。かかることは、以下の他の閾値等についても同様である。   The control unit 104 may cause the illumination unit 102 to illuminate the imaging region, for example, when it is determined that the acquired parameter relating to the light amount satisfies the condition designated in advance. At this time, for example, the control unit 104 may cause the illumination unit 102 to illuminate the imaging area with a light amount designated in advance. In addition, the threshold value mentioned above can be suitably changed according to the environment etc. in which the code reader 1 is utilized. In addition, as the optimal value of the threshold, for example, it is preferable to set a value obtained according to an experimental result, an experience value, or the like. The same applies to the other threshold values described below.

また、制御部104は、例えば、パラメータが予め指定された条件を満たさなくなるよう照明部102が照射する光を制御してもよい。例えば、撮影部101が撮影する撮影画像が動画像である場合や、撮影部101が撮影する撮影画像が静止画像であって、制御部104が照明の制御を行なうごとに新たな撮影画像が撮影される場合等においては、撮影画像から取得した光量に関するパラメータが、予め指定された条件を満たさなくなるまで、照明部102が照射する光量をフィードバック制御するようにしても良い。例えば、制御部104は、撮影画像から取得した光量に関するパラメータが予め指定された条件を満たす場合に、照明部102に予め指定された光量の光を照射させ、その後、撮影部101が撮影したフレーム画像や静止画像について、再度、光量に関するパラメータを取得し、取得したパラメータの値が条件を満たす場合に、前回の光量とは異なる光量の光を照明部102に照射させることを、撮影画像から取得した光量に関するパラメータが予め指定された条件を満たさなくなるまで繰り返すようにしてもよい。フィードバック制御については、公知技術であるため、ここでは詳細な説明は省略する。   Further, for example, the control unit 104 may control the light emitted by the illumination unit 102 so that the parameter does not satisfy the condition designated in advance. For example, when the captured image captured by the imaging unit 101 is a moving image, or the captured image captured by the imaging unit 101 is a still image, and a new captured image is captured each time the control unit 104 performs lighting control. In such a case, the light amount emitted by the illumination unit 102 may be feedback-controlled until the parameter related to the light amount acquired from the photographed image does not satisfy the condition designated in advance. For example, the control unit 104 causes the lighting unit 102 to emit light of a predetermined light amount when the parameter related to the light amount acquired from the photographed image satisfies the predetermined condition, and then the frame photographed by the photographing unit 101 For the image and still image, acquire the parameter related to the light quantity again, and obtain from the captured image that the illumination unit 102 is irradiated with the light quantity of light different from the previous light quantity when the acquired parameter value satisfies the condition It may be repeated until the parameter relating to the amount of light does not satisfy the condition designated in advance. The feedback control is a known technique, and thus the detailed description is omitted here.

また、制御部104は、例えば、照明の光量に関するパラメータの値が示す光量の不足分が大きくなるに従って、連続的または段階的に撮影領域に対して照射される光の光量が大きくなるよう、照明部102を制御してもよい。   In addition, the control unit 104 performs illumination such that, for example, as the shortage of the light amount indicated by the value of the parameter regarding the light amount of the illumination increases, the light amount of the light irradiated to the imaging region continuously or stepwise increases. The unit 102 may be controlled.

なお、照明の光量に関するパラメータに応じて制御される光は、通常は、白色光である。ただし、白色光以外の光を用いても良い。   In addition, the light controlled according to the parameter regarding the light quantity of illumination is white light normally. However, light other than white light may be used.

また、制御部104が撮影画像から取得するパラメータは、例えば、光の色に関するパラメータであってもよい。例えば、制御部104は、撮影画像から、光の色に関するパラメータを取得し、取得したパラメータに応じて、照明部102が撮影領域に対して照射する光の色を制御する。   The parameters acquired by the control unit 104 from the captured image may be, for example, parameters related to the color of light. For example, the control unit 104 acquires a parameter related to the color of light from the captured image, and controls the color of light emitted to the imaging region by the illumination unit 102 according to the acquired parameter.

光の色に関するパラメータは、例えば、撮影領域に照射される光の色を結果的に判断可能なパラメータである。光の色に関するパラメータとは、例えば、撮影領域に照射される光の色に対して対応関係を有する撮影画像のパラメータである。光の色に関するパラメータは、例えば、撮影画像内の少なくとも一部についての、色相、色相および彩度、または色相、彩度および明度のパラメータの値やその平均値や中央値等の代表値や、最大値や最小値等である。また、光の色に関するパラメータは、例えば、撮影画像全体あるいはその一部の、Rチャンネルや、Gチャンネル、Bチャンネル等の一以上のカラーチャンネルの値やその代表値や最大値や最小値等であってもよい。各カラーチャンネルの値は、例えば、各カラーチャンネルを構成する画素の明度の値である。撮影画像の画像モードが、CMYKモード等である場合、各カラーチャンネルは、CMYKの各チャンネルであっても良い。また、光の色に関するパラメータは、撮影画像内の少なくとも一部の領域、好ましくは全ての領域内の各画素の色相の値であってもよい。色相の値は、例えば、撮影部101が取得するRGBモード等の撮影画像をHSLモードに変更した場合の各画素のH(色相)の値である。   The parameter relating to the color of light is, for example, a parameter that can eventually determine the color of light emitted to the imaging region. The parameter relating to the color of light is, for example, a parameter of a photographed image having a correspondence with the color of light irradiated to the photographing region. The parameters relating to the color of light include, for example, values of hue, hue and saturation, or values of hue, saturation and lightness parameters, representative values such as average values and median values, or the like of at least a part of the captured image. The maximum value, the minimum value, etc. Further, parameters relating to the color of light are, for example, values of one or more color channels such as R channel, G channel, B channel, etc. of the whole captured image or a part of it, representative values, maximum values, minimum values, etc. It may be. The value of each color channel is, for example, the value of the lightness of the pixels that make up each color channel. When the image mode of the photographed image is the CMYK mode or the like, each color channel may be the CMYK channel. In addition, the parameter relating to the color of light may be the value of the hue of each pixel in at least a partial area of the captured image, preferably in all the areas. The value of the hue is, for example, the value of H (hue) of each pixel when the photographed image in the RGB mode or the like acquired by the photographing unit 101 is changed to the HSL mode.

制御部104は、例えば、撮影画像から光の色に関するパラメータを取得して、取得したパラメータが予め指定された条件を満たす場合に、照明部102が撮影領域に対して照射する光の色を制御する。予め指定された条件とは、例えば、撮影領域からコードを適切に読み取れないことを判断するための光の色に関する条件である。予め指定された条件とは、撮影画像に色の偏りがあることを示す条件である。   The control unit 104 acquires, for example, a parameter relating to the color of light from the captured image, and controls the color of light emitted to the imaging region by the illumination unit 102 when the acquired parameter satisfies a predetermined condition. Do. The condition designated in advance is, for example, a condition relating to the color of light for determining that the code can not be properly read from the photographing area. The condition designated in advance is a condition indicating that the photographed image has a color bias.

例えば、予め指定された条件は、撮影画像内の少なくとも一部(好ましくは全部)から取得した光の色のパラメータである各画素の色相の値の分布において、予め指定された値の幅を有する連続した色相の領域に、上記の少なくとも一部の画素中の予め指定された閾値以上の比率の画素(例えば、90%以上の比率の画素)が含まれている、という条件である。色相の値の幅は、例えば、色相環を構成する連続した色の全体の幅を「360」とした場合の値(例えば、「20」等)で示すことが可能である。例えば、制御部104は、撮影画像から取得した光の色のパラメータである各画素の色相の値の分布において、予め指定された値の幅を有する連続した色相の領域であって、その領域に全画素中の予め指定された閾値以上の比率の画素が含まれる領域があるか否かを判断する。このような領域が検出された場合、制御部104は、撮影画像の少なくとも一部に色の偏りが存在すると判断し、この検出された領域の色相の範囲に対応する色が、撮影画像内において偏っている色であると判断する。なお、上述した色相の値の幅は、コード読取装置1が利用される環境等に応じて、適宜変更可能である。また、この値の幅の最適な値は、例えば、実験結果や経験値等に応じて得られた値を設定することが好ましい。   For example, the predesignated condition has a width of a predesignated value in the distribution of hue values of each pixel which is a parameter of the color of light acquired from at least a part (preferably all) in the captured image The condition is that the continuous hue region includes pixels in a ratio equal to or greater than a predetermined threshold value in at least some of the pixels (for example, pixels in a ratio of 90% or more). The width of the hue value can be indicated by, for example, a value (e.g., "20" or the like) when the entire width of continuous colors constituting the hue circle is "360". For example, in the distribution of hue values of each pixel, which is a parameter of the color of light acquired from the photographed image, the control unit 104 is an area of continuous hue having a width of a value designated in advance, It is determined whether or not there is an area including pixels of a ratio equal to or more than a predetermined threshold value in all the pixels. When such a region is detected, the control unit 104 determines that color deviation exists in at least a part of the captured image, and the color corresponding to the range of the hue of the detected region is within the captured image. It is judged that the color is biased. Note that the width of the hue value described above can be appropriately changed in accordance with the environment in which the code reading device 1 is used. Further, as the optimum value of the width of this value, for example, it is preferable to set a value obtained according to an experimental result, an experience value, or the like.

また、予め指定された条件は、例えば、撮影画像の各カラーチャンネルの代表値や最大値等が、閾値以下であるという条件であってもよい。この場合、例えば、閾値以下のカラーチャンネルに対応する色が撮影画像から欠けている、あるいは不足していると判断することができる。   Further, the condition designated in advance may be, for example, a condition that the representative value or the maximum value of each color channel of the photographed image is equal to or less than the threshold value. In this case, for example, it can be determined that the color corresponding to the color channel below the threshold value is missing or lacking from the captured image.

制御部104は、例えば、取得した光の色に関するパラメータが予め指定された条件を満たすと判断した場合に、光の色のパラメータに応じて決定される色の光で照明部102に撮影領域を照明させる。例えば、制御部104は、上述したような条件を満たすか否かの判断処理に応じて取得した、撮影画像内において偏っている色の色相の範囲に基づいて、この色相の範囲外の色の光を照明部102に照射させるようにしてもよい。あるいは、制御部104は、この色相の範囲の色の補色となる色の光を照明部102により照射させてもよい。例えば、照明部102が異なる色を出射する複数の光源(図示せず)を有している場合、異なる色の光源の出力を個別に制御することで、照明部102に、所望の色の光を出力させる。所望の色の光は、所望の色相の範囲の色の光と考えてもよい。また、異なる色の光源の代わりに、異なる色のフィルタを通して光を出射する光源を用いるようにしてもよい。   For example, when the control unit 104 determines that the acquired parameter relating to the light color satisfies the condition designated in advance, the control unit 104 causes the illumination unit 102 to capture the shooting area with light of a color determined according to the light color parameter. Make it light. For example, on the basis of the range of hues of a color biased in the captured image, the control unit 104 acquires colors according to the process of determining whether or not the above-described conditions are satisfied. Light may be emitted to the illumination unit 102. Alternatively, the control unit 104 may cause the illumination unit 102 to emit light of a color that is complementary to the color in the range of the hue. For example, in the case where the illumination unit 102 has a plurality of light sources (not shown) that emit different colors, the light of the desired color is transmitted to the illumination unit 102 by individually controlling the outputs of the light sources of different colors. Output The light of the desired color may be considered as light of a color in the desired hue range. Also, instead of light sources of different colors, light sources that emit light through filters of different colors may be used.

また、制御部104は、例えば、上述したように、上述したような判断処理により、一以上のカラーチャンネルに対応する色が撮影画像から欠けていると判断した場合、この欠けていると判断されたカラーチャンネルが示す色の光を照明部102に照射させるようにしても良い。例えば、Rチャンネルに対応する色が撮影画像から欠けていると判断した場合、この欠けていると判断されたRチャンネルに対応する色である赤色の光を照明部102に照射させるようにしてもよい。   Further, for example, as described above, when it is determined that the color corresponding to one or more color channels is missing from the captured image as described above, it is determined that the color is missing. The light of the color indicated by the color channel may be irradiated to the illumination unit 102. For example, when it is determined that the color corresponding to the R channel is missing from the captured image, the illumination unit 102 may be caused to emit red light which is a color corresponding to the R channel determined to be missing. Good.

また、制御部104は、例えば、光の色に関するパラメータが予め指定された条件を満たさなくなるよう照明部102が照射する光の色を制御してもよい。例えば、撮影部101が撮影する撮影画像が動画像である場合や、撮影部101が撮影する撮影画像が静止画像であって、制御部104が照明の制御を行なうごとに新たな撮影画像が撮影される場合等においては、撮影画像から取得した光の色に関するパラメータが、予め指定された条件を満たさなくなるよう、照明部102が照射する光量をフィードバック制御するようにしても良い。例えば、制御部104は、撮影画像から取得した光の色に関するパラメータが予め指定された条件を満たす場合、照明部102にこの条件に対応した色の光を照明部102に照射させ、その後、撮影部101が撮影したフレーム画像や静止画像について、再度、光の色に関するパラメータを取得し、取得したパラメータの値が条件を満たす場合に、さらに、この条件に対応した色の光を照明部102に照射させることを、撮影画像から取得した光の色に関するパラメータが予め指定された条件を満たすまで繰り返すようにしてもよい。フィードバック制御については、公知技術であるため、ここでは詳細な説明は省略する。   Further, for example, the control unit 104 may control the color of the light emitted by the lighting unit 102 so that the parameter related to the light color does not satisfy the condition designated in advance. For example, when the captured image captured by the imaging unit 101 is a moving image, or the captured image captured by the imaging unit 101 is a still image, and a new captured image is captured each time the control unit 104 performs lighting control. In such a case, the amount of light emitted by the illumination unit 102 may be feedback-controlled so that the parameter related to the color of light acquired from the captured image does not satisfy the condition designated in advance. For example, when the parameter related to the color of light acquired from the captured image satisfies the condition designated in advance, the control unit 104 causes the illuminating unit 102 to emit light of a color corresponding to the condition to the illuminating unit 102, and then capturing In the frame image and the still image captured by the unit 101, a parameter related to the color of light is acquired again, and when the acquired parameter value satisfies the condition, light of a color corresponding to the condition is further transmitted to the illumination unit 102. Irradiation may be repeated until a parameter related to the color of light acquired from the captured image satisfies a predetermined condition. The feedback control is a known technique, and thus the detailed description is omitted here.

なお、制御部104は、光量に関する異なる二以上のパラメータを用いて、これらのパラメータの組合わせに応じて、適宜、照明の光量を制御しても良い。また、制御部104は、光の色に関する異なる二以上のパラメータを用いて、これらのパラメータの組合わせに応じて、適宜、照明の光の色を制御しても良い。制御部104は、照明の光量に関する一以上のパラメータと、光の色に関する一以上のパラメータとの組合わせに応じて、適宜、照明の光を制御しても良い。また、制御部104は、一の光量に関するパラメータに対して、予め指定された二以上の条件の組合わせについて、条件を満たすか否かの判断を行ない、その判断結果の組合わせについて、適宜、照明の光量を制御しても良い。かかることは、光の色についても同様である。   The control unit 104 may appropriately control the light amount of the illumination according to the combination of these parameters using two or more different parameters relating to the light amount. Further, the control unit 104 may control the color of the illumination light as appropriate according to a combination of these parameters, using two or more different parameters relating to the color of light. The control unit 104 may appropriately control the light of the illumination according to a combination of one or more parameters regarding the light amount of the illumination and one or more parameters regarding the color of the light. Further, the control unit 104 determines whether or not the condition regarding the combination of two or more conditions designated in advance is satisfied with respect to the parameter related to one light quantity, and the combination of the determination results is appropriately determined. You may control the light quantity of illumination. The same applies to the color of light.

なお、制御部104が、撮影画像から取得した情報に応じて、照明部102が照射する光の制御を行なうタイミングやトリガー等は問わない。例えば、制御部104は、予め指定された一定または不定のタイミング毎に、上述したような照明部102が照射する光の制御を行なうようにしても良い。また、例えば、制御部104は、撮影部101が最初に撮影画像(例えば、撮影画像のフレーム画像等)を取得した場合に、撮影画像から取得した情報に応じた照射する光の制御を行なうようにしてもよい。   Note that there is no limitation on the timing or trigger of the control unit 104 controlling the light emitted by the illumination unit 102 according to the information acquired from the captured image. For example, the control unit 104 may perform control of light emitted by the illumination unit 102 as described above at predetermined or predetermined timing designated in advance. In addition, for example, when the imaging unit 101 first acquires a captured image (for example, a frame image of the captured image), the control unit 104 performs control of light to be applied according to the information acquired from the captured image. You may

また、制御部104は、取得部103が撮影画像からコードを検出できなかった場合に、撮影画像から取得した情報に応じて、照明部102が撮影領域に対して照射する光を制御するようにしてもよい。例えば、制御部104は、撮影画像から取得したパラメータを用いて、照明部102が照射する光の制御を行なう。例えば、制御部104は、上述したような光量に関するパラメータを用いた制御を行なっても良く、光の色に関するパラメータを用いた制御を行なっても良く、その両方を行なっても良い。   Further, when the acquisition unit 103 can not detect the code from the photographed image, the control unit 104 controls the light emitted from the illumination unit 102 to the photographing region according to the information acquired from the photographed image. May be For example, the control unit 104 controls the light emitted by the illumination unit 102 using the parameters acquired from the captured image. For example, the control unit 104 may perform control using parameters relating to the light amount as described above, may perform control using parameters relating to the color of light, or may perform both of them.

出力部105は、取得部103が取得した情報を出力する。例えば、出力部105は、取得部103が取得したコード識別子を、コード識別子を処理するための図示しないサーバ装置等に送信する。   The output unit 105 outputs the information acquired by the acquisition unit 103. For example, the output unit 105 transmits the code identifier acquired by the acquisition unit 103 to a server apparatus (not shown) or the like for processing the code identifier.

なお、出力部105は、撮影画像からコードに対応づけられた情報を取得できなかった場合、その旨を示す情報を出力しても良い。例えば、その旨を示す情報として、コードの読取エラーを示す文字列や画像の表示や、音声の出力を行なっても良い。   When the output unit 105 can not acquire the information associated with the code from the captured image, the output unit 105 may output information indicating that effect. For example, as information indicating that, display of a character string or image indicating a code reading error, or sound may be performed.

また、出力部105は、撮影部101が撮影した撮影画像を図示しないモニタ等に表示してもよい。   Further, the output unit 105 may display the photographed image photographed by the photographing unit 101 on a monitor or the like (not shown).

ここでの出力とは、ディスプレイへの表示、音出力、外部の装置への送信、記録媒体への蓄積、他の処理装置や他のプログラムなどへの処理結果の引渡しなどを含む概念である。   The term "output" as used herein is a concept including display on a display, sound output, transmission to an external device, storage in a recording medium, delivery of processing results to another processing device or other program, and the like.

出力部105は、モニタや通信手段等の出力デバイスを含むと考えても含まないと考えても良い。出力部105は、出力デバイスのドライバーソフトまたは、出力デバイスのドライバーソフトと出力デバイス等で実現され得る。   The output unit 105 may or may not include an output device such as a monitor or communication means. The output unit 105 can be realized by driver software of an output device, or driver software of an output device and an output device.

次に、コード読取装置1の動作の一例について図2のフローチャートを用いて説明する。   Next, an example of the operation of the code reader 1 will be described with reference to the flowchart of FIG.

(ステップS101)撮影部101は、撮影領域の撮影を開始する。ここでは、撮影部101が撮影により取得する撮影画像が、動画像である場合を例に挙げて説明する。また、ここでは、最初は、照明部102による撮影領域の照明は行なわないものとする。   (Step S101) The imaging unit 101 starts imaging of the imaging area. Here, the case where the photographed image acquired by the photographing unit 101 by photographing is a moving image will be described as an example. Here, at first, the illumination of the imaging region by the illumination unit 102 is not performed.

(ステップS102)取得部103は、ステップS101で取得した撮影画像から一のフレーム画像を取得する。例えば、取得部103は、最新のフレーム画像を取得する。なお、例えば、後述するステップS108,S109の直後に、このステップS102の処理を行なう場合においては、取得部103は、これらのステップS108,S109の後に撮影されたフレーム画像を取得する。なお、撮影画像が動画像でない場合、撮影部101は、例えば、このステップにおいて新たな静止画像等を撮影して取得してもよい。また、この場合、その後の処理においては、この静止画像をフレーム画像の代わりに利用するようにしてもよい。   (Step S102) The acquiring unit 103 acquires one frame image from the photographed image acquired in step S101. For example, the acquisition unit 103 acquires the latest frame image. For example, in the case where the process of step S102 is performed immediately after steps S108 and S109 described later, the acquiring unit 103 acquires frame images captured after these steps S108 and S109. If the captured image is not a moving image, for example, the imaging unit 101 may capture and acquire a new still image or the like in this step. In this case, in the subsequent processing, this still image may be used instead of the frame image.

(ステップS103)取得部103は、ステップS102で取得したフレーム画像から1以上のコードを検出する処理を行ない、コードが検出できたか否かを判断する。例えば、取得部103は、コードの輪郭を検出して、コードの画像を取得する。検出できた場合、ステップS104に進み、検出できていない場合、ステップS106に進む。   (Step S103) The acquiring unit 103 performs processing for detecting one or more codes from the frame image acquired in step S102, and determines whether or not the code has been detected. For example, the acquisition unit 103 detects the outline of the code and acquires an image of the code. If it can be detected, the process proceeds to step S104. If it is not detected, the process proceeds to step S106.

(ステップS104)取得部103は、コードから、コードに対応づけられた情報、例えばコード識別子を読み出す処理を行なう。そして、コードに対応づけられた情報が読み出せた場合、ステップS105に進み、読み出せなかった場合、ステップS106に進む。   (Step S104) The acquiring unit 103 performs a process of reading, from the code, information associated with the code, for example, a code identifier. When the information associated with the code can be read, the process proceeds to step S105. When the information can not be read, the process proceeds to step S106.

(ステップS105)出力部105は、ステップS104で取得した情報を出力する。そして、処理を終了する。   (Step S105) The output unit 105 outputs the information acquired in step S104. Then, the process ends.

(ステップS106)制御部104は、撮影の開始から予め指定された時間が経過したか否かを判断する。経過していない場合、ステップS107に進み、経過した場合、ステップS110に進む。   (Step S106) The control unit 104 determines whether a predetermined time has elapsed since the start of imaging. If it has not elapsed, the process proceeds to step S107. If it has elapsed, the process proceeds to step S110.

(ステップS107)制御部104は、ステップS102で取得したフレーム画像から、パラメータを取得する。例えば、制御部104は、光量に関するパラメータを取得する。また、制御部104は、光の色に関するパラメータを取得する。   (Step S107) The control unit 104 acquires parameters from the frame image acquired in step S102. For example, the control unit 104 acquires a parameter related to the light amount. In addition, the control unit 104 acquires parameters related to the color of light.

(ステップS108)制御部104は、ステップS107で取得したパラメータが、予め指定された条件を満たすか否かを判断する。例えば、制御部104は、ステップS107で取得した光量に関するパラメータが、この光量に関するパラメータに対応した条件を満たすか否かを判断する。また、制御部104は、例えば、ステップS107で取得した光の色に関するパラメータが、この光の色に関するパラメータに対応した条件を満たすか否かを判断する。そして、制御部104は、いずれか一方が条件を満たすと判断した場合に、ステップS107で取得したパラメータが予め指定された条件を満たすと判断し、いずれの条件も満たさなかった場合、予め指定された条件を満たさないと判断するようにして良い。予め指定された条件を満たす場合、ステップS109に進み、条件を満たさない場合、ステップS102に戻る。例えば、ステップS107で取得したパラメータが、予め指定された条件を満たさない場合にステップS102に戻ることにより、例えば、単に撮影画像内にコードが写っていないためにコードが検出できないことや、手ぶれ等により撮影画像が鮮明でないためにコードの検出やコードからの情報の読み出しができない場合等に、再度、撮影画像からコードを検出して情報を取得する処理を行なうことが可能となる。   (Step S108) The control unit 104 determines whether or not the parameter acquired in step S107 satisfies the condition designated in advance. For example, the control unit 104 determines whether the parameter related to the light amount acquired in step S107 satisfies the condition corresponding to the parameter related to the light amount. Further, for example, the control unit 104 determines whether the parameter regarding the color of light acquired in step S107 satisfies the condition corresponding to the parameter regarding the color of light. If the control unit 104 determines that one of the conditions satisfies the condition, the control unit 104 determines that the parameter acquired in step S107 satisfies the condition specified in advance, and if none of the conditions is satisfied, the control unit 104 is specified in advance. It may be determined that the condition is not satisfied. If the condition specified in advance is satisfied, the process proceeds to step S109. If the condition is not satisfied, the process returns to step S102. For example, if the parameter acquired in step S107 does not satisfy the condition designated in advance, the process returns to step S102, for example, the code can not be detected simply because the code does not appear in the captured image, camera shake, etc. As a result, when it is not possible to detect a code or read out information from a code because the captured image is not clear, it is possible to perform processing for detecting a code from the captured image and acquiring information again.

(ステップS109)制御部104は、ステップS108の判断結果に対応して、照明部102による光の照射を制御する。例えば、証明制御部104は、判断結果に対応した制御信号を証明部102に出力する。制御部104は、例えば、ステップS108において、光量に関するパラメータが、予め指定された条件を満たしている場合、この条件を満たさなくなるように、照射される光量が変更されるよう照明部102を制御する。また、光の色に関するパラメータが、予め指定された条件を満たしている場合、この条件を満たさなくなるように、照射される光の色が変更されるよう照明部102を制御する。あるいは、これらの制御を組合わせても良い。光量を変更したり、光の色を変更するよう照明部102を制御することは、照明部102による発光のオン、オフの制御であっても良い。この制御に応じて、照明部102は、撮影領域に対して光を照射する。そして、ステップS102に戻る。   (Step S109) The control unit 104 controls the illumination of light by the illumination unit 102 in accordance with the determination result of step S108. For example, the proof control unit 104 outputs a control signal corresponding to the determination result to the proof unit 102. For example, in step S108, when the parameter related to the light amount satisfies the condition designated in advance in step S108, the control unit 104 controls the illumination unit 102 to change the light amount to be irradiated such that the condition is not satisfied. . In addition, when the parameter relating to the color of light satisfies the condition designated in advance, the illumination unit 102 is controlled so that the color of the light to be emitted is changed such that the condition is not satisfied. Alternatively, these controls may be combined. The control of the illumination unit 102 to change the amount of light or the color of light may be control of on / off of light emission by the illumination unit 102. In response to this control, the illumination unit 102 emits light to the imaging region. Then, the process returns to step S102.

(ステップS110)出力部105は、撮影画像からコードに対応付けられた情報が取得できなかった旨を示すエラー出力を行なう。そして、処理を終了する。   (Step S110) The output unit 105 performs an error output indicating that the information associated with the code can not be acquired from the captured image. Then, the process ends.

なお、上記の処理において、ステップS103で複数のコードが検出された場合、取得部103は、例えば、ステップS104等において、各コードから個別に、コードに対応した情報を読み出す処理を行なうようにすればよい。   In the above process, when a plurality of codes are detected in step S103, for example, in step S104 or the like, the acquiring unit 103 performs a process of reading out information corresponding to the codes individually from each code. Just do it.

以下、本実施の形態におけるコード読取装置1の具体的な動作について説明する。なお、以下の具体例において用いる閾値等の値は、説明のための便宜上の値であり、実際のコードの読み取りに必ずしも適したものではない場合がある。   Hereinafter, the specific operation of the code reader 1 in the present embodiment will be described. Note that values such as threshold values used in the following specific examples are values for convenience of explanation, and may not necessarily be suitable for actual reading of a code.

図3は、コード読取装置1でコードを撮影している状況を示すための、コード読取装置の正面側から見た斜視図(図3(a))、および背面側から見た斜視図(図3(b))である。ここでは、コード読取装置1がいわゆるスマートフォンを用いて実現されている場合を例に挙げて説明する。コード読取装置1の背面側には、撮影部101であるビデオカメラと、照明部102とが設けられている。ここでは、照明部102は、図示しないR(赤)色の光源と、G(緑)色の光源と、B(青)色の光源とを有しており、これらの光源が照射する光を個別に制御可能なものであるとする。コード読取装置1の正面には、撮影部101が撮影した撮影画像等を表示するモニタ105aが設けられている。ここでは、撮影部101の撮影対象であるコード200がカラーコードである場合を例に挙げて説明する。ここでは、一例として、黒い背景に、水色・紫・黄・緑・赤・青・オレンジの最大8色の色を有する矩形の図柄を、3行9列となるよう2次元に配列した構成を有しているものを用いる場合について説明する。ただし、本具体例においては、カラーコードの形状等は問わない。例えば、カラーコードは円環状のカラーコード等であっても良い。   FIG. 3 is a perspective view (FIG. 3A) as viewed from the front side of the code reader and a perspective view as viewed from the back side to show the situation in which the code is captured by the code reader 1. 3 (b). Here, the case where the code reader 1 is realized using a so-called smart phone will be described as an example. On the back side of the code reader 1, a video camera which is a photographing unit 101 and an illumination unit 102 are provided. Here, the illumination unit 102 has an R (red) light source, a G (green) light source, and a B (blue) light source (not shown), and the light emitted from these light sources is It is assumed that it can be individually controlled. On the front of the code reader 1, a monitor 105 a for displaying a photographed image or the like photographed by the photographing unit 101 is provided. Here, the case where the code 200 which is the shooting target of the shooting unit 101 is a color code will be described as an example. Here, as an example, a configuration in which a rectangular pattern having a maximum of eight colors of light blue, purple, yellow, green, red, blue, and orange is arranged in a two-dimensional manner in three rows and nine columns on a black background The case of using what you have will be described. However, in this specific example, the shape of the color code or the like does not matter. For example, the color code may be an annular color code or the like.

ユーザが、コード読取装置1の背面の撮影部101をコードに向けて、カラーコードを撮影したとする。このとき、デフォルトでは、照明部102は、照明を行なわないものとする。   It is assumed that the user shoots a color code with the shooting unit 101 on the back of the code reader 1 facing the code. At this time, by default, the lighting unit 102 does not perform lighting.

撮影部101は、カラーコードが配置された撮影領域を撮影して、動画像である撮影画像を取得する。   The photographing unit 101 photographs a photographing area in which a color code is arranged, and acquires a photographed image which is a moving image.

取得部103は、撮影部101が取得した動画像からフレーム画像を取得して、カラーコードを検出する処理を行なう。例えば、取得部103は、カラーコードの輪郭等を検出して、カラーコードの領域を検出する。カラーコードを検出する処理は公知技術であるため、ここでは詳細な説明は省略する。   The acquisition unit 103 acquires a frame image from the moving image acquired by the imaging unit 101 and performs processing of detecting a color code. For example, the acquisition unit 103 detects an outline or the like of a color code to detect an area of the color code. The process of detecting a color code is a well-known technique, and thus the detailed description is omitted here.

カラーコードが検出できたとすると、取得部103は、検出したカラーコードを構成する色の配列を読み取る。カラーコードから、色の配列を読み取り、読み取った色の配列に対応した情報(例えば、コード識別子)を取得する処理は、公知技術であるため、ここでは詳細な説明は省略する。また、カラーコードから色の配列を読み出す際等に、上記で検出したカラーコードの画像の形状を適宜補正するようにしても良い。   If a color code is detected, the acquisition unit 103 reads an array of colors constituting the detected color code. A process of reading an array of colors from a color code and acquiring information (for example, a code identifier) corresponding to the array of read colors is a well-known technology, and thus the detailed description is omitted here. In addition, when reading out an array of colors from a color code, the shape of the image of the color code detected above may be appropriately corrected.

出力部105は、取得部103がカラーコードから取得した情報を出力する。例えば、予め指定された図示しないサーバ装置等に取得した情報を送信する。   The output unit 105 outputs the information acquired by the acquisition unit 103 from the color code. For example, the acquired information is transmitted to a server apparatus (not shown) designated in advance.

ここで、取得部103が、フレーム画像からカラーコードが検出できなかったとすると、制御部104は、フレーム画像から、光量に関するパラメータとして、フレーム画像を構成する画素の明度の平均値を取得する。例えば、取得した平均値が、「20」であったとする。なお、ここでは、フレーム画像の各画素が明度として取り得る値の範囲が、「0」から「255」であるとし、値が小さいほど、画素の明度が低い、つまり暗いものとする。   Here, if the acquisition unit 103 can not detect a color code from the frame image, the control unit 104 acquires, from the frame image, the average value of the lightness of the pixels constituting the frame image as a parameter related to the light amount. For example, it is assumed that the acquired average value is "20". Here, it is assumed that the range of values that each pixel of the frame image can take as lightness is “0” to “255”, and the smaller the value, the lower the lightness of the pixel, that is, the darker.

制御部104は、上記で取得した画素の明度の平均値が、明度の平均値について予め指定された閾値以下である、という条件を満たすか否かを判断する。例えば、閾値が、「100」であったとすると、制御部104は、明度の平均値が条件を満たすと判断する。   The control unit 104 determines whether or not the condition is satisfied that the average value of the lightness of the pixels acquired above is equal to or less than a threshold value specified in advance for the average value of lightness. For example, assuming that the threshold value is “100”, the control unit 104 determines that the average value of the lightness satisfies the condition.

また、制御部104は、フレーム画像から、光の色に関するパラメータとして、フレーム画像を構成する全画素のそれぞれについて色相の値を取得する。   Further, the control unit 104 acquires, from the frame image, the hue value for each of all the pixels constituting the frame image as a parameter related to the color of light.

制御部104は、取得したパラメータを用いて、光の色についての条件を満たすか否かを判断する。具体的には、まず、制御部104は、フレーム画像の全画素のそれぞれの色相の値を用いて、フレーム画像の色相のヒストグラムを作成する。このヒストグラムは、例えば、色相の値毎に画素数を集計して、集計した値を色相の値が連続した値となるよう配列したものである。そして、このヒストグラムにおいて、予め指定された値の幅を有する色相の範囲内に含まれる画素数を集計して、全画素数の比率を算出し、その比率が、閾値以上であるものがあるか否かを判断する処理を行なう。そして、同様の処理を、予め指定された値の幅を有する色相の範囲を、色相の値の最小値ずつ移動させて繰り返し行なう。   The control unit 104 determines whether the condition for the color of light is satisfied, using the acquired parameter. Specifically, first, the control unit 104 creates a histogram of the hue of the frame image using the values of the hues of all the pixels of the frame image. In this histogram, for example, the number of pixels is summed up for each hue value, and the summed values are arranged so that the hue values become continuous values. Then, in this histogram, the number of pixels included in the range of hues having a width of a value specified in advance is totaled to calculate the ratio of the total number of pixels, and whether the ratio is equal to or more than the threshold value Perform processing to determine whether or not. Then, the same processing is repeated by moving the hue range having the width of the value designated in advance by the minimum value of the hue value.

例えば、予め指定された値の幅が「30」であったとすると、最初は、色相の値が、「1」から「30」までの範囲である画素数を取得し、取得した画素数の、全画素に対する比率を算出する。そして、算出した比率が、予め指定された色相についての閾値以上であるか否かを判断する。算出した比率が閾値以上である場合、この色相の範囲を示す値と、比率の値とを対応づけて、図示しない格納部等に一時記憶する。閾値以下である場合、一時記憶しない。更に、色相の範囲を一つずらして、「2」から「31」までの範囲である画素数を取得して、全画素数に対する比率を算出し、閾値以上であるか否かを判断する。その後も色相の範囲をずらして、同様の処理を繰り返す。   For example, assuming that the width of the value designated in advance is “30”, at first, the number of pixels whose hue value is in the range from “1” to “30” is acquired, and Calculate the ratio to all pixels. Then, it is determined whether or not the calculated ratio is equal to or more than a threshold value for the hue designated in advance. If the calculated ratio is equal to or greater than the threshold, the value indicating the range of the hue is associated with the value of the ratio and temporarily stored in a storage unit or the like (not shown). If it is below the threshold, it does not store temporarily. Furthermore, the hue range is shifted by one, the number of pixels in the range of “2” to “31” is acquired, the ratio with respect to the total number of pixels is calculated, and it is determined whether it is the threshold or more. After that, the same processing is repeated by shifting the range of hue.

そして、色相の全ての範囲について、上記の処理が終わった時点で、図示しない格納部に色相の範囲を示す値と比率との組が格納されているか否かを判断し、複数の色相の範囲を示す値と比率との組が格納されている場合、その中から、比率が最大である色相の範囲を示す値を取得する。なお、一つだけ色相の範囲を示す値が格納されている場合、この色相の範囲を示す値を取得すればよい。この色相の範囲を示す値が取得できた場合、制御部104は、光の色についての条件を満たすと判断する。ここでは、閾値が「90%」であり、色相の値の範囲を示す値として、「23」から「52」が取得できたとし、制御部104は条件を満たしたと判断する。なお、ここでは、フレーム画像の各画素が取り得る色相の値の範囲が、「0」から「359」であるとする。   Then, for all the ranges of hue, when the above processing is completed, it is determined whether or not a combination of a value indicating the range of hue and a ratio is stored in the storage unit (not shown). Is stored, a value indicating the range of hues having the largest ratio is obtained. When only one value indicating the hue range is stored, a value indicating the hue range may be acquired. When the value indicating the range of the hue can be acquired, the control unit 104 determines that the condition for the color of light is satisfied. Here, it is assumed that the threshold is “90%” and “23” to “52” can be obtained as values indicating the range of hue values, and the control unit 104 determines that the condition is satisfied. Here, it is assumed that the range of possible hue values of each pixel of the frame image is “0” to “359”.

制御部104は、上記のように、光量についての条件を満たすと判断したため、ここでは、照明部102に対して、予めデフォルト等で指定された光量で照明を行なわせることを決定する。   As described above, the control unit 104 determines that the condition regarding the light amount is satisfied, so here, the control unit 104 determines to cause the illumination unit 102 to perform illumination at a light amount designated in advance by default or the like.

また、制御部104は、上述したように光の色についての条件を満たすと判断したため、照明部102に対して、上記で取得した色相の範囲に対応した色の光で照明を行なうことを決定する。照明部102は、まず上記で取得した色相の範囲「23」から「52」の中央値「37.5」を算出する。そして、この値を色相(H)の値とし、彩度(S)を予め指定された値(例えば100等)とし、輝度(L)を予め指定された値(例えば、50%)として有するHSL値で表された色を、RGB値に変換する。このようなHSL値で表される色を、RGB値で表される色に変換する処理としては公知技術が利用可能である。そして、取得したRGB値の色の補色を取得する。例えば、補色のRGB値は、現在のRGB値のうち最大値と最小値の合計から、各R,G,Bの構成要素の値を減算することで取得可能である。なお、補色をどのように取得するかは問わない。補色を取得する処理は公知技術であるため、ここでは詳細な説明は省略する。制御部104は、この取得したRGB値に対応した色の光を、照明部102に照射させることを決定する。   Further, since the control unit 104 determines that the condition for the color of light is satisfied as described above, the control unit 104 determines that the illumination unit 102 should be illuminated with light of a color corresponding to the hue range acquired above. Do. The illumination unit 102 first calculates the median value “37.5” of the hue range “23” to “52” acquired above. Then, the HSL having this value as the hue (H) value, the saturation (S) as the previously designated value (for example, 100), and the luminance (L) as the previously designated value (for example, 50%) Convert a color represented by a value to an RGB value. A known technique can be used as a process for converting the color represented by such HSL values into the color represented by RGB values. Then, the complementary color of the acquired RGB value is acquired. For example, complementary RGB values can be obtained by subtracting the component values of each of R, G, and B from the sum of the maximum value and the minimum value of the current RGB values. It does not matter how to obtain the complementary color. Since the process of acquiring the complementary color is a known technique, the detailed description is omitted here. The control unit 104 determines to cause the illumination unit 102 to emit light of a color corresponding to the acquired RGB value.

制御部104は、照明部102を制御することで、上記で決定した予め指定された光量を有する光であって、上記で決定した色の光を、照明部102に照射させる。例えば、制御部104は、照明部102が有する、R色の光源と、G色の光源と、B色の光源とに対して、上記で取得した補色のRGB値が示すR,G,およびBの値の比率に対応した光量の光であって、それぞれの光源から出射される光の光量を合わせた値が、予め指定された光量となるような光を照射させる。   The control unit 104 controls the illumination unit 102 to cause the illumination unit 102 to emit the light of the color determined as described above, which is the light having the predetermined light amount determined above. For example, the control unit 104 controls the R, G, and B indicated by the RGB values of complementary colors acquired above for the R-color light source, the G-color light source, and the B-color light source of the illumination unit 102. It is light of the light quantity corresponding to the ratio of the value of, and light is emitted such that the value obtained by combining the light quantities of the lights emitted from the respective light sources becomes the light quantity designated in advance.

これにより、照明部102が照射する光により、撮影対象となるコード200が、制御部104が決定した光量と色とを有する光で照明される。   As a result, the code 200 to be photographed is illuminated with light having the light amount and the color determined by the control unit 104 by the light emitted by the illumination unit 102.

取得部103は、上記の照明の直後に、撮影部101が撮影した撮影画像からフレーム画像を取得し、取得したフレーム画像においてコードを検出する。コードが検出された場合、上記と同様に、コードに対応づけられた情報を読み出し、出力する。   The acquisition unit 103 acquires a frame image from the captured image captured by the imaging unit 101 immediately after the illumination described above, and detects a code in the acquired frame image. If a code is detected, the information associated with the code is read and output as described above.

ここで、更に、コードが検出できなかった場合、制御部104は、フレーム画像から上記と同様に、光量に関するパラメータを取得して、上記と同じ予め指定された条件を満たすか否かを判断し、条件を満たす場合には、光量を、上記で決定して照射した光量よりも予め指定された値だけ多い光量で照明することを決定する。例えば、光量を、上記で決定して照射した光量よりも、例えば10%だけ多い光量で照明することを決定する。なお、条件を満たさないと判断された場合には、直前に決定された光量と同じ光量で照明することを決定する。   Here, if the code can not be detected, the control unit 104 acquires a parameter related to the light amount from the frame image as described above, and determines whether or not the same pre-specified condition as described above is satisfied. If the condition is satisfied, it is determined that the light amount is illuminated with a light amount which is larger than the light amount determined and irradiated as described above by a previously designated value. For example, it is decided to illuminate with a light quantity which is 10% more than the light quantity determined and irradiated as described above. If it is determined that the condition is not satisfied, it is determined to illuminate with the same amount of light as the amount of light determined immediately before.

また、制御部104は、上記と同様に、フレーム画像から光の色に関するパラメータを取得して、このパラメータが、上述したように、光の色に関する条件を満たすか否かを判断する。満たす場合、上記と同様に、光の色に関するパラメータを用いて決定した補色により、コードを照明することを決定する。また、満たさない場合、直前に決定された色の光により照明することを決定する。   Further, the control unit 104 acquires a parameter related to the color of light from the frame image as described above, and determines whether this parameter satisfies the condition related to the color of light as described above. If so, as described above, it is decided to illuminate the code with the complementary color determined using the parameters relating to the color of the light. If not satisfied, it is decided to illuminate with the light of the color determined immediately before.

そして、制御部104は、照明部102を制御して、上記で決定した光でコードを照明させ、上記と同様の処理を、コードから情報が取得できるまで繰り返す。
なお、撮影部101の撮影開始から、予め指定された時間以上経過した時点で、撮影画像からカラーコードに対応した情報を取得できていない場合、例えば、カラーコードが検出できていない場合や、カラーコードから対応する情報を取得できていない場合、出力部105は、モニタ105aに、コードから情報が取得できなかった旨の表示を行ない、コードを読み取る処理を終了する。
Then, the control unit 104 controls the illumination unit 102 to illuminate the code with the light determined above, and repeats the same process as described above until information can be obtained from the code.
Note that if information corresponding to the color code can not be acquired from the photographed image when a predetermined time or more has elapsed from the start of photographing by the photographing unit 101, for example, the color code can not be detected, or If the corresponding information can not be acquired from the code, the output unit 105 displays on the monitor 105 a that the information can not be acquired from the code, and ends the process of reading the code.

これにより、照明部102により、適切に照明したコードを撮影することが可能となり、コードを適切に読み取ることが可能となる。   As a result, the illumination unit 102 can capture an appropriately illuminated code, and can appropriately read the code.

なお、上記においては、フレーム画像からコードが検出できない場合に、照明部102が出射する光を制御するようにしたが、フレーム画像から検出したコードから、このコードに対応づけた情報が読み出せない場合、例えば、カラーコードを構成する色が判別できない場合等においても、照明部102が照射する光量や光の色を、上記と同様に決定するようにしても良い。   In the above, when the code can not be detected from the frame image, the light emitted from the illumination unit 102 is controlled, but from the code detected from the frame image, the information associated with the code can not be read out. In the case, for example, even when the color constituting the color code can not be determined, the amount of light emitted by the illumination unit 102 or the color of the light may be determined in the same manner as described above.

また、上記においては、光量についての条件を満たす場合に、予め指定された光量の光を照射するようにしたが、例えば、制御部104は、フレーム画像を構成する画素の明度の平均値についての値の範囲と、照射すべき光の光量の値とを対応づけて図示しない格納部等に予め格納されている情報から、現在のフレーム画像から取得した明度の平均値に対応した光量の値を取得して、取得した値の光量の光を照明部102に照射させるようにしても良い。また、フレーム画像を構成する画素の明度の平均値と、照射すべき光の光量の値との関係を示す予め用意された関係式に、現在のフレーム画像から取得した明度の平均値を代入して、現在のフレーム画像に対応する照射すべき光量の値を取得するようにしても良い。   Further, in the above, when the condition regarding the light amount is satisfied, the light of the light amount designated in advance is irradiated, but for example, the control unit 104 is configured to calculate the average value of the lightness of the pixels constituting the frame image. The value of the light quantity corresponding to the average value of the lightness obtained from the current frame image is obtained from the information stored in advance in the storage unit etc. not shown corresponding to the value range and the value of the light quantity of light to be irradiated. It is also possible to cause the illumination unit 102 to emit light of the acquired light quantity. Also, the average value of lightness values obtained from the current frame image is substituted into a previously prepared relational expression indicating the relationship between the average value of lightness values of the pixels constituting the frame image and the value of the light quantity of light to be irradiated. The value of the light quantity to be irradiated corresponding to the current frame image may be acquired.

また、上記の具体例においては、フレーム画像からコードに対応する情報を取得できない場合に、制御部104が、照明部102の照射する光を制御するようにしたが、本発明においては、制御部104が、フレーム画像から取得部103がコードを検出する前に、フレーム画像から、光量に関するパラメータや、光の色に関するパラメータ等を取得して、取得したパラメータを用いて、予め指定された条件を満たすか否かの判断を行ない、条件を満たす場合に、上記と同様に照明部102が照射する光量や光の色等を制御して、制御された光により照明されたコードを撮影したフレーム画像について、取得部103がコードを検出する処理や、検出したコードからコードに対応した情報を取得する処理を行なうようにしてもよい。   In the above-described specific example, the control unit 104 controls the light emitted from the illumination unit 102 when the information corresponding to the code can not be acquired from the frame image. However, in the present invention, the control unit Before the acquiring unit 103 detects a code from the frame image, the parameter 104 acquires a parameter relating to the light amount, a parameter relating to the color of light, etc. from the frame image, and uses the acquired parameter to pre-specified conditions. It is judged whether the condition is satisfied or not, and in the case where the condition is satisfied, a frame image obtained by photographing the code illuminated by the controlled light by controlling the light quantity and the color of the light etc. With respect to the above, the acquisition unit 103 may perform processing of detecting a code or processing of acquiring information corresponding to the code from the detected code.

以上、本実施の形態によれば、撮影画像から取得した情報に応じて、コードに照射する光を制御することにより、コードを適切に読み取ることができるコード読取装置を提供することができる。   As described above, according to the present embodiment, it is possible to provide a code reader capable of appropriately reading a code by controlling the light irradiated to the code according to the information acquired from the photographed image.

なお、上記実施の形態においては、制御部104が、撮影部101が取得した撮影画像から、一以上のパラメータを取得し、取得したパラメータに応じて、照明部102が撮影領域に対して照射する光を制御する例等について説明したが、本発明においては、制御部104は、撮影画像に応じて照明部102が撮影領域に対して照射する光を制御するものであればよく、例えば、上述した例のように照射する光を制御するようにしてもよく、上述した例以外の処理により、撮影画像に応じて照射する光を制御するようにしても良い。例えば、パラメータを取得して、取得したパラメータに応じて照射する光を制御する代わりに、上述したように、取得部103が出力する撮影画像からコードを読み取ることができなかったことを示す情報を受け付けた場合、制御部104は、照明部102が照射する光を、コードが読取可能となるまでフィードバック制御するようにしてもよい。例えば、撮影画像からコードが読取可能となるまで、段階的に照明部102が照射する光の光量や光の色を変更し、変更する毎にコードの撮影を行なうようにしても良い。ここでのコードの読取とは、コードの検出と考えても良く、コードからの情報の取得と考えても良く、その両方と考えてもよい。   In the above embodiment, the control unit 104 acquires one or more parameters from the captured image acquired by the imaging unit 101, and the illumination unit 102 irradiates the imaging region according to the acquired parameters. Although the example of controlling the light has been described, in the present invention, the control unit 104 may control the light emitted to the imaging region by the illumination unit 102 in accordance with the captured image. The light to be irradiated may be controlled as in the example described above, or the light to be irradiated may be controlled in accordance with the photographed image by processing other than the example described above. For example, instead of acquiring a parameter and controlling light to be irradiated according to the acquired parameter, as described above, information indicating that the code can not be read from the captured image output from the acquiring unit 103 is displayed. If accepted, the control unit 104 may perform feedback control of the light emitted by the illumination unit 102 until the code becomes readable. For example, until the code can be read from the photographed image, the light amount and the color of the light emitted by the illumination unit 102 may be changed in stages, and the code may be photographed each time it is changed. Reading the code here may be considered as detection of the code, may be considered as acquisition of information from the code, or may be considered as both of them.

(実施の形態2)
上記実施の形態1においては、制御部104が、照明を制御する場合について説明したが、以下、本実施の形態においては、制御部が、撮影部のシャッタースピードや撮影位置の制御を行なう場合の一例について説明する。
Second Embodiment
In the first embodiment, the control unit 104 controls the illumination. However, in the present embodiment, the control unit controls the shutter speed and the imaging position of the imaging unit. An example will be described.

図5は、本実施の形態におけるコード読取装置2のブロック図である。   FIG. 5 is a block diagram of the code reader 2 in the present embodiment.

コード読取装置2は、撮影部101、照明部102、取得部103、制御部204、出力部105を備える。撮影部101、照明部102、取得部103、出力部105については、上記実施の形態1と同様であるため、ここでは詳細な説明は省略する。なお、ここでは、撮影部101は、例えば、シャッタースピードが変更可能なものであるとする。シャッタースピードは露光時間と考えてもよい。また、コードの撮影時に照明が不要である場合、照明部102は省略しても良い。   The code reading device 2 includes an imaging unit 101, an illumination unit 102, an acquisition unit 103, a control unit 204, and an output unit 105. The imaging unit 101, the illumination unit 102, the acquisition unit 103, and the output unit 105 are the same as in the first embodiment, and thus detailed description will be omitted here. Here, for example, it is assumed that the photographing unit 101 can change the shutter speed. The shutter speed may be considered as the exposure time. In addition, the illumination unit 102 may be omitted if the illumination is not necessary at the time of photographing the code.

制御部204は、撮影部101が取得した撮影画像に応じて、撮影部101による撮影時のシャッタースピードを制御する。制御部204は、例えば、シャッタースピードを制御することで、撮影画像を取得するための環境を制御する。シャッタースピードとは、例えば露光時間と考えてもよい。シャッタースピードを制御するということは、例えば、シャッタースピードを、直前のシャッタースピードや、デフォルトのシャッタースピードや、測光用のセンサ(図示せず)を用いて行なわれた測光結果から決定されるシャッタースピード等から変更することや、測定結果に応じて変更しないこと等である。シャッタースピードの制御とは、例えば、シャッタースピードを上げることや下げることや、撮影画像に適したシャッタースピードに設定することである。制御部20が、シャッタースピードを制御するということは、例えば、シャッタースピードを制御する制御信号や、命令等を、撮影部101に対して出力することである。   The control unit 204 controls the shutter speed at the time of shooting by the shooting unit 101 according to the shot image acquired by the shooting unit 101. The control unit 204 controls an environment for acquiring a captured image, for example, by controlling a shutter speed. The shutter speed may be considered, for example, as the exposure time. The control of the shutter speed means, for example, a shutter speed determined based on the result of photometry performed using the shutter speed immediately before, the default shutter speed, and a sensor for photometry (not shown). It is changing from etc. and not changing according to the measurement result. The control of the shutter speed is, for example, to increase or decrease the shutter speed, or to set the shutter speed suitable for the photographed image. That the control unit 20 controls the shutter speed means, for example, outputting a control signal for controlling the shutter speed, an instruction, and the like to the photographing unit 101.

制御部204は、例えば、コードが読み取り可能な撮影画像が得られるよう、撮影部101による撮影時のシャッタースピードを制御する。通常、カメラ等の撮影部101のシャッタースピードは、予め決められた複数段階のシャッタースピードのいずれかの値に設定されることから、例えば、制御部204は、撮影画像に応じて、シャッタースピードを一段ずつ早く、あるいは遅くなるよう制御してもよい。また、制御部204は、予め図示しない格納部等に格納されている明度に関するパラメータの値の範囲と最適なシャッタースピードとを対応付けた対応表から、撮影画像から取得した明度に関するパラメータの値に対応するシャッタースピードを、変更後のシャッタースピードとして取得しても良い。なお、撮影部101のシャッタースピードは、連続的に変更可能なものであっても良い。この場合、例えば、制御部204は、明度に関するパラメータを引数としたシャッタースピードを算出するための予め用意された演算式に、撮影画像から取得した明度に関するパラメータを代入することで、変更後のシャッタースピードを算出しても良い。明度に関するパラメータについては後述する。   The control unit 204 controls, for example, the shutter speed at the time of shooting by the shooting unit 101 so as to obtain a shot image in which the code can be read. Usually, the shutter speed of the photographing unit 101 such as a camera is set to any value of a plurality of predetermined shutter speeds. For example, the control unit 204 sets the shutter speed according to the photographed image. It may be controlled to become faster or slower one by one. In addition, the control unit 204 uses the correspondence table in which the range of parameter values related to lightness stored in advance in a storage unit (not shown) and the like and the optimal shutter speed are associated with the value of the parameter related to lightness acquired from the photographed image. The corresponding shutter speed may be acquired as the shutter speed after change. The shutter speed of the imaging unit 101 may be continuously changeable. In this case, for example, the control unit 204 substitutes the parameter relating to the lightness acquired from the photographed image into a previously prepared arithmetic expression for calculating the shutter speed using the parameter relating to the lightness as an argument. You may calculate the speed. Parameters related to lightness will be described later.

撮影部101が撮影した撮影画像は、静止画像であっても良く、動画像であっても良い。動画像である場合、シャッタースピードは、例えば、動画像を構成するフレーム画像を撮影する際のシャッタースピードである。また、制御部20は、例えば、撮影部101が撮影した1以上のフレーム画像に応じて、その後にフレーム画像を撮影する際のシャッタースピードを制御する。撮影部101が静止画像を撮影する場合、シャッタースピードを変更後に、静止画像を撮影し直すようにしてもよい。   The photographed image photographed by the photographing unit 101 may be a still image or a moving image. In the case of a moving image, the shutter speed is, for example, a shutter speed at the time of capturing a frame image constituting the moving image. Further, the control unit 20 controls, for example, a shutter speed at the time of shooting a frame image thereafter, in accordance with one or more frame images shot by the shooting unit 101. When the imaging unit 101 captures a still image, the still image may be captured again after changing the shutter speed.

例えば、制御部204は、取得部103が撮影画像から取得した情報に応じて、撮影部101による撮影時のシャッタースピードを制御する。例えば、取得部103が出力する撮影画像からコードを検出できなかったことを示す情報を受け付けた場合、制御部204は、撮影時のシャッタースピードをフィードバック制御するようにしてもよい。例えば、撮影画像からコードが検出されるまで、段階的にシャッタースピードを変更し、変更する毎に、撮影を行なうようにしても良い。この場合のシャッタースピードの変更は、通常は、シャッタースピードを下げることであるが、上げることであっても良い。   For example, the control unit 204 controls the shutter speed at the time of shooting by the shooting unit 101 according to the information acquired by the acquisition unit 103 from the photographed image. For example, when information indicating that the code could not be detected is received from the captured image output from the acquisition unit 103, the control unit 204 may perform feedback control of the shutter speed at the time of shooting. For example, the shutter speed may be changed stepwise until the code is detected from the photographed image, and photographing may be performed each time the shutter speed is changed. Although the change of the shutter speed in this case is usually to lower the shutter speed, it may be to increase it.

制御部204は、例えば、撮影部101が取得した撮影画像から、一以上のパラメータを取得し、取得したパラメータに応じて、シャッタースピードを制御する。ここでの1以上のパラメータは、例えば、シャッタースピードを制御する際に利用されるパラメータであり、実施の形態1において説明した光を制御する際に利用されるパラメータと区別するために、シャッターパラメータと呼ぶようにしても良い。制御部204が取得するパラメータは、例えば、撮影時の露光量に対応関係を有するパラメータである。   For example, the control unit 204 acquires one or more parameters from the captured image acquired by the imaging unit 101, and controls the shutter speed according to the acquired parameters. Here, one or more parameters are, for example, parameters used when controlling the shutter speed, and in order to distinguish from the parameters used when controlling the light described in the first embodiment, the shutter parameters You may call it The parameter acquired by the control unit 204 is, for example, a parameter having a correspondence relationship with the exposure amount at the time of shooting.

制御部204が撮影画像から取得するパラメータは、例えば、撮影画像の明度に関するパラメータである。明度に関するパラメータは、輝度や照度に関するパラメータと考えてもよい。明度に関するパラメータは、撮影画像の明度の統計値(例えば、平均値や、中央値や、中間値、最大値、最小値等)や、撮影画像のガンマ値であっても良く、撮影画像の明度のヒストグラムであっても良い。制御部204は、例えば、撮影画像から、明度に関するパラメータを取得し、取得したパラメータに応じて、撮影時のシャッタースピードを制御する。明度に関するパラメータは、例えば、撮影に適したシャッタースピードを結果的に判断可能なパラメータである。撮影に適したシャッタースピードとは、例えば、カラーコードの色を識別することが可能な撮影画像を撮影可能なシャッタースピードである。撮影画像内においてコードが配置されている領域を認識可能である場合、制御部204が撮影画像から取得するパラメータは、撮影画像内の一部、例えば、撮影画像内のコードが配置されている領域の明度に関するパラメータであっても良く、全体の明度に関するパラメータであってもよい。また、明度に関するパラメータは、例えば、撮影画像全体あるいはその一部の、Rチャンネルや、Gチャンネル、Bチャンネル等の一以上のチャンネルについての明度のパラメータ、例えば、一以上のチャンネルの明度の代表値や最大値や最小値等であってもよく、撮影画像をグレースケール化した画像についての明度のパラメータであってもよい。   The parameters acquired by the control unit 204 from the captured image are, for example, parameters related to the lightness of the captured image. The parameters relating to lightness may be considered as parameters relating to luminance and illuminance. The parameter relating to the lightness may be a statistical value of lightness of the photographed image (for example, an average value, a median, a median, a maximum value, a minimum value, etc.) or a gamma value of the photographed image. It may be a histogram of The control unit 204 acquires, for example, a parameter related to lightness from a photographed image, and controls the shutter speed at the time of photographing according to the acquired parameter. The parameter relating to lightness is, for example, a parameter that can eventually determine the shutter speed suitable for shooting. The shutter speed suitable for photographing is, for example, a shutter speed capable of photographing a photographed image capable of identifying a color of a color code. If the area in which the code is arranged can be recognized in the photographed image, the parameter acquired from the photographed image by the control unit 204 is a part of the photographed image, for example, an area in which the code in the photographed image is arranged. The parameter may be a parameter related to the brightness of the image, or may be a parameter related to the entire brightness. Further, the parameter relating to lightness is, for example, a parameter of lightness for one or more channels such as R channel, G channel, B channel, etc. of the whole captured image or a part thereof, eg representative value of lightness of one or more channels It may be a maximum value, a minimum value, or the like, or may be a parameter of lightness of an image obtained by grayscaleting a captured image.

制御部204は、例えば、パラメータ(例えば、明度に関するパラメータ)を取得して、取得したパラメータが予め指定された条件を満たす場合に、シャッタースピードを制御する。予め指定された条件は、シャッタースピードを制御するためのパラメータについての条件である。予め指定された条件とは、例えば、撮影領域からコードを適切に読み取れないことを判断するための明度に関する条件である。予め指定された条件は、例えば、明度に関するパラメータ(例えば、撮影画像の明度の平均値等)が第一の閾値以下であるという条件や、第二の閾値以上であるという条件(ただし、第一の閾値は、第二の閾値よりも小さい値であるとする)等である。なお、本実施の形態においては、明度が高い場合、即ち明度の値が高い場合とは、撮影画像が明るいことを示し、明度が低い場合、即ち明度の値が低い場合とは、撮影画像が暗いことを示すものとする。   For example, the control unit 204 acquires a parameter (for example, a parameter related to lightness), and controls the shutter speed when the acquired parameter satisfies a predetermined condition. The conditions specified in advance are conditions for parameters for controlling the shutter speed. The condition designated in advance is, for example, a condition relating to lightness for determining that the code can not be properly read from the photographing area. The condition designated in advance is, for example, a condition that a parameter related to lightness (for example, an average value of lightness of a photographed image, etc.) is equal to or less than a first threshold, or a condition that is equal to or higher than a second threshold (however, Is a value smaller than the second threshold) and the like. In the present embodiment, when the lightness is high, that is, when the lightness value is high, it indicates that the photographed image is bright, and when the lightness is low, that is, when the lightness value is low, the photographed image is It shall indicate that it is dark.

制御部204は、例えば、取得したパラメータ(例えば、明度に関するパラメータ)が予め指定された条件を満たすと判断した場合に、撮影部101のシャッタースピードを変更させる。例えば、撮影画像から取得した明度に関するパラメータが、第一の閾値以下である場合、制御部204は、シャッタースピードを遅くする。例えば、撮影画像から取得した明度が第一の閾値が示す明度よりも暗い場合、シャッタースピードを遅くして、露光する時間を増加させる。例えば、シャッタースピードをj段(jは1以上の整数)だけ遅くする。また、例えば、撮影画像から取得した明度に関するパラメータが、第二の閾値以上である場合、制御部204は、シャッタースピードを早くする。例えば、撮影画像から取得した明度が第二の閾値が示す明度よりも明るい場合、シャッタースピードを早くして、露光時間を減少させる。例えば、シャッタースピードをk段(kは1以上の整数)だけ早くする。なお、上述した第一の閾値や第二の閾値は、コード読取装置1が利用される環境等に応じて、適宜変更可能である。また、閾値の最適な値は、例えば、実験結果や経験値等に応じて得られた値を設定することが好ましい。かかることは、以下の他の閾値等についても同様である。なお、制御部204は、第一の閾値と第二の閾値のいずれか一方のみを用いても良い。   The control unit 204 changes the shutter speed of the photographing unit 101, for example, when it is determined that the acquired parameter (for example, the parameter related to lightness) satisfies the condition designated in advance. For example, when the parameter related to the lightness acquired from the captured image is equal to or less than the first threshold, the control unit 204 slows the shutter speed. For example, when the lightness acquired from the photographed image is darker than the lightness indicated by the first threshold, the shutter speed is decreased to increase the exposure time. For example, the shutter speed is decreased by j steps (j is an integer of 1 or more). Also, for example, when the parameter related to the lightness acquired from the captured image is equal to or greater than the second threshold, the control unit 204 increases the shutter speed. For example, when the lightness acquired from the photographed image is brighter than the lightness indicated by the second threshold, the shutter speed is increased to reduce the exposure time. For example, the shutter speed is increased by k steps (k is an integer of 1 or more). The first threshold and the second threshold described above can be changed as appropriate according to the environment in which the code reader 1 is used. In addition, as the optimal value of the threshold, for example, it is preferable to set a value obtained according to an experimental result, an experience value, or the like. The same applies to the other threshold values described below. The control unit 204 may use only one of the first threshold and the second threshold.

また、制御部204は、例えば、パラメータ(例えば、明度に関するパラメータ)が予め指定された条件を満たさなくなるようシャッタースピードを制御してもよい。例えば、撮影部101が撮影する撮影画像が動画像である場合や、撮影部101が撮影する撮影画像が静止画像であって、制御部204がシャッタースピードの制御を行なうごとに新たな撮影画像が撮影される場合等においては、撮影画像から取得したパラメータが、予め指定された条件を満たさなくなるまで、シャッタースピードをフィードバック制御するようにしても良い。例えば、制御部204は、予め指定されたシャッタースピード等で撮影画像の撮影を行ない、その後、撮影部101が撮影したフレーム画像や静止画像について、光量に関するパラメータを取得し、取得したパラメータの値が条件を満たす場合に、前回のシャッタースピードとは異なるシャッタースピード、例えば遅いシャッタースピードで撮影することを、撮影画像から取得した光量に関するパラメータが予め指定された条件を満たさなくなるまで繰り返すようにしてもよい。フィードバック制御については、公知技術であるため、ここでは詳細な説明は省略する。   In addition, the control unit 204 may control the shutter speed, for example, so that the parameter (for example, the parameter related to the lightness) does not satisfy the condition designated in advance. For example, when the captured image captured by the imaging unit 101 is a moving image, or the captured image captured by the imaging unit 101 is a still image, a new captured image is generated each time the control unit 204 performs shutter speed control. In the case of shooting or the like, the shutter speed may be feedback-controlled until the parameter acquired from the shot image does not satisfy the condition designated in advance. For example, the control unit 204 captures a captured image at a shutter speed or the like specified in advance, and thereafter acquires parameters relating to the light amount for frame images and still images captured by the capturing unit 101, and the acquired parameter values If the conditions are satisfied, shooting at a shutter speed different from the previous shutter speed, for example, a slow shutter speed may be repeated until the parameter related to the light quantity acquired from the photographed image does not satisfy the condition designated in advance. . The feedback control is a known technique, and thus the detailed description is omitted here.

なお、制御部204は、例えば、明度に関するパラメータの値が示す明度の不足分(例えば、パラメータが第一の閾値以下である場合におけるパラメータと第一の閾値との差の絶対値等)が大きくなるに従って、連続的または段階的に増加する変更量により、シャッタースピードが遅くなるよう、撮影部101を制御してもよい。同様に、制御部204は、例えば、明度に関するパラメータの値が示す明度の過剰分(例えば、パラメータが第二の閾値以上である場合におけるパラメータと第二の閾値との差の絶対値等)が大きくなるに従って、連続的または段階的に増加する変更量により、シャッタースピードが早くなるよう、撮影部101を制御してもよい。   Note that, for example, the control unit 204 has a large shortage of lightness indicated by the value of the parameter related to lightness (for example, an absolute value of a difference between the parameter and the first threshold when the parameter is equal to or less than the first threshold). Accordingly, the photographing unit 101 may be controlled to decrease the shutter speed by the amount of change that increases continuously or gradually. Similarly, the control unit 204 determines, for example, the excess of lightness indicated by the value of the parameter related to lightness (for example, the absolute value of the difference between the parameter and the second threshold when the parameter is equal to or greater than the second threshold). The imaging unit 101 may be controlled to increase the shutter speed by the amount of change that increases continuously or stepwise as the size increases.

なお、制御部204は、撮影画像から取得した二以上のパラメータを用いて、これらのパラメータの組合わせに応じて、適宜、シャッタースピードを制御しても良い。また、制御部204は、一の光量に関するパラメータに対して、予め指定された二以上の条件の組合わせについて、条件を満たすか否かの判断を行ない、その判断結果の組合わせについて、適宜、シャッタースピードを制御しても良い。   The control unit 204 may appropriately control the shutter speed according to a combination of two or more parameters acquired from the photographed image. In addition, the control unit 204 determines whether or not the combination of two or more conditions specified in advance is satisfied with respect to the parameter relating to one light quantity, and the combination of the determination results is appropriately determined. You may control the shutter speed.

撮影部101の撮影位置が制御可能である場合、制御部204は、撮影部101が取得した撮影画像に応じて、撮影部101による撮影位置を制御するようにしてもよい。制御部204は、例えば、撮影位置を制御することで、撮影画像を取得するための環境を制御してもよい。例えば、制御部204は、コードが読み取り可能な撮影画像が得られるよう、撮影時の撮影部101の位置を制御してもよい。撮影部101の位置を制御することは、撮影部101を有するコード読取装置2の位置を制御することであっても良い。撮影部101の位置とは、撮影部101が配置される空間における位置であり、撮影部101の向き等も含む概念である。   When the photographing position of the photographing unit 101 is controllable, the control unit 204 may control the photographing position by the photographing unit 101 according to the photographed image acquired by the photographing unit 101. The control unit 204 may control an environment for acquiring a captured image, for example, by controlling the imaging position. For example, the control unit 204 may control the position of the photographing unit 101 at the time of photographing so as to obtain a photographed image in which the code can be read. Controlling the position of the imaging unit 101 may be controlling the position of the code reader 2 having the imaging unit 101. The position of the imaging unit 101 is a position in the space where the imaging unit 101 is disposed, and is a concept including the orientation of the imaging unit 101 and the like.

例えば、撮影部101、具体的には撮影部101を有するコード読取装置2が、無人車両や無人航空機等のいわゆるドローン(図示せず)に取り付けられている場合、制御部204は、ドローンに対して制御信号等を出力することで、ドローンの位置を制御することにより、撮影部101による撮影位置を制御する。例えば、撮影部101が撮影した画像内に、カラーコードの存在が認識されない場合や、カラーコードの情報が読み取れない場合、、カラーコードが存在が認識される、あるいはカラーコードの情報が読み取れるよう、ドローンの位置や向きを変更させる。カラーコードの存在が認識できない場合や、カラーコードの情報が取得できない場合のドローンの前後左右等の移動の仕方は、予め指定されていても良く、ランダムに決定されても良い。また、ドローンは、ユーザの制御等によって一旦指定された位置を起点として移動するようにしてもよい。   For example, when the imaging unit 101, specifically, the code reading device 2 having the imaging unit 101 is attached to a so-called drone (not shown) such as an unmanned vehicle or an unmanned aerial vehicle, the control unit 204 By controlling the position of the drone by outputting a control signal or the like, the imaging position by the imaging unit 101 is controlled. For example, if the presence of a color code is not recognized in the image shot by the shooting unit 101 or if the color code information can not be read, the presence of the color code is recognized or the color code information can be read, Change the position and orientation of the drone. The manner of movement of the drone before, after, left or right when the presence of the color code can not be recognized or when information of the color code can not be acquired may be specified in advance or may be randomly determined. Also, the drone may move starting from the position once designated by the control of the user or the like.

例えば、制御部204は、撮影部101が撮影した画像において、カラーコードが配置されている物体や領域を、パターンマッチング等により認識し、その物体や領域の画像内にカラーコードの存在が認識できない場合、例えば、ドローンを制御して、カラーコードの存在が認識されるまでドローンを前後や上下、左右に移動させる。ここでの移動は、回転も含む概念である。ドローンを移動させることは、ドローンの撮影部101が設置されている部分を移動させることと考えてもよい。   For example, in the image photographed by the photographing unit 101, the control unit 204 recognizes an object or region in which the color code is arranged by pattern matching or the like, and can not recognize the presence of the color code in the image of the object or region. In this case, for example, the drone is controlled to move the drone back and forth, up and down, left and right, until the presence of the color code is recognized. The movement here is a concept including rotation. Moving the drone may be considered as moving a portion where the photographing unit 101 of the drone is installed.

例えば、予め、カラーコードが配置されている物体や領域が予め指定されている場合、制御部204は、撮影部101が撮影した画像において、カラーコードが配置されている物体や領域を、パターンマッチング等により認識し、その物体や領域の画像内にカラーコードの存在が認識できない場合、例えば、ドローンを制御して、カラーコードが認識されるまで、ドローンの撮影部101が設置されている部分を、物体や領域に対して近づけたり、物体や領域に沿って移動させる。   For example, when an object or area in which a color code is arranged is designated in advance, the control unit 204 performs pattern matching on the object or area in which the color code is arranged in the image captured by the imaging unit 101. If the color code can not be recognized in the image of the object or area, for example, the drone is controlled to display the part where the photographing unit 101 of the drone is installed until the color code is recognized. , Move close to the object or area or move along the object or area.

例えば、撮影部101が撮影した画像において、カラーコードの存在が認識されたが、カラーコードの情報の取得できない、具体的には、カラーコード情報の読取ができない場合、制御部204は、例えば、この存在が認識されたカラーコードに対して、ドローンを近づけるよう、ドローンを制御してもよい。また、撮影された画像において、カラーコードの輪郭や、外周の頂点等を検出し、この検出した輪郭や、頂点の位置が、予め指定された形状、例えば、長方形に近い形状となるよう、ドローンの位置を制御してもよい。   For example, when the presence of a color code is recognized in an image captured by the imaging unit 101, but the color code information can not be acquired, specifically, when the color code information can not be read, the control unit 204 The drone may be controlled to bring the drone closer to the color code whose presence is recognized. Also, in the photographed image, the outline of the color code, the apex of the outer circumference, etc. are detected, and the detected outline or the position of the apex has a drone so that the position thereof has a predetermined shape, for example, a rectangular shape. You may control the position of.

ドローン等を用いる代わりに、位置を自在に移動制御可能なクレーン等に、コード読取装置2を設置し、コード読取装置2の制御部204が、このクレーン等を、制御するようにしても良い。   Instead of using a drone or the like, the code reader 2 may be installed on a crane whose position can be freely controlled so that the control unit 204 of the code reader 2 controls the crane or the like.

なお、制御部204が、シャッタースピードや、撮影位置等を変更するタイミングやトリガー等は問わない。例えば、制御部204は、予め指定された一定または不定のタイミング毎に、上述したようなシャッタースピードの制御を行なうようにしても良い。また、例えば、制御部204は、撮影部101が撮影画像(例えば、撮影画像のフレーム画像等)を取得した場合に、この撮影画像に応じたシャッタースピードの制御を行なうようにしてもよい。また、制御部204は、取得部103が撮影画像からコードを検出できなかった場合に、撮影画像に応じて、シャッタースピードを制御するようにしてもよい。例えば、制御部204は、撮影画像から取得したパラメータを用いて、シャッタースピードの制御を行なう。   Note that there is no limitation on the shutter speed, the timing at which the imaging position is changed, the trigger, or the like. For example, the control unit 204 may perform control of the shutter speed as described above at predetermined or predetermined timing designated in advance. Further, for example, when the photographing unit 101 acquires a photographed image (for example, a frame image of the photographed image or the like), the control unit 204 may control the shutter speed according to the photographed image. Further, the control unit 204 may control the shutter speed according to the captured image when the acquisition unit 103 can not detect the code from the captured image. For example, the control unit 204 controls the shutter speed using a parameter acquired from a captured image.

制御部204は、例えば、MPUやメモリ等から実現され得る。制御部204の処理手順は、例えば、ソフトウェアで実現され、当該ソフトウェアはROM等の記録媒体に記録されている。但し、ハードウェア(専用回路)で実現しても良い。   The control unit 204 can be realized by, for example, an MPU, a memory, or the like. The processing procedure of the control unit 204 is realized by, for example, software, and the software is stored in a storage medium such as a ROM. However, it may be realized by hardware (a dedicated circuit).

次に、コード読取装置2の動作の一例について図6のフローチャートを用いて説明する。なお、図において、図2と同一符号は同一または相当する処理ステップを示しており、ここでは詳細な説明は省略する。なお、図2と同一符号の処理ステップにおいて、制御部104が行なっていた処理は、ここでは、制御部204が行なうものとする。   Next, an example of the operation of the code reader 2 will be described with reference to the flowchart of FIG. In the figure, the same reference numerals as in FIG. 2 denote the same or corresponding processing steps, and the detailed description will be omitted here. Here, in the processing steps of the same reference numerals as those in FIG. 2, the processing performed by the control unit 104 is assumed to be performed by the control unit 204 here.

(ステップS207)制御部204は、制御部104は、ステップS102で取得したフレーム画像から、シャッタースピードを制御する際に利用されるパラメータを取得する。例えば、制御部104は、明度に関するパラメータを取得する。   (Step S207) The control unit 204 acquires a parameter used when controlling the shutter speed from the frame image acquired in step S102. For example, the control unit 104 acquires a parameter related to lightness.

(ステップS208)制御部204は、ステップS207で取得したパラメータが、シャッタースピードを制御するための予め指定された一以上の条件を満たすか否かを判断する。満たす場合、ステップS209に進み、満たさない場合、ステップS102に戻る。   (Step S208) The control unit 204 determines whether the parameter acquired in step S207 satisfies one or more conditions specified in advance for controlling the shutter speed. If the condition is satisfied, the process proceeds to step S209. If the condition is not satisfied, the process returns to step S102.

(ステップS209)制御部204は、シャッタースピードを制御する。例えば、制御部204は、撮影を行なう際のシャッタースピードの設定を変更する指示を、撮影部101に出力する。そして、ステップS102に戻り、撮影部101が、変更されたシャッタースピードで撮影を行なう。   (Step S209) The control unit 204 controls the shutter speed. For example, the control unit 204 outputs, to the photographing unit 101, an instruction to change the setting of the shutter speed at the time of photographing. Then, the process returns to step S102, and the photographing unit 101 performs photographing at the changed shutter speed.

以下、本実施の形態におけるコード読取装置2の具体的な動作について説明する。なお、以下の具体例において用いる閾値等の値は、説明のための便宜上の値であり、実際のコードの読み取りに必ずしも適したものではない場合がある。   Hereinafter, the specific operation of the code reader 2 in the present embodiment will be described. Note that values such as threshold values used in the following specific examples are values for convenience of explanation, and may not necessarily be suitable for actual reading of a code.

コード読取装置2を用いてコードの撮影する状況を示す模式図は、図3と同様であるとする。   It is assumed that a schematic diagram showing a situation in which the code is photographed using the code reader 2 is the same as FIG.

撮影部101がカラーコードが配置された撮影領域を撮影して撮影画像を取得する処理や、撮影画像からカラーコードを検出し、検出したカラーコードから情報を取得する処理等については、上記実施の形態1の具体例と同様であるため、ここでは詳細な説明は省略する。   The process of capturing the shooting area where the shooting unit 101 arranges the color code and obtaining a shot image, the process of detecting a color code from the shot image, and obtaining information from the detected color code, etc. The detailed example is omitted here because it is similar to the specific example of the first aspect.

ここで、撮影部101が撮影したカラーコードが配置された撮影領域を撮影した撮影画像のフレーム画像において、上記の実施の形態1の具体例と同様に、取得部103が、フレーム画像からカラーコードが検出できなかった、あるいはカラーコードから情報が取得できなかったとすると、制御部204は、撮影画像であるフレーム画像から、明度に関するパラメータとして、フレーム画像を構成する画素の明度の平均値を取得する。例えば、取得した平均値が、「20」であったとする。なお、ここでは、フレーム画像の各画素が明度として取り得る値の範囲が、「0」から「255」であるとし、値が小さいほど、画素の明度が低い、つまり暗いものとする。   Here, in the frame image of the photographed image obtained by photographing the photographing area in which the color code photographed by the photographing unit 101 is arranged, the acquiring unit 103 performs the color code from the frame image as in the specific example of the first embodiment. Is not detected or information can not be acquired from the color code, the control unit 204 acquires the average value of the lightness values of the pixels constituting the frame image as . For example, it is assumed that the acquired average value is "20". Here, it is assumed that the range of values that each pixel of the frame image can take as lightness is “0” to “255”, and the smaller the value, the lower the lightness of the pixel, that is, the darker.

制御部204は、上記で取得した画素の明度の平均値が、明度の平均値について予め指定された第一の閾値以下である、という条件を満たすか否かを判断する。例えば、第一の閾値が、「100」であったとすると、制御部204は、明度の平均値が条件を満たすと判断する。制御部204は、上記のように、明度についての第一の条件を満たすと判断したため、撮影部101に対して、デフォルトのシャッタースピードである1/125秒から一段分だけ遅いシャッタースピードに変更する指示を出力する。具体的には、シャッタースピードを、1段分だけ遅い1/60秒に設定する指示を出力する。なお、制御部204は、単に、シャッタースピードを1段分遅くさせる指示を、撮影部101に送信するようにしてもよい。なお、ここでは撮影部101に設定可能なシャッタースピードは、複数段のシャッタースピードのいずれかであるとする。この複数段のシャッタースピードにおいては、シャッタースピードを1段分遅くすると、撮影部101が受光する光量、例えば、図示しない撮像素子が受光する光量が2倍となるものとする。   The control unit 204 determines whether or not the condition that the average value of the lightness of the pixels acquired above is equal to or less than a first threshold value specified in advance for the average value of lightness is satisfied. For example, assuming that the first threshold is “100”, the control unit 204 determines that the average value of the brightness satisfies the condition. As described above, since the control unit 204 determines that the first condition for the lightness is satisfied, the control unit 204 changes the shutter speed, which is the default shutter speed of 1/125 seconds, to a shutter speed that is one step slower than the shooting unit 101. Output the instruction. Specifically, an instruction to set the shutter speed to 1/60 seconds, which is one step slower, is output. The control unit 204 may simply transmit, to the photographing unit 101, an instruction to slow the shutter speed by one step. Here, it is assumed that the shutter speed that can be set in the photographing unit 101 is any of a plurality of shutter speeds. In the multiple shutter speeds, when the shutter speed is decreased by one step, the light amount received by the imaging unit 101, for example, the light amount received by an imaging device (not shown) is doubled.

撮影部101は、制御部024により指示されたシャッタースピードで、撮影対象となるコード200が配置された領域を撮影する。一段分遅くすることで、露光量を2倍にすることができ、変更前よりも適切に撮影、つまりカラーコードが読み取りやすい画像の撮影を行なうことが可能となる。取得部103は、撮影部101が撮影したフレーム画像を取得し、取得したフレーム画像においてコードを検出する。コードが検出された場合、上記と同様に、コードに対応づけられた情報を読み出し、出力する。   The photographing unit 101 photographs an area in which the code 200 to be photographed is disposed at the shutter speed instructed by the control unit 024. By delaying by one step, the exposure amount can be doubled, and it becomes possible to take a picture more properly than before the change, that is, take a picture in which the color code is easy to read. The acquisition unit 103 acquires a frame image captured by the imaging unit 101, and detects a code in the acquired frame image. If a code is detected, the information associated with the code is read and output as described above.

ここで、更に、コードが検出できなかった場合、制御部204は、フレーム画像から上記と同様に明度に関するパラメータを取得して、このパラメータが予め指定された第一の閾値以下を満たすか否かを判断し、条件を満たす場合には、シャッタースピードを1段分遅くし、条件を満たさない場合には、シャッタースピードを変更せずに、再度フレーム画像からのコード検出や、コードの情報の取得を行なう。   Here, if a code can not be detected, the control unit 204 obtains a parameter relating to brightness from the frame image as described above, and determines whether the parameter satisfies a predetermined threshold value or less. If the condition is satisfied, the shutter speed is decreased by one step. If the condition is not satisfied, code detection from the frame image or acquisition of code information is performed again without changing the shutter speed. Do.

そして、制御部204は、上記と同様の処理を、コードから情報が取得できるまで繰り返す。   Then, the control unit 204 repeats the same process as described above until information can be obtained from the code.

なお、撮影部101の撮影開始から、予め指定された時間以上経過した時点で、撮影画像からカラーコードに対応した情報を取得できていない場合、例えば、カラーコードが検出できていない場合や、カラーコードから対応する情報を取得できていない場合、出力部105は、モニタ105aに、コードから情報が取得できなかった旨の表示を行ない、コードを読み取る処理を終了する。   Note that if information corresponding to the color code can not be acquired from the photographed image when a predetermined time or more has elapsed from the start of photographing by the photographing unit 101, for example, the color code can not be detected, or If the corresponding information can not be acquired from the code, the output unit 105 displays on the monitor 105 a that the information can not be acquired from the code, and ends the process of reading the code.

これにより、撮影画像に応じてシャッタースピードを変更して、適切にコードを撮影することが可能となり、コードを適切に読み取ることが可能となる。   As a result, the shutter speed can be changed according to the photographed image, and the code can be photographed appropriately, and the code can be read appropriately.

なお、上記においては、フレーム画像からコードが検出できない場合に、シャッタースピードを制御するようにしたが、フレーム画像から検出したコードから、このコードに対応づけた情報が読み出せない場合、例えば、カラーコードを構成する色が判別できない場合等においても、上記と同様にシャッタースピードを変更することができるようにしても良い。   In the above, when the code can not be detected from the frame image, the shutter speed is controlled. However, when the information corresponding to the code can not be read out from the code detected from the frame image, for example, Even when the color constituting the code can not be determined, the shutter speed may be changed as described above.

また、上記において、制御部204により、上記で取得した画素の明度の平均値が、第一の閾値以下でないと判断された場合、制御部204が、上記で取得した画素の明度の平均値が、明度の平均値について予め指定された第二の閾値以上である、という条件を満たすか否かを判断し、条件を満たすと判断した場合、制御部204が、シャッタースピードを1段分速くするようにしても良い   Further, in the above, when the control unit 204 determines that the average value of the lightness of the pixels acquired above is not less than the first threshold, the control unit 204 determines the average value of the lightness of the pixels acquired above It is determined whether the condition that the average value of lightness is equal to or more than the second threshold specified in advance is satisfied, and if it is determined that the condition is satisfied, the control unit 204 increases the shutter speed by one step. You may

以上、本実施の形態によれば、撮影画像から取得した情報に応じて、コードを撮影する際のシャッタースピードを変更することができ、コードを適切に読み取ることができるコード読取装置を提供することができる。特に撮影画像に応じてシャッタースピードを制御することで、一般的なカメラのようにきれいな画像を撮影するための制御とは異なり、撮影画像からカラーコードが性格に読み取れるようになるような画像が撮影できるよう、シャッタースピードを制御することができ、精度良くカラーコードを読み取ることが可能となる。   As described above, according to the present embodiment, it is possible to change the shutter speed at the time of photographing a code according to the information acquired from the photographed image, and to provide a code reader capable of appropriately reading the code. Can. In particular, by controlling the shutter speed in accordance with the captured image, it is different from the control for capturing a beautiful image as in a general camera, the image is captured such that the color code can be read from the captured image As described above, the shutter speed can be controlled, and the color code can be read accurately.

なお、上記においては、制御部204が、撮影部101が撮影する際のシャッタースピードを制御するようにしたが、本発明においては、制御部204は、撮影部101が撮影する際の撮影状況を変更するものであればよい。撮影状況の変更とは、上述したシャッタースピードや、絞りや、受光感度等の変更や、これらの2以上の組合わせの変更である。この場合の撮影状況の変更は、例えば、精度良く情報が読み取り可能となるカラーコードが撮影された撮影画像が得られものとなるようにする撮影状況の変更である。例えば、撮影部101が、絞りや受光感度を変更可能なものである場合、シャッタースピードを速くする代わりに、撮影画像に応じて、絞りを絞るようにしてもよく、受光感度を低くするようにしてもよい。その逆についても同様である。   In the above description, the control unit 204 controls the shutter speed at the time of shooting by the shooting unit 101. However, in the present invention, the control unit 204 controls the shooting condition at the time of shooting by the shooting unit 101. What is necessary is just to change. The change of the photographing condition is the change of the shutter speed, the aperture, the light receiving sensitivity, etc. or the combination of two or more of them. The change of the photographing condition in this case is, for example, a change of the photographing condition such that a photographed image obtained by photographing a color code which enables accurate reading of information can be obtained. For example, when the photographing unit 101 is capable of changing the aperture and the light receiving sensitivity, instead of increasing the shutter speed, the aperture may be narrowed according to the photographed image, and the light receiving sensitivity is lowered. May be The same applies to the reverse.

(実施の形態3)
上記実施の形態1においては、制御部104が、照明を制御する場合について説明したが、以下、本実施の形態においては、コード読取装置の制御部が、撮影対象となるコードを表示する装置の制御を行なう場合について説明する。この実施の形態においては、特に、撮影対象となるコードを表示する装置が、コード読取装置の外部に設けられた投影装置である場合を例に挙げて説明する。
Third Embodiment
In the first embodiment, the control unit 104 controls the illumination. However, in the present embodiment, the control unit of the code reading apparatus displays the code to be photographed. The case of performing control will be described. In this embodiment, in particular, a case where a device for displaying a code to be photographed is a projection device provided outside the code reading device will be described as an example.

図7は、本実施の形態3におけるコード読取装置3と、投影装置5とを示すブロック図である。   FIG. 7 is a block diagram showing the code reader 3 and the projection device 5 in the third embodiment.

コード読取装置3は、撮影部301、照明部102、取得部103、制御部304、出力部105を備える。照明部102、取得部103、出力部105については、上記実施の形態1と同様であるため、ここでは詳細な説明は省略する。また、コードの撮影時に照明が不要である場合、照明部102は省略しても良い。   The code reading device 3 includes an imaging unit 301, an illumination unit 102, an acquisition unit 103, a control unit 304, and an output unit 105. The illumination unit 102, the acquisition unit 103, and the output unit 105 are the same as those in the first embodiment, and thus the detailed description will be omitted here. In addition, the illumination unit 102 may be omitted if the illumination is not necessary at the time of photographing the code.

投影装置5は、投影撮影部501と、投影部502と、受信部503とを有している。   The projection device 5 includes a projection imaging unit 501, a projection unit 502, and a reception unit 503.

投影装置5は、一以上のコードを含む領域を撮影して撮影画像を取得し、取得した撮影画像を投影する装置である。投影装置5は、例えば、カメラ等の、投影用の画像を撮影する構成を備えたプロジェクタや、投影用の画像を撮影する構成と接続されたプロジェクタである。   The projection device 5 is a device that captures an area including one or more codes, acquires a captured image, and projects the acquired captured image. The projector 5 is, for example, a projector such as a camera having a configuration for capturing an image for projection, and a projector connected to a configuration for capturing an image for projection.

投影撮影部501は、一以上のコードを含む領域を撮影して撮影画像を取得する。投影撮影部501の構成は、撮影部101と同様であるため、ここでは詳細な説明は省略する。なお、ここでは、投影撮影部501が撮影する撮影画像を、撮影部101が撮影する撮影画像と区別するために、投影撮影画像と呼ぶ。   The projection imaging unit 501 captures an area including one or more codes to obtain a captured image. The configuration of the projection imaging unit 501 is the same as that of the imaging unit 101, and thus the detailed description is omitted here. Here, in order to distinguish the photographed image photographed by the projection photographing unit 501 from the photographed image photographed by the photographing unit 101, it is called a projected photographed image.

投影部502は、投影撮影部501が取得した投影撮影画像を投影する。投影部502が投影撮影画像を投影する場所は問わない。投影部502は、投影する際の光量や、投影する光の色を調節可能なものであることが好ましい。例えば、投影部502が、三原色の光を重ねた光を投影に利用するものである場合、この三原色の光の光量を個別に調節することで、照射する光の色を変更可能なものであっても良い。また、色を変更可能なカラーフィルタを介して光を照射することで、照射する光の色を変更可能なものであっても良い。投影部502が投影撮影画像を投影する構成は、通常のプロジェクタが画像を投影する構成と同様であるため、ここでは詳細な説明は省略する。   The projection unit 502 projects the projected and photographed image acquired by the projection and photographing unit 501. It does not matter where the projection unit 502 projects the projected photographed image. It is preferable that the projection unit 502 be capable of adjusting the light quantity at the time of projection and the color of the light to be projected. For example, in the case where the projection unit 502 uses light in which light of three primary colors is overlapped for projection, the color of light to be irradiated can be changed by individually adjusting the light amounts of the light of three primary colors. It is good. In addition, the color of the light to be irradiated may be changed by irradiating the light through a color filter that can change the color. The configuration in which the projection unit 502 projects the projected and photographed image is the same as the configuration in which a normal projector projects an image, and thus the detailed description is omitted here.

投影部502は、例えば、後述する受信部503がコード読取装置3の制御部204から受信した投影装置5による画像、即ち投影撮影画像の投影を制御するための制御信号に応じて投影撮影画像を投影する際の制御を行なう。具体的には、投影部502は、制御信号に応じて、投影撮影画像を投影した画像である投影画像の調節をおこなう。投影画像の調節とは、例えば、投影する光の光量の増減や、投影する光の色の変更や、投影に用いられる投影撮影画像の色の調節、例えば、彩度や輝度、色調等の調節を行なうこと等である。投影画像の調節は、投影画像を投影する際のパラメータ等を調節することや、投影画像の画質を調節することと考えても良い。例えば、受信部503が受信した制御信号が、光量を増加させる指示を含むものである場合、投影部502は、投影撮影画像を投影する光量をこの指示に応じて変更する。また、受信した制御信号が、投影画像の色を変更する指示を含むものである場合、投影部502は、照射する光の色を変更することで、投影画像の色を変更する。あるいは、投影撮影画像の色を画像処理を行なって制御信号に応じて変更し、変更した投影撮影画像を投影することで、投影画像を変更してもよい。投影撮影画像の色を変更する場合、投影部502は、MPUやGPU等のプロセッサや、メモリ等を備えていても良く、画像処理専用の回路を備えていても良い。   The projection unit 502 is, for example, an image by the projection device 5 received by the reception unit 503 described later from the control unit 204 of the code reader 3, that is, a projection-captured image according to a control signal for controlling projection of the projection-captured image. Control when projecting. Specifically, in accordance with the control signal, the projection unit 502 adjusts a projected image which is an image obtained by projecting the projected photographed image. The adjustment of the projection image includes, for example, increase or decrease of the light quantity of light to be projected, change of color of the light to be projected, adjustment of color of the projection photographed image used for projection, for example, adjustment of saturation, brightness, color tone, etc. And so on. The adjustment of the projection image may be considered as adjusting parameters or the like when projecting the projection image, or adjusting the image quality of the projection image. For example, when the control signal received by the reception unit 503 includes an instruction to increase the light amount, the projection unit 502 changes the light amount for projecting the projected photographed image according to the instruction. When the received control signal includes an instruction to change the color of the projection image, the projection unit 502 changes the color of the light to be irradiated to change the color of the projection image. Alternatively, the projection image may be changed by performing image processing to change the color of the projection-captured image according to the control signal and projecting the changed projection-captured image. When changing the color of the projected and captured image, the projection unit 502 may include a processor such as an MPU or GPU, a memory, or the like, and may include a circuit dedicated to image processing.

受信部503は、コード読取装置3の制御部204が送信する制御信号を受信する。受信部503が受信する制御信号は、投影装置5による画像の投影を制御する信号である。   The receiving unit 503 receives a control signal transmitted by the control unit 204 of the code reader 3. The control signal received by the receiving unit 503 is a signal that controls the projection of the image by the projection device 5.

撮影部301は、投影装置5が投影した画像である投影画像を撮影する。投影画像を撮影するものである点を除けば、撮影部301は、撮影部101と同様の構成を有している。投影画像は、投影装置5が、一以上のコードを含む領域を撮影して取得した撮影画像を投影した画像である。投影画像がコードを撮影した画像を投影したものであるため、この投影画像を撮影した撮影画像もコードを撮影した画像となる。   The imaging unit 301 captures a projection image which is an image projected by the projection device 5. The imaging unit 301 has the same configuration as the imaging unit 101 except that the projection image is captured. The projection image is an image obtained by projecting the photographed image obtained by photographing the area including the one or more codes by the projection device 5. Since the projection image is obtained by projecting an image obtained by capturing a code, the captured image obtained by capturing this projected image is also an image obtained by capturing a code.

制御部304は、撮影部101が取得した撮影画像に応じて、投影装置5による画像の投影を制御する。投影装置5による画像の投影とは、投影装置5による、この投影装置5が一以上のコードを含む領域を撮影して取得した撮影画像の投影である。投影を制御するということは、例えば、投影を制御するための制御信号を、投影装置5に送信することである。制御信号の送信は、無線通信により行なわれても良く、有線通信により行なわれても良い。制御部304は、例えば、通信を行なうための通信手段を有していてもよい。あるいは制御部304は、図示しない送信部等を介して制御信号を投影装置5に送信してもよい。   The control unit 304 controls the projection of the image by the projection device 5 in accordance with the photographed image acquired by the photographing unit 101. The projection of the image by the projection device 5 is the projection of the photographed image obtained by photographing the area including one or more codes by the projection device 5. Controlling the projection is, for example, transmitting a control signal for controlling the projection to the projection device 5. The transmission of the control signal may be performed by wireless communication or may be performed by wired communication. The control unit 304 may have, for example, communication means for performing communication. Alternatively, the control unit 304 may transmit a control signal to the projection device 5 via a transmission unit (not shown) or the like.

制御部304は、例えば、上記の実施の形態1において説明したように、取得部103が出力する撮影画像からコードを読み取ることができなかったことを示す情報を受け付けた場合、制御部304は、投影装置5に画像の投影を制御する制御信号を送信することで、投影装置5が投影する投影画像を撮影した画像からコードが読み取り可能となるよう、投影装置による画像の投影をフィードバック制御するようにしてもよい。例えば、撮影画像からコードが検出されるようになるまで、段階的に投影装置5が投影する光量や光の色を変更する制御信号を投影装置5に送信し、送信を行なう毎に投影画像の撮影を行なうようにしても良い。ここでの光量の変更は、例えば、投影する光量の増加や、減少である。   For example, as described in the first embodiment, when the control unit 304 receives information indicating that the code can not be read from the captured image output by the acquisition unit 103, the control unit 304 can By transmitting a control signal for controlling the projection of the image to the projection device 5, feedback control of the projection of the image by the projection device is performed so that the code can be read from the image obtained by capturing the projection image projected by the projection device You may For example, until the code is detected from the captured image, a control signal for changing the amount of light projected by the projection device 5 and the color of light in stages is transmitted to the projection device 5, and each time transmission is performed It is also possible to take a picture. The change of the light quantity here is, for example, an increase or a decrease of the light quantity to be projected.

また、制御部304は、上記実施の形態1において説明したように、撮影画像から一以上のパラメータを取得し、取得したパラメータに応じて、投影装置5による画像の投影を制御するようにしてもよい。制御部304が、撮影画像から取得するパラメータは、例えば、実施の形態1において説明した制御部104が取得するパラメータと同様のパラメータであり、制御部304は、制御部104と同様の処理により、一以上のパラメータを取得する。   In addition, as described in the first embodiment, the control unit 304 acquires one or more parameters from the captured image, and controls the projection of the image by the projection device 5 according to the acquired parameters. Good. The parameters acquired by the control unit 304 from the photographed image are, for example, the same parameters as the parameters acquired by the control unit 104 described in the first embodiment, and the control unit 304 performs the same processing as the control unit 104. Get one or more parameters.

制御部304は、例えば、一以上のパラメータの値に対応付けられた光量や、色の情報を、図示しない格納部等から取得し、取得した光量や色の光で画像の投影を行なわせるための制御信号を投影装置5に送信する。   For example, the control unit 304 acquires light amount and color information associated with the values of one or more parameters from a storage unit (not shown) and the like, and projects the image with the acquired light amount and color light. Control signal is transmitted to the projection device 5.

また、制御部304は、例えば、撮影画像から取得した一以上のパラメータが予め指定された条件を満たす場合に、投影装置5による画像の投影を制御するようにしても良い。例えば、制御部304は、例えば、撮影画像から光量に関するパラメータを取得して、取得したパラメータが予め指定された条件を満たす場合に、投影装置5が画像の投影を行なう際の光量を制御する。予め指定された条件は、上述した実施の形態1の条件と同様の条件が利用可能である。予め指定された条件は、例えば、撮影領域からコードを適切に読み取れないことを判断するための光量に関する条件である。予め指定された条件は、例えば、光量に関するパラメータが第一の閾値以下であるという条件や、第二の閾値以上であるという条件(ただし、第一の閾値は、第二の閾値よりも小さい値であるとする)等である。また、例えば、制御部304は、予め指定された条件を満たす場合に、上記実施の形態1において、制御部104が照明部102に対して行なった制御と同様の制御を、投影装置5に対して行なうようにすればよい。例えば、実施の形態1において、光量に関するパラメータが予め指定された条件を満たすと判断された際に、照明部102が行なう照明の光量を増加させる制御を行なったとすると、本実施の形態においては、光の色に関するパラメータが同様の条件を満たすと判断された際には、投影装置5が投影する光量を増加させる制御を行なうようにすればよい。ただし、増加させる光量の大きさ等は異なっていても良い。   Further, the control unit 304 may control the projection of the image by the projection device 5 when, for example, one or more parameters acquired from the captured image satisfy a predetermined condition. For example, the control unit 304 acquires, for example, a parameter related to the light amount from the captured image, and controls the light amount when the projection device 5 projects an image when the acquired parameter satisfies a predetermined condition. As the conditions designated in advance, the same conditions as the conditions of the first embodiment described above can be used. The condition designated in advance is, for example, a condition relating to the light amount for judging that the code can not be properly read from the photographing area. The condition designated in advance is, for example, the condition that the parameter related to the light quantity is less than or equal to the first threshold, or the condition that it is greater than or equal to the second threshold (however, the first threshold is smaller than the second threshold) And so on). Further, for example, when the control unit 304 satisfies the condition designated in advance, the control similar to the control performed by the control unit 104 on the illumination unit 102 in the first embodiment is applied to the projection device 5. You should do it. For example, in the first embodiment, when it is determined that the light amount of the illumination performed by the illumination unit 102 is increased when it is determined that the parameter relating to the light amount satisfies the condition specified in advance, in the present embodiment, When it is determined that the parameters relating to the color of light satisfy the same condition, control may be performed to increase the amount of light projected by the projection device 5. However, the amount of light to be increased may be different.

また、制御部304は、例えば、パラメータが予め指定された条件を満たさなくなるよう、投影装置5による画像の投影を制御してもよい。例えば、撮影部301が撮影する撮影画像が動画像である場合や、撮影部301が撮影する撮影画像が静止画像であって、制御部304が照明の制御を行なうごとに新たな撮影画像が撮影される場合等においては、撮影画像から取得した光量に関するパラメータが、予め指定された条件を満たさなくなるまで、投影装置5が画像を投影する際の光量をフィードバック制御するようにしても良い。例えば、制御部304は、撮影画像から取得した光量に関するパラメータが予め指定された条件を満たす場合に、投影装置5が投影する光の光量を増加させる制御信号を投影装置5に送信する。更に、撮影部301が撮影したフレーム画像や静止画像について、再度、光量に関するパラメータを取得し、取得したパラメータの値が条件を満たす場合に、投影装置5が投影する光の光量を増加させる制御信号を送信する処理を、撮影画像から取得した光量に関するパラメータが予め指定された条件を満たさなくなるまで繰り返すようにしてもよい。フィードバック制御については、公知技術であるため、ここでは詳細な説明は省略する。   In addition, the control unit 304 may control, for example, the projection of the image by the projection device 5 so that the parameter does not satisfy the condition designated in advance. For example, when the captured image captured by the imaging unit 301 is a moving image, or the captured image captured by the imaging unit 301 is a still image, a new captured image is captured each time the control unit 304 performs lighting control. In such a case, the light amount when the projection device 5 projects an image may be feedback-controlled until the parameter related to the light amount acquired from the photographed image does not satisfy the condition designated in advance. For example, the control unit 304 transmits, to the projection device 5, a control signal to increase the light amount of light projected by the projection device 5 when the parameter related to the light amount acquired from the captured image satisfies the condition designated in advance. Furthermore, for the frame image and the still image captured by the imaging unit 301, a control signal for acquiring the parameter related to the light amount again and increasing the light amount of the light projected by the projection device 5 when the value of the acquired parameter satisfies the condition The process of transmitting may be repeated until the parameter related to the light amount acquired from the photographed image does not satisfy the condition designated in advance. The feedback control is a known technique, and thus the detailed description is omitted here.

なお、制御部304は、例えば、光量に関するパラメータの値が示す光量の不足分が大きくなるに従って、連続的または段階的に投影装置5が投影する光の光量が大きくなるよう、投影装置5を制御してもよい。また、制御部304は、例えば、光量に関するパラメータの値が示す光量の過剰分が大きくなるに従って、連続的または段階的に投影装置5が投影する光の光量が小さくなるよう、投影装置5を制御してもよい。   Note that, for example, the control unit 304 controls the projection device 5 so that the light amount of light projected by the projection device 5 increases continuously or in stages as the shortage of the light amount indicated by the value of the parameter related to the light amount increases. You may In addition, for example, the control unit 304 controls the projection device 5 so that the light amount of light projected by the projection device 5 decreases continuously or in stages as the excess of the light amount indicated by the value of the parameter related to the light amount increases. You may

また、制御部304が撮影画像から取得するパラメータは、上述したような、光の色に関するパラメータであってもよい。例えば、制御部304は、撮影画像から、光の色に関するパラメータを取得し、取得したパラメータに応じて、投影装置5が投影する光の色を制御する。   The parameters acquired by the control unit 304 from the captured image may be parameters related to the color of light as described above. For example, the control unit 304 acquires a parameter related to the color of light from the captured image, and controls the color of light projected by the projection device 5 according to the acquired parameter.

制御部304は、例えば、撮影画像から光の色に関するパラメータを取得して、取得したパラメータが予め指定された条件を満たす場合に、投影装置5が投影する光の色を制御する。予め指定された条件については、上記実施の形態1における光の色に関するパラメータについての条件と同様の条件が利用可能である。また、例えば、制御部304は、予め指定された条件を満たす場合に、上記実施の形態1において、制御部104が照明部102に対して行なった制御と同様の制御を、投影装置5に対して行なうようにすればよい。例えば、実施の形態1において、光の色に関するパラメータが予め指定された条件を満たすと判断された際に、照明部102が行なう照明の特定の色の強度を強くさせる制御を行なったとすると、本実施の形態においては、光の色に関するパラメータが同様の条件を満たすと判断された際には、投影装置5が投影する光の特定の色の強度を強くさせる制御を行なうようにすればよい。ただし、特定の色の強度を強くする程度等は、実施の形態1とは異なっていても良い。   For example, the control unit 304 acquires a parameter related to the color of light from the captured image, and controls the color of light projected by the projection device 5 when the acquired parameter satisfies a predetermined condition. Regarding the conditions designated in advance, the same conditions as the conditions for the parameters regarding the color of light in the above-mentioned Embodiment 1 can be used. Further, for example, when the control unit 304 satisfies the condition designated in advance, the control similar to the control performed by the control unit 104 on the illumination unit 102 in the first embodiment is applied to the projection device 5. You should do it. For example, in the first embodiment, when it is determined that the parameter relating to the color of light satisfies the condition specified in advance, it is assumed that the control to intensify the intensity of the specific color of the illumination performed by the illumination unit 102 is performed. In the embodiment, when it is determined that the parameters relating to the color of light satisfy the same condition, control may be performed to intensify the intensity of a specific color of light projected by the projection device 5. However, the extent to which the intensity of a specific color is increased may be different from that of the first embodiment.

また、制御部304は、例えば、光の色に関するパラメータが予め指定された条件を満たさなくなるよう投影装置5による画像の投影を制御してもよい。例えば、上記と同様に、投影装置5により行なわれる画像の投影、具体的には投影する光の色の変更をフィードバック制御するようにしても良い。   Further, for example, the control unit 304 may control the projection of the image by the projection device 5 so that the parameter related to the color of light does not satisfy the condition designated in advance. For example, similarly to the above, the projection of the image performed by the projection device 5, specifically, the change of the color of the light to be projected may be feedback-controlled.

なお、制御部304は、撮影画像から取得した異なる二以上のパラメータを用いて、これらのパラメータの組合わせに応じて、適宜、投影装置5による画像の投影を制御しても良い。   The control unit 304 may appropriately control the projection of the image by the projection device 5 according to a combination of two or more different parameters acquired from the captured image.

なお、制御部304が、撮影画像から取得した情報に応じて、投影装置5による投影の制御を行なうタイミングやトリガー等は問わない。例えば、制御部304は、予め指定された一定または不定のタイミング毎に制御を行なうようにしても良い。また、例えば、制御部304は、撮影部101が最初に撮影画像(例えば、撮影画像のフレーム画像等)を取得した場合に、撮影画像から取得した情報に応じて制御を行なうようにしてもよい。   In addition, according to the information acquired from the photography picture, control part 304 does not ask timing, a trigger, etc. which control projection by projection device 5. For example, the control unit 304 may perform control at every predetermined or indefinite timing designated in advance. Also, for example, when the imaging unit 101 first acquires a captured image (for example, a frame image of the captured image), the control unit 304 may perform control in accordance with the information acquired from the captured image. .

また、制御部304は、取得部103が撮影画像からコードを検出できなかった場合に、撮影画像から取得した情報に応じて、投影装置5による投影を制御するようにしてもよい。例えば、制御部304は、取得部103が撮影画像からコードを検出できなかった場合に、撮影画像から取得したパラメータを用いて、投影装置5による投影の制御を行なう。   In addition, when the acquisition unit 103 can not detect the code from the photographed image, the control unit 304 may control the projection by the projection device 5 according to the information acquired from the photographed image. For example, when the acquisition unit 103 can not detect the code from the captured image, the control unit 304 controls the projection by the projection device 5 using the parameter acquired from the captured image.

次に、コード読取装置3の動作の一例について図8のフローチャートを用いて説明する。なお、図において、図2と同一符号は同一または相当する処理ステップを示しており、ここでは詳細な説明は省略する。なお、図2と同一符号の処理ステップにおいて、制御部104が行なっていた処理は、ここでは、制御部304が行なうものとする。   Next, an example of the operation of the code reader 3 will be described with reference to the flowchart of FIG. In the figure, the same reference numerals as in FIG. 2 denote the same or corresponding processing steps, and the detailed description will be omitted here. In addition, in the process step of the same code | symbol as FIG. 2, the control part 304 shall perform the process which the control part 104 was performing here.

(ステップS309)制御部304は、ステップS207で取得したパラメータに応じて、投影装置5による画像の投影を制御する。例えば、制御部304は、投影装置5に、投影を制御するための制御信号を送信する。そして、ステップS102に戻る。   (Step S309) The control unit 304 controls the projection of the image by the projection device 5 in accordance with the parameter acquired in step S207. For example, the control unit 304 transmits, to the projection device 5, a control signal for controlling the projection. Then, the process returns to step S102.

以下、投影装置5の動作の一例について簡単に説明すると、投影撮影部501は、コードが配置された領域を撮影して投影撮影画像を取得する。投影部502は、投影撮影部501が取得した投影撮影画像を順次切り替えて表示する。受信部503は、コード読取装置3から送信される制御信号を受信する。投影部501は、受信部503が受信した制御信号に応じて、投影撮影画像の投影を制御する。例えば、投影する光量を、制御信号に応じて変更したり、投影する光の色を、制御信号に応じて変更する。   Hereinafter, an example of the operation of the projection device 5 will be briefly described. The projection photographing unit 501 photographs an area in which the code is arranged, and acquires a projection photographed image. The projection unit 502 sequentially switches and displays the projected and photographed images acquired by the projection and photographing unit 501. The receiver 503 receives the control signal transmitted from the code reader 3. The projection unit 501 controls the projection of the projected and photographed image in accordance with the control signal received by the reception unit 503. For example, the light amount to be projected is changed according to the control signal, or the color of the light to be projected is changed according to the control signal.

以下、本実施の形態の具体例について説明する。   Hereinafter, specific examples of the present embodiment will be described.

図9は、投影装置5が投影している投影画像を、コード読取装置3で撮影している状況を示す模式図である。   FIG. 9 is a schematic view showing a situation in which the code reader 3 captures a projection image projected by the projection device 5.

投影装置5の投影撮影部301は、カラーコード200が配置されている領域を撮影して、投影撮影画像を取得する。ここで取得する投影撮影画像は動画像であるとする。投影装置5の投影部302は、例えば、投影撮影部301が撮影した投影撮影画像を、図示しない壁やスクリーンに投影する。この投影により、投影画像50が壁やスクリーン等に表示される。ここでは、投影部302は、予めデフォルトで指定された光量で投影を行なうものとする。   The projection photographing unit 301 of the projection device 5 photographs an area in which the color code 200 is arranged, and acquires a projection photographed image. The projected and photographed image acquired here is assumed to be a moving image. The projection unit 302 of the projection device 5 projects, for example, the projected and photographed image photographed by the projection and photographing unit 301 on a wall or a screen (not shown). The projection image 50 is displayed on a wall, a screen or the like by this projection. Here, it is assumed that the projection unit 302 performs projection with a light amount designated in advance by default.

ユーザが、投影画像50を、コード読取装置3の撮影部301で撮影すると、撮影部301が動画像である撮影画像を取得する。   When the user captures a projected image 50 with the capturing unit 301 of the code reader 3, the capturing unit 301 acquires a captured image that is a moving image.

撮影部101が取得した撮影画像からカラーコードを検出し、検出したカラーコードから情報を取得する処理等については、上記実施の形態1の具体例と同様であるため、ここでは詳細な説明は省略する。   A process of detecting a color code from a captured image acquired by the imaging unit 101 and acquiring information from the detected color code is the same as the specific example of the first embodiment, and thus the detailed description is omitted here. Do.

ここで、撮影部101が撮影したカラーコードが配置された撮影領域を撮影した撮影画像のフレーム画像において、上記の実施の形態1の具体例と同様に、取得部103がカラーコードを検出できなかった、あるいはカラーコードから情報が取得できなかったとすると、制御部304は、撮影画像であるフレーム画像から、光量に関するパラメータとして、フレーム画像を構成する画素の明度の平均値を取得する。   Here, in the frame image of the photographed image obtained by photographing the photographing region in which the color code photographed by the photographing unit 101 is arranged, the acquiring unit 103 can not detect the color code as in the specific example of the first embodiment. If the information can not be acquired from the color code, the control unit 304 acquires, from the frame image which is the photographed image, the average value of the lightness of the pixels constituting the frame image as a parameter related to the light amount.

制御部304は、実施の形態1の具体例と同様に、上記で取得した画素の明度の平均値が、明度の平均値について予め指定された第一の閾値以下である、という条件を満たすか否かを判断する。ここでは、制御部304は、明度の平均値が条件を満たすと判断したとする。   As in the specific example of the first embodiment, does the control unit 304 satisfy the condition that the lightness average value of the pixels acquired above is equal to or less than a first threshold value specified in advance for the lightness average value? Decide whether or not. Here, it is assumed that the control unit 304 determines that the average value of the lightness satisfies the condition.

また、制御部304は、実施の形態1の具体例と同様に、フレーム画像から、光の色に関するパラメータとして、フレーム画像を構成する全画素のそれぞれについて色相の値を取得する。そして制御部304は、実施の形態1の具体例と同様の処理により、取得した色に関するパラメータが、光の色についての条件を満たすか否かを判断する。ここでは、制御部304は、色に関するパラメータが条件を満たすと判断したとする。   Further, as in the specific example of the first embodiment, the control unit 304 obtains, from the frame image, the hue value for each of all the pixels constituting the frame image as a parameter relating to the color of light. Then, the control unit 304 performs processing similar to that of the specific example of the first embodiment to determine whether the acquired parameter relating to the color satisfies the condition regarding the light color. Here, it is assumed that the control unit 304 determines that the parameter related to the color satisfies the condition.

制御部304は、上記のように、光量についての条件を満たすと判断したため、ここでは、投影装置5に対して、投影に利用する光量を予め指定された値だけ増加させることを決定する。   As described above, since the control unit 304 determines that the condition regarding the light amount is satisfied, the control unit 304 determines that the light amount used for the projection is increased by a predetermined value with respect to the projection device 5 here.

また、制御部304は、上述したように光の色についての条件を満たすと判断したため、統制装置5に対して、上記で取得した色相の範囲に対応した色の光で投影を行なうことを決定する。ここでの対応した色の決定は、上記実施の形態1の具体例における照明の色の決定と同様におこなわれるものとする。   In addition, since the control unit 304 determines that the condition regarding the color of light is satisfied as described above, it determines to perform projection with light of a color corresponding to the range of the hue acquired above to the control device 5 Do. Here, the determination of the corresponding color is performed in the same manner as the determination of the color of the illumination in the specific example of the first embodiment.

そして、制御部304は、上記の決定に従って、光量を予め指定された値だけ増加させるための制御信号と、上記で決定した色の光で投影を行なわせるための制御信号とを、無線通信により、投影装置5に送信する。   Then, in accordance with the above determination, the control unit 304 performs wireless communication with a control signal for increasing the light quantity by a predetermined value and a control signal for performing projection with the light of the color determined above. , To the projection device 5.

投影装置5の受信部503が、コード読取装置3の制御部304から送信された制御信号を受信すると、投影部502は、受信した制御信号に応じて、投影する光を制御する。具体的には、光量を予め指定された値だけ増加させるための制御信号に応じて、投影する光量を増加させ、上記で決定した色の光で投影を行なわせるための制御信号に応じて、投影する光の色を変化させる。このようにして変更された光で、投影撮影部501が撮影した画像が新たに投影される。   When the receiving unit 503 of the projecting device 5 receives the control signal transmitted from the control unit 304 of the code reading device 3, the projecting unit 502 controls the light to be projected according to the received control signal. Specifically, the amount of light to be projected is increased according to a control signal for increasing the amount of light by a previously designated value, and according to a control signal for performing projection with light of the color determined above, Change the color of light to be projected. The image captured by the projection imaging unit 501 is newly projected by the light thus changed.

ここで、更に、この変更された光で投影された投影画像を、撮影部301で撮影した撮影画像からコードが検出できなかった場合、制御部304は、フレーム画像から上記と同様に光量に関するパラメータや色に関するパラメータを取得して、これらのパラメータがそれぞれに対して予め容易された条件を満たすか否かを判断し、投影装置5による投影を制御し、条件を満たさない場合には、投影装置5による投影を制御せずに、再度フレーム画像からのコード検出や、コードの情報の取得を行なう。   Here, when the code can not be detected from the captured image captured by the imaging unit 301 and the projection image projected by the changed light is further detected, the control unit 304 determines the parameter related to the light amount from the frame image as described above. To obtain parameters relating to color and color, determine whether these parameters satisfy the conditions facilitated in advance for each, control the projection by the projection device 5, and if the conditions are not satisfied, the projection device The code detection from the frame image and the acquisition of code information are performed again without controlling the projection by 5.

そして、制御部304は、上記と同様の処理を、コードから情報が取得できるまで繰り返す。   Then, the control unit 304 repeats the same process as described above until information can be obtained from the code.

なお、撮影部101の撮影開始から、予め指定された時間以上経過した時点で、撮影画像からカラーコードに対応した情報を取得できていない場合、例えば、カラーコードが検出できていない場合や、カラーコードから対応する情報を取得できていない場合、出力部105は、モニタ105aに、コードから情報が取得できなかった旨の表示を行ない、コードを読み取る処理を終了する。   Note that if information corresponding to the color code can not be acquired from the photographed image when a predetermined time or more has elapsed from the start of photographing by the photographing unit 101, for example, the color code can not be detected, or If the corresponding information can not be acquired from the code, the output unit 105 displays on the monitor 105 a that the information can not be acquired from the code, and ends the process of reading the code.

これにより、撮影画像に応じて投影装置5による投影を制御して、適切にコードを撮影することが可能となり、コードを適切に読み取ることが可能となる。   As a result, the projection by the projection device 5 can be controlled according to the photographed image, and the code can be photographed properly, and the code can be read appropriately.

また、上記において、制御部304により、上記で取得した画素の明度の平均値が、第一の閾値以下でないと判断された場合、制御部304が、上記で取得した画素の明度の平均値が、明度の平均値について予め指定された第二の閾値以上である、という条件を満たすか否かを判断し、条件を満たすと判断した場合、制御部204が、投影装置5が投影する際の光量を減少させても良い。   Further, in the above, when it is determined by the control unit 304 that the average value of the lightness of the pixels acquired above is not less than the first threshold, the control unit 304 determines the average value of the lightness of the pixels acquired above It is determined whether or not the condition that the average value of lightness is equal to or more than the second threshold specified in advance is satisfied, and the control unit 204 determines that the condition is satisfied. The amount of light may be reduced.

以上、本実施の形態によれば、撮影画像から取得した情報に応じて、投影装置によるコードを撮影した画像の投影を制御することができ、コードを適切に読み取ることができるコード読取装置を提供することができる。   As mentioned above, according to this embodiment, according to the information acquired from a photography picture, projection of a picture which picturized a code by a projection device can be controlled, and a code reader which can read a code appropriately is provided. can do.

なお、上記各実施の形態においては、制御部が、照明や、シャッタースピード等の撮影状況、投影装置を制御する場合について説明したが、本発明においては、制御部は、撮影画像を取得するための環境を制御するものであればよい。撮影画像を取得するための環境の制御とは、例えば、撮影時のコード読取装置の内部環境の制御であっても良く、外部環境の制御であっても良い。撮影画像を取得するための環境の制御は、例えば、撮影時の撮影部の設定の制御や、上述したような照明の制御や、撮影対象のコードの表示の制御等やこれらの2以上の組合わせである。撮影部の設定の制御とは、具体的には上述したようなシャッタースピードや、絞りや、感度等の設定の制御の1以上である。撮影対象のコードの表示の制御は、例えば、撮影対象のコードを表示する装置等の制御であり、具体的には、上述したような投影装置の制御である。   In each of the above-described embodiments, the control unit controls illumination, shooting conditions such as shutter speed, and the projection apparatus. However, in the present invention, the control unit acquires a photographed image. What is necessary is to control the environment of The control of the environment for acquiring a photographed image may be, for example, the control of the internal environment of the code reading apparatus at the time of photographing or the control of the external environment. The control of the environment for acquiring the photographed image may be, for example, control of the setting of the photographing unit at the time of photographing, control of illumination as described above, control of display of a code to be photographed, etc. It is a match. Specifically, the control of the setting of the photographing unit is one or more of the control of the setting of the shutter speed, the aperture, the sensitivity, and the like as described above. The control of display of the code to be imaged is, for example, control of an apparatus or the like for displaying the code of the object to be imaged, and more specifically, control of the projection apparatus as described above.

なお、上記各実施の形態において、各処理(各機能)は、単一の装置(システム)によって集中処理されることによって実現されてもよく、あるいは、複数の装置によって分散処理されることによって実現されてもよい。   In the above embodiments, each process (each function) may be realized by centralized processing by a single device (system), or realized by distributed processing by a plurality of devices. It may be done.

また、上記各実施の形態では、コード読取装置がスタンドアロンである場合について説明したが、コード読取装置は、スタンドアロンの装置であってもよく、サーバ・クライアントシステムにおけるサーバ装置であってもよい。後者の場合には、撮影部101は、通信回線を介して撮影画像の入力を受け付けたり、照明部102は、通信回線を介して撮影領域を照明するための情報を送信したりすることになる。   In each of the above embodiments, the code reader is a stand-alone unit. However, the code reader may be a stand-alone unit or a server unit in a server / client system. In the latter case, the imaging unit 101 receives an input of a captured image through a communication line, and the illumination unit 102 transmits information for illuminating the imaging area through the communication line. .

また、上記各実施の形態において、各構成要素は専用のハードウェアにより構成されてもよく、あるいは、ソフトウェアにより実現可能な構成要素については、プログラムを実行することによって実現されてもよい。例えば、ハードディスクや半導体メモリ等の記録媒体に記録されたソフトウェア・プログラムをCPU等のプログラム実行部が読み出して実行することによって、各構成要素が実現され得る。その実行時に、プログラム実行部は、格納部(例えば、ハードディスクやメモリ等の記録媒体)にアクセスしながらプログラムを実行してもよい。   In each of the above embodiments, each component may be configured by dedicated hardware, or a component that can be realized by software may be realized by executing a program. For example, each component can be realized by a program execution unit such as a CPU reading and executing a software program recorded on a recording medium such as a hard disk or a semiconductor memory. At the time of execution, the program execution unit may execute the program while accessing a storage unit (for example, a recording medium such as a hard disk or a memory).

なお、上記各実施の形態におけるコード読取装置を実現するソフトウェアは、以下のようなプログラムである。つまり、このプログラムは、コンピュータを、一以上のコードを含む領域を撮影して撮影画像を取得する撮影部と、撮影画像内において一以上のコードを検出し、検出した一以上のコードから、コードに対応づけられた情報を取得する取得部と、取得部が取得した情報を出力する出力部と、撮影画像に応じて、撮影画像を取得するための環境を制御する制御部として機能させるためのプログラムである。   The software for realizing the code reader in each of the above embodiments is the following program. That is, this program detects a computer from an imaging unit that captures an area including one or more codes and acquires a captured image, detects one or more codes in the captured image, and detects one or more codes from the detected code. And an output unit that outputs the information acquired by the acquisition unit, and a control unit that controls an environment for acquiring the photographed image according to the photographed image. It is a program.

なお、上記プログラムにおいて、上記プログラムが実現する機能には、ハードウェアでしか実現できない機能は含まれない。例えば、情報を取得する取得部や、情報を出力する出力部などにおけるモデムやインターフェースカードなどのハードウェアでしか実現できない機能は、上記プログラムが実現する機能には含まれない。   In the above program, the function realized by the program does not include the function that can be realized only by hardware. For example, functions that can be realized only by hardware such as an acquisition unit that acquires information and an output unit that outputs information, such as a modem or an interface card, are not included in the functions that the above program realizes.

また、このプログラムを実行するコンピュータは、単数であってもよく、複数であってもよい。すなわち、集中処理を行ってもよく、あるいは分散処理を行ってもよい。   Moreover, the computer that executes this program may be singular or plural. That is, centralized processing may be performed, or distributed processing may be performed.

図4は、上記プログラムを実行して、上記実施の形態によるカラーコード読取装置を実現するコンピュータシステム900の一例を示す図である。上記実施の形態は、コンピュータハードウェア及びその上で実行されるコンピュータプログラムによって実現されうる。   FIG. 4 is a diagram showing an example of a computer system 900 that implements the color code reader according to the above embodiment by executing the above program. The above embodiments can be realized by computer hardware and a computer program executed thereon.

図4において、コンピュータシステム900は、MPU(Micro Processing Unit)911と、ブートアッププログラム等のプログラムや、アプリケーションプログラム、システムプログラム、及びデータが記憶されるフラッシュメモリ等のROM912と、MPU911に接続され、アプリケーションプログラムの命令を一時的に記憶すると共に、一時記憶空間を提供するRAM913と、タッチパネル914と、無線通信モジュール915と、MPU911、ROM912等を相互に接続するバス916とを備える。なお、無線通信モジュール915に代えて、有線通信モジュールを備えていてもよい。また、タッチパネル914に代えて、ディスプレイと、マウスやキーボード等の入力デバイスとを備えていてもよい。   In FIG. 4, a computer system 900 is connected to an MPU (Micro Processing Unit) 911, a program such as a boot-up program, an application program, a system program, a ROM 912 such as a flash memory for storing data, and the MPU 911 The ROM 913 temporarily stores instructions of the application program, and also includes a RAM 913 for providing a temporary storage space, a touch panel 914, a wireless communication module 915, and a bus 916 interconnecting the MPU 911, the ROM 912 and the like. Note that instead of the wireless communication module 915, a wired communication module may be provided. Further, instead of the touch panel 914, a display and an input device such as a mouse or a keyboard may be provided.

コンピュータシステム900に、上記実施の形態によるカラーコード読取装置の機能を実行させるプログラムは、無線通信モジュール915を介してROM912に記憶されてもよい。プログラムは実行の際にRAM913にロードされる。なお、プログラムは、ネットワークから直接、ロードされてもよい。   A program that causes the computer system 900 to execute the function of the color code reader according to the above embodiment may be stored in the ROM 912 via the wireless communication module 915. The program is loaded into the RAM 913 upon execution. The program may be loaded directly from the network.

プログラムは、コンピュータシステム900に、上記実施の形態によるカラーコード読取装置の機能を実行させるオペレーティングシステム(OS)、またはサードパーティプログラム等を必ずしも含んでいなくてもよい。プログラムは、制御された態様で適切な機能やモジュールを呼び出し、所望の結果が得られるようにする命令の部分のみを含んでいてもよい。コンピュータシステム900がどのように動作するのかについては周知であり、詳細な説明は省略する。   The program may not necessarily include the operating system (OS) that causes the computer system 900 to execute the function of the color code reader according to the above embodiment, a third party program, or the like. The program may include only portions of instructions that invoke appropriate functions or modules in a controlled manner to achieve a desired result. It is well known how computer system 900 operates, and detailed description is omitted.

本発明は、以上の実施の形態に限定されることなく、種々の変更が可能であり、それらも本発明の範囲内に包含されるものであることは言うまでもない。   It goes without saying that the present invention is not limited to the above embodiments, and various modifications are possible, which are also included in the scope of the present invention.

以上のように、本発明にかかるコード読取装置等は、コードを読み取る装置等として適しており、特に、照明を備えたコード読取装置等として有用である。   As described above, the code reading apparatus and the like according to the present invention are suitable as an apparatus and the like for reading a code, and particularly useful as a code reading apparatus and the like provided with illumination.

1,2,3 コード読取装置
5 投影装置
101,301 撮影部
102 照明部
103 取得部
104,204,304 制御部
105 出力部
105a モニタ
200 コード
1, 2, 3 Code reading device 5 Projection device 101, 301 Imaging unit 102 Illumination unit 103 Acquisition unit 104, 204, 304 Control unit 105 Output unit 105a Monitor 200 Code

Claims (6)

一以上のコードを含む領域を撮影して撮影画像を取得する撮影部と、
前記撮影画像内において一以上のコードを検出し、検出した一以上のコードから、当該コードに対応づけられた情報を取得する取得部と、
前記取得部が取得した情報を出力する出力部と、
前記撮影画像に応じて、前記撮影画像を取得するための環境を制御する制御部と
前記撮影部が撮影する領域に光を照射する照明部と、を備え、
前記照明部は、照射する光の色を変更可能であり、
前記コードはカラーコードであり、
前記制御部は、前記撮影画像から、光の色に関するパラメータとして、撮影画像内において偏っている色の色相の範囲を取得し、取得したパラメータに応じて、前記照明部が前記撮影領域に対して照射する光の色を、取得した色相の範囲外の色に制御するコード読取装置。
An imaging unit that captures an area including one or more codes and acquires a captured image;
An acquisition unit that detects one or more codes in the captured image and acquires information associated with the codes from the detected one or more codes;
An output unit that outputs the information acquired by the acquisition unit;
A control unit configured to control an environment for acquiring the photographed image according to the photographed image ;
And a lighting unit that emits light to the area photographed by the photographing unit.
The illumination unit is capable of changing the color of light to be emitted,
The code is a color code,
The control unit acquires, from the captured image, a range of hues of a color that is biased in the captured image as a parameter related to the color of light, and the illumination unit is configured to the imaging area according to the acquired parameter. A code reader that controls the color of light to be emitted to a color outside the acquired hue range.
前記制御部は、前記取得部が前記撮影画像からコードに対応した情報を取得できなかった場合に、前記照明部が前記撮影領域に対して照射する光を制御する請求項記載のコード読取装置。 Wherein, when the acquisition unit can not acquire the information corresponding to the code from the captured image, the code of claim 1, wherein said illumination unit controls the light irradiated to the imaging area reading apparatus . 前記制御部は、前記撮影画像から、光量に関するパラメータを取得し、取得したパラメータに応じて、前記照明部が前記撮影領域に対して照射する光の光量を制御する請求項1または請求項2記載のコード読取装置。 The control unit, from said captured image, obtains a parameter related to the amount of light, according to the obtained parameters, according to claim 1, wherein said illumination unit controls the amount of light irradiated to the imaging area Code reader. 前記制御部は、前記撮影画像に応じて、前記撮影部による撮影時のシャッタースピードを制御する請求項1から請求項いずれか一項記載のコード読取装置。 The code reader according to any one of claims 1 to 3 , wherein the control unit controls a shutter speed at the time of photographing by the photographing unit according to the photographed image. 撮影部と、取得部と、出力部と、制御部と、照明部とを用いて行なわれるコード読取方法であって、
前記撮影部が、一以上のコードを含む領域を撮影して撮影画像を取得する撮影ステップと、
前記取得部が、前記撮影画像内において一以上のコードを検出し、検出した一以上のコードから、当該コードに対応づけられた情報を取得する取得ステップと、
前記出力部が、前記取得ステップで取得した情報を出力する出力ステップと、
前記制御部が、前記撮影画像に応じて、前記撮影画像を取得するための環境を制御する制御ステップと
前記照明部が、前記撮影ステップで撮影する領域に光を照射する照明ステップと、を備え、
前記コードはカラーコードであり、
前記照明ステップは、照射する光の色を変更可能であり、
前記制御ステップは、前記撮影画像から、光の色に関するパラメータとして、撮影画像内において偏っている色の色相の範囲を取得し、取得したパラメータに応じて、前記照明ステップで前記撮影領域に対して照射する光の色を、取得した色相の範囲外の色に制御するたコード読取方法。
A code reading method performed using an imaging unit, an acquisition unit, an output unit, a control unit, and an illumination unit ,
A photographing step in which the photographing unit photographs an area including one or more codes and acquires a photographed image;
An acquisition step in which the acquisition unit detects one or more codes in the captured image and acquires information associated with the codes from the detected one or more codes;
An output step of outputting the information acquired in the acquisition step by the output unit;
A control step of controlling an environment for acquiring the photographed image according to the photographed image ;
And an illumination step of illuminating the area to be photographed in the photographing step.
The code is a color code,
The lighting step can change the color of the light to be irradiated,
The control step acquires, from the captured image, a range of hues of a color that is biased in the captured image as a parameter related to the color of light, and the lighting step is performed on the captured area according to the acquired parameter. The code reading method which controlled the color of the light to irradiate to the color out of the range of the acquired hue .
コンピュータを、
一以上のコードを含む領域を撮影して撮影画像を取得する撮影部と、
前記撮影画像内において一以上のコードを検出し、検出した一以上のコードから、当該コードに対応づけられた情報を取得する取得部と、
前記取得部が取得した情報を出力する出力部と、
前記撮影画像に応じて、前記撮影画像を取得するための環境を制御する制御部と
前記撮影部が撮影する領域に光を照射する照明部と、して機能させ、
前記コードはカラーコードであり、
前記照明部は、照射する光の色を変更可能であり、
前記制御部は、前記撮影画像から、光の色に関するパラメータとして、撮影画像内において偏っている色の色相の範囲を取得し、取得したパラメータに応じて、前記照明部が前記撮影領域に対して照射する光の色を、取得した色相の範囲外の色に制御するプログラム。
Computer,
An imaging unit that captures an area including one or more codes and acquires a captured image;
An acquisition unit that detects one or more codes in the captured image and acquires information associated with the codes from the detected one or more codes;
An output unit that outputs the information acquired by the acquisition unit;
A control unit configured to control an environment for acquiring the photographed image according to the photographed image ;
The illumination unit is configured to function as an illumination unit that emits light to an area photographed by the imaging unit.
The code is a color code,
The illumination unit is capable of changing the color of light to be emitted,
The control unit acquires, from the captured image, a range of hues of a color that is biased in the captured image as a parameter related to the color of light, and the illumination unit is configured to the imaging area according to the acquired parameter. A program that controls the color of light to be emitted to a color outside the acquired hue range .
JP2015197456A 2015-03-12 2015-10-05 Code reader, code reading method, and program Active JP6523908B2 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
JP2015049864 2015-03-12
JP2015049864 2015-03-12

Publications (2)

Publication Number Publication Date
JP2016170768A JP2016170768A (en) 2016-09-23
JP6523908B2 true JP6523908B2 (en) 2019-06-05

Family

ID=56983921

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2015197456A Active JP6523908B2 (en) 2015-03-12 2015-10-05 Code reader, code reading method, and program

Country Status (1)

Country Link
JP (1) JP6523908B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP7646433B2 (en) 2021-04-22 2025-03-17 キヤノン株式会社 LIQUID DISCHARGE HEAD AND LIQUID DISCHARGE METHOD

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
AU2002306680A1 (en) * 2001-03-08 2002-09-24 Hand Held Products, Inc. Optical reader imaging module
EP1770604A1 (en) * 2004-07-22 2007-04-04 Matsushita Electric Industrial Co., Ltd. Multicolored two-dimensional barcode, image display apparatus thereof, information terminal apparatus, display method, decoding method, information communication system, and information communication method
JP3846501B2 (en) * 2004-12-08 2006-11-15 オムロン株式会社 Optical information code reader
JP4325602B2 (en) * 2005-09-21 2009-09-02 株式会社デンソーウェーブ Optical information reader
JP5205706B2 (en) * 2006-03-30 2013-06-05 カシオ計算機株式会社 Projection display device and program
JP4572871B2 (en) * 2006-05-29 2010-11-04 株式会社デンソーウェーブ Optical information reader
JP2009289066A (en) * 2008-05-29 2009-12-10 B-Core Inc Position specification method and color specification method and id creation method
JP2012074025A (en) * 2010-09-01 2012-04-12 Toshiba Tec Corp Imaging device, reading device, and light quantity adjustment method
JP2013171451A (en) * 2012-02-21 2013-09-02 Denso Wave Inc Information code reading device

Also Published As

Publication number Publication date
JP2016170768A (en) 2016-09-23

Similar Documents

Publication Publication Date Title
US20100254692A1 (en) Camera illumination device
JP6258555B2 (en) Multi LED camera flash for color temperature adjustment
RU2565343C2 (en) Imaging device and control method
US9516295B2 (en) Systems and methods for multi-channel imaging based on multiple exposure settings
US20150229819A1 (en) System and method for generating a digital image
US9497433B2 (en) Imaging device with color adjustment function, imaging method using the same, and non-transitory storage medium in which imaging program is stored
CN111311500B (en) A method and device for color restoration of an image
CN108462837A (en) Image pickup method and device
US9036046B2 (en) Image processing apparatus and method with white balance correction
US20180025476A1 (en) Apparatus and method for processing image, and storage medium
US8810681B2 (en) Image processing apparatus and image processing method
JP7764510B2 (en) Image processing device, imaging device, image processing method, image processing program, and recording medium
JP5042453B2 (en) Strobe control device, strobe control program, strobe control method
JP6523908B2 (en) Code reader, code reading method, and program
KR102191441B1 (en) Wireless synchronization control system of lighting for photo shooting using smart phone
WO2024150562A1 (en) An imaging apparatus, an image processing method, and a non-transitory computer-readable medium
US10499028B2 (en) White balance adjusting apparatus, operation method thereof, and non-transitory computer readable medium
CN110235442A (en) Projection type video display apparatus
JP2003309854A (en) Digital camera
CN109076199B (en) White balance adjustment device, method of operation, and non-transitory computer-readable medium
US20170038196A1 (en) System and method for acquiring color image from monochrome scan camera
KR100978675B1 (en) How to adjust the white balance when shooting with the flash
JP2012141445A (en) Digital camera and method for determining flash light luminescent color
JP5566679B2 (en) Imaging apparatus and imaging method
JP2010166591A (en) Tint correcting device for image taken by camera, and portable terminal device

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20181003

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20190118

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20190116

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20190319

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20190426

R150 Certificate of patent or registration of utility model

Ref document number: 6523908

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

S531 Written request for registration of change of domicile

Free format text: JAPANESE INTERMEDIATE CODE: R313531

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250