JP3709811B2 - Image data capturing method, image data capturing device, and image data capturing program - Google Patents

Image data capturing method, image data capturing device, and image data capturing program Download PDF

Info

Publication number
JP3709811B2
JP3709811B2 JP2001186291A JP2001186291A JP3709811B2 JP 3709811 B2 JP3709811 B2 JP 3709811B2 JP 2001186291 A JP2001186291 A JP 2001186291A JP 2001186291 A JP2001186291 A JP 2001186291A JP 3709811 B2 JP3709811 B2 JP 3709811B2
Authority
JP
Japan
Prior art keywords
image data
bit
data
pixels
pixel
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Lifetime
Application number
JP2001186291A
Other languages
Japanese (ja)
Other versions
JP2003006569A (en
Inventor
光司 鴻巣
猛 松島
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Denso Corp
Original Assignee
Denso 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 Denso Corp filed Critical Denso Corp
Priority to JP2001186291A priority Critical patent/JP3709811B2/en
Publication of JP2003006569A publication Critical patent/JP2003006569A/en
Application granted granted Critical
Publication of JP3709811B2 publication Critical patent/JP3709811B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Images

Landscapes

  • Image Processing (AREA)
  • Facsimile Image Signal Circuits (AREA)

Description

【0001】
【発明の属する技術分野】
本発明は、読取対象領域に存在する明暗パターンからなる情報コードを読取る情報コード読取装置等に好適な画像データ取込方法,画像データ取込み装置および画像データ取込プログラムに関する。
【0002】
【発明が解決しようとする課題】
例えば、画像データ取込み装置は、読取対象領域内の情報コードを読取るにあたり、その撮像部分を構成する部品としてCMOSイメージセンサが、コスト,消費電力の特性面でCCDセンサより優れている点から採用される傾向にある。このようなCMOSイメージセンサを使用する一般的なモジュールはA/D変換器の分解能の向上に伴い、従来の8ビットA/D変換器により8ビットの画素データとして出力するものに加えて10ビットA/D変換器により10ビットの画素データとして出力するものも安価に提供されつつある。
【0003】
この場合、画像データとして10ビットの画素データのものを処理するには、情報を取込むためのメモリの増加や処理時間の増加を招くので、好ましくない面がある。
【0004】
ところで、使用する画像メモリとしては一般的に8ビット、16ビット、32ビットと8ビットの倍数単位で扱うものが主流である。したがって、CMOSイメージセンサの出力としてA/D変換器の10ビット出力を上述したメモリに蓄えるように構成すると、8ビットの倍数単位で記憶するメモリにおいては1画素10ビットのデータを16ビット単位で記憶する必要があることから不必要なメモリの増大を招くことになる。
【0005】
本発明は上記事情に鑑みてなされたもので、その目的は、不必要なメモリの増大を防ぎつつ処理時間の増加を招くことがない画像データ取込方法,この方法を利用した画像データ取込み装置及び画像データ取込プログラムを提供することにある。
【0006】
【課題を解決するための手段】
上記課題を解決するために、請求項1記載の画像データ取込方法は、画素データのうち所定個数の判定用の画素を選択し、選択された各画素の画素データについて所定個数の判定用の画素を選択し、選択された各画素の画素データについて数値データが出現する上位のビットをみたときに同じビット値となる画素の個数が判定用のしきい値を超える最も上位のビットを開始ビットと判定し、前記画像データの各画素データに対して上記判定された開始ビットから下位のmビットの画素データを有効値とするため、nビットで記憶させるメモリを用意することなく不必要なメモリの増大を防ぎ、mビットで処理するため処理時間の増加を招くことをなくすることができる。
【0007】
尚、画像データ取込み装置において要求される解像度は、白点及び黒点の明暗レベルとして、白と黒との判別が成されればよいため、従来のものと同様に低くても良いとされている。
【0008】
請求項2記載の画像データ取込装置によれば、選択手段は、画像データからあらかじめ指定された個数の判定用の画素を選択し、判定手段は、当該画素の画素データについて数値データが出現する上位ビットをみたときに同じビット値となる画素の個数を計数すると共に、その計数個数が判定用のしきい値を超えるときのビットのうちの最も上位のビットを開始ビットと判定する。また、画素データ取込手段は、前記画像データの各画素データに対して判定された開始ビットから下位に向けて取込対象となるmビットの画素データを有効値とする。これにより、明暗の解像度を維持した状態においてmビットの有効なデータを得られると共にコストの低減を図ることができる。
【0009】
【発明の実施の形態】
以下本発明の画像データ取込方法を使用した画像データ取込装置を、情報コード読取装置1に適用した一実施形態につき、図面を参照して説明する。尚、以下の説明においては、本発明の特徴的な構成を有する電気的構成を中心に述べる。
図1は、情報コード読取装置1の要部の電気的構成を示している。
情報コード読取装置1は、全体の制御を行うCPU2を中心として構成されている。CPU(Central Processing Unit)2は、プログラムメモリ3が接続されており、このプログラムメモリ3にあらかじめ記憶されているプログラムを読み出して他に接続される各構成要素を動作させるようになっている。
【0010】
CPU2には、プログラムメモリ3の他、エリアセンサ4,ワークメモリ5,キー操作部6,通信インターフェース7,表示部8及び画像メモリコントローラ9が接続されている。
【0011】
撮像手段としてのエリアセンサ4は、例えばCMOSイメージセンサ及び図示しないAGC(Automatic Gain Control)等とからなるもので、読取対象領域Pに光を照射する図示しない照明用発光ダイオードからの光の反射を受けてCPU2からのタイミング信号にしたがって読取対象領域Pを所定の走査方向で各画素毎に撮像し、撮像された画像データをアナログ信号としてアンプ10に出力するようになっている。
【0012】
アンプ10は、エリアセンサ4により撮像された画像データのアナログ信号を所定の増幅度で増幅し、A/D変換器11に出力するように構成されている。
【0013】
A/D変換器11は、CPU2からのタイミング信号にしたがって、アンプ10により増幅された信号を画素毎の画像データとして10ビットで量子化し、取込みデータ判定回路12及び画像データ取込み回路13に出力するように構成されている。
【0014】
なお、この実施形態において用いているエリアセンサ4は、アンプ10及びA/D変換器11を一体に備えたモジュールとして提供されているものである。
【0015】
取込みデータ判定回路12及び画像データ取込み回路13は、相互に接続されており例えばマイクロコンピュータ,ROM,RAM等からなるもので、ROMには画像データを取込む際に、10ビット分解能の画像データから8ビット分解能の画素データを有効値とするように設定するプログラムが記憶されており、また、RAMにはそのプログラムを実行するためのワークメモリ領域が確保されている。
【0016】
また、取込みデータ判定回路12及び画像データ取込み回路13は、例えば3種類(複数種類)の取込みモード(以降、それぞれ取込みモード▲1▼,▲2▼,▲3▼と記述する)を後述する手順にしたがって設定選択し、8ビット分解能の画素データを有効値として画像メモリ14に格納するように構成されている。尚、初期状態として取込みモード▲1▼に設定されている。尚、取込みデータ判定回路12及び画像データ取込み回路13により本発明における制御手段としてのデータ処理回路15が構成されている。
【0017】
画像メモリ14は、取込みデータ判定回路12,画像データ取込み回路13及び画像メモリコントローラ9に接続されている。画像メモリ14は、明暗を記録するための画像データメモリ(図示せず)等から構成されている。また、画像メモリ14は、1読取対象領域分以上の画素データを、1画素データに対して8ビットで格納できるようにメモリ領域が割り当てられており、格納された画素データに対するアドレスを接続される各構成要素から指定でき、内容を読取書込可能に構成されている。
【0018】
画像メモリコントローラ9は、CPU2からの制御信号に基づいて画像メモリ14のアドレスを指定することで、画像メモリ14の内容を読取書込可能に構成されている。
【0019】
ワークメモリ5にはプログラム動作時のワークエリアが割り当てられている。またキー操作部6は、例えばファンクションキーにより構成されており各種情報を入力可能に構成されている。通信インターフェース7は、外部に接続される例えばコンピュータとのデータ通信可能に構成されており、表示部8は読み込んだ2次元コードなどを表示するために用いられる。
【0020】
上記構成の作用につき説明する。
以下、読取対象領域Pを撮像する際に1読取対象領域分の画素データが画像メモリ14に記憶される過程を説明する。
【0021】
まず、読取対象領域Pで反射される光が情報コード読取装置1のエリアセンサ4に入射する。エリアセンサ4は、CPU2からのタイミング信号にしたがって、読取対象領域Pを撮像して得たアナログ信号をアンプ10に出力する。アンプ10は、所定の増幅度でアナログ信号を増幅しA/D変換器11に出力する。
【0022】
A/D変換器11は、CPU2からのタイミング信号にしたがって、増幅されたアナログ信号を画素毎の画像データとして10ビット分解能で量子化したディジタル信号に変換し、取込みデータ判定回路12及び画像データ取込み回路13に出力する。図2(a),図2(b),図2(c)は、それぞれ画像取込みモード▲1▼,▲2▼,▲3▼毎の処理動作を模式的に表わす図を示しており、また、図3は、取込みデータ判定回路12及び画像データ取込み回路13が行う画像取込み処理のフローチャートを示している。
【0023】
画像データ取込み回路13は、画像データを順次画素毎に取込み、あらかじめ設定されている画像取込みモード▲1▼で1読取対象領域分の画素データを画像メモリ14に記憶させる。
【0024】
また、10ビットの階調の画像データが与えられると画像データのうち所定個数の判定用の画素を選択する。図4(a),(b),(c)は、このときに選択される判定用の画素を読取対象領域Pに対する領域Sとして図面内にハッチングすることにより示している。尚、読取対象領域Pは所定の検査区域にあらかじめ分割されており、その検査区域を図中破線で示している。また、7×7個の検査区域に分割しているが、これは理解を容易化するための簡易モデルを示しており、実際には640×480画素程度の領域に対して所定の検査区域に分割するものである。
【0025】
また、選択される判定用の画素としては、図4(a)に示すように読取対象領域Pの例えば略中央の水平方向の走査線に対応する特定ライン部分の領域S、図4(b)に示すように読取対象領域Pの例えば略中央部の検査区域に対応する特定エリア部分の領域S、図4(c)に示すように読取対象領域Pに含まれる全画素に対応する領域Sなどが挙げられるが、本実施形態においては、図4(c)に示すように全画素に対応する領域Sで画像取込み処理を行う形態につき説明する。
【0026】
取込みデータ判定回路12は、3種類の取込みモードのうち初期状態として取込みモード▲1▼を設定選択し、この所定の取込みモード▲1▼で画像データを取込む(ステップS1)。このとき、取込みデータ判定回路12は、画像データの選択された画素について上位2ビット、すなわち、最上位ビットb9及び最上位から2ビット目b8を取込み、この取込みデータを判断する(ステップS2)。すなわち、取込みデータ判定回路12は、選択された判定用の画素に対して、最上位ビットb9が有効(例えば「1」とする)となる個数を計数し、また、最上位から2ビット目b8が「1」となる個数を計数して判断する。
【0027】
そして、取込みデータ判定回路12は、最上位ビットb9が「1」となる個数があらかじめ定められた所定の判定用のしきい値n1を超えるか否かを判定する(ステップS3)。このとき、取込みデータ判定回路12は、判定用のしきい値n1を超えるときには(ステップS3:Yes)、画像データ取込みモードを▲1▼に設定選択する(ステップS4)。また所定の個数n1を超えていないときには(ステップS3:No)、最上位から2ビット目b8が「1」となる個数が判定用のしきい値n2を超えるか否かを判定する(ステップS5)。
【0028】
取込みデータ判定回路12は、ステップS5において、n2を超えると判定したときには、画像データ取込みモードを▲2▼に設定選択する(ステップS6)。逆にステップS5においてn2を超えないと判定したときには、画像データ取込みモードを▲3▼に設定選択する(ステップS7)。すなわち、取込みデータ判定回路12が判定するいずれのビットも判定用のしきい値(この場合n1,n2)を超えないときには、取込みデータ判定回路12において判定されない上位のビットから下位に8ビットを有効値として画像メモリ14に記憶させることになる。
【0029】
ステップS4,S6,S7のいずれかの処理が終了すると、取込みデータ判定回路12は、画像データ取込み回路13に取込みモードを示すモード情報を出力し、画像データ取込み回路13は、後述するように設定選択された取込みモードで再度画像データを取込む(ステップS8)。以下、取込みモード▲1▼,▲2▼,▲3▼における処理内容について図2(a)ないし図2(c)を参照して説明する。
【0030】
<取込みモード▲1▼における処理内容について>
取込みモード▲1▼は、10ビットで得られたA/D変換器11の出力について最上位を開始ビットとして下位に8ビットで画像メモリ14に記憶させるモードを示している。すなわち、図2(a)に示すように、ステップS4において画像データ取込みモードが▲1▼に設定選択された場合には、画像データ取込み回路13は、ビットb9〜b2の8ビットについて画像メモリ14に記憶させる。
【0031】
<取込みモード▲2▼における処理内容について>
取込みモード▲2▼は、最上位から2ビット目を開始ビットとして下位に8ビットで画像メモリ14に記憶させるモードを示している。すなわち、画像データ取込み回路13は、ビットb8〜b1の8ビットについて画像メモリ14に記憶させる。
【0032】
<取込みモード▲3▼における処理内容について>
取込みデータ判定回路12が判定するいずれのビットも判定用のしきい値を超えないときには、取込みデータ判定回路12において判定されない上位のビットから下位に8ビットを有効値として画像メモリ14に記憶させることになる。取込みモード▲3▼は、最上位から3ビット目を開始ビットとして下位に8ビットで画像メモリ14に記憶させるモードを示している。すなわち、画像データ取込み回路13は、ビットb7〜b0の8ビットについて画像メモリ14に記憶させるモードである。
【0033】
まとめると、取込みモード▲1▼の場合には読取対象領域Pの撮像画像を通常の明るさ、取込みモード▲2▼の場合には読取対象領域Pの撮像画像の明るさを2倍、取込みモード▲3▼の場合には読取対象領域Pの撮像画像の明るさを4倍にして全ての画素データに対する基準レベルを一定に設定し有効値とすることになる。
【0034】
このようにした後、設定選択された取込みモードで画像データを更新して取込む(ステップS8)。すなわち、CPU2は、画像メモリコントローラ9を介して画像メモリ14に記憶された内容が更新されたことを検出し、再度エリアセンサ4,アンプ10,A/D変換器11,取込みデータ判定回路12及び画像データ取込み回路13を通じて設定選択された取込みモードで画像メモリ14に記憶させる。CPU2は、ステップS8において画像メモリコントローラ9を介して画像メモリ14に画像データが更新されたことを検出すると、CPU2は、従来より行われているデコード処理を行う(ステップS9)。
【0035】
このデコード処理は、読取対象領域Pに存在する情報コードを判定するための解読処理を示しており、従来手順にそって行われるものでありその説明を省略する。尚、情報コードは、図5(a)〜図5(d)に示すようなコードなどにも適用できる。
【0036】
このような実施形態によれば、取込みデータ判定回路12が、判定用のしきい値を超える最も上位のビットを開始ビットと判定し、画像データの各画素データに対して上記判定された開始ビットから下位の8ビットの画素データを有効値として画像メモリ14に記憶させているので、有効となる画素データが含まれる画素データを画像メモリ14に記憶させることができ、不必要なメモリの増大を防ぎつつ処理時間の増加を招かないようにすることができる。
【0037】
また、全ての画素におけるデータの基準レベルを一定にしているので、特に読取対象領域P面に照射される外来光の影響を低減することができ、また、情報コード読取装置1としては目的解像度を維持しつつ、mビットの有効なデータを得られると共にコストの低減を図ることができる。
【0038】
(他の実施形態)
本発明は、上記実施形態に何ら限定されるものではなく、特に以下に示す拡張または変形が可能である。
ステップS5における処理は、次のように変更することもできる。取込みデータ判定回路12は、選択された各画素の画素データについて数値データが出現する最も上位のビット(この場合MSB(Most Significant Bit)のb9)の「1」を計数して判定用のしきい値と比較し、このしきい値を超えていない画素データに対してのみ2番目の上位のビット(b8)の「1」を計数するようにする。このようにしても上記実施形態と同一の作用効果が得られる。
【0039】
上記実施形態においては、取込みデータ判定回路12及び画像データ取込み回路13は、マイクロコンピュータ,ROM,RAM等から構成されているとしたが、PLD(Programmable Logic Device),FPGA(Field Programmable Gate Array)等でハード的に論理演算する構成としても良い。
【図面の簡単な説明】
【図1】本発明の実施形態を示す電気的構成図
【図2】画像データ取込み回路及び取込みデータ判定回路の動作を模式的に示す図
【図3】情報コード読取装置の制御動作を示すフローチャート
【図4】読取対象領域に対する判定用の画素の選択領域を概略的に示す図
【図5】情報コードの一例を示す図
【符号の説明】
1は情報コード読取装置(画像データ取込み装置)、2はCPU、4はエリアセンサ(撮像手段)、12は取込みデータ判定回路(判定手段)、13は画像データ取込み回路(選択手段)、14は画像メモリ、15はデータ処理回路(制御手段)である。
[0001]
BACKGROUND OF THE INVENTION
The present invention relates to an image data fetching method, an image data fetching apparatus, and an image data fetching program suitable for an information code reading device that reads an information code consisting of a light and dark pattern existing in a reading target area.
[0002]
[Problems to be solved by the invention]
For example, when reading an information code in a reading target area, a CMOS image sensor is adopted as an image data capturing device because the CMOS image sensor is superior to a CCD sensor in terms of cost and power consumption. Tend to. A general module using such a CMOS image sensor has 10 bits in addition to the conventional 8-bit A / D converter that outputs as 8-bit pixel data as the resolution of the A / D converter increases. What is output as 10-bit pixel data by an A / D converter is being provided at low cost.
[0003]
In this case, processing of 10-bit pixel data as image data is not preferable because it causes an increase in memory for taking in information and an increase in processing time.
[0004]
By the way, as the image memory to be used, those which are handled in multiples of 8 bits, 16 bits, 32 bits and 8 bits are generally mainstream. Therefore, if the 10-bit output of the A / D converter is stored in the above-mentioned memory as the output of the CMOS image sensor, the 10-bit data for each pixel is stored in the unit of 16 bits in the memory storing the multiple of 8 bits. Since it needs to be stored, an unnecessary increase in memory is caused.
[0005]
The present invention has been made in view of the above circumstances, and an object of the present invention is to provide an image data capturing method that prevents an increase in unnecessary memory while preventing an increase in processing time, and an image data capturing device using this method. And providing an image data fetching program.
[0006]
[Means for Solving the Problems]
In order to solve the above-mentioned problem, the image data capturing method according to claim 1 selects a predetermined number of determination pixels from the pixel data, and sets a predetermined number of determination pixels for the pixel data of each selected pixel. Select the pixel, and when the high-order bit where numerical data appears for the pixel data of each selected pixel is seen, the number of pixels that have the same bit value exceeds the threshold value for determination. Therefore, an unnecessary memory is prepared without preparing a memory for storing n bits, since the m-bit pixel data lower than the determined start bit is set to a valid value for each pixel data of the image data. Increase in the processing time, and processing with m bits can be prevented from increasing the processing time.
[0007]
It should be noted that the resolution required in the image data capturing device may be as low as the conventional one because it is only necessary to discriminate between white and black as the brightness levels of the white point and black point. .
[0008]
According to the image data capturing device of the second aspect, the selection unit selects a predetermined number of determination pixels from the image data, and the determination unit displays numerical data for the pixel data of the pixel. The number of pixels having the same bit value when the upper bits are viewed is counted, and the highest bit among the bits when the counted number exceeds the determination threshold is determined as the start bit. Further, the pixel data fetching means sets m-bit pixel data to be fetched from the start bit determined for each pixel data of the image data to the lower order as an effective value. As a result, effective data of m bits can be obtained in a state where the light and dark resolution is maintained, and the cost can be reduced.
[0009]
DETAILED DESCRIPTION OF THE INVENTION
Hereinafter, an embodiment in which an image data capturing device using the image data capturing method of the present invention is applied to an information code reader 1 will be described with reference to the drawings. In the following description, an electrical configuration having a characteristic configuration of the present invention will be mainly described.
FIG. 1 shows an electrical configuration of a main part of the information code reading device 1.
The information code reading device 1 is configured around a CPU 2 that performs overall control. A CPU (Central Processing Unit) 2 is connected to a program memory 3, and reads a program stored in advance in the program memory 3 to operate other components connected thereto.
[0010]
In addition to the program memory 3, an area sensor 4, work memory 5, key operation unit 6, communication interface 7, display unit 8 and image memory controller 9 are connected to the CPU 2.
[0011]
The area sensor 4 as an imaging means is composed of, for example, a CMOS image sensor and an AGC (Automatic Gain Control) (not shown) and the like, and reflects light from an illumination light emitting diode (not shown) that irradiates the reading target region P with light. In response to the timing signal from the CPU 2, the reading target area P is imaged for each pixel in a predetermined scanning direction, and the captured image data is output to the amplifier 10 as an analog signal.
[0012]
The amplifier 10 is configured to amplify an analog signal of image data picked up by the area sensor 4 with a predetermined amplification degree and output the amplified signal to the A / D converter 11.
[0013]
The A / D converter 11 quantizes the signal amplified by the amplifier 10 in 10 bits as image data for each pixel according to the timing signal from the CPU 2, and outputs the quantized signal to the capture data determination circuit 12 and the image data capture circuit 13. It is configured as follows.
[0014]
Note that the area sensor 4 used in this embodiment is provided as a module that integrally includes an amplifier 10 and an A / D converter 11.
[0015]
The fetch data determination circuit 12 and the image data fetch circuit 13 are connected to each other and are composed of, for example, a microcomputer, a ROM, a RAM, and the like. A program for setting pixel data with 8-bit resolution as an effective value is stored, and a work memory area for executing the program is secured in the RAM.
[0016]
The capture data determination circuit 12 and the image data capture circuit 13 are, for example, procedures described later in three types (plural types) of capture modes (hereinafter referred to as capture modes (1), (2), and (3), respectively). The pixel data of 8 bits resolution is stored in the image memory 14 as an effective value. Incidentally, the acquisition mode (1) is set as the initial state. Note that the fetch data determination circuit 12 and the image data fetch circuit 13 constitute a data processing circuit 15 as control means in the present invention.
[0017]
The image memory 14 is connected to the capture data determination circuit 12, the image data capture circuit 13, and the image memory controller 9. The image memory 14 includes an image data memory (not shown) for recording light and dark. The image memory 14 is assigned a memory area so that pixel data for one reading target area or more can be stored in 8 bits for one pixel data, and an address for the stored pixel data is connected. Each component can be specified, and the contents can be read and written.
[0018]
The image memory controller 9 is configured to be able to read and write the contents of the image memory 14 by designating the address of the image memory 14 based on a control signal from the CPU 2.
[0019]
A work area for program operation is assigned to the work memory 5. The key operation unit 6 is composed of, for example, function keys and is configured to be able to input various information. The communication interface 7 is configured to be capable of data communication with, for example, a computer connected to the outside, and the display unit 8 is used to display the read two-dimensional code.
[0020]
The operation of the above configuration will be described.
Hereinafter, a process in which pixel data for one reading target area is stored in the image memory 14 when the reading target area P is imaged will be described.
[0021]
First, the light reflected by the reading target region P enters the area sensor 4 of the information code reading device 1. The area sensor 4 outputs an analog signal obtained by imaging the reading target area P to the amplifier 10 in accordance with the timing signal from the CPU 2. The amplifier 10 amplifies the analog signal with a predetermined amplification degree and outputs it to the A / D converter 11.
[0022]
The A / D converter 11 converts the amplified analog signal into a digital signal quantized with 10-bit resolution as image data for each pixel in accordance with the timing signal from the CPU 2, and acquires the acquisition data determination circuit 12 and the image data acquisition Output to the circuit 13. 2 (a), 2 (b), and 2 (c) schematically show processing operations for each of the image capture modes (1), (2), and (3), respectively. FIG. 3 shows a flowchart of the image capture process performed by the capture data determination circuit 12 and the image data capture circuit 13.
[0023]
The image data capturing circuit 13 sequentially captures image data for each pixel, and stores pixel data for one reading target area in the image memory 14 in a preset image capturing mode (1).
[0024]
Further, when 10-bit gradation image data is given, a predetermined number of determination pixels are selected from the image data. 4A, 4 </ b> B, and 4 </ b> C are illustrated by hatching the determination pixels selected at this time as a region S with respect to the reading target region P in the drawing. Note that the reading target area P is divided in advance into predetermined inspection areas, and the inspection areas are indicated by broken lines in the figure. Moreover, although it is divided into 7 × 7 inspection areas, this shows a simple model for facilitating understanding, and in fact, a predetermined inspection area for an area of about 640 × 480 pixels is shown. To divide.
[0025]
Further, as a pixel for determination to be selected, as shown in FIG. 4A, for example, a region S of a specific line portion corresponding to a horizontal scanning line in the approximate center of the reading target region P, FIG. As shown in FIG. 4, for example, the area S of the specific area corresponding to the inspection area at the substantially central portion of the reading target area P, the area S corresponding to all the pixels included in the reading target area P as shown in FIG. However, in the present embodiment, a mode in which the image capturing process is performed in the region S corresponding to all the pixels as illustrated in FIG. 4C will be described.
[0026]
The capture data determination circuit 12 sets and selects the capture mode {circle around (1)} as an initial state among the three types of capture modes, and captures image data in the predetermined capture mode {circle around (1)} (step S1). At this time, the captured data determination circuit 12 captures the upper 2 bits, ie, the most significant bit b9 and the second most significant bit b8 from the selected pixel of the image data, and determines the captured data (step S2). That is, the captured data determination circuit 12 counts the number of the most significant bit b9 that is valid (eg, “1”) for the selected determination pixel, and the second bit b8 from the most significant bit. Judgment is made by counting the number in which “1” becomes “1”.
[0027]
Then, the fetch data determination circuit 12 determines whether or not the number at which the most significant bit b9 is “1” exceeds a predetermined threshold value n1 for determination (step S3). At this time, when the threshold value n1 for determination is exceeded (step S3: Yes), the captured data determination circuit 12 sets and selects the image data capture mode (1) (step S4). If the predetermined number n1 is not exceeded (step S3: No), it is determined whether or not the number at which the second bit b8 from the most significant bit is “1” exceeds the threshold value n2 for determination (step S5). ).
[0028]
When it is determined in step S5 that the value exceeds n2, the captured data determination circuit 12 sets and selects the image data capture mode (2) (step S6). Conversely, when it is determined in step S5 that n2 is not exceeded, the image data capture mode is set to (3) and selected (step S7). That is, when any bit judged by the fetched data judgment circuit 12 does not exceed the judgment threshold value (in this case, n1, n2), the lower eight bits are valid from the upper bit not judged by the fetched data judgment circuit 12 The value is stored in the image memory 14 as a value.
[0029]
When any one of steps S4, S6, and S7 is completed, the capture data determination circuit 12 outputs mode information indicating the capture mode to the image data capture circuit 13, and the image data capture circuit 13 is set as described later. The image data is captured again in the selected capture mode (step S8). Hereinafter, processing contents in the capture modes {circle around (1)}, {circle around (2)}, {circle around (3)} will be described with reference to FIGS. 2 (a) to 2 (c).
[0030]
<Processing details in capture mode (1)>
The capture mode (1) indicates a mode in which the output of the A / D converter 11 obtained with 10 bits is stored in the image memory 14 with the most significant bit as the start bit and the lower 8 bits. That is, as shown in FIG. 2A, when the image data capture mode is set to (1) in step S4, the image data capture circuit 13 performs image memory 14 for 8 bits b9 to b2. Remember me.
[0031]
<Processing content in capture mode (2)>
The capture mode {circle over (2)} indicates a mode in which the second bit from the most significant bit is stored in the image memory 14 with the lower 8 bits as the start bit. That is, the image data fetch circuit 13 stores the 8 bits of bits b8 to b1 in the image memory 14.
[0032]
<Processing details in capture mode (3)>
When any bit determined by the captured data determination circuit 12 does not exceed the determination threshold value, the lower 8 bits are stored in the image memory 14 as effective values from the upper bits not determined by the captured data determination circuit 12. become. The capture mode {circle over (3)} indicates a mode in which the third bit from the most significant bit is stored in the image memory 14 with the lower 8 bits as the start bit. That is, the image data capturing circuit 13 is a mode in which 8 bits of bits b7 to b0 are stored in the image memory 14.
[0033]
In summary, in the capture mode (1), the captured image of the read target area P is normal brightness, and in the capture mode (2), the brightness of the captured image of the read target area P is doubled, and the capture mode In the case of {circle around (3)}, the brightness of the picked-up image in the reading target area P is quadrupled, and the reference level for all pixel data is set to a constant value to be an effective value.
[0034]
After this, the image data is updated and captured in the capture mode selected and selected (step S8). That is, the CPU 2 detects that the content stored in the image memory 14 has been updated via the image memory controller 9, and again the area sensor 4, the amplifier 10, the A / D converter 11, the captured data determination circuit 12, and The image data is stored in the image memory 14 in the capture mode set and selected through the image data capture circuit 13. When the CPU 2 detects that the image data has been updated in the image memory 14 via the image memory controller 9 in step S8, the CPU 2 performs a decoding process conventionally performed (step S9).
[0035]
This decoding process shows a decoding process for determining an information code existing in the reading target area P, and is performed according to a conventional procedure, and its description is omitted. The information code can also be applied to codes as shown in FIGS. 5 (a) to 5 (d).
[0036]
According to such an embodiment, the captured data determination circuit 12 determines the most significant bit exceeding the determination threshold as the start bit, and the determined start bit for each pixel data of the image data. Since the lower 8 bits of pixel data are stored in the image memory 14 as effective values, the pixel data including the effective pixel data can be stored in the image memory 14, which increases unnecessary memory. It is possible to prevent an increase in processing time while preventing it.
[0037]
In addition, since the reference level of the data in all the pixels is made constant, the influence of extraneous light irradiated onto the reading target area P surface can be reduced, and the information code reading apparatus 1 has a target resolution. While maintaining, m-bit effective data can be obtained and the cost can be reduced.
[0038]
(Other embodiments)
The present invention is not limited to the above-described embodiment, and can be expanded or modified as follows.
The process in step S5 can be changed as follows. The fetch data determination circuit 12 counts “1” of the most significant bit (in this case, b9 of MSB (Most Significant Bit)) for the pixel data of each selected pixel to determine the threshold for determination. Compared with the value, only “1” of the second upper bit (b8) is counted only for the pixel data not exceeding the threshold value. Even if it does in this way, the same operation effect as the above-mentioned embodiment is acquired.
[0039]
In the above embodiment, the capture data determination circuit 12 and the image data capture circuit 13 are composed of a microcomputer, a ROM, a RAM, and the like. It is good also as a structure which performs a logical operation by hardware.
[Brief description of the drawings]
FIG. 1 is an electrical configuration diagram illustrating an embodiment of the present invention. FIG. 2 is a diagram schematically illustrating operations of an image data capturing circuit and a captured data determination circuit. FIG. 3 is a flowchart illustrating a control operation of an information code reader. FIG. 4 is a diagram schematically showing a selection region of a pixel for determination with respect to a reading target region. FIG. 5 is a diagram showing an example of an information code.
1 is an information code reader (image data capturing device), 2 is a CPU, 4 is an area sensor (imaging means), 12 is a captured data determination circuit (determination means), 13 is an image data capture circuit (selection means), and 14 is An image memory 15 is a data processing circuit (control means).

Claims (3)

読取対象領域を撮像して得られるnビットの階調の画像データに対して、これをm(m<n)ビットの階調の画素データとして取りこむ場合において、
前記画像データのうち所定個数の判定用の画素を選択し、
選択された各画素の画素データについて数値データが出現する上位のビットをみたときに同じビット値となる画素の個数が判定用のしきい値を超える最も上位のビットを開始ビットと判定し、
前記画像データの各画素データに対して上記判定された開始ビットから下位のmビットの画素データを有効値とすることを特徴とする画像データ取込方法。
In the case where n-bit gradation image data obtained by imaging the reading target area is captured as pixel data of m (m <n) bit gradation,
Select a predetermined number of determination pixels from the image data,
For the pixel data of each selected pixel, the most significant bit in which the number of pixels having the same bit value when looking at the most significant bit where numerical data appears is determined as a start bit,
An image data capturing method, wherein the pixel data of the lower m bits from the determined start bit is set to a valid value for each pixel data of the image data.
撮像手段により読取対象領域を撮像して得られるnビット階調の画像データが与えられるとその画像データからあらかじめ指定された個数の判定用の画素を選択する選択手段と、
この選択手段により選択された複数の画素の画素データについて数値データが出現する上位のビットをみたときに同じビット値となる画素の個数を計数すると共に、その計数個数が判定用のしきい値を超えるときのビットのうちの最も上位のビットを開始ビットと判定する判定手段と、
前記画像データの各画素データに対して上記判定された開始ビットから下位に向けて取込み対象となるmビットの画素データを有効値とする画素データ取込手段とを備えたことを特徴とする画像データ取込み装置。
Selection means for selecting a predetermined number of pixels for determination from the image data given n-bit gradation image data obtained by imaging the reading target area by the imaging means;
Regarding the pixel data of a plurality of pixels selected by this selection means, the number of pixels having the same bit value when counting the upper bits where numerical data appears is counted, and the counted number sets a threshold value for determination. Determining means for determining the highest bit among the bits when exceeding as a start bit;
Image data comprising: pixel data fetching means that takes m-bit pixel data to be fetched from the determined start bit to the lower order for each pixel data of the image data as an effective value Data acquisition device.
画像データ取込み装置の制御手段に、
撮像手段により読取対象領域を撮像して得られるnビット分解能の画像データが与えられるとその画像データからあらかじめ指定された個数の判定用の画素を選択する処理と、
選択された複数の画素の画素データについて数値データが出現する上位のビットをみたときに同じビットとなる画素の個数が判定用のしきい値を超えるときのビットのうちの最も上位のビットを開始ビットと判定する処理と、
前記画像データの各画素データに対して上記判定された開始ビットから下位に向けて取込対象となるmビットの画素データを取り込む処理を実行させることを特徴とする画像データ取込プログラム。
In the control means of the image data capturing device,
A process of selecting a predetermined number of determination pixels from the image data given n-bit resolution image data obtained by imaging the reading target area by the imaging means;
Starts the highest bit among the bits when the number of pixels that become the same bit when the high-order bit where numerical data appears for the pixel data of multiple selected pixels exceeds the threshold for judgment Processing to determine a bit,
An image data fetching program for executing processing for fetching m-bit pixel data to be fetched from the determined start bit toward the lower order for each pixel data of the image data.
JP2001186291A 2001-06-20 2001-06-20 Image data capturing method, image data capturing device, and image data capturing program Expired - Lifetime JP3709811B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2001186291A JP3709811B2 (en) 2001-06-20 2001-06-20 Image data capturing method, image data capturing device, and image data capturing program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2001186291A JP3709811B2 (en) 2001-06-20 2001-06-20 Image data capturing method, image data capturing device, and image data capturing program

Publications (2)

Publication Number Publication Date
JP2003006569A JP2003006569A (en) 2003-01-10
JP3709811B2 true JP3709811B2 (en) 2005-10-26

Family

ID=19025751

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2001186291A Expired - Lifetime JP3709811B2 (en) 2001-06-20 2001-06-20 Image data capturing method, image data capturing device, and image data capturing program

Country Status (1)

Country Link
JP (1) JP3709811B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006072624A (en) * 2004-09-01 2006-03-16 Keyence Corp Optical reading apparatus and method of compressing image data
WO2023189791A1 (en) * 2022-03-31 2023-10-05 ソニーセミコンダクタソリューションズ株式会社 Image processing device, image processing method, and learning device

Also Published As

Publication number Publication date
JP2003006569A (en) 2003-01-10

Similar Documents

Publication Publication Date Title
US7511748B2 (en) Error calibration for digital image sensors and apparatus using the same
US7362355B1 (en) Digital CMOS image sensor incorporating a programmable multi-functional lookup table
US7035462B2 (en) Apparatus and method for processing digital images having eye color defects
JP3748267B2 (en) Imaging device
US7061533B1 (en) Image processing apparatus
JP4305327B2 (en) Imaging apparatus, white balance control method, and white balance control program
JPWO2006129601A1 (en) Image processing apparatus, image processing method, image processing program product, and imaging apparatus
US7106912B2 (en) Circuit for correction of white pixel defects and an image sensor using the circuit for correction of white pixel defects
JP2006080942A (en) Image processing apparatus, image processing program, image processing method, and imaging apparatus
JP3814988B2 (en) Two-dimensional code reader
US6603509B1 (en) Digital camera controllable by a program
JP3709811B2 (en) Image data capturing method, image data capturing device, and image data capturing program
JP2013503382A (en) Device for automatically flagging an image as a favorite image using a gyroscope
US20060044315A1 (en) Image processing apparatus and control method
US20040262495A1 (en) Method for setting individual information of solid-state image sensor, solid-state image sensor, and imaging device
US20090195677A1 (en) Method and apparatus for storing location address of defective pixel
CN115205090A (en) Image acquisition correction system and method
JP2010278560A (en) Imaging system and electronic information apparatus
JP3595104B2 (en) White balance adjustment method for color imaging device
JP2000077637A (en) Method and system for recording management data of solid-state electron image pickup element, and method and system for detecting management data
US20040208393A1 (en) Image processing device, image processing method, and image processing program product for making determination based on spectrum
CN100356796C (en) Digital image forming device and method
JP4127187B2 (en) Code information reading apparatus and program
JPH1127524A (en) Scanner and signal processing method
JP3565551B2 (en) Image binarization device

Legal Events

Date Code Title Description
A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20050707

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20050801

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

Ref document number: 3709811

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

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

Free format text: PAYMENT UNTIL: 20080819

Year of fee payment: 3

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

Free format text: PAYMENT UNTIL: 20110819

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20120819

Year of fee payment: 7

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

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

Free format text: PAYMENT UNTIL: 20120819

Year of fee payment: 7

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

Free format text: PAYMENT UNTIL: 20120819

Year of fee payment: 7

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

Free format text: PAYMENT UNTIL: 20130819

Year of fee payment: 8

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

EXPY Cancellation because of completion of term