Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP4174466B2 - Color camera color adjustment system and method, and character / graphic recognition method using this system - Google Patents
[go: Go Back, main page]

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 PDF

Info

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
Application number
JP2004310872A
Other languages
Japanese (ja)
Other versions
JP2006128777A (en
Inventor
秀夫 川嶌
Original Assignee
埼玉日本電気株式会社
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 埼玉日本電気株式会社 filed Critical 埼玉日本電気株式会社
Priority to JP2004310872A priority Critical patent/JP4174466B2/en
Publication of JP2006128777A publication Critical patent/JP2006128777A/en
Application granted granted Critical
Publication of JP4174466B2 publication Critical patent/JP4174466B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

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 Patent Document 1, color signals are output in a different color order for each field so that color separation is not perceived as a color component due to a visual integration effect. Color adjustment that improves the recognition rate of characters and figures written in blue on a red background cannot be performed.
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 Patent Document 2, a character is recognized by using the feature of a color document image having a color character on a white background. As described above, for example, the character is described in blue on a red background. Color adjustment that improves the recognition rate of characters and graphics cannot be performed.
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 Patent Document 3, the recognition rate is improved based on the distribution status of the RGB data of the digital image. As described above, for example, recognition of characters / graphics written in blue on a red background is performed. Color adjustment that improves the rate cannot be performed.
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 Patent Document 4, the color is removed from the multicolor image document. However, as described above, for example, color adjustment is performed to improve the recognition rate of characters and figures written in blue on a red background. I can't.
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 analog processing circuits 118 to 120, respectively. The amplification factor of each amplifier can be set in three stages of standard and its ± α. First, it is set to standard, and the output of the amplifier that has obtained an intermediate level among the RGB signals at that time becomes a predetermined value. In this way, the amount of light irradiating the white plate is adjusted. After that, by setting the amplification factor of each amplifier of the remaining two signals so as to maximize each amplification output without being saturated, the levels of the RGB signals are adjusted uniformly. (For example, refer to Patent Document 5).

しかしながら、上記特許文献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 patent document 5, each amplification factor is set when each of the R, G, and B signals from the image reading sensor is amplified. As described above, for example, blue is described on the red background. Color adjustment that improves the recognition rate of the printed characters / graphics cannot be performed.
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 Patent Document 6, 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 is provided. For example, it is not possible to perform color adjustment that improves the recognition rate of characters / graphics written in blue on a red background.
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 Patent Document 7, a character image is extracted from a color image. As described above, for example, a color that improves the recognition rate of characters / graphics written in blue on a red background. Adjustment cannot be made.
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, Patent Document 8 provides an image reading apparatus that adjusts the illumination light amount of the lamp and the gain of the amplifier in accordance with the type of the transparent document. Color adjustment that improves the recognition rate of characters / graphics written in blue cannot be performed.
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 Patent Document 9 described above, even when a document in which copied handwritten characters and preprinted characters are mixed is photographed, such as a standard-type copy-type handwritten document, both characters are clearly displayed. Although a document photographing apparatus capable of generating an image that appears is provided, as described above, for example, color adjustment that improves the recognition rate of characters and figures written in blue on a red background can not be performed.

特開2000−078602号公報Japanese Patent Laid-Open No. 2000-077862 特開2001−351068号公報JP 2001-351068 A 特開2004−185183号公報JP 2004-185183 A 特開平06−195509号公報Japanese Patent Laid-Open No. 06-195509 特開平09−261494号公報JP 09-261494 A 特開平09−265510号公報JP 09-265510 A 特開平10−051655号公報Japanese Patent Laid-Open No. 10-051655 特開平11−168601号公報JP-A-11-168601 特開平11−345318号公報JP-A-11-345318

したがって、本発明は上記問題点に鑑みて、例えば、背景の赤色の地に青色で記載された文字・図形の認識を可能にする色調整を行うカラーカメラの色調整システム、方法及びこのシステムを用いた文字・図形認識方法を提供することを目的とする。
さらに、本発明は、白バランス機能に本発明の新たな機能を加えるので、構成が複雑にならないようにすることを目的とする。
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 lens 101, and the lens 101 has a function of condensing a captured image.

レンズ101の後部にはイメージセンサ102が設けられ、イメージセンサ102はレンズ101により集光された撮影像を結像し、結像した画像の赤成分、青成分、緑成分を電気信号にそれぞれ変換する機能を有する。
イメージセンサ102には赤成分増幅器103、緑成分増幅器104、青成分増幅器105が接続される。
An image sensor 102 is provided at the rear of the lens 101. The image sensor 102 forms a photographed image collected by the lens 101, and converts the red, blue, and green components of the formed image into electrical signals. It has the function to do.
A red component amplifier 103, a green component amplifier 104, and a blue component amplifier 105 are connected to the image sensor 102.

赤成分増幅器103はイメージセンサ102で変換された赤成分の電気信号を増幅する機能を有する。
緑成分増幅器104はイメージセンサ102で変換された緑成分の電気信号を増幅する機能を有する。
青成分増幅器105はイメージセンサ102で変換された青成分の電気信号を増幅する機能を有する。
The red component amplifier 103 has a function of amplifying the red component electrical signal converted by the image sensor 102.
The green component amplifier 104 has a function of amplifying the green component electrical signal converted by the image sensor 102.
The blue component amplifier 105 has a function of amplifying the blue component electrical signal converted by the image sensor 102.

赤成分増幅器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) converter 106, a green component A / D converter 107, and a blue component A / D converter 108 are connected to the red component amplifier 103, the green component amplifier 104, and the blue component amplifier 105, respectively. Is done.
The red component A / D converter 106 has a function of converting the electrical signal of the red component amplified by the red component amplifier 103 into a digital signal.

緑成分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 / D converter 107 has a function of converting the electrical signal of the green component amplified by the green component amplifier 104 into a digital signal.
The blue component A / D converter 108 has a function of converting the electrical signal of the blue component amplified by the blue component amplifier 105 into a digital signal.
A signal processing unit 112 is connected to the red component A / D converter 106, the green component A / D converter 107, and the blue component A / D converter 108, and the signal processing unit 112 is white that is used for normal shooting of a color camera. It has a color adjustment function for balance adjustment, and further, a red component digital signal converted by a red component A / D converter 106, a green component A / D converter 107, and a blue component A / D converter 108, respectively. The digital signal of the green component and the digital signal of the blue component are input, and the color adjustment function for obtaining the maximum luminance difference signal according to the present invention is provided.

本発明に係る最大輝度差信号取得のための色調整機能とカラーカメラの通常撮影に用いられる白バランス調整のための色調整機能は利用者により選択される。カラーカメラの通常撮影に用いられる白バランス調整のための色調整機能は本発明とは関係ないので、これ以上の説明を省略する。
信号処理部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 gain control signal 109 is sent from the signal processing unit 112 to the red component amplifier 103, and the red component gain control signal 109 is used to control the gain of the red component amplifier 103.

さらに、信号処理部112から緑成分増幅器104には緑成分増幅率制御信号110が送られ、緑成分増幅率制御信号110は緑成分増幅器104の増幅率を制御するのに使用される。
さらに、信号処理部112から青成分増幅器105には青成分増幅率制御信号111が送られ、青成分増幅率制御信号111は青成分増幅器105の増幅率を制御するのに使用される。
Further, a green component amplification factor control signal 110 is sent from the signal processing unit 112 to the green component amplifier 104, and the green component amplification factor control signal 110 is used to control the amplification factor of the green component amplifier 104.
Further, a blue component amplification factor control signal 111 is sent from the signal processing unit 112 to the blue component amplifier 105, and the blue component amplification factor control signal 111 is used to control the amplification factor of the blue component amplifier 105.

赤成分増幅率制御信号109、緑成分増幅率制御信号110、青成分増幅率制御信号111により制御される増幅率は初期値として全て最小値に設定され、1つずつ最大値に設定される。
信号処理部112からイメージセンサ102には画素位置情報信号119が送られ、画素位置情報信号119はイメージセンサ102から画素を取り込むのに使用される。
The amplification factors controlled by the red component amplification factor control signal 109, the green component amplification factor control signal 110, and the blue component amplification factor control signal 111 are all set to a minimum value as an initial value, and set to a maximum value one by one.
A pixel position information signal 119 is sent from the signal processing unit 112 to the image sensor 102, and the pixel position information signal 119 is used to capture pixels from the image sensor 102.

信号処理部112には最大輝度記憶部113が設けられ、最大輝度記憶部113は初期値として最小値を記憶し、画素の輝度信号検出時に初期値より大きい画素の輝度を最大輝度として記憶する。
信号処理部112には最小輝度記憶部114が設けられ、最小輝度記憶部114は初期値として最小値を記憶し、画素の輝度信号検出時に初期値より大きい画素の輝度を最小輝度として記憶する。
The signal processing unit 112 is provided with a maximum luminance storage unit 113. The maximum luminance storage unit 113 stores a minimum value as an initial value, and stores a luminance of a pixel larger than the initial value as a maximum luminance when detecting a luminance signal of the pixel.
The signal processing unit 112 is provided with a minimum luminance storage unit 114. The minimum luminance storage unit 114 stores a minimum value as an initial value, and stores a luminance of a pixel larger than the initial value as a minimum luminance when detecting a luminance signal of the pixel.

さらに、信号処理部112には輝度差記憶部115が設けられ、輝度差記憶部115は初期値として最小値を記憶し、画素の輝度信号検出時に初期値より大きい画素の輝度差を最大輝度差として記憶する。ここでは、輝度差の小さい画素は文字202、図形203を構成するとし、輝度差が大きい画素は地を構成するとする。
さらに、信号処理部112には輝度信号演算部116が設けられ、輝度信号演算部116は赤成分A/D変換器106、緑成分A/D変換器107、青成分A/D変換器108からデジタル信号に変換された赤成分信号、緑成分信号、青成分信号を入力しこれらを演算し輝度信号を検出する。
Further, the signal processing unit 112 is provided with a luminance difference storage unit 115. The luminance difference storage unit 115 stores a minimum value as an initial value, and a pixel luminance difference larger than the initial value is detected as a maximum luminance difference when detecting a luminance signal of the pixel. Remember as. Here, it is assumed that pixels having a small luminance difference constitute a character 202 and a graphic 203, and pixels having a large luminance difference constitute a ground.
Further, the signal processing unit 112 is provided with a luminance signal calculation unit 116, and the luminance signal calculation unit 116 includes a red component A / D converter 106, a green component A / D converter 107, and a blue component A / D converter 108. A red component signal, a green component signal, and a blue component signal converted into a digital signal are input and calculated to detect a luminance signal.

さらに、信号処理部112には最大輝度差取得色調整部117が設けられ、最大輝度差取得色調整部117は赤成分増幅率制御信号109だけを最大値に設定し、赤成分増幅器103の増幅率だけを最大にし、取り込んだ画素に対し、赤成分調整による最大輝度差取得動作を行う。
さらに、最大輝度差取得色調整部117は緑成分増幅率制御信号110だけを最大値に設定し、緑成分増幅器104の増幅率だけを最大にし、取り込んだ画素に対し、緑成分調整による最大輝度差取得動作を行う。
Further, the signal processing unit 112 is provided with a maximum luminance difference acquisition color adjustment unit 117, and the maximum luminance difference acquisition color adjustment unit 117 sets only the red component amplification factor control signal 109 to the maximum value and amplifies the red component amplifier 103. Only the rate is maximized, and the maximum luminance difference acquisition operation by red component adjustment is performed on the captured pixels.
Further, the maximum luminance difference acquisition color adjusting unit 117 sets only the green component amplification factor control signal 110 to the maximum value, maximizes only the amplification factor of the green component amplifier 104, and applies the maximum luminance by the green component adjustment to the captured pixels. Perform the difference acquisition operation.

さらに、最大輝度差取得色調整部117は青成分増幅率制御信号111だけを最大値に設定し、青成分増幅器105だけの増幅率を最大にし、取り込んだ画素に対し、青成分調整による最大輝度差取得動作を行う。
さらに、最大輝度差取得色調整部117は画素位置情報信号119を用いてイメージセンサ102に対して取り込む画素を要求する。
Further, the maximum luminance difference acquisition color adjustment unit 117 sets only the blue component amplification factor control signal 111 to the maximum value, maximizes the amplification factor of only the blue component amplifier 105, and sets the maximum luminance by blue component adjustment for the captured pixels. Perform the difference acquisition operation.
Further, the maximum luminance difference acquisition color adjustment unit 117 requests the image sensor 102 to capture pixels using the pixel position information signal 119.

さらに、信号処理部112には文字・図形認識部118が設けられ、文字・図形認識部118は輝度差記憶部115に得られた輝度差に対して、輝度差の小さい画素を文字202、図形203の画素として、輝度差の大きな画素を地の画素とし、輝度差を2値化し、白地に黒で記載された文字202、図形203と同様に、文字202、図形203の認識を行う。文字202、図形203の認識自体は周知の技術であるので説明を省略する。   Further, the signal processing unit 112 is provided with a character / graphic recognition unit 118. The character / graphic recognition unit 118 replaces the luminance difference obtained in the luminance difference storage unit 115 with a character 202, a graphic having a small luminance difference. As a pixel 203, a pixel having a large luminance difference is a ground pixel, the luminance difference is binarized, and the character 202 and the graphic 203 are recognized in the same manner as the character 202 and the graphic 203 written in black on a white background. Since the recognition of the character 202 and the figure 203 is a well-known technique, the description thereof is omitted.

図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 lens 101. As shown in this figure (a), in the photographed image 200, “Aiu” in blue characters 202 is written on a red background 201 of the background. As shown in FIG. It is assumed that a blue figure (barcode) 203 is written on the red ground 201. As described in the related art, the red background 201 of the photographed image 200 and the blue characters 202 and the graphic 203 have almost the same luminance, and there is no luminance difference between the two.

本図(a)において、例えば、背景の赤色の地201が赤色で、文字202の「アイ」が青色で「ウ」が緑色であってもよい。すなわち、文字202、図形203の色は、地201の色以外の2色であても、後述する図5、図6、図7の説明するように、最大輝度差取得が可能であるからである。
なお、撮影像200の横方向、縦方向の矢印に従って画素がイメージセンサ102から最大輝度差取得色調整部117に取り込まれる。
In this figure (a), for example, the red background 201 of the background may be red, the “eye” of the character 202 may be blue, and “c” may be green. That is, even if the color of the character 202 and the figure 203 is two colors other than the color of the ground 201, the maximum luminance difference can be obtained as will be described later with reference to FIGS. .
It should be noted that the pixels are taken from the image sensor 102 into the maximum luminance difference acquisition color adjusting unit 117 in accordance with the horizontal and vertical arrows of the captured image 200.

図3は図1における赤成分増幅率制御信号109、緑成分増幅率制御信号110、青成分増幅率制御信号111に設定される値を説明する図である。本図に示すように、赤成分増幅率制御信号109、緑成分増幅率制御信号110、青成分増幅率制御信号111には初期値として最小値がそれぞれ設定される。
赤成分調整時には、赤成分増幅率制御信号109には最大値が設定され、緑成分増幅率制御信号110、青成分増幅率制御信号111には初期値の最小値がそれぞれ設定される。
FIG. 3 is a diagram for explaining values set in the red component gain control signal 109, the green component gain control signal 110, and the blue component gain control signal 111 in FIG. As shown in the figure, minimum values are set as initial values for the red component gain control signal 109, the green component gain control signal 110, and the blue component gain control signal 111, respectively.
At the time of red component adjustment, a maximum value is set for the red component gain control signal 109, and a minimum initial value is set for each of the green component gain control signal 110 and the blue component gain control signal 111.

緑成分調整時には、緑成分増幅率制御信号110には最大値が設定され、青成分増幅率制御信号111、赤成分増幅率制御信号109には初期値の最小値がそれぞれ設定される。
青成分調整時には、青成分増幅率制御信号111には最大値が設定され、赤成分増幅率制御信号109、緑成分増幅率制御信号110には初期値の最小値がそれぞれ設定される。
At the time of green component adjustment, a maximum value is set for the green component gain control signal 110, and a minimum initial value is set for the blue component gain control signal 111 and the red component gain control signal 109, respectively.
At the time of blue component adjustment, a maximum value is set for the blue component gain control signal 111, and a minimum initial value is set for each of the red component gain control signal 109 and the green component gain control signal 110.

図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 luminance storage unit 113 and the minimum luminance storage unit 114 in FIG. 1 and the magnitudes of the detected luminance signals at the time of red, green, and blue component adjustment. As shown in the figure, the initial value of the maximum luminance storage unit 113 is “a1”, and the initial value of the minimum luminance storage unit 114 is “b1”.
Furthermore, the magnitude of the detected luminance signal when the initial value (minimum value) is set for all of the red component gain control signal 109, the green component gain control signal 110, and the blue component gain control signal 111 is “c1”. To do.

さらに、赤、緑、青成分調整時に赤成分増幅率制御信号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 gain control signal 109, the green component gain control signal 110, and the blue component gain control signal 111, and the other two are set to initial values ( The magnitude of the detected luminance signal when “minimum value” is set is “d1”.
Furthermore, the initial value of the luminance difference storage unit 115 is “a1−b1”.
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 color adjustment unit 117 in FIG.
As shown in FIG. 5, in step 301, the maximum luminance difference acquisition color adjusting unit 117 sets initial values (minimum values) of the red component gain control signal 109, the green component gain control signal 110, and the blue component gain control signal 111. ) And the luminance difference storage unit 115 is set to an initial value.

ステップ302において、最大輝度差取得色調整部117は、取り込み画素位置の初期化を行う。
ステップ303において、i=0、j=0とする。
ステップ304において、最大輝度差取得色調整部117は、赤成分増幅器103に赤成分増幅率制御信号109の最大値を設定する。
In step 302, the maximum luminance difference acquisition color adjustment unit 117 initializes the capture pixel position.
In step 303, i = 0 and j = 0.
In step 304, the maximum luminance difference acquisition color adjustment unit 117 sets the maximum value of the red component amplification factor control signal 109 in the red component amplifier 103.

ステップ305において、最大輝度差取得色調整部117は、赤成分増幅器103の調整を開始する。
ステップ306において、最大輝度差取得色調整部117は最大輝度記憶部113に初期値(a1)を設定、最小輝度記憶部114に初期値(b1)を設定する。
ステップ307において、最大輝度差取得色調整部117は画素位置情報信号119を介して1画素輝度信号を取り込む。
In step 305, the maximum luminance difference acquisition color adjustment unit 117 starts adjustment of the red component amplifier 103.
In step 306, the maximum luminance difference acquisition color adjustment unit 117 sets an initial value (a 1) in the maximum luminance storage unit 113 and an initial value (b 1) in the minimum luminance storage unit 114.
In step 307, the maximum luminance difference acquisition color adjustment unit 117 captures a one-pixel luminance signal via the pixel position information signal 119.

ステップ308において、最大輝度差取得色調整部117は輝度信号演算部116からの検出輝度信号の大きさと最大輝度記憶部113の初期値(a1)とを比較する。検出輝度信号の大きさが最大輝度記憶部113の初期値(a1)と等しいか又は小さい場合にはステップ310に進む。
ステップ309において、最大輝度差取得色調整部117は検出輝度信号の大きさが最大輝度記憶部113の初期値(a1)よりも大きい場合には、最大輝度記憶部113に設定されている初期値(a1)を輝度信号の大きさ(d1)に書き替える。
In step 308, the maximum luminance difference acquisition color adjustment unit 117 compares the magnitude of the detected luminance signal from the luminance signal calculation unit 116 with the initial value (a1) of the maximum luminance storage unit 113. When the magnitude of the detected luminance signal is equal to or smaller than the initial value (a1) of the maximum luminance storage unit 113, the process proceeds to step 310.
In step 309, the maximum luminance difference acquisition color adjusting unit 117 determines the initial value set in the maximum luminance storage unit 113 when the magnitude of the detected luminance signal is larger than the initial value (a1) of the maximum luminance storage unit 113. (A1) is rewritten to the magnitude (d1) of the luminance signal.

ステップ310において、最大輝度差取得色調整部117は輝度信号演算部116からの検出輝度信号の大きさと最小輝度記憶部114の初期値(b1)とを比較する。検出輝度信号の大きさが最小輝度記憶部114の初期値(b1)と等しいか又は大きい場合にはステップ312に進む。
ステップ311において、最大輝度差取得色調整部117は検出輝度信号の大きさが最小輝度記憶部114の初期値(b1)よりも小さい場合には、最小輝度記憶部114に設定されている初期値(b1)を輝度信号の大きさ(c1)に書き替える。
In step 310, the maximum luminance difference acquisition color adjustment unit 117 compares the magnitude of the detected luminance signal from the luminance signal calculation unit 116 with the initial value (b 1) of the minimum luminance storage unit 114. When the magnitude of the detected luminance signal is equal to or larger than the initial value (b1) of the minimum luminance storage unit 114, the process proceeds to step 312.
In step 311, when the magnitude of the detected luminance signal is smaller than the initial value (b 1) of the minimum luminance storage unit 114, the maximum luminance difference acquisition color adjustment unit 117 sets the initial value set in the minimum luminance storage unit 114. (B1) is rewritten to the magnitude (c1) of the luminance signal.

ステップ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 step 312, the maximum brightness difference acquisition color adjustment unit 117 performs a calculation of the maximum brightness storage unit 113 and the minimum brightness storage unit 114 on the values stored in the maximum brightness storage unit 113 and the minimum brightness storage unit 114, thereby obtaining the brightness difference. The initial value (a1-b1) of the storage unit 115 is compared with the calculation result of the maximum luminance storage unit 113-minimum luminance storage unit 114. When the initial value (a1-b1) of the luminance difference storage unit 115 is larger than the calculation result (a1-c1) of the maximum luminance storage unit 113-minimum luminance storage unit 114, the process proceeds to step 313 and the luminance difference storage unit 115 When the initial value (a1-b1) is equal to or smaller than the calculation result (d1-b1) of the maximum luminance storage unit 113-minimum luminance storage unit 114, the process proceeds to step 314.

ステップ313において、この場合、取り込んだ画素が緑成分又は青成分の画素で赤成分増幅率制御信号109の最大値設定にもかかわらず輝度が小さいことを意味する。すなわち、jは輝度差の小さい画素の数を意味し、前述のように、輝度差の小さい画素は文字202、図形203を構成するとする。j=j+1とし緑色又は青色の文字202、図形203となるべき画素数を計算し、ステップ316に進む。   In step 313, this means that the captured pixel is a green component or a blue component, and the luminance is small despite the maximum value setting of the red component gain control signal 109. That is, j means the number of pixels having a small luminance difference, and as described above, the pixels having a small luminance difference constitute the character 202 and the graphic 203. j = j + 1 is set, the number of pixels to be the green or blue character 202 and the graphic 203 is calculated, and the process proceeds to step 316.

ステップ314において、最大輝度差取得色調整部117は輝度差記憶部115に設定されている初期値(a1−b1)を最大輝度記憶部113−最小輝度記憶部114の演算結果(d1−b1)に書き替える。
ステップ315において、この場合、取り込んだ画素が赤成分の画素で赤成分増幅率制御信号109の最大値設定で輝度が大きくなったことを意味する。すなわち、iは輝度差の大きい画素の数を意味し、前述のように、輝度差の大きい画素は地201を構成するとする。i=i+1とし背景が赤色地となるべき画素数の計算を行う。
In step 314, the maximum luminance difference acquisition color adjustment unit 117 calculates the initial value (a1-b1) set in the luminance difference storage unit 115 as the calculation result (d1-b1) of the maximum luminance storage unit 113-minimum luminance storage unit 114. Rewrite as
In step 315, this means that the captured pixel is a red component pixel, and the luminance is increased by setting the maximum value of the red component gain control signal 109. That is, i means the number of pixels having a large luminance difference, and pixels having a large luminance difference constitute the ground 201 as described above. i = i + 1 and the number of pixels that should have a red background is calculated.

ステップ316において、最大輝度差取得色調整部117は取り込んだ画素が最終画素であるか否かを判断する。
ステップ317において、最大輝度差取得色調整部117は取り込んだ画素が最終画素でない場合、取り込み画素のアドレスを加算し、ステップ306に戻り、次の画素に対する最大輝度差取得動作を続行する。
In step 316, the maximum luminance difference acquisition color adjustment unit 117 determines whether or not the captured pixel is the final pixel.
In step 317, if the captured pixel is not the final pixel, the maximum brightness difference acquisition color adjustment unit 117 adds the address of the captured pixel, returns to step 306, and continues the maximum brightness difference acquisition operation for the next pixel.

図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 step 318, the maximum luminance difference acquisition color adjustment unit 117 cancels the setting of the maximum value of the red component amplification factor control signal 109 when the captured pixel is the final pixel.
In step 319, the adjustment of the red component amplifier 103 is terminated.
In step 320, the maximum luminance difference acquisition color adjusting unit 117 calculates j / i + j and compares j / i + j with 0.001. If j / i + j is equal to or greater than 0.001, the process proceeds to step 323.

ステップ321において、最大輝度差取得色調整部117は、j/i+jが0.001よりも小さい場合、撮影像200は赤色のみの画素からなると判断する。
ステップ322において、最大輝度差取得色調整部117は、最大輝度差取得を不可と判断して処理を終了する。
In step 321, the maximum luminance difference acquisition color adjustment unit 117 determines that the captured image 200 includes only red pixels when j / i + j is smaller than 0.001.
In step 322, the maximum luminance difference acquisition color adjustment unit 117 determines that the maximum luminance difference acquisition is impossible and ends the processing.

ステップ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 step 323, the maximum luminance difference acquisition color adjustment unit 117 compares j / i + j with 0.999. If j / i + j is greater than 0.999, go to step 329.
In step 324, the maximum luminance difference acquisition color adjustment unit 117 determines that the maximum luminance difference can be acquired when j / i + j is equal to or smaller than 0.999.
In step 325, j / i + j is compared with 0.5. It is determined whether the red pixel is the ground 201 or the character 202 and the graphic 203. If j / i + j is greater than 0.5, go to step 328.

ステップ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 step 326, when the maximum luminance difference acquisition color adjustment unit 117, j / i + j is equal to or smaller than 0.5, the red pixel is determined as the pixel of the background background 201.
In step 327, the maximum luminance difference acquisition color adjustment unit 117 determines that the character 202 and graphic 203 can be recognized by the character / graphic recognition unit 118. That is, as shown in (1) or (2) in FIG. 11 described later, the background 201 corresponds to red, the character 202, and the figure 203 correspond to green and blue. The brightness difference stored in the brightness difference storage unit 115 is sent to the character / graphic recognition unit 118 to cause the character / graphic recognition unit 118 to perform the recognition, so that the characters 202. Similar to the recognition of the figure 203, the recognition can be performed without reducing the recognition rate.

すなわち、背景が赤色の地201に緑色又は青色で記載された文字202、図形203の認識が可能になる。処理を終了する。
ステップ328において、この場合、赤色の画素を背景の地201と確定することが不可能と判断して、ステップ331に進み、次の処理に委ねる。
ステップ329において、最大輝度差取得色調整部117は、この場合、撮影像200が赤色以外の画素からなると判断する。
That is, it becomes possible to recognize the character 202 and the figure 203 written in green or blue on the background 201 having a red background. The process ends.
In step 328, in this case, it is determined that it is impossible to determine the red pixel as the background ground 201, and the process proceeds to step 331, and the next process is performed.
In step 329, the maximum luminance difference acquisition color adjustment unit 117 determines that the captured image 200 includes pixels other than red in this case.

ステップ330において、最大輝度差取得色調整部117は最大輝度差取得の可能性があると判断する。
ステップ331において、最大輝度差取得色調整部117は、図7に進み、次の色調整の処理を行う。
図7、図8は図5、図6の継続処理で、最大輝度差取得色調整部117の緑成分調整による最大輝度差取得動作例を説明するフローチャートである。
In step 330, the maximum brightness difference acquisition color adjustment unit 117 determines that there is a possibility of acquiring the maximum brightness difference.
In step 331, the maximum luminance difference acquisition color adjustment unit 117 proceeds to FIG. 7, and performs the next color adjustment process.
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 color adjustment unit 117 in the continuation processing of FIGS.

図7に示すように、ステップ341において、図6のステップ331に続き、最大輝度差取得色調整部117は輝度差記憶部115を初期値に設定する。
ステップ342において、最大輝度差取得色調整部117は、取り込み画素位置の初期化を行う。
ステップ343において、i=0、j=0とする。
As shown in FIG. 7, in step 341, following step 331 in FIG. 6, the maximum luminance difference acquisition color adjustment unit 117 sets the luminance difference storage unit 115 to an initial value.
In step 342, the maximum luminance difference acquisition color adjustment unit 117 initializes the capture pixel position.
In step 343, i = 0 and j = 0.

ステップ344において、最大輝度差取得色調整部117は、緑成分増幅器104に緑成分増幅率制御信号110の最大値を設定する。
ステップ345において、最大輝度差取得色調整部117は、緑成分増幅器104の調整を開始する。
ステップ346において、最大輝度差取得色調整部117は最大輝度記憶部113に初期値(a1)を設定、最小輝度記憶部114に初期値(b1)を設定する。
In step 344, the maximum luminance difference acquisition color adjustment unit 117 sets the maximum value of the green component amplification factor control signal 110 in the green component amplifier 104.
In step 345, the maximum luminance difference acquisition color adjustment unit 117 starts adjustment of the green component amplifier 104.
In step 346, the maximum luminance difference acquisition color adjustment unit 117 sets an initial value (a1) in the maximum luminance storage unit 113 and sets an initial value (b1) in the minimum luminance storage unit 114.

ステップ347において、最大輝度差取得色調整部117は画素位置情報信号119を介して1画素輝度信号を取り込む。
ステップ348において、最大輝度差取得色調整部117は輝度信号演算部116からの検出輝度信号の大きさと最大輝度記憶部113の初期値(a1)とを比較する。検出輝度信号の大きさが最大輝度記憶部113の初期値(a1)と等しいか又は小さい場合にはステップ350に進む。
In step 347, the maximum luminance difference acquisition color adjustment unit 117 captures a one-pixel luminance signal via the pixel position information signal 119.
In step 348, the maximum luminance difference acquisition color adjustment unit 117 compares the magnitude of the detected luminance signal from the luminance signal calculation unit 116 with the initial value (a1) of the maximum luminance storage unit 113. When the magnitude of the detected luminance signal is equal to or smaller than the initial value (a1) of the maximum luminance storage unit 113, the process proceeds to step 350.

ステップ349において、最大輝度差取得色調整部117は検出輝度信号の大きさが最大輝度記憶部113の初期値(a1)よりも大きい場合には、最大輝度記憶部113に設定されている初期値(a1)を輝度信号の大きさ(d1)に書き替える。
ステップ350において、最大輝度差取得色調整部117は輝度信号演算部116からの検出輝度信号の大きさと最小輝度記憶部114の初期値(b1)とを比較する。検出輝度信号の大きさが最小輝度記憶部114の初期値(b1)と等しいか又は大きい場合にはステップ352に進む。
In step 349, when the magnitude of the detected luminance signal is larger than the initial value (a1) of the maximum luminance storage unit 113, the maximum luminance difference acquisition color adjustment unit 117 sets the initial value set in the maximum luminance storage unit 113. (A1) is rewritten to the magnitude (d1) of the luminance signal.
In step 350, the maximum luminance difference acquisition color adjustment unit 117 compares the magnitude of the detected luminance signal from the luminance signal calculation unit 116 with the initial value (b 1) of the minimum luminance storage unit 114. When the magnitude of the detected luminance signal is equal to or larger than the initial value (b1) of the minimum luminance storage unit 114, the process proceeds to step 352.

ステップ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 step 351, the maximum luminance difference acquisition color adjustment unit 117 determines that the detected luminance signal is smaller than the initial value (b1) of the minimum luminance storage unit 114, the initial value set in the minimum luminance storage unit 114. (B1) is rewritten to the magnitude (c1) of the luminance signal.
In step 352, the maximum luminance difference acquisition color adjustment unit 117 performs an operation of the maximum luminance storage unit 113 -minimum luminance storage unit 114 on the values stored in the maximum luminance storage unit 113 and the minimum luminance storage unit 114, thereby calculating the luminance difference. The initial value (a1-b1) of the storage unit 115 is compared with the calculation result of the maximum luminance storage unit 113-minimum luminance storage unit 114. When the initial value (a1-b1) of the luminance difference storage unit 115 is larger than the calculation result (a1-c1) of the maximum luminance storage unit 113-minimum luminance storage unit 114, the process proceeds to step 353 and the luminance difference storage unit 115 When the initial value (a1-b1) is equal to or smaller than the calculation result (d1-b1) of the maximum luminance storage unit 113-minimum luminance storage unit 114, the process proceeds to step 354.

ステップ353において、この場合、取り込んだ画素が青成分又は赤成分の画素で緑成分増幅率制御信号110の最大値設定にもかかわらず輝度が小さいことを意味する。すなわち、jは輝度差の小さい画素の数を意味し、前述のように、輝度差の小さい画素は文字202、図形203を構成するとする。j=j+1とし青色又は赤色の文字202、図形203となるべき画素数を計算し、ステップ356に進む。   In step 353, this means that the captured pixel is a blue component or a red component, and the luminance is small despite the maximum value setting of the green component gain control signal 110. That is, j means the number of pixels having a small luminance difference, and as described above, the pixels having a small luminance difference constitute the character 202 and the graphic 203. j = j + 1 is set, the number of pixels to be blue or red character 202 and graphic 203 is calculated, and the process proceeds to step 356.

ステップ354において、最大輝度差取得色調整部117は輝度差記憶部115に設定されている初期値(a1−b1)を最大輝度記憶部113−最小輝度記憶部114の演算結果(d1−b1)に書き替える。
ステップ355において、この場合、取り込んだ画素が緑成分の画素で緑成分増幅率制御信号110の最大値設定で輝度が大きくなったことを意味する。すなわち、iは輝度差の大きい画素の数を意味し、前述のように、輝度差の大きい画素は地201を構成するとする。i=i+1とし背景が緑色の地201となるべき画素数の計算を行う。
In step 354, the maximum luminance difference acquisition color adjusting unit 117 calculates the initial value (a1-b1) set in the luminance difference storage unit 115 as the calculation result (d1-b1) of the maximum luminance storage unit 113-minimum luminance storage unit 114. Rewrite as
In step 355, in this case, the captured pixel is a green component pixel, which means that the luminance is increased by setting the maximum value of the green component amplification factor control signal 110. That is, i means the number of pixels having a large luminance difference, and pixels having a large luminance difference constitute the ground 201 as described above. The number of pixels that should be i = i + 1 and the background 201 having a green background is calculated.

ステップ356において、最大輝度差取得色調整部117は取り込んだ画素が最終画素であるか否かを判断する。
ステップ357において、最大輝度差取得色調整部117は取り込んだ画素が最終画素でない場合、取り込み画素のアドレスを加算し、ステップ346に戻り、次の画素に対する最大輝度差取得動作を続行する。
In step 356, the maximum luminance difference acquisition color adjustment unit 117 determines whether or not the captured pixel is the final pixel.
In step 357, if the captured pixel is not the final pixel, the maximum brightness difference acquisition color adjustment unit 117 adds the address of the captured pixel, returns to step 346, and continues the maximum brightness difference acquisition operation for the next pixel.

図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 step 358, the maximum luminance difference acquisition color adjustment unit 117 cancels the maximum value setting of the green component amplification factor control signal 110 when the captured pixel is the final pixel.
In step 359, the adjustment of the green component amplifier 104 is terminated.
In step 360, the maximum luminance difference acquisition color adjustment unit 117 calculates j / i + j and compares j / i + j with 0.001. If j / i + j is equal to or greater than 0.001, the process proceeds to step 363.

ステップ361において、最大輝度差取得色調整部117は、j/i+jが0.001よりも小さい場合、撮影像200は緑色のみの画素からなると判断する。
ステップ362において、最大輝度差取得色調整部117は、最大輝度差取得を不可と判断して処理を終了する。
In step 361, the maximum luminance difference acquisition color adjustment unit 117 determines that the captured image 200 includes only green pixels when j / i + j is smaller than 0.001.
In step 362, the maximum brightness difference acquisition color adjustment unit 117 determines that the maximum brightness difference cannot be acquired and ends the process.

ステップ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 color adjustment unit 117 compares j / i + j with 0.999. If j / i + j is greater than 0.999, go to step 369.
In step 364, the maximum luminance difference acquisition color adjustment unit 117 determines that the maximum luminance difference can be acquired when j / i + j is equal to or smaller than 0.999.
In step 365, j / i + j is compared with 0.5. It is determined whether the green pixel becomes the ground 201 or the character 202 and the graphic 203. If j / i + j is greater than 0.5, go to step 368.

ステップ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 color adjustment unit 117, j / i + j is equal to or smaller than 0.5, the green pixel is determined as the pixel of the background background 201.
In step 367, the maximum luminance difference acquisition color adjustment unit 117 determines that the character 202 and graphic 203 can be recognized by the character / graphic recognition unit 118. That is, as shown in (3) or (4) in FIG. 11 described later, the background 201 corresponds to green, the character 202, and the figure 203 correspond to blue and red. The brightness difference in the brightness difference storage unit 115 is sent to the character / graphic recognition unit 118 to cause the character / graphic recognition unit 118 to perform recognition, and the character 202 written in black on a white background as in the past, Similar to the recognition of the figure 203, the recognition can be performed without reducing the recognition rate.

すなわち、背景が緑色の地201に青色又は赤色で記載された文字202、図形203の認識が可能になる。処理を終了する。
ステップ368において、この場合、緑色の画素を背景の地201と確定することが不可能と判断して、ステップ371に進み、次の処理に委ねる。
ステップ369において、最大輝度差取得色調整部117は、この場合、撮影像200が赤色、緑色以外の画素からなると判断する。
That is, it becomes possible to recognize the character 202 and the figure 203 written in blue or red on the ground 201 having a green background. The process ends.
In step 368, in this case, it is determined that it is impossible to determine the green pixel as the background ground 201, the process proceeds to step 371, and the next process is performed.
In step 369, the maximum luminance difference acquisition color adjustment unit 117 determines that the captured image 200 is composed of pixels other than red and green in this case.

ステップ370において、最大輝度差取得色調整部117は最大輝度差取得の可能性があると判断する。
ステップ371において、最大輝度差取得色調整部117は、図9に進み、次の色調整の処理を行う。
図9、図10は図7、図8の継続処理で、最大輝度差取得色調整部117の青成分調整による最大輝度差取得動作例を説明するフローチャートである。
In step 370, the maximum brightness difference acquisition color adjustment unit 117 determines that there is a possibility of acquiring the maximum brightness difference.
In step 371, the maximum luminance difference acquisition color adjustment unit 117 proceeds to FIG. 9 and performs the next color adjustment process.
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 color adjustment unit 117 in the continuation processing of FIGS.

図9に示すように、ステップ381において、図8のステップ371に続き、最大輝度差取得色調整部117は輝度差記憶部115を初期値に設定する。
ステップ382において、最大輝度差取得色調整部117は、取り込み画素位置の初期化を行う。
ステップ383において、i=0、j=0とする。
As shown in FIG. 9, in step 381, following step 371 in FIG. 8, the maximum luminance difference acquisition color adjustment unit 117 sets the luminance difference storage unit 115 to an initial value.
In step 382, the maximum luminance difference acquisition color adjustment unit 117 initializes the capture pixel position.
In step 383, i = 0 and j = 0.

ステップ384において、最大輝度差取得色調整部117は、青成分増幅器105に青成分増幅率制御信号111の最大値を設定する。
ステップ385において、最大輝度差取得色調整部117は、青成分増幅器105の調整を開始する。
ステップ386において、最大輝度差取得色調整部117は最大輝度記憶部113に初期値(a1)を設定、最小輝度記憶部114に初期値(b1)を設定する。
In step 384, the maximum luminance difference acquisition color adjustment unit 117 sets the maximum value of the blue component amplification factor control signal 111 in the blue component amplifier 105.
In step 385, the maximum luminance difference acquisition color adjustment unit 117 starts adjustment of the blue component amplifier 105.
In step 386, the maximum luminance difference acquisition color adjustment unit 117 sets an initial value (a1) in the maximum luminance storage unit 113 and sets an initial value (b1) in the minimum luminance storage unit 114.

ステップ387において、最大輝度差取得色調整部117は画素位置情報信号119を介して1画素輝度信号を取り込む。
ステップ388において、最大輝度差取得色調整部117は輝度信号演算部116からの検出輝度信号の大きさと最大輝度記憶部113の初期値(a1)とを比較する。検出輝度信号の大きさが最大輝度記憶部113の初期値(a1)と等しいか又は小さい場合にはステップ390に進む。
In step 387, the maximum luminance difference acquisition color adjustment unit 117 captures a one-pixel luminance signal via the pixel position information signal 119.
In step 388, the maximum luminance difference acquisition color adjustment unit 117 compares the magnitude of the detected luminance signal from the luminance signal calculation unit 116 with the initial value (a1) of the maximum luminance storage unit 113. When the magnitude of the detected luminance signal is equal to or smaller than the initial value (a1) of the maximum luminance storage unit 113, the process proceeds to step 390.

ステップ389において、最大輝度差取得色調整部117は検出輝度信号の大きさが最大輝度記憶部113の初期値(a1)よりも大きい場合には、最大輝度記憶部113に設定されている初期値(a1)を輝度信号の大きさ(d1)に書き替える。
ステップ390において、最大輝度差取得色調整部117は輝度信号演算部116からの検出輝度信号の大きさと最小輝度記憶部114の初期値(b1)とを比較する。検出輝度信号の大きさが最小輝度記憶部114の初期値(b1)と等しいか又は大きい場合にはステップ392に進む。
In step 389, when the magnitude of the detected luminance signal is larger than the initial value (a1) of the maximum luminance storage unit 113, the maximum luminance difference acquisition color adjustment unit 117 sets the initial value set in the maximum luminance storage unit 113. (A1) is rewritten to the magnitude (d1) of the luminance signal.
In step 390, the maximum luminance difference acquisition color adjustment unit 117 compares the magnitude of the detected luminance signal from the luminance signal calculation unit 116 with the initial value (b1) of the minimum luminance storage unit 114. When the magnitude of the detected luminance signal is equal to or larger than the initial value (b1) of the minimum luminance storage unit 114, the process proceeds to step 392.

ステップ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 step 391, when the magnitude of the detected luminance signal is smaller than the initial value (b1) of the minimum luminance storage unit 114, the maximum luminance difference acquisition color adjustment unit 117 sets the initial value set in the minimum luminance storage unit 114. (B1) is rewritten to the magnitude (c1) of the luminance signal.
In step 392, the maximum luminance difference acquisition color adjustment unit 117 performs an operation of the maximum luminance storage unit 113 -minimum luminance storage unit 114 on the values stored in the maximum luminance storage unit 113 and the minimum luminance storage unit 114, thereby calculating the luminance difference. The initial value (a1-b1) of the storage unit 115 is compared with the calculation result of the maximum luminance storage unit 113-minimum luminance storage unit 114. When the initial value (a1-b1) of the luminance difference storage unit 115 is larger than the calculation result (a1-c1) of the maximum luminance storage unit 113-minimum luminance storage unit 114, the process proceeds to step 393, where the luminance difference storage unit 115 When the initial value (a1-b1) is equal to or smaller than the calculation result (d1-b1) of the maximum luminance storage unit 113-minimum luminance storage unit 114, the process proceeds to step 394.

ステップ393において、この場合、取り込んだ画素が赤成分又は緑成分の画素で青成分増幅率制御信号111の最大値設定にもかかわらず輝度が小さいことを意味する。すなわち、jは輝度差の小さい画素の数を意味し、前述のように、輝度差の小さい画素は文字202、図形203を構成するとする。j=j+1とし赤色又は緑色の文字202、図形203となるべき画素数を計算し、ステップ396に進む。   In step 393, this means that the captured pixel is a red component or a green component, and the luminance is small despite the maximum value setting of the blue component amplification factor control signal 111. That is, j means the number of pixels having a small luminance difference, and as described above, the pixels having a small luminance difference constitute the character 202 and the graphic 203. j = j + 1 is set, the number of pixels to be red or green character 202 and graphic 203 is calculated, and the process proceeds to step 396.

ステップ394において、最大輝度差取得色調整部117は輝度差記憶部115に設定されている初期値(a1−b1)を最大輝度記憶部113−最小輝度記憶部114の演算結果(d1−b1)に書き替える。
ステップ395において、この場合、取り込んだ画素が青成分の画素で青成分増幅率制御信号111の最大値設定で輝度が大きくなったことを意味する。すなわち、iは輝度差の大きい画素の数を意味し、前述のように、輝度差の大きい画素は地201を構成するとする。i=i+1とし背景が青色の地201となるべき画素数の計算を行う。
In step 394, the maximum luminance difference acquisition color adjustment unit 117 calculates the initial value (a1-b1) set in the luminance difference storage unit 115 as the calculation result (d1-b1) of the maximum luminance storage unit 113-minimum luminance storage unit 114. Rewrite as
In step 395, this means that the captured pixel is a blue component and the luminance is increased by setting the maximum value of the blue component amplification factor control signal 111. That is, i means the number of pixels having a large luminance difference, and pixels having a large luminance difference constitute the ground 201 as described above. The number of pixels that should be i = i + 1 and the background 201 of the blue background is calculated.

ステップ396において、最大輝度差取得色調整部117は取り込んだ画素が最終画素であるか否かを判断する。
ステップ397において、最大輝度差取得色調整部117は取り込んだ画素が最終画素でない場合、取り込み画素のアドレスを加算し、ステップ386に戻り、次の画素に対する最大輝度差取得動作を続行する。
In step 396, the maximum luminance difference acquisition color adjustment unit 117 determines whether or not the captured pixel is the final pixel.
In step 397, if the captured pixel is not the final pixel, the maximum brightness difference acquisition color adjustment unit 117 adds the address of the captured pixel, returns to step 386, and continues the maximum brightness difference acquisition operation for the next pixel.

図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 step 398, the maximum luminance difference acquisition color adjusting unit 117 cancels the maximum value setting of the blue component amplification factor control signal 111 when the captured pixel is the final pixel.
In step 399, the adjustment of the blue component amplifier 105 is finished.
In step 400, the maximum luminance difference acquisition color adjustment unit 117 calculates j / i + j and compares j / i + j with 0.001. If j / i + j is equal to or greater than 0.001, the process proceeds to step 403.

ステップ401において、最大輝度差取得色調整部117は、j/i+jが0.001よりも小さい場合、撮影像200は青色のみの画素からなると判断する。
ステップ402において、最大輝度差取得色調整部117は、最大輝度差取得を不可と判断して処理を終了する。
In step 401, the maximum luminance difference acquisition color adjustment unit 117 determines that the captured image 200 includes only blue pixels when j / i + j is smaller than 0.001.
In step 402, the maximum brightness difference acquisition color adjustment unit 117 determines that the maximum brightness difference cannot be acquired and ends the process.

ステップ403において、この場合、最大輝度差取得色調整部117は、最大輝度差取得を可能と判断する。
ステップ404において、最大輝度差取得色調整部117は青色の画素を背景の地201の画素と確定する。
In step 403, in this case, the maximum luminance difference acquisition color adjustment unit 117 determines that the maximum luminance difference can be acquired.
In step 404, the maximum luminance difference acquisition color adjustment unit 117 determines the blue pixel as the pixel of the background background 201.

ステップ405において、最大輝度差取得色調整部117は、文字・図形認識部118で文字202、図形203を認識することが可能と判断する。すなわち、後述する図11における(5)又は(6)に示すように、地201が青色、文字202、図形203が赤色、緑色に対応する。輝度差記憶部115の輝度差を文字・図形認識部118に送り、文字・図形認識部118に対して認識を行わせ、従来のように、白色の地に黒色で記載されている文字202、図形203の認識と同様に認識率を低下させずに、認識が可能になる。   In step 405, the maximum luminance difference acquisition color adjustment unit 117 determines that the character / graphic recognition unit 118 can recognize the character 202 and the graphic 203. That is, as shown in (5) or (6) in FIG. 11 described later, the background 201 corresponds to blue, the character 202, and the figure 203 correspond to red and green. The brightness difference in the brightness difference storage unit 115 is sent to the character / graphic recognition unit 118 to cause the character / graphic recognition unit 118 to perform recognition, and the character 202 written in black on a white background as in the past, Similar to the recognition of the figure 203, the recognition can be performed without reducing the recognition rate.

すなわち、背景が青色の地201に赤色又は緑色で記載された文字202、図形203の認識が可能になる。処理を終了する。
以上の説明では、赤成分増幅率制御信号109、緑成分増幅率制御信号110、青成分増幅率制御信号111の順番で赤成分増幅器103、緑成分増幅器104、青成分増幅器105に対して、最大増幅率の設定を行ったが、この順番は一例でありこれに制限されず、他の順番でもよい。以下同様である。
That is, the character 202 and the figure 203 written in red or green on the blue background 201 can be recognized. The process ends.
In the above description, the maximum of red component amplifier 103, green component amplifier 104, and blue component amplifier 105 in the order of red component gain control signal 109, green component gain control signal 110, and blue component gain control signal 111 is the maximum. Although the amplification factor is set, this order is merely an example, and the order is not limited to this. Other orders may be used. The same applies hereinafter.

また、図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 step 320 in FIG. 6, step 360 in FIG. 8, and step 400 in FIG. 10, j / i + j is compared with 0.001, but the comparison target “0.001” is an example. A numerical value optimal for the recognition of the character 202 and the graphic 203 by the character / graphic recognition unit 118 is selected. The same applies hereinafter.
Further, j / i + j and 0.999 are compared in step 323 in FIG. 6 and step 363 in FIG. 8, but “0.999”, which is the object of comparison, is an example, and the character / graphic recognition unit 118. The optimal numerical value for the recognition of the character 202 and the figure 203 is selected. The same applies hereinafter.

さらに、以上の説明では、地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 ground 201 is greater than the brightness of the character 202 and the graphic 203, but may be reversed. This is because the character / figure recognition unit 118 may decide either one. The same applies hereinafter.
FIG. 11 is a diagram illustrating a combination of the three primary colors red, green, and blue of the ground 201 of the photographed image 200, the character 202, and the figure 203 in FIG. As an example of a combination of the color of the background ground 201, the character 202, and the graphic 203 in the photographed image 200, the red color of the ground 201 corresponds to the green or blue color of the character 202 and the graphic 203 as shown in FIG. The green color of the ground 201 corresponds to the character 202 and the blue or red color of the graphic 203, and the blue color of the ground 201 corresponds to the red or green color of the character 202 and the graphic 203.

前述のように、図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 background 201 corresponds to the characters 202 and 203 of the figure 203, and the green color of the background 201 corresponds to the characters 202 and the blue and red colors of the figure 203. The blue color may be a combination of the letters 202 and the red and green colors of the figure 203. Even in this case, the maximum luminance difference can be obtained. It becomes possible to increase the number of combinations of the ground 201, the character 202, and the figure 203.

したがって、本発明によれば、増幅率を最小に設定した赤成分、緑成分、青色成分の増幅器の増幅率を順番に最大にして、例えば、背景の赤色の地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 red background 201 of the background. For 202 and figure 203, the amplification factor of the red component amplifier is maximized to maximize the luminance difference of the pixels of red background 201 of the background, and the luminance difference of the pixels of characters 202 and figure 203 written in blue is Since the color adjustment that minimizes the color adjustment is performed, the character 202 and the graphic 203 are not reduced without reducing the recognition rate as in the case of the recognition of the character 202 and the graphic 203 written in black on a white background. Can be recognized.

図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 red component amplifier 103 and the blue component amplifier 105 can be adjusted, and the amplification factor of the green component amplifier 104 is fixed. That is, the red component amplification factor control signal 109 and the blue component amplification factor control signal 111 control the amplification factors of the red component amplifier 103 and the blue component amplifier 105, respectively.

上記例は一例であるので、増幅率を固定するものは、赤成分増幅器103、緑成分増幅器104、青成分増幅器105のうちいずれでもよい。
さらに、信号処理部112には輝度差反転部120が設けられ、輝度差反転部120は最小輝度記憶部114の輝度差を反転する機能を有する。
このようにしても、例えば、背景の赤色の地201に青色の文字202、図形203に対して、背景の赤色の地201の画素の輝度を最大にし、青色で記載された文字202、図形203の画素の輝度を最小にすることが以下のように可能である。
Since the above example is an example, any one of the red component amplifier 103, the green component amplifier 104, and the blue component amplifier 105 may fix the amplification factor.
Further, the signal processing unit 112 is provided with a luminance difference inversion unit 120, and the luminance difference inversion unit 120 has a function of inverting the luminance difference in the minimum luminance storage unit 114.
Even in this case, for example, with respect to the blue character 202 and the graphic 203 on the red background 201 of the background, the luminance of the pixel of the red background 201 of the background is maximized, and the character 202 and the graphic 203 written in blue are maximized. It is possible to minimize the luminance of the pixels as follows.

図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 color adjusting unit 117 in FIG.
As shown in FIG. 13, in step 421, the maximum luminance difference acquisition color adjusting unit 117 sets the red component amplification factor control signal 109 and the green component amplification factor control signal 110 to initial values (minimum values), respectively. The storage unit 115 is set to an initial value.

ステップ422において、最大輝度差取得色調整部117は、取り込み画素位置の初期化を行う。
ステップ423において、i=0、j=0とする。
ステップ424において、最大輝度差取得色調整部117は、赤成分増幅器103に赤成分増幅率制御信号109の最大値を設定する。
In step 422, the maximum luminance difference acquisition color adjustment unit 117 initializes the capture pixel position.
In step 423, i = 0 and j = 0.
In step 424, the maximum luminance difference acquisition color adjustment unit 117 sets the maximum value of the red component amplification factor control signal 109 in the red component amplifier 103.

ステップ425において、最大輝度差取得色調整部117は、赤成分増幅器103の調整を開始する。
ステップ426において、最大輝度差取得色調整部117は最大輝度記憶部113に初期値(a1)を設定、最小輝度記憶部114に初期値(b1)を設定する。
ステップ427において、最大輝度差取得色調整部117は画素位置情報信号119を介して1画素輝度信号を取り込む。
In step 425, the maximum luminance difference acquisition color adjustment unit 117 starts adjustment of the red component amplifier 103.
In step 426, the maximum luminance difference acquisition color adjustment unit 117 sets an initial value (a 1) in the maximum luminance storage unit 113 and an initial value (b 1) in the minimum luminance storage unit 114.
In step 427, the maximum luminance difference acquisition color adjustment unit 117 captures a one-pixel luminance signal via the pixel position information signal 119.

ステップ428において、最大輝度差取得色調整部117は輝度信号演算部116からの検出輝度信号の大きさと最大輝度記憶部113の初期値(a1)とを比較する。検出輝度信号の大きさが最大輝度記憶部113の初期値(a1)と等しいか又は小さい場合にはステップ430に進む。
ステップ429において、最大輝度差取得色調整部117は検出輝度信号の大きさが最大輝度記憶部113の初期値(a1)よりも大きい場合には、最大輝度記憶部113に設定されている初期値(a1)を輝度信号の大きさ(d1)に書き替える。
In step 428, the maximum luminance difference acquisition color adjustment unit 117 compares the magnitude of the detected luminance signal from the luminance signal calculation unit 116 with the initial value (a 1) of the maximum luminance storage unit 113. When the magnitude of the detected luminance signal is equal to or smaller than the initial value (a1) of the maximum luminance storage unit 113, the process proceeds to step 430.
In step 429, the maximum luminance difference acquisition color adjusting unit 117 determines that the detected luminance signal is larger than the initial value (a1) of the maximum luminance storage unit 113, the initial value set in the maximum luminance storage unit 113. (A1) is rewritten to the magnitude (d1) of the luminance signal.

ステップ430において、最大輝度差取得色調整部117は輝度信号演算部116からの検出輝度信号の大きさと最小輝度記憶部114の初期値(b1)とを比較する。検出輝度信号の大きさが最小輝度記憶部114の初期値(b1)と等しいか又は大きい場合にはステップ432に進む。
ステップ431において、最大輝度差取得色調整部117は検出輝度信号の大きさが最小輝度記憶部114の初期値(b1)よりも小さい場合には、最小輝度記憶部114に設定されている初期値(b1)を輝度信号の大きさ(c1)に書き替える。
In step 430, the maximum luminance difference acquisition color adjustment unit 117 compares the magnitude of the detected luminance signal from the luminance signal calculation unit 116 with the initial value (b1) of the minimum luminance storage unit 114. When the magnitude of the detected luminance signal is equal to or larger than the initial value (b1) of the minimum luminance storage unit 114, the process proceeds to step 432.
In step 431, the maximum luminance difference acquisition color adjustment unit 117 sets the initial value set in the minimum luminance storage unit 114 when the magnitude of the detected luminance signal is smaller than the initial value (b1) of the minimum luminance storage unit 114. (B1) is rewritten to the magnitude (c1) of the luminance signal.

ステップ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 color adjustment unit 117 calculates the maximum luminance storage unit 113 and the minimum luminance storage unit 114 for the values stored in the maximum luminance storage unit 113 and the minimum luminance storage unit 114, thereby calculating the luminance difference. The initial value (a1-b1) of the storage unit 115 is compared with the calculation result of the maximum luminance storage unit 113-minimum luminance storage unit 114. When the initial value (a1-b1) of the luminance difference storage unit 115 is larger than the calculation result (a1-c1) of the maximum luminance storage unit 113-minimum luminance storage unit 114, the process proceeds to step 433, and the luminance difference storage unit 115 When the initial value (a1-b1) is equal to or smaller than the calculation result (d1-b1) of the maximum luminance storage unit 113-minimum luminance storage unit 114, the process proceeds to step 434.

ステップ433において、この場合、取り込んだ画素が緑成分又は青成分の画素で赤成分増幅率制御信号109の最大値設定にもかかわらず輝度が小さいことを意味する。すなわち、jは輝度差の小さい画素の数を意味し、前述のように、輝度差の小さい画素は文字202、図形203を構成するとする。j=j+1とし緑色又は青色の文字202、図形203となるべき画素数を計算し、ステップ436に進む。   In step 433, this means that the captured pixel is a green component or a blue component, and the luminance is small despite the maximum value setting of the red component gain control signal 109. That is, j means the number of pixels having a small luminance difference, and as described above, the pixels having a small luminance difference constitute the character 202 and the graphic 203. j = j + 1 is set, the number of pixels to be the green or blue character 202 and the graphic 203 is calculated, and the process proceeds to Step 436.

ステップ434において、最大輝度差取得色調整部117は輝度差記憶部115に設定されている初期値(a1−b1)を最大輝度記憶部113−最小輝度記憶部114の演算結果(d1−b1)に書き替える。
ステップ435において、この場合、取り込んだ画素が赤成分の画素で赤成分増幅率制御信号109の最大値設定で輝度が大きくなったことを意味する。すなわち、iは輝度差の大きい画素の数を意味し、前述のように、輝度差の大きい画素は地201を構成するとする。i=i+1とし背景が赤色の地201となるべき画素数の計算を行う。
In step 434, the maximum luminance difference acquisition color adjustment unit 117 calculates the initial value (a1-b1) set in the luminance difference storage unit 115 as the calculation result (d1-b1) of the maximum luminance storage unit 113-minimum luminance storage unit 114. Rewrite as
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 factor control signal 109. That is, i means the number of pixels having a large luminance difference, and pixels having a large luminance difference constitute the ground 201 as described above. The number of pixels that should be i = i + 1 and the background 201 having a red background is calculated.

ステップ436において、最大輝度差取得色調整部117は取り込んだ画素が最終画素であるか否かを判断する。
ステップ437において、最大輝度差取得色調整部117は取り込んだ画素が最終画素でない場合、取り込み画素のアドレスを加算し、ステップ426に戻り、次の画素に対する最大輝度差取得動作を続行する。
In step 436, the maximum luminance difference acquisition color adjustment unit 117 determines whether or not the captured pixel is the final pixel.
In step 437, if the acquired pixel is not the final pixel, the maximum luminance difference acquisition color adjustment unit 117 adds the address of the acquired pixel, returns to step 426, and continues the maximum luminance difference acquisition operation for the next pixel.

図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 color adjusting unit 117 cancels the setting of the maximum value of the red component amplification factor control signal 109 when the captured pixel is the final pixel.
In step 439, the adjustment of the red component amplifier 103 is terminated.
In step 440, the maximum luminance difference acquisition color adjustment unit 117 calculates j / i + j and compares j / i + j with 0.001. If j / i + j is equal to or greater than 0.001, the process proceeds to step 443.

ステップ441において、最大輝度差取得色調整部117は、j/i+jが0.001よりも小さい場合、撮影像200は赤色のみの画素からなると判断する。
ステップ442において、最大輝度差取得色調整部117は、最大輝度差取得を不可と判断して処理を終了する。
In step 441, the maximum luminance difference acquisition color adjustment unit 117 determines that the photographed image 200 includes only red pixels when j / i + j is smaller than 0.001.
In step 442, the maximum brightness difference acquisition color adjustment unit 117 determines that the maximum brightness difference cannot be acquired and ends the process.

ステップ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 step 443, the maximum luminance difference acquisition color adjustment unit 117 compares j / i + j with 0.999. If j / i + j is greater than 0.999, go to step 450.
In step 444, the maximum luminance difference acquisition color adjustment unit 117 determines that the maximum luminance difference can be acquired when j / i + j is equal to or smaller than 0.999.
In step 445, j / i + j is compared with 0.5. It is determined whether the red pixel is the ground 201 or the character 202 and the graphic 203. If j / i + j is greater than 0.5, go to step 448.

ステップ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 color adjusting unit 117, j / i + j is equal to or smaller than 0.5, the red pixel is determined as the pixel of the background background 201.
In step 447, the maximum luminance difference acquisition color adjustment unit 117 determines that the character 202 and graphic 203 can be recognized by the character / graphic recognition unit 118. That is, as shown in (1) or (2) in FIG. 17 described later, the background 201 corresponds to red, the character 202, and the figure 203 correspond to green and blue. The brightness difference in the brightness difference storage unit 115 is sent to the character / graphic recognition unit 118 to cause the character / graphic recognition unit 118 to perform recognition, and the character 202 written in black on a white background as in the past, Similar to the recognition of the figure 203, the recognition can be performed without reducing the recognition rate.

すなわち、背景が赤色の地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 character 202 and the figure 203 written in green or blue on the background 201 having a red background. The process ends.
In step 448, in this case, the maximum luminance difference acquisition color adjustment unit 117 inverts the luminance difference data stored in the luminance difference storage unit 115 with respect to the luminance difference inversion unit 120.
In step 449, the maximum luminance difference acquisition color adjustment unit 117 determines the red pixel as the pixel of the character 202 and the graphic 203 for the inverted luminance difference of the luminance difference storage unit 115, and the character / graphic recognition unit 118. Thus, it is determined that the character 202 and the figure 203 can be recognized. Proceed to step 487. That is, as shown in (4) or (5) in FIG. 17 described later, the background 201 corresponds to green or blue, the character 202, and the figure 203 correspond to red. The brightness difference in the brightness difference storage unit 115 is sent to the character / graphic recognition unit 118 to cause the character / graphic recognition unit 118 to perform recognition, and the character 202 written in black on a white background as in the past, Similar to the recognition of the figure 203, the recognition can be performed without reducing the recognition rate.

ステップ450において、最大輝度差取得色調整部117は、この場合、撮影像200が赤色以外の画素からなると判断する。
ステップ451において、最大輝度差取得色調整部117は最大輝度差取得の可能性があると判断する。
ステップ452において、最大輝度差取得色調整部117は、図15に進み、次の色調整の処理を行う。
In step 450, the maximum luminance difference acquisition color adjustment unit 117 determines that the captured image 200 is composed of pixels other than red in this case.
In step 451, the maximum luminance difference acquisition color adjustment unit 117 determines that there is a possibility of acquiring the maximum luminance difference.
In step 452, the maximum luminance difference acquisition color adjustment unit 117 proceeds to FIG. 15, and performs the next color adjustment process.

図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 color adjustment unit 117 in the continuation processing of FIGS. 13 and 14.
As shown in FIG. 15, in step 461, the maximum luminance difference acquisition color adjustment unit 117 sets the luminance difference storage unit 115 to an initial value.
In step 462, the maximum luminance difference acquisition color adjustment unit 117 initializes the capture pixel position.

ステップ463において、i=0、j=0とする。
ステップ464において、最大輝度差取得色調整部117は、青成分増幅器105に青成分増幅率制御信号111の最大値を設定する。
ステップ465において、最大輝度差取得色調整部117は、青成分増幅器105の調整を開始する。
In step 463, i = 0 and j = 0.
In step 464, the maximum luminance difference acquisition color adjustment unit 117 sets the maximum value of the blue component amplification factor control signal 111 in the blue component amplifier 105.
In step 465, the maximum luminance difference acquisition color adjustment unit 117 starts adjustment of the blue component amplifier 105.

ステップ466において、最大輝度差取得色調整部117は最大輝度記憶部113に初期値(a1)を設定、最小輝度記憶部114に初期値(b1)を設定する。
ステップ467において、最大輝度差取得色調整部117は画素位置情報信号119を介して1画素輝度信号を取り込む。
ステップ468において、最大輝度差取得色調整部117は輝度信号演算部116からの検出輝度信号の大きさと最大輝度記憶部113の初期値(a1)とを比較する。検出輝度信号の大きさが最大輝度記憶部113の初期値(a1)と等しいか又は小さい場合にはステップ470に進む。
In step 466, the maximum luminance difference acquisition color adjustment unit 117 sets an initial value (a1) in the maximum luminance storage unit 113 and sets an initial value (b1) in the minimum luminance storage unit 114.
In step 467, the maximum luminance difference acquisition color adjustment unit 117 captures the one-pixel luminance signal via the pixel position information signal 119.
In step 468, the maximum luminance difference acquisition color adjustment unit 117 compares the magnitude of the detected luminance signal from the luminance signal calculation unit 116 with the initial value (a1) of the maximum luminance storage unit 113. When the magnitude of the detected luminance signal is equal to or smaller than the initial value (a1) of the maximum luminance storage unit 113, the process proceeds to step 470.

ステップ469において、最大輝度差取得色調整部117は検出輝度信号の大きさが最大輝度記憶部113の初期値(a1)よりも大きい場合には、最大輝度記憶部113に設定されている初期値(a1)を輝度信号の大きさ(d1)に書き替える。
ステップ470において、最大輝度差取得色調整部117は輝度信号演算部116からの検出輝度信号の大きさと最小輝度記憶部114の初期値(b1)とを比較する。検出輝度信号の大きさが最小輝度記憶部114の初期値(b1)と等しいか又は大きい場合にはステップ472に進む。
In step 469, when the magnitude of the detected luminance signal is larger than the initial value (a1) of the maximum luminance storage unit 113, the maximum luminance difference acquisition color adjustment unit 117 sets the initial value set in the maximum luminance storage unit 113. (A1) is rewritten to the magnitude (d1) of the luminance signal.
In step 470, the maximum luminance difference acquisition color adjustment unit 117 compares the magnitude of the detected luminance signal from the luminance signal calculation unit 116 with the initial value (b1) of the minimum luminance storage unit 114. When the magnitude of the detected luminance signal is equal to or larger than the initial value (b1) of the minimum luminance storage unit 114, the process proceeds to step 472.

ステップ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 color adjustment unit 117 determines the initial value set in the minimum luminance storage unit 114 when the magnitude of the detected luminance signal is smaller than the initial value (b1) of the minimum luminance storage unit 114. (B1) is rewritten to the magnitude (c1) of the luminance signal.
In step 472, the maximum luminance difference acquisition color adjustment unit 117 performs an operation of the maximum luminance storage unit 113 -minimum luminance storage unit 114 on the values stored in the maximum luminance storage unit 113 and the minimum luminance storage unit 114 to obtain the luminance difference. The initial value (a1-b1) of the storage unit 115 is compared with the calculation result of the maximum luminance storage unit 113-minimum luminance storage unit 114. When the initial value (a1-b1) of the luminance difference storage unit 115 is larger than the calculation result (a1-c1) of the maximum luminance storage unit 113-minimum luminance storage unit 114, the process proceeds to step 473 and the luminance difference storage unit 115 When the initial value (a1-b1) is equal to or smaller than the calculation result (d1-b1) of the maximum luminance storage unit 113-minimum luminance storage unit 114, the process proceeds to step 474.

ステップ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 factor control signal 111. That is, j means the number of pixels having a small luminance difference, and as described above, the pixels having a small luminance difference constitute the character 202 and the graphic 203. j = j + 1 is set, the number of pixels to be red or green character 202 and graphic 203 is calculated, and the process proceeds to step 476.

ステップ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 color adjustment unit 117 calculates the initial value (a1-b1) set in the luminance difference storage unit 115 as the calculation result (d1-b1) of the maximum luminance storage unit 113-minimum luminance storage unit 114. Rewrite as
In step 475, this means that the captured pixel is a blue component pixel and the luminance is increased by setting the maximum value of the blue component amplification factor control signal 111. That is, i means the number of pixels having a large luminance difference, and pixels having a large luminance difference constitute the ground 201 as described above. The number of pixels that should be i = i + 1 and the background 201 of the blue background is calculated.

ステップ476において、最大輝度差取得色調整部117は取り込んだ画素が最終画素であるか否かを判断する。
ステップ477において、最大輝度差取得色調整部117は取り込んだ画素が最終画素でない場合、取り込み画素のアドレスを加算し、ステップ466に戻り、次の画素に対する最大輝度差取得動作を続行する。
In step 476, the maximum luminance difference acquisition color adjustment unit 117 determines whether or not the captured pixel is the final pixel.
In step 477, if the captured pixel is not the final pixel, the maximum brightness difference acquisition color adjustment unit 117 adds the address of the captured pixel, returns to step 466, and continues the maximum brightness difference acquisition operation for the next pixel.

図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 color adjusting unit 117 cancels the maximum value setting of the blue component amplification factor control signal 111 when the captured pixel is the final pixel.
In step 479, the adjustment of the blue component amplifier 105 is finished.
In step 480, the maximum luminance difference acquisition color adjustment unit 117 calculates j / i + j and compares j / i + j with 0.001. If j / i + j is equal to or greater than 0.001, the process proceeds to step 483.

ステップ481において、最大輝度差取得色調整部117は、j/i+jが0.001よりも小さい場合、撮影像200は青色のみの画素からなると判断する。
ステップ482において、最大輝度差取得色調整部117は、最大輝度差取得を不可と判断して処理を終了する。
ステップ483において、この場合、最大輝度差取得色調整部117は、最大輝度差取得を可能と判断する。
In step 481, the maximum luminance difference acquisition color adjustment unit 117 determines that the photographed image 200 includes only blue pixels when j / i + j is smaller than 0.001.
In step 482, the maximum brightness difference acquisition color adjustment unit 117 determines that the maximum brightness difference cannot be acquired and ends the process.
In step 483, in this case, the maximum luminance difference acquisition color adjustment unit 117 determines that the maximum luminance difference can be acquired.

ステップ484において、j/i+jと0.5を比較する。青色の画素が地201になるか、又は、文字202、図形203になるかの判断を行う。j/i+jが0.5よりも大きい場合、ステップ487に進む。
ステップ485において、最大輝度差取得色調整部117は、j/i+jが0.5と等しいか又は小さい場合、青色の画素を背景の地201の画素と確定する。
In step 484, j / i + j is compared with 0.5. It is determined whether the blue pixel is the ground 201 or the character 202 and the graphic 203. If j / i + j is greater than 0.5, go to step 487.
In step 485, the maximum luminance difference acquisition color adjusting unit 117 determines the blue pixel as the pixel of the background ground 201 when j / i + j is equal to or smaller than 0.5.

ステップ486において、最大輝度差取得色調整部117は、文字・図形認識部118で文字202、図形203を認識することが可能と判断する。すなわち、後述する図17における(6)に示すように、地201が青色、文字202、図形203が緑色に対応する。輝度差記憶部115の輝度差を文字・図形認識部118に送り、文字・図形認識部118に対して認識を行わせ、従来のように、白色の地に黒色で記載されている文字202、図形203の認識と同様に認識率を低下させずに、認識が可能になる。   In step 486, the maximum luminance difference acquisition color adjusting unit 117 determines that the character 202 and graphic 203 can be recognized by the character / graphic recognition unit 118. That is, as shown in (6) in FIG. 17 described later, the background 201 corresponds to blue, the character 202, and the figure 203 correspond to green. The brightness difference in the brightness difference storage unit 115 is sent to the character / graphic recognition unit 118 to cause the character / graphic recognition unit 118 to perform recognition, and the character 202 written in black on a white background as in the past, Similar to the recognition of the figure 203, the recognition can be performed without reducing the recognition rate.

すなわち、背景が青色の地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 character 202 and the figure 203 written in green on the background 201 with a blue background. The process ends.
In step 487, in this case, the maximum luminance difference acquisition color adjustment unit 117 inverts the luminance difference data stored in the luminance difference storage unit 115 with respect to the luminance difference inversion unit 120.
In step 488, the maximum luminance difference acquisition color adjustment unit 117 determines the blue pixel as the pixel of the character 202 and the graphic 203 for the inverted luminance difference of the luminance difference storage unit 115, and the character / graphic recognition unit 118. Thus, it is determined that the character 202 and the figure 203 can be recognized. Proceed to step 488. That is, as shown in (3) in FIG. 17 described later, the background 201 corresponds to green, the character 202, and the figure 203 correspond to blue. The brightness difference in the brightness difference storage unit 115 is sent to the character / graphic recognition unit 118 to cause the character / graphic recognition unit 118 to perform recognition, and the character 202 written in black on a white background as in the past, Similar to the recognition of the figure 203, the recognition can be performed without reducing the recognition rate.
That is, it becomes possible to recognize the character 202 and the graphic 203 written in blue on the ground 201 having a green background.

以上における図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 red component amplifier 103 and the blue component amplifier 105 in the order of the red component amplification factor control signal 109 and the blue component amplification factor control signal 111. This order is an example and may be reversed.
FIG. 17 is a combination of the color of the ground 201 of the photographed image 200 and the character 202 and the graphic 203 based on the example of the maximum brightness difference acquisition operation of the maximum brightness difference acquisition color adjusting unit 117 of FIGS. FIG.

輝度差反転部120を設けて、最大輝度差と最小輝度差の画素を相互に反転するようにし、図11の組み合わせの実現を可能にするようにした。
最大輝度差を取得するためには、前述のように、図13、図14の処理、図13、図14(反転:ステップ448、ステップ449参照)の処理、図13、図14→図15、図16の処理、図13、図14→図15、図16(反転:ステップ487、ステップ488参照)の処理が必要である。
The luminance difference inversion unit 120 is provided so that the pixels having the maximum luminance difference and the minimum luminance difference are mutually inverted so that the combination shown in FIG. 11 can be realized.
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 steps 448 and 449), FIG. 13, FIG. 14 to FIG. The processing of FIG. 16 and the processing of FIG. 13, FIG. 14 → FIG. 15, and FIG. 16 (inversion: see steps 487 and 488) are necessary.

したがって、本発明によれば、緑成分増幅器104の増幅率を固定し、赤成分増幅器103、青成分増幅器105の増幅率を可変にすることにより、例えば、背景の赤色の地201に青色の文字202、図形203に対して、背景の赤色の地201の画素の輝度を最大にし、青色で記載された文字202、図形203の画素の輝度を最小にすることが可能になる。   Therefore, according to the present invention, the amplification factor of the green component amplifier 104 is fixed, and the amplification factors of the red component amplifier 103 and the blue component amplifier 105 are made variable. It is possible to maximize the luminance of the pixels of the red background 201 of the background for the 202 and the graphic 203 and to minimize the luminance of the pixels of the character 202 and the graphic 203 written in blue.

図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 green component amplifier 104 is fixed, and in the examples of FIGS. 13 to 16, the amplification factors of the red component amplifier 103 and the blue component amplifier 105 are made variable, but this example is an example. It is possible to obtain the same effect by fixing any one of the red component amplifier 103, the green component amplifier 104, and the blue component amplifier 105 and making the other two variable.
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 character 202 and the figure 203 written in blue on the red background 201 of the background, for example, the red component amplifier The color difference is adjusted so as to minimize the luminance difference between the pixels of the character 202 and the graphic 203 written in blue. For the character 202 and the graphic 203 written in blue on the red background 201, when the amplification factor of the blue component amplifier is maximized, the obtained luminance difference is inverted, so that And characters written in black on a white background 02, without lowering the recognition as well as recognition rate of a graphic 203, character 202, it is possible to recognize the figure 203.

以上は、赤色、緑色、青色の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 color adjustment unit 117 in FIG.

図18に示すように、ステップ501において、最大輝度差取得色調整部117は、赤成分増幅率制御信号109、緑成分増幅率制御信号110、青成分増幅率制御信号111を初期値(最小値)にそれぞれ設定し、輝度差記憶部115を初期値に設定する。
ステップ502において、最大輝度差取得色調整部117は、取り込み画素位置の初期化を行う。
As shown in FIG. 18, in step 501, the maximum luminance difference acquisition color adjusting unit 117 sets initial values (minimum values) of the red component gain control signal 109, the green component gain control signal 110, and the blue component gain control signal 111. ) And the luminance difference storage unit 115 is set to an initial value.
In step 502, the maximum luminance difference acquisition color adjustment unit 117 initializes the capture pixel position.

ステップ503において、i=0、j=0とする。
ステップ504において、最大輝度差取得色調整部117は、赤成分増幅器103に赤成分増幅率制御信号109の最大値を設定する。
ステップ505において、最大輝度差取得色調整部117は、赤成分増幅器103の調整を開始する。
In step 503, i = 0 and j = 0.
In step 504, the maximum luminance difference acquisition color adjustment unit 117 sets the maximum value of the red component amplification factor control signal 109 in the red component amplifier 103.
In step 505, the maximum luminance difference acquisition color adjustment unit 117 starts adjustment of the red component amplifier 103.

ステップ506において、最大輝度差取得色調整部117は最大輝度記憶部113に初期値(a1)を設定、最小輝度記憶部114に初期値(b1)を設定する。
ステップ507において、最大輝度差取得色調整部117は画素位置情報信号119を介して1画素輝度信号を取り込む。
ステップ508において、最大輝度差取得色調整部117は輝度信号演算部116からの検出輝度信号の大きさと最大輝度記憶部113の初期値(a1)とを比較する。検出輝度信号の大きさが最大輝度記憶部113の初期値(a1)と等しいか又は小さい場合にはステップ510に進む。
In step 506, the maximum luminance difference acquisition color adjustment unit 117 sets an initial value (a1) in the maximum luminance storage unit 113 and sets an initial value (b1) in the minimum luminance storage unit 114.
In step 507, the maximum luminance difference acquisition color adjustment unit 117 captures a one-pixel luminance signal via the pixel position information signal 119.
In step 508, the maximum luminance difference acquisition color adjustment unit 117 compares the magnitude of the detected luminance signal from the luminance signal calculation unit 116 with the initial value (a1) of the maximum luminance storage unit 113. When the magnitude of the detected luminance signal is equal to or smaller than the initial value (a1) of the maximum luminance storage unit 113, the process proceeds to step 510.

ステップ509において、最大輝度差取得色調整部117は検出輝度信号の大きさが最大輝度記憶部113の初期値(a1)よりも大きい場合には、最大輝度記憶部113に設定されている初期値(a1)を輝度信号の大きさ(d1)に書き替える。
ステップ510において、最大輝度差取得色調整部117は輝度信号演算部116からの検出輝度信号の大きさと最小輝度記憶部114の初期値(b1)とを比較する。検出輝度信号の大きさが最小輝度記憶部114の初期値(b1)と等しいか又は大きい場合にはステップ512に進む。
In step 509, the maximum luminance difference acquisition color adjustment unit 117 determines that the detected luminance signal is larger than the initial value (a1) of the maximum luminance storage unit 113, the initial value set in the maximum luminance storage unit 113. (A1) is rewritten to the magnitude (d1) of the luminance signal.
In step 510, the maximum luminance difference acquisition color adjustment unit 117 compares the magnitude of the detected luminance signal from the luminance signal calculation unit 116 with the initial value (b1) of the minimum luminance storage unit 114. When the magnitude of the detected luminance signal is equal to or larger than the initial value (b1) of the minimum luminance storage unit 114, the process proceeds to step 512.

ステップ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 step 511, the maximum luminance difference acquisition color adjustment unit 117 determines the initial value set in the minimum luminance storage unit 114 when the magnitude of the detected luminance signal is smaller than the initial value (b1) of the minimum luminance storage unit 114. (B1) is rewritten to the magnitude (c1) of the luminance signal.
In step 512, the maximum luminance difference acquisition color adjustment unit 117 performs an operation of the maximum luminance storage unit 113 -minimum luminance storage unit 114 on the values stored in the maximum luminance storage unit 113 and the minimum luminance storage unit 114, thereby calculating the luminance difference. The initial value (a1-b1) of the storage unit 115 is compared with the calculation result of the maximum luminance storage unit 113-minimum luminance storage unit 114. When the initial value (a1-b1) of the luminance difference storage unit 115 is larger than the calculation result (a1-c1) of the maximum luminance storage unit 113-minimum luminance storage unit 114, the process proceeds to step 513 and the luminance difference storage unit 115 When the initial value (a1-b1) is equal to or smaller than the calculation result (d1-b1) of the maximum luminance storage unit 113-minimum luminance storage unit 114, the process proceeds to step 514.

ステップ513において、この場合、取り込んだ画素が赤成分増幅率制御信号109の最大値設定にもかかわらずその輝度が小さいことを意味する。すなわち、jは輝度差の小さい画素の数を意味し、前述のように、輝度差の小さい画素は文字202、図形203を構成するとする。j=j+1とし文字202、図形203となるべき画素数を計算し、ステップ516に進む。   In step 513, in this case, it means that the luminance of the captured pixel is small despite the maximum value setting of the red component amplification factor control signal 109. That is, j means the number of pixels having a small luminance difference, and as described above, the pixels having a small luminance difference constitute the character 202 and the graphic 203. j = j + 1 is set, the number of pixels to be the character 202 and the graphic 203 is calculated, and the process proceeds to Step 516.

ステップ514において、最大輝度差取得色調整部117は輝度差記憶部115に設定されている初期値(a1−b1)を最大輝度記憶部113−最小輝度記憶部114の演算結果(d1−b1)に書き替える。
ステップ515において、この場合、取り込んだ画素が赤成分増幅率制御信号109の最大値設定でその輝度が大きくなったことを意味する。すなわち、iは輝度差の大きい画素の数を意味し、前述のように、輝度差の大きい画素は地201を構成するとする。i=i+1とし背景の地201となるべき画素数の計算を行う。
In step 514, the maximum luminance difference acquisition color adjustment unit 117 calculates the initial value (a1-b1) set in the luminance difference storage unit 115 as the calculation result (d1-b1) of the maximum luminance storage unit 113-minimum luminance storage unit 114. Rewrite as
In step 515, in this case, it means that the luminance of the captured pixel is increased by setting the maximum value of the red component gain control signal 109. That is, i means the number of pixels having a large luminance difference, and pixels having a large luminance difference constitute the ground 201 as described above. i = i + 1 and the number of pixels to be the background 201 is calculated.

ステップ516において、最大輝度差取得色調整部117は取り込んだ画素が最終画素であるか否かを判断する。
ステップ517において、最大輝度差取得色調整部117は取り込んだ画素が最終画素でない場合、取り込み画素のアドレスを加算し、ステップ506に戻り、次の画素に対する最大輝度差取得動作を続行する。
In step 516, the maximum luminance difference acquisition color adjustment unit 117 determines whether or not the captured pixel is the final pixel.
In step 517, if the captured pixel is not the final pixel, the maximum brightness difference acquisition color adjustment unit 117 adds the address of the captured pixel, returns to step 506, and continues the maximum brightness difference acquisition operation for the next pixel.

図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 color adjustment unit 117 cancels the setting of the maximum value of the red component amplification factor control signal 109 when the captured pixel is the final pixel.
In step 519, the adjustment of the red component amplifier 103 is terminated.
In step 520, the maximum luminance difference acquisition color adjustment unit 117 calculates j / i + j and compares j / i + j with 0.001. If j / i + j is equal to or greater than 0.001, the process proceeds to step 521.

ステップ521において、最大輝度差取得色調整部117は、j/i+jが0.001よりも小さい場合、撮影像200は赤色、黄色、マゼンタのみの画素からなると判断する。すなわち、撮影像200は赤色、黄色、マゼンタ単独の画素の場合と、さらに、赤色と黄色の画素、黄色とマゼンタの画素、マゼンタと赤色の画素からなる2つの色の組み合わせの場合がある。   In step 521, the maximum luminance difference acquisition color adjustment unit 117 determines that the captured image 200 includes only red, yellow, and magenta pixels when j / i + j is smaller than 0.001. That is, the photographed image 200 may be a red, yellow, or magenta pixel, or a combination of two colors including a red and yellow pixel, a yellow and magenta pixel, and a magenta and red pixel.

撮影像200が赤色と黄色の画素、黄色とマゼンタの画素、マゼンタと赤色の画素である場合には、一方の色が地201であり、他方の色が文字202、図形203である場合があり、最大輝度差取得の可能性がある。このため、ステップ530に進み、図14、図15で最大輝度差取得の処理を行う。なお、撮影像200が赤色、黄色、マゼンタ単独の画素である場合には最大輝度差取得が不可であるので、この場合には、後述する図23のステップ602で最大輝度差取得不可の処理を行う。   When the photographed image 200 is a red and yellow pixel, a yellow and magenta pixel, and a magenta and red pixel, one color may be the ground 201, and the other color may be a character 202 and a figure 203. There is a possibility of obtaining the maximum luminance difference. For this reason, the process proceeds to step 530, and the process of obtaining the maximum luminance difference is performed in FIGS. Note that when the captured image 200 is a single pixel of red, yellow, and magenta, the maximum brightness difference cannot be acquired. In this case, processing for not acquiring the maximum brightness difference is performed in step 602 in FIG. Do.

ステップ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 step 522, the maximum luminance difference acquisition color adjustment unit 117 compares j / i + j with 0.999. If j / i + j is greater than 0.999, go to step 529.
In step 523, the maximum luminance difference acquisition color adjustment unit 117 determines that the maximum luminance difference can be acquired when j / i + j is equal to or smaller than 0.999.
In step 524, j / i + j is compared with 0.5. It is determined whether any one pixel of red, yellow, or magenta is a pixel of the ground 201 or a pixel of the character 202 or the graphic 203. When j / i + j is larger than 0.5, the process proceeds to step 527, and the process of FIGS.

ステップ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 step 525, when the maximum luminance difference acquisition color adjustment unit 117, j / i + j is equal to or smaller than 0.5, any one pixel of red, yellow, or magenta is determined as the pixel of the background ground 201.
In step 526, the maximum luminance difference acquisition color adjustment unit 117 determines that the character / graphic recognition unit 118 can recognize the character 202 and the graphic 203. That is, (1), (2), (8), (9), (15), (23), (24), (26), and (27) in FIG. The brightness difference in the brightness difference storage unit 115 is sent to the character / graphic recognition unit 118 to cause the character / graphic recognition unit 118 to perform recognition, and the character 202 written in black on a white background as in the past, Similar to the recognition of the figure 203, the recognition can be performed without reducing the recognition rate. The process ends.

ステップ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 step 527, in this case, the maximum luminance difference acquisition color adjustment unit 117 inverts the luminance difference data stored in the luminance difference storage unit 115 with respect to the luminance difference inversion unit 120.
In step 528, the maximum luminance difference acquisition color adjusting unit 117 determines that one of red, yellow, and magenta pixels is the pixel of the character 202 and the graphic 203 with respect to the inverted luminance difference of the luminance difference storage unit 115. Then, it is determined that the character / graphic recognition unit 118 can recognize the character 202 and the graphic 203. Proceed to step 526. That is, (4), (5), (11), (16), (19), and (20) in FIG. The brightness difference in the brightness difference storage unit 115 is sent to the character / graphic recognition unit 118 to cause the character / graphic recognition unit 118 to perform recognition, and the character 202 written in black on a white background as in the past, Similar to the recognition of the figure 203, the recognition can be performed without reducing the recognition rate.

ステップ529において、この場合、最大輝度差取得色調整部117は、撮影像200が赤色、黄色、マゼンタ以外の画素からなると判断し、図20−図23の処理に委ねる。
ステップ530において、最大輝度差取得色調整部117は最大輝度差取得の可能性があると判断する。
In step 529, in this case, the maximum luminance difference acquisition color adjustment unit 117 determines that the captured image 200 is composed of pixels other than red, yellow, and magenta, and leaves the processing to FIGS.
In step 530, the maximum luminance difference acquisition color adjustment unit 117 determines that there is a possibility of acquiring the maximum luminance difference.

ステップ5に531いて、最大輝度差取得色調整部117は、図20に進み、次の色調整の処理を行う。
図20、図21は図18、図19の継続処理で、最大輝度差取得色調整部117の緑成分調整による最大輝度差取得で中間色を加えた動作例を説明するフローチャートである。
図20に示すように、ステップ541において、図19のステップ532に続き、最大輝度差取得色調整部117は輝度差記憶部115を初期値に設定する。
In step 531, the maximum luminance difference acquisition color adjustment unit 117 proceeds to FIG. 20 and performs the next color adjustment process.
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 color adjustment unit 117 in the continuation processing of FIGS. 18 and 19.
As shown in FIG. 20, in step 541, following step 532 in FIG. 19, the maximum luminance difference acquisition color adjustment unit 117 sets the luminance difference storage unit 115 to an initial value.

ステップ542において、最大輝度差取得色調整部117は、取り込み画素位置の初期化を行う。
ステップ543において、i=0、j=0とする。
ステップ345において、最大輝度差取得色調整部117は、緑成分増幅器104に緑成分増幅率制御信号110の最大値を設定する。
In step 542, the maximum luminance difference acquisition color adjustment unit 117 initializes the capture pixel position.
In step 543, i = 0 and j = 0.
In step 345, the maximum luminance difference acquisition color adjustment unit 117 sets the maximum value of the green component amplification factor control signal 110 in the green component amplifier 104.

ステップ544において、最大輝度差取得色調整部117は、緑成分増幅器104の調整を開始する。
ステップ546において、最大輝度差取得色調整部117は最大輝度記憶部113に初期値(a1)を設定、最小輝度記憶部114に初期値(b1)を設定する。
ステップ547において、最大輝度差取得色調整部117は画素位置情報信号119を介して1画素輝度信号を取り込む。
In step 544, the maximum luminance difference acquisition color adjustment unit 117 starts adjustment of the green component amplifier 104.
In step 546, the maximum luminance difference acquisition color adjustment unit 117 sets an initial value (a 1) in the maximum luminance storage unit 113 and an initial value (b 1) in the minimum luminance storage unit 114.
In step 547, the maximum luminance difference acquisition color adjustment unit 117 captures a one-pixel luminance signal via the pixel position information signal 119.

ステップ548において、最大輝度差取得色調整部117は輝度信号演算部116からの検出輝度信号の大きさと最大輝度記憶部113の初期値(a1)とを比較する。検出輝度信号の大きさが最大輝度記憶部113の初期値(a1)と等しいか又は小さい場合にはステップ550に進む。
ステップ549において、最大輝度差取得色調整部117は検出輝度信号の大きさが最大輝度記憶部113の初期値(a1)よりも大きい場合には、最大輝度記憶部113に設定されている初期値(a1)を輝度信号の大きさ(d1)に書き替える。
In step 548, the maximum luminance difference acquisition color adjustment unit 117 compares the magnitude of the detected luminance signal from the luminance signal calculation unit 116 with the initial value (a1) of the maximum luminance storage unit 113. When the magnitude of the detected luminance signal is equal to or smaller than the initial value (a1) of the maximum luminance storage unit 113, the process proceeds to step 550.
In step 549, when the magnitude of the detected luminance signal is larger than the initial value (a1) of the maximum luminance storage unit 113, the maximum luminance difference acquisition color adjustment unit 117 sets the initial value set in the maximum luminance storage unit 113. (A1) is rewritten to the magnitude (d1) of the luminance signal.

ステップ550において、最大輝度差取得色調整部117は輝度信号演算部116からの検出輝度信号の大きさと最小輝度記憶部114の初期値(b1)とを比較する。検出輝度信号の大きさが最小輝度記憶部114の初期値(b1)と等しいか又は大きい場合にはステップ552に進む。
ステップ551において、最大輝度差取得色調整部117は検出輝度信号の大きさが最小輝度記憶部114の初期値(b1)よりも小さい場合には、最小輝度記憶部114に設定されている初期値(b1)を輝度信号の大きさ(c1)に書き替える。
In step 550, the maximum luminance difference acquisition color adjustment unit 117 compares the magnitude of the detected luminance signal from the luminance signal calculation unit 116 with the initial value (b 1) of the minimum luminance storage unit 114. If the detected luminance signal is equal to or larger than the initial value (b1) of the minimum luminance storage unit 114, the process proceeds to step 552.
In step 551, the maximum luminance difference acquisition color adjustment unit 117 determines that the detected luminance signal is smaller than the initial value (b1) of the minimum luminance storage unit 114, and the initial value set in the minimum luminance storage unit 114. (B1) is rewritten to the magnitude (c1) of the luminance signal.

ステップ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 step 552, the maximum luminance difference acquisition color adjustment unit 117 performs an operation of the maximum luminance storage unit 113 -minimum luminance storage unit 114 on the values stored in the maximum luminance storage unit 113 and the minimum luminance storage unit 114 to obtain the luminance difference. The initial value (a1-b1) of the storage unit 115 is compared with the calculation result of the maximum luminance storage unit 113-minimum luminance storage unit 114. When the initial value (a1-b1) of the luminance difference storage unit 115 is larger than the calculation result (a1-c1) of the maximum luminance storage unit 113-minimum luminance storage unit 114, the process proceeds to step 553, and the luminance difference storage unit 115 When the initial value (a1-b1) is equal to or smaller than the calculation result (d1-b1) of the maximum luminance storage unit 113-minimum luminance storage unit 114, the process proceeds to step 554.

ステップ553において、この場合、取り込んだ画素が緑成分増幅率制御信号110の最大値設定にもかかわらず輝度が小さいことを意味する。すなわち、jは輝度差の小さい画素の数を意味し、前述のように、輝度差の小さい画素は文字202、図形203を構成するとする。j=j+1とし文字202、図形203となるべき画素数を計算し、ステップ556に進む。   In step 553, in this case, it means that the luminance of the captured pixel is small despite the maximum value setting of the green component amplification factor control signal 110. That is, j means the number of pixels having a small luminance difference, and as described above, the pixels having a small luminance difference constitute the character 202 and the graphic 203. j = j + 1 is set, the number of pixels to be the character 202 and the graphic 203 is calculated, and the process proceeds to step 556.

ステップ554において、最大輝度差取得色調整部117は輝度差記憶部115に設定されている初期値(a1−b1)を最大輝度記憶部113−最小輝度記憶部114の演算結果(d1−b1)に書き替える。
ステップ555において、この場合、取り込んだ画素が緑成分増幅率制御信号110の最大値設定で輝度が大きくなったことを意味する。すなわち、iは輝度差の大きい画素の数を意味し、前述のように、輝度差の大きい画素は地201を構成するとする。i=i+1とし背景の地201となるべき画素数の計算を行う。
In step 554, the maximum luminance difference acquisition color adjustment unit 117 calculates the initial value (a1-b1) set in the luminance difference storage unit 115 as the calculation result (d1-b1) of the maximum luminance storage unit 113-minimum luminance storage unit 114. Rewrite as
In step 555, in this case, it means that the luminance of the captured pixel is increased by setting the maximum value of the green component amplification factor control signal 110. That is, i means the number of pixels having a large luminance difference, and pixels having a large luminance difference constitute the ground 201 as described above. i = i + 1 and the number of pixels to be the background 201 is calculated.

ステップ556において、最大輝度差取得色調整部117は取り込んだ画素が最終画素であるか否かを判断する。
ステップ557において、最大輝度差取得色調整部117は取り込んだ画素が最終画素でない場合、取り込み画素のアドレスを加算し、ステップ346に戻り、次の画素に対する最大輝度差取得動作を続行する。
In step 556, the maximum luminance difference acquisition color adjustment unit 117 determines whether or not the captured pixel is the final pixel.
In step 557, if the captured pixel is not the final pixel, the maximum brightness difference acquisition color adjustment unit 117 adds the address of the captured pixel, returns to step 346, and continues the maximum brightness difference acquisition operation for the next pixel.

図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 step 558, the maximum luminance difference acquisition color adjusting unit 117 cancels the maximum value setting of the green component amplification factor control signal 110 when the captured pixel is the final pixel.
In step 559, the adjustment of the green component amplifier 104 is terminated.
In step 560, the maximum luminance difference acquisition color adjusting unit 117 calculates j / i + j and compares j / i + j with 0.001. If j / i + j is equal to or greater than 0.001, the process proceeds to step 563.

ステップ561において、最大輝度差取得色調整部117は、撮影像200が緑色、黄色、マゼンタのみの画素からなると判断する。すなわち、撮影像200は緑色、黄色、マゼンタ単独の画素の場合と、さらに、緑色と黄色の画素、黄色とマゼンタの画素、マゼンタと緑色の画素からなる2つの色の組み合わせの場合がある。   In step 561, the maximum luminance difference acquisition color adjustment unit 117 determines that the captured image 200 includes pixels of only green, yellow, and magenta. That is, the photographed image 200 may be a green, yellow, or magenta pixel, or a combination of two colors including a green and yellow pixel, a yellow and magenta pixel, and a magenta and green pixel.

撮影像200が緑色と黄色の画素、黄色とマゼンタの画素、マゼンタと緑色の画素である場合には、一方の色が地201であり、他方の色が文字202、図形203である場合があり、最大輝度差取得の可能性がある。このため、ステップ570に進み、図22、図23の処理に委ねる。
なお、撮影像200が緑色、黄色、マゼンタ単独の画素である場合には最大輝度差取得を不可であるので、この場合には、後述する図23のステップ602で最大輝度差取得不可の処理を行う。
When the photographed image 200 is a green and yellow pixel, a yellow and magenta pixel, and a magenta and green pixel, one color may be the ground 201 and the other color may be a character 202 and a figure 203. There is a possibility of obtaining the maximum luminance difference. For this reason, the process proceeds to step 570 and is left to the processes of FIGS.
Since the maximum brightness difference cannot be acquired when the captured image 200 is a single pixel of green, yellow, and magenta, in this case, the process of not acquiring the maximum brightness difference is performed in step 602 in FIG. Do.

ステップ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 color adjustment unit 117 compares j / i + j with 0.999. If j / i + j is greater than 0.999, go to step 569.
In step 563, the maximum luminance difference acquisition color adjustment unit 117 determines that the maximum luminance difference can be acquired when j / i + j is equal to or smaller than 0.999.
In step 564, j / i + j is compared with 0.5. It is determined whether any one of the green, yellow, and cyan pixels is the pixel of the ground 201 or the pixel of the character 202 and the graphic 203. If j / i + j is greater than 0.5, go to step 567.

ステップ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 step 565, when the maximum luminance difference acquisition color adjusting unit 117, j / i + j is equal to or smaller than 0.5, any one of green, yellow, and cyan pixels is determined as the pixel of the background ground 201.
In step 566, the maximum luminance difference acquisition color adjustment unit 117 determines that the character 202 and graphic 203 can be recognized by the character / graphic recognition unit 118. That is, it corresponds to (3), (7), (12), (17), (22), (28), and (30) in FIG. The brightness difference in the brightness difference storage unit 115 is sent to the character / graphic recognition unit 118 to cause the character / graphic recognition unit 118 to perform recognition, and the character 202 written in black on a white background as in the past, Similar to the recognition of the figure 203, the recognition can be performed without reducing the recognition rate. The process ends.

ステップ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 color adjustment unit 117 inverts the luminance difference data stored in the luminance difference storage unit 115 with respect to the luminance difference inversion unit 120.
In step 568, the maximum luminance difference acquisition color adjustment unit 117 replaces the inverted luminance difference in the luminance difference storage unit 115 with any one of green, yellow, and cyan pixels as the character 202 and graphic 203 pixels. Then, it is determined that the character / graphic recognition unit 118 can recognize the character 202 and the graphic 203. Proceed to step 566. That is, (6), (10), (13), and (21) in FIG. The brightness / difference stored in the brightness difference storage unit 115 is sent to the character / graphic recognition unit 118 to cause the character / graphic recognition unit 118 to perform the recognition. As in the case of 203, recognition can be performed without reducing the recognition rate.

ステップ569において、この場合、最大輝度差取得色調整部117は、撮影像200が緑色、黄色又はマゼンタ以外の画素からなると判断し、図22、図23の処理に委ねる。
ステップ570において、最大輝度差取得色調整部117は最大輝度差取得の可能性があるとと判断する。
In step 569, in this case, the maximum luminance difference acquisition color adjustment unit 117 determines that the captured image 200 is composed of pixels other than green, yellow, or magenta, and leaves the processing to FIGS. 22 and 23.
In step 570, the maximum luminance difference acquisition color adjustment unit 117 determines that there is a possibility of acquiring the maximum luminance difference.

ステップ571において、最大輝度差取得色調整部117は、図22に進み、次の色調整の処理を行う。
図22、図23は図20、図21の継続処理で、最大輝度差取得色調整部117の青成分調整による最大輝度差取得で中間色を加えた動作例を説明するフローチャートである。
図22に示すように、ステップ581において、最大輝度差取得色調整部117は、図21のステップ571に続き、輝度差記憶部115を初期値に設定する。
In step 571, the maximum luminance difference acquisition color adjustment unit 117 proceeds to FIG. 22, and performs the next color adjustment process.
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 color adjustment unit 117 in the continuation processing of FIGS.
As shown in FIG. 22, in step 581, the maximum luminance difference acquisition color adjustment unit 117 sets the luminance difference storage unit 115 to an initial value following step 571 in FIG. 21.

ステップ582において、最大輝度差取得色調整部117は、取り込み画素位置の初期化を行う。
ステップ583において、i=0、j=0とする。
ステップ584において、最大輝度差取得色調整部117は、青成分増幅器105に青成分増幅率制御信号111の最大値を設定する。
In step 582, the maximum luminance difference acquisition color adjustment unit 117 initializes the capture pixel position.
In step 583, i = 0 and j = 0.
In step 584, the maximum luminance difference acquisition color adjustment unit 117 sets the maximum value of the blue component amplification factor control signal 111 in the blue component amplifier 105.

ステップ585において、最大輝度差取得色調整部117は、青成分増幅器105の調整を開始する。
ステップ586において、最大輝度差取得色調整部117は最大輝度記憶部113に初期値(a1)を設定、最小輝度記憶部114に初期値(b1)を設定する。
ステップ587において、最大輝度差取得色調整部117は画素位置情報信号119を介して1画素輝度信号を取り込む。
In step 585, the maximum luminance difference acquisition color adjustment unit 117 starts adjustment of the blue component amplifier 105.
In step 586, the maximum luminance difference acquisition color adjustment unit 117 sets an initial value (a1) in the maximum luminance storage unit 113 and sets an initial value (b1) in the minimum luminance storage unit 114.
In step 587, the maximum luminance difference acquisition color adjustment unit 117 captures a one-pixel luminance signal via the pixel position information signal 119.

ステップ588において、最大輝度差取得色調整部117は輝度信号演算部116からの検出輝度信号の大きさと最大輝度記憶部113の初期値(a1)とを比較する。検出輝度信号の大きさが最大輝度記憶部113の初期値(a1)と等しいか又は小さい場合にはステップ590に進む。
ステップ589において、最大輝度差取得色調整部117は検出輝度信号の大きさが最大輝度記憶部113の初期値(a1)よりも大きい場合には、最大輝度記憶部113に設定されている初期値(a1)を輝度信号の大きさ(d1)に書き替える。
In step 588, the maximum luminance difference acquisition color adjustment unit 117 compares the magnitude of the detected luminance signal from the luminance signal calculation unit 116 with the initial value (a1) of the maximum luminance storage unit 113. When the magnitude of the detected luminance signal is equal to or smaller than the initial value (a1) of the maximum luminance storage unit 113, the process proceeds to step 590.
In step 589, when the magnitude of the detected luminance signal is larger than the initial value (a1) of the maximum luminance storage unit 113, the maximum luminance difference acquisition color adjustment unit 117 sets the initial value set in the maximum luminance storage unit 113. (A1) is rewritten to the magnitude (d1) of the luminance signal.

ステップ590において、最大輝度差取得色調整部117は輝度信号演算部116からの検出輝度信号の大きさと最小輝度記憶部114の初期値(b1)とを比較する。検出輝度信号の大きさが最小輝度記憶部114の初期値(b1)と等しいか又は大きい場合にはステップ592に進む。
ステップ591において、最大輝度差取得色調整部117は検出輝度信号の大きさが最小輝度記憶部114の初期値(b1)よりも小さい場合には、最小輝度記憶部114に設定されている初期値(b1)を輝度信号の大きさ(c1)に書き替える。
In step 590, the maximum luminance difference acquisition color adjustment unit 117 compares the magnitude of the detected luminance signal from the luminance signal calculation unit 116 with the initial value (b1) of the minimum luminance storage unit 114. When the magnitude of the detected luminance signal is equal to or larger than the initial value (b1) of the minimum luminance storage unit 114, the process proceeds to step 592.
In step 591, if the magnitude of the detected luminance signal is smaller than the initial value (b1) of the minimum luminance storage unit 114, the maximum luminance difference acquisition color adjustment unit 117 sets the initial value set in the minimum luminance storage unit 114. (B1) is rewritten to the magnitude (c1) of the luminance signal.

ステップ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 step 592, the maximum luminance difference acquisition color adjustment unit 117 calculates the maximum luminance storage unit 113 and the minimum luminance storage unit 114 for the values stored in the maximum luminance storage unit 113 and the minimum luminance storage unit 114, thereby calculating the luminance difference. The initial value (a1-b1) of the storage unit 115 is compared with the calculation result of the maximum luminance storage unit 113-minimum luminance storage unit 114. When the initial value (a1-b1) of the luminance difference storage unit 115 is larger than the calculation result (a1-c1) of the maximum luminance storage unit 113-minimum luminance storage unit 114, the process proceeds to step 593 and the luminance difference storage unit 115 When the initial value (a1-b1) is equal to or smaller than the calculation result (d1-b1) of the maximum luminance storage unit 113-minimum luminance storage unit 114, the process proceeds to step 594.

ステップ593において、この場合、取り込んだ画素が青成分増幅率制御信号111の最大値設定にもかかわらず輝度が小さいことを意味する。すなわち、jは輝度差の小さい画素の数を意味し、前述のように、輝度差の小さい画素は文字202、図形203を構成するとする。j=j+1とし文字、図形203となるべき画素数を計算し、ステップ596に進む。   In step 593, this means that the captured pixel has a low luminance despite the maximum value setting of the blue component amplification factor control signal 111. That is, j means the number of pixels having a small luminance difference, and as described above, the pixels having a small luminance difference constitute the character 202 and the graphic 203. j = j + 1 is set, and the number of pixels to be the character and graphic 203 is calculated.

ステップ594において、最大輝度差取得色調整部117は輝度差記憶部115に設定されている初期値(a1−b1)を最大輝度記憶部113−最小輝度記憶部114の演算結果(d1−b1)に書き替える。
ステップ595において、この場合、取り込んだ画素が青成分増幅率制御信号111の最大値設定で輝度が大きくなったことを意味する。すなわち、iは輝度差の大きい画素の数を意味し、前述のように、輝度差の大きい画素は地201を構成するとする。i=i+1とし背景の地201となるべき画素数の計算を行う。
In step 594, the maximum luminance difference acquisition color adjustment unit 117 calculates the initial value (a1-b1) set in the luminance difference storage unit 115 as the calculation result (d1-b1) of the maximum luminance storage unit 113-minimum luminance storage unit 114. Rewrite as
In step 595, in this case, it means that the luminance of the captured pixel is increased by setting the maximum value of the blue component amplification factor control signal 111. That is, i means the number of pixels having a large luminance difference, and pixels having a large luminance difference constitute the ground 201 as described above. i = i + 1 and the number of pixels to be the background 201 is calculated.

ステップ596において、最大輝度差取得色調整部117は取り込んだ画素が最終画素であるか否かを判断する。
ステップ597において、最大輝度差取得色調整部117は取り込んだ画素が最終画素でない場合、取り込み画素のアドレスを加算し、ステップ586に戻り、次の画素に対する最大輝度差取得動作を続行する。
In step 596, the maximum luminance difference acquisition color adjustment unit 117 determines whether or not the captured pixel is the final pixel.
In step 597, if the captured pixel is not the final pixel, the maximum brightness difference acquisition color adjustment unit 117 adds the address of the captured pixel, returns to step 586, and continues the maximum brightness difference acquisition operation for the next pixel.

図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 step 598, the maximum luminance difference acquisition color adjusting unit 117 cancels the setting of the maximum value of the blue component amplification factor control signal 111 when the captured pixel is the final pixel.
In step 599, the adjustment of the blue component amplifier 105 is terminated.
In step 600, the maximum luminance difference acquisition color adjustment unit 117 calculates j / i + j and compares j / i + j with 0.001. If j / i + j is equal to or greater than 0.001, the process proceeds to step 603.

ステップ601において、最大輝度差取得色調整部117は、j/i+jが0.001よりも小さい場合、撮影像200は青色、シアン又はマゼンタの単独画素からなると判断する。
ステップ602において、最大輝度差取得色調整部117は、最大輝度差取得を不可と判断して処理を終了する。
In step 601, the maximum luminance difference acquisition color adjusting unit 117 determines that the captured image 200 is composed of a single pixel of blue, cyan, or magenta when j / i + j is smaller than 0.001.
In step 602, the maximum luminance difference acquisition color adjustment unit 117 determines that the maximum luminance difference acquisition is impossible and ends the processing.

ステップ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 color adjustment unit 117 compares j / i + j with 0.999. If j / i + j is greater than 0.999, go to step 605.
In step 604, in this case, the maximum luminance difference acquisition color adjustment unit 117 determines that the captured image 200 is composed of single pixels of red, yellow, or green that should be the character 202 and the graphic 203. Proceeding to step 602, a process for not obtaining the maximum luminance difference is performed.

ステップ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 color adjustment unit 117 determines that the maximum luminance difference can be acquired.
In step 606, j / i + j is compared with 0.5. It is determined whether any one pixel of blue, cyan, or magenta is a pixel of the ground 201 or a pixel of the character 202 or the graphic 203. If j / i + j is greater than 0.5, go to step 609.
In step 607, when the maximum luminance difference acquisition color adjusting unit 117, j / i + j is equal to or smaller than 0.5, any one pixel of blue, cyan, or magenta is determined as the pixel of the background ground 201.

ステップ608において、最大輝度差取得色調整部117は、文字・図形認識部118で文字202、図形203を認識することが可能と判断する。すなわち、後述する図24の(25)、(29)に対応する。輝度差記憶部115の輝度差を文字・図形認識部118に送り、文字・図形認識部118に対して認識を行わせ、従来のように、白色の地に黒色で記載されている文字202、図形203の認識と同様に認識率を低下させずに、認識が可能になる。処理を終了する。   In step 608, the maximum luminance difference acquisition color adjustment unit 117 determines that the character 202 and graphic 203 can be recognized by the character / graphic recognition unit 118. That is, it corresponds to (25) and (29) of FIG. The brightness difference in the brightness difference storage unit 115 is sent to the character / graphic recognition unit 118 to cause the character / graphic recognition unit 118 to perform recognition, and the character 202 written in black on a white background as in the past, Similar to the recognition of the figure 203, the recognition can be performed without reducing the recognition rate. The process ends.

ステップ609において、この場合、最大輝度差取得色調整部117は輝度差反転部120に対して輝度差記憶部115に記憶されている輝度差のデータを反転させる。
ステップ610において、最大輝度差取得色調整部117は、輝度差記憶部115の反転された輝度差に対して、青色、シアン又はマゼンタのいずれか1つの画素を文字202、図形203の画素と確定し、文字・図形認識部118で文字202、図形203を認識することが可能と判断する。ステップ608に進む。すなわち、後述する図24の(14)、(18)が対応する。輝度差記憶部115の輝度差を文字・図形認識部118に送り、文字・図形認識部118に対して認識を行わせ、従来のように、白色の地に黒色で記載されている文字202、図形203の認識と同様に認識率を低下させずに、認識が可能になる。
In step 609, in this case, the maximum luminance difference acquisition color adjustment unit 117 inverts the luminance difference data stored in the luminance difference storage unit 115 with respect to the luminance difference inversion unit 120.
In step 610, the maximum luminance difference acquisition color adjustment unit 117 determines that one of blue, cyan, and magenta pixels is the pixel of the character 202 and the graphic 203 for the inverted luminance difference of the luminance difference storage unit 115. Then, it is determined that the character / graphic recognition unit 118 can recognize the character 202 and the graphic 203. Proceed to step 608. That is, (14) and (18) in FIG. The brightness difference in the brightness difference storage unit 115 is sent to the character / graphic recognition unit 118 to cause the character / graphic recognition unit 118 to perform recognition, and the character 202 written in black on a white background as in the past, Similar to the recognition of the figure 203, the recognition can be performed without reducing the recognition rate.

図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 ground image 201 and the character 202 and the graphic 203 in FIG.
As shown in the figure, in the combination of the colors of the background 201, the character 202, and the figure 203, any two different colors can be selected from three intermediate colors of red, green, and blue, yellow, cyan, and magenta. There are 30 types of combinations of the photographed image 200 in which the color of the ground 201, the character 202, and the color of the figure 203 are used.

図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 steps 527 and 528). 18, FIG. 19 → FIG. 20, FIG. 21, processing of FIG. 18, FIG. 19 → FIG. 20, FIG. 21 (inversion: refer to step 567, step 568), FIG. 18, FIG. → The processing of FIG. 22 and FIG. 23, FIG. 18, FIG. 19 → FIG. 20, FIG. 21 → FIG. 22, FIG. 23 (reversal: see step 609 and step 610) are required.

したがって、本発明によれば、増幅率を最小に設定した赤成分、緑成分、青色成分の増幅器の増幅率を順番に最大にして、赤色、緑色、青色の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 colors 201 that are arbitrarily combined out of the intermediate colors and minimize the luminance difference between the characters 202 and the figure 203. The character 202 and the graphic 203 can be recognized without reducing the recognition rate in the same manner as the recognition of the character 202 and the graphic 203 written in black on a white background.

図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 amplifier 131 and an A / D converter 132 are provided between the image sensor 102 and the signal processing unit 112.
The image sensor 102 time-division-multiplexes the converted red, green, and blue component electrical signals of the pixel and outputs the result to the amplifier 131.

増幅器131はイメージセンサ102で変換され、時分割多重化された画素の赤成分、緑成分、青成分の電気信号を増幅する機能を有する。
A/D変換器132は増幅器131で増幅された赤成分、緑成分、青成分の時分割多重の電気信号をデジタル信号に変換する機能を有する。
信号処理部112から増幅器131には増幅率制御信号133が送られ、増幅率制御信号133は増幅器131の増幅率を制御するのに使用される。
The amplifier 131 has a function of amplifying the red component, green component, and blue component electrical signals of the pixels converted by the image sensor 102 and time-division multiplexed.
The A / D converter 132 has a function of converting the time-division multiplexed electric signal of the red component, the green component, and the blue component amplified by the amplifier 131 into a digital signal.
An amplification factor control signal 133 is sent from the signal processing unit 112 to the amplifier 131, and the amplification factor control signal 133 is used to control the amplification factor of the amplifier 131.

このように、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 image sensor 102 with respect to the amplifier 131 and the A / D converter 132 reduced to a pair are time-division multiplexed.
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 gain control signal 133.
FIG. 26 is a diagram for explaining an operation example of the time division multiplexing of the maximum luminance difference acquisition color adjustment unit 117 of FIG.

本図(a)に示すように、最大輝度差取得色調整部117はイメージセンサ102に対して画素位置情報信号119を介し取り込まれる画素に関し、一例として、赤成分電気信号、緑成分電気信号、青成分電気信号の順番に時分割多重化するように要求する。
本図(b)に示すように、最大輝度差取得色調整部117は、赤成分電気信号、緑成分電気信号、青成分電気信号の順番に時分割多重化する要求に対し、増幅率制御信号133を介して、増幅器131に赤成分増幅率制御信号の最大設定(図5対応)、緑成分増幅率制御信号の最大設定(図7対応)、青成分増幅率制御信号の最大設定(図9対応)を行う。
したがって、本発明によれば、回路構成の複雑化を回避することが可能になる。
As shown in FIG. 4A, the maximum luminance difference acquisition color adjustment unit 117 relates to pixels captured by the image sensor 102 via the pixel position information signal 119. As an example, a red component electric signal, a green component electric signal, Requests time division multiplexing in the order of the blue component electrical signal.
As shown in FIG. 5B, the maximum luminance difference acquisition color adjusting unit 117 responds to the request for time division multiplexing in the order of the red component electric signal, the green component electric signal, and the blue component electric signal, and thereby the amplification factor control signal 133, the maximum setting of the red component gain control signal (corresponding to FIG. 5), the maximum setting of the green component gain control signal (corresponding to FIG. 7), and the maximum setting of the blue component gain control signal (FIG. 9). Action).
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.

本発明に係るカラーカメラの色調整システムの概略構成を示すブロック図である。1 is a block diagram illustrating a schematic configuration of a color camera color adjustment system according to the present invention. FIG. レンズ101により撮影される撮影像の一例を示す図である。FIG. 3 is a diagram illustrating an example of a captured image captured by a lens 101. 図1における赤成分増幅率制御信号109、緑成分増幅率制御信号110、青成分増幅率制御信号111に設定される値を説明する図である。It is a figure explaining the value set to the red component gain control signal 109, the green component gain control signal 110, and the blue component gain control signal 111 in FIG. 図1における最大輝度記憶部113、最小輝度記憶部114の初期値、赤、緑、青成分調整時の検出輝度信号の大きさを説明する図である。It is a figure explaining the magnitude | size of the detection luminance signal at the time of the initial value of the maximum luminance memory | storage part 113 in FIG. 1, and the minimum luminance memory | storage part 114, red, green, and blue component adjustment. 図1における最大輝度差取得色調整部117の赤成分調整による最大輝度差取得動作例を説明するフローチャートである。7 is a flowchart illustrating an example of a maximum brightness difference acquisition operation by red component adjustment of a maximum brightness difference acquisition color adjustment unit 117 in FIG. 1. 図1における最大輝度差取得色調整部117の赤成分調整による最大輝度差取得動作例を説明するフローチャートである。7 is a flowchart illustrating an example of a maximum brightness difference acquisition operation by red component adjustment of a maximum brightness difference acquisition color adjustment unit 117 in FIG. 1. 図5、図6の継続処理で、最大輝度差取得色調整部117の緑成分調整による最大輝度差取得動作例を説明するフローチャートである。7 is a flowchart illustrating an example of a maximum luminance difference acquisition operation by green component adjustment of a maximum luminance difference acquisition color adjustment unit 117 in the continuation processing of FIGS. 5 and 6. 図5、図6の継続処理で、最大輝度差取得色調整部117の緑成分調整による最大輝度差取得動作例を説明するフローチャートである。7 is a flowchart illustrating an example of a maximum luminance difference acquisition operation by green component adjustment of a maximum luminance difference acquisition color adjustment unit 117 in the continuation processing of FIGS. 5 and 6. 図7、図8の継続処理で、最大輝度差取得色調整部117の青成分調整による最大輝度差取得動作例を説明するフローチャートである。10 is a flowchart illustrating an example of a maximum luminance difference acquisition operation by blue component adjustment of a maximum luminance difference acquisition color adjustment unit 117 in the continuation processing of FIGS. 7 and 8. 図7、図8の継続処理で、最大輝度差取得色調整部117の青成分調整による最大輝度差取得動作例を説明するフローチャートである。10 is a flowchart illustrating an example of a maximum luminance difference acquisition operation by blue component adjustment of a maximum luminance difference acquisition color adjustment unit 117 in the continuation processing of FIGS. 7 and 8. 図2における撮影像200の地201の色と文字202、図形203の色の組み合わせを説明する図である。It is a figure explaining the combination of the color of the background 201 of the picked-up image 200 in FIG. 2, the character 202, and the color of the figure 203. FIG. 図1の第1の変形例で1つの増幅器の増幅率を最小に固定した場合のカラーカメラの色調整システムの概略構成を示すブロック図である。It is a block diagram which shows schematic structure of the color adjustment system of a color camera at the time of fixing the gain of one amplifier to the minimum in the 1st modification of FIG. 図12における最大輝度差取得色調整部117の赤成分調整による最大輝度差取得で1つの増幅率を固定した動作例を説明するフローチャートである。13 is a flowchart for explaining an operation example in which one amplification factor is fixed by acquiring a maximum luminance difference by red component adjustment of a maximum luminance difference acquisition color adjustment unit 117 in FIG. 図12における最大輝度差取得色調整部117の赤成分調整による最大輝度差取得で1つの増幅率を固定した動作例を説明するフローチャートである。13 is a flowchart for explaining an operation example in which one amplification factor is fixed by acquiring a maximum luminance difference by red component adjustment of a maximum luminance difference acquisition color adjustment unit 117 in FIG. 図13、図14の継続処理で、最大輝度差取得色調整部117の青成分調整による最大輝度差取得で1つの増幅率を固定した動作例を説明するフローチャートである。15 is a flowchart for explaining an operation example in which one amplification factor is fixed by acquiring the maximum luminance difference by blue component adjustment of the maximum luminance difference acquisition color adjustment unit 117 in the continuation processing of FIGS. 13 and 14. 図13、図14の継続処理で、最大輝度差取得色調整部117の青成分調整による最大輝度差取得で1つの増幅率を固定した動作例を説明するフローチャートである。15 is a flowchart for explaining an operation example in which one amplification factor is fixed by acquiring the maximum luminance difference by blue component adjustment of the maximum luminance difference acquisition color adjustment unit 117 in the continuation processing of FIGS. 13 and 14. 図11を用いて図13−図16の最大輝度差取得色調整部117の最大輝度差取得動作例に基づく、撮影像200の地201の色と文字202、図形203の色の組み合わせを説明する図である。A combination of the color of the ground 201 of the photographed image 200 and the character 202 and the graphic 203 based on the maximum brightness difference acquisition operation example of the maximum brightness difference acquisition color adjusting unit 117 of FIGS. 13 to 16 will be described with reference to FIG. FIG. 図1における最大輝度差取得色調整部117の赤成分調整による最大輝度差取得で中間色を加えた動作例を説明するフローチャートである。7 is a flowchart for explaining an operation example in which an intermediate color is added in the maximum luminance difference acquisition by red component adjustment of the maximum luminance difference acquisition color adjustment unit 117 in FIG. 1. 図1における最大輝度差取得色調整部117の赤成分調整による最大輝度差取得で中間色を加えた動作例を説明するフローチャートである。7 is a flowchart for explaining an operation example in which an intermediate color is added in the maximum luminance difference acquisition by red component adjustment of the maximum luminance difference acquisition color adjustment unit 117 in FIG. 1. 図18、図19の継続処理で、最大輝度差取得色調整部117の緑成分調整による最大輝度差取得で中間色を加えた動作例を説明するフローチャートである。20 is a flowchart for explaining an operation example in which intermediate colors are added in the maximum luminance difference acquisition by green component adjustment of the maximum luminance difference acquisition color adjustment unit 117 in the continuation processing of FIGS. 18 and 19. 図18、図19の継続処理で、最大輝度差取得色調整部117の緑成分調整による最大輝度差取得で中間色を加えた動作例を説明するフローチャートである。20 is a flowchart for explaining an operation example in which intermediate colors are added in the maximum luminance difference acquisition by green component adjustment of the maximum luminance difference acquisition color adjustment unit 117 in the continuation processing of FIGS. 18 and 19. 図20、図21の継続処理で、最大輝度差取得色調整部117の青成分調整による最大輝度差取得で中間色を加えた動作例を説明するフローチャートである。FIG. 22 is a flowchart for explaining an operation example in which intermediate colors are added by the maximum luminance difference acquisition by blue component adjustment of the maximum luminance difference acquisition color adjustment unit 117 in the continuation processing of FIGS. 20 and 21. 図20、図21の継続処理で、最大輝度差取得色調整部117の青成分調整による最大輝度差取得で中間色を加えた動作例を説明するフローチャートである。FIG. 22 is a flowchart for explaining an operation example in which intermediate colors are added by the maximum luminance difference acquisition by blue component adjustment of the maximum luminance difference acquisition color adjustment unit 117 in the continuation processing of FIGS. 20 and 21. 図2における撮影像200の地201と文字202、図形203の赤色、緑色、青色の3原色、黄色、シアン、マゼンタの3つの中間色の組み合わせを説明する図である。FIG. 3 is a diagram for explaining a combination of three intermediate colors of red, green, and blue primary colors, yellow, cyan, and magenta of a ground image 201, a character 202, and a graphic 203 in FIG. 図1の第3の変形例で画素の赤成分、緑成分、青成分の電気信号を時分割多重にした場合のカラーカメラの色調整システムの概略構成を示すブロック図である。It is a block diagram which shows schematic structure of the color adjustment system of a color camera when the electrical signal of the red component of a pixel, the green component, and the blue component is time-division multiplexed in the 3rd modification of FIG. 図25の最大輝度差取得色調整部117の時分割多重化時の動作例を説明する図である。FIG. 26 is a diagram for explaining an operation example during time-division multiplexing of the maximum luminance difference acquisition color adjustment unit 117 in FIG. 25.

符号の説明Explanation of symbols

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 SYMBOLS 101 ... Lens 102 ... Image sensor 103 ... Red component amplifier 104 ... Green component amplifier 105 ... Blue component amplifier 106 ... Red component A / D converter 107 ... Green component A / D converter 108 ... Blue component A / D converter 109 ... Red component amplification factor control signal 110 ... Green component amplification factor control signal 111 ... Blue component amplification factor control signal 112 ... Signal processing unit 113 ... Maximum luminance storage unit 114 ... Minimum luminance storage unit 115 ... Luminance difference storage unit 116 ... Luminance signal Calculation unit 117 ... Maximum luminance difference acquisition color adjustment unit 118 ... Character / graphic recognition unit 119 ... Pixel position information signal 120 ... Luminance difference inversion unit 131 ... Amplifier 132 ... A / D converter 133 ... Amplification rate control signal 200 ... Photographed image 201 ... Ground 202 ... Character 203 ... Graphic

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/2以上の場合には、最大輝度差である画素は地及び文字、図形の一方を形成し、最小輝度差である画素は地及び文字、図形の他方を形成すると判断することを特徴とする、請求項1に記載のカラーカメラの色調整システム。 The maximum luminance difference acquisition color adjusting unit determines the maximum luminance difference when the number of pixels in which the luminance difference stored in the luminance difference storage unit is the maximum luminance difference is ½ or more of the number of pixels of the photographed image. 2. The color adjustment of a color camera according to claim 1, wherein it is determined that a certain pixel forms one of a ground, a character, and a figure, and a pixel having a minimum luminance difference forms the other of the ground, the character, and the figure. system. 前記最大輝度差取得色調整部は、前記増幅部の赤成分、緑成分、青成分の電気信号の任意の1つを増幅する増幅率を初期値である最小値に固定し、他の2つの電気信号の前記増幅率を順次最大値に設定し、前記輝度差記憶部に記憶される輝度差が最大輝度差である場合の画素数と最大輝度差でない場合の画素数を比較し、地の画素数と文字、図形の画素数の大小を判断し、文字、図形の画素数が地の画素数よりも大きくなる場合、前記輝度差記憶部に記憶されている輝度差を反転し、文字、図形とした輝度を地の輝度とし、地とした輝度を文字、図形の輝度とすることを特徴とする、請求項1に記載のカラーカメラの色調整システム。 The maximum luminance difference acquisition color adjustment unit fixes an amplification factor for amplifying any one of the red component, green component, and blue component electrical signals of the amplification unit to a minimum value that is an initial value, and sets the other two The amplification factor of the electric signal 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 and the number of pixels of the character and the figure, when 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 character, The color adjustment system for a color camera according to claim 1, wherein the luminance of the figure is the luminance of the ground, and the luminance of the ground is the luminance of characters and figures. 赤成分、青成分、緑成分の色調整を行うカラーカメラの色調整システムにおいて、
赤色、緑色、青色、黄色、シアン、マゼンタの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つの前記増幅率を初期値の最小値に戻し、他の前記増幅率を最大に設定して次の最大輝度差の取得を行うことを特徴とする、請求項に記載のカラーカメラの色調整システム。 The maximum luminance difference acquisition color adjusting unit sets one amplification factor to a maximum value, and the luminance difference stored in the luminance difference storage unit is only the maximum luminance difference or only the minimum luminance difference. 5. The color according to claim 4 , wherein one of the amplification factors is returned to a minimum initial value, the other amplification factor is set to a maximum, and the next maximum luminance difference is obtained. Camera color adjustment system. 前記最大輝度差取得色調整部は前記イメージセンサに時分割多重化を要求する情報を提供し、前記イメージセンサは提供された情報を基に変換した赤成分、緑成分、青成分の電気信号を時分割多重化し、前記最大輝度差取得色調整部は時分割多重化された赤成分、緑成分、青成分の電気信号を増幅する増幅率を前記増幅器に設定し、前記増幅部は前記最大輝度差取得色調整部により設定された増幅率で前記イメージセンサにより時分割多重化された赤成分、緑成分、青成分の電気信号を増幅することを特徴とする、請求項1又は請求項に記載のカラーカメラの色調整システム。 The maximum luminance difference acquisition color adjustment unit provides information requesting time division multiplexing to the image sensor, and the image sensor converts red, green, and blue component electrical signals converted based on the provided information. Time division multiplexing, the maximum luminance difference acquisition color adjustment unit sets amplification factors for amplifying the electric signals of the red component, the green component, and the blue component that are time division multiplexed to the amplifier, and the amplification unit sets the maximum luminance division multiplexed red component when by the image sensor at an amplification rate set by the difference obtaining color adjustment unit, the green component, characterized in that amplifying the electrical signal of the blue component, to claim 1 or claim 4 Color camera color adjustment system as described. 赤成分、青成分、緑成分の色調整を行うカラーカメラの色調整方法において、
赤色、緑色、青色のうち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.
前記輝度差記憶部に記憶された輝度差を入力し、文字、図形を認識することを特徴とする、請求項1に記載のカラーカメラの色調整システムを用いた文字・図形認識方法。 The character / graphic recognition method using the color adjustment system of a color camera according to claim 1, wherein the luminance difference stored in the luminance difference storage unit is inputted to recognize characters and graphics.
JP2004310872A 2004-10-26 2004-10-26 Color camera color adjustment system and method, and character / graphic recognition method using this system Expired - Fee Related JP4174466B2 (en)

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)

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