JP4174466B2 - Color camera color adjustment system and method, and character / graphic recognition method using this system - Google Patents
Color camera color adjustment system and method, and character / graphic recognition method using this system Download PDFInfo
- Publication number
- JP4174466B2 JP4174466B2 JP2004310872A JP2004310872A JP4174466B2 JP 4174466 B2 JP4174466 B2 JP 4174466B2 JP 2004310872 A JP2004310872 A JP 2004310872A JP 2004310872 A JP2004310872 A JP 2004310872A JP 4174466 B2 JP4174466 B2 JP 4174466B2
- Authority
- JP
- Japan
- Prior art keywords
- luminance
- luminance difference
- maximum
- component
- storage unit
- 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 - Fee Related
Links
- 238000000034 method Methods 0.000 title claims description 94
- 230000003321 amplification Effects 0.000 claims description 154
- 238000003199 nucleic acid amplification method Methods 0.000 claims description 154
- 238000004364 calculation method Methods 0.000 claims description 54
- 230000008569 process Effects 0.000 description 80
- 239000003086 colorant Substances 0.000 description 30
- 230000006870 function Effects 0.000 description 20
- 238000010586 diagram Methods 0.000 description 15
- 238000005286 illumination Methods 0.000 description 4
- 238000003702 image correction Methods 0.000 description 4
- 230000004048 modification Effects 0.000 description 4
- 238000012986 modification Methods 0.000 description 4
- 238000001514 detection method Methods 0.000 description 3
- 230000000694 effects Effects 0.000 description 3
- 238000000605 extraction Methods 0.000 description 3
- 238000012015 optical character recognition Methods 0.000 description 3
- 230000003287 optical effect Effects 0.000 description 3
- 238000006243 chemical reaction Methods 0.000 description 2
- 230000010354 integration Effects 0.000 description 2
- 238000000926 separation method Methods 0.000 description 2
- 230000000007 visual effect Effects 0.000 description 2
- 230000009471 action Effects 0.000 description 1
- 230000001678 irradiating effect Effects 0.000 description 1
- 230000009467 reduction Effects 0.000 description 1
- 229920006395 saturated elastomer Polymers 0.000 description 1
Images
Landscapes
- Character Input (AREA)
- Image Processing (AREA)
- Color Television Image Signal Generators (AREA)
Description
本発明は赤成分、青成分、緑成分の色調整を行うカラーカメラの色調整システムに関する。特に、本発明は、例えば、背景が赤色の地に青色で記載された文字、図形の認識を可能にする色調整を行うカラーカメラの色調整システム及びこのシステムを用いた文字・図形認識方法に関する。 The present invention relates to a color adjustment system for a color camera that performs color adjustment of a red component, a blue component, and a green component. In particular, the present invention relates to, for example, a color camera color adjustment system that performs color adjustment to enable recognition of characters and figures written in blue on a red background, and a character / graphic recognition method using this system. .
従来、カラーカメラの色調整動作として白バランス調整動作が行われている。この白バランス調整動作では、撮影環境の光の色温度に影響されず、白いものが白く撮影できるように、撮影画像の赤成分、青成分、緑成分をそれぞれ積分し、赤成分、青成分、緑成分が同じになるように、赤成分増幅率、青成分増幅率、緑成分増幅率を調整し、白バランスが調整されている。 Conventionally, a white balance adjustment operation is performed as a color adjustment operation of a color camera. This white balance adjustment operation integrates the red, blue, and green components of the shot image so that white objects can be shot white without being affected by the color temperature of the light in the shooting environment. The white balance is adjusted by adjusting the red component amplification factor, the blue component amplification factor, and the green component amplification factor so that the green component becomes the same.
一方、文字、1次元・2次元のバーコードが印刷されている場合、通常であれば、白色の地に黒色で記載される場合が多い。
白色部分と黒色部分で記載される場合、カラーカメラで一般的に行われている白バランスの色調整で、白色部分と黒色部分の輝度差が最大となり、輝度信号を利用して文字・図形を認識する際に、従来の認識率に影響を与えることない。
On the other hand, when characters, one-dimensional and two-dimensional barcodes are printed, they are usually written in black on a white background.
When the white part and black part are written, the white balance color adjustment generally performed in color cameras maximizes the brightness difference between the white part and the black part. When recognizing, the conventional recognition rate is not affected.
しかしながら、白色地に黒色で記載される文字・図形以外の場合、例えば、赤色の地に青色で記載された文字・図形の場合には、背景の赤色の地と青色で記載された文字・図形の輝度差が小さくなり、背景の白色の地と黒色で記載される文字・図形と同様の輝度差を取得できないという問題がある。すなわち、背景の赤色の地に青色で記載された文字・図形の認識率が著しく低下するという問題がある。 However, in the case of characters / graphics written in black on a white background, for example, in the case of characters / graphics written in blue on a red ground, the characters / graphics written in red on the background and blue There is a problem that the same luminance difference as that of characters / graphics written in white and black background cannot be obtained. That is, there is a problem that the recognition rate of characters / graphics written in blue on a red background is significantly reduced.
従来の画像表示装置では、フィールド毎に異なる色順で色信号を出力し、カラーセパレーションが視覚的な積分効果により色成分として感知しないようにするため、光源であるランプ11からの白色光より、R,G,Bの3原色の光を抽出し、DMDに供給する色抽出手段、入力されるG,R,B信号を時分割多重したのちDMDに供給する時分割多重回路、時分割多重回路の動作を制御するカラーシーケンス制御回路からなり、光源からの光が色抽出手段を経由し、DMDで反射され、スクリーンに投射されることにより画像が表示されるようにしている(例えば、特許文献1参照)。 In the conventional image display device, in order to prevent color separation from being detected as a color component by a visual integration effect, color signals are output in a different color order for each field. Color extraction means for extracting light of three primary colors of R, G, and B and supplying it to the DMD, time division multiplexing circuit for supplying the DMD after time division multiplexing of the input G, R, and B signals, and time division multiplexing circuit The color sequence control circuit controls the operation of the light source, and the light from the light source is reflected by the DMD through the color extracting means and projected onto the screen so that an image is displayed (for example, Patent Documents). 1).
しかしながら、上記特許文献1では、フィールド毎に異なる色順で色信号を出力し、カラーセパレーションが視覚的な積分効果により色成分として感知しないようにしているが、前述のように、例えば、背景の赤色の地に青色で記載された文字・図形の認識率を向上させる色調整を行うことができない。
また、従来の画像処理装置では、カラー文書画像の特徴を利用することにより、より単純な構成でカラー文書画像の文字を認識するため、カラー文書画像を入力し、該カラー文書画像の文字認識を行う文字認識装置において、カラー文書画像を構成する各画素のカラー信号における複数の色成分信号の最大値または最小値を当該画素の代表値としてグレー画像に変換するグレー変換回路と、グレー変換回路で変換されたグレー画像を2値化する2値化回路と、2値化回路の2値データから文字認識をおこなう文字認識回路とを備えるものもある(例えば、特許文献2参照)。
However, in
Further, in the conventional image processing apparatus, by utilizing the characteristics of the color document image, the color document image is input in order to recognize the characters of the color document image with a simpler configuration, and the character recognition of the color document image is performed. In a character recognition device to perform, a gray conversion circuit that converts a maximum value or a minimum value of a plurality of color component signals in a color signal of each pixel constituting a color document image into a gray image as a representative value of the pixel, and a gray conversion circuit Some include a binarization circuit that binarizes the converted gray image and a character recognition circuit that performs character recognition from the binary data of the binarization circuit (see, for example, Patent Document 2).
しかしながら、上記特許文献2では、白の地肌に色文字があるカラー文書画像の特徴を利用することにより文字を認識するが、前述のように、例えば、背景の赤色の地に青色で記載された文字・図形の認識率を向上させる色調整を行うことができない。
また、従来の画像修正装置では、デジタル画像のRGBデータの分布状況を基に認識率の向上を実現し得る画像修正装置及び画像修正プログラムの提供を行うため、画像入力部から1フレーム分のデジタル画像データが入力されると、入力された画像データはRAMに転送され、ビットマップイメージで展開され、RAMへの展開が終わると、画像修正処理プログラムにしたがって処理対象のR、G、Bの値と周囲のデータのR、G、Bの値を比較し、処理対象が減光処理の対象(背景)なのか文字(前景)なのかを判定し、減光処理の対象について光量均一化による補正を行うようにしている(例えば、特許文献3参照)。
However, in the above-mentioned
Further, in the conventional image correction apparatus, an image correction apparatus and an image correction program capable of improving the recognition rate based on the distribution status of the RGB data of the digital image are provided. When the image data is input, the input image data is transferred to the RAM and expanded as a bitmap image. When the expansion to the RAM is completed, the values of R, G, and B to be processed are determined according to the image correction processing program. And R, G, and B values of the surrounding data are compared to determine whether the processing target is a dimming process target (background) or a character (foreground), and the dimming process target is corrected by making the amount of light uniform (For example, refer to Patent Document 3).
しかしながら、上記特許文献3では、デジタル画像のRGBデータの分布状況を基に認識率の向上を行うが、前述のように、例えば、背景の赤色の地に青色で記載された文字・図形の認識率を向上させる色調整を行うことができない。
また、従来の装置では、多色刷り画像文書からカラーを除去するための方法及びさまざまな行程を提供するため、文書の画像のすべての画素のすべてのカラー情報が同時に与えられ、すべての画素PELに関して、すべての与えられたカラーの画像信号が分析され、すべての画素に関して、画像文書の背景についてコントラストが最低のこのカラーに対するこの画像信号が選択されるようにしている。(例えば、特許文献4参照)。
However, in the above-mentioned
Also, conventional devices provide a method and various processes for removing color from a multi-color image document, so that all color information for all pixels of the document image is provided simultaneously, with respect to all pixels PEL. The image signal of all given colors is analyzed so that for all pixels, this image signal for this color with the lowest contrast for the background of the image document is selected. (For example, refer to Patent Document 4).
しかしながら、上記特許文献4では、多色刷り画像文書からカラーを除去するが、前述のように、例えば、背景の赤色の地に青色で記載された文字・図形の認識率を向上させる色調整を行うことができない。
また、従来の画像処理装置では、画像読み取りセンサからのR、G、B信号をそれぞれ増幅する場合の各増幅率の設定を容易に行うため、画像読取部201−3で標準白色板を読み取って得られるRGB信号はそれぞれアナログ処理回路118〜120内の増幅器で増幅される。各増幅器の増幅率は標準とその±αとの3段階に設定可能で、先ず、標準に設定して、そのときのRGB信号のうち中間レベルを得た信号の増幅器の出力が所定値となるように上記白色板を照射する光量を調整する。その後、残りの2つの信号の各増幅器の増幅率を各増幅出力が飽和しないで最大となるように設定することにより、RGB信号
のレベルを均一に調整するようにしている。(例えば、特許文献5参照)。
However, in
Further, in the conventional image processing apparatus, in order to easily set each amplification factor when amplifying the R, G, and B signals from the image reading sensor, the image reading unit 201-3 reads the standard white plate. The obtained RGB signals are amplified by amplifiers in the
しかしながら、上記特許文献5では、画像読み取りセンサからのR、G、B信号をそれぞれ増幅する場合の各増幅率の設定を行うが、前述のように、例えば、背景の赤色の地に青色で記載された文字・図形の認識率を向上させる色調整を行うことができない。
また、従来の光学式文字読取装置では、カラーイメージセンサの相対的な出力レベル差に影響されずに、正確な色判定を行い、ドロップアウトカラーを確実に除去するOCRを提供するため、赤,緑,青の色信号rd,gr,blは、色判定部31〜34と最大値検出部へ与えられ、色判定部は、それぞれ異なるクラスの基準値を基に色判定を行い、最大値検出部は色信号の最大値maxを検出し、ピーク検出部は最大値maxからピーク値peakを検出し、レベル判定部は、ピーク値peakから色信号レベルのクラスを判定し、判定結果cselを色情報選択部へ与え、色情報選択部は、判定結果cselに基づき、色判定部から出力される色判定結果の中から色信号レベルに対応する色判定結果bselを選択し、輝度信号選択部は、選択された色判定結果bselに基づいて輝度信号bwを選択出力するようにしている。(例えば、特許文献6参照)。
However, in the above-mentioned
In addition, in the conventional optical character reader, in order to provide an OCR that performs accurate color determination and reliably removes the dropout color without being affected by the relative output level difference of the color image sensor, red, The green and blue color signals rd, gr, and bl are given to the color determination units 31 to 34 and the maximum value detection unit. The color determination unit performs color determination based on reference values of different classes, and detects the maximum value. The unit detects the maximum value max of the color signal, the peak detection unit detects the peak value peak from the maximum value max, the level determination unit determines the class of the color signal level from the peak value peak, and the determination result csel is color-coded. Based on the determination result csel, the color information selection unit selects the color determination result bsel corresponding to the color signal level from the color determination result output from the color determination unit, and the luminance signal selection unit So that selectively outputs the luminance signal bw based on the selected color determination result bsel. (For example, refer to Patent Document 6).
しかしながら、上記特許文献6では、カラーイメージセンサの相対的な出力レベル差に影響されずに、正確な色判定を行い、ドロップアウトカラーを確実に除去するOCRを提供するが、前述のように、例えば、背景の赤色の地に青色で記載された文字・図形の認識率を向上させる色調整を行うことができない。
また、従来の画像処理装置では、カラー画像から必要とする画像だけを抽出する画像処理装置及び光学式文字読取装置に関し、必要とする画像を確実に抽出できる画像処理装置及び光学式文字読取装置を提供することを目的とするため、カラー画像入力部により帳票のカラー画像をRGBの三原色で読み取り、抽出回路により読み取った三原色の成分から最大の値と最小の値を抽出し、抽出した最大値及び最小値から最大値を明度V値として、最小値を最大値で除算した値を彩度S値として抽出し、S値比較回路により彩度をS閾値と比較して、V閾値選択回路によりS値比較回路の比較結果に応じて大小2つのV閾値から1つのV閾値を選択し、V閾値選択回路で選択されたV閾値と抽出回路で抽出された明度と比較し、白又は黒を判定し、カラー画像から文字画像を抽出するようにしている。(例えば、特許文献7参照)。
However, in the above-mentioned
Further, the conventional image processing apparatus relates to an image processing apparatus and an optical character reading apparatus that extract only a necessary image from a color image, and relates to an image processing apparatus and an optical character reading apparatus that can reliably extract a required image. For the purpose of providing, the color image input unit reads the color image of the form with the three primary colors of RGB, the maximum value and the minimum value are extracted from the components of the three primary colors read by the extraction circuit, and the extracted maximum value and A value obtained by dividing the minimum value by the maximum value as the brightness V value and the minimum value divided by the maximum value is extracted as the saturation S value, the saturation is compared with the S threshold by the S value comparison circuit, and the S threshold is selected by the V threshold selection circuit. One V threshold is selected from the two large and small V thresholds according to the comparison result of the value comparison circuit, and the V threshold selected by the V threshold selection circuit is compared with the brightness extracted by the extraction circuit to determine white or black Shi And so as to extract a character image from a color image. (For example, refer to Patent Document 7).
しかしながら、上記特許文献7では、カラー画像から文字画像を抽出するようにしているが、前述のように、例えば、背景の赤色の地に青色で記載された文字・図形の認識率を向上させる色調整を行うことができない。
また、従来の画像読取装置では、透過原稿の種類に応じてランプの照明光量調整及び増幅器のゲイン調整を行うようにした画像読取装置を提供するため、CCDリニアイメージセンサから出力されるカラー画像信号を増幅する増幅器と、これらの増幅器の出力信号をデジタル信号に変換するAD変換器と、透過原稿を照明する光源と、光源の照明光量を変更するための着脱可能な光学的フィルタと、透過原稿の種類に応じてフィルタの特性から必要となる光源の照明光量の制御値及び増幅器の増幅ゲイン制御値を算出する制御手段とを備えた構成としたものがある。(例えば、特許文献8参照)。
However, in
Further, in the conventional image reading apparatus, a color image signal output from a CCD linear image sensor is provided in order to provide an image reading apparatus that adjusts the illumination light amount of a lamp and the gain of an amplifier in accordance with the type of transparent original. An amplifier that converts the output signal of these amplifiers into a digital signal, a light source that illuminates the transmissive original, a detachable optical filter that changes the amount of illumination of the light source, and a transmissive original There is a configuration provided with control means for calculating the control value of the illumination light quantity of the light source and the amplification gain control value of the amplifier, which are required from the characteristics of the filter according to the type of filter. (For example, refer to Patent Document 8).
しかしながら、上記特許文献8では、透過原稿の種類に応じてランプの照明光量調整及び増幅器のゲイン調整を行うようにした画像読取装置を提供するが、前述のように、例えば、背景の赤色の地に青色で記載された文字・図形の認識率を向上させる色調整を行うことができない。
また、従来の書類撮影装置では、定型書式の複写式手書き書類のように、複写された手書き文字と予め印刷された文字とが混在している書類を撮影したときにも、両方の文字が鮮明に現れた画像を生成できる書類撮影装置の提供をおこなうため、画像処理部は、成分範囲選択増幅部でなっており、R成分範囲選択増幅部は、R成分データ及びR成分増幅パラメータを受け、パラメータの座標データで選択された所定領域枠の範囲に関するR成分データを、パラメータの増幅度のデータに従って増幅し、R成分画像補正データとして出力し、画像処理部は、青色の線を強調する処理を入力データに加えるために、地色のレベルより暗いレベルのR成分及びG成分を増幅し、暗い方向(輝度の低い方向)に下げるようにしている。(例えば、特許文献9参照)。
However,
In addition, with conventional document photographing devices, both characters are clear when photographing a document in which copied handwritten characters and preprinted characters are mixed, such as a standard-type copy-type handwritten document. In order to provide a document photographing apparatus that can generate an image that appears in the image processing unit, the image processing unit is a component range selection amplification unit, the R component range selection amplification unit receives R component data and R component amplification parameters, The R component data related to the range of the predetermined area frame selected by the parameter coordinate data is amplified according to the parameter amplification degree data and output as R component image correction data, and the image processing unit emphasizes the blue line Is added to the input data, the R and G components that are darker than the ground color level are amplified and lowered in the darker direction (in the direction of lower brightness). (For example, refer to Patent Document 9).
しかしながら、上記特許文献9では、定型書式の複写式手書き書類のように、複写された手書き文字と予め印刷された文字とが混在している書類を撮影したときにも、両方の文字が鮮明に現れた画像を生成できる書類撮影装置の提供をおこなうが、前述のように、例えば、背景の赤色の地に青色で記載された文字・図形の認識率を向上させる色調整を行うことができない。
However, in
したがって、本発明は上記問題点に鑑みて、例えば、背景の赤色の地に青色で記載された文字・図形の認識を可能にする色調整を行うカラーカメラの色調整システム、方法及びこのシステムを用いた文字・図形認識方法を提供することを目的とする。
さらに、本発明は、白バランス機能に本発明の新たな機能を加えるので、構成が複雑にならないようにすることを目的とする。
Therefore, in view of the above problems, the present invention provides a color camera color adjustment system and method for performing color adjustment that enables recognition of characters and figures written in blue on a red background, for example, and this system. An object is to provide a method for recognizing characters and figures used.
Another object of the present invention is to add a new function of the present invention to the white balance function, so that the configuration is not complicated.
本発明は前記問題点を解決するために、赤成分、青成分、緑成分の色調整を行うカラーカメラの色調整システムにおいて、赤色、緑色、青色のうち1つの色の地に他方の色の文字、図形が記載された画像がレンズにより集光され結像された撮影像の赤成分、緑成分、青成分を電気信号に変換するイメージセンサと、前記イメージセンサで変換された赤成分、緑成分、青成分の電気信号をそれぞれ増幅する増幅部と、前記増幅部で増幅された赤成分、緑成分、青成分の電気信号から輝度を求める輝度演算部と、前記増幅部で増幅された赤成分、緑成分、青成分の電気信号の最大輝度を、前記地及び前記文字、図形の一方の輝度として、記憶する最大輝度記憶部と、前記増幅部で増幅された赤成分、緑成分、青成分の電気信号の最小輝度を、前記地及び前記文字、図形の他方の輝度として、記憶する最小輝度記憶部と、前記最大輝度記憶部に記憶されている最大輝度と前記最小輝度記憶部に記憶されている最小輝度の輝度差を最大輝度差として記憶する輝度差記憶部と、前記増幅部の赤成分、緑成分、青成分の電気信号をそれぞれ増幅する増幅率を初期値として最小値に設定し、前記増幅率の1つを順次最大値に設定し前記輝度差記憶部を介して前記地と前記文字、図形の間の最大輝度差を取得するように色調整を行う最大輝度差取得色調整部とを備え、前記最大輝度差取得色調整部は、1つの前記増幅率を最大値に設定し、前記輝度差記憶部に記憶されている輝度差が最大輝度差のみである場合前記画像が地だけでなると判断し最大輝度差取得の動作を停止し、前記輝度差記憶部に記憶されている輝度差が最小輝度差のみである場合1つの前記増幅率を初期値の最小値に戻し、他の前記増幅率を最大に設定して次の最大輝度差の取得を行うことを特徴とするカラーカメラの色調整システムを提供する。 In order to solve the above problems, the present invention provides a color adjustment system for a color camera that performs color adjustment of a red component, a blue component, and a green component. An image sensor that converts a red component, a green component, and a blue component of a photographed image obtained by focusing and forming an image on which characters and figures are collected by a lens, and a red component and a green converted by the image sensor. An amplifying unit for amplifying the component and blue component electrical signals, a luminance calculating unit for obtaining luminance from the red, green and blue component electrical signals amplified by the amplifying unit, and the red amplified by the amplifying unit A maximum luminance storage unit for storing the maximum luminance of the electrical signal of the component, the green component, and the blue component as the luminance of one of the ground, the character, and the figure; and the red component, the green component, and the blue amplified by the amplification unit The minimum luminance of the electrical signal of the component, And the minimum luminance storage unit to be stored as the other luminance of the characters and figures, and the luminance difference between the maximum luminance stored in the maximum luminance storage unit and the minimum luminance stored in the minimum luminance storage unit. The luminance difference storage unit for storing the difference and the amplification factor for amplifying the red component, green component, and blue component electrical signals of the amplification unit are set as initial values to a minimum value, and one of the amplification factors is sequentially maximized. e Bei wherein the set value the ground through the luminance difference storage unit characters, and a maximum luminance difference acquired color adjustment unit for performing color adjustment so as to obtain the maximum luminance difference between figure, the maximum luminance difference The acquired color adjustment unit sets one of the amplification factors to the maximum value, and determines that the image is only the ground when the luminance difference stored in the luminance difference storage unit is only the maximum luminance difference. The acquisition operation is stopped and recorded in the brightness difference storage unit. When the difference in luminance is only the minimum luminance difference, one amplification factor is returned to the initial minimum value, and the other maximum amplification factor is set to the maximum value to obtain the next maximum luminance difference. A color camera color adjustment system is provided.
さらに、前記最大輝度差取得色調整部は、前記輝度差記憶部に記憶されている輝度差が最大輝度差である画素数が撮影像の画素数の1/2以上の場合には、最大輝度差である画素は地及び文字、図形の一方を形成し、最小輝度差である画素は地及び文字、図形の他方を形成すると判断する。 In addition, the pre-Symbol maximum luminance difference acquired color adjustment unit, the luminance difference stored in the brightness difference storage unit the number of pixels is the maximum luminance difference in the case of more than half of the number of pixels of pickup image, It is determined that the pixel having the maximum luminance difference forms one of the ground, the character, and the graphic, and the pixel having the minimum luminance difference forms the other of the ground, the character, and the graphic.
さらに、前記最大輝度差取得色調整部は、前記増幅部の赤成分、緑成分、青成分の電気信号の任意の1つを増幅する増幅率を初期値である最小値に固定し、他の2つの電気信号の前記増幅率を順次最大値に設定し、前記輝度差記憶部に記憶される輝度差が最大輝度差である場合の画素数と最大輝度差でない場合の画素数を比較し、地の画素数と文字、図形の画素数の大小を判断し、文字、図形の画素数が地の画素数よりも大きくなる場合、前記輝度差記憶部に記憶されている輝度差を反転し、文字、図形とした輝度を地の輝度とし、地とした輝度を文字、図形の輝度とする。 Further, the maximum luminance difference acquisition color adjustment unit fixes an amplification factor for amplifying any one of the electrical signals of the red component, the green component, and the blue component of the amplification unit to a minimum value that is an initial value, The amplification factor of two electrical signals is sequentially set to the maximum value, and the number of pixels when the luminance difference stored in the luminance difference storage unit is the maximum luminance difference is compared with the number of pixels when the luminance difference is not the maximum luminance difference, Judging the number of pixels of the ground and the number of pixels of the character and the figure, if the number of pixels of the character and the figure is larger than the number of pixels of the ground, the luminance difference stored in the luminance difference storage unit is inverted, The brightness of characters and figures is the brightness of the ground, and the brightness of the ground is the brightness of the characters and figures.
さらに、本発明は、赤成分、青成分、緑成分の色調整を行うカラーカメラの色調整システムにおいて、赤色、緑色、青色、黄色、シアン、マゼンタの1つの色の地に他方の色の文字、図形が記載された画像がレンズにより集光され結像された撮影像の赤成分、緑成分、青成分を電気信号に変換するイメージセンサと、前記イメージセンサで変換された赤成分、緑成分、青成分の電気信号をそれぞれ増幅する増幅部と、前記増幅部で増幅された赤成分、緑成分、青成分の電気信号から輝度を求める輝度演算部と、前記増幅部で増幅された赤成分、緑成分、青成分の電気信号の最大輝度を、前記地及び前記文字、図形の一方の輝度として、記憶する最大輝度記憶部と、前記増幅部で増幅された赤成分、緑成分、青成分の電気信号の最小輝度を、前記地及び前記文字、図形の他方の輝度として、記憶する最小輝度記憶部と、前記最大輝度記憶部に記憶されている最大輝度と前記最小輝度記憶部に記憶されている最小輝度の輝度差を最大輝度差として記憶する輝度差記憶部と、前記増幅部の赤成分、緑成分、青成分の電気信号をそれぞれ増幅する増幅率を初期値として最小値に設定し、前記増幅率の1つを順次最大値に設定し前記輝度差記憶部を介して前記地と前記文字、図形の間の最大輝度差を取得するように色調整を行い、前記輝度差記憶部に記憶される輝度差が最大輝度差である場合の画素数と、最大輝度差でない場合の画素数とを比較し、地の画素数と文字、図形の画素数の大小を判断し、文字、図形の画素数が地の画素数よりも大きくなる場合、前記輝度差記憶部に記憶されている輝度差を反転し、文字、図形とした輝度を地の輝度とし、地とした輝度を文字、図形の輝度とする最大輝度差取得色調整部とを備えることを特徴とするカラーカメラの色調整システムを提供する。 Furthermore, the present invention provides a color camera color adjustment system that performs color adjustment of a red component, a blue component, and a green component, and a character of the other color on the background of one color of red, green, blue, yellow, cyan, and magenta. An image sensor for converting a red component, a green component, and a blue component of a photographed image formed by focusing an image on which a graphic is described by a lens into an electric signal, and a red component and a green component converted by the image sensor An amplifying unit for amplifying the blue component electric signal, a luminance calculating unit for obtaining luminance from the red component, green component, and blue component electric signals amplified by the amplifying unit, and a red component amplified by the amplifying unit A maximum luminance storage unit for storing the maximum luminance of the electrical signal of the green component and the blue component as one luminance of the ground, the character, and the figure, and the red component, the green component, and the blue component amplified by the amplification unit Before the minimum brightness of the electrical signal As the other brightness of the ground, the character, and the figure, the minimum brightness storage unit that stores the maximum brightness difference between the maximum brightness stored in the maximum brightness storage unit and the minimum brightness stored in the minimum brightness storage unit A luminance difference storage unit for storing the luminance difference and an amplification factor for amplifying the red component, green component, and blue component electrical signals of the amplification unit are set as initial values to a minimum value, and one of the amplification factors is sequentially set. Color adjustment is performed so that the maximum brightness difference between the ground, the character, and the figure is set via the brightness difference storage unit and the brightness difference stored in the brightness difference storage unit is the maximum brightness. Compare the number of pixels in the case of difference with the number of pixels in the case of not being the maximum luminance difference, determine the size of the number of ground pixels and the number of pixels of characters and figures, and the number of pixels of characters and figures is the number of pixels of ground Stored in the brightness difference storage unit. Color camera color adjustment characterized by comprising a maximum brightness difference acquisition color adjustment unit that inverts the luminance difference and uses the luminance of characters and figures as the luminance of the ground and the luminance of the ground as the luminance of the characters and graphics Provide a system.
さらに、前記最大輝度差取得色調整部は、1つの前記増幅率を最大値に設定し、前記輝度差記憶部に記憶されている輝度差が最大輝度差のみである場合、又は、最小輝度差のみである場合、1つの前記増幅率を初期値の最小値に戻し、他の前記増幅率を最大に設定して次の最大輝度差の取得を行う。
さらに、前記最大輝度差取得色調整部は前記イメージセンサに時分割多重化を要求する情報を提供し、前記イメージセンサは提供された情報を基に変換した赤成分、緑成分、青成分の電気信号を時分割多重化し、前記最大輝度差取得色調整部は時分割多重化された赤成分、緑成分、青成分の電気信号を増幅する増幅率を前記増幅器に設定し、前記増幅部は前記最大輝度差取得色調整部により設定された増幅率で前記イメージセンサにより時分割多重化された赤成分、緑成分、青成分の電気信号を増幅する。
Further, the maximum luminance difference acquisition color adjustment unit sets one of the amplification factors to a maximum value and the luminance difference stored in the luminance difference storage unit is only the maximum luminance difference, or the minimum luminance difference In the case where only one amplification factor is obtained, one amplification factor is returned to the initial minimum value, the other amplification factor is set to the maximum value, and the next maximum luminance difference is obtained.
Further, the maximum luminance difference acquisition color adjusting unit provides information requesting the image sensor to perform time division multiplexing, and the image sensor converts red, green, and blue component electrical information converted based on the provided information. The signal is time-division multiplexed, and the maximum luminance difference acquisition color adjustment unit sets the amplification factor for amplifying the time-division multiplexed red component, green component, and blue component electrical signals to the amplifier, and the amplification unit The red component, green component, and blue component electrical signals time-division multiplexed by the image sensor are amplified at the amplification factor set by the maximum luminance difference acquisition color adjustment unit.
さらに、赤成分、青成分、緑成分の色調整を行うカラーカメラの色調整方法において、赤色、緑色、青色のうち1つの色の地に他方の色の文字、図形が記載された画像がレンズにより集光され結像された撮影像の赤成分、緑成分、青成分を電気信号に変換する工程と、変換された赤成分、緑成分、青成分の電気信号をそれぞれ増幅する工程と、増幅された赤成分、緑成分、青成分の電気信号から輝度を求める工程と、増幅された赤成分、緑成分、青成分の電気信号の最大輝度を、前記地及び前記文字、図形の一方の輝度として、記憶する工程と、増幅された赤成分、緑成分、青成分の電気信号の最小輝度を、前記地及び前記文字、図形の他方の輝度として、記憶する工程と、記憶されている最大輝度と記憶されている最小輝度の輝度差を最大輝度差として記憶する工程と、赤成分、緑成分、青成分の電気信号をそれぞれ増幅する増幅率を初期値として最小値に設定し、前記増幅率の1つを順次最大値に設定し前記地と前記文字、図形の間の最大輝度差を取得するように色調整を行う工程と、1つの前記増幅率を最大値に設定し、記憶されている輝度差が最大輝度差のみである場合前記画像が地だけでなると判断し最大輝度差取得の動作を停止し、記憶されている輝度差が最小輝度差のみである場合1つの前記増幅率を初期値の最小値に戻し、他の前記増幅率を最大に設定して次の最大輝度差の取得を行う工程とを備えることを特徴とするカラーカメラの色調整方法を提供する。
さらに、本発明は、前記輝度差記憶部に記憶された輝度差を入力し、文字、図形を認識することを特徴とするカラーカメラの色調整システムを用いた文字・図形認識方法を提供する。
Further, in the color adjustment method of a color camera that performs color adjustment of red, blue, and green components, an image in which characters and figures of the other color are described on the ground of one color of red, green, and blue is a lens. Converting the red, green, and blue components of the captured image focused and formed into an electrical signal, amplifying the converted electrical signals of the red, green, and blue components, respectively, and amplifying Determining the luminance from the electrical signals of the red, green, and blue components, and the maximum luminance of the amplified electrical signals of the red, green, and blue components to determine the luminance of one of the ground, the character, and the figure. And storing the minimum luminance of the amplified red, green, and blue electrical signals as the other luminance of the ground, the character, and the figure, and the stored maximum luminance. And the maximum brightness difference stored in the minimum brightness A step of storing the difference as a degree of difference and an amplification factor for amplifying the electrical signals of the red component, green component and blue component, respectively, as an initial value, and setting one of the amplification factors as a maximum value in sequence. Adjusting the color so as to obtain the maximum luminance difference between the character and the figure, and setting the one amplification factor to the maximum value, and the stored luminance difference is only the maximum luminance difference When it is determined that the image is only the ground and the operation of obtaining the maximum luminance difference is stopped, when the stored luminance difference is only the minimum luminance difference, one amplification factor is returned to the initial minimum value, and the other amplification is performed. And a step of acquiring the next maximum luminance difference by setting the rate to the maximum, and providing a color adjustment method for a color camera.
Furthermore, the present invention provides a character / graphic recognition method using a color adjustment system of a color camera, wherein the luminance difference stored in the luminance difference storage unit is input and characters and figures are recognized.
以上説明したように、本発明によれば、通常の撮影動作には白バランス動作を用い、文字・図形認識動作には本発明の文字・図形認識色調動作を用いることで、文字・図形の記載されている色と背景の色によって文字・図形の認識率が低下することを回避することが可能になる。
例えば、赤地に青で記載された文字、図形の場合、カラーカメラで撮影し、輝度信号を抽出した場合、背景部分と文字・図形部分との輝度差がほとんどなく、輝度信号を用いて文字、図形を認識できなくなるが、赤成分、緑成分、青成分の増幅率を調整し、背景部分と文字・図形部分との輝度差を大きくし、白地に黒で記載された文字、図形の認識と同程度の輝度信号を抽出ことが可能になった。
As described above, according to the present invention, the white balance operation is used for the normal photographing operation, and the character / graphic recognition color tone operation of the present invention is used for the character / graphic recognition operation. It is possible to avoid a reduction in the recognition rate of characters / graphics due to the color and the background color.
For example, in the case of characters and figures written in blue on a red background, when shooting with a color camera and extracting the luminance signal, there is almost no difference in luminance between the background portion and the characters / graphics portion, using the luminance signal, Although the figure cannot be recognized, the amplification factor of the red component, green component, and blue component is adjusted, the brightness difference between the background part and the text / graphic part is increased, and the characters and figures written in black on the white background are recognized. It has become possible to extract the same luminance signal.
さらに、赤成分、緑成分、青成分の増幅率のうち任意の1つを固定して、他の2つの増幅率を調整し、背景部分と文字・図形部分との輝度差を大きくすることも可能である。
さらに、赤成分、緑成分、青成分だけでなく、黄色、シアン、マゼンタの中間色を加えた画像の撮影でも文字、図形の認識が可能になった。
さらに、赤成分、緑成分、青成分の電気信号を時分割多重化し、カラーカメラへの本発明による新機能追加に対して回路構成の複雑化を回避することが可能になった。
In addition, any one of the amplification factors of the red component, the green component, and the blue component may be fixed, and the other two amplification factors may be adjusted to increase the luminance difference between the background portion and the character / graphic portion. Is possible.
Furthermore, not only red, green, and blue components, but also characters and figures can be recognized by shooting images that include intermediate colors of yellow, cyan, and magenta.
Furthermore, it is possible to time-division-multiplex the electrical signals of the red component, the green component, and the blue component, and to avoid complication of the circuit configuration for adding a new function according to the present invention to the color camera.
以下、本発明の実施の形態について図面を参照して説明する。
図1は本発明に係るカラーカメラの色調整システムの概略構成を示すブロック図である。なお、全図を通して同一の構成要素には同一の番号、符号を付す。
本図に示すように、カラーカメラの色調整システムにはレンズ101が設けられ、レンズ101は撮影像を集光する機能を有する。
Hereinafter, embodiments of the present invention will be described with reference to the drawings.
FIG. 1 is a block diagram showing a schematic configuration of a color adjustment system for a color camera according to the present invention. Throughout the drawings, the same components are denoted by the same reference numerals and symbols.
As shown in the figure, the color adjustment system of the color camera is provided with a
レンズ101の後部にはイメージセンサ102が設けられ、イメージセンサ102はレンズ101により集光された撮影像を結像し、結像した画像の赤成分、青成分、緑成分を電気信号にそれぞれ変換する機能を有する。
イメージセンサ102には赤成分増幅器103、緑成分増幅器104、青成分増幅器105が接続される。
An
A
赤成分増幅器103はイメージセンサ102で変換された赤成分の電気信号を増幅する機能を有する。
緑成分増幅器104はイメージセンサ102で変換された緑成分の電気信号を増幅する機能を有する。
青成分増幅器105はイメージセンサ102で変換された青成分の電気信号を増幅する機能を有する。
The
The
The
赤成分増幅器103、緑成分増幅器104、青成分増幅器105には赤成分A/D(Analog to Digital)変換器106、緑成分A/D変換器107、青成分A/D変換器108がそれぞれ接続される。
赤成分A/D変換器106は赤成分増幅器103で増幅された赤成分の電気信号をデジタル信号に変換する機能を有する。
A red component A / D (Analog to Digital)
The red component A /
緑成分A/D変換器107は緑成分増幅器104で増幅された緑成分の電気信号をデジタル信号に変換する機能を有する。
青成分A/D変換器108は青成分増幅器105で増幅された青成分の電気信号をデジタル信号に変換する機能を有する。
赤成分A/D変換器106、緑成分A/D変換器107、青成分A/D変換器108には信号処理部112が接続され、信号処理部112はカラーカメラの通常撮影に用いられる白バランス調整のための色調整機能を有し、さらに、赤成分A/D変換器106、緑成分A/D変換器107、青成分A/D変換器108によりそれぞれ変換された赤成分のデジタル信号、緑成分のデジタル信号、青成分のデジタル信号を入力し、本発明に係る最大輝度差信号取得のための色調整機能を有する。
The green component A /
The blue component A /
A
本発明に係る最大輝度差信号取得のための色調整機能とカラーカメラの通常撮影に用いられる白バランス調整のための色調整機能は利用者により選択される。カラーカメラの通常撮影に用いられる白バランス調整のための色調整機能は本発明とは関係ないので、これ以上の説明を省略する。
信号処理部112から赤成分増幅器103には赤成分増幅率制御信号109が送られ、赤成分増幅率制御信号109は赤成分増幅器103の増幅率を制御するのに使用される。
The color adjustment function for obtaining the maximum luminance difference signal according to the present invention and the color adjustment function for white balance adjustment used for normal photographing of the color camera are selected by the user. Since the color adjustment function for white balance adjustment used for normal photographing of the color camera is not related to the present invention, further explanation is omitted.
A red component
さらに、信号処理部112から緑成分増幅器104には緑成分増幅率制御信号110が送られ、緑成分増幅率制御信号110は緑成分増幅器104の増幅率を制御するのに使用される。
さらに、信号処理部112から青成分増幅器105には青成分増幅率制御信号111が送られ、青成分増幅率制御信号111は青成分増幅器105の増幅率を制御するのに使用される。
Further, a green component amplification
Further, a blue component amplification
赤成分増幅率制御信号109、緑成分増幅率制御信号110、青成分増幅率制御信号111により制御される増幅率は初期値として全て最小値に設定され、1つずつ最大値に設定される。
信号処理部112からイメージセンサ102には画素位置情報信号119が送られ、画素位置情報信号119はイメージセンサ102から画素を取り込むのに使用される。
The amplification factors controlled by the red component amplification
A pixel position information signal 119 is sent from the
信号処理部112には最大輝度記憶部113が設けられ、最大輝度記憶部113は初期値として最小値を記憶し、画素の輝度信号検出時に初期値より大きい画素の輝度を最大輝度として記憶する。
信号処理部112には最小輝度記憶部114が設けられ、最小輝度記憶部114は初期値として最小値を記憶し、画素の輝度信号検出時に初期値より大きい画素の輝度を最小輝度として記憶する。
The
The
さらに、信号処理部112には輝度差記憶部115が設けられ、輝度差記憶部115は初期値として最小値を記憶し、画素の輝度信号検出時に初期値より大きい画素の輝度差を最大輝度差として記憶する。ここでは、輝度差の小さい画素は文字202、図形203を構成するとし、輝度差が大きい画素は地を構成するとする。
さらに、信号処理部112には輝度信号演算部116が設けられ、輝度信号演算部116は赤成分A/D変換器106、緑成分A/D変換器107、青成分A/D変換器108からデジタル信号に変換された赤成分信号、緑成分信号、青成分信号を入力しこれらを演算し輝度信号を検出する。
Further, the
Further, the
さらに、信号処理部112には最大輝度差取得色調整部117が設けられ、最大輝度差取得色調整部117は赤成分増幅率制御信号109だけを最大値に設定し、赤成分増幅器103の増幅率だけを最大にし、取り込んだ画素に対し、赤成分調整による最大輝度差取得動作を行う。
さらに、最大輝度差取得色調整部117は緑成分増幅率制御信号110だけを最大値に設定し、緑成分増幅器104の増幅率だけを最大にし、取り込んだ画素に対し、緑成分調整による最大輝度差取得動作を行う。
Further, the
Further, the maximum luminance difference acquisition
さらに、最大輝度差取得色調整部117は青成分増幅率制御信号111だけを最大値に設定し、青成分増幅器105だけの増幅率を最大にし、取り込んだ画素に対し、青成分調整による最大輝度差取得動作を行う。
さらに、最大輝度差取得色調整部117は画素位置情報信号119を用いてイメージセンサ102に対して取り込む画素を要求する。
Further, the maximum luminance difference acquisition
Further, the maximum luminance difference acquisition
さらに、信号処理部112には文字・図形認識部118が設けられ、文字・図形認識部118は輝度差記憶部115に得られた輝度差に対して、輝度差の小さい画素を文字202、図形203の画素として、輝度差の大きな画素を地の画素とし、輝度差を2値化し、白地に黒で記載された文字202、図形203と同様に、文字202、図形203の認識を行う。文字202、図形203の認識自体は周知の技術であるので説明を省略する。
Further, the
図2はレンズ101により撮影される撮影像の一例を示す図である。本図(a)に示すように、撮影像200には背景の赤色の地201に青色で文字202の「アイウ」が記載されており、本図(b)に示すように、撮影像200は赤色の地201に青色の図形(バーコード)203が記載されているとする。従来技術で説明したように、通常、撮影像200の赤色の地201と青色の文字202・図形203とは輝度がほぼ同じであり、双方の間には輝度差がない。
FIG. 2 is a diagram illustrating an example of a photographed image photographed by the
本図(a)において、例えば、背景の赤色の地201が赤色で、文字202の「アイ」が青色で「ウ」が緑色であってもよい。すなわち、文字202、図形203の色は、地201の色以外の2色であても、後述する図5、図6、図7の説明するように、最大輝度差取得が可能であるからである。
なお、撮影像200の横方向、縦方向の矢印に従って画素がイメージセンサ102から最大輝度差取得色調整部117に取り込まれる。
In this figure (a), for example, the
It should be noted that the pixels are taken from the
図3は図1における赤成分増幅率制御信号109、緑成分増幅率制御信号110、青成分増幅率制御信号111に設定される値を説明する図である。本図に示すように、赤成分増幅率制御信号109、緑成分増幅率制御信号110、青成分増幅率制御信号111には初期値として最小値がそれぞれ設定される。
赤成分調整時には、赤成分増幅率制御信号109には最大値が設定され、緑成分増幅率制御信号110、青成分増幅率制御信号111には初期値の最小値がそれぞれ設定される。
FIG. 3 is a diagram for explaining values set in the red component
At the time of red component adjustment, a maximum value is set for the red component
緑成分調整時には、緑成分増幅率制御信号110には最大値が設定され、青成分増幅率制御信号111、赤成分増幅率制御信号109には初期値の最小値がそれぞれ設定される。
青成分調整時には、青成分増幅率制御信号111には最大値が設定され、赤成分増幅率制御信号109、緑成分増幅率制御信号110には初期値の最小値がそれぞれ設定される。
At the time of green component adjustment, a maximum value is set for the green component
At the time of blue component adjustment, a maximum value is set for the blue component
図4は図1における最大輝度記憶部113、最小輝度記憶部114の初期値、赤、緑、青成分調整時の検出輝度信号の大きさを説明する図である。本図に示すように、最大輝度記憶部113の初期値を「a1」とし、最小輝度記憶部114の初期値を「b1」とする。
さらに、赤成分増幅率制御信号109、緑成分増幅率制御信号110、青成分増幅率制御信号111の全てに初期値(最小値)を設定した場合の検出輝度信号の大きさを「c1」とする。
FIG. 4 is a diagram for explaining the initial values of the maximum
Furthermore, the magnitude of the detected luminance signal when the initial value (minimum value) is set for all of the red component
さらに、赤、緑、青成分調整時に赤成分増幅率制御信号109、緑成分増幅率制御信号110、青成分増幅率制御信号111の1つに最大値を設定し他の2つに初期値(最小値)を設定した場合の検出輝度信号の大きさを「d1」とする。
さらに、輝度差記憶部115の初期値を「a1−b1」とする。
この場合、d1、a1、b1、c1には次の大小関係がある。
Further, when adjusting the red, green, and blue components, a maximum value is set for one of the red component
Furthermore, the initial value of the luminance
In this case, d1, a1, b1, and c1 have the following magnitude relationship.
d1>a1>c1>b1
a1−b1>a1−c1
図5、図6は図1における最大輝度差取得色調整部117の赤成分調整による最大輝度差取得動作例を説明するフローチャートである。
図5に示すように、ステップ301において、最大輝度差取得色調整部117は、赤成分増幅率制御信号109、緑成分増幅率制御信号110、青成分増幅率制御信号111を初期値(最小値)にそれぞれ設定し、輝度差記憶部115を初期値に設定する。
d1>a1>c1> b1
a1-b1> a1-c1
5 and 6 are flowcharts for explaining an example of the maximum luminance difference acquisition operation by the red component adjustment of the maximum luminance difference acquisition
As shown in FIG. 5, in step 301, the maximum luminance difference acquisition
ステップ302において、最大輝度差取得色調整部117は、取り込み画素位置の初期化を行う。
ステップ303において、i=0、j=0とする。
ステップ304において、最大輝度差取得色調整部117は、赤成分増幅器103に赤成分増幅率制御信号109の最大値を設定する。
In
In
In
ステップ305において、最大輝度差取得色調整部117は、赤成分増幅器103の調整を開始する。
ステップ306において、最大輝度差取得色調整部117は最大輝度記憶部113に初期値(a1)を設定、最小輝度記憶部114に初期値(b1)を設定する。
ステップ307において、最大輝度差取得色調整部117は画素位置情報信号119を介して1画素輝度信号を取り込む。
In
In
In
ステップ308において、最大輝度差取得色調整部117は輝度信号演算部116からの検出輝度信号の大きさと最大輝度記憶部113の初期値(a1)とを比較する。検出輝度信号の大きさが最大輝度記憶部113の初期値(a1)と等しいか又は小さい場合にはステップ310に進む。
ステップ309において、最大輝度差取得色調整部117は検出輝度信号の大きさが最大輝度記憶部113の初期値(a1)よりも大きい場合には、最大輝度記憶部113に設定されている初期値(a1)を輝度信号の大きさ(d1)に書き替える。
In
In
ステップ310において、最大輝度差取得色調整部117は輝度信号演算部116からの検出輝度信号の大きさと最小輝度記憶部114の初期値(b1)とを比較する。検出輝度信号の大きさが最小輝度記憶部114の初期値(b1)と等しいか又は大きい場合にはステップ312に進む。
ステップ311において、最大輝度差取得色調整部117は検出輝度信号の大きさが最小輝度記憶部114の初期値(b1)よりも小さい場合には、最小輝度記憶部114に設定されている初期値(b1)を輝度信号の大きさ(c1)に書き替える。
In
In
ステップ312において、最大輝度差取得色調整部117は最大輝度記憶部113、最小輝度記憶部114に記憶されている値について、最大輝度記憶部113−最小輝度記憶部114の演算を行い、輝度差記憶部115の初期値(a1−b1)と最大輝度記憶部113−最小輝度記憶部114の演算結果と比較を行う。輝度差記憶部115の初期値(a1−b1)が最大輝度記憶部113−最小輝度記憶部114の演算結果(a1−c1)よりも大きい場合にはステップ313に進み、輝度差記憶部115の初期値(a1−b1)が最大輝度記憶部113−最小輝度記憶部114の演算結果(d1−b1)と等しいか又は小さい場合にはステップ314に進む。
In
ステップ313において、この場合、取り込んだ画素が緑成分又は青成分の画素で赤成分増幅率制御信号109の最大値設定にもかかわらず輝度が小さいことを意味する。すなわち、jは輝度差の小さい画素の数を意味し、前述のように、輝度差の小さい画素は文字202、図形203を構成するとする。j=j+1とし緑色又は青色の文字202、図形203となるべき画素数を計算し、ステップ316に進む。
In
ステップ314において、最大輝度差取得色調整部117は輝度差記憶部115に設定されている初期値(a1−b1)を最大輝度記憶部113−最小輝度記憶部114の演算結果(d1−b1)に書き替える。
ステップ315において、この場合、取り込んだ画素が赤成分の画素で赤成分増幅率制御信号109の最大値設定で輝度が大きくなったことを意味する。すなわち、iは輝度差の大きい画素の数を意味し、前述のように、輝度差の大きい画素は地201を構成するとする。i=i+1とし背景が赤色地となるべき画素数の計算を行う。
In step 314, the maximum luminance difference acquisition
In
ステップ316において、最大輝度差取得色調整部117は取り込んだ画素が最終画素であるか否かを判断する。
ステップ317において、最大輝度差取得色調整部117は取り込んだ画素が最終画素でない場合、取り込み画素のアドレスを加算し、ステップ306に戻り、次の画素に対する最大輝度差取得動作を続行する。
In
In
図6に示すように、ステップ318において、最大輝度差取得色調整部117は取り込み画素が最終画素である場合、赤成分増幅率制御信号109の最大値設定を解除する。
ステップ319において、赤成分増幅器103の調整を終了する。
ステップ320において、最大輝度差取得色調整部117はj/i+jを演算しj/i+jと0.001を比較する。j/i+jが0.001と等しいか又はこれよりも大きい場合、ステップ323に進む。
As shown in FIG. 6, in
In
In
ステップ321において、最大輝度差取得色調整部117は、j/i+jが0.001よりも小さい場合、撮影像200は赤色のみの画素からなると判断する。
ステップ322において、最大輝度差取得色調整部117は、最大輝度差取得を不可と判断して処理を終了する。
In step 321, the maximum luminance difference acquisition
In step 322, the maximum luminance difference acquisition
ステップ323において、最大輝度差取得色調整部117は、j/i+jと0.999を比較する。j/i+jが0.999よりも大きい場合、ステップ329に進む。
ステップ324において、最大輝度差取得色調整部117は、j/i+jが0.999等しいか又はこれよりも小さい場合、最大輝度差取得を可能と判断する。
ステップ325において、j/i+jと0.5を比較する。赤色の画素が地201になるか、又は、文字202、図形203になるかの判断を行う。j/i+jが0.5よりも大きい場合、ステップ328に進む。
In
In step 324, the maximum luminance difference acquisition
In step 325, j / i + j is compared with 0.5. It is determined whether the red pixel is the
ステップ326において、最大輝度差取得色調整部117、j/i+jが0.5と等しいか又は小さい場合、赤色の画素を背景の地201の画素と確定する。
ステップ327において、最大輝度差取得色調整部117は、文字・図形認識部118で文字202、図形203を認識することが可能と判断する。すなわち、後述する図11における(1)又は(2)に示すように、地201が赤色、文字202、図形203が緑色、青色に対応する。輝度差記憶部115の輝度差を文字・図形認識部118に送り、文字・図形認識部118に対して認識を行わせ、従来のように、白色の地に黒色で記載されている文字202・図形203の認識と同様に認識率を低下させずに、認識が可能になる。
In
In
すなわち、背景が赤色の地201に緑色又は青色で記載された文字202、図形203の認識が可能になる。処理を終了する。
ステップ328において、この場合、赤色の画素を背景の地201と確定することが不可能と判断して、ステップ331に進み、次の処理に委ねる。
ステップ329において、最大輝度差取得色調整部117は、この場合、撮影像200が赤色以外の画素からなると判断する。
That is, it becomes possible to recognize the
In
In
ステップ330において、最大輝度差取得色調整部117は最大輝度差取得の可能性があると判断する。
ステップ331において、最大輝度差取得色調整部117は、図7に進み、次の色調整の処理を行う。
図7、図8は図5、図6の継続処理で、最大輝度差取得色調整部117の緑成分調整による最大輝度差取得動作例を説明するフローチャートである。
In
In
7 and 8 are flowcharts for explaining an example of the maximum luminance difference acquisition operation by the green component adjustment of the maximum luminance difference acquisition
図7に示すように、ステップ341において、図6のステップ331に続き、最大輝度差取得色調整部117は輝度差記憶部115を初期値に設定する。
ステップ342において、最大輝度差取得色調整部117は、取り込み画素位置の初期化を行う。
ステップ343において、i=0、j=0とする。
As shown in FIG. 7, in
In
In
ステップ344において、最大輝度差取得色調整部117は、緑成分増幅器104に緑成分増幅率制御信号110の最大値を設定する。
ステップ345において、最大輝度差取得色調整部117は、緑成分増幅器104の調整を開始する。
ステップ346において、最大輝度差取得色調整部117は最大輝度記憶部113に初期値(a1)を設定、最小輝度記憶部114に初期値(b1)を設定する。
In
In
In
ステップ347において、最大輝度差取得色調整部117は画素位置情報信号119を介して1画素輝度信号を取り込む。
ステップ348において、最大輝度差取得色調整部117は輝度信号演算部116からの検出輝度信号の大きさと最大輝度記憶部113の初期値(a1)とを比較する。検出輝度信号の大きさが最大輝度記憶部113の初期値(a1)と等しいか又は小さい場合にはステップ350に進む。
In
In
ステップ349において、最大輝度差取得色調整部117は検出輝度信号の大きさが最大輝度記憶部113の初期値(a1)よりも大きい場合には、最大輝度記憶部113に設定されている初期値(a1)を輝度信号の大きさ(d1)に書き替える。
ステップ350において、最大輝度差取得色調整部117は輝度信号演算部116からの検出輝度信号の大きさと最小輝度記憶部114の初期値(b1)とを比較する。検出輝度信号の大きさが最小輝度記憶部114の初期値(b1)と等しいか又は大きい場合にはステップ352に進む。
In
In
ステップ351において、最大輝度差取得色調整部117は検出輝度信号の大きさが最小輝度記憶部114の初期値(b1)よりも小さい場合には、最小輝度記憶部114に設定されている初期値(b1)を輝度信号の大きさ(c1)に書き替える。
ステップ352において、最大輝度差取得色調整部117は最大輝度記憶部113、最小輝度記憶部114に記憶されている値について、最大輝度記憶部113−最小輝度記憶部114の演算を行い、輝度差記憶部115の初期値(a1−b1)と最大輝度記憶部113−最小輝度記憶部114の演算結果と比較を行う。輝度差記憶部115の初期値(a1−b1)が最大輝度記憶部113−最小輝度記憶部114の演算結果(a1−c1)よりも大きい場合にはステップ353に進み、輝度差記憶部115の初期値(a1−b1)が最大輝度記憶部113−最小輝度記憶部114の演算結果(d1−b1)と等しいか又は小さい場合にはステップ354に進む。
In
In
ステップ353において、この場合、取り込んだ画素が青成分又は赤成分の画素で緑成分増幅率制御信号110の最大値設定にもかかわらず輝度が小さいことを意味する。すなわち、jは輝度差の小さい画素の数を意味し、前述のように、輝度差の小さい画素は文字202、図形203を構成するとする。j=j+1とし青色又は赤色の文字202、図形203となるべき画素数を計算し、ステップ356に進む。
In
ステップ354において、最大輝度差取得色調整部117は輝度差記憶部115に設定されている初期値(a1−b1)を最大輝度記憶部113−最小輝度記憶部114の演算結果(d1−b1)に書き替える。
ステップ355において、この場合、取り込んだ画素が緑成分の画素で緑成分増幅率制御信号110の最大値設定で輝度が大きくなったことを意味する。すなわち、iは輝度差の大きい画素の数を意味し、前述のように、輝度差の大きい画素は地201を構成するとする。i=i+1とし背景が緑色の地201となるべき画素数の計算を行う。
In
In
ステップ356において、最大輝度差取得色調整部117は取り込んだ画素が最終画素であるか否かを判断する。
ステップ357において、最大輝度差取得色調整部117は取り込んだ画素が最終画素でない場合、取り込み画素のアドレスを加算し、ステップ346に戻り、次の画素に対する最大輝度差取得動作を続行する。
In
In
図8に示すように、ステップ358において、最大輝度差取得色調整部117は取り込み画素が最終画素である場合、緑成分増幅率制御信号110の最大値設定を解除する。
ステップ359において、緑成分増幅器104の調整を終了する。
ステップ360において、最大輝度差取得色調整部117はj/i+jを演算しj/i+jと0.001を比較する。j/i+jが0.001と等しいか又はこれよりも大きい場合、ステップ363に進む。
As shown in FIG. 8, in
In
In
ステップ361において、最大輝度差取得色調整部117は、j/i+jが0.001よりも小さい場合、撮影像200は緑色のみの画素からなると判断する。
ステップ362において、最大輝度差取得色調整部117は、最大輝度差取得を不可と判断して処理を終了する。
In
In step 362, the maximum brightness difference acquisition
ステップ363において、最大輝度差取得色調整部117は、j/i+jと0.999を比較する。j/i+jが0.999よりも大きい場合、ステップ369に進む。
ステップ364において、最大輝度差取得色調整部117は、j/i+jが0.999等しいか又はこれよりも小さい場合、最大輝度差取得を可能と判断する。
ステップ365において、j/i+jと0.5を比較する。緑色の画素が地201になるか、又は、文字202、図形203になるかの判断を行う。j/i+jが0.5よりも大きい場合、ステップ368に進む。
In step 363, the maximum luminance difference acquisition
In step 364, the maximum luminance difference acquisition
In step 365, j / i + j is compared with 0.5. It is determined whether the green pixel becomes the
ステップ366において、最大輝度差取得色調整部117、j/i+jが0.5と等しいか又は小さい場合、緑色の画素を背景の地201の画素と確定する。
ステップ367において、最大輝度差取得色調整部117は、文字・図形認識部118で文字202、図形203を認識することが可能と判断する。すなわち、後述する図11における(3)又は(4)に示すように、地201が緑色、文字202、図形203が青色、赤色に対応する。輝度差記憶部115の輝度差を文字・図形認識部118に送り、文字・図形認識部118に対して認識を行わせ、従来のように、白色の地に黒色で記載されている文字202、図形203の認識と同様に認識率を低下させずに、認識が可能になる。
In step 366, when the maximum luminance difference acquisition
In
すなわち、背景が緑色の地201に青色又は赤色で記載された文字202、図形203の認識が可能になる。処理を終了する。
ステップ368において、この場合、緑色の画素を背景の地201と確定することが不可能と判断して、ステップ371に進み、次の処理に委ねる。
ステップ369において、最大輝度差取得色調整部117は、この場合、撮影像200が赤色、緑色以外の画素からなると判断する。
That is, it becomes possible to recognize the
In
In
ステップ370において、最大輝度差取得色調整部117は最大輝度差取得の可能性があると判断する。
ステップ371において、最大輝度差取得色調整部117は、図9に進み、次の色調整の処理を行う。
図9、図10は図7、図8の継続処理で、最大輝度差取得色調整部117の青成分調整による最大輝度差取得動作例を説明するフローチャートである。
In step 370, the maximum brightness difference acquisition
In step 371, the maximum luminance difference acquisition
FIGS. 9 and 10 are flowcharts for explaining an example of the maximum luminance difference acquisition operation by the blue component adjustment of the maximum luminance difference acquisition
図9に示すように、ステップ381において、図8のステップ371に続き、最大輝度差取得色調整部117は輝度差記憶部115を初期値に設定する。
ステップ382において、最大輝度差取得色調整部117は、取り込み画素位置の初期化を行う。
ステップ383において、i=0、j=0とする。
As shown in FIG. 9, in
In
In
ステップ384において、最大輝度差取得色調整部117は、青成分増幅器105に青成分増幅率制御信号111の最大値を設定する。
ステップ385において、最大輝度差取得色調整部117は、青成分増幅器105の調整を開始する。
ステップ386において、最大輝度差取得色調整部117は最大輝度記憶部113に初期値(a1)を設定、最小輝度記憶部114に初期値(b1)を設定する。
In
In
In
ステップ387において、最大輝度差取得色調整部117は画素位置情報信号119を介して1画素輝度信号を取り込む。
ステップ388において、最大輝度差取得色調整部117は輝度信号演算部116からの検出輝度信号の大きさと最大輝度記憶部113の初期値(a1)とを比較する。検出輝度信号の大きさが最大輝度記憶部113の初期値(a1)と等しいか又は小さい場合にはステップ390に進む。
In
In
ステップ389において、最大輝度差取得色調整部117は検出輝度信号の大きさが最大輝度記憶部113の初期値(a1)よりも大きい場合には、最大輝度記憶部113に設定されている初期値(a1)を輝度信号の大きさ(d1)に書き替える。
ステップ390において、最大輝度差取得色調整部117は輝度信号演算部116からの検出輝度信号の大きさと最小輝度記憶部114の初期値(b1)とを比較する。検出輝度信号の大きさが最小輝度記憶部114の初期値(b1)と等しいか又は大きい場合にはステップ392に進む。
In
In
ステップ391において、最大輝度差取得色調整部117は検出輝度信号の大きさが最小輝度記憶部114の初期値(b1)よりも小さい場合には、最小輝度記憶部114に設定されている初期値(b1)を輝度信号の大きさ(c1)に書き替える。
ステップ392において、最大輝度差取得色調整部117は最大輝度記憶部113、最小輝度記憶部114に記憶されている値について、最大輝度記憶部113−最小輝度記憶部114の演算を行い、輝度差記憶部115の初期値(a1−b1)と最大輝度記憶部113−最小輝度記憶部114の演算結果と比較を行う。輝度差記憶部115の初期値(a1−b1)が最大輝度記憶部113−最小輝度記憶部114の演算結果(a1−c1)よりも大きい場合にはステップ393に進み、輝度差記憶部115の初期値(a1−b1)が最大輝度記憶部113−最小輝度記憶部114の演算結果(d1−b1)と等しいか又は小さい場合にはステップ394に進む。
In
In
ステップ393において、この場合、取り込んだ画素が赤成分又は緑成分の画素で青成分増幅率制御信号111の最大値設定にもかかわらず輝度が小さいことを意味する。すなわち、jは輝度差の小さい画素の数を意味し、前述のように、輝度差の小さい画素は文字202、図形203を構成するとする。j=j+1とし赤色又は緑色の文字202、図形203となるべき画素数を計算し、ステップ396に進む。
In
ステップ394において、最大輝度差取得色調整部117は輝度差記憶部115に設定されている初期値(a1−b1)を最大輝度記憶部113−最小輝度記憶部114の演算結果(d1−b1)に書き替える。
ステップ395において、この場合、取り込んだ画素が青成分の画素で青成分増幅率制御信号111の最大値設定で輝度が大きくなったことを意味する。すなわち、iは輝度差の大きい画素の数を意味し、前述のように、輝度差の大きい画素は地201を構成するとする。i=i+1とし背景が青色の地201となるべき画素数の計算を行う。
In
In
ステップ396において、最大輝度差取得色調整部117は取り込んだ画素が最終画素であるか否かを判断する。
ステップ397において、最大輝度差取得色調整部117は取り込んだ画素が最終画素でない場合、取り込み画素のアドレスを加算し、ステップ386に戻り、次の画素に対する最大輝度差取得動作を続行する。
In
In
図10に示すように、ステップ398において、最大輝度差取得色調整部117は取り込み画素が最終画素である場合、青成分増幅率制御信号111の最大値設定を解除する。
ステップ399において、青成分増幅器105の調整を終了する。
ステップ400において、最大輝度差取得色調整部117はj/i+jを演算しj/i+jと0.001を比較する。j/i+jが0.001と等しいか又はこれよりも大きい場合、ステップ403に進む。
As shown in FIG. 10, in
In
In
ステップ401において、最大輝度差取得色調整部117は、j/i+jが0.001よりも小さい場合、撮影像200は青色のみの画素からなると判断する。
ステップ402において、最大輝度差取得色調整部117は、最大輝度差取得を不可と判断して処理を終了する。
In
In step 402, the maximum brightness difference acquisition
ステップ403において、この場合、最大輝度差取得色調整部117は、最大輝度差取得を可能と判断する。
ステップ404において、最大輝度差取得色調整部117は青色の画素を背景の地201の画素と確定する。
In
In
ステップ405において、最大輝度差取得色調整部117は、文字・図形認識部118で文字202、図形203を認識することが可能と判断する。すなわち、後述する図11における(5)又は(6)に示すように、地201が青色、文字202、図形203が赤色、緑色に対応する。輝度差記憶部115の輝度差を文字・図形認識部118に送り、文字・図形認識部118に対して認識を行わせ、従来のように、白色の地に黒色で記載されている文字202、図形203の認識と同様に認識率を低下させずに、認識が可能になる。
In
すなわち、背景が青色の地201に赤色又は緑色で記載された文字202、図形203の認識が可能になる。処理を終了する。
以上の説明では、赤成分増幅率制御信号109、緑成分増幅率制御信号110、青成分増幅率制御信号111の順番で赤成分増幅器103、緑成分増幅器104、青成分増幅器105に対して、最大増幅率の設定を行ったが、この順番は一例でありこれに制限されず、他の順番でもよい。以下同様である。
That is, the
In the above description, the maximum of
また、図6のステップ320、図8のステップ360、図10のステップ400ではj/i+jと0.001の比較を行っているが、比較の対象である「0.001」は一例であり、文字・図形認識部118による文字202、図形203の認識に最適な数値が選択される。以下同様である。
さらに、図6のステップ323、図8のステップ363ではj/i+jと0.999の比較を行っているが、比較の対象である「0.999」は一例であり、文字・図形認識部118による文字202、図形203の認識に最適な数値が選択される。以下同様である。
Further, in
Further, j / i + j and 0.999 are compared in
さらに、以上の説明では、地201の輝度を文字202、図形203の輝度よりも大きいとしたが、逆にであってもよい。文字・図形認識部118でどちらかに決めておけばよいことだからである。以下同様である。
図11は図2における撮影像200の地201と文字202、図形203との赤色、緑色、青色の3原色の組み合わせを説明する図である。撮影像200における背景の地201の色、文字202、図形203の色の組み合わせ例として、本図(a)に示すように、地201の赤色には文字202、図形203の緑色又は青色が対応し、地201の緑色には文字202、図形203の青色又は赤色が対応し、地201の青色には文字202、図形203の赤色又は緑色が対応する組み合わせがある。
Furthermore, in the above description, the brightness of the
FIG. 11 is a diagram illustrating a combination of the three primary colors red, green, and blue of the
前述のように、図11の(1)、(2)の組み合わせに対して、最大輝度差を取得するためには、図5、図6の処理が必要であり、図11の(3)、(4)の組み合わせに対して、最大輝度差を取得するためには、図5、図6→図7、図8の処理が必要であり、図11の(5)、(6)の組み合わせに対して、最大輝度差を取得するためには、図5、図6→図7、図8→図9、図10の処理が必要である。
本図(b)に示すように、地201の赤色には文字202、図形203の緑色及び青色が対応し、地201の緑色には文字202、図形203の青色及び赤色が対応し、地201の青色には文字202、図形203の赤色及び緑色が対応する組み合わせであってもよい。この場合でも、最大輝度差取得が可能である。地201と文字202、図形203の組み合わせの数を増すことが可能になる。
As described above, in order to obtain the maximum luminance difference with respect to the combination of (1) and (2) in FIG. 11, the processing in FIGS. 5 and 6 is necessary, and (3) in FIG. In order to obtain the maximum luminance difference for the combination of (4), the processing of FIG. 5, FIG. 6 → FIG. 7, and FIG. 8 is necessary, and the combination of (5) and (6) of FIG. On the other hand, in order to obtain the maximum luminance difference, the processes in FIGS. 5, 6 → 7, 8 → 9, and 10 are required.
As shown in FIG. 5B, the red color of the
したがって、本発明によれば、増幅率を最小に設定した赤成分、緑成分、青色成分の増幅器の増幅率を順番に最大にして、例えば、背景の赤色の地201に青色で記載された文字202、図形203に対しては、赤成分増幅器の増幅率を最大にして背景の赤色の地201の画素の輝度差を最大にし、青色で記載された文字202、図形203の画素の輝度差を最小にする色調整を行うようにしたので、従来のように、白色の地に黒色で記載されている文字202、図形203の認識と同様に認識率を低下させずに、文字202、図形203の認識が可能になる。
Therefore, according to the present invention, the amplification factors of the red component, the green component, and the blue component with the amplification factor set to the minimum are sequentially maximized, for example, characters written in blue on the
図12は図1の第1の変形例で1つの増幅器の増幅率を最小に固定した場合のカラーカメラの色調整システムの概略構成を示すブロック図である。本図に示すように、図1と比較して、一例として、赤成分増幅器103、青成分増幅器105の増幅率を調整可能にし、緑成分増幅器104の増幅率を固定にしている。すなわち、赤成分増幅率制御信号109、青成分増幅率制御信号111が赤成分増幅器103、青成分増幅器105の増幅率をそれぞれ制御するようにしてある。
FIG. 12 is a block diagram showing a schematic configuration of a color adjustment system of a color camera when the amplification factor of one amplifier is fixed to the minimum in the first modification of FIG. As shown in this figure, compared with FIG. 1, as an example, the amplification factors of the
上記例は一例であるので、増幅率を固定するものは、赤成分増幅器103、緑成分増幅器104、青成分増幅器105のうちいずれでもよい。
さらに、信号処理部112には輝度差反転部120が設けられ、輝度差反転部120は最小輝度記憶部114の輝度差を反転する機能を有する。
このようにしても、例えば、背景の赤色の地201に青色の文字202、図形203に対して、背景の赤色の地201の画素の輝度を最大にし、青色で記載された文字202、図形203の画素の輝度を最小にすることが以下のように可能である。
Since the above example is an example, any one of the
Further, the
Even in this case, for example, with respect to the
図13、図14は図12における最大輝度差取得色調整部117の赤成分調整による最大輝度差取得で1つの増幅率を固定した動作例を説明するフローチャートである。
図13に示すように、ステップ421において、最大輝度差取得色調整部117は、赤成分増幅率制御信号109、緑成分増幅率制御信号110を初期値(最小値)にそれぞれ設定し、輝度差記憶部115を初期値に設定する。
FIGS. 13 and 14 are flowcharts for explaining an operation example in which one amplification factor is fixed by acquiring the maximum luminance difference by the red component adjustment of the maximum luminance difference acquiring
As shown in FIG. 13, in
ステップ422において、最大輝度差取得色調整部117は、取り込み画素位置の初期化を行う。
ステップ423において、i=0、j=0とする。
ステップ424において、最大輝度差取得色調整部117は、赤成分増幅器103に赤成分増幅率制御信号109の最大値を設定する。
In
In
In
ステップ425において、最大輝度差取得色調整部117は、赤成分増幅器103の調整を開始する。
ステップ426において、最大輝度差取得色調整部117は最大輝度記憶部113に初期値(a1)を設定、最小輝度記憶部114に初期値(b1)を設定する。
ステップ427において、最大輝度差取得色調整部117は画素位置情報信号119を介して1画素輝度信号を取り込む。
In
In
In
ステップ428において、最大輝度差取得色調整部117は輝度信号演算部116からの検出輝度信号の大きさと最大輝度記憶部113の初期値(a1)とを比較する。検出輝度信号の大きさが最大輝度記憶部113の初期値(a1)と等しいか又は小さい場合にはステップ430に進む。
ステップ429において、最大輝度差取得色調整部117は検出輝度信号の大きさが最大輝度記憶部113の初期値(a1)よりも大きい場合には、最大輝度記憶部113に設定されている初期値(a1)を輝度信号の大きさ(d1)に書き替える。
In
In step 429, the maximum luminance difference acquisition
ステップ430において、最大輝度差取得色調整部117は輝度信号演算部116からの検出輝度信号の大きさと最小輝度記憶部114の初期値(b1)とを比較する。検出輝度信号の大きさが最小輝度記憶部114の初期値(b1)と等しいか又は大きい場合にはステップ432に進む。
ステップ431において、最大輝度差取得色調整部117は検出輝度信号の大きさが最小輝度記憶部114の初期値(b1)よりも小さい場合には、最小輝度記憶部114に設定されている初期値(b1)を輝度信号の大きさ(c1)に書き替える。
In
In
ステップ432において、最大輝度差取得色調整部117は最大輝度記憶部113、最小輝度記憶部114に記憶されている値について、最大輝度記憶部113−最小輝度記憶部114の演算を行い、輝度差記憶部115の初期値(a1−b1)と最大輝度記憶部113−最小輝度記憶部114の演算結果と比較を行う。輝度差記憶部115の初期値(a1−b1)が最大輝度記憶部113−最小輝度記憶部114の演算結果(a1−c1)よりも大きい場合にはステップ433に進み、輝度差記憶部115の初期値(a1−b1)が最大輝度記憶部113−最小輝度記憶部114の演算結果(d1−b1)と等しいか又は小さい場合にはステップ434に進む。
In step 432, the maximum luminance difference acquisition
ステップ433において、この場合、取り込んだ画素が緑成分又は青成分の画素で赤成分増幅率制御信号109の最大値設定にもかかわらず輝度が小さいことを意味する。すなわち、jは輝度差の小さい画素の数を意味し、前述のように、輝度差の小さい画素は文字202、図形203を構成するとする。j=j+1とし緑色又は青色の文字202、図形203となるべき画素数を計算し、ステップ436に進む。
In
ステップ434において、最大輝度差取得色調整部117は輝度差記憶部115に設定されている初期値(a1−b1)を最大輝度記憶部113−最小輝度記憶部114の演算結果(d1−b1)に書き替える。
ステップ435において、この場合、取り込んだ画素が赤成分の画素で赤成分増幅率制御信号109の最大値設定で輝度が大きくなったことを意味する。すなわち、iは輝度差の大きい画素の数を意味し、前述のように、輝度差の大きい画素は地201を構成するとする。i=i+1とし背景が赤色の地201となるべき画素数の計算を行う。
In
In step 435, in this case, the captured pixel is a red component pixel, which means that the luminance is increased by setting the maximum value of the red component amplification
ステップ436において、最大輝度差取得色調整部117は取り込んだ画素が最終画素であるか否かを判断する。
ステップ437において、最大輝度差取得色調整部117は取り込んだ画素が最終画素でない場合、取り込み画素のアドレスを加算し、ステップ426に戻り、次の画素に対する最大輝度差取得動作を続行する。
In
In
図14に示すように、ステップ438において、最大輝度差取得色調整部117は取り込み画素が最終画素である場合、赤成分増幅率制御信号109の最大値設定を解除する。
ステップ439において、赤成分増幅器103の調整を終了する。
ステップ440において、最大輝度差取得色調整部117はj/i+jを演算しj/i+jと0.001を比較する。j/i+jが0.001と等しいか又はこれよりも大きい場合、ステップ443に進む。
As shown in FIG. 14, in step 438, the maximum luminance difference acquisition
In step 439, the adjustment of the
In
ステップ441において、最大輝度差取得色調整部117は、j/i+jが0.001よりも小さい場合、撮影像200は赤色のみの画素からなると判断する。
ステップ442において、最大輝度差取得色調整部117は、最大輝度差取得を不可と判断して処理を終了する。
In
In step 442, the maximum brightness difference acquisition
ステップ443において、最大輝度差取得色調整部117は、j/i+jと0.999を比較する。j/i+jが0.999よりも大きい場合、ステップ450に進む。
ステップ444において、最大輝度差取得色調整部117は、j/i+jが0.999等しいか又はこれよりも小さい場合、最大輝度差取得を可能と判断する。
ステップ445において、j/i+jと0.5を比較する。赤色の画素が地201になるか、又は、文字202、図形203になるかの判断を行う。j/i+jが0.5よりも大きい場合、ステップ448に進む。
In
In step 444, the maximum luminance difference acquisition
In step 445, j / i + j is compared with 0.5. It is determined whether the red pixel is the
ステップ446において、最大輝度差取得色調整部117、j/i+jが0.5と等しいか又は小さい場合、赤色の画素を背景の地201の画素と確定する。
ステップ447において、最大輝度差取得色調整部117は、文字・図形認識部118で文字202、図形203を認識することが可能と判断する。すなわち、後述する図17における(1)又は(2)に示すように、地201が赤色、文字202、図形203が緑色、青色に対応する。輝度差記憶部115の輝度差を文字・図形認識部118に送り、文字・図形認識部118に対して認識を行わせ、従来のように、白色の地に黒色で記載されている文字202、図形203の認識と同様に認識率を低下させずに、認識が可能になる。
In step 446, when the maximum luminance difference acquisition
In
すなわち、背景が赤色の地201に緑色又は青色で記載された文字202、図形203の認識が可能になる。処理を終了する。
ステップ448において、この場合、最大輝度差取得色調整部117は輝度差反転部120に対して輝度差記憶部115に記憶されている輝度差のデータを反転させる。
ステップ449において、最大輝度差取得色調整部117は、輝度差記憶部115の反転された輝度差に対して、赤色の画素を文字202、図形203の画素として確定し、文字・図形認識部118で文字202、図形203を認識することが可能と判断する。ステップ487に進む。すなわち、後述する図17における(4)又は(5)に示すように、地201が緑色又は青色、文字202、図形203が赤色に対応する。輝度差記憶部115の輝度差を文字・図形認識部118に送り、文字・図形認識部118に対して認識を行わせ、従来のように、白色の地に黒色で記載されている文字202、図形203の認識と同様に認識率を低下させずに、認識が可能になる。
That is, it becomes possible to recognize the
In
In step 449, the maximum luminance difference acquisition
ステップ450において、最大輝度差取得色調整部117は、この場合、撮影像200が赤色以外の画素からなると判断する。
ステップ451において、最大輝度差取得色調整部117は最大輝度差取得の可能性があると判断する。
ステップ452において、最大輝度差取得色調整部117は、図15に進み、次の色調整の処理を行う。
In
In step 451, the maximum luminance difference acquisition
In step 452, the maximum luminance difference acquisition
図15、図16は図13、図14の継続処理で、最大輝度差取得色調整部117の青成分調整による最大輝度差取得で1つの増幅率を固定した動作例を説明するフローチャートである。
図15に示すように、ステップ461において、最大輝度差取得色調整部117は輝度差記憶部115を初期値に設定する。
ステップ462において、最大輝度差取得色調整部117は、取り込み画素位置の初期化を行う。
FIGS. 15 and 16 are flowcharts for explaining an operation example in which one amplification factor is fixed by the maximum luminance difference acquisition by blue component adjustment of the maximum luminance difference acquisition
As shown in FIG. 15, in
In
ステップ463において、i=0、j=0とする。
ステップ464において、最大輝度差取得色調整部117は、青成分増幅器105に青成分増幅率制御信号111の最大値を設定する。
ステップ465において、最大輝度差取得色調整部117は、青成分増幅器105の調整を開始する。
In step 463, i = 0 and j = 0.
In
In
ステップ466において、最大輝度差取得色調整部117は最大輝度記憶部113に初期値(a1)を設定、最小輝度記憶部114に初期値(b1)を設定する。
ステップ467において、最大輝度差取得色調整部117は画素位置情報信号119を介して1画素輝度信号を取り込む。
ステップ468において、最大輝度差取得色調整部117は輝度信号演算部116からの検出輝度信号の大きさと最大輝度記憶部113の初期値(a1)とを比較する。検出輝度信号の大きさが最大輝度記憶部113の初期値(a1)と等しいか又は小さい場合にはステップ470に進む。
In
In
In
ステップ469において、最大輝度差取得色調整部117は検出輝度信号の大きさが最大輝度記憶部113の初期値(a1)よりも大きい場合には、最大輝度記憶部113に設定されている初期値(a1)を輝度信号の大きさ(d1)に書き替える。
ステップ470において、最大輝度差取得色調整部117は輝度信号演算部116からの検出輝度信号の大きさと最小輝度記憶部114の初期値(b1)とを比較する。検出輝度信号の大きさが最小輝度記憶部114の初期値(b1)と等しいか又は大きい場合にはステップ472に進む。
In
In
ステップ471において、最大輝度差取得色調整部117は検出輝度信号の大きさが最小輝度記憶部114の初期値(b1)よりも小さい場合には、最小輝度記憶部114に設定されている初期値(b1)を輝度信号の大きさ(c1)に書き替える。
ステップ472において、最大輝度差取得色調整部117は最大輝度記憶部113、最小輝度記憶部114に記憶されている値について、最大輝度記憶部113−最小輝度記憶部114の演算を行い、輝度差記憶部115の初期値(a1−b1)と最大輝度記憶部113−最小輝度記憶部114の演算結果と比較を行う。輝度差記憶部115の初期値(a1−b1)が最大輝度記憶部113−最小輝度記憶部114の演算結果(a1−c1)よりも大きい場合にはステップ473に進み、輝度差記憶部115の初期値(a1−b1)が最大輝度記憶部113−最小輝度記憶部114の演算結果(d1−b1)と等しいか又は小さい場合にはステップ474に進む。
In step 471, the maximum luminance difference acquisition
In step 472, the maximum luminance difference acquisition
ステップ473において、この場合、取り込んだ画素が赤成分又は緑成分の画素で青成分増幅率制御信号111の最大値設定にもかかわらず輝度が小さいことを意味する。すなわち、jは輝度差の小さい画素の数を意味し、前述のように、輝度差の小さい画素は文字202、図形203を構成するとする。j=j+1とし赤色又は緑色の文字202、図形203となるべき画素数を計算し、ステップ476に進む。
In step 473, this means that the captured pixel is a red component or green component pixel, and the luminance is small despite the maximum value setting of the blue component amplification
ステップ474において、最大輝度差取得色調整部117は輝度差記憶部115に設定されている初期値(a1−b1)を最大輝度記憶部113−最小輝度記憶部114の演算結果(d1−b1)に書き替える。
ステップ475において、この場合、取り込んだ画素が青成分の画素で青成分増幅率制御信号111の最大値設定で輝度が大きくなったことを意味する。すなわち、iは輝度差の大きい画素の数を意味し、前述のように、輝度差の大きい画素は地201を構成するとする。i=i+1とし背景が青色の地201となるべき画素数の計算を行う。
In step 474, the maximum luminance difference acquisition
In
ステップ476において、最大輝度差取得色調整部117は取り込んだ画素が最終画素であるか否かを判断する。
ステップ477において、最大輝度差取得色調整部117は取り込んだ画素が最終画素でない場合、取り込み画素のアドレスを加算し、ステップ466に戻り、次の画素に対する最大輝度差取得動作を続行する。
In step 476, the maximum luminance difference acquisition
In step 477, if the captured pixel is not the final pixel, the maximum brightness difference acquisition
図16に示すように、ステップ478において、最大輝度差取得色調整部117は取り込み画素が最終画素である場合、青成分増幅率制御信号111の最大値設定を解除する。
ステップ479において、青成分増幅器105の調整を終了する。
ステップ480において、最大輝度差取得色調整部117はj/i+jを演算しj/i+jと0.001を比較する。j/i+jが0.001と等しいか又はこれよりも大きい場合、ステップ483に進む。
As shown in FIG. 16, in step 478, the maximum luminance difference acquisition
In
In
ステップ481において、最大輝度差取得色調整部117は、j/i+jが0.001よりも小さい場合、撮影像200は青色のみの画素からなると判断する。
ステップ482において、最大輝度差取得色調整部117は、最大輝度差取得を不可と判断して処理を終了する。
ステップ483において、この場合、最大輝度差取得色調整部117は、最大輝度差取得を可能と判断する。
In step 481, the maximum luminance difference acquisition
In
In
ステップ484において、j/i+jと0.5を比較する。青色の画素が地201になるか、又は、文字202、図形203になるかの判断を行う。j/i+jが0.5よりも大きい場合、ステップ487に進む。
ステップ485において、最大輝度差取得色調整部117は、j/i+jが0.5と等しいか又は小さい場合、青色の画素を背景の地201の画素と確定する。
In
In step 485, the maximum luminance difference acquisition
ステップ486において、最大輝度差取得色調整部117は、文字・図形認識部118で文字202、図形203を認識することが可能と判断する。すなわち、後述する図17における(6)に示すように、地201が青色、文字202、図形203が緑色に対応する。輝度差記憶部115の輝度差を文字・図形認識部118に送り、文字・図形認識部118に対して認識を行わせ、従来のように、白色の地に黒色で記載されている文字202、図形203の認識と同様に認識率を低下させずに、認識が可能になる。
In step 486, the maximum luminance difference acquisition
すなわち、背景が青色の地201に緑色で記載された文字202、図形203の認識が可能になる。処理を終了する。
ステップ487において、この場合、最大輝度差取得色調整部117は輝度差反転部120に対して輝度差記憶部115に記憶されている輝度差のデータを反転させる。
ステップ488において、最大輝度差取得色調整部117は、輝度差記憶部115の反転された輝度差に対して、青色の画素を文字202、図形203の画素として確定し、文字・図形認識部118で文字202、図形203を認識することが可能と判断する。ステップ488に進む。すなわち、後述する図17における(3)に示すように、地201が緑色、文字202、図形203が青色に対応する。輝度差記憶部115の輝度差を文字・図形認識部118に送り、文字・図形認識部118に対して認識を行わせ、従来のように、白色の地に黒色で記載されている文字202、図形203の認識と同様に認識率を低下させずに、認識が可能になる。
すなわち、背景が緑色の地201に青色で記載された文字202、図形203の認識が可能になる。
That is, it becomes possible to recognize the
In
In
That is, it becomes possible to recognize the
以上における図13−16の説明では、赤成分増幅率制御信号109、青成分増幅率制御信号111の順番で赤成分増幅器103、青成分増幅器105に対して、最大増幅率の設定を行ったが、この順番は一例でありこれの逆であってもよい。
図17は図11を用いて図13−図16の最大輝度差取得色調整部117の最大輝度差取得動作例に基づく、撮影像200の地201の色と文字202、図形203の色の組み合わせを説明する図である。
In the description of FIGS. 13-16 above, the maximum amplification factor is set for the
FIG. 17 is a combination of the color of the
輝度差反転部120を設けて、最大輝度差と最小輝度差の画素を相互に反転するようにし、図11の組み合わせの実現を可能にするようにした。
最大輝度差を取得するためには、前述のように、図13、図14の処理、図13、図14(反転:ステップ448、ステップ449参照)の処理、図13、図14→図15、図16の処理、図13、図14→図15、図16(反転:ステップ487、ステップ488参照)の処理が必要である。
The luminance
In order to obtain the maximum luminance difference, as described above, the processing in FIGS. 13 and 14, the processing in FIGS. 13 and 14 (inversion: see
したがって、本発明によれば、緑成分増幅器104の増幅率を固定し、赤成分増幅器103、青成分増幅器105の増幅率を可変にすることにより、例えば、背景の赤色の地201に青色の文字202、図形203に対して、背景の赤色の地201の画素の輝度を最大にし、青色で記載された文字202、図形203の画素の輝度を最小にすることが可能になる。
Therefore, according to the present invention, the amplification factor of the
図12の構成例では緑成分増幅器104の増幅率を固定し、図13−図16の例では、赤成分増幅器103、青成分増幅器105の増幅率を可変にしたが、この例は一例であり、赤成分増幅器103、緑成分増幅器104、青成分増幅器105のうち任意の1つを固定し、他の2つを可変にするように同様の効果を得ることが可能である。
したがって、本発明によれば、増幅率を最小に設定した赤成分、緑成分、青色成分の増幅器の任意の1つの増幅率を最小に固定し、他の2つを交互に最大にして、増幅率を最小に設定した赤成分、青色成分の増幅器の増幅率を順番に最大にして、例えば、背景の赤色の地201に青色で記載された文字202、図形203に対しては、赤成分増幅器の増幅率を最大にして背景の赤色の地201の画素の輝度差を最大にし、青色で記載された文字202、図形203の画素の輝度差を最小にする色調整を行うようにし、背景の赤色の地201に青色で記載された文字202、図形203に対しては、青成分増幅器の増幅率を最大にした場合には、得られた輝度差を反転するようにしたので、従来のように、白色の地に黒色で記載されている文字202、図形203の認識と同様に認識率を低下させずに、文字202、図形203の認識が可能になる。
In the configuration example of FIG. 12, the amplification factor of the
Therefore, according to the present invention, the amplification factor of any one of the red, green, and blue component amplifiers whose amplification factors are set to the minimum is fixed to the minimum, and the other two are alternately maximized to amplify. For example, for the
以上は、赤色、緑色、青色の3原色について説明したが、さらに、中間色として、黄色、シアン、マゼンタを加えた場合の最大輝度差取得について、図1の構成を用いて、説明する。
図18、図19は図1における最大輝度差取得色調整部117の赤成分調整による最大輝度差取得で中間色を加えた動作例を説明するフローチャートである。
The above description has been given for the three primary colors of red, green, and blue. Further, the acquisition of the maximum luminance difference when yellow, cyan, and magenta are added as intermediate colors will be described using the configuration of FIG.
18 and 19 are flowcharts for explaining an operation example in which intermediate colors are added in the maximum luminance difference acquisition by the red component adjustment of the maximum luminance difference acquisition
図18に示すように、ステップ501において、最大輝度差取得色調整部117は、赤成分増幅率制御信号109、緑成分増幅率制御信号110、青成分増幅率制御信号111を初期値(最小値)にそれぞれ設定し、輝度差記憶部115を初期値に設定する。
ステップ502において、最大輝度差取得色調整部117は、取り込み画素位置の初期化を行う。
As shown in FIG. 18, in
In
ステップ503において、i=0、j=0とする。
ステップ504において、最大輝度差取得色調整部117は、赤成分増幅器103に赤成分増幅率制御信号109の最大値を設定する。
ステップ505において、最大輝度差取得色調整部117は、赤成分増幅器103の調整を開始する。
In
In
In
ステップ506において、最大輝度差取得色調整部117は最大輝度記憶部113に初期値(a1)を設定、最小輝度記憶部114に初期値(b1)を設定する。
ステップ507において、最大輝度差取得色調整部117は画素位置情報信号119を介して1画素輝度信号を取り込む。
ステップ508において、最大輝度差取得色調整部117は輝度信号演算部116からの検出輝度信号の大きさと最大輝度記憶部113の初期値(a1)とを比較する。検出輝度信号の大きさが最大輝度記憶部113の初期値(a1)と等しいか又は小さい場合にはステップ510に進む。
In
In
In
ステップ509において、最大輝度差取得色調整部117は検出輝度信号の大きさが最大輝度記憶部113の初期値(a1)よりも大きい場合には、最大輝度記憶部113に設定されている初期値(a1)を輝度信号の大きさ(d1)に書き替える。
ステップ510において、最大輝度差取得色調整部117は輝度信号演算部116からの検出輝度信号の大きさと最小輝度記憶部114の初期値(b1)とを比較する。検出輝度信号の大きさが最小輝度記憶部114の初期値(b1)と等しいか又は大きい場合にはステップ512に進む。
In
In step 510, the maximum luminance difference acquisition
ステップ511において、最大輝度差取得色調整部117は検出輝度信号の大きさが最小輝度記憶部114の初期値(b1)よりも小さい場合には、最小輝度記憶部114に設定されている初期値(b1)を輝度信号の大きさ(c1)に書き替える。
ステップ512において、最大輝度差取得色調整部117は最大輝度記憶部113、最小輝度記憶部114に記憶されている値について、最大輝度記憶部113−最小輝度記憶部114の演算を行い、輝度差記憶部115の初期値(a1−b1)と最大輝度記憶部113−最小輝度記憶部114の演算結果と比較を行う。輝度差記憶部115の初期値(a1−b1)が最大輝度記憶部113−最小輝度記憶部114の演算結果(a1−c1)よりも大きい場合にはステップ513に進み、輝度差記憶部115の初期値(a1−b1)が最大輝度記憶部113−最小輝度記憶部114の演算結果(d1−b1)と等しいか又は小さい場合にはステップ514に進む。
In
In
ステップ513において、この場合、取り込んだ画素が赤成分増幅率制御信号109の最大値設定にもかかわらずその輝度が小さいことを意味する。すなわち、jは輝度差の小さい画素の数を意味し、前述のように、輝度差の小さい画素は文字202、図形203を構成するとする。j=j+1とし文字202、図形203となるべき画素数を計算し、ステップ516に進む。
In
ステップ514において、最大輝度差取得色調整部117は輝度差記憶部115に設定されている初期値(a1−b1)を最大輝度記憶部113−最小輝度記憶部114の演算結果(d1−b1)に書き替える。
ステップ515において、この場合、取り込んだ画素が赤成分増幅率制御信号109の最大値設定でその輝度が大きくなったことを意味する。すなわち、iは輝度差の大きい画素の数を意味し、前述のように、輝度差の大きい画素は地201を構成するとする。i=i+1とし背景の地201となるべき画素数の計算を行う。
In
In
ステップ516において、最大輝度差取得色調整部117は取り込んだ画素が最終画素であるか否かを判断する。
ステップ517において、最大輝度差取得色調整部117は取り込んだ画素が最終画素でない場合、取り込み画素のアドレスを加算し、ステップ506に戻り、次の画素に対する最大輝度差取得動作を続行する。
In
In
図19に示すように、ステップ518において、最大輝度差取得色調整部117は取り込み画素が最終画素である場合、赤成分増幅率制御信号109の最大値設定を解除する。
ステップ519において、赤成分増幅器103の調整を終了する。
ステップ520において、最大輝度差取得色調整部117はj/i+jを演算しj/i+jと0.001を比較する。j/i+jが0.001と等しいか又はこれよりも大きい場合、ステップ521に進む。
As shown in FIG. 19, in step 518, the maximum luminance difference acquisition
In step 519, the adjustment of the
In step 520, the maximum luminance difference acquisition
ステップ521において、最大輝度差取得色調整部117は、j/i+jが0.001よりも小さい場合、撮影像200は赤色、黄色、マゼンタのみの画素からなると判断する。すなわち、撮影像200は赤色、黄色、マゼンタ単独の画素の場合と、さらに、赤色と黄色の画素、黄色とマゼンタの画素、マゼンタと赤色の画素からなる2つの色の組み合わせの場合がある。
In step 521, the maximum luminance difference acquisition
撮影像200が赤色と黄色の画素、黄色とマゼンタの画素、マゼンタと赤色の画素である場合には、一方の色が地201であり、他方の色が文字202、図形203である場合があり、最大輝度差取得の可能性がある。このため、ステップ530に進み、図14、図15で最大輝度差取得の処理を行う。なお、撮影像200が赤色、黄色、マゼンタ単独の画素である場合には最大輝度差取得が不可であるので、この場合には、後述する図23のステップ602で最大輝度差取得不可の処理を行う。
When the photographed
ステップ522において、最大輝度差取得色調整部117は、j/i+jと0.999を比較する。j/i+jが0.999よりも大きい場合、ステップ529に進む。
ステップ523において、最大輝度差取得色調整部117は、j/i+jが0.999等しいか又はこれよりも小さい場合、最大輝度差取得を可能と判断する。
ステップ524において、j/i+jと0.5を比較する。赤色、黄色又はマゼンタのいずれか1つの画素が地201の画素になるか、又は、文字202、図形203の画素になるかの判断を行う。j/i+jが0.5よりも大きい場合、ステップ527に進み、図20−図23の処理に委ねる。
In
In
In
ステップ525において、最大輝度差取得色調整部117、j/i+jが0.5と等しいか又は小さい場合、赤色、黄色又はマゼンタのいずれか1つの画素を背景の地201の画素と確定する。
ステップ526において、最大輝度差取得色調整部117は、文字・図形認識部118で文字202、図形203を認識することが可能と判断する。すなわち、後述する図24の(1)、(2)、(8)、(9)、(15)、(23)、(24)、(26)、(27)が対応する。輝度差記憶部115の輝度差を文字・図形認識部118に送り、文字・図形認識部118に対して認識を行わせ、従来のように、白色の地に黒色で記載されている文字202、図形203の認識と同様に認識率を低下させずに、認識が可能になる。処理を終了する。
In
In
ステップ527において、この場合、最大輝度差取得色調整部117は輝度差反転部120に対して輝度差記憶部115に記憶されている輝度差のデータを反転させる。
ステップ528において、最大輝度差取得色調整部117は、輝度差記憶部115の反転された輝度差に対して、赤色、黄色又はマゼンタのいずれか1つの画素を文字202、図形203の画素と確定し、文字・図形認識部118で文字202、図形203を認識することが可能と判断する。ステップ526に進む。すなわち、後述する図24の(4)、(5)、(11)、(16)、(19)、(20)が対応する。輝度差記憶部115の輝度差を文字・図形認識部118に送り、文字・図形認識部118に対して認識を行わせ、従来のように、白色の地に黒色で記載されている文字202、図形203の認識と同様に認識率を低下させずに、認識が可能になる。
In
In step 528, the maximum luminance difference acquisition
ステップ529において、この場合、最大輝度差取得色調整部117は、撮影像200が赤色、黄色、マゼンタ以外の画素からなると判断し、図20−図23の処理に委ねる。
ステップ530において、最大輝度差取得色調整部117は最大輝度差取得の可能性があると判断する。
In
In step 530, the maximum luminance difference acquisition
ステップ5に531いて、最大輝度差取得色調整部117は、図20に進み、次の色調整の処理を行う。
図20、図21は図18、図19の継続処理で、最大輝度差取得色調整部117の緑成分調整による最大輝度差取得で中間色を加えた動作例を説明するフローチャートである。
図20に示すように、ステップ541において、図19のステップ532に続き、最大輝度差取得色調整部117は輝度差記憶部115を初期値に設定する。
In
FIGS. 20 and 21 are flowcharts for explaining an operation example in which intermediate colors are added by the maximum luminance difference acquisition by the green component adjustment of the maximum luminance difference acquisition
As shown in FIG. 20, in
ステップ542において、最大輝度差取得色調整部117は、取り込み画素位置の初期化を行う。
ステップ543において、i=0、j=0とする。
ステップ345において、最大輝度差取得色調整部117は、緑成分増幅器104に緑成分増幅率制御信号110の最大値を設定する。
In
In
In
ステップ544において、最大輝度差取得色調整部117は、緑成分増幅器104の調整を開始する。
ステップ546において、最大輝度差取得色調整部117は最大輝度記憶部113に初期値(a1)を設定、最小輝度記憶部114に初期値(b1)を設定する。
ステップ547において、最大輝度差取得色調整部117は画素位置情報信号119を介して1画素輝度信号を取り込む。
In step 544, the maximum luminance difference acquisition
In
In
ステップ548において、最大輝度差取得色調整部117は輝度信号演算部116からの検出輝度信号の大きさと最大輝度記憶部113の初期値(a1)とを比較する。検出輝度信号の大きさが最大輝度記憶部113の初期値(a1)と等しいか又は小さい場合にはステップ550に進む。
ステップ549において、最大輝度差取得色調整部117は検出輝度信号の大きさが最大輝度記憶部113の初期値(a1)よりも大きい場合には、最大輝度記憶部113に設定されている初期値(a1)を輝度信号の大きさ(d1)に書き替える。
In
In
ステップ550において、最大輝度差取得色調整部117は輝度信号演算部116からの検出輝度信号の大きさと最小輝度記憶部114の初期値(b1)とを比較する。検出輝度信号の大きさが最小輝度記憶部114の初期値(b1)と等しいか又は大きい場合にはステップ552に進む。
ステップ551において、最大輝度差取得色調整部117は検出輝度信号の大きさが最小輝度記憶部114の初期値(b1)よりも小さい場合には、最小輝度記憶部114に設定されている初期値(b1)を輝度信号の大きさ(c1)に書き替える。
In
In
ステップ552において、最大輝度差取得色調整部117は最大輝度記憶部113、最小輝度記憶部114に記憶されている値について、最大輝度記憶部113−最小輝度記憶部114の演算を行い、輝度差記憶部115の初期値(a1−b1)と最大輝度記憶部113−最小輝度記憶部114の演算結果と比較を行う。輝度差記憶部115の初期値(a1−b1)が最大輝度記憶部113−最小輝度記憶部114の演算結果(a1−c1)よりも大きい場合にはステップ553に進み、輝度差記憶部115の初期値(a1−b1)が最大輝度記憶部113−最小輝度記憶部114の演算結果(d1−b1)と等しいか又は小さい場合にはステップ554に進む。
In
ステップ553において、この場合、取り込んだ画素が緑成分増幅率制御信号110の最大値設定にもかかわらず輝度が小さいことを意味する。すなわち、jは輝度差の小さい画素の数を意味し、前述のように、輝度差の小さい画素は文字202、図形203を構成するとする。j=j+1とし文字202、図形203となるべき画素数を計算し、ステップ556に進む。
In
ステップ554において、最大輝度差取得色調整部117は輝度差記憶部115に設定されている初期値(a1−b1)を最大輝度記憶部113−最小輝度記憶部114の演算結果(d1−b1)に書き替える。
ステップ555において、この場合、取り込んだ画素が緑成分増幅率制御信号110の最大値設定で輝度が大きくなったことを意味する。すなわち、iは輝度差の大きい画素の数を意味し、前述のように、輝度差の大きい画素は地201を構成するとする。i=i+1とし背景の地201となるべき画素数の計算を行う。
In
In
ステップ556において、最大輝度差取得色調整部117は取り込んだ画素が最終画素であるか否かを判断する。
ステップ557において、最大輝度差取得色調整部117は取り込んだ画素が最終画素でない場合、取り込み画素のアドレスを加算し、ステップ346に戻り、次の画素に対する最大輝度差取得動作を続行する。
In
In
図21に示すように、ステップ558において、最大輝度差取得色調整部117は取り込み画素が最終画素である場合、緑成分増幅率制御信号110の最大値設定を解除する。
ステップ559において、緑成分増幅器104の調整を終了する。
ステップ560において、最大輝度差取得色調整部117はj/i+jを演算しj/i+jと0.001を比較する。j/i+jが0.001と等しいか又はこれよりも大きい場合、ステップ563に進む。
As shown in FIG. 21, in
In
In step 560, the maximum luminance difference acquisition
ステップ561において、最大輝度差取得色調整部117は、撮影像200が緑色、黄色、マゼンタのみの画素からなると判断する。すなわち、撮影像200は緑色、黄色、マゼンタ単独の画素の場合と、さらに、緑色と黄色の画素、黄色とマゼンタの画素、マゼンタと緑色の画素からなる2つの色の組み合わせの場合がある。
In
撮影像200が緑色と黄色の画素、黄色とマゼンタの画素、マゼンタと緑色の画素である場合には、一方の色が地201であり、他方の色が文字202、図形203である場合があり、最大輝度差取得の可能性がある。このため、ステップ570に進み、図22、図23の処理に委ねる。
なお、撮影像200が緑色、黄色、マゼンタ単独の画素である場合には最大輝度差取得を不可であるので、この場合には、後述する図23のステップ602で最大輝度差取得不可の処理を行う。
When the photographed
Since the maximum brightness difference cannot be acquired when the captured
ステップ562において、最大輝度差取得色調整部117は、j/i+jと0.999を比較する。j/i+jが0.999よりも大きい場合、ステップ569に進む。
ステップ563において、最大輝度差取得色調整部117は、j/i+jが0.999等しいか又はこれよりも小さい場合、最大輝度差取得を可能と判断する。
ステップ564において、j/i+jと0.5を比較する。緑色、黄色又はシアンのいずれか1つの画素が地201の画素になるか、又は、文字202、図形203の画素になるかの判断を行う。j/i+jが0.5よりも大きい場合、ステップ567に進む。
In step 562, the maximum luminance difference acquisition
In
In
ステップ565において、最大輝度差取得色調整部117、j/i+jが0.5と等しいか又は小さい場合、緑色、黄色又はシアンのいずれか1つの画素を背景の地201の画素と確定する。
ステップ566において、最大輝度差取得色調整部117は、文字・図形認識部118で文字202、図形203を認識することが可能と判断する。すなわち、後述する図24における(3)、(7)、(12)、(17)、(22)、(28)、(30)に対応する。輝度差記憶部115の輝度差を文字・図形認識部118に送り、文字・図形認識部118に対して認識を行わせ、従来のように、白色の地に黒色で記載されている文字202、図形203の認識と同様に認識率を低下させずに、認識が可能になる。処理を終了する。
In
In
ステップ567において、この場合、最大輝度差取得色調整部117は輝度差反転部120に対して輝度差記憶部115に記憶されている輝度差のデータを反転させる。
ステップ568において、最大輝度差取得色調整部117は、輝度差記憶部115の反転された輝度差に対して、緑色、黄色、又はシアンのいずれか1つの画素を文字202、図形203の画素と確定し、文字・図形認識部118で文字202、図形203を認識することが可能と判断する。ステップ566に進む。すなわち、後述する図24の(6)、(10)、(13)、(21)が対応する。輝度差記憶部115の輝度差を文字・図形認識部118に送り、文字・図形認識部118に対して認識を行わせ、従来のように、白色の地に黒色で記載されている文字・図形203の認識と同様に認識率を低下させずに、認識が可能になる。
In step 567, in this case, the maximum luminance difference acquisition
In
ステップ569において、この場合、最大輝度差取得色調整部117は、撮影像200が緑色、黄色又はマゼンタ以外の画素からなると判断し、図22、図23の処理に委ねる。
ステップ570において、最大輝度差取得色調整部117は最大輝度差取得の可能性があるとと判断する。
In
In
ステップ571において、最大輝度差取得色調整部117は、図22に進み、次の色調整の処理を行う。
図22、図23は図20、図21の継続処理で、最大輝度差取得色調整部117の青成分調整による最大輝度差取得で中間色を加えた動作例を説明するフローチャートである。
図22に示すように、ステップ581において、最大輝度差取得色調整部117は、図21のステップ571に続き、輝度差記憶部115を初期値に設定する。
In
FIGS. 22 and 23 are flowcharts for explaining an operation example in which the intermediate color is added by the maximum luminance difference acquisition by the blue component adjustment of the maximum luminance difference acquisition
As shown in FIG. 22, in
ステップ582において、最大輝度差取得色調整部117は、取り込み画素位置の初期化を行う。
ステップ583において、i=0、j=0とする。
ステップ584において、最大輝度差取得色調整部117は、青成分増幅器105に青成分増幅率制御信号111の最大値を設定する。
In
In
In
ステップ585において、最大輝度差取得色調整部117は、青成分増幅器105の調整を開始する。
ステップ586において、最大輝度差取得色調整部117は最大輝度記憶部113に初期値(a1)を設定、最小輝度記憶部114に初期値(b1)を設定する。
ステップ587において、最大輝度差取得色調整部117は画素位置情報信号119を介して1画素輝度信号を取り込む。
In
In
In
ステップ588において、最大輝度差取得色調整部117は輝度信号演算部116からの検出輝度信号の大きさと最大輝度記憶部113の初期値(a1)とを比較する。検出輝度信号の大きさが最大輝度記憶部113の初期値(a1)と等しいか又は小さい場合にはステップ590に進む。
ステップ589において、最大輝度差取得色調整部117は検出輝度信号の大きさが最大輝度記憶部113の初期値(a1)よりも大きい場合には、最大輝度記憶部113に設定されている初期値(a1)を輝度信号の大きさ(d1)に書き替える。
In
In
ステップ590において、最大輝度差取得色調整部117は輝度信号演算部116からの検出輝度信号の大きさと最小輝度記憶部114の初期値(b1)とを比較する。検出輝度信号の大きさが最小輝度記憶部114の初期値(b1)と等しいか又は大きい場合にはステップ592に進む。
ステップ591において、最大輝度差取得色調整部117は検出輝度信号の大きさが最小輝度記憶部114の初期値(b1)よりも小さい場合には、最小輝度記憶部114に設定されている初期値(b1)を輝度信号の大きさ(c1)に書き替える。
In
In
ステップ592において、最大輝度差取得色調整部117は最大輝度記憶部113、最小輝度記憶部114に記憶されている値について、最大輝度記憶部113−最小輝度記憶部114の演算を行い、輝度差記憶部115の初期値(a1−b1)と最大輝度記憶部113−最小輝度記憶部114の演算結果と比較を行う。輝度差記憶部115の初期値(a1−b1)が最大輝度記憶部113−最小輝度記憶部114の演算結果(a1−c1)よりも大きい場合にはステップ593に進み、輝度差記憶部115の初期値(a1−b1)が最大輝度記憶部113−最小輝度記憶部114の演算結果(d1−b1)と等しいか又は小さい場合にはステップ594に進む。
In
ステップ593において、この場合、取り込んだ画素が青成分増幅率制御信号111の最大値設定にもかかわらず輝度が小さいことを意味する。すなわち、jは輝度差の小さい画素の数を意味し、前述のように、輝度差の小さい画素は文字202、図形203を構成するとする。j=j+1とし文字、図形203となるべき画素数を計算し、ステップ596に進む。
In
ステップ594において、最大輝度差取得色調整部117は輝度差記憶部115に設定されている初期値(a1−b1)を最大輝度記憶部113−最小輝度記憶部114の演算結果(d1−b1)に書き替える。
ステップ595において、この場合、取り込んだ画素が青成分増幅率制御信号111の最大値設定で輝度が大きくなったことを意味する。すなわち、iは輝度差の大きい画素の数を意味し、前述のように、輝度差の大きい画素は地201を構成するとする。i=i+1とし背景の地201となるべき画素数の計算を行う。
In
In
ステップ596において、最大輝度差取得色調整部117は取り込んだ画素が最終画素であるか否かを判断する。
ステップ597において、最大輝度差取得色調整部117は取り込んだ画素が最終画素でない場合、取り込み画素のアドレスを加算し、ステップ586に戻り、次の画素に対する最大輝度差取得動作を続行する。
In
In
図23に示すように、ステップ598において、最大輝度差取得色調整部117は取り込み画素が最終画素である場合、青成分増幅率制御信号111の最大値設定を解除する。
ステップ599において、青成分増幅器105の調整を終了する。
ステップ600において、最大輝度差取得色調整部117はj/i+jを演算しj/i+jと0.001を比較する。j/i+jが0.001と等しいか又はこれよりも大きい場合、ステップ603に進む。
As shown in FIG. 23, in
In
In step 600, the maximum luminance difference acquisition
ステップ601において、最大輝度差取得色調整部117は、j/i+jが0.001よりも小さい場合、撮影像200は青色、シアン又はマゼンタの単独画素からなると判断する。
ステップ602において、最大輝度差取得色調整部117は、最大輝度差取得を不可と判断して処理を終了する。
In
In
ステップ603において、最大輝度差取得色調整部117は、j/i+jと0.999を比較する。j/i+jが0.999よりも大きい場合、ステップ605に進む。
ステップ604において、この場合、最大輝度差取得色調整部117は、撮影像200が文字202、図形203となるべき赤色、黄色又は緑色の単独画素からなると判断する。ステップ602に進み、最大輝度差取得不可の処理を行う。
In step 603, the maximum luminance difference acquisition
In step 604, in this case, the maximum luminance difference acquisition
ステップ605において、この場合、最大輝度差取得色調整部117は、最大輝度差取得を可能と判断する。
ステップ606において、j/i+jと0.5を比較する。青色、シアン又はマゼンタのいずれか1つの画素が地201の画素になるか、又は、文字202、図形203の画素になるかの判断を行う。j/i+jが0.5よりも大きい場合、ステップ609に進む。
ステップ607において、最大輝度差取得色調整部117、j/i+jが0.5と等しいか又は小さい場合、青色、シアン又はマゼンタのいずれか1つの画素を背景の地201の画素と確定する。
In step 605, in this case, the maximum luminance difference acquisition
In
In step 607, when the maximum luminance difference acquisition
ステップ608において、最大輝度差取得色調整部117は、文字・図形認識部118で文字202、図形203を認識することが可能と判断する。すなわち、後述する図24の(25)、(29)に対応する。輝度差記憶部115の輝度差を文字・図形認識部118に送り、文字・図形認識部118に対して認識を行わせ、従来のように、白色の地に黒色で記載されている文字202、図形203の認識と同様に認識率を低下させずに、認識が可能になる。処理を終了する。
In step 608, the maximum luminance difference acquisition
ステップ609において、この場合、最大輝度差取得色調整部117は輝度差反転部120に対して輝度差記憶部115に記憶されている輝度差のデータを反転させる。
ステップ610において、最大輝度差取得色調整部117は、輝度差記憶部115の反転された輝度差に対して、青色、シアン又はマゼンタのいずれか1つの画素を文字202、図形203の画素と確定し、文字・図形認識部118で文字202、図形203を認識することが可能と判断する。ステップ608に進む。すなわち、後述する図24の(14)、(18)が対応する。輝度差記憶部115の輝度差を文字・図形認識部118に送り、文字・図形認識部118に対して認識を行わせ、従来のように、白色の地に黒色で記載されている文字202、図形203の認識と同様に認識率を低下させずに、認識が可能になる。
In
In step 610, the maximum luminance difference acquisition
図24は図2における撮影像200の地201と文字202、図形203の赤色、緑色、青色の3原色、黄色、シアン、マゼンタの3つの中間色の組み合わせを説明する図である。
本図に示すように、地201と文字202、図形203の色の組み合わせでは、赤色、緑色、青色の3原色、黄色、シアン、マゼンタの3つの中間色から任意の異なる2つの色を選択して地201の色、文字202、図形203の色とした撮影像200は30種類の組み合わせがある。
FIG. 24 is a diagram for explaining combinations of the three intermediate colors of red, green, and blue primary colors, yellow, cyan, and magenta in the
As shown in the figure, in the combination of the colors of the
図24の30種類の組み合わせに対して、最大輝度差を取得するためには、前述のように、図18、図19の処理、図18、図19(反転:ステップ527、528参照)の処理、図18、図19→図20、図21の処理、図18、図19→図20、図21(反転:ステップ567、ステップ568参照)の処理、図18、図19→図20、図21→図22、図23の処理、図18、図19→図20、図21→図22、図23(反転:ステップ609、ステップ610参照)の処理が必要である。
In order to obtain the maximum luminance difference for the 30 types of combinations in FIG. 24, as described above, the processing in FIGS. 18 and 19 and the processing in FIGS. 18 and 19 (inversion: see
したがって、本発明によれば、増幅率を最小に設定した赤成分、緑成分、青色成分の増幅器の増幅率を順番に最大にして、赤色、緑色、青色の3原色、黄色、シアン、マゼンタの中間色のうち任意に組み合わせた2色の一方の地201の色の輝度差を最大にし、文字202、図形203の色の輝度差を最小にする色調整を行うようにしたので、従来のように、白色の地に黒色で記載されている文字202、図形203の認識と同様に認識率を低下させずに、文字202、図形203の認識が可能になる。
Therefore, according to the present invention, the amplification factors of the red component, the green component, and the blue component with the amplification factors set to the minimum are sequentially maximized, and the three primary colors of red, green, and blue, yellow, cyan, and magenta. The color adjustment is performed so as to maximize the luminance difference between the colors of one of the two
図25は図1の第3の変形例で画素の赤成分、緑成分、青成分の電気信号を時分割多重にした場合のカラーカメラの色調整システムの概略構成を示すブロック図である。本図に示すように、図1と比較して、イメージセンサ102と信号処理部112の間に増幅器131、A/D変換器132が設けられる。
イメージセンサ102は変換した画素の赤成分、緑成分、青成分の電気信号を時分割多重化し増幅器131に出力する。
FIG. 25 is a block diagram showing a schematic configuration of the color adjustment system of the color camera when the red, green, and blue component electrical signals of the pixel are time-division multiplexed in the third modification of FIG. As shown in this figure, compared with FIG. 1, an
The
増幅器131はイメージセンサ102で変換され、時分割多重化された画素の赤成分、緑成分、青成分の電気信号を増幅する機能を有する。
A/D変換器132は増幅器131で増幅された赤成分、緑成分、青成分の時分割多重の電気信号をデジタル信号に変換する機能を有する。
信号処理部112から増幅器131には増幅率制御信号133が送られ、増幅率制御信号133は増幅器131の増幅率を制御するのに使用される。
The
The A /
An amplification
このように、1対に減らした増幅器131、A/D変換器132に対してイメージセンサ102で変換された画素の赤成分、緑成分、青成分の電気信号が時分割多重化される。
さらに、増幅率制御信号133には、赤成分増幅率制御信号、緑成分増幅率制御信号、青成分増幅率制御信号が時分割多重化される。
図26は図25の最大輝度差取得色調整部117の時分割多重化時の動作例を説明する図である。
In this manner, the red, green, and blue component electrical signals of the pixels converted by the
Further, a red component gain control signal, a green component gain control signal, and a blue component gain control signal are time-division multiplexed on the
FIG. 26 is a diagram for explaining an operation example of the time division multiplexing of the maximum luminance difference acquisition
本図(a)に示すように、最大輝度差取得色調整部117はイメージセンサ102に対して画素位置情報信号119を介し取り込まれる画素に関し、一例として、赤成分電気信号、緑成分電気信号、青成分電気信号の順番に時分割多重化するように要求する。
本図(b)に示すように、最大輝度差取得色調整部117は、赤成分電気信号、緑成分電気信号、青成分電気信号の順番に時分割多重化する要求に対し、増幅率制御信号133を介して、増幅器131に赤成分増幅率制御信号の最大設定(図5対応)、緑成分増幅率制御信号の最大設定(図7対応)、青成分増幅率制御信号の最大設定(図9対応)を行う。
したがって、本発明によれば、回路構成の複雑化を回避することが可能になる。
As shown in FIG. 4A, the maximum luminance difference acquisition
As shown in FIG. 5B, the maximum luminance difference acquisition
Therefore, according to the present invention, it is possible to avoid complication of the circuit configuration.
本発明は、デジタルのカラーカメラのみならず、カラーカメラ機能を有する携帯電話機簡易電話機(PHS)、携帯情報端末(PDA)等の携帯電子機器に利用可能である。 The present invention is applicable not only to a digital color camera but also to a portable electronic device such as a mobile phone simple telephone (PHS) or a personal digital assistant (PDA) having a color camera function.
101…レンズ
102…イメージセンサ
103…赤成分増幅器
104…緑成分増幅器
105…青成分増幅器
106…赤成分A/D変換器
107…緑成分A/D変換器
108…青成分A/D変換器
109…赤成分増幅率制御信号
110…緑成分増幅率制御信号
111…青成分増幅率制御信号
112…信号処理部
113…最大輝度記憶部
114…最小輝度記憶部
115…輝度差記憶部
116…輝度信号演算部
117…最大輝度差取得色調整部
118…文字・図形認識部
119…画素位置情報信号
120…輝度差反転部
131…増幅器
132…A/D変換器
133…増幅率制御信号
200…撮影像
201…地
202…文字
203…図形
DESCRIPTION OF
Claims (8)
赤色、緑色、青色のうち1つの色の地に他方の色の文字、図形が記載された画像がレンズにより集光され結像された撮影像の赤成分、緑成分、青成分を電気信号に変換するイメージセンサと、
前記イメージセンサで変換された赤成分、緑成分、青成分の電気信号をそれぞれ増幅する増幅部と、
前記増幅部で増幅された赤成分、緑成分、青成分の電気信号から輝度を求める輝度演算部と、
前記増幅部で増幅された赤成分、緑成分、青成分の電気信号の最大輝度を、前記地及び前記文字、図形の一方の輝度として、記憶する最大輝度記憶部と、
前記増幅部で増幅された赤成分、緑成分、青成分の電気信号の最小輝度を、前記地及び前記文字、図形の他方の輝度として、記憶する最小輝度記憶部と、
前記最大輝度記憶部に記憶されている最大輝度と前記最小輝度記憶部に記憶されている最小輝度の輝度差を最大輝度差として記憶する輝度差記憶部と、
前記増幅部の赤成分、緑成分、青成分の電気信号をそれぞれ増幅する増幅率を初期値として最小値に設定し、前記増幅率の1つを順次最大値に設定し前記輝度差記憶部を介して前記地と前記文字、図形の間の最大輝度差を取得するように色調整を行う最大輝度差取得色調整部とを備え、
前記最大輝度差取得色調整部は、1つの前記増幅率を最大値に設定し、前記輝度差記憶部に記憶されている輝度差が最大輝度差のみである場合前記画像が地だけでなると判断し最大輝度差取得の動作を停止し、前記輝度差記憶部に記憶されている輝度差が最小輝度差のみである場合1つの前記増幅率を初期値の最小値に戻し、他の前記増幅率を最大に設定して次の最大輝度差の取得を行うことを特徴とするカラーカメラの色調整システム。 In color camera color adjustment systems that adjust the color of red, blue, and green components,
The red, green, and blue components of the photographed image formed by focusing the image of the other color on the ground of one color of red, green, and blue, and the image of the other color on the ground. An image sensor to convert,
An amplification unit that amplifies the electrical signals of the red component, green component, and blue component converted by the image sensor,
A luminance calculation unit that obtains luminance from the electrical signals of the red component, green component, and blue component amplified by the amplification unit;
A maximum luminance storage unit for storing the maximum luminance of the electrical signal of the red component, the green component, and the blue component amplified by the amplification unit as the luminance of one of the ground, the character, and the figure;
A minimum luminance storage unit for storing the minimum luminance of the electrical signals of the red component, the green component, and the blue component amplified by the amplification unit as the other luminance of the ground, the character, and the figure;
A luminance difference storage unit that stores a luminance difference between the maximum luminance stored in the maximum luminance storage unit and the minimum luminance stored in the minimum luminance storage unit as a maximum luminance difference;
The amplification factor for amplifying the red component, green component, and blue component electrical signals of the amplification unit is set to a minimum value as an initial value, one of the amplification factors is sequentially set to a maximum value, and the luminance difference storage unit is the character and the location via, e Bei the maximum luminance difference acquired color adjustment unit for performing color adjustment so as to obtain the maximum luminance difference between the figures,
The maximum luminance difference acquisition color adjustment unit sets one amplification factor to a maximum value, and determines that the image is only the ground when the luminance difference stored in the luminance difference storage unit is only the maximum luminance difference. When the operation of obtaining the maximum luminance difference is stopped and the luminance difference stored in the luminance difference storage unit is only the minimum luminance difference, one amplification factor is returned to the initial minimum value, and the other amplification factors are A color camera color adjustment system characterized in that the maximum brightness difference is obtained by setting the maximum to the maximum .
赤色、緑色、青色、黄色、シアン、マゼンタの1つの色の地に他方の色の文字、図形が記載された画像がレンズにより集光され結像された撮影像の赤成分、緑成分、青成分を電気信号に変換するイメージセンサと、
前記イメージセンサで変換された赤成分、緑成分、青成分の電気信号をそれぞれ増幅する増幅部と、
前記増幅部で増幅された赤成分、緑成分、青成分の電気信号から輝度を求める輝度演算部と、
前記増幅部で増幅された赤成分、緑成分、青成分の電気信号の最大輝度を、前記地及び前記文字、図形の一方の輝度として、記憶する最大輝度記憶部と、
前記増幅部で増幅された赤成分、緑成分、青成分の電気信号の最小輝度を、前記地及び前記文字、図形の他方の輝度として、記憶する最小輝度記憶部と、
前記最大輝度記憶部に記憶されている最大輝度と前記最小輝度記憶部に記憶されている最小輝度の輝度差を最大輝度差として記憶する輝度差記憶部と、
前記増幅部の赤成分、緑成分、青成分の電気信号をそれぞれ増幅する増幅率を初期値として最小値に設定し、前記増幅率の1つを順次最大値に設定し前記輝度差記憶部を介して前記地と前記文字、図形の間の最大輝度差を取得するように色調整を行い、前記輝度差記憶部に記憶される輝度差が最大輝度差である場合の画素数と、最大輝度差でない場合の画素数とを比較し、地の画素数と文字、図形の画素数の大小を判断し、文字、図形の画素数が地の画素数よりも大きくなる場合、前記輝度差記憶部に記憶されている輝度差を反転し、文字、図形とした輝度を地の輝度とし、地とした輝度を文字、図形の輝度とする最大輝度差取得色調整部とを備えることを特徴とするカラーカメラの色調整システム。 In color camera color adjustment systems that adjust the color of red, blue, and green components,
The red component, green component, and blue component of the photographed image formed by condensing the image with the characters and figures of the other color on the ground of one color of red, green, blue, yellow, cyan, and magenta. An image sensor that converts components into electrical signals;
An amplification unit that amplifies the electrical signals of the red component, green component, and blue component converted by the image sensor,
A luminance calculation unit that obtains luminance from the electrical signals of the red component, green component, and blue component amplified by the amplification unit;
A maximum luminance storage unit for storing the maximum luminance of the electrical signal of the red component, the green component, and the blue component amplified by the amplification unit as the luminance of one of the ground, the character, and the figure;
A minimum luminance storage unit for storing the minimum luminance of the electrical signals of the red component, the green component, and the blue component amplified by the amplification unit as the other luminance of the ground, the character, and the figure;
A luminance difference storage unit that stores a luminance difference between the maximum luminance stored in the maximum luminance storage unit and the minimum luminance stored in the minimum luminance storage unit as a maximum luminance difference;
The amplification factor for amplifying the red component, green component, and blue component electrical signals of the amplification unit is set to a minimum value as an initial value, one of the amplification factors is sequentially set to a maximum value, and the luminance difference storage unit is And adjusting the color so as to obtain the maximum luminance difference between the ground, the character, and the figure, the number of pixels when the luminance difference stored in the luminance difference storage unit is the maximum luminance difference, and the maximum luminance When the number of pixels in the character and the figure is larger than the number of pixels in the ground, the luminance difference storage unit is compared. And a maximum brightness difference acquisition color adjustment unit that reverses the luminance difference stored in the image, sets the luminance of characters and figures as the luminance of the ground, and sets the luminance of the ground as the luminance of the characters and graphics. Color camera color adjustment system.
赤色、緑色、青色のうち1つの色の地に他方の色の文字、図形が記載された画像がレンズにより集光され結像された撮影像の赤成分、緑成分、青成分を電気信号に変換する工程と、
変換された赤成分、緑成分、青成分の電気信号をそれぞれ増幅する工程と、
増幅された赤成分、緑成分、青成分の電気信号から輝度を求める工程と、
増幅された赤成分、緑成分、青成分の電気信号の最大輝度を、前記地及び前記文字、図形の一方の輝度として、記憶する工程と、
増幅された赤成分、緑成分、青成分の電気信号の最小輝度を、前記地及び前記文字、図形の他方の輝度として、記憶する工程と、
記憶されている最大輝度と記憶されている最小輝度の輝度差を最大輝度差として記憶する工程と、
赤成分、緑成分、青成分の電気信号をそれぞれ増幅する増幅率を初期値として最小値に設定し、前記増幅率の1つを順次最大値に設定し前記地と前記文字、図形の間の最大輝度差を取得するように色調整を行う工程と、
1つの前記増幅率を最大値に設定し、記憶されている輝度差が最大輝度差のみである場合前記画像が地だけでなると判断し最大輝度差取得の動作を停止し、記憶されている輝度差が最小輝度差のみである場合1つの前記増幅率を初期値の最小値に戻し、他の前記増幅率を最大に設定して次の最大輝度差の取得を行う工程とを備えることを特徴とするカラーカメラの色調整方法。 In the color camera color adjustment method that adjusts the color of red, blue, and green components,
The red, green, and blue components of the photographed image formed by focusing the image of the other color on the ground of one color of red, green, and blue, and the image of the other color on the ground. Converting, and
Amplifying the converted electrical signals of red, green and blue components respectively;
Obtaining luminance from the amplified red, green, and blue electrical signals;
Storing the maximum luminance of the amplified red, green, and blue electrical signals as the luminance of one of the ground, the character, and the figure;
Storing the minimum luminance of the amplified red component, green component, and blue component electrical signals as the other luminance of the ground, the character, and the figure;
Storing the difference between the stored maximum brightness and the stored minimum brightness as the maximum brightness difference;
The amplification factor for amplifying the electrical signals of the red component, green component, and blue component is set to the minimum value as an initial value, and one of the amplification factors is sequentially set to the maximum value, and the space between the ground, the character, and the figure is set. Adjusting the color so as to obtain the maximum luminance difference;
When one of the amplification factors is set to the maximum value and the stored luminance difference is only the maximum luminance difference, it is determined that the image is only the ground, and the operation of obtaining the maximum luminance difference is stopped, and the stored luminance When the difference is only the minimum luminance difference, the method includes the step of returning one amplification factor to the initial minimum value and setting the other amplification factor to the maximum value to obtain the next maximum luminance difference. Color camera color adjustment method.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2004310872A JP4174466B2 (en) | 2004-10-26 | 2004-10-26 | Color camera color adjustment system and method, and character / graphic recognition method using this system |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2004310872A JP4174466B2 (en) | 2004-10-26 | 2004-10-26 | Color camera color adjustment system and method, and character / graphic recognition method using this system |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JP2006128777A JP2006128777A (en) | 2006-05-18 |
| JP4174466B2 true JP4174466B2 (en) | 2008-10-29 |
Family
ID=36723028
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2004310872A Expired - Fee Related JP4174466B2 (en) | 2004-10-26 | 2004-10-26 | Color camera color adjustment system and method, and character / graphic recognition method using this system |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP4174466B2 (en) |
-
2004
- 2004-10-26 JP JP2004310872A patent/JP4174466B2/en not_active Expired - Fee Related
Also Published As
| Publication number | Publication date |
|---|---|
| JP2006128777A (en) | 2006-05-18 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN101090458B (en) | Image processing device, imaging device, image output device and methods thereof | |
| US7764835B2 (en) | Method and apparatus for recognizing code | |
| US8026932B2 (en) | Image processing apparatus, image processing method, image processing program, and image pickup apparatus | |
| JPH0823473A (en) | Imaging device | |
| KR20080038356A (en) | An image processing method and apparatus, a digital camera, and a recording medium on which an image processing program is recorded | |
| KR101309008B1 (en) | Image processing method and image processing apparatus | |
| CN111246092B (en) | Image processing method, device, storage medium and electronic device | |
| JPH0435167A (en) | Line picture separation system | |
| US7826662B2 (en) | Digital camera provided with gradation correction function | |
| CN112565588B (en) | Image processing apparatus, image processing method, and storage medium | |
| US5805723A (en) | Image processing apparatus with means for adjusting image data for divided areas | |
| JP7699964B2 (en) | Imaging device, control method thereof, program, and storage medium | |
| JP2011134019A (en) | Image processor and control method of the same | |
| JP4174466B2 (en) | Color camera color adjustment system and method, and character / graphic recognition method using this system | |
| JP4335727B2 (en) | Digital camera for face extraction | |
| JP4271648B2 (en) | Image composition apparatus, imaging means, and program | |
| JPH10210360A (en) | Digital camera | |
| JP2004304641A (en) | Image processing method and image processing apparatus | |
| JP2021164059A (en) | Image processing apparatus, image processing method, and program | |
| JPH10210287A (en) | Digital camera | |
| JP5147912B2 (en) | Image processing method, image processing apparatus, program, and recording medium | |
| JP4881113B2 (en) | IMAGING DEVICE, IMAGING DEVICE CONTROL METHOD, PROGRAM, AND STORAGE MEDIUM | |
| JP6946049B2 (en) | Image processing equipment, image processing methods, and programs | |
| JP2023008183A (en) | Imaging apparatus, control method, program, and storage medium | |
| JP2007249526A (en) | Imaging device and face area extraction method thereof |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20080501 |
|
| A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20080619 |
|
| A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20080709 |
|
| 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: 20080731 |
|
| A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 |
|
| A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20080818 |
|
| R150 | Certificate of patent or registration of utility model |
Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20110822 Year of fee payment: 3 |
|
| LAPS | Cancellation because of no payment of annual fees |