JP2013061999A - Symbol-recognizing device and control program for the same - Google Patents

Symbol-recognizing device and control program for the same Download PDF

Info

Publication number
JP2013061999A
JP2013061999A JP2013002489A JP2013002489A JP2013061999A JP 2013061999 A JP2013061999 A JP 2013061999A JP 2013002489 A JP2013002489 A JP 2013002489A JP 2013002489 A JP2013002489 A JP 2013002489A JP 2013061999 A JP2013061999 A JP 2013061999A
Authority
JP
Japan
Prior art keywords
unit
symbol
decoding
gradation
areas
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP2013002489A
Other languages
Japanese (ja)
Other versions
JP5380613B2 (en
Inventor
Osamu Tsuchiya
修 土屋
Hitoshi Iizaka
仁志 飯坂
Shoya Yamada
祥也 山田
Hidemi Mihara
日出海 見原
Hidehiro Naito
英浩 内藤
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Toshiba TEC Corp
Original Assignee
Toshiba TEC Corp
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 Toshiba TEC Corp filed Critical Toshiba TEC Corp
Priority to JP2013002489A priority Critical patent/JP5380613B2/en
Publication of JP2013061999A publication Critical patent/JP2013061999A/en
Application granted granted Critical
Publication of JP5380613B2 publication Critical patent/JP5380613B2/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

PROBLEM TO BE SOLVED: To provide a symbol-recognizing device which can illuminate a two-dimensional symbol with an optimum light quantity and efficiently recognize the two-dimensional symbol.SOLUTION: A light source 30 which divides an object 3, which is an object to be picked up, into a plurality of areas and partially illuminates the areas is provided in a symbol-recognizing device. An image of the object 3 which is illuminated by the light source 30 is picked up by an image sensor 32, and a decoder 33 decodes QR codes from the image which is result of image pickup. Then, when decoding by the decoder 33 fails, a gradation measurement part 23 measures average gradation of the plurality of areas in image data, and a control part 21 determines power-on time for respective LED light sources 101-104 which constitutes the light source 30, on the basis of result of measurement. A light source-drive circuit 22 controls the respective LED light sources 101-104 according to the power-on time which are thus determined, and illuminates the object 3 to try imaging and decoding again.

Description

本発明は、QRコード(登録商標)等の二次元シンボルを撮像手段で撮像し、この画像から前記二次元シンボルを認識するスキャナ等のシンボル認識装置及びその制御プログラムに関する。   The present invention relates to a symbol recognition apparatus such as a scanner that captures a two-dimensional symbol such as a QR code (registered trademark) with an imaging unit and recognizes the two-dimensional symbol from the image, and a control program thereof.

物品やカード媒体、チラシ等に付されるバーコード等のシンボルを認識するシンボル認識装置は、レーザ光をスキャニングさせるレーザ方式が主流である。しかしその一方で、近年では、シンボルが付された物品の二次元画像を撮像手段で撮像し、この画像からシンボルを認識する方式、いわゆるカメラ撮像方式が開発されている。この種のシンボル認識装置は、結像レンズを介してシンボル像をイメージセンサに導いてアナログ信号に変換し、該アナログ信号を2値化回路で2値化出力に変換した後、デコーダにてデコードした数値を出力するようになっている。   A laser recognition method for recognizing a symbol such as a barcode attached to an article, a card medium, a leaflet, or the like is mainly a laser system that scans a laser beam. However, on the other hand, in recent years, a so-called camera imaging method has been developed in which a two-dimensional image of an article with a symbol is taken by an imaging means and the symbol is recognized from this image. This type of symbol recognition device guides a symbol image to an image sensor through an imaging lens and converts it into an analog signal. The analog signal is converted into a binarized output by a binarization circuit and then decoded by a decoder. It is designed to output the numerical value.

カメラ撮像方式のシンボル認識装置において、被写体の光量の過剰又は不足が生じると、シンボルが正確に読み取れないことがある。このような問題を解決すべく、種々の発明がなされている。例えば特許文献1に開示されたバーコード読取装置は、バーコードの撮像により得られる映像信号のレベルや読取率に応じてバーコードへの配光を部分的に制御している。   In a camera imaging type symbol recognition device, if an excessive or insufficient amount of light from the subject occurs, the symbol may not be read accurately. Various inventions have been made to solve such problems. For example, the barcode reader disclosed in Patent Document 1 partially controls the light distribution to the barcode according to the level of the video signal obtained by imaging the barcode and the reading rate.

特開平9−153106号公報JP-A-9-153106

近年、一次元にバーパターンを配列したバーコードよりもサイズの大きい情報を表現可能な、QRコード等の二次元シンボルが普及しつつある。二次元シンボルを認識するシンボル認識装置は、一般的に前記カメラ撮像方式を採用している。したがって、前記したような被写体への光量の過剰又は不足に関する問題が生じ得る。二次元シンボルは、マトリクス状に配置された多数のシンボルを同時に認識するものであるため、特許文献1に開示されたような、一次元的な部分照明を制御する技術に対してさらなる改良を加える必要がある。   In recent years, two-dimensional symbols such as QR codes capable of expressing information larger in size than barcodes in which one-dimensional bar patterns are arranged are becoming widespread. A symbol recognition apparatus for recognizing a two-dimensional symbol generally employs the camera imaging method. Therefore, the above-described problem relating to excess or deficiency in the amount of light to the subject may occur. Since the two-dimensional symbol recognizes a large number of symbols arranged in a matrix at the same time, the technique for controlling the one-dimensional partial illumination as disclosed in Patent Document 1 is further improved. There is a need.

本発明は、上記のような事情に基づいてなされたものであり、その目的は、二次元シンボルを最適な光量で照明でき、効率的に二次元シンボルを認識するシンボル認識装置を提供することである。   The present invention has been made based on the above situation, and an object of the present invention is to provide a symbol recognition device that can illuminate a two-dimensional symbol with an optimum light amount and efficiently recognizes the two-dimensional symbol. is there.

上記目的を達成するため、本発明は、次のような手段を講じている。   In order to achieve the above object, the present invention takes the following measures.

本発明の第1の視点は、被写体を複数の領域に分けて部分的に照明する照明手段と、この照明手段により照明された前記被写体を撮像し、画像データを生成する撮像手段と、この撮像手段により生成された画像データに含まれる二次元シンボルをデコードするデコード手段と、このデコード手段によるデコードが失敗したとき、前記撮像手段により生成された画像データから、前記照明手段によって照明される前記複数の領域毎の階調情報を計測する階調計測手段と、この階調計測手段により計測された前記複数の領域毎の階調情報に基づいて、前記照明手段が前記複数の領域のそれぞれを照明する配光量を補正する補正手段と、この補正手段により補正された配光量に従って前記照明手段を駆動し、前記複数の領域のそれぞれを照明させる照明駆動手段とを備えたシンボル認識装置である。   According to a first aspect of the present invention, there is provided illumination means for partially illuminating a subject into a plurality of regions, imaging means for imaging the subject illuminated by the illumination means and generating image data, and the imaging Decoding means for decoding a two-dimensional symbol included in the image data generated by the means, and the plurality of lights illuminated by the illumination means from the image data generated by the imaging means when decoding by the decoding means fails Gradation measuring means for measuring gradation information for each area, and the illumination means illuminates each of the plurality of areas based on the gradation information for each of the plurality of areas measured by the gradation measuring means. A correction unit that corrects the light distribution to be performed, and the illumination unit is driven according to the light distribution corrected by the correction unit to illuminate each of the plurality of regions. It is a symbol recognition device including a light driving means.

本発明の第2の視点は、前記シンボル認識装置の制御プログラムである。   A second aspect of the present invention is a control program for the symbol recognition apparatus.

かかる手段を講じた本発明によれば、二次元シンボルを最適な光量で照明でき、効率的に二次元シンボルを認識するシンボル認識装置を提供することができる。   According to the present invention in which such a measure is taken, it is possible to provide a symbol recognition device that can illuminate a two-dimensional symbol with an optimum light amount and efficiently recognizes the two-dimensional symbol.

本発明の一実施形態におけるシンボル認識装置の使用状態を示す図。The figure which shows the use condition of the symbol recognition apparatus in one Embodiment of this invention. 同シンボル認識装置の要部構成を示すブロック図。The block diagram which shows the principal part structure of the symbol recognition apparatus. 同シンボル認識装置が扱う画像データの分割例を示す図。The figure which shows the example of a division | segmentation of the image data which the symbol recognition apparatus handles. 図1に示したシンボル認識装置のA−A断面を示す概略図。Schematic which shows the AA cross section of the symbol recognition apparatus shown in FIG. 図1に示したシンボル認識装置のB−B断面を示す概略図。Schematic which shows the BB cross section of the symbol recognition apparatus shown in FIG. 同シンボル認識装置がQRコードを認識する手順を示すフローチャート。The flowchart which shows the procedure in which the symbol recognition apparatus recognizes QR code. 同シンボル認識装置が各LED光源の通電時間を補正する手順を説明するための図。The figure for demonstrating the procedure in which the symbol recognition apparatus correct | amends the energization time of each LED light source. 同シンボル認識装置によるLED光源の制御例を説明するための図。The figure for demonstrating the example of control of the LED light source by the symbol recognition apparatus. 同シンボル認識装置によるLED光源の制御例を説明するための図。The figure for demonstrating the example of control of the LED light source by the symbol recognition apparatus. 同シンボル認識装置によるLED光源の制御例を説明するための図。The figure for demonstrating the example of control of the LED light source by the symbol recognition apparatus.

以下、本発明の一実施形態について、図面を参照しながら説明する。
なお、この実施形態は、QRコードを読み取るスキャナであるシンボル認識装置に本発明を適用した一例である。
Hereinafter, an embodiment of the present invention will be described with reference to the drawings.
This embodiment is an example in which the present invention is applied to a symbol recognition apparatus that is a scanner that reads a QR code.

図1は、シンボル認識装置1の使用状態を示す模式図である。シンボル認識装置1は、情報処理端末2の側面に設けられている。情報処理端末2は、例えば小売店等でチェックアウト業務に使用されるPOS(Point Of Sales)端末や、POS端末に接続されてレジカウンタ上に設けられる商品情報の登録装置等である。   FIG. 1 is a schematic diagram showing a usage state of the symbol recognition device 1. The symbol recognition device 1 is provided on the side surface of the information processing terminal 2. The information processing terminal 2 is, for example, a POS (Point Of Sales) terminal used for a checkout operation at a retail store or the like, or a product information registration device provided on a cash register counter connected to the POS terminal.

シンボル認識装置1は、直方体状のケース10に、光透過性のガラス部材11を嵌め込んで形成されている。このガラス部材11に被写体3に付されたQRコード4を翳すと、シンボル認識装置1がQRコード4を認識し、QRコード4にて示される情報を情報処理端末2の制御回路に入力する。情報処理端末2は、シンボル認識装置1から入力された情報を用いて所定の情報処理を行う。   The symbol recognition device 1 is formed by fitting a light-transmissive glass member 11 into a rectangular parallelepiped case 10. When the QR code 4 attached to the subject 3 is put on the glass member 11, the symbol recognition device 1 recognizes the QR code 4 and inputs information indicated by the QR code 4 to the control circuit of the information processing terminal 2. . The information processing terminal 2 performs predetermined information processing using information input from the symbol recognition device 1.

図2は、シンボル認識装置1の要部構成を示すブロック図である。シンボル認識装置1は、メイン制御ボード20と、光源30と、レンズ31と、イメージセンサ32と、デコーダ33とを備えている。   FIG. 2 is a block diagram showing a main configuration of the symbol recognition apparatus 1. The symbol recognition device 1 includes a main control board 20, a light source 30, a lens 31, an image sensor 32, and a decoder 33.

前記光源30は、本実施形態における照明手段として機能するものであり、ガラス部材11に翳された被写体3を部分的に照明する4つのLED光源101〜104にて構成されている。   The light source 30 functions as an illuminating unit in the present embodiment, and is composed of four LED light sources 101 to 104 that partially illuminate the subject 3 covered with the glass member 11.

前記メイン制御ボード20は、CPU(Central Processing Unit),ROM(Read Only Memory)及びRAM(Random Access Memory)等で構成された制御部21と、光源駆動回路22と、階調計測部23と、配光記憶部24とを備えている。   The main control board 20 includes a control unit 21 including a CPU (Central Processing Unit), a ROM (Read Only Memory), a RAM (Random Access Memory), and the like, a light source driving circuit 22, a gradation measuring unit 23, And a light distribution storage unit 24.

前記光源駆動回路22は、本実施形態における照明駆動手段として機能するものであり、LED光源101〜104の点灯/消灯をそれぞれ独立して制御する。特に本実施形態では、各LED光源101〜104への通電時間を選択的に変化させることで被写体への配光量を調整する。   The light source driving circuit 22 functions as an illumination driving unit in the present embodiment, and controls lighting / extinguishing of the LED light sources 101 to 104 independently. In particular, in this embodiment, the light distribution to the subject is adjusted by selectively changing the energization time to each of the LED light sources 101-104.

前記レンズ31は、光源30から照射され、被写体3に反射して戻る反射光をイメージセンサ32に結像させる。   The lens 31 causes the image sensor 32 to form an image of the reflected light that is irradiated from the light source 30 and reflected back to the subject 3.

前記イメージセンサ32は、本実施形態における撮像手段として機能するものであり、CCD(Charge Coupled Diode)やCMOS(Complementary Metal-Oxide Semiconductor)等の撮像素子により構成され、レンズ31によって結像された光学像を光電変換することにより多階調の画像データDを生成する。生成された画像データDは、デコーダ33及び制御部21に出力される。   The image sensor 32 functions as an image pickup unit in the present embodiment, and is configured by an image pickup device such as a charge coupled diode (CCD) or a complementary metal-oxide semiconductor (CMOS), and is an optical image formed by the lens 31. Multi-tone image data D is generated by photoelectrically converting the image. The generated image data D is output to the decoder 33 and the control unit 21.

デコーダ33は、本実施形態におけるデコード手段として機能するものであり、イメージセンサ32から入力された画像データDに含まれるQRコード4をデコードする。さらに、デコーダ33は、QRコード4のデコードに成功したならばデコードしたデータを情報処理端末2に出力し、QRコード4のデコードに失敗したならばその旨及びデコードの過程で検出できた切り出しシンボルの数を制御部21に通知する。   The decoder 33 functions as a decoding unit in the present embodiment, and decodes the QR code 4 included in the image data D input from the image sensor 32. Further, the decoder 33 outputs the decoded data to the information processing terminal 2 if the decoding of the QR code 4 is successful, and if the decoding of the QR code 4 fails, that effect and the cut-out symbol detected in the decoding process Is notified to the control unit 21.

デコーダ33によるQRコード4のデコードは、QRコードの特徴を利用して次のように行われる。
QRコード4は、縦横に並ぶ白黒のセルにて構成されており、3隅に設けられた位置決定用シンボルである切り出しシンボル(図2に示したM)を有している。QRコード4をデコードする際には、先ずこの切り出しシンボルを検出する。各切り出しシンボルは、走査方向によらない特定の比率(例えば、黒1:白1:黒3:白1:黒1)のパターンである。したがって、画像データDからこの特定の比率を検出すれば、各切り出しシンボルを検出することができる。これら切り出しシンボルを検出すると、QRコード4の位置,大きさ,傾きを決定し、画像データDの背景からQRコード4部分を切り出す。そして、QRコード4を構成する各セルの中心位置を求め、QRコード4のビットマトリクスを得る。また、QRコード4は、リード・ソロモン符号等を用いた誤り検出・訂正用のビットパターンが含まれており、このビットパターンを用いた周知の手順により、誤り検出・訂正が可能である。
The decoding of the QR code 4 by the decoder 33 is performed as follows using the characteristics of the QR code.
The QR code 4 is composed of black and white cells arranged vertically and horizontally, and has cutout symbols (M shown in FIG. 2) which are position determination symbols provided at three corners. When decoding the QR code 4, first, this cut-out symbol is detected. Each cut-out symbol is a pattern having a specific ratio (for example, black 1: white 1: black 3: white 1: black 1) independent of the scanning direction. Therefore, if this specific ratio is detected from the image data D, each cut-out symbol can be detected. When these cut-out symbols are detected, the position, size, and inclination of the QR code 4 are determined, and the QR code 4 portion is cut out from the background of the image data D. Then, the center position of each cell constituting the QR code 4 is obtained, and a bit matrix of the QR code 4 is obtained. The QR code 4 includes a bit pattern for error detection / correction using a Reed-Solomon code or the like. Error detection / correction can be performed by a known procedure using this bit pattern.

前記階調計測部23は、本実施形態における階調計測手段として機能するものであり、イメージセンサ32から制御部21を介して入力される画像データDを予め定められた複数のエリアに分割し、各エリアの平均階調(階調情報)を算出する。算出した各エリアの平均階調は、制御部21及び配光記憶部24に出力される。本実施形態においては、図3に示したように画像データDを、LED光源101が照明するエリア101aと、LED光源102が照明するエリア102aと、LED光源103が照明するエリア103aと、LED光源104が照明するエリア104aとに分割し、各エリア101a〜104aの平均階調を階調計測部23が算出する。   The gradation measuring unit 23 functions as a gradation measuring unit in the present embodiment, and divides the image data D input from the image sensor 32 via the control unit 21 into a plurality of predetermined areas. The average gradation (gradation information) of each area is calculated. The calculated average gradation of each area is output to the control unit 21 and the light distribution storage unit 24. In the present embodiment, as shown in FIG. 3, the image data D is converted into an area 101a illuminated by the LED light source 101, an area 102a illuminated by the LED light source 102, an area 103a illuminated by the LED light source 103, and an LED light source. The gradation measurement unit 23 calculates the average gradation of each of the areas 101a to 104a.

配光記憶部24は、制御部21から出力される各LED光源101〜104の通電時間を記憶する。   The light distribution storage unit 24 stores energization times of the LED light sources 101 to 104 output from the control unit 21.

前記制御部21は、シンボル認識装置1の制御回路を構成する各部を制御する。また、制御部21は、ソフトウェアを用いた情報処理により、本実施形態における補正手段としての機能を実現する。すなわち、階調計測部23により計測されたエリア101a〜104aの平均階調に基づいて、光源30がエリア101a〜104aのそれぞれを照明する配光量を補正する。このとき、エリア101a〜104aの平均階調の差分量が小さくなるように、エリア101a〜104aのそれぞれを照明する配光量を補正する。配光量は、各LED光源101〜104への通電時間を調整することで補正される。   The control unit 21 controls each unit constituting the control circuit of the symbol recognition device 1. Moreover, the control part 21 implement | achieves the function as a correction | amendment means in this embodiment by the information processing using software. That is, based on the average gradation of the areas 101a to 104a measured by the gradation measuring unit 23, the light distribution that the light source 30 illuminates each of the areas 101a to 104a is corrected. At this time, the light distribution for illuminating each of the areas 101a to 104a is corrected so that the difference in average gradation of the areas 101a to 104a is small. The light distribution is corrected by adjusting the energization time to each of the LED light sources 101-104.

図4は、図1に示したシンボル認識装置1のA−A断面を示す概略図であり、図5は、図1に示したシンボル認識装置1のB−B断面を示す概略図である。
図4に示したように、トップカバー12とボトムカバー13とによって前記ケース10が形成され、このケース10に前記メイン制御ボード20,前記光源30,前記レンズ31,前記イメージセンサ32,及び前記デコーダ33が収納されている。
4 is a schematic diagram showing an AA section of the symbol recognition apparatus 1 shown in FIG. 1, and FIG. 5 is a schematic diagram showing a BB section of the symbol recognition apparatus 1 shown in FIG.
As shown in FIG. 4, the case 10 is formed by the top cover 12 and the bottom cover 13, and the main control board 20, the light source 30, the lens 31, the image sensor 32, and the decoder are formed in the case 10. 33 is stored.

トップカバー12の天面12aには、縁を矩形とする擂鉢状の凹部12bが形成されている。ガラス部材11は、天面12aの凹部12bを塞ぎ、かつ天面12aと面一となるように、トップカバー12に嵌め込まれている。レンズ31は、その中心軸がトップカバー12の凹部12bの中心を通るように、イメージセンサ32に固定されている。   On the top surface 12a of the top cover 12, a bowl-shaped recess 12b having a rectangular edge is formed. The glass member 11 is fitted into the top cover 12 so as to close the recess 12b of the top surface 12a and be flush with the top surface 12a. The lens 31 is fixed to the image sensor 32 so that its central axis passes through the center of the recess 12 b of the top cover 12.

メイン制御ボード20は、ガラス部材11とレンズ31との間に設けられている。メイン制御ボード20には、被写体像がレンズ31に届くように、レンズ31の中心軸の延長線を中心とした円形の開口部20aが形成されている。   The main control board 20 is provided between the glass member 11 and the lens 31. The main control board 20 is formed with a circular opening 20 a centered on an extension line of the central axis of the lens 31 so that the subject image reaches the lens 31.

LED光源101〜104は、調整可能な光量幅を広く確保するために、それぞれ2つのLEDで構成されている。LED光源101は開口部20aの左側上部に、LED光源102は開口部20aの左側下部に、LED光源103は開口部20aの右側上部に、LED光源104は開口部20aの右側下部にそれぞれ位置決めされて、メイン制御ボード20に固定されている。   The LED light sources 101 to 104 are each composed of two LEDs in order to ensure a wide adjustable light amount width. The LED light source 101 is positioned on the upper left side of the opening 20a, the LED light source 102 is positioned on the lower left side of the opening 20a, the LED light source 103 is positioned on the upper right side of the opening 20a, and the LED light source 104 is positioned on the lower right side of the opening 20a. The main control board 20 is fixed.

次に、シンボル認識装置1の動作について説明する。
図6は、シンボル認識装置1がQRコードを認識する手順を示すフローチャートである。
情報処理端末2からシンボル認識装置1に撮像開始のコマンドが入力されると、先ず制御部21が配光記憶部24に記憶された各LED光源101〜104への通電時間をデフォルト(通電時間t ms)にリセットする(ステップS1)。さらに、制御部21が光源駆動回路22に照明開始を指示するとともに、イメージセンサ32に被写体の撮像を指示する。
Next, the operation of the symbol recognition device 1 will be described.
FIG. 6 is a flowchart illustrating a procedure in which the symbol recognition apparatus 1 recognizes a QR code.
When a command to start imaging is input from the information processing terminal 2 to the symbol recognition device 1, first, the control unit 21 defaults the energization time to each of the LED light sources 101 to 104 stored in the light distribution storage unit 24 (energization time t ms) (step S1). Further, the control unit 21 instructs the light source driving circuit 22 to start illumination, and instructs the image sensor 32 to image the subject.

制御部21から照明開始の指示を受けた光源駆動回路22は、配光記憶部24に記憶された各LED光源101〜104の通電時間に従って各LED光源101〜104を駆動し、被写体を照明する。LED光源101〜104が被写体を照明したことに同期して、イメージセンサ32がレンズ31によって結像された前記照明の反射光を光電変換し、画像データDを生成して制御部21及びデコーダ33に出力する(ステップS2)。デコーダ33は、イメージセンサ32から出力された画像データDに含まれるQRコードのデコードを試みる(ステップS3)。   The light source drive circuit 22 that has received an instruction to start illumination from the control unit 21 drives the LED light sources 101 to 104 according to the energization times of the LED light sources 101 to 104 stored in the light distribution storage unit 24 to illuminate the subject. . In synchronization with the LED light sources 101 to 104 illuminating the subject, the image sensor 32 photoelectrically converts the reflected light of the illumination imaged by the lens 31 to generate image data D to generate the control unit 21 and the decoder 33. (Step S2). The decoder 33 tries to decode the QR code included in the image data D output from the image sensor 32 (step S3).

デコーダ33がQRコードのデコードに成功すると、デコードした情報を情報処理端末2に出力するとともに、制御部21にデコードの成功を通知する。情報処理端末2は、シンボル認識装置1から出力された情報を用いて既定の情報処理を行う。デコードの成功が制御部21に通知されたとき(ステップS4のYes)、制御部21は、配光記憶部24に記憶された各LED光源101〜104の通電時間をデフォルトにリセットする(ステップS1)。その後、次にガラス部材11に翳される被写体のイメージセンサ32による撮像及び撮像された画像に含まれるQRコードのデコーダ33によるデコード等が繰り返される(ステップS2,S3等)。   When the decoder 33 successfully decodes the QR code, the decoder 33 outputs the decoded information to the information processing terminal 2 and notifies the control unit 21 of the decoding success. The information processing terminal 2 performs predetermined information processing using the information output from the symbol recognition device 1. When the control unit 21 is notified of the success of decoding (Yes in step S4), the control unit 21 resets the energization times of the LED light sources 101 to 104 stored in the light distribution storage unit 24 to default (step S1). ). Thereafter, the image picked up by the image sensor 32 of the subject next to be struck by the glass member 11 and the decoding by the decoder 33 of the QR code included in the picked up image are repeated (steps S2, S3, etc.).

一方、デコーダ33は、QRコード4のデコードに失敗すると(ステップS4のNo)、その旨及びQRコードをデコードする過程で検出に成功した切り出しシンボルの数を、制御部21に通知する。この通知を受けた制御部21は、デコーダ33からの通知に基づいて切り出しシンボルの検出数を判定する(ステップS5)。   On the other hand, if the decoding of the QR code 4 fails (No in step S4), the decoder 33 notifies the control unit 21 of that fact and the number of cut-out symbols that have been successfully detected in the process of decoding the QR code. Upon receiving this notification, the control unit 21 determines the number of cut-out symbols detected based on the notification from the decoder 33 (step S5).

デコーダ33が切り出しシンボルを1つも検出していないならば(ステップS5の“検出数0”)、QRコードが読取位置に翳されていないこと等が想定される。このような場合には、LED光源101〜104の光量を調整する必要が少ない。したがって、制御部21は、配光記憶部24に記憶された各LED光源101〜104の通電時間を全てデフォルトに設定する(ステップS1)。その後、光源駆動回路22によるLED光源101〜104の駆動、イメージセンサ32による被写体3の撮像及びデコーダ33によるQRコードのデコード等が繰り返される(ステップS2,S3等)。   If the decoder 33 has not detected any cutout symbols (“detection number 0” in step S5), it is assumed that the QR code has not been placed at the reading position. In such a case, there is little need to adjust the light quantity of the LED light sources 101-104. Therefore, the control part 21 sets all the energization time of each LED light source 101-104 memorize | stored in the light distribution memory | storage part 24 to default (step S1). Thereafter, the driving of the LED light sources 101 to 104 by the light source driving circuit 22, the imaging of the subject 3 by the image sensor 32, the decoding of the QR code by the decoder 33, etc. are repeated (steps S2, S3, etc.).

一方、デコーダ33が切り出しシンボルを3つ全て検出しているならば(ステップS5の“検出数3”)、現在のLED光源101〜104の光量にてQRコードの認識が可能であるが、QRコードの一部が操作者の指で隠されていたり極度に歪曲してる等の理由で、QRコードの全体を認識することができていないことが想定される。このような場合には、各LED光源101〜104の光量を調整する必要が少ない。したがって、制御部21は、配光記憶部24に記憶された各LED光源101〜104の通電時間を変更しない。その後、イメージセンサ32による被写体の撮像及びデコーダ33によるQRコードのデコード等が繰り返される(ステップS2,S3等)。   On the other hand, if the decoder 33 has detected all three cut-out symbols (“detection number 3” in step S5), the QR code can be recognized with the current light amounts of the LED light sources 101 to 104. It is assumed that the entire QR code cannot be recognized because a part of the code is hidden by an operator's finger or extremely distorted. In such a case, there is little need to adjust the light quantity of each LED light source 101-104. Therefore, the control unit 21 does not change the energization time of the LED light sources 101 to 104 stored in the light distribution storage unit 24. Thereafter, the imaging of the subject by the image sensor 32 and the decoding of the QR code by the decoder 33 are repeated (steps S2, S3, etc.).

一方、デコーダ33が1つ又は2つの切り出しシンボルを検出しているならば(ステップS5の“検出数1or2”)、被写体がガラス部材11に対して傾けられた状態で翳されている等の理由により、QRコードの一部が十分に照明されていないこと等が想定される。このような場合には、各LED光源101〜104の光量を調整する必要がある。したがって、制御部21は、画像データDを階調計測部23に出力し、画像データD中のエリア101aの平均階調G1、エリア102aの平均階調G2、エリア103aの平均階調G3、及びエリア104aの平均階調G4を計測させる(ステップS6)。   On the other hand, if the decoder 33 detects one or two cutout symbols (“detection number 1 or 2” in step S5), the reason is that the subject is deceived while being tilted with respect to the glass member 11 or the like. Therefore, it is assumed that a part of the QR code is not sufficiently illuminated. In such a case, it is necessary to adjust the light quantity of each LED light source 101-104. Therefore, the control unit 21 outputs the image data D to the gradation measuring unit 23, and the average gradation G1 of the area 101a, the average gradation G2 of the area 102a, the average gradation G3 of the area 103a in the image data D, and The average gradation G4 of the area 104a is measured (step S6).

しかる後、制御部21は、階調計測部23により計測された平均階調G1〜G4に基づいて、各LED光源101〜104への通電時間を補正する(ステップS7)。制御部21によって補正された各LED光源101〜104の通電時間は、配光記憶部24に記憶される。かくして新たな通電時間が配光記憶部24に設定された後、光源駆動回路22が変更後の通電時間にて各LED光源101〜104を駆動し、イメージセンサ32による被写体の撮像及びデコーダ33によるQRコードのデコード等が繰り返される(ステップS2,S3等)。   Thereafter, the control unit 21 corrects the energization time to each of the LED light sources 101 to 104 based on the average gradations G1 to G4 measured by the gradation measuring unit 23 (step S7). The energization times of the LED light sources 101 to 104 corrected by the control unit 21 are stored in the light distribution storage unit 24. Thus, after a new energization time is set in the light distribution storage unit 24, the light source drive circuit 22 drives the LED light sources 101 to 104 with the energization time after the change. QR code decoding and the like are repeated (steps S2, S3, etc.).

続いて、ステップS7の処理における各LED光源101〜104の光量の補正手順について、図7を用いて説明する。
制御部21を構成するROM等には、各平均階調G1〜G4の差分量に基づいて通電時間を算出するための比例関数Fが記憶されている。この関数は、例えば差分量の最大値Gmax〜最小値Gminの範囲内で、階調差分量の増大に伴い通電時間が減少する1次関数である。
Next, the procedure for correcting the light amount of each LED light source 101 to 104 in the process of step S7 will be described with reference to FIG.
A ROM or the like constituting the control unit 21 stores a proportional function F for calculating the energization time based on the difference amounts of the respective average gradations G1 to G4. This function is a linear function in which the energization time decreases as the gradation difference amount increases, for example, within the range of the maximum value Gmax to the minimum value Gmin of the difference amount.

各LED光源101〜104の光量レベルを決定するに当たって、先ず各平均階調G1〜G4の中からデコーダ33により正常にデコード可能な階調の範囲の中間値に最も近い1つを基準値として選定し、選定した基準値と他の平均階調との差分量を算出する。そして、算出された各差分量に対応する通電時間を前記関数Fに基づいて算定する。このように算定した通電時間を、各差分量の算出に用いた平均階調のうちの前記基準値でない一方のエリアを照明するLED光源の通電時間として決定する。前記基準値として選定された平均階調に対するエリアの光量は変更する必要が少ないので、当該エリアを照明するLED光源の通電時間は、現在配光記憶部24に記憶されている通電時間に決定する。かくして決定された各LED光源101〜104の通電時間にて、配光記憶部24に記憶された各LED光源101〜104の通電時間が補正される。このとき、基準値として選定された平均階調と他の平均階調との差分量が小さくなる。   In determining the light intensity level of each of the LED light sources 101 to 104, first, one of the average gradations G1 to G4 that is closest to the intermediate value of the gradation range that can be normally decoded by the decoder 33 is selected as a reference value. Then, a difference amount between the selected reference value and another average gradation is calculated. Then, the energization time corresponding to each calculated difference amount is calculated based on the function F. The energization time calculated in this way is determined as the energization time of the LED light source that illuminates one area that is not the reference value among the average gradations used for calculating the difference amounts. Since there is little need to change the light amount of the area with respect to the average gradation selected as the reference value, the energization time of the LED light source that illuminates the area is determined as the energization time currently stored in the light distribution storage unit 24. . The energization times of the LED light sources 101 to 104 stored in the light distribution storage unit 24 are corrected based on the energization times of the LED light sources 101 to 104 thus determined. At this time, the difference amount between the average gradation selected as the reference value and the other average gradation is reduced.

通常、平均階調が低いエリアは光源の光量が不足しており、平均階調が高いエリアは光源の光量が過剰である。上記のように平均階調の差分量が小さくなるように各LED光源101〜104の光量を決定すれば、基準値とした平均階調よりも階調が低いエリアに対して長い通電時間が設定され、基準値とした平均階調よりも階調が高いエリアに対して短い通電時間が設定されるので、光量の不足又は過剰が解消される。   Usually, the light quantity of the light source is insufficient in the area where the average gradation is low, and the light quantity of the light source is excessive in the area where the average gradation is high. If the light quantity of each of the LED light sources 101 to 104 is determined so that the difference amount of the average gradation becomes small as described above, a long energization time is set for an area whose gradation is lower than the average gradation as the reference value. In addition, since a short energization time is set for an area whose gradation is higher than the average gradation as the reference value, the shortage or excess of the light amount is resolved.

上記のような方法で通電時間を補正した場合における、各LED光源101〜104の制御例を図8,図9及び図10に示している。
図8の例では、被写体の被読取面が、エリア101a,102a側がガラス部材11に近接し、エリア103a,104a側がガラス部材11から離間した状態で傾いている。その結果、エリア101a,102aを照明する光量は適度であるが、エリア103a,104aを照明する光量は不足している。この状態において上記のような手順で通電時間を補正した結果、エリア101a,102aを照明するLED光源101,102の通電時間がデフォルトのt msに補正され、エリア103a,104aを照明するLED光源103,104の通電時間がデフォルトよりも長いt1 ms(t1>t)に補正されたとする。
Control examples of the respective LED light sources 101 to 104 when the energization time is corrected by the method as described above are shown in FIG. 8, FIG. 9 and FIG.
In the example of FIG. 8, the read surface of the subject is inclined with the areas 101 a and 102 a side close to the glass member 11 and the areas 103 a and 104 a side being separated from the glass member 11. As a result, the amount of light that illuminates the areas 101a and 102a is moderate, but the amount of light that illuminates the areas 103a and 104a is insufficient. In this state, as a result of correcting the energization time by the procedure as described above, the energization time of the LED light sources 101 and 102 that illuminate the areas 101a and 102a is corrected to the default t ms, and the LED light source 103 that illuminates the areas 103a and 104a. , 104 is corrected to t1 ms (t1> t), which is longer than the default.

この場合、光源駆動回路22は、被写体の撮像時に各LED光源101〜104に通電を開始した後、LED光源101,102については時間t msが経過するまで通電を継続し、LED光源103,104については時間t1 msが経過するまで通電を継続する。このようにLED光源103,104への通電時間を増大させることで、エリア103a,104aをより明るく照明することができる。   In this case, the light source driving circuit 22 starts energizing each of the LED light sources 101 to 104 during imaging of the subject, and then continues energizing the LED light sources 101 and 102 until the time t ms elapses. For, energization is continued until time t1 ms elapses. Thus, by increasing the energization time to the LED light sources 103 and 104, the areas 103a and 104a can be illuminated more brightly.

図9の例では、被写体の被読取面が、エリア103a側がガラス部材11に最も近接し、エリア102a側がガラス部材11から最も離間した状態で傾いている。その結果、エリア103aを照明する光量は適度であるが、エリア101a,104aを照明する光量はやや不足しており、エリア102aを照明する光量はエリア101a,104aを照明する光量以上に不足している。この状態において上記のような手順で光量レベルを補正した結果、エリア103aを照明するLED光源103の通電時間がデフォルトのt msに補正され、エリア101a,104aを照明するLED光源101,104の通電時間がデフォルトよりも長いt2 ms(t2>t)に補正され、エリア102aを照明するLED光源102の通電時間がt2 msよりもさらに長いt3 ms(t3>t2)に補正されたとする。   In the example of FIG. 9, the surface to be read of the subject is inclined with the area 103 a side closest to the glass member 11 and the area 102 a side being the farthest away from the glass member 11. As a result, the amount of light that illuminates the area 103a is moderate, but the amount of light that illuminates the areas 101a and 104a is slightly insufficient, and the amount of light that illuminates the area 102a is insufficient to exceed the amount of light that illuminates the areas 101a and 104a. Yes. In this state, as a result of correcting the light amount level by the procedure as described above, the energization time of the LED light source 103 that illuminates the area 103a is corrected to the default t ms, and the energization of the LED light sources 101 and 104 that illuminate the areas 101a and 104a. It is assumed that the time is corrected to t2 ms (t2> t) longer than the default, and the energization time of the LED light source 102 that illuminates the area 102a is corrected to t3 ms (t3> t2) longer than t2 ms.

この場合、光源駆動回路22は、被写体の撮像時に各LED光源101〜104に通電を開始した後、LED光源101,104については時間t2 msが経過するまで通電を継続し、LED光源102については時間t3 msが経過するまで通電を継続し、LED光源103については時間t msが経過するまで通電を継続する。このようにLED光源101,102,104への通電時間を増大させることで、エリア101a,102a,104aをより明るく照明することができる。   In this case, the light source driving circuit 22 starts energizing the LED light sources 101 to 104 during imaging of the subject, and then continues energizing the LED light sources 101 and 104 until time t2 ms elapses. The energization is continued until time t3 ms elapses, and the LED light source 103 is energized until time t ms elapses. Thus, by increasing the energization time to the LED light sources 101, 102, 104, the areas 101a, 102a, 104a can be illuminated more brightly.

図10の例では、被写体の被読取面が、エリア101a,102a側がガラス部材11に近接し、エリア103a,104a側がガラス部材11から離間した状態で傾いている。そして、外光の影響を受けてエリア103a付近が過度に照明されている。その結果、エリア102aを照明する光量は適度であるが、エリア101a,104aを照明する光量はやや過剰であり、エリア103aを照明する光量はエリア101a,104aを照明する光量以上に過剰である。この状態において上記のような手順で通電時間を補正した結果、エリア102aを照明するLED光源102の通電時間がデフォルトのt msに補正され、エリア101a,104aを照明するLED光源101,104の通電時間がデフォルトよりも短いt4 ms(t4<t)に補正され、エリア103aを照明するLED光源103の通電時間が通電時間t4 msよりもさらに短いt5 ms(t5<t4)に補正されたとする。   In the example of FIG. 10, the read surface of the subject is inclined with the areas 101 a and 102 a side close to the glass member 11 and the areas 103 a and 104 a side being separated from the glass member 11. And the area 103a vicinity is excessively illuminated under the influence of external light. As a result, the amount of light that illuminates the area 102a is moderate, but the amount of light that illuminates the areas 101a and 104a is slightly excessive, and the amount of light that illuminates the area 103a is more than the amount of light that illuminates the areas 101a and 104a. In this state, as a result of correcting the energization time by the procedure as described above, the energization time of the LED light source 102 that illuminates the area 102a is corrected to the default tms, and the energization of the LED light sources 101 and 104 that illuminate the areas 101a and 104a. It is assumed that the time is corrected to t4 ms (t4 <t) shorter than the default, and the energization time of the LED light source 103 that illuminates the area 103a is corrected to t5 ms (t5 <t4), which is shorter than the energization time t4 ms.

この場合、光源駆動回路22は、被写体の撮像時に各LED光源101〜104に通電を開始した後、LED光源102については時間t msが経過するまで通電を継続し、LED光源101,104については時間t4 msが経過するまで通電を継続し、LED光源103については時間t5 msが経過するまで通電を継続する。このようにLED光源101,103,104への通電時間を短縮することで、エリア101a,103a,104aをより暗く照明することができる。   In this case, the light source driving circuit 22 starts energizing each of the LED light sources 101 to 104 during imaging of the subject, and then continues energizing the LED light source 102 until time t ms elapses, and the LED light sources 101 and 104 are energized. The energization is continued until time t4 ms elapses, and the LED light source 103 is energized until time t5 ms elapses. Thus, by shortening the energization time to the LED light sources 101, 103, 104, the areas 101a, 103a, 104a can be illuminated more darkly.

以上説明したように、本実施形態に係るシンボル認識装置1は、被写体を複数のエリアに分けて部分的に照明する。そして、デコーダ33がQRコードをデコードできなかった場合、画像データD中の各エリアの平均階調に基づいて各エリアの配光量(通電時間)を調整する。このようにすることで、被写体を最適な光量で照明でき、効率的にQRコードを認識することができる。   As described above, the symbol recognition device 1 according to the present embodiment illuminates a subject by dividing the subject into a plurality of areas. When the decoder 33 cannot decode the QR code, the light distribution amount (energization time) of each area is adjusted based on the average gradation of each area in the image data D. In this way, the subject can be illuminated with the optimum amount of light, and the QR code can be recognized efficiently.

また、本実施形態に係るシンボル認識装置1は、QRコードが有する切り出しシンボルのデコーダ33による検出数を用いて、各LED光源101〜104の通電時間を変更するか否かを判定している。このように制御することで、QRコードの特性を踏まえた最適な配光量を決定できる。   Moreover, the symbol recognition apparatus 1 according to the present embodiment determines whether or not to change the energization time of each of the LED light sources 101 to 104 using the number of detections by the decoder 33 of the cut-out symbol included in the QR code. By controlling in this way, it is possible to determine the optimal light distribution based on the characteristics of the QR code.

なお、本発明は前記実施形態に開示した内容そのままに限定されるものではなく、実施段階ではその要旨を逸脱しない範囲で構成要素を変形して具体化できる。   Note that the present invention is not limited to the contents disclosed in the above-described embodiments as they are, and can be embodied by modifying the components without departing from the scope of the invention in the implementation stage.

例えば、前記実施形態では、QRコードの認識に特化したシンボル認識装置に本発明を適用した場合について説明した。しかしながら、データマトリクス(Data Matrix),PDF417,マキシコード(Maxi Code)等の他の形式の二次元シンボルを認識するシンボル認識装置に本発明を適用してもよい。その場合には、各二次元シンボルの特性に応じてステップS5の処理等を変更すればよい。   For example, in the above embodiment, the case where the present invention is applied to a symbol recognition apparatus specialized for QR code recognition has been described. However, the present invention may be applied to a symbol recognition apparatus that recognizes other types of two-dimensional symbols such as a data matrix, PDF 417, and maxi code. In that case, what is necessary is just to change the process of step S5 etc. according to the characteristic of each two-dimensional symbol.

また、前記実施形態では、縦横の二次元に設定された4つのエリアをLED光源101〜104で照明する場合について説明した。しかしながら、より少数或いは多数のLED光源を用いて被写体を照明し、各LED光源への通電時間を制御してもよい。また、LED以外の光源を採用し、通電時間に変えて光源に供給する電圧等を調整することで、各エリアの配光量を制御してもよい。   Moreover, in the said embodiment, the case where the four light sources 101-104 illuminate the four areas set to the vertical and horizontal two dimensions was demonstrated. However, a subject may be illuminated using a smaller or larger number of LED light sources, and the energization time of each LED light source may be controlled. Moreover, you may control the light distribution amount of each area by employ | adopting light sources other than LED and adjusting the voltage etc. which are supplied to a light source instead of energization time.

また、前記実施形態では、各LED光源101〜104の配光量(通電時間)を、各エリア101a〜104aの平均階調G1〜G4の差分量と関数Fとを用いて決定するとして説明した。しかしながら、関数Fに代えて平均階調の差分量毎にLED光源への通電時間を関連付けたテーブルを用いる等して、平均階調G1〜G4の差分量に比例する各LED光源101〜104の通電時間を算出してもよい。   Moreover, in the said embodiment, the light distribution amount (energization time) of each LED light source 101-104 was demonstrated using the difference amount of the average gradation G1-G4 of each area 101a-104a, and the function F. However, instead of the function F, by using a table in which the energization time to the LED light source is associated with each difference amount of the average gradation, the LED light sources 101 to 104 that are proportional to the difference amount of the average gradations G1 to G4 are used. The energization time may be calculated.

この他、前記実施形態に開示されている複数の構成要素の適宜な組み合わせにより、種々の発明を形成できる。例えば、前記実施形態に示される全構成要素から幾つかの構成要素を削除してもよい。さらに、要旨を逸脱しない範囲内で前記実施形態に示される全構成要素に周知技術や慣用技術を組み合わせてもよい。   In addition, various inventions can be formed by appropriately combining a plurality of constituent elements disclosed in the embodiment. For example, you may delete some components from all the components shown by the said embodiment. Furthermore, a well-known technique and a common technique may be combined with all the constituent elements shown in the above-described embodiment without departing from the gist.

1…シンボル認識装置、2…情報処理端末、3…被写体、4…QRコード、10…ケース、11…ガラス部材、20…メイン制御ボード、21…制御部、22…光源駆動回路、23…階調計測部、24…配光記憶部、30…光源、31…レンズ、32…イメージセンサ、33…デコーダ、101〜104…LED光源   DESCRIPTION OF SYMBOLS 1 ... Symbol recognition apparatus, 2 ... Information processing terminal, 3 ... Subject, 4 ... QR code, 10 ... Case, 11 ... Glass member, 20 ... Main control board, 21 ... Control part, 22 ... Light source drive circuit, 23 ... Floor Adjustment measuring unit, 24 ... Light distribution storage unit, 30 ... Light source, 31 ... Lens, 32 ... Image sensor, 33 ... Decoder, 101-104 ... LED light source

本発明の第1の視点は、被写体に含まれる二次元シンボルを複数の領域に分け領域別に照明する複数の光源と、前記光源により照明された前記被写体を撮像する撮像と、前記撮像部が撮像した画像データに含まれる二次元シンボルをデコードするデコードと、前記光源の通電時間を記憶する配光記憶部と、前記デコードによるデコードが失敗したとき、前記複数の領域に区分された前記二次元シンボルのうち、前記デコードの過程で検出に成功したシンボルの数を判定し、判定したシンボルの数に基づいて、前記デコードに失敗した前記二次元シンボルの再度のデコードに、前記光源の通電時間の補正が必要であるか否かを判定する判定手段と、前記判定手段において前記通電時間の補正が必要であると判定したとき、前記撮像部が撮像した画像データから、前記光源によって照明される前記複数の領域毎の階調情報を計測する階調計測手段と、前記階調計測手段により計測された前記複数の領域毎の階調情報に基づいて、前記配光記憶部に記憶される通電時間を補正する補正手段と、を備えたシンボル認識装置である。 The first aspect of the present invention includes an imaging unit that captures a plurality of light sources for illumination by region dividing a two-dimensional symbols included in the subject in a plurality of regions, the object illuminated by said light source, said imaging unit A decoding unit that decodes a two-dimensional symbol included in the captured image data, a light distribution storage unit that stores an energization time of the light source, and the decoding unit that is divided into the plurality of regions when decoding by the decoding unit fails Among the two-dimensional symbols, the number of symbols successfully detected in the decoding process is determined, and the light source is energized for re-decoding of the two-dimensional symbol that has failed to be decoded based on the determined number of symbols. determination means for determining whether it is necessary to time the correction, when the correction of the energizing time is determined to be necessary in the determination unit, the imaging unit is shooting From image data, a gradation measurement means for measuring the gradation information of each of the plurality of areas illuminated by the light source, based on the gradation information of each of the plurality of areas measured by the gradation measurement means is a symbol recognition device and a correction means for correcting the current time stored in the light distribution storage unit.

この他、前記実施形態に開示されている複数の構成要素の適宜な組み合わせにより、種々の発明を形成できる。例えば、前記実施形態に示される全構成要素から幾つかの構成要素を削除してもよい。さらに、要旨を逸脱しない範囲内で前記実施形態に示される全構成要素に周知技術や慣用技術を組み合わせてもよい。
本願の出願当初の特許請求の範囲に記載された発明を以下に付記する。
[1]被写体を複数の領域に分けて部分的に照明する照明手段と、この照明手段により照明された前記被写体を撮像し、画像データを生成する撮像手段と、この撮像手段により生成された画像データに含まれる二次元シンボルをデコードするデコード手段と、このデコード手段によるデコードが失敗したとき、前記撮像手段により生成された画像データから、前記照明手段によって照明される前記複数の領域毎の階調情報を計測する階調計測手段と、この階調計測手段により計測された前記複数の領域毎の階調情報に基づいて、前記照明手段が前記複数の領域のそれぞれを照明する配光量を補正する補正手段と、この補正手段により補正された配光量に従って前記照明手段を駆動し、前記複数の領域のそれぞれを照明させる照明駆動手段と、を備えていることを特徴とするシンボル認識装置。
[2]前記補正手段は、前記複数の領域毎の平均階調の差分量が小さくなるように前記複数の領域のそれぞれを照明する配光量を補正することを特徴とする上記[1]に記載のシンボル認識装置。
[3]前記照明手段は、被写体を縦横の二次元に設定された複数のエリアに分割して部分的に照明する複数の光源で構成されていることを特徴とする上記[1]に記載のシンボル認識装置。
[4]前記補正手段は、前記複数の光源への通電時間を変更することで前記配光量を補正し、前記照明駆動手段は、前記補正手段により補正された通電時間従って前記複数の光源に通電することを特徴とする上記[3]に記載のシンボル認識装置。
[5]前記二次元シンボルは、QRコードであることを特徴とする上記[1]に記載のシンボル認識装置。
[6]被写体を複数の領域に分けて部分的に照明する照明部と、この照明部により照明された前記被写体を撮像し、画像データを生成する撮像部と、この撮像部により生成された画像データに含まれる二次元シンボルをデコードするデコード部とを備えたシンボル認識装置の制御プログラムであって、前記デコード部によるデコードが失敗したとき、前記撮像部により生成された画像データから、前記照明部によって照明される前記複数の領域毎の階調情報を計測する階調計測機能と、この階調計測機能により計測された前記複数の領域毎の階調情報に基づいて、前記照明部が前記複数の領域のそれぞれを照明する配光量を補正する補正機能と、この補正機能により補正された配光量に従って前記照明部を駆動し、前記複数の領域のそれぞれを照明させる照明駆動機能と、を実現させるための制御プログラム。
In addition, various inventions can be formed by appropriately combining a plurality of constituent elements disclosed in the embodiment. For example, you may delete some components from all the components shown by the said embodiment. Furthermore, a well-known technique and a common technique may be combined with all the constituent elements shown in the above-described embodiment without departing from the gist.
The invention described in the scope of claims at the beginning of the filing of the present application is appended below.
[1] Illuminating means for partially illuminating the subject into a plurality of regions, imaging means for imaging the subject illuminated by the illuminating means and generating image data, and an image generated by the imaging means Decoding means for decoding a two-dimensional symbol included in the data, and gradation for each of the plurality of areas illuminated by the illumination means from the image data generated by the imaging means when decoding by the decoding means fails Based on gradation information for measuring information and gradation information for each of the plurality of areas measured by the gradation measuring means, the illumination means corrects the light distribution that illuminates each of the plurality of areas. A correction unit; an illumination driving unit configured to drive the illumination unit according to the light distribution corrected by the correction unit and illuminate each of the plurality of regions; Symbol recognition apparatus, characterized in that it comprises.
[2] The correction unit according to [1], wherein the correction unit corrects a light distribution amount that illuminates each of the plurality of regions so that a difference amount of an average gradation for each of the plurality of regions is small. Symbol recognition device.
[3] The above-mentioned [1], wherein the illuminating means is composed of a plurality of light sources that illuminate a subject by dividing the subject into a plurality of vertical and horizontal two-dimensional areas. Symbol recognition device.
[4] The correction unit corrects the light distribution by changing energization time to the plurality of light sources, and the illumination driving unit energizes the plurality of light sources according to the energization time corrected by the correction unit. The symbol recognizing device according to [3] above, wherein:
[5] The symbol recognition apparatus according to [1], wherein the two-dimensional symbol is a QR code.
[6] An illumination unit that illuminates a subject by dividing the subject into a plurality of areas, an imaging unit that captures the subject illuminated by the illumination unit and generates image data, and an image generated by the imaging unit A control program for a symbol recognition device comprising a decoding unit that decodes a two-dimensional symbol included in data, and when the decoding by the decoding unit fails, from the image data generated by the imaging unit, the illumination unit A gradation measurement function for measuring gradation information for each of the plurality of areas illuminated by the plurality of areas, and the illumination unit includes the plurality of illumination units based on the gradation information for each of the plurality of areas measured by the gradation measurement function A correction function for correcting the light distribution for illuminating each of the regions, and the illumination unit is driven according to the light distribution corrected by the correction function, and each of the plurality of regions A control program for realizing the illumination driving function of illuminated, the.

Claims (6)

被写体を複数の領域に分けて部分的に照明する照明手段と、
この照明手段により照明された前記被写体を撮像し、画像データを生成する撮像手段と、
この撮像手段により生成された画像データに含まれる二次元シンボルをデコードするデコード手段と、
このデコード手段によるデコードが失敗したとき、前記撮像手段により生成された画像データから、前記照明手段によって照明される前記複数の領域毎の階調情報を計測する階調計測手段と、
この階調計測手段により計測された前記複数の領域毎の階調情報に基づいて、前記照明手段が前記複数の領域のそれぞれを照明する配光量を補正する補正手段と、
この補正手段により補正された配光量に従って前記照明手段を駆動し、前記複数の領域のそれぞれを照明させる照明駆動手段と、
を備えていることを特徴とするシンボル認識装置。
Illumination means for partially illuminating the subject into a plurality of areas;
Imaging means for imaging the subject illuminated by the illumination means and generating image data;
Decoding means for decoding a two-dimensional symbol included in the image data generated by the imaging means;
A gradation measuring means for measuring gradation information for each of the plurality of regions illuminated by the illumination means from the image data generated by the imaging means when decoding by the decoding means fails;
Based on the gradation information for each of the plurality of areas measured by the gradation measuring means, the correction means for correcting the light distribution that illuminates each of the plurality of areas;
Driving the illumination unit according to the light distribution corrected by the correction unit, and illuminating each of the plurality of regions;
A symbol recognition apparatus comprising:
前記補正手段は、前記複数の領域毎の平均階調の差分量が小さくなるように前記複数の領域のそれぞれを照明する配光量を補正することを特徴とする請求項1に記載のシンボル認識装置。   The symbol recognition apparatus according to claim 1, wherein the correction unit corrects a light distribution amount that illuminates each of the plurality of regions so that a difference amount of an average gradation for each of the plurality of regions is small. . 前記照明手段は、被写体を縦横の二次元に設定された複数のエリアに分割して部分的に照明する複数の光源で構成されていることを特徴とする請求項1に記載のシンボル認識装置。   2. The symbol recognition apparatus according to claim 1, wherein the illuminating unit includes a plurality of light sources that partially illuminate the subject by dividing the subject into a plurality of vertical and horizontal two-dimensional areas. 前記補正手段は、前記複数の光源への通電時間を変更することで前記配光量を補正し、
前記照明駆動手段は、前記補正手段により補正された通電時間従って前記複数の光源に通電することを特徴とする請求項3に記載のシンボル認識装置。
The correction means corrects the light distribution by changing energization time to the plurality of light sources,
4. The symbol recognition apparatus according to claim 3, wherein the illumination driving unit energizes the plurality of light sources according to the energization time corrected by the correction unit.
前記二次元シンボルは、QRコードであることを特徴とする請求項1に記載のシンボル認識装置。   The symbol recognition apparatus according to claim 1, wherein the two-dimensional symbol is a QR code. 被写体を複数の領域に分けて部分的に照明する照明部と、この照明部により照明された前記被写体を撮像し、画像データを生成する撮像部と、この撮像部により生成された画像データに含まれる二次元シンボルをデコードするデコード部とを備えたシンボル認識装置の制御プログラムであって、
前記デコード部によるデコードが失敗したとき、前記撮像部により生成された画像データから、前記照明部によって照明される前記複数の領域毎の階調情報を計測する階調計測機能と、
この階調計測機能により計測された前記複数の領域毎の階調情報に基づいて、前記照明部が前記複数の領域のそれぞれを照明する配光量を補正する補正機能と、
この補正機能により補正された配光量に従って前記照明部を駆動し、前記複数の領域のそれぞれを照明させる照明駆動機能と、
を実現させるための制御プログラム。
Included in the illumination unit that divides the subject into a plurality of regions and partially illuminates, the imaging unit that images the subject illuminated by the illumination unit and generates image data, and the image data generated by the imaging unit A control program for a symbol recognition device comprising a decoding unit for decoding a two-dimensional symbol,
A gradation measuring function for measuring gradation information for each of the plurality of regions illuminated by the illumination unit from image data generated by the imaging unit when decoding by the decoding unit fails;
Based on the gradation information for each of the plurality of areas measured by the gradation measurement function, a correction function for correcting the light distribution by which the illumination unit illuminates each of the plurality of areas;
Driving the illumination unit according to the light distribution corrected by the correction function, and illuminating each of the plurality of regions; and
Control program to realize.
JP2013002489A 2013-01-10 2013-01-10 Symbol recognition apparatus and control program therefor Expired - Fee Related JP5380613B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2013002489A JP5380613B2 (en) 2013-01-10 2013-01-10 Symbol recognition apparatus and control program therefor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2013002489A JP5380613B2 (en) 2013-01-10 2013-01-10 Symbol recognition apparatus and control program therefor

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
JP2009269109A Division JP5183612B2 (en) 2009-11-26 2009-11-26 Symbol recognition apparatus and control program therefor

Publications (2)

Publication Number Publication Date
JP2013061999A true JP2013061999A (en) 2013-04-04
JP5380613B2 JP5380613B2 (en) 2014-01-08

Family

ID=48186538

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2013002489A Expired - Fee Related JP5380613B2 (en) 2013-01-10 2013-01-10 Symbol recognition apparatus and control program therefor

Country Status (1)

Country Link
JP (1) JP5380613B2 (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH06176185A (en) * 1992-12-03 1994-06-24 Alps Electric Co Ltd Sensitivity adjustment circuit for bar code scanner
JPH0896067A (en) * 1994-09-28 1996-04-12 Nippon Electric Ind Co Ltd Information reader
JPH09153106A (en) * 1995-11-29 1997-06-10 Olympus Optical Co Ltd Bar code reader
JP2001326386A (en) * 2000-05-12 2001-11-22 Seiko Epson Corp Lighting equipment bar-code reader, lighting brightness control method, and information recording medium
JP2009176084A (en) * 2008-01-25 2009-08-06 Denso Wave Inc Optical information reading device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH06176185A (en) * 1992-12-03 1994-06-24 Alps Electric Co Ltd Sensitivity adjustment circuit for bar code scanner
JPH0896067A (en) * 1994-09-28 1996-04-12 Nippon Electric Ind Co Ltd Information reader
JPH09153106A (en) * 1995-11-29 1997-06-10 Olympus Optical Co Ltd Bar code reader
JP2001326386A (en) * 2000-05-12 2001-11-22 Seiko Epson Corp Lighting equipment bar-code reader, lighting brightness control method, and information recording medium
JP2009176084A (en) * 2008-01-25 2009-08-06 Denso Wave Inc Optical information reading device

Also Published As

Publication number Publication date
JP5380613B2 (en) 2014-01-08

Similar Documents

Publication Publication Date Title
EP2368211B1 (en) Illumination apparatus for an imaging-based bar code system
US7137555B2 (en) Multi-format bar code reader
US8079524B2 (en) Imaging-based scanner including border searching for image acquisition
JP4058529B2 (en) Optical information reader
US9230147B2 (en) Method and apparatus for optically reading out information stored in a barcode
EP1492044B1 (en) Optical information reading apparatus and optical information reading method
JP2005202930A (en) Optical information reading device
CN102473236A (en) Method of setting amount of exposure for photodetector array in barcode scanner
US8718370B2 (en) Optical information-reading apparatus and optical information-reading method
JP5183612B2 (en) Symbol recognition apparatus and control program therefor
KR102641301B1 (en) Systems and methods for user selection of barcode scanning range
JP4394133B2 (en) Information code, information code reader
JP5380613B2 (en) Symbol recognition apparatus and control program therefor
US8702002B2 (en) Method, apparatus and system for scanning optical codes
KR101488629B1 (en) Method and apparatus for capturing form document with imaging scanner
JP5104713B2 (en) Optical information reader
JP3760594B2 (en) Optical information reader
JPH0469788A (en) Optical information reader
JP6398809B2 (en) Information code reader
JP7347188B2 (en) reading device
JP2018136854A (en) Optical information reader
JP5660465B2 (en) Optical information reader
JPH09153106A (en) Bar code reader
JP4157759B2 (en) Code reader
JP3891072B2 (en) Bar code reading method and bar code reading apparatus

Legal Events

Date Code Title Description
A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20130115

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20130115

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20130830

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20130930

R150 Certificate of patent or registration of utility model

Ref document number: 5380613

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

Free format text: JAPANESE INTERMEDIATE CODE: R150

LAPS Cancellation because of no payment of annual fees