JPH11196429A - Character picture restoration device, electronic still camera system and electronic still camera - Google Patents

Character picture restoration device, electronic still camera system and electronic still camera

Info

Publication number
JPH11196429A
JPH11196429A JP9366692A JP36669297A JPH11196429A JP H11196429 A JPH11196429 A JP H11196429A JP 9366692 A JP9366692 A JP 9366692A JP 36669297 A JP36669297 A JP 36669297A JP H11196429 A JPH11196429 A JP H11196429A
Authority
JP
Japan
Prior art keywords
color
signal
character
video signal
restoring
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP9366692A
Other languages
Japanese (ja)
Other versions
JP3974988B2 (en
Inventor
Kazuhito Horiuchi
一仁 堀内
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Olympus Corp
Original Assignee
Olympus Optical Co Ltd
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 Olympus Optical Co Ltd filed Critical Olympus Optical Co Ltd
Priority to JP36669297A priority Critical patent/JP3974988B2/en
Publication of JPH11196429A publication Critical patent/JPH11196429A/en
Application granted granted Critical
Publication of JP3974988B2 publication Critical patent/JP3974988B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To restore a picture that is highly detailed and excellent in readability from a character picture consisting of plural kinds of colors. SOLUTION: A processing change-over part 40 transfers a video signal to a character picture restoration part 42 when the video signal which has a missing color signal restored from the video signal from a single plate CCD and is retained in an output part 38 is a character picture and a background color estimation part 52 estimates the background color by making the video signal within a specified luminance range from the video signal as a whole average. A local area extraction part 56 divides the video signal into local areas, converts it into a single plate state and an R signal maximum and minimum calculation part 64, a G signal maximum and minimum calculation part 66 and a B signal maximum and minimum calculation part 68 calculate the maximum and minimum range for each local area. A character color decision part A100 estimates a character color from the maximum and minimum ranges and the background color on a decision table 70 and a background restoration part 74 and a missing color restoration part A104 are made to restore the character picture.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は、単板または二板式
固体撮像素子を用いた電子スチルカメラ及びそれを一構
成要素とする電子スチルカメラシステムにおいて、複数
種類の色からなる文字画像を高精細に可読性に優れた画
像に復元する文字画像復元装置に関する。また、そのよ
うな文字画像復元装置の適用される電子スチルカメラ及
び電子スチルカメラシステムに関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an electronic still camera using a single-chip or two-chip type solid-state image pickup device and an electronic still camera system using the same as a component. The present invention relates to a character image restoring device for restoring an image with excellent readability. The present invention also relates to an electronic still camera and an electronic still camera system to which such a character image restoring device is applied.

【0002】[0002]

【従来の技術】近年、安価かつ軽量な単板式固体撮像素
子(CCD)を用いた電子スチルカメラが普及してい
る。このような単板式固体撮像素子では、一枚の撮像素
子から被写体の色情報を得るために、受光面上に色フィ
ルタをモザイク状に配置している。
2. Description of the Related Art In recent years, electronic still cameras using inexpensive and lightweight single-chip solid-state imaging devices (CCD) have become widespread. In such a single-chip solid-state imaging device, color filters are arranged in a mosaic pattern on a light receiving surface in order to obtain color information of a subject from one imaging device.

【0003】例えば、図10の(B)は、一般的に用い
られているシアン(Cy),マゼンタ(Mg),黄(Y
e),緑(G)の補色モザイクフィルタの配置を示す図
である。同図において、偶数フィールドのnラインとn
+1ラインに対応する輝度信号をYe,n ,Ye,n+1 、色
差信号をCe,n ,Ce,n+1 とし、また同様に、奇数フィ
ールドのnラインとn+1ラインに対応する輝度信号を
o,n ,Yo,n+1 、色差信号をCo,n ,Co,n+1 とする
と、これらの信号は、次式で示される。
[0003] For example, FIG. 10 (B) shows commonly used cyan (Cy), magenta (Mg), and yellow (Y).
5E is a diagram showing the arrangement of green (G) complementary color mosaic filters. In the figure, n lines and n
The luminance signal corresponding to the +1 line is represented by Y e, n , Y e, n + 1 , and the color difference signal is represented by Ce , n , Ce , n + 1. Assuming that the luminance signals to be processed are Y o, n and Y o, n + 1 and the color difference signals are C o, n and C o, n + 1 , these signals are expressed by the following equations.

【0004】 Yo,n =Yo,n+1 =Ye,n =Ye,n+1 =2R+3G+2B …(1) Co,n =Ce,n =2R−G …(2) Co,n+1 =Ce,n+1 =2B−G …(3) ただし、Cy,Mg,Yeは、G及び赤(R),青
(B)により次式で示される。
Yo, n = Yo, n + 1 = Ye, n = Ye, n + 1 = 2R + 3G + 2B (1) Co, n = Ce , n = 2R-G (2) C o, n + 1 = Ce , n + 1 = 2B-G (3) where Cy, Mg, and Ye are represented by G and red (R) and blue (B) by the following equations.

【0005】 Cy=G+B …(4) Mg=R+B …(5) Ye=R+G …(6) Cy = G + B (4) Mg = R + B (5) Ye = R + G (6)

【0006】[0006]

【発明が解決しようとする課題】上記(1)式で示され
るように、輝度信号は、偶数、奇数フィールドの全ライ
ンで生成される。これに対し、上記(2)式及び(3)
式で示されるように、二つの色差信号は、1ラインごと
にしか生成されない。このため、従来は、線形補間によ
り、この欠落するラインを補っている。そしてこの後、
マトリックス演算を行うことで、R,G,Bの三原色を
得ることができる。
As shown by the above equation (1), a luminance signal is generated for all lines of even and odd fields. In contrast, the above equations (2) and (3)
As shown by the equation, two color difference signals are generated only for each line. Therefore, conventionally, the missing line is supplemented by linear interpolation. And after this,
By performing a matrix operation, three primary colors of R, G, and B can be obtained.

【0007】しかしながら、このような方法では、色差
信号は輝度信号に対して1/2の情報量しかなく、エッ
ジ部に色モワレと呼ばれる偽信号が発生する。このた
め、文字画像のように急峻なエッジ部からなる画像を撮
像する場合には、可読性が大幅に低減することになる。
However, in such a method, the color difference signal has only one half the information amount of the luminance signal, and a false signal called color moire occurs at an edge portion. Therefore, in the case of capturing an image having a steep edge portion such as a character image, the readability is significantly reduced.

【0008】また、このような問題は、二板式固体撮像
素子を用いた電子スチルカメラにおいても同様に発生す
る。
[0008] Such a problem also occurs in an electronic still camera using a two-chip solid-state imaging device.

【0009】本発明は、上記の点に鑑みてなされたもの
で、単板又は二板式固体撮像素子を用いた電子スチルカ
メラ及びそれを一構成要素とする電子スチルカメラシス
テムにおいて、複数種類の色からなる文字画像を高精細
に可読性に優れた画像に復元可能な文字画像復元装置を
提供し、以ってそのような文字画像復元装置を備えるこ
とにより、複数種類の色からなる文字画像を高精細に可
読性に優れた画像に復元可能な電子スチルカメラ及び電
子スチルカメラシステムを提供することを目的とする。
SUMMARY OF THE INVENTION The present invention has been made in view of the above points, and has been made in consideration of an electronic still camera using a single-chip or two-chip solid-state imaging device and an electronic still camera system including the same as a constituent element. The present invention provides a character image restoring apparatus capable of restoring a character image composed of a high-definition image with excellent readability, and by providing such a character image restoring apparatus, a character image composed of a plurality of colors can be enhanced. It is an object of the present invention to provide an electronic still camera and an electronic still camera system capable of restoring an image with excellent readability in detail.

【0010】[0010]

【課題を解決するための手段】上記の目的を達成するた
めに、請求項1に記載の文字画像復元装置は、単板又は
二板式固体撮像素子の映像信号から複数種類の色からな
る文字画像を復元する文字画像復元装置であって、上記
固体撮像素子の映像信号から背景色を推定する背景色推
定手段と、上記固体撮像素子の映像信号から所定サイズ
の局所領域を抽出する抽出手段と、上記抽出手段から抽
出された局所領域内の文字色を推定する文字色推定手段
と、上記背景色推定手段から推定された背景色と上記文
字色推定手段から推定された文字色に基づき上記局所領
域内の映像信号を背景と文字とに分離する分離手段と、
上記分離手段により背景とされた場合には上記背景色に
より欠落する色信号を復元し、上記分離手段により文字
とされた場合には上記文字色により欠落する色信号を復
元する欠落色復元手段と、を備えることを特徴とする。
According to a first aspect of the present invention, there is provided a character image restoring apparatus according to the first aspect of the present invention, comprising a character image composed of a plurality of colors from a video signal of a single-plate or two-plate solid-state imaging device. A character image restoration device for restoring, a background color estimating means for estimating a background color from the video signal of the solid-state imaging device, extraction means for extracting a local area of a predetermined size from the video signal of the solid-state imaging device, A character color estimating means for estimating the character color in the local area extracted from the extracting means; and the local area based on the background color estimated by the background color estimating means and the character color estimated by the character color estimating means. Separating means for separating the video signal in the image into a background and characters,
A missing color restoring means for restoring a color signal missing by the background color when the background is set by the separating means, and restoring a color signal missing by the character color when the character is set by the separating means. , Is provided.

【0011】即ち、請求項1に記載の文字画像復元装置
によれば、背景色推定手段によって固体撮像素子の映像
信号から背景色を推定し、また抽出手段で固体撮像素子
の映像信号から所定サイズの局所領域を抽出してこの局
所領域内の文字色を文字色推定手段によって推定する。
そして、上記背景色推定手段から推定された背景色と上
記文字色推定手段から推定された文字色に基づき上記局
所領域内の映像信号を背景と文字とに分離する分離手段
によって、背景とされた場合には、欠落色復元手段は、
上記背景色により欠落する色信号を復元し、また文字と
された場合には、欠落色復元手段は、上記文字色により
欠落する色信号を復元する。
That is, according to the character image restoring device of the present invention, the background color is estimated by the background color estimating means from the video signal of the solid-state image sensor, and the extracting means is used to estimate the background color from the video signal of the solid-state image sensor. Is extracted, and the character color in this local region is estimated by the character color estimating means.
Then, based on the background color estimated by the background color estimating unit and the character color estimated by the character color estimating unit, the separating unit that separates the video signal in the local region into the background and the character is set as the background. In this case, the missing color restoration means
When the color signal missing due to the background color is restored, and when the color signal is regarded as a character, the missing color restoring means restores the color signal missing due to the character color.

【0012】また、請求項2に記載の文字画像復元装置
は、単板又は二板式固体撮像素子の映像信号から複数種
類の色からなる文字画像を復元する文字画像復元装置で
あって、上記固体撮像素子の映像信号から背景色を推定
する背景色推定手段と、上記固体撮像素子の映像信号か
ら所定サイズの局所領域を抽出する抽出手段と、上記背
景色推定手段から推定された背景色に基づき上記局所領
域内の映像信号を背景とその他に分離する分離手段と、
上記分離手段により背景とされた場合には上記背景色に
より欠落する色信号を復元し、その他とされた場合には
上記局所領域内のその他とされた領域の平均化された映
像信号により欠落する色信号を復元する欠落色復元手段
と、を備えることを特徴とする。
According to a second aspect of the present invention, there is provided a character image restoring apparatus for restoring a character image composed of a plurality of colors from a video signal of a single-chip or two-chip solid-state imaging device. Background color estimating means for estimating a background color from a video signal of the image sensor, extracting means for extracting a local region of a predetermined size from the video signal of the solid-state image sensor, and a background color estimated from the background color estimating means. Separating means for separating the video signal in the local region into a background and others,
If the background is set by the separating means, the color signal missing due to the background color is restored, and if otherwise, the color signal is lost due to the averaged video signal of the other area in the local area. A missing color restoring means for restoring a color signal.

【0013】即ち、請求項2に記載の文字画像復元装置
によれば、背景色推定手段にて、固体撮像素子の映像信
号から背景色を推定し、また、固体撮像素子の映像信号
から所定サイズの局所領域を抽出する抽出手段によって
抽出された上記局所領域内の映像信号を、分離手段によ
って、上記背景色推定手段から推定された背景色に基づ
いて背景とその他に分離する。そして、この分離手段に
より背景とされた場合には、欠落色復元手段は、上記背
景色により欠落する色信号を復元し、その他とされた場
合には、この欠落色復元手段は、上記局所領域内のその
他とされた領域の平均化された映像信号により欠落する
色信号を復元する。
That is, according to the character image restoring device of the present invention, the background color estimating means estimates the background color from the video signal of the solid-state imaging device, and the predetermined size from the video signal of the solid-state imaging device. The video signal in the local area extracted by the extracting means for extracting the local area is separated into a background and others by the separating means based on the background color estimated by the background color estimating means. When the background is set by the separating unit, the missing color restoring unit restores the missing color signal due to the background color. The missing color signal is restored by the averaged video signal of the other areas in the area.

【0014】また、請求項3に記載の電子スチルカメラ
システムは、単板又は二板式固体撮像素子を用いた電子
スチルカメラ及び後処理装置からなる電子スチルカメラ
システムであって、上記固体撮像素子の映像信号から欠
落する色信号を、補間により復元する汎用画像復元手段
と、上記汎用画像復元手段により復元された映像信号か
ら複数種類の色からなる文字画像を、上記補間とは異な
る文字画像に適した復元方法により復元する文字画像復
元手段と、上記汎用画像復元手段により復元された映像
信号を上記文字画像復元手段に伝送する伝送手段と、を
備え、少なくとも上記文字画像復元手段を上記後処理装
置内に構成したことを特徴とする。
An electronic still camera system according to a third aspect of the present invention is an electronic still camera system including an electronic still camera using a single-chip or two-chip solid-state imaging device and a post-processing device. A general-purpose image restoration unit that restores a color signal missing from a video signal by interpolation, and a character image composed of a plurality of colors from the video signal restored by the general-purpose image restoration unit is suitable for a character image different from the interpolation. Character image restoring means for restoring by the restoring method, and transmission means for transmitting the video signal restored by the general-purpose image restoring means to the character image restoring means. It is characterized by being comprised in.

【0015】即ち、請求項3に記載の電子スチルカメラ
システムによれば、汎用画像復元手段によって、固体撮
像素子の映像信号から欠落する色信号を、補間により復
元し、伝送手段によって、この汎用画像復元手段により
復元された映像信号を後処理装置内に構成した文字画像
復元手段に伝送する。そして、文字画像復元手段で、こ
の汎用画像復元手段により復元された映像信号から複数
種類の色からなる文字画像を、上記補間とは異なる文字
画像に適した復元方法により復元する。
That is, according to the electronic still camera system of the third aspect, the color signal missing from the video signal of the solid-state image sensor is restored by interpolation by the general-purpose image restoration means, and the general-purpose image is restored by the transmission means. The video signal restored by the restoration unit is transmitted to the character image restoration unit configured in the post-processing device. Then, the character image restoring means restores a character image composed of a plurality of colors from the video signal restored by the general-purpose image restoring means by a restoration method suitable for a character image different from the interpolation.

【0016】また、請求項4に記載の電子スチルカメラ
は、単板又は二板式固体撮像素子を用いた電子スチルカ
メラであって、上記固体撮像素子の映像信号から欠落す
る色信号を、補間により復元する汎用画像復元手段と、
上記固体撮像素子の映像信号から複数種類の色からなる
文字画像を、上記補間とは異なる文字画像に適した復元
方法により復元する文字画像復元手段と、上記汎用画像
復元手段と上記文字画像復元手段とを切り換える処理切
換手段と、を備えることを特徴とする。
An electronic still camera according to a fourth aspect of the present invention is an electronic still camera using a single-chip or two-chip solid-state imaging device, wherein a color signal missing from a video signal of the solid-state imaging device is interpolated. General-purpose image restoration means for restoring,
A character image restoring means for restoring a character image composed of a plurality of types of colors from the video signal of the solid-state imaging device by a restoring method suitable for a character image different from the interpolation, the general-purpose image restoring means, and the character image restoring means And processing switching means for switching between the two.

【0017】即ち、請求項4に記載の電子スチルカメラ
によれば、処理切換手段は、固体撮像素子の映像信号か
ら欠落する色信号を、補間により復元する汎用画像復元
手段と、固体撮像素子の映像信号から複数種類の色から
なる文字画像を、上記補間とは異なる文字画像に適した
復元方法により復元する文字画像復元手段とを切り換え
る。
That is, according to the electronic still camera of the fourth aspect, the processing switching means includes a general-purpose image restoration means for restoring, by interpolation, a color signal missing from the video signal of the solid-state imaging device, and a processing device for the solid-state imaging device. A character image restoring means for restoring a character image composed of a plurality of colors from a video signal by a restoration method suitable for a character image different from the interpolation is switched.

【0018】[0018]

【発明の実施の形態】以下、本発明の実施の形態を図面
を参照して説明する。
Embodiments of the present invention will be described below with reference to the drawings.

【0019】[第1の実施の形態]図1は、本発明の第
1の実施の形態にかかる電子スチルカメラシステムの構
成を示す図で、本実施の形態にかかる電子スチルカメラ
システムは、汎用画像復元機能を持つ電子スチルカメラ
10と、該電子スチルカメラ10と適宜接続される、文
字画像復元機能及びプリンタ出力機能を持つアダプタ1
2とにより構成される。
[First Embodiment] FIG. 1 is a diagram showing a configuration of an electronic still camera system according to a first embodiment of the present invention. The electronic still camera system according to the first embodiment is a general-purpose camera. An electronic still camera 10 having an image restoring function, and an adapter 1 having a character image restoring function and a printer output function, which is appropriately connected to the electronic still camera 10
And 2.

【0020】ここで、電子スチルカメラ10において
は、レンズ系14及びローパスフィルタ16を透過した
被写体像が単板式のCCD18へ導かれる。該CCD1
8の出力画像信号は、A/D変換回路20及び色分離回
路22を介して、プロセス回路24,26,28へ接続
されている。これらプロセス回路24,26,28の出
力信号は、マトリックス回路30を介して、R信号用バ
ッファ32,G信号用バッファ34,B信号用バッファ
36へ転送される。R信号用バッファ32,G信号用バ
ッファ34,B信号用バッファ36の各出力信号は、メ
モリカードなどの出力部38へ転送される。
Here, in the electronic still camera 10, the subject image transmitted through the lens system 14 and the low-pass filter 16 is guided to a single-plate CCD 18. The CCD1
The output image signal 8 is connected to process circuits 24, 26, and 28 via an A / D conversion circuit 20 and a color separation circuit 22. Output signals of the process circuits 24, 26, and 28 are transferred to an R signal buffer 32, a G signal buffer 34, and a B signal buffer 36 via a matrix circuit 30. Each output signal of the R signal buffer 32, the G signal buffer 34, and the B signal buffer 36 is transferred to an output unit 38 such as a memory card.

【0021】この出力部38からの信号は、接続された
アダプタ12に転送される。この場合、アダプタ12
は、電子スチルカメラ10の例えば裏蓋部に取り付けら
れて、互いの接続端子部を当接することで信号の授受を
行うようなものであっても良いし、パーソナルコンピュ
ータにアプリケーションソフトウェアの形で提供され
て、電子スチルカメラ10の所定の出力端子とシリアル
ケーブルやパラレルケーブルによりパーソナルコンピュ
ータのインタフェース部と接続することで信号の授受を
行うものであっても良い。さらには、後者の場合、電子
スチルカメラ10の出力部38をメモリカード等の取り
外し可能な記憶媒体とすれば、パーソナルコンピュータ
に設けたその記憶媒体用のドライブ装置を介して、信号
の授受を行うような構成とすることも可能である。
The signal from the output section 38 is transferred to the connected adapter 12. In this case, the adapter 12
May be attached to, for example, the back cover of the electronic still camera 10 to transmit and receive signals by abutting each other's connection terminals, or provided to a personal computer in the form of application software. Signals may be transmitted and received by connecting a predetermined output terminal of the electronic still camera 10 to an interface unit of a personal computer via a serial cable or a parallel cable. Further, in the latter case, if the output unit 38 of the electronic still camera 10 is a removable storage medium such as a memory card, signals are transmitted and received via a drive device for the storage medium provided in a personal computer. Such a configuration is also possible.

【0022】アダプタ12においては、電子スチルカメ
ラ10の出力部38からの信号は、処理切換部40によ
って、文字画像復元部42を介して又は直接、プリンタ
出力部44へ選択的に転送される。
In the adapter 12, a signal from the output section 38 of the electronic still camera 10 is selectively transferred to a printer output section 44 by a processing switching section 40 via a character image restoring section 42 or directly.

【0023】また、電子スチルカメラ10のCCD18
には、クロックジェネレータ46からのクロック信号に
基づいてCCD駆動回路48で発生される駆動信号が与
えられるようになっている。そして、マイクロコンピュ
ータなどの制御部50は、電子スチルカメラ10内の出
力部38及びクロックジェネレータ46、アダプタ12
内の処理切換部40、文字画像復元部42、及びプリン
タ出力部44へ接続され、それら各部を制御する。
The CCD 18 of the electronic still camera 10
Is supplied with a drive signal generated by a CCD drive circuit 48 based on a clock signal from a clock generator 46. The control unit 50 such as a microcomputer includes the output unit 38, the clock generator 46, and the adapter 12 in the electronic still camera 10.
It is connected to a processing switching unit 40, a character image restoring unit 42, and a printer output unit 44, and controls these units.

【0024】次に、このような構成の電子スチルカメラ
システムにおける信号の流れを説明する。なお、図1中
の矢印は信号の流れ方向を示し、太線は映像信号を、細
線は制御信号をそれぞれ示すものとする。
Next, the flow of signals in the electronic still camera system having such a configuration will be described. The arrows in FIG. 1 indicate the signal flow direction, the bold lines indicate video signals, and the thin lines indicate control signals.

【0025】電子スチルカメラ10には、レンズ系14
とローパスフィルタ16を介して単板式のCCD18が
配置されている。ここで、CCD18は、例えば、図2
の(A)に示されるRGB原色型のフィルタ配置を持つ
CCDである。このCCD18は、クロックジェネレー
タ46からのクロック信号に基づくCCD駆動回路48
からの駆動信号によって駆動されて、被写体像を撮像す
る。このCCD18からの映像信号は、A/D変換回路
20にてディジタル化された後、公知の色分離回路2
2、プロセス回路24,26,28、及びマトリックス
回路30を介して、欠落画素が補間された三板状態のR
GB信号に変換され、R信号用バッファ32,G信号用
バッファ34,及びB信号用バッファ36に色信号ごと
に保存される。これら各色信号用バッファ32,34,
36内の色信号は、制御部50の制御に基づいて出力部
38へ転送される。
The electronic still camera 10 includes a lens system 14
And a single-plate CCD 18 via a low-pass filter 16. Here, the CCD 18 is, for example, as shown in FIG.
(A) is a CCD having an RGB primary color type filter arrangement. The CCD 18 has a CCD driving circuit 48 based on a clock signal from a clock generator 46.
Is driven by a drive signal from the camera to capture a subject image. The video signal from the CCD 18 is digitized by an A / D conversion circuit 20 and then converted to a known color separation circuit 2.
2. R in a three-plate state in which missing pixels are interpolated via the process circuits 24, 26, 28 and the matrix circuit 30.
It is converted into a GB signal, and stored in the R signal buffer 32, the G signal buffer 34, and the B signal buffer 36 for each color signal. These color signal buffers 32, 34,
The color signal in 36 is transferred to the output unit 38 under the control of the control unit 50.

【0026】電子スチルカメラ10の出力部38からの
三板状態のRGB信号は、アダプタ12において処理切
換部40を介して、文字画像復元部42又はプリンタ出
力部44へ転送される。この切換は、例えば文字モード
/一般画像モードなどの図示しない手動のモード切換ス
イッチなどにより、外部から制御部50へ伝達された指
示に応じて行われるものとする。
The RGB signals in the three-plate state from the output unit 38 of the electronic still camera 10 are transferred to the character image restoration unit 42 or the printer output unit 44 via the processing switching unit 40 in the adapter 12. This switching is performed according to an instruction transmitted from the outside to the control unit 50, for example, by a manual mode switching switch (not shown) such as a character mode / general image mode.

【0027】文字画像復元部42は、予め定められた少
数の色、例えば赤,青,緑,シアン,マゼンタ,黄,黒
の7色からなる色文字を、より可読性の高い画像へ回復
する処理を行うもので、その詳細は後述する。この文字
画像復元部42によってより可読性の高い画像へ回復さ
れたRGB信号は、プリンタ出力部44へ出力される。
The character image restoring unit 42 restores a predetermined small number of colors, for example, seven color characters of red, blue, green, cyan, magenta, yellow, and black, to a more readable image. The details will be described later. The RGB signals restored to a more readable image by the character image restoration unit 42 are output to the printer output unit 44.

【0028】図2の(A)は、図1のCCD18におけ
るフィルタ配置の具体的構成の一例を示す。ここでは、
2×2画素サイズの基本配置があり、この基本配置が反
復的に繰り返されてCCD上の全画素を充填する構造と
なっている。本実施の形態では、RGBの3信号の出現
頻度は、1:2:1になるよう設定されている。
FIG. 2A shows an example of a specific configuration of a filter arrangement in the CCD 18 of FIG. here,
There is a basic arrangement having a size of 2 × 2 pixels, and this basic arrangement is repeatedly repeated to fill all pixels on the CCD. In the present embodiment, the appearance frequencies of the three RGB signals are set to be 1: 2: 1.

【0029】図3は、アダプタ12内の文字画像復元部
42の基本構成を示す図である。なお、同図中の記号a
aは欠落する色信号が補間された三板状態の映像信号、
bbは背景色推定信号、ccは局所領域内における単板
状態の映像信号(各色別)、ddは局所領域内における
各色信号の最大値及び最小値、eeは判定用テーブルの
内容を示す信号、ffは局所領域内の文字色及び欠落色
算出方法を示す信号、ggは欠落する色信号が復元され
た三板状態の文字画像の映像信号、をそれぞれ示してい
る。
FIG. 3 is a diagram showing a basic configuration of the character image restoring unit 42 in the adapter 12. The symbol a in FIG.
a is a three-plate video signal in which missing color signals are interpolated,
bb is a background color estimation signal, cc is a single-plate state video signal (for each color) in the local area, dd is the maximum value and the minimum value of each color signal in the local area, ee is a signal indicating the contents of the determination table, ff denotes a signal indicating a method of calculating a character color and a missing color in the local region, and gg denotes a video signal of a character image of a three-plate state in which the missing color signal is restored.

【0030】しかして、電子スチルカメラの制御部50
の制御に基づいて処理切換部40によって該文字画像復
元部42に切換えられたとき、出力部38からの全信号
は、背景色推定部52に転送される。この背景色推定部
52では、所定の輝度範囲内にある領域のR,G,B各
色信号の平均値(RB ,GB ,BB )を算出し、これを
背景色として文字色判定部A100へ転送する。
Thus, the control unit 50 of the electronic still camera
When the processing image is switched to the character image restoration unit 42 by the processing switching unit 40 based on the above control, all the signals from the output unit 38 are transferred to the background color estimation unit 52. In the background color estimation unit 52 calculates R regions within a predetermined luminance range, G, B averages of the respective color signals (R B, G B, B B) , and character color determination unit as a background color Transfer to A100.

【0031】この背景色の算出の後、再び制御部50の
制御に基づいて上記処理切換部40は、上記出力部38
からの全信号を局所領域抽出部56に転送する。この局
所領域抽出部56では、上記制御部50の制御に基づい
て所定サイズ、例えば8×8サイズの矩形領域を重複な
しで順次抽出してR信号用ブロックバッファ58,G信
号用ブロックバッファ60,B信号用ブロックバッファ
62へ転送する。このとき、転送される信号は、図2の
(A)に示されるCCDのフィルタ配置に基づき、単板
状態に変換されて転送される。各信号用ブロックバッフ
ァ58,60,62内の色信号は、R信号用最大最小算
出部64,G信号用最大最小算出部66,B信号用最大
最小算出部68に転送され、各色信号ごとの最大値(R
max ,Gmax ,Bmax )と最小値(Rmin ,Gmin ,B
min )が算出されて、それらの結果が上記文字色判定部
A100へ転送される。
After the calculation of the background color, the processing switching section 40 again controls the output section 38 under the control of the control section 50.
Are transferred to the local area extraction unit 56. The local area extracting unit 56 sequentially extracts a rectangular area of a predetermined size, for example, an 8 × 8 size, without duplication based on the control of the control unit 50, and blocks the R signal block buffer 58, the G signal block buffer 60, Transfer to the B signal block buffer 62. At this time, the transferred signal is converted into a single-plate state and transferred based on the CCD filter arrangement shown in FIG. The color signals in each of the signal block buffers 58, 60, and 62 are transferred to an R signal maximum / minimum calculation unit 64, a G signal maximum / minimum calculation unit 66, and a B signal maximum / minimum calculation unit 68. Maximum value (R
max , G max , B max ) and the minimum value (R min , G min , B
min ) is calculated, and the results are transferred to the character color determination unit A100.

【0032】文字色判定部A100では、局所領域内の
R,G,B各色信号の分布範囲ΔR,ΔG,ΔBを求め
る。
The character color determination unit A100 determines the distribution ranges ΔR, ΔG, and ΔB of the R, G, and B color signals in the local area.

【0033】 ΔR=Rmax −Rmin ΔG=Gmax −Gmin …(7) ΔB=Bmax −Bmin こうして求めた分布範囲ΔR,ΔG,ΔBが、上記背景
色RB ,GB ,BB の1/2以上の場合、その色信号に
関するフラグR_flag,G_flag,B_flagをONに
し、他の場合はOFFにする。
[0033] ΔR = R max -R min ΔG = G max -G min ... (7) ΔB = B max -B min thus determined distribution range [Delta] R, .DELTA.G, .DELTA.B is, the background color R B, G B, B In the case of 1/2 or more of B, the flags R_flag, G_flag, B_flag relating to the color signal are turned on, and in other cases, they are turned off.

【0034】 if(ΔR>RB /2)then R_flag=ON else R_flag=OFF if(ΔG>GB /2)then G_flag=ON else G_flag=OFF if(ΔB>BB /2)then B_flag=ON else B_flag=OFF …(8) 次に、文字色判定部A100は、図4に示すような判定
用テーブル70に基づいて、各色信号に関するフラグか
ら局所領域内の文字色を求める。なお、全てのフラグが
OFFになる場合は、文字が存在せず背景色のみで局所
領域が満たされていると判断する。
[0034] if (ΔR> R B / 2 ) then R_flag = ON else R_flag = OFF if (ΔG> G B / 2) then G_flag = ON else G_flag = OFF if (ΔB> B B / 2) then B_flag = ON else B_flag = OFF (8) Next, the character color determination unit A100 obtains the character color in the local area from the flag for each color signal based on the determination table 70 as shown in FIG. When all the flags are turned off, it is determined that the local region is filled only with the background color without the character.

【0035】こうして文字色が定まると、欠落する色信
号を算出する方法が定まる。而して、文字色判定部A1
00は、局所領域の文字色の判定結果を切換部A102
へ転送する。切換部A102は、上記制御部50の制御
に基づいて、上記R信号用ブロックバッファ58,G信
号用ブロックバッファ60,B信号用ブロックバッファ
62内の単板状態の色信号を、上記文字色判定部A10
0からの判定結果が背景色のときは背景復元部74へ、
その他の場合は欠落色復元部A104へ転送する。
When the character color is determined in this way, a method for calculating a missing color signal is determined. Thus, the character color determination unit A1
00 indicates the switching result of the determination result of the character color of the local area.
Transfer to The switching unit A102 determines the single-plate color signals in the R signal block buffer 58, the G signal block buffer 60, and the B signal block buffer 62 based on the control of the control unit 50, based on the character color determination. Part A10
When the determination result from 0 is the background color, the processing proceeds to the background restoring unit 74.
In other cases, it is transferred to the missing color restoring unit A104.

【0036】背景復元部74では、上記背景色推定部5
2から背景色(RB ,GB ,BB )を受け取り、これに
基づき欠落する色信号を充填する。一方、欠落色復元部
A104では、上記文字色判定部A100から欠落する
色信号の算出法を、また上記背景色推定部52から背景
色をそれぞれ受け取り、これらに基づいて欠落する色信
号を算出する。
In the background restoration section 74, the background color estimation section 5
2 from the background color (R B, G B, B B) receive, to fill the missing color signals based on this. On the other hand, the missing color restoring unit A104 receives the method of calculating the missing color signal from the character color determining unit A100 and the background color from the background color estimating unit 52, and calculates the missing color signal based on these. .

【0037】これら背景復元部74又は欠落色復元部A
104によって欠落する色信号が復元され三板状態にな
ったR,G,B各色信号は、プリンタ出力部44へ出力
される。
The background restoration section 74 or the missing color restoration section A
The R, G, and B color signals in which the missing color signals have been restored by the 104 and are in a three-plate state are output to the printer output unit 44.

【0038】ここで、上記背景色推定部52における背
景色推定動作を図5に示すフローチャートを参照して、
さらに説明する。なお、この図中、変数RB ,GB ,B
B は背景色を、Count は有効な矩形領域(局所領域)の
総数を表すものとする。
Here, the background color estimating operation in the background color estimating section 52 will be described with reference to the flowchart shown in FIG.
Further explanation will be given. Note that in this figure, variables R B , G B , B
B represents the background color, and Count represents the total number of valid rectangular areas (local areas).

【0039】即ち、先ず、出力部38からの全信号を読
み込み(ステップS10)、各変数RB ,GB ,BB
Count をそれぞれ「0」に初期化する(ステップS1
2)。そして、画像を走査して(ステップS14)、所
定サイズ、例えば8×8サイズの矩形領域を重複無しで
順次抽出する(ステップS16)。
That is, first, all signals from the output unit 38 are read (step S10), and each of the variables R B , G B , B B ,
Count is initialized to “0” (Step S1)
2). Then, the image is scanned (step S14), and rectangular areas of a predetermined size, for example, 8 × 8 size, are sequentially extracted without overlap (step S16).

【0040】次に、抽出された矩形領域内のR,G,B
各色信号の平均値Rav,Gav,Bavを算出し(ステップ
S18)、また、その矩形領域内の平均輝度Yを、 Y=0.3Rav+0.6Gav+0.1Bav により算出する(ステップS20)。
Next, R, G, B in the extracted rectangular area
Mean value R av of each color signal, G av, the B av is calculated (step S18), and also, the average luminance Y of the rectangular region is calculated by Y = 0.3R av + 0.6G av + 0.1B av (Step S20).

【0041】そして、上記算出した平均輝度Yが所定の
範囲内にあるかどうかを、下限閾値Th1と上限閾値T
h2にて判断する(ステップS22)。これらの閾値
は、例えば、扱う信号が8ビットレベル(0〜255)
ならばTh1=10,Th2=230などを用いる。
Then, whether the calculated average luminance Y is within a predetermined range is determined by determining whether the lower limit threshold value Th1 or the upper limit threshold value T
The judgment is made at h2 (step S22). These thresholds are set, for example, when the signal to be handled is an 8-bit level (0 to 255).
Then, Th1 = 10, Th2 = 230, etc. are used.

【0042】算出した平均輝度Yが上記閾値範囲内でな
い場合には、全画面の走査が終了したかを判断し(ステ
ップS24)、まだであれば、上記ステップS14に戻
って、次の矩形領域に対して上記処理を繰り返す。
If the calculated average luminance Y is not within the threshold range, it is determined whether scanning of the entire screen has been completed (step S24). If not, the flow returns to step S14 to return to the next rectangular area. The above processing is repeated.

【0043】これに対して、算出した平均輝度Yが上記
閾値範囲内であるときには、次に、変数RB ,GB ,B
B に各色信号の平均値Rav,Gav,Bavを積算し(ステ
ップS26)、また変数Count を「1」増分する(ステ
ップS28)。その後、上記ステップS24に進み、全
画面の走査が終了したかを判断する。
On the other hand, when the calculated average luminance Y is within the threshold range, the variables R B , G B , B
Mean value R av of each color signal, G av, the B av integrated to B (step S26), also the variable Count is incremented to "1" (step S28). Thereafter, the process proceeds to step S24, where it is determined whether the scanning of the entire screen is completed.

【0044】こうして、全画面の走査が終了したなら
ば、次に、有効な矩形領域の数を示す変数Count によ
り、有効矩形領域数が所定の数Th3、例えばTh3=
10を上回っているかどうかを判断する(ステップS3
0)。その結果、所定数Th3を上回っている場合に
は、変数RB ,GB ,BB を変数Count で除算すること
で背景色を算出し(ステップS32)、また、上回って
いない場合には、基準となる背景色、例えば扱う信号が
8ビットレベルならば、白に該当する「255」を変数
B ,GB ,BB に代入する(ステップS34)。そし
て、上記ステップS32又はS34で設定された背景色
B ,GB ,BB を、推定した背景色として出力する
(ステップS36)。
After the scanning of the entire screen is completed, the number of valid rectangular areas is then set to a predetermined number Th3, for example, Th3 =, by a variable Count indicating the number of valid rectangular areas.
10 is determined (step S3).
0). As a result, if exceeds the predetermined number Th3 is variable R B, when G B, to calculate the background color by dividing B B variable Count (step S32), also not surpassed, If the reference background color, for example, the signal to be handled is at an 8-bit level, “255” corresponding to white is assigned to the variables R B , G B , and B B (step S34). Then, the step S32 or S34 set background color R B in, G B, a B B, and outputs as the background color estimated (step S36).

【0045】上記のように、複数の色からなる文字画像
に関して存在する色信号から欠落する色信号を回復する
ため、従来の線形補間処理で生じていたエッジ部のぼけ
や偽色の発生を回避することができ、可読性の良い文字
画像を生成することができる。また、この処理はテーブ
ルの参照による単純な演算で実行できるため、低コスト
で高速な処理が可能となる。さらに、本実施の形態は、
電子スチルカメラ自体を改良する必要がないため、汎用
性の高いものとなる。
As described above, in order to recover a missing color signal from a color signal existing in a character image composed of a plurality of colors, blurring of an edge portion and generation of a false color caused by the conventional linear interpolation processing are avoided. It is possible to generate a character image with good readability. In addition, since this processing can be executed by a simple operation by referring to the table, low-cost and high-speed processing can be performed. Further, the present embodiment
Since there is no need to improve the electronic still camera itself, it is highly versatile.

【0046】なお、本実施の形態では、CCDの色フィ
ルタに図2の(A)に示される配置を用いているが、こ
れに限定される必要はなく、任意の配置に対して処理を
行うことも可能である。また、使用する文字色に関して
も図4に示す7色に限定する必要はなく、任意の色を登
録することが可能である。さらに、局所領域が重複しな
いように処理を行っているが、処理時間が問題にならな
いならば1画素間隔で重複するように処理をし、結果を
加算平均することでより性能を向上させることも可能で
ある。
In this embodiment, the arrangement shown in FIG. 2A is used for the color filters of the CCD. However, the present invention is not limited to this, and processing is performed for an arbitrary arrangement. It is also possible. Also, the character colors to be used need not be limited to the seven colors shown in FIG. 4, and any color can be registered. Furthermore, although processing is performed so that local regions do not overlap, if processing time does not matter, processing may be performed so as to overlap at one pixel intervals, and the results may be averaged to further improve performance. It is possible.

【0047】[第2の実施の形態]次に、本発明の第2
の実施の形態を説明する。本第2の実施の形態にかかる
電子スチルカメラシステムの構成は、CCD18に用い
られるフィルタ配置と、文字画像復元部42の構成とを
除き、上記第1の実施の形態と同様である。
[Second Embodiment] Next, a second embodiment of the present invention will be described.
An embodiment will be described. The configuration of the electronic still camera system according to the second embodiment is the same as that of the first embodiment except for the filter arrangement used for the CCD 18 and the configuration of the character image restoration unit 42.

【0048】即ち、本第2の実施の形態においては、文
字画像復元部42では、処理切換部40を介して入力さ
れた各色信号に対して背景色を算出後、この背景色と各
色信号の差を計算することで色信号を背景とその他に分
離し、これをもとに画像を回復する処理がなされて、プ
リンタ出力部44へ出力される。
That is, in the second embodiment, the character image restoring section 42 calculates a background color for each color signal input via the processing switching section 40, and then calculates the background color and the color signal. By calculating the difference, the color signal is separated into the background and the others, and a process for restoring the image is performed based on the color signal, and is output to the printer output unit 44.

【0049】図6は、本実施の形態における文字画像復
元部42の構成を示す図であり、上記第1の実施の形態
と同様のものには、同じ参照番号を付してある。なお、
同図において、記号hhは局所領域内における背景色と
の差を示す信号(各色別)を示しており、また、mmは
局所領域内の背景でない色(非背景色)の推定信号を示
している。
FIG. 6 is a diagram showing the configuration of the character image restoring section 42 in the present embodiment, and the same reference numerals are given to the same components as those in the first embodiment. In addition,
In the drawing, the symbol hh indicates a signal (for each color) indicating a difference from the background color in the local area, and mm indicates an estimated signal of a non-background color (non-background color) in the local area. I have.

【0050】即ち、処理切換部40は、制御部50の制
御に基づき出力部38からの全信号を背景色推定部52
に転送する。背景色推定部52では、背景色(RB ,G
B ,BB )を推定する。背景色の推定方法は、例えば第
1の実施の形態(図5)などを用いる。そして、推定さ
れた背景色をR信号用背景色成分差計算部78,G信号
用背景色成分差計算部80,B信号用背景色成分差計算
部82へ転送する。
That is, the processing switching section 40 outputs all signals from the output section 38 to the background color estimation section 52 under the control of the control section 50.
Transfer to In the background color estimating unit 52, the background color (R B , G
B , B B ). The method of estimating the background color uses, for example, the first embodiment (FIG. 5). Then, the estimated background color is transferred to the R signal background color component difference calculator 78, the G signal background color component difference calculator 80, and the B signal background color component difference calculator 82.

【0051】こうして背景色が算出された後、制御部5
0の制御に基づき再び処理切換部40は局所領域抽出部
56に信号を転送する。局所領域抽出部56では、制御
部50の制御に基づき所定サイズ、例えば8×8サイズ
の矩形領域を重複無しで順次抽出してR信号用ブロック
バッファ58,G信号用ブロックバッファ60,B信号
用ブロックバッファ62へ転送する。このとき、転送さ
れる信号は、図2の(B)に示されるCCDのフィルタ
配置に基づき、単板状態に変換されて転送される。各信
号用ブロックバッファ58,60,62内の色信号は、
R信号用背景色成分差計算部78,G信号用背景色成分
差計算部80,B信号用背景色成分差計算部82に転送
される。
After the background color is calculated in this way, the control unit 5
Based on the control of 0, the process switching unit 40 transfers the signal to the local area extracting unit 56 again. The local area extracting unit 56 sequentially extracts rectangular areas of a predetermined size, for example, an 8 × 8 size, without overlap based on the control of the control unit 50, and blocks the R signal block buffer 58, the G signal block buffer 60, and the B signal Transfer to the block buffer 62. At this time, the signal to be transferred is converted into a single-plate state and transferred based on the filter arrangement of the CCD shown in FIG. The color signals in the signal block buffers 58, 60, 62 are
The signals are transferred to an R signal background color component difference calculation unit 78, a G signal background color component difference calculation unit 80, and a B signal background color component difference calculation unit 82.

【0052】各信号用背景色成分差計算部78,80,
82では、背景色(RB ,GB ,BB )と局所領域内の
各色信号との差が計算され、それらの結果が切換部B1
06へ転送される。
The background color component difference calculation sections 78, 80,
In 82, the background color (R B, G B, B B) and the difference between the respective color signals in the local region is calculated, and the results are switching unit B1
06.

【0053】切換部B106では、各信号用背景色成分
差計算部78,80,82から転送された背景色と色信
号との差から、局所領域内に背景以外の部分が存在する
か否かを調べる。局所領域内の全ての色信号について背
景色との差が所定値、例えば「16」より小さければ、
背景以外の部分は存在しないとして背景色を、それ以外
の場合は背景以外の部分が存在するとして非背景色(R
N ,GN ,BN )を決定する。また切換部B106は、
制御部50の制御に基づき、各色信号用ブロックバッフ
ァ58,60,62内の単板状態の色信号を、上記にて
決定した色が背景色のときは背景復元部74へ、非背景
色の場合は欠落色復元部B108へ転送する。
The switching unit B106 determines whether or not a portion other than the background exists in the local area based on the difference between the background color and the color signal transferred from the background color component difference calculation units 78, 80, and 82 for each signal. Find out. If the difference between all color signals in the local region and the background color is smaller than a predetermined value, for example, “16”,
The background color is assumed to be nonexistent, and otherwise the non-background color (R
N , G N , B N ). Further, the switching unit B106
Under the control of the control unit 50, the single-plate color signals in the color signal block buffers 58, 60, and 62 are sent to the background restoration unit 74 when the color determined as described above is the background color. In this case, it is transferred to the missing color restoring unit B108.

【0054】背景復元部74では、背景色推定部52か
ら背景色(RB ,GB ,BB )を受け取り、これに基づ
き欠落する色信号を充填する。
[0054] Background restorer 74, receiving the background color from the background color estimation section 52 (R B, G B, B B) and to fill the missing color signals based on this.

【0055】一方、欠落色復元部B108では、切換部
B106から局所領域内の非背景色(RN ,GN
N )を、また背景色推定部52から背景色(RB ,G
B ,BB)を受け取り、これに基づき欠落する色信号を
算出する。なお、この欠落する色信号の算出は、例えば
単板状態の色信号からそれが背景か否かを判断し、欠落
部分をその判断結果に対応した色信号に回復する、など
である。
On the other hand, in the missing color restoring unit B108, the non-background colors (R N , G N ,
B N ) and the background color (R B , G
B , B B ), and the missing color signal is calculated based on the received color signals. The calculation of the missing color signal includes, for example, judging from the color signal in a single-plate state whether or not it is the background, and restoring the missing portion to a color signal corresponding to the judgment result.

【0056】具体的には、単板状態のR信号R’から欠
落しているG信号G’及びB信号B’を回復する場合、
R信号R’が背景か否かを判断する基準として、R信号
R’と非背景色RN の絶対差RNs及びR信号R’と背景
色RB の絶対差RBsをそれぞれ次式のように計算する。
Specifically, when recovering the missing G signal G ′ and B signal B ′ from the single-plate R signal R ′,
'As a criterion to determine whether the background, the R signal R' R signal R and the absolute difference absolute difference R Bs respective following formula R Ns and R signal R 'as the background color R B of the non-background colors R N Is calculated as follows.

【0057】 RNs=|R’−RN | RBs=|R’−RB | …(9) そして、絶対差RNsと絶対差RBsの大きさを比較するこ
とで、次式のように欠落しているG信号G’及びB信号
B’を回復する。
R Ns = | R′−R N | R Bs = | R′−R B | (9) Then, by comparing the magnitudes of the absolute difference R Ns and the absolute difference R Bs , the following equation is obtained. Thus, the missing G signal G 'and B signal B' are recovered.

【0058】 if (RNs≦RBs) then G’=GN B’=BN else G’=GB B’=BB …(10) こうして、欠落する色信号が復元され三板状態になった
各色信号は、プリンタ出力部44へ出力される。
[0058] if this way (R Ns ≦ R Bs) then G '= G N B' = B N else G '= G B B' = B B ... (10), missing color signal is restored becomes three-plate state The respective color signals are output to the printer output unit 44.

【0059】図2の(B)は、本実施の形態におけるC
CD18のフィルタ配置の具体的構成の一例を示す。こ
こでは、4×4画素サイズの基本配置があり、この基本
配置が反復的に繰り返されてCCD上の全画素を充填す
る構造となっている。本実施の形態では、RGBの3信
号の出現頻度は3:10:3になるよう設定されてい
る。
FIG. 2B is a diagram showing C in the present embodiment.
An example of a specific configuration of the filter arrangement of the CD 18 is shown. Here, there is a basic arrangement of a 4 × 4 pixel size, and this basic arrangement is repeatedly repeated to fill all the pixels on the CCD. In the present embodiment, the appearance frequencies of the three RGB signals are set to be 3: 10: 3.

【0060】図7は、各色信号の背景色成分差計算部7
8,80,82から切換部B106で非背景色(RN
N ,BN )を決定するまでの処理のフローチャートで
ある。本フローチャートは、各色信号のブロックバッフ
ァ58,60,62に矩形領域の画像が単板状態で読み
込まれてから開始される。なお、図7では、簡略化のた
め、点線で囲まれた部分に相当する処理(ステップS4
4乃至S54)として、R信号の場合のみ記述している
が、読み込まれた色信号がG信号又はB信号の場合は、
これらR信号で記述されている箇所をG信号又はB信号
に変更して同様の処理を行うものである。よって、以下
の説明では、これらステップS44乃至S54について
は、各色信号を一括して取り扱う。
FIG. 7 shows a background color component difference calculator 7 for each color signal.
8, 80, 82, the non-background color (R N ,
G N , B N ). This flowchart is started after an image of a rectangular area is read in a single-plate state into the block buffers 58, 60, and 62 of each color signal. In FIG. 7, for the sake of simplicity, processing corresponding to the portion surrounded by the dotted line (step S4)
4 to S54), only the case of the R signal is described. However, when the read color signal is the G signal or the B signal,
A similar process is performed by changing the portion described by the R signal to a G signal or a B signal. Therefore, in the following description, in steps S44 to S54, each color signal is handled collectively.

【0061】即ち、先ず、各変数を「0」に初期化する
(ステップS40)。ここで、初期化されるものは、背
景色と色信号の差を表す変数(RS ,GS ,BS )、こ
の変数(RS ,GS ,BS )の最大値を表す変数(R
Smax,GSmax,BSmax)、非背景色(RN ,GN
N )、及び上記変数(RS ,GS ,BS )が一定値以
上となる部分の個数を数えるカウンタを表す変数(R_
C,G_C,B_C)である。
That is, first, each variable is initialized to "0" (step S40). Here, what is initialized, variable representing the difference between the background color and the color signals (R S, G S, B S) , the variable (R S, G S, B S) variable representing the maximum value of ( R
Smax, G Smax, B Smax) , the non-background color (R N, G N,
B N ) and a variable (R_R_) representing a counter that counts the number of portions where the above variables (R S , G S , B S ) are equal to or greater than a certain value.
C, G_C, B_C).

【0062】その後、矩形領域(局所領域)内の画像を
走査して(ステップS42)、矩形領域内の対象となる
色信号(R’,G’,B’)を読み込む(ステップS4
4)。そして、読み込まれた色信号(R’,G’,
B’)に対応する背景色(RB ,GB ,BB )との差を
算出し、変数(RS ,GS ,BS )に格納する(ステッ
プS46)。ここで、この算出された変数(RS
S ,BS )の絶対値が前回までの差から算出された差
の最大値(RSmax,GSmax,BSmax)の絶対値より大き
いか否かを判断する(ステップS48)。変数(RS
S ,BS )の絶対値が最大値(RSmax,GSmax,B
Smax)の絶対値より小さければ後述するステップS52
に進み、大きい場合には、差の最大値(RSmax
Smax,BSmax)に変数(RS ,GS ,BS )を代入し
て最大値の更新を行った後(ステップS50)、次のス
テップS52に進む。
Thereafter, the image in the rectangular area (local area) is scanned (step S42), and the target color signals (R ', G', B ') in the rectangular area are read (step S4).
4). Then, the read color signals (R ′, G ′,
Background color corresponding to the B ') (R B, G B, calculates a difference between B B), variable (R S, G S, and stores the B S) (step S46). Here, the calculated variables (R S ,
It is determined whether or not the absolute value of G S , B S ) is greater than the absolute value of the maximum difference (R Smax , G Smax , B Smax ) calculated from the difference up to the previous time (step S48). Variables (R S ,
G S , B S ) are the maximum values (R Smax , G Smax , B
If it is smaller than the absolute value of ( Smax ), a step S52 to be described later is performed.
To the maximum difference (R Smax ,
G Smax, B Smax) in the variable (R S, G S, after the maximum value updating by substituting the B S) (step S50), the process proceeds to the next step S52.

【0063】ステップS52では、上記算出された変数
(RS ,GS ,BS )の絶対値が一定値Th31、例え
ばTh31=16以上であるか否かを判断する。そし
て、変数(RS ,GS ,BS )の絶対値がこの一定値T
h31よりも小さければ後述するステップS56に進
み、一定値Th31以上であれば、変数(RS ,GS
S )を非背景色と判断し、読み込まれた色信号
(R’,G’,B’)を非背景色(RN ,GN ,BN
に加算し、また同時に、カウンタ用の変数(R_C,G
_C,B_C)を「1」増分した後(ステップS5
4)、次のステップS56に進む。
In step S52, it is determined whether or not the absolute value of the calculated variable (R S , G S , B S ) is a constant value Th31, for example, Th31 = 16 or more. Then, the absolute value of the variable (R S , G S , B S ) is equal to this constant value T.
proceeds to step S56 to be described later is smaller than h31, if a constant value Th31 above, variable (R S, G S,
B S ) is determined to be a non-background color, and the read color signals (R ′, G ′, B ′) are converted to non-background colors (R N , G N , B N ).
, And at the same time, the counter variables (R_C, G
_C, B_C) is incremented by “1” (step S5).
4), proceed to the next step S56.

【0064】ステップS56では、矩形領域の走査が終
了したか否かを判断する。まだ走査が終了していない場
合には、上記ステップS42に戻る。
In step S56, it is determined whether the scanning of the rectangular area has been completed. If the scanning has not been completed, the process returns to step S42.

【0065】而して、矩形領域の走査が終了したなら
ば、次に、カウンタ用の変数(R_C,G_C,B_
C)が全て「0」であるか否かを判断する(ステップS
58)。これら変数(R_C,G_C,B_C)が全て
「0」である場合には、矩形領域には背景以外の部分は
存在しないと判断し、背景色(RB ,GB ,BB )を非
背景色(RN ,GN ,BN )に代入する(ステップS6
0)。そして、この非背景色(RN ,GN ,BN )を出
力する(ステップS62)。
When the scanning of the rectangular area is completed, the counter variables (R_C, G_C, B_
C) to determine whether all are “0” (Step S)
58). These variables (R_C, G_C, B_C) if it is all "0", the rectangular region is determined that there is no portion other than the background, the background color (R B, G B, B B) a non-background color (R N, G N, B N) is substituted for (step S6
0). Then, the non-background color (R N, G N, B N) for outputting a (step S62).

【0066】一方、上記ステップS58において、変数
(R_C,G_C,B_C)が全て「0」ではないと判
断された場合には、次に、各色信号におけるカウンタ用
の変数(R_C,G_C,B_C)が「0」であるか否
かを判断する(ステップS64)。各色信号について変
数(R_C,G_C,B_C)が「0」である場合に
は、背景色との差の最大値(RSmax,GSmax,BSmax
をとる色信号が非背景色を表すと判断し、最大値(R
Smax,GSmax,BSmax)に背景色(RB ,GB ,BB
を加算することで非背景色(RN ,GN ,BN )を算出
する(ステップS66)。また、各色信号について変数
(R_C,G_C,B_C)が「0」でない場合には、
非背景色と判断された色信号が加算された変数(RN
N ,BN )をカウンタ用の変数(R_C,G_C,B
_C)で除算することで、非背景色(RN ,GN
N )を算出する(ステップS68)。そして、上記ス
テップS62に進んで、ステップS66又はS68で算
出された非背景色(RN ,GN ,BN )を出力する。
On the other hand, if it is determined in step S58 that the variables (R_C, G_C, B_C) are not all "0", then the counter variables (R_C, G_C, B_C) for each color signal are determined. Is determined to be "0" (step S64). When the variables (R_C, G_C, B_C) are “0” for each color signal, the maximum value of the difference from the background color (R Smax , G Smax , B Smax )
Is determined to represent a non-background color, and the maximum value (R
Smax, G Smax, B Smax) to the background color (R B, G B, B B)
Are added to calculate the non-background color (R N , G N , B N ) (step S66). If the variables (R_C, G_C, B_C) are not “0” for each color signal,
Variables (R N ,
G N , B N ) are converted into counter variables (R_C, G_C, B).
_C), the non-background colors (R N , G N ,
B N ) is calculated (step S68). Then, the process proceeds to step S62, the non-background color calculated in step S66 or S68 (R N, G N, B N) to output a.

【0067】上記のように、複数の色からなる文字画像
に関して、推定された背景色と映像信号の差をとること
で背景以外の部分(文字を含む)を一括して欠落する色
信号を復元するため、任意の種類の色からなる文字画像
を高精度に復元できる。また、本実施の形態は、簡単な
構成で実現できるため、高速化及び低コスト化が可能に
なる。さらに、本実施の形態は、電子スチルカメラ自体
を改良する必要がないため、汎用性の高いものとなる。
As described above, with respect to a character image composed of a plurality of colors, a difference between the estimated background color and the video signal is obtained to recover a color signal that is missing from a portion other than the background (including characters) at once. Therefore, a character image composed of an arbitrary type of color can be restored with high accuracy. In addition, since this embodiment can be realized with a simple configuration, high speed and low cost can be realized. Further, in the present embodiment, since it is not necessary to improve the electronic still camera itself, it becomes highly versatile.

【0068】なお、本実施の形態では、CCDの色フィ
ルタに図2の(B)に示される配置を用いているが、こ
れに限定される必要はなく、例えば図2の(A)など任
意の配置に対して処理を行うことも可能である。また、
欠落色の回復には背景色及び局所領域内の色信号と背景
色の差を用いることで図4に示す判定用テーブルのよう
に色信号の線形な関係を利用して処理することも可能で
ある。さらに、局所領域が重複しないように処理を行っ
ているが、処理時間が問題にならないならば、1画素間
隔で重複するように処理をし、結果を加算平均すること
でより性能を向上させることも可能である。
In the present embodiment, the arrangement shown in FIG. 2B is used for the color filters of the CCD. However, the arrangement is not limited to this. For example, the arrangement shown in FIG. It is also possible to perform the processing for the arrangement of. Also,
By using the difference between the background color and the color signal in the local area and the background color to recover the missing color, it is possible to perform processing using a linear relationship between the color signals as in the determination table shown in FIG. is there. Furthermore, although processing is performed so that local regions do not overlap, if processing time does not matter, processing is performed so that they overlap at one pixel intervals, and the results are added and averaged to further improve performance. Is also possible.

【0069】[第3の実施の形態]次に、本発明の第3
の実施の形態を説明する。本実施の形態にかかる電子ス
チルカメラは、上記第1及び第2の実施の形態でアダプ
タ12内に構成していた機能を、電子スチルカメラ内に
構成した例である。
[Third Embodiment] Next, a third embodiment of the present invention will be described.
An embodiment will be described. The electronic still camera according to the present embodiment is an example in which the functions configured in the adapter 12 in the first and second embodiments are configured in the electronic still camera.

【0070】図8は、本第3の実施の形態にかかる電子
スチルカメラの構成を示す図で、前述の第1の実施の形
態と同様の構成には同一の参照番号を付してある。
FIG. 8 is a diagram showing the configuration of an electronic still camera according to the third embodiment. Components similar to those of the first embodiment are denoted by the same reference numerals.

【0071】即ち、レンズ系14及びローパスフィルタ
16を透過した入力画像は、CCD18へ導かれ、A/
D変換回路20に供給されている。A/D変換回路20
の出力信号は、処理切換部40を介して、文字画像復元
部42又は汎用画像復元部84へ転送される。文字画像
復元部42及び汎用画像復元部84の出力信号は、出力
部38へ転送される。また、CCD18には、クロック
ジェネレータ46の信号が、CCD駆動回路48を介し
て駆動信号として供給されている。マイクロコンピュー
タなどの制御部50は、処理切換部40,文字画像復元
部42,出力部38,クロックジェネレータ46,及び
汎用画像復元部84へ接続されている。ここで、このよ
うな構成における信号の流れを説明する。即ち、レンズ
系14とローパスフィルタ16を介して単板式のCCD
18が配置されている。CCD18は、例えば図2の
(A)や図2の(B)に示されるRGB原色型のフィル
タ配置を持つCCDである。CCD18からの映像信号
は、A/D変換回路20にてディジタル化される。ま
た、CCD18には、クロックジェネレータ46に基づ
いて駆動信号を発生するCCD駆動回路48が接続され
ている。A/D変換回路20からの単板状態の映像信号
は、制御部50の制御に基づき処理切換部40を介し
て、文字画像復元部42又は汎用画像復元部84へ転送
される。この切換は、文字モード/一般画像モードなど
の図示しない手動の切換スイッチなどにより外部から制
御部50へ伝達されるものとする。文字画像復元部42
では、複数色からなる色文字を、より可読性の高い画像
へ回復する処理がなされて出力部38へ出力される。一
方、汎用画像復元部84では、公知の補間処理(例え
ば、線形補間)により欠落する色信号が補間された後、
出力部38へ出力される。
That is, the input image transmitted through the lens system 14 and the low-pass filter 16 is guided to the CCD 18 and
It is supplied to the D conversion circuit 20. A / D conversion circuit 20
Is transferred to the character image restoring unit 42 or the general-purpose image restoring unit 84 via the process switching unit 40. Output signals of the character image restoration unit 42 and the general-purpose image restoration unit 84 are transferred to the output unit 38. Further, a signal of the clock generator 46 is supplied to the CCD 18 as a drive signal via a CCD drive circuit 48. The control unit 50 such as a microcomputer is connected to the processing switching unit 40, the character image restoration unit 42, the output unit 38, the clock generator 46, and the general-purpose image restoration unit 84. Here, a signal flow in such a configuration will be described. That is, a single-plate CCD through the lens system 14 and the low-pass filter 16
18 are arranged. The CCD 18 is, for example, a CCD having an RGB primary color type filter arrangement shown in FIGS. 2A and 2B. The video signal from the CCD 18 is digitized by the A / D conversion circuit 20. Further, a CCD drive circuit 48 that generates a drive signal based on a clock generator 46 is connected to the CCD 18. The single-plate video signal from the A / D conversion circuit 20 is transferred to the character image restoration unit 42 or the general-purpose image restoration unit 84 via the process switching unit 40 under the control of the control unit 50. This change is transmitted from the outside to the control unit 50 by a manual change switch (not shown) such as a character mode / general image mode. Character image restoration unit 42
In, a process of restoring a color character composed of a plurality of colors into a more readable image is performed and output to the output unit. On the other hand, in the general-purpose image restoration unit 84, after the missing color signal is interpolated by a known interpolation process (for example, linear interpolation),
Output to the output unit 38.

【0072】図9は、本実施の形態における文字画像復
元部42のブロック構成図であり、上記第1の実施の形
態と同様のものには、同じ参照番号を付してある。な
お、同図において、記号iiは単板状態の映像信号を、
jjはヒストグラムの分布を示す信号(各色別)を、k
kはヒストグラムのピークとなる色信号を示す信号(各
色別)を、そしてllは局所領域内の文字色を示す信号
を、それぞれ示している。
FIG. 9 is a block diagram of the character image restoring unit 42 according to the present embodiment. The same reference numerals as in the first embodiment denote the same parts. Note that, in the figure, a symbol ii represents a video signal in a single-plate state,
jj is a signal indicating the distribution of the histogram (for each color), k
k indicates a signal (for each color) indicating a color signal to be the peak of the histogram, and 11 indicates a signal indicating a character color in the local area.

【0073】処理切換部40は、制御部50の制御に基
づきA/D変換回路20からの単板状態の映像信号を背
景色推定部C110に転送する。背景色推定部C110
では、例えば図2の(A)に示されるフィルタ配置が2
×2画素サイズの反復から成立していることに基づき、
2×2サイズごとにRGBデータを算出することで、三
板状態の映像信号を生成する。この三板状態の映像信号
は、単板状態の映像信号の1/2×1/2サイズにな
る。この後は、前述の第1の実施の形態と同様に、所定
の輝度範囲内にある領域のR,G,B各色信号の平均値
を算出することで背景色(RB ,GB ,BB )を推定
し、その推定した背景色を文字色判定部C112へ転送
する。
The processing switching section 40 transfers the single-plate video signal from the A / D conversion circuit 20 to the background color estimation section C110 under the control of the control section 50. Background color estimation unit C110
Then, for example, the filter arrangement shown in FIG.
Based on the fact that it is established from repetition of × 2 pixel size,
By calculating RGB data for each 2 × 2 size, a three-plate image signal is generated. The video signal in the three-plate state has a size of 1/2 × 1/2 of the video signal in the single-plate state. Thereafter, similarly to the above-described first embodiment, the average value of each of the R, G, and B color signals in an area within a predetermined luminance range is calculated to obtain the background color (R B , G B , B). B ) is estimated, and the estimated background color is transferred to the character color determination unit C112.

【0074】背景色が転送された後、制御部50の制御
に基づき再び処理切換部40は局所領域抽出部C114
に信号を転送する。局所領域抽出部C114では、制御
部50の制御に基づき所定サイズ、例えば8×8サイズ
の矩形領域に関して、図2の(A)に示されるフィルタ
配置に基づき、RGB信号ごとに分離してR信号用ブロ
ックバッファ58,G信号用ブロックバッファ60,B
信号用ブロックバッファ62へ転送する。各信号用ブロ
ックバッファ58,60,62内の色信号は、R信号用
ヒストグラム生成部86,G信号用ヒストグラム生成部
88,B信号用ヒストグラム生成部90に転送され、各
色信号ごとの分布が算出される。各信号の分布は、R信
号文字色成分検出部92,G信号文字色成分検出部9
4,B信号文字色成分検出部96に転送され、分布のピ
ークとなる色信号が検出されて、これが文字色判定部C
112へ転送される。
After the background color is transferred, the process switching unit 40 again controls the local region extraction unit C114 under the control of the control unit 50.
To transfer the signal. The local area extraction unit C114 separates the RGB signals into RGB signals based on the filter arrangement shown in FIG. 2A for a rectangular area of a predetermined size, for example, 8 × 8 size, based on the control of the control unit 50. Block buffer 58, G signal block buffer 60, B
The signal is transferred to the signal block buffer 62. The color signals in the signal block buffers 58, 60, and 62 are transferred to the R signal histogram generation unit 86, the G signal histogram generation unit 88, and the B signal histogram generation unit 90, and the distribution for each color signal is calculated. Is done. The distribution of each signal is represented by an R signal character color component detector 92 and a G signal character color component detector 9.
The color signal which is transferred to the 4, B signal character color component detection unit 96 and which is the peak of the distribution is detected, and is detected by the character color determination unit C.
Transferred to 112.

【0075】文字色判定部C112では、各色信号の分
布のピークとなる色信号と背景色(RB ,GB ,BB
とを参照することにより、局所領域内の文字色(RT
T,BT )を決定する。そして、文字色が定まると、
文字色判定部C112は、局所領域の文字色(RT ,G
T ,BT )を切換部C116へ転送する。
[0075] In the character color determining unit C112, the color signal and the background color as the peak of the distribution of each color signal (R B, G B, B B)
And the character color (R T ,
G T , B T ). And when the text color is determined,
The character color determination unit C112 determines the character color (R T , G
T, B T) of the switching unit C116 transfers.

【0076】切換部C116は、制御部50の制御に基
づき各信号用ブロックバッファ58,60,62内の単
板状態の色信号を、文字色判定部C112からの結果が
背景色のときは背景復元部74へ、その他の場合は欠落
色復元部C118へ転送する。背景復元部74では、背
景色推定部C110から背景色(RB ,GB ,BB )を
受け取り、これに基づき欠落する色信号を充填する。一
方、欠落色復元部C118では、文字色判定部C112
から局所領域内の文字色(RT ,GT ,BT )を、背景
色推定部C110から背景色(RB ,GB ,BB )をそ
れぞれ受け取り、これらに基づいて欠落する色信号を算
出する。
The switching section C116 outputs the single-plate color signals in the signal block buffers 58, 60 and 62 based on the control of the control section 50, and outputs the background signal when the result from the character color determination section C112 is the background color. The data is transferred to the restoration unit 74, and in other cases, to the missing color restoration unit C118. Background restorer 74, the background color from the background color estimation unit C110 (R B, G B, B B) receive, to fill the missing color signals based on this. On the other hand, in the missing color restoring unit C118, the character color determining unit C112
Character color in the local area from the (R T, G T, B T) the background color from the background color estimation unit C110 (R B, G B, B B) receive respectively, the color signals missing on the basis of these calculate.

【0077】欠落する色信号の算出方法には、色信号間
の関係を利用する。局所領域内に文字と背景が存在する
場合、二つの色信号(S1 ,S2 )についてそれぞれ分
布を求めると、その関係は図10の(A)に示すよう
に、それぞれ二つの濃度値に収束する。この状態から文
字色と背景色の組み合わせは4通り考えられるが、背景
色に関しては事前に算出されているので、その背景色の
組み合わせは一意に決定できる(図10の(A)では、
(S1B,S2B)を背景色としている)。よって、文字色
の組み合わせも決まる(図10の(A)では(S1T,S
2T)を文字色としている)。この関係から、単板状態の
色信号が背景と文字のどちらに属するかを見れば、欠落
する色信号はその結果に対応した色信号として回復する
ことができる。
The method of calculating missing color signals utilizes the relationship between the color signals. When a character and a background are present in a local area, distributions are obtained for two color signals (S 1 , S 2 ), and the relationship is, as shown in FIG. Converge. From this state, four combinations of the character color and the background color are conceivable, but since the background color is calculated in advance, the combination of the background colors can be uniquely determined (in FIG. 10A,
(S 1B , S 2B ) is used as the background color.) Therefore, the combination of the character colors is also determined (in FIG. 10A, (S 1T , S
2T ) is the text color). From this relationship, if it is determined whether the color signal in the single-plate state belongs to the background or the character, the missing color signal can be recovered as a color signal corresponding to the result.

【0078】こうして、欠落する色信号が復元され三板
状態になったR,G,B各色信号は、出力部38へ出力
される。
The R, G, and B color signals in which the missing color signals have been restored and are in the three-plate state are output to the output unit 38.

【0079】図11は、各色信号のヒストグラム生成部
86,88,90から文字色判定部C112で文字色
(RT ,GT ,BT )を出力するまでの処理のフローチ
ャートを示している。このフローチャートの動作は、各
色信号のブロックバッファ58,60,62に矩形領域
(局所領域)の画像が単板状態で読み込まれてから開始
される。
[0079] Figure 11 shows a flowchart of processing from the histogram generation unit 86, 88 and 90 of the respective color signals to be output character color is the character color determination unit C112 (R T, G T, B T) a. The operation of this flowchart is started after an image of a rectangular area (local area) is read in a single-plate state into the block buffers 58, 60, and 62 of each color signal.

【0080】即ち先ず、各変数を「0」に初期化する
(ステップS70)。ここでは、ヒストグラムの度数を
表す配列(RH [],GH [],BH [])、ピーク値をとる
画素値を表す配列(RL [],GL [],BL [])、及びそ
の個数を数えるカウンタを表す変数(RL _C,GL _
C,BL _C)が使われる。配列(RH [],GH [],B
H [])のサイズは、信号のレベルによる間隔の設定に依
存し、例えば信号が8ビットレベル(0〜255)の場
合、間隔を「16」にすれば各配列のサイズは「256
/16=16」となる。
That is, first, each variable is initialized to "0" (step S70). Here, sequences representing the frequency of the histogram (R H [], G H [], B H []), sequence representing pixel values a peak value (R L [], G L [], B L [] ) And variables (R L — C, G L —
C, B L _C) is used. Array (R H [], G H [], B
The size of H []) depends on the setting of the interval according to the signal level. For example, when the signal is at the 8-bit level (0 to 255), if the interval is set to “16”, the size of each array is “256”.
/ 16 = 16 ".

【0081】次に、矩形領域内の各色信号に対応するヒ
ストグラム(RH [],GH [],BH[])を作成し(ステ
ップS72)、この各色信号のヒストグラムから、度数
が所定値以上、例えば8×8サイズの矩形領域であれば
R信号及びB信号について「5」以上、G信号について
「10」以上となる部分をピーク値として検出する。そ
して、ピーク値に対応する画素値(例えばその範囲の中
央値など)を変数(RL [],GL [],BL [])に、ピー
ク値の個数を変数(RL _C,GL _C,BL_C)に
それぞれ格納する(ステップS74)。その具体例とし
て、R信号のヒストグラムのピーク値に対応する画素値
の状態を図12に示す。
Next, histograms (R H [], G H [], B H []) corresponding to the respective color signals in the rectangular area are created (step S72), and the frequency is determined from the histogram of the respective color signals. In the case of a rectangular area having a size equal to or more than the value, for example, in the case of a rectangular area of 8 × 8 size, a portion where the R signal and the B signal are “5” or more and the G signal is “10” or more are detected as peak values. Then, the pixel value corresponding to the peak value (for example, the median of the range) variables (R L [], G L [], B L []) , a variable number of peak values (R L _C, G L _C, B L _C) to store respectively (step S74). As a specific example, FIG. 12 shows the state of the pixel value corresponding to the peak value of the histogram of the R signal.

【0082】次に、ここで、各色信号のピーク値の個数
(=変数(RL _C,GL _C,BL _C))が「2」
以下かどうかを調べる(ステップS76)。その個数が
「2」以下である場合は、背景色推定部C110より推
定された背景色(RB ,GB,BB )とピーク値を示す
変数(RL [],GL [],BL [])を参照することで、矩
形領域内の文字色(RT ,GT ,BT )を決定する(ス
テップS78)。ここでは、背景色との差が大きい変数
を文字色と定義する。
[0082] Next, where the number of peak values of each color signal (= variable (R L _C, G L _C , B L _C)) is "2"
It is checked whether it is below (step S76). If this number is equal to or less than "2", color background is estimated from the background color estimation unit C110 (R B, G B, B B) and a variable indicating the peak value (R L [], G L [], B L []) by referring to the text color in the rectangular area (R T, G T, B T) to determine (step S78). Here, a variable having a large difference from the background color is defined as a character color.

【0083】例えば、ピーク値の個数が「2」の場合
は、背景色の輝度信号と変数(RL [],GL [],
L [])の輝度信号を算出し比較して絶対差が大きい変
数を文字色とする。また、ピーク値の個数が「1」の場
合は、変数と背景色の輝度信号の絶対差が所定値、例え
ば「15」以内ならば背景色を文字色とし、そうでなけ
れば変数を文字色とする。ピーク値の個数が「0」の場
合は、ヒストグラム(RH [],GH [],BH [])の平均
値や中央値に関して輝度信号を算出してピーク値の個数
が「1」の場合と同様の処理を行う。このような方法に
より、矩形領域内の文字色(RT ,GT ,BT )を決定
する。
For example, when the number of peak values is “2”, the luminance signal of the background color and the variables (R L [], G L [],
The brightness signal of B L []) is calculated and compared, and a variable having a large absolute difference is defined as a character color. If the number of peak values is "1", the background color is set to the text color if the absolute difference between the variable and the luminance signal of the background color is within a predetermined value, for example, "15". And When the number of peak values is “0”, the luminance signal is calculated with respect to the average value or the median of the histograms (R H [], G H [], B H []), and the number of peak values is “1”. The same processing as in the case of is performed. Such a method to determine the character color in the rectangular area (R T, G T, B T) a.

【0084】そして、こうして決定した文字色(RT
T ,BT )を出力して(ステップS80)、この動作
を終了する。
Then, the character colors (R T ,
G T , B T ) is output (step S80), and this operation ends.

【0085】一方、上記ステップS76において、各色
信号のピーク値の個数が「2」以下ではないと判断され
た場合には、対象としている矩形領域内の回復処理を行
わず、対象を次の矩形領域に移動するように制御して
(ステップS82)、この動作を終了する。
On the other hand, if it is determined in step S76 that the number of peak values of each color signal is not equal to or less than "2", the recovery processing in the target rectangular area is not performed, and the target is set to the next rectangular area. Control is performed to move to the area (step S82), and this operation ends.

【0086】図13は、背景色推定部C110の処理動
作のフローチャートである。ここで、変数RB ,GB
B は背景色を、Count は有効三板画素の総数を、C_
bwは白色三板画素の総数を示す。
FIG. 13 is a flowchart of the processing operation of the background color estimating unit C110. Where the variables R B , G B ,
B B is the background color, Count is the total number of effective three-chip pixel, C_
bw indicates the total number of three white pixels.

【0087】即ち先ず、A/D変換回路20から転送さ
れる単板状態の映像信号を読み込み(ステップS9
0)、変数RB ,GB ,BB ,Count ,及びC_bwを
「0」に初期化する(ステップS92)。
That is, first, a single-plate video signal transferred from the A / D conversion circuit 20 is read (step S9).
0), the variable R B, G B, B B , Count, and is initialized to "0" C_bw (step S92).

【0088】その後、画像を走査して(ステップS9
4)、単板CCDのフィルタの配列サイズ、例えば図2
の(A)に示す2×2サイズの矩形領域を重複無しで順
次抽出する(ステップS96)。このとき読み込まれる
色信号をそれぞれR,G1,G2,Bとし、以後総称し
て単板データと呼ぶ。
Thereafter, the image is scanned (step S9).
4), the array size of the filters of the single CCD, for example, FIG.
The 2 × 2 rectangular areas shown in FIG. 7A are sequentially extracted without overlap (step S96). The color signals read at this time are R, G1, G2, and B, respectively, and are hereinafter collectively referred to as veneer data.

【0089】次に、単板データの情報から三板状態にお
ける1画素の色成分R’,G’,B’を算出する(ステ
ップS98)。これを以後総称して三板データと呼ぶ。
単板CCDのフィルタ配列サイズが例えば図2の(A)
に示す2×2サイズであれば、三板データは次式から算
出される。
Next, the color components R ', G', B 'of one pixel in the three-plate state are calculated from the information of the single-plate data (step S98). This is hereinafter collectively referred to as three-plate data.
The filter array size of the single CCD is, for example, as shown in FIG.
In the case of the 2 × 2 size shown in the above, three-plate data is calculated from the following equation.

【0090】 R’=R G’=(G1+G2)/2 …(11) B’=B 次に、この三板データを用いて、輝度信号Yを、 Y=0.3R’+0.6G’+0.1B’ として算出する(ステップS100)。R ′ = RG ′ = (G1 + G2) / 2 (11) B ′ = B Next, using the three-plate data, a luminance signal Y is calculated as follows: Y = 0.3R ′ + 0.6G ′ + 0. 1B '(step S100).

【0091】そしてここで、輝度信号Yが所定の範囲内
にあるかどうかを、下限閾値Th1と上限閾値Th2に
て判断する(ステップS102)。この閾値としては、
例えば扱う信号が8ビットレベル(0〜255)ならば
Th1=10,Th2=230などを用いる。
Here, it is determined whether or not the luminance signal Y is within a predetermined range based on the lower threshold value Th1 and the upper threshold value Th2 (step S102). As this threshold,
For example, if the signal to be handled is an 8-bit level (0 to 255), Th1 = 10, Th2 = 230, etc. are used.

【0092】輝度信号Yがこの範囲内ならば、変数
B ,GB ,BB に三板データの各色信号R’,G’,
B’を積算し(ステップS104)、変数Count を
「1」増分した後(ステップS106)、全画面の走査
が終了したかを判断する(ステップS108)。まだ、
全画面の走査が終了していない場合には、上記ステップ
S94に戻る。
[0092] If the luminance signal Y is within this range, variable R B, G B, color signals R three-chip data B B ', G',
B ′ is integrated (step S104), and after incrementing the variable Count by “1” (step S106), it is determined whether scanning of the entire screen has been completed (step S108). yet,
If the scanning of the entire screen has not been completed, the process returns to step S94.

【0093】一方、上記ステップS102において、輝
度信号Yが上記所定の範囲内にないと判断された場合に
は、さらに、輝度信号Yが上記上限閾値Th2以上かど
うかを判断する(ステップS110)。輝度信号Yが上
限閾値Th2以上でない場合には、上記ステップS10
8に進み、上限閾値Th2以上の場合には、変数C_bw
を「1」増分した後(ステップS112)、上記ステッ
プS108に進む。
On the other hand, when it is determined in step S102 that the luminance signal Y is not within the predetermined range, it is further determined whether the luminance signal Y is equal to or more than the upper limit threshold Th2 (step S110). If the luminance signal Y is not equal to or greater than the upper threshold value Th2, the process proceeds to step S10.
8, if the value is equal to or more than the upper threshold value Th2, the variable C_bw
Is incremented by "1" (step S112), and the process proceeds to step S108.

【0094】こうして、上記ステップS108で全画面
の走査が終了したと判断されたならば、次に、有効三板
データ数Count が所定の数Th3、例えばTh3=10
を上回っているかどうかを判断する(ステップS11
4)。上回っている場合には、変数RB ,GB ,BB
変数Count で除算することで、背景色を算出し(ステッ
プS116)、この算出した背景色RB ,GB ,BB
出力する(ステップS118)。
If it is determined in step S108 that the scanning of the entire screen has been completed, the number of valid three-plate data Count is set to a predetermined number Th3, for example, Th3 = 10.
Is determined (step S11).
4). If exceeds, the variable R B, by dividing G B, a B B a variable Count, calculates the background color (step S116), the calculated background color R B, G B, outputs B B (Step S118).

【0095】これに対して、上記ステップS114にお
いて所定の数Th3を上回っていないと判断された場合
には、さらに、白色三板データ数C_bwが上記所定の数
Th3を上回っているかどうかを判断し(ステップS1
20)、上回っている場合は、例えば扱う信号が8ビッ
トレベルならば白に該当する値「255」を変数RB
B ,BB に代入し(ステップS122)、また上回っ
ていない場合には、黒に該当する値「0」を変数RB
B ,BB に代入して(ステップS124)、上記ステ
ップS118で背景色RB ,GB ,BB を出力する。
On the other hand, if it is determined in step S114 that the number C_bw does not exceed the predetermined number Th3, it is further determined whether the number C_bw of white three-plate data exceeds the predetermined number Th3 ( Step S1
20) If it exceeds, for example, if the signal to be handled is an 8-bit level, the value “255” corresponding to white is set to the variable R B ,
G B, by substituting the B B (step S122), or if not surpassed, the variable R B value "0" corresponding to black,
G B, by substituting the B B (step S124), the background color R B above step S118, the outputs of G B, B B.

【0096】上記のように、複数の色からなる文字画像
に関して、局所領域ごとに単板状態の映像信号から各色
成分のヒストグラムを作成し、この分布のピーク値とな
る映像信号を用いて文字色を推定するため、任意の種類
の色からなる文字画像を復元できる。また、ヒストグラ
ムのピーク値となる映像信号をもとに文字と背景それぞ
れに対応する部分の欠落する色信号を回復するため、ノ
イズの影響を極力抑えて高精度に文字画像を復元でき
る。
As described above, with respect to a character image composed of a plurality of colors, a histogram of each color component is created from a single-plate image signal for each local region, and the character color is determined using the image signal having the peak value of this distribution. Is estimated, a character image composed of any kind of color can be restored. In addition, since the missing color signal of the portion corresponding to each of the character and the background is recovered based on the video signal that is the peak value of the histogram, the character image can be restored with high accuracy while minimizing the influence of noise.

【0097】なお、本実施の形態では、CCDの色フィ
ルタに図2の(A)に示される配置を用いているが、こ
れに限定される必要はなく、例えば図2の(B)など任
意の配置に対して処理を行うことも可能である。また、
局所領域が重複しないように処理を行っているが、処理
時間が問題にならないならば1画素間隔で重複するよう
に処理をし、結果を加算平均することでより性能を向上
させることも可能である。さらに、本実施の形態では、
文字画像の復元として単板状態の映像信号から背景色と
文字色をそれぞれ推定して欠落色を復元する処理を行っ
ているが、上記第2の実施の形態の如く、背景色を推定
した後に単板状態の映像信号と参照することで欠落色を
復元するといった処理も可能である。
In the present embodiment, the arrangement shown in FIG. 2A is used for the color filters of the CCD. However, the arrangement is not limited to this. For example, the arrangement shown in FIG. It is also possible to perform the processing for the arrangement of. Also,
Although processing is performed so that local regions do not overlap, if processing time does not matter, processing can be performed so as to overlap at one pixel intervals, and the results can be averaged to further improve performance. is there. Further, in the present embodiment,
As the restoration of the character image, a process of estimating the background color and the character color from the video signal in the single-plate state and restoring the missing color is performed. However, as in the second embodiment, after estimating the background color, A process of restoring missing colors by referring to a single-plate video signal is also possible.

【0098】以上実施の形態に基づいて本発明を説明し
たが、本発明は上述した実施の形態に限定されるもので
はなく、本発明の要旨の範囲内で種々の変形や応用が可
能なことはもちろんである。例えば、上記実施の形態で
は、固体撮像素子として単板CCDを例に説明したが、
本発明は、二板CCDにも同様に適用可能である。
Although the present invention has been described based on the above embodiments, the present invention is not limited to the above embodiments, and various modifications and applications are possible within the scope of the present invention. Of course. For example, in the above-described embodiment, a single-chip CCD has been described as an example of the solid-state imaging device.
The present invention is similarly applicable to a two-chip CCD.

【0099】ここで、本発明の要旨をまとめると以下の
ようになる。
The summary of the present invention is as follows.

【0100】(1) 単板又は二板式固体撮像素子の映
像信号から複数種類の色からなる文字画像を復元する文
字画像復元装置であって、上記固体撮像素子の映像信号
から背景色を推定する背景色推定手段と、上記固体撮像
素子の映像信号から所定サイズの局所領域を抽出する抽
出手段と、上記抽出手段から抽出された局所領域内の文
字色を推定する文字色推定手段と、上記背景色推定手段
から推定された背景色と上記文字色推定手段から推定さ
れた文字色に基づき上記局所領域内の映像信号を背景と
文字とに分離する分離手段と、上記分離手段により背景
とされた場合には上記背景色により欠落する色信号を復
元し、上記分離手段により文字とされた場合には上記文
字色により欠落する色信号を復元する欠落色復元手段
と、を具備することを特徴とする文字画像復元装置。
(1) A character image restoring apparatus for restoring a character image composed of a plurality of colors from a video signal of a single-panel or two-panel solid-state imaging device, wherein a background color is estimated from the video signal of the solid-state imaging device. Background color estimating means, extracting means for extracting a local area of a predetermined size from the video signal of the solid-state imaging device, character color estimating means for estimating the character color in the local area extracted from the extracting means, Separating means for separating the video signal in the local area into a background and a character based on the background color estimated by the color estimating means and the character color estimated by the character color estimating means; And a missing color restoring means for restoring a color signal missing due to the background color, and restoring a color signal missing due to the character color when converted to a character by the separating means. Character image restoration device.

【0101】この構成に関する実施の形態は、第1の実
施の形態が対応するもので、文字画像を復元する方法と
しては、与えられた映像信号から背景色を推定し、ま
た、与えられた映像信号を局所領域に分割して、各局所
領域ごとに文字色を推定し、各局所領域ごとに背景と文
字とに分離を行い、背景色の場合は推定された背景色か
ら、文字の場合は推定された文字色から欠落する色信号
を復元する方法を含む。背景色を推定する方法として
は、与えられた映像信号に基づき輝度信号を生成し、輝
度信号が所定の範囲内にある領域内の映像信号から背景
色を推定する方法を含む。また、文字色を推定する方法
としては、与えられた映像信号から局所領域の最大・最
小値の分布範囲及び背景色及び文字色が登録された文字
色テーブルから文字色を推定する方法を含む。
An embodiment relating to this configuration corresponds to the first embodiment. As a method for restoring a character image, a method of estimating a background color from a given video signal, and The signal is divided into local regions, the character color is estimated for each local region, the background and characters are separated for each local region, and the background color is estimated from the estimated background color, and the character is Includes a method for restoring missing color signals from the estimated character color. The method of estimating the background color includes a method of generating a luminance signal based on a given video signal and estimating the background color from a video signal in an area where the luminance signal is within a predetermined range. The method of estimating the character color includes a method of estimating the character color from a character color table in which the distribution range of the maximum and minimum values of the local region and the background color and the character color are registered from the given video signal.

【0102】例えば、図3に示す文字画像復元部42で
は、与えられた映像信号が文字画像である場合、背景色
推定部52にて映像信号全体から所定の輝度範囲内にあ
る映像信号を平均化することで背景色を推定し、局所領
域抽出部56にて映像信号を局所領域に分割し且つ単板
状態に変換し、R信号用最大最小算出部64,G信号用
最大最小算出部66,B信号用最大最小算出部68にて
各局所領域ごとの最大・最小範囲を算出して、文字色判
定部A100と判定用テーブル70にて最大・最小範囲
と背景色から文字色を推定し、背景復元部74と欠落色
復元部A104にて文字画像を復元する。
For example, in the character image restoring section 42 shown in FIG. 3, when the given video signal is a character image, the background color estimating section 52 averages the video signal within a predetermined luminance range from the entire video signal. By estimating the background color, the local area extracting unit 56 divides the video signal into local areas and converts it into a single-plate state, and outputs a maximum / minimum calculating unit 64 for an R signal and a maximum / minimum calculating unit 66 for a G signal. , B signal maximum / minimum calculation unit 68 calculates the maximum / minimum range for each local area, and character color determination unit A100 and determination table 70 estimate the character color from the maximum / minimum range and the background color. The character image is restored by the background restoration unit 74 and the missing color restoration unit A104.

【0103】即ち、与えられた映像信号を文字画像の場
合のみ再度復元処理する。復元処理は、まず所定の輝度
範囲内にある映像信号から背景色を求める。次に、映像
信号を単板状態に戻し、且つ所定サイズの局所領域に分
割して、各局所領域ごとに文字色を求める。文字色は、
信号の最大最小の分布形態と背景色と予め登録しておい
た文字色テーブルとを比較することで決定される。背景
色と文字色が定まると、各局所領域ごとに背景部と文字
部に分離されて、欠落する色信号が復元される。
That is, the given video signal is restored again only when it is a character image. In the restoration processing, first, a background color is obtained from a video signal within a predetermined luminance range. Next, the video signal is returned to the single-plate state and divided into local regions of a predetermined size, and a character color is obtained for each local region. The text color is
This is determined by comparing the maximum and minimum signal distribution forms, the background color, and the character color table registered in advance. When the background color and the character color are determined, the local portion is separated into the background portion and the character portion, and the missing color signal is restored.

【0104】このように、予め登録された文字色に基づ
き局所領域ごとに文字色を推定し、その後、背景色又は
文字色の2種類の色しか存在しないものとして欠落する
色信号を復元するため、従来の線形補間で復元する場合
に生ずるエッジ部の偽色が低減され可読性の良い文字画
像を生成することができる。また、文字色の推定は、予
め登録されたテーブルとの参照により行われるため処理
が高速に行われ、電子スチルカメラ自体を改良する必要
がないため汎用性が高い。
As described above, the character color is estimated for each local area based on the character color registered in advance, and thereafter, the missing color signal is restored because there are only two types of colors, the background color and the character color. In addition, the false color of the edge portion generated when the image is restored by the conventional linear interpolation can be reduced, and a character image with good readability can be generated. In addition, since the estimation of the character color is performed by referring to a table registered in advance, the process is performed at high speed, and there is no need to improve the electronic still camera itself, so that the versatility is high.

【0105】また、この(1)の構成に関する実施の形
態は、第3の実施の形態も対応する。文字画像を復元す
る方法としては、単板状態の映像信号から背景色を推定
し、単板状態の映像信号を局所領域に分割して、各局所
領域ごとに文字色を推定し、各局所領域ごとに背景と文
字とに分離を行い、背景色の場合は推定された背景色か
ら、文字の場合は推定された文字色から欠落する色信号
を復元する方法を含む。背景色を推定する方法として
は、単板状態の映像信号から縮小サイズの欠落する色信
号のない映像信号を生成し、縮小サイズの映像信号に基
づき輝度信号を生成し、輝度信号が所定の範囲内にある
領域内の映像信号から背景色を推定する方法を含む。ま
た、文字色を推定する方法としては、単板状態の映像信
号から局所領域のヒストグラムを生成しヒストグラムの
ピーク値をとる映像信号及び背景色から文字色を推定す
る方法を含む。
The embodiment relating to the configuration (1) also corresponds to the third embodiment. As a method of restoring a character image, a background color is estimated from a video signal in a single-plate state, a video signal in a single-plate state is divided into local regions, and a character color is estimated for each local region. The method includes a method of separating the background and the character from each other, and restoring a color signal missing from the estimated background color in the case of the background color and the estimated character color in the case of the character. As a method of estimating the background color, a video signal having no reduced-size missing color signal is generated from a video signal in a single-plate state, a luminance signal is generated based on the reduced-size video signal, and the luminance signal is within a predetermined range. The method includes a method of estimating a background color from a video signal in an area within the image. In addition, the method of estimating the character color includes a method of generating a histogram of a local region from a video signal in a single-plate state and estimating a character color from a video signal having a peak value of the histogram and a background color.

【0106】例えば、図9に示す文字画像復元部42で
は、与えられた映像信号が文字画像である場合、背景色
推定部C110にて縮小サイズの映像信号を生成後、映
像信号全体から所定の輝度範囲内にある映像信号を平均
化することで背景色を推定し、局所領域抽出部C114
にて映像信号を局所領域に分割し、R信号用ヒストグラ
ム生成部86,G信号用ヒストグラム生成部88,B信
号用ヒストグラム生成部90にて各局所領域ごとのヒス
トグラムを生成して、R信号文字色成分検出部92,G
信号文字色成分検出部94,B信号文字色成分検出部9
6にてヒストグラムのピーク値をとる映像信号を検出
し、文字色判定部C112にてピーク値の映像信号と背
景色から文字色を推定し、背景復元部74と欠落色復元
部C118にて文字画像を復元する。
For example, in the character image restoring section 42 shown in FIG. 9, when the given video signal is a character image, the background color estimating section C110 generates a reduced-size video signal and then outputs a predetermined signal from the entire video signal. The background color is estimated by averaging the video signals within the luminance range, and the local region extraction unit C114
Divides the video signal into local regions, and generates a histogram for each local region in an R signal histogram generation unit 86, a G signal histogram generation unit 88, and a B signal histogram generation unit 90. Color component detector 92, G
Signal character color component detector 94, B signal character color component detector 9
6, a video signal having a histogram peak value is detected, a character color determination unit C112 estimates a character color from the peak value video signal and a background color, and a background restoration unit 74 and a missing color restoration unit C118 detect a character color. Restore the image.

【0107】即ち、背景色推定のために単板状態の映像
信号(文字画像に対応する)を、欠落信号のない縮小サ
イズの映像信号に変換後、所定の輝度範囲内にある縮小
サイズの映像信号から背景色を求める。次に、単板状態
の映像信号を所定サイズの局所領域に分割して、各局所
領域ごとに文字色を求める。文字色は、各色信号ごとに
ヒストグラムを生成してそのピーク値をとる映像信号と
背景色とを比較することで決定される。背景色と文字色
が定まると、各局所領域ごとに背景部と文字部に分離さ
れて欠落する色信号が復元される。
That is, a single-plate video signal (corresponding to a character image) is converted into a reduced-size video signal with no missing signals for background color estimation, and then a reduced-size video signal within a predetermined luminance range. Find the background color from the signal. Next, the video signal in the single-plate state is divided into local regions of a predetermined size, and a character color is obtained for each local region. The character color is determined by generating a histogram for each color signal and comparing the video signal having its peak value with the background color. When the background color and the character color are determined, the color signal which is separated into the background portion and the character portion for each local region and is missing is restored.

【0108】このように、局所領域ごとに映像信号のヒ
ストグラムを生成し、そのピーク値となる映像信号を用
いて文字色を推定するため、任意の種類の色からなる文
字画像を復元できる。また、映像信号のヒストグラムか
ら推定された文字色及び背景色で欠落する色信号を復元
するため、ノイズの影響を極力抑えて高精度に文字画像
を復元できる。
As described above, since the histogram of the video signal is generated for each local area and the character color is estimated using the video signal having the peak value, a character image composed of any kind of color can be restored. In addition, since the missing color signal in the character color and the background color estimated from the histogram of the video signal is restored, the character image can be restored with high accuracy while minimizing the influence of noise.

【0109】(2) 単板又は二板式固体撮像素子の映
像信号から複数種類の色からなる文字画像を復元する文
字画像復元装置であって、上記固体撮像素子の映像信号
から背景色を推定する背景色推定手段と、上記固体撮像
素子の映像信号から所定サイズの局所領域を抽出する抽
出手段と、上記背景色推定手段から推定された背景色に
基づき上記局所領域内の映像信号を背景とその他に分離
する分離手段と、上記分離手段により背景とされた場合
には上記背景色により欠落する色信号を復元し、その他
とされた場合には上記局所領域内のその他とされた領域
の平均化された映像信号により欠落する色信号を復元す
る欠落色復元手段と、を具備することを特徴とする文字
画像復元装置。
(2) A character image restoring device for restoring a character image composed of a plurality of colors from a video signal of a single-chip or two-chip solid-state imaging device, wherein a background color is estimated from the video signal of the solid-state imaging device. Background color estimating means, extracting means for extracting a local area of a predetermined size from the video signal of the solid-state imaging device, and extracting the video signal in the local area as a background or the like based on the background color estimated from the background color estimating means. Separation means for separating the color signal which is missing due to the background color when the background is set by the separation means, and averaging the other areas in the local area when the others are selected A character image restoring device, comprising: a missing color restoring means for restoring a missing color signal by the extracted video signal.

【0110】この構成に関する実施の形態は、第2の実
施の形態が対応するもので、文字画像を復元する方法と
しては、与えられた映像信号から背景色を推定し、ま
た、与えられた映像信号を局所領域に分割して、各局所
領域ごとに背景とその他とに分離を行い、背景色の場合
は推定された背景色から、その他の場合は局所領域内の
その他とされた領域の平均化された映像信号から欠落す
る色信号を復元する方法を含む。
An embodiment relating to this configuration corresponds to the second embodiment. As a method for restoring a character image, a background color is estimated from a given video signal, and a given video signal is restored. The signal is divided into local regions, and the background and others are separated for each local region, and the background color is estimated from the estimated background color, otherwise the average of the other regions in the local region And a method for restoring a missing color signal from the converted video signal.

【0111】例えば、図6に示す文字画像復元部42で
は、文字画像に対応する映像信号が与えられたとき、背
景色推定部52にて映像信号全体から所定の輝度範囲内
にある映像信号を平均化することで背景色を推定し、局
所領域抽出部56にて映像信号を局所領域に分割し且つ
単板状態に変換し、R信号用背景色成分差計算部78,
G信号用背景色成分差計算部80,B信号用背景色成分
差計算部82にて各局所領域ごとの映像信号と背景色の
差を算出して、切換部B106にて局所領域を背景色と
その他に分離し、その他とされた領域の平均化された映
像信号を算出して、背景復元部74と欠落色復元部B1
08にて文字画像を復元する。
For example, in the character image restoring section 42 shown in FIG. 6, when a video signal corresponding to a character image is given, the background color estimating section 52 converts a video signal within a predetermined luminance range from the entire video signal. By averaging, the background color is estimated, and the local area extracting unit 56 divides the video signal into local areas and converts it into a single-plate state.
The G signal background color component difference calculation unit 80 and the B signal background color component difference calculation unit 82 calculate the difference between the video signal and the background color for each local area, and the switching unit B106 sets the local area to the background color. And an averaged video signal of the other area is calculated, and the background restoration unit 74 and the missing color restoration unit B1 are calculated.
At 08, the character image is restored.

【0112】即ち、文字画像の復元処理は、まず所定の
輝度範囲内にある映像信号から背景色を求める。次に、
映像信号を単板状態に戻し、且つ所定サイズの局所領域
に分割して、各局所領域ごとに映像信号と背景色の差を
求め、各局所領域ごとに背景とその他とに分離する。そ
して背景は背景色により、またその他は局所領域内でそ
の他とされた領域に関して平均化された映像信号により
欠落する色信号が復元される。
That is, in the restoration process of a character image, a background color is first obtained from a video signal within a predetermined luminance range. next,
The video signal is returned to the single-plate state and divided into local regions of a predetermined size, the difference between the video signal and the background color is determined for each local region, and the local and other regions are separated for each local region. The missing color signal is restored by the background color of the background, and by the video signal averaged for the other area in the local area.

【0113】このように、推定された背景色と映像信号
の差をとることで背景以外の部分(文字を含む)を一括
して欠落する色信号を復元するため、任意の種類の色か
らなる文字画像を高精度に復元できる。また、このよう
な構成の文字画像復元装置は、構成が簡単になり高速化
及び低コスト化が可能になる。さらに、この文字画像復
元装置は、電子スチルカメラ本体とは独立した形で構成
することができるので、電子スチルカメラ自体を改良す
る必要がないため汎用性が高い。
As described above, by taking the difference between the estimated background color and the video signal, a color signal in which portions other than the background (including characters) are collectively lost is restored, so that the image signal is composed of an arbitrary type of color. Character images can be restored with high accuracy. Further, the character image restoring device having such a configuration has a simple configuration, and can achieve high speed and low cost. Further, since the character image restoring device can be configured independently of the electronic still camera main body, there is no need to improve the electronic still camera itself, so that the versatility is high.

【0114】(3) 単板又は二板式固体撮像素子を用
いた電子スチルカメラ及び後処理装置からなる電子スチ
ルカメラシステムにおいて、上記固体撮像素子の映像信
号から欠落する色信号を、補間により復元する汎用画像
復元手段と、上記汎用画像復元手段により復元された映
像信号から複数種類の色からなる文字画像を、上記補間
とは異なる文字画像に適した復元方法により復元する文
字画像復元手段と、上記汎用画像復元手段により復元さ
れた映像信号を上記文字画像復元手段に伝送する伝送手
段と、を具備し、少なくとも上記文字画像復元手段を上
記後処理装置内に構成したことを特徴とする電子スチル
カメラシステム。
(3) In an electronic still camera system including an electronic still camera and a post-processing device using a single-chip or two-chip solid-state imaging device, a color signal missing from a video signal of the solid-state imaging device is restored by interpolation. A general-purpose image restoration unit, a character image restoration unit that restores a character image composed of a plurality of colors from a video signal restored by the general-purpose image restoration unit by a restoration method suitable for a character image different from the interpolation, A transmission means for transmitting a video signal restored by the general-purpose image restoration means to the character image restoration means, wherein at least the character image restoration means is configured in the post-processing device. system.

【0115】この構成に関する実施の形態は、図1乃至
図5に示される第1の実施の形態が対応する。ここで、
汎用画像復元手段は、図1に示される色分離回路22、
プロセス回路24,26,28、及びマトリックス回路
30が該当する。また、文字画像復元手段は、図1の文
字画像復元部42が該当する。文字画像を復元する方法
としては、汎用画像復元手段からの映像信号から背景色
を推定し、汎用画像復元手段からの映像信号を局所領域
に分割して、各局所領域ごとに文字色を推定し、各局所
領域ごとに背景と文字とに分離を行い、背景色の場合は
推定された背景色から文字の場合は推定された文字色か
ら欠落する色信号を復元する方法を含む。背景色を推定
する方法としては、汎用画像復元手段からの映像信号に
基づき輝度信号を生成し、輝度信号が所定の範囲内にあ
る領域内の映像信号から背景色を推定する方法を含む。
また、文字色を推定する方法としては、汎用画像復元手
段からの映像信号から局所領域の最大・最小値の分布範
囲及び背景色及び文字色が登録された文字色テーブルか
ら文字色を推定する方法を含む。そして、構成伝送手段
は、図1に示される処理切換部40が該当する。
An embodiment relating to this configuration corresponds to the first embodiment shown in FIGS. here,
The general-purpose image restoration means includes a color separation circuit 22 shown in FIG.
The process circuits 24, 26, and 28 and the matrix circuit 30 correspond to this. The character image restoring unit corresponds to the character image restoring unit 42 in FIG. As a method of restoring a character image, a background color is estimated from a video signal from a general-purpose image restoration unit, a video signal from the general-purpose image restoration unit is divided into local regions, and a character color is estimated for each local region. And a method of separating a background and a character for each local region, and restoring a missing color signal from the estimated character color from the estimated background color in the case of the background color. The method of estimating a background color includes a method of generating a luminance signal based on a video signal from a general-purpose image restoration unit and estimating the background color from a video signal in an area where the luminance signal is within a predetermined range.
As a method of estimating the character color, a method of estimating the character color from a character color table in which the distribution range of the maximum and minimum values of the local area and the background color and the character color are registered from the video signal from the general-purpose image restoration unit is used. including. The configuration switching unit corresponds to the process switching unit 40 shown in FIG.

【0116】この構成の電子スチルカメラシステムの好
ましい適用例は、図1に示す単板CCD18からの映像
信号をA/D変換回路20,色分離回路22,プロセス
回路24,26,28,マトリックス回路30にて欠落
する色信号を復元して保存し、処理切換部40にて映像
信号が文字画像である場合のみ図3に示す文字画像復元
部42へ転送され、背景色推定部52にて映像信号全体
から所定の輝度範囲内にある映像信号を平均化すること
で背景色を推定し、局所領域抽出部56にて映像信号を
局所領域に分割しかつ単板状態に変換し、R信号用最大
最小算出部64,G信号用最大最小算出部66,B信号
用最大最小算出部68にて各局所領域ごとの最大・最小
範囲を算出して、文字色判定部A100と判定用テーブ
ル70にて最大・最小範囲と背景色から文字色を推定
し、背景復元部74と欠落色復元部A104にて文字画
像を復元する電子スチルカメラシステムである。
A preferred application example of the electronic still camera system having this configuration is that an image signal from the single CCD 18 shown in FIG. 1 is converted into an A / D conversion circuit 20, a color separation circuit 22, process circuits 24, 26, 28, and a matrix circuit. At 30, the missing color signal is restored and stored, and only when the video signal is a text image is transferred to the text image restoration unit 42 shown in FIG. Estimating the background color by averaging the video signal within a predetermined luminance range from the entire signal, dividing the video signal into local regions by the local region extracting unit 56 and converting it into a single-plate state, The maximum / minimum calculation unit 64, the maximum / minimum calculation unit 66 for G signal, and the maximum / minimum calculation unit 68 for B signal calculate the maximum / minimum range for each local area. The largest It estimates the character color from a small range and the background color, an electronic still camera system for restoring a character image by missing color restoration unit A104 and the background restoration unit 74.

【0117】即ち、汎用画像復元手段からの映像信号を
文字画像の場合のみ再度復元処理する。復元処理は、ま
ず所定の輝度範囲内にある映像信号から背景色を求め
る。次に、映像信号を単板状態に戻し、且つ所定サイズ
の局所領域に分割して、各局所領域ごとに文字色を求め
る。文字色は、信号の最大最小の分布形態と背景色と予
め登録しておいた文字色テーブルとを比較することで決
定される。背景色と文字色が定まると、各局所領域ごと
に背景部と文字部に分離されて欠落する色信号が復元さ
れる。
That is, the image signal from the general-purpose image restoration means is restored again only in the case of a character image. In the restoration processing, first, a background color is obtained from a video signal within a predetermined luminance range. Next, the video signal is returned to the single-plate state and divided into local regions of a predetermined size, and a character color is obtained for each local region. The character color is determined by comparing the maximum and minimum distribution forms of the signal, the background color, and a character color table registered in advance. When the background color and the character color are determined, the color signal which is separated into the background portion and the character portion for each local region and is missing is restored.

【0118】文字画像復元手段は、予め登録された文字
色に基づき局所領域ごとに文字色を推定する。その後、
背景色又は文字色の2種類の色しか存在しないものとし
て欠落する色信号を復元するため、従来の線形補間で復
元する場合に生ずるエッジ部の偽色が低減され可読性の
よい文字画像を生成することができる。また、文字色の
推定は予め登録されたテーブルとの参照により行われる
ため処理が高速に行われ、電子スチルカメラ自体を改良
する必要がないため汎用性が高い。
The character image restoring means estimates the character color for each local area based on the character color registered in advance. afterwards,
In order to restore a missing color signal because only two types of colors, the background color and the character color, exist, false colors at edges are reduced when a conventional linear interpolation is used to generate a readable character image. be able to. In addition, since the estimation of the character color is performed by referring to a table registered in advance, the process is performed at high speed, and there is no need to improve the electronic still camera itself, so the versatility is high.

【0119】また、上記構成に関する実施の形態は、図
1と、図2、図6及び図7に示される第2の実施の形態
が対応する。構成汎用画像復元手段、構成文字画像復元
手段、及び構成伝送手段、並びに背景色を推定する方法
は上記のとおりである。文字画像を復元する方法として
は、汎用画像復元手段からの映像信号から背景色を推定
し、汎用画像復元手段からの映像信号を局所領域に分割
して、各局所領域ごとに背景とその他とに分離を行い、
背景色の場合は推定された背景色からその他の場合は局
所領域内のその他とされた領域の平均化された映像信号
から欠落する色信号を復元する方法を含む。
The embodiment relating to the above configuration corresponds to the second embodiment shown in FIG. 1 and FIGS. 2, 6 and 7. The configuration general-purpose image restoration unit, the configuration character image restoration unit, the configuration transmission unit, and the method of estimating the background color are as described above. As a method of restoring a character image, a background color is estimated from a video signal from a general-purpose image restoration unit, and a video signal from the general-purpose image restoration unit is divided into local regions. Perform the separation,
In the case of the background color, a method of restoring a missing color signal from the averaged video signal of the other region in the local region from the estimated background color otherwise.

【0120】この構成の電子スチルカメラシステムの好
ましい適用例は、図1に示す単板CCD18からの映像
信号をA/D変換回路20,色分離回路22,プロセス
回路24,26,28,マトリックス回路30にて欠落
する色信号を復元して保存し、処理切換部40にて映像
信号が文字画像である場合のみ図6に示す文字画像復元
部42へ転送され、背景色推定部52にて映像信号全体
から所定の輝度範囲内にある映像信号を平均化すること
で背景色を推定し、局所領域抽出部56にて映像信号を
局所領域に分割しかつ単板状態に変換し、R信号用背景
色成分差計算部78,G信号用背景色成分差計算部8
0,B信号用背景色成分差計算部82にて各局所領域ご
との映像信号と背景色の差を算出して、切換部B106
にて局所領域を背景色とその他に分離し、その他とされ
た領域の平均化された映像信号を算出して、背景復元部
74と欠落色復元部B108にて文字画像を復元する電
子スチルカメラシステムである。
A preferred application example of the electronic still camera system having this configuration is to convert an image signal from the single-chip CCD 18 shown in FIG. 1 into an A / D conversion circuit 20, a color separation circuit 22, process circuits 24, 26, 28, and a matrix circuit. At 30, the missing color signal is restored and stored, and only when the video signal is a character image is transferred to the character image restoring unit 42 shown in FIG. Estimating the background color by averaging the video signal within a predetermined luminance range from the entire signal, dividing the video signal into local regions by the local region extracting unit 56 and converting it into a single-plate state, Background color component difference calculator 78, G signal background color component difference calculator 8
The 0, B signal background color component difference calculation unit 82 calculates the difference between the video signal and the background color for each local area, and the switching unit B106
An electronic still camera that separates a local area into a background color and others, calculates an averaged video signal of the other areas, and restores a character image by the background restoration unit 74 and the missing color restoration unit B108 System.

【0121】即ち、汎用画像復元手段からの映像信号を
文字画像の場合のみ再度復元処理する。復元処理は、ま
ず所定の輝度範囲内にある映像信号から背景色を求め
る。次に、映像信号を単板状態に戻し、且つ所定サイズ
の局所領域に分割して、各局所領域ごとに映像信号と背
景色の差を求め、各局所領域ごとに背景とその他とに分
離する。そして背景は背景色により、またその他は局所
領域内でその他とされた領域に関して平均化された映像
信号により欠落する色信号が復元される。
That is, the video signal from the general-purpose image restoration means is restored again only in the case of a character image. In the restoration processing, first, a background color is obtained from a video signal within a predetermined luminance range. Next, the video signal is returned to the single-plate state, and divided into local regions of a predetermined size, a difference between the video signal and the background color is obtained for each local region, and the background and others are separated for each local region. . The missing color signal is restored by the background color of the background, and by the video signal averaged for the other area in the local area.

【0122】文字画像復元手段は、推定された背景色と
映像信号の差をとることで背景以外の部分(文字を含
む)を一括して欠落する色信号を復元するため、任意の
種類の色からなる文字画像を高精度に復元できる。ま
た、文字画像復元手段は構成が簡単になり高速化及び低
コスト化が可能になる。さらに、文字画像復元手段は電
子スチルカメラ本体とは独立した形で構成することがで
き、電子スチルカメラ自体を改良する必要がないため汎
用性が高い。
The character image restoring means restores a color signal in which portions other than the background (including characters) are collectively lost by taking the difference between the estimated background color and the video signal. Can be restored with high precision. Further, the character image restoring means has a simple configuration, and can achieve high speed and low cost. Furthermore, the character image restoring means can be configured independently of the electronic still camera body, and has high versatility since there is no need to improve the electronic still camera itself.

【0123】(4) 単板又は二板式固体撮像素子を用
いた電子スチルカメラにおいて、上記固体撮像素子の映
像信号から欠落する色信号を、補間により復元する汎用
画像復元手段と、上記固体撮像素子の映像信号から複数
種類の色からなる文字画像を、上記補間とは異なる文字
画像に適した復元方法により復元する文字画像復元手段
と、上記汎用画像復元手段と上記文字画像復元手段とを
切り換える処理切換手段と、を具備することを特徴とす
る電子スチルカメラ。
(4) In an electronic still camera using a single-chip or two-chip solid-state imaging device, general-purpose image restoration means for restoring, by interpolation, a color signal missing from a video signal of the solid-state imaging device; Character image restoring means for restoring a character image composed of a plurality of colors from the video signal by a restoration method suitable for a character image different from the interpolation, and switching between the general-purpose image restoring means and the character image restoring means An electronic still camera, comprising: switching means.

【0124】この構成に関する実施の形態は、図8乃至
図13に示される第3の実施の形態が対応する。汎用画
像復元手段は、図8に示される汎用画像復元部84が該
当する。文字画像復元手段は、図8の文字画像復元部4
2が該当する。文字画像を復元する方法としては、単板
状態の映像信号から背景色を推定し、単板状態の映像信
号を局所領域に分割して、各局所領域ごとに文字色を推
定し、各局所領域ごとに背景と文字とに分離を行い、背
景色の場合は推定された背景色から、文字の場合は推定
された文字色から欠落する色信号を復元する方法を含
む。背景色を推定する方法としては、単板状態の映像信
号から縮小サイズの欠落する色信号のない映像信号を生
成し、縮小サイズの映像信号に基づき輝度信号を生成
し、輝度信号が所定の範囲内にある領域内の映像信号か
ら背景色を推定する方法を含む。また、文字色を推定す
る方法としては、単板状態の映像信号から局所領域のヒ
ストグラムを生成しヒストグラムのピーク値をとる映像
信号及び背景色から文字色を推定する方法を含む。そし
て、処理切換手段は、図8に示される処理切換部40が
該当する。
An embodiment relating to this configuration corresponds to the third embodiment shown in FIGS. The general-purpose image restoration unit corresponds to the general-purpose image restoration unit 84 shown in FIG. The character image restoring unit is a character image restoring unit 4 shown in FIG.
2 corresponds. As a method of restoring a character image, a background color is estimated from a video signal in a single-plate state, a video signal in a single-plate state is divided into local regions, and a character color is estimated for each local region. The method includes a method of separating the background and the character from each other, and restoring a color signal missing from the estimated background color in the case of the background color and the estimated character color in the case of the character. As a method of estimating the background color, a video signal having no reduced-size missing color signal is generated from a video signal in a single-plate state, a luminance signal is generated based on the reduced-size video signal, and the luminance signal is within a predetermined range. The method includes a method of estimating a background color from a video signal in an area within the image. In addition, the method of estimating the character color includes a method of generating a histogram of a local region from a video signal in a single-plate state and estimating the character color from a video signal having a peak value of the histogram and a background color. The processing switching means corresponds to the processing switching unit 40 shown in FIG.

【0125】この構成の電子スチルカメラの好ましい適
用例は、図8に示す単板CCD18からの映像信号をA
/D変換回路20を経由して処理切換部40に転送し、
処理切換部40にて映像信号が文字画像である場合のみ
図9に示す文字画像復元部42へ転送され、背景色推定
部C110にて縮小サイズの映像信号を生成後、映像信
号全体から所定の輝度範囲内にある映像信号を平均化す
ることで背景色を推定し、局所領域抽出部C114にて
映像信号を局所領域に分割し、R信号用ヒストグラム生
成部86,G信号用ヒストグラム生成部88,B信号用
ヒストグラム生成部90にて各局所領域ごとのヒストグ
ラムを生成して、R信号文字色成分検出部92,G信号
文字色成分検出部94,B信号文字色成分検出部96に
てヒストグラムのピーク値をとる映像信号を検出し、文
字色判定部C112にてピーク値の映像信号と背景色か
ら文字色を推定し、背景復元部74と欠落色復元部C1
18にて文字画像を復元する電子スチルカメラである。
In a preferred application example of the electronic still camera having this configuration, a video signal from the single CCD 18 shown in FIG.
Via the / D conversion circuit 20 to the process switching unit 40,
Only when the image signal is a character image in the processing switching unit 40, the image signal is transferred to the character image restoring unit 42 shown in FIG. The background color is estimated by averaging the video signals in the luminance range, the video signal is divided into local regions by the local region extraction unit C114, and the R signal histogram generation unit 86 and the G signal histogram generation unit 88 , B signal histogram generation unit 90 generates a histogram for each local area, and an R signal character color component detection unit 92, a G signal character color component detection unit 94, and a B signal character color component detection unit 96 generate a histogram. Is detected, and the character color determination unit C112 estimates the character color from the peak value video signal and the background color, and the background restoration unit 74 and the missing color restoration unit C1
An electronic still camera for restoring a character image at 18.

【0126】即ち、単板状態の映像信号を一般画像と文
字画像とに分けて復元処理する。文字画像の復元処理
は、まず背景色推定のために単板状態の映像信号を欠落
信号のない縮小サイズの映像信号に変換後、所定の輝度
範囲内にある縮小サイズの映像信号から背景色を求め
る。次に、単板状態の映像信号を所定サイズの局所領域
に分割して、各局所領域ごとに文字色を求める。文字色
は、各色信号ごとにヒストグラムを生成してそのピーク
値をとる映像信号と背景色とを比較することで決定され
る。背景色と文字色が定まると、各局所領域ごとに背景
部と文字部に分離されて欠落する色信号が復元される。
That is, the video signal in a single-plate state is restored into a general image and a character image separately. In the character image restoration processing, first, the video signal in a single-plate state is converted into a reduced-size video signal without a missing signal for background color estimation, and then the background color is converted from the reduced-size video signal within a predetermined luminance range. Ask. Next, the video signal in the single-plate state is divided into local regions of a predetermined size, and a character color is obtained for each local region. The character color is determined by generating a histogram for each color signal and comparing the video signal having its peak value with the background color. When the background color and the character color are determined, the color signal which is separated into the background portion and the character portion for each local region and is missing is restored.

【0127】文字画像復元手段は、局所領域ごとに映像
信号のヒストグラムを生成しそのピーク値となる映像信
号を用いて文字色を推定するため、任意の種類の色から
なる文字画像を復元できる。また、映像信号のヒストグ
ラムから推定された文字色及び背景色で欠落する色信号
を復元するため、ノイズの影響を極力抑えて高精度に文
字画像を復元できる。
The character image restoring means generates a histogram of the video signal for each local region and estimates the character color using the video signal having the peak value, so that a character image composed of any kind of color can be restored. In addition, since the missing color signal in the character color and the background color estimated from the histogram of the video signal is restored, the character image can be restored with high accuracy while minimizing the influence of noise.

【0128】(5) 上記文字画像復元手段は、上記固
体撮像素子の映像信号又は上記汎用画像復元手段により
復元された映像信号から背景色を推定する背景色推定手
段と、上記固体撮像素子の映像信号又は上記汎用画像復
元手段により復元された映像信号から所定サイズの局所
領域を抽出する抽出手段と、上記背景色推定手段から推
定された背景色に基づき上記局所領域内の映像信号を背
景とその他に分離する分離手段と、上記分離手段により
背景とされた場合には上記背景色により欠落する色信号
を復元し、その他とされた場合には上記局所領域内のそ
の他とされた領域の平均化された映像信号により欠落す
る色信号を復元する欠落色復元手段と、から成ることを
特徴とする(3)に記載の電子スチルカメラシステム又
は(4)に記載の電子スチルカメラ。
(5) The character image restoring means includes: a background color estimating means for estimating a background color from a video signal of the solid-state imaging device or a video signal restored by the general-purpose image restoring device; Extracting means for extracting a local area of a predetermined size from a signal or a video signal restored by the general-purpose image restoring means; and extracting a video signal in the local area as a background or the like based on the background color estimated by the background color estimating means. Separation means for separating the color signal which is missing due to the background color when the background is set by the separation means, and averaging the other areas in the local area when the others are selected An electronic still camera system according to (3) or an electronic still camera according to (4), comprising: a missing color restoring means for restoring a missing color signal by the extracted video signal. Child still camera.

【0129】このような構成によれば、上記(1)にお
いて説明したように、任意の種類の色からなる文字画像
を高精度に復元し、且つ安価な電子スチルカメラシステ
ム及び電子スチルカメラを提供することができる。
According to such a configuration, as described in the above (1), an inexpensive electronic still camera system and an inexpensive electronic still camera system that can restore a character image of an arbitrary type of color with high accuracy. can do.

【0130】(6) 上記文字画像復元手段は、上記固
体撮像素子の映像信号又は上記汎用画像復元手段により
復元された映像信号から背景色を推定する背景色推定手
段と、上記固体撮像素子の映像信号又は上記汎用画像復
元手段により復元された映像信号から所定サイズの局所
領域を抽出する抽出手段と、上記抽出手段から抽出され
た局所領域内の文字色を推定する文字色推定手段と、上
記背景色推定手段から推定された背景色と上記文字色推
定手段から推定された文字色に基づき上記局所領域内の
映像信号を背景と文字とに分離する分離手段と、上記分
離手段により背景とされた場合には上記背景色により欠
落する色信号を復元し、上記分離手段により文字とされ
た場合には上記文字色により欠落する色信号を復元する
欠落色復元手段と、から成ることを特徴とする(3)に
記載の電子スチルカメラシステム又は(4)に記載の電
子スチルカメラ。
(6) The character image restoring means comprises: a background color estimating means for estimating a background color from a video signal of the solid-state imaging device or a video signal restored by the general-purpose image restoring device; Extracting means for extracting a local area of a predetermined size from a signal or a video signal restored by the general-purpose image restoring means; character color estimating means for estimating a character color in the local area extracted from the extracting means; Separating means for separating the video signal in the local area into a background and a character based on the background color estimated by the color estimating means and the character color estimated by the character color estimating means; In the case, a color signal missing by the background color is restored, and a missing color restoring means for restoring a color signal missing by the character color when the character is formed by the separating means, The electronic still camera system according to (3) or the electronic still camera according to (4), comprising:

【0131】このような構成によれば、上記(2)にお
いて説明したように、任意の種類の色からなる文字画像
をノイズの影響を排除し高精度に復元する電子スチルカ
メラシステム及び電子スチルカメラを提供することがで
きる。また、限定された種類の色からなる文字画像を高
速に復元する電子スチルカメラシステム及び電子スチル
カメラを提供することができる。
According to such a configuration, as described in (2) above, an electronic still camera system and an electronic still camera for restoring a character image composed of an arbitrary type of color with high accuracy while eliminating the influence of noise. Can be provided. Further, it is possible to provide an electronic still camera system and an electronic still camera that can quickly restore a character image composed of limited types of colors.

【0132】(7) 上記背景色推定手段は、上記固体
撮像素子の映像信号から縮小サイズの欠落する色信号の
ない映像信号を生成し、上記縮小サイズの欠落する色信
号のない映像信号から輝度信号を生成し、上記輝度信号
の範囲に応じて上記縮小サイズの欠落する色信号のない
映像信号から背景色を推定することを特徴とする(1)
又は(2)に記載の文字画像復元装置又は、(5)又は
(6)に記載の電子スチルカメラシステム及び電子スチ
ルカメラ。
(7) The background color estimating means generates, from the video signal of the solid-state imaging device, a video signal without a color signal having a reduced size and no luminance signal, and generates a luminance signal from the video signal without a color signal having a reduced size. (1) generating a signal and estimating a background color from a video signal having no color signal having the reduced size and missing according to the range of the luminance signal (1).
Or the character image restoration device according to (2), or the electronic still camera system and the electronic still camera according to (5) or (6).

【0133】即ち、このような構成によれば、任意の種
類の色からなる文字画像を高精度に復元し、且つ安価な
文字画像復元装置又は電子スチルカメラシステム及び電
子スチルカメラを提供することができる。また、任意の
種類の色からなる文字画像をノイズの影響を排除し高精
度に復元する文字画像復元装置又は電子スチルカメラシ
ステム及び電子スチルカメラを提供することができる。
さらに、限定された種類の色からなる文字画像を高速に
復元する文字画像復元装置又は電子スチルカメラシステ
ム及び電子スチルカメラを提供することができる。
That is, according to such a configuration, it is possible to provide a character image restoring device, an electronic still camera system, and an electronic still camera which are capable of restoring a character image of any kind of color with high accuracy and being inexpensive. it can. In addition, it is possible to provide a character image restoring device, an electronic still camera system, and an electronic still camera that restore a character image composed of an arbitrary type of color with high accuracy while eliminating the influence of noise.
Further, it is possible to provide a character image restoring device, an electronic still camera system, and an electronic still camera that restore a character image composed of limited types of colors at high speed.

【0134】(8) 上記背景色推定手段は、上記汎用
画像復元手段の欠落する色信号が復元された映像信号か
ら輝度信号を生成し、上記輝度信号の範囲に応じて上記
欠落する色信号が復元された映像信号から背景色を推定
することを特徴とする(1)又は(2)に記載の文字画
像復元装置又は、(5)又は(6)に記載の電子スチル
カメラシステム及び電子スチルカメラ。
(8) The background color estimating means generates a luminance signal from the video signal in which the missing color signal of the general-purpose image restoring means has been restored, and the missing color signal is generated in accordance with the range of the luminance signal. The character image restoration device according to (1) or (2), or the electronic still camera system and the electronic still camera according to (5) or (6), wherein the background color is estimated from the restored video signal. .

【0135】即ち、このような構成によれば、任意の種
類の色からなる文字画像を高精度に復元し、且つ安価な
文字画像復元装置又は電子スチルカメラシステム及び電
子スチルカメラを提供することができる。また、任意の
種類の色からなる文字画像をノイズの影響を排除し高精
度に復元する文字画像復元装置又は電子スチルカメラシ
ステム及び電子スチルカメラを提供することができる。
さらに、限定された種類の色からなる文字画像を高速に
復元する文字画像復元装置又は電子スチルカメラシステ
ム及び電子スチルカメラを提供することができる。
That is, according to such a configuration, it is possible to provide a character image restoring device, an electronic still camera system, and an electronic still camera which can restore a character image of an arbitrary type of color with high accuracy and are inexpensive. it can. In addition, it is possible to provide a character image restoring device, an electronic still camera system, and an electronic still camera that restore a character image composed of an arbitrary type of color with high accuracy while eliminating the influence of noise.
Further, it is possible to provide a character image restoring device, an electronic still camera system, and an electronic still camera that restore a character image composed of limited types of colors at high speed.

【0136】(9) 上記文字色推定手段は、上記固体
撮像素子の映像信号又は上記汎用画像復元手段により復
元された映像信号からヒストグラムを生成し上記ヒスト
グラムのピーク値をとる映像信号及び上記背景色推定手
段から推定された背景色から文字色を推定することを特
徴とする(1)に記載の文字画像復元装置又は(6)に
記載の電子スチルカメラシステム及び電子スチルカメ
ラ。
(9) The character color estimating means generates a histogram from the video signal of the solid-state image pickup device or the video signal restored by the general-purpose image restoring means, and obtains a video signal having a peak value of the histogram and the background color. The character image restoration device according to (1) or the electronic still camera system and the electronic still camera according to (6), wherein the character color is estimated from the background color estimated by the estimation unit.

【0137】即ち、このような構成によれば、任意の種
類の色からなる文字画像をノイズの影響を排除し高精度
に復元する文字画像復元装置又は電子スチルカメラシス
テム及び電子スチルカメラを提供することができる。
That is, according to such a configuration, there is provided a character image restoring apparatus, an electronic still camera system, and an electronic still camera that restore a character image of an arbitrary type of color with high accuracy while eliminating the influence of noise. be able to.

【0138】(10) 上記文字色推定手段は、上記固
体撮像素子の映像信号又は上記汎用画像復元手段により
復元された映像信号から最大・最小値を算出して上記最
大・最小値の分布範囲及び上記背景色推定手段から推定
された背景色及び予め登録された文字色テーブルに基づ
き文字色を推定することを特徴とする(1)に記載の文
字画像復元装置又は(6)に記載の電子スチルカメラシ
ステム及び電子スチルカメラ。
(10) The character color estimating means calculates the maximum / minimum value from the video signal of the solid-state imaging device or the video signal restored by the general-purpose image restoring means, and calculates the distribution range of the maximum / minimum value. The character image restoration device according to (1) or the electronic still image according to (6), wherein the character color is estimated based on the background color estimated by the background color estimation unit and a character color table registered in advance. Camera system and electronic still camera.

【0139】即ち、このような構成によれば、限定され
た種類の色からなる文字画像を高速に復元する文字画像
復元装置又は電子スチルカメラシステム及び電子スチル
カメラを提供することができる。
In other words, according to such a configuration, it is possible to provide a character image restoring device, an electronic still camera system, and an electronic still camera that restore a character image composed of limited types of colors at high speed.

【0140】[0140]

【発明の効果】以上詳述したように、本発明によれば、
単板又は二板式固体撮像素子を用いた電子スチルカメラ
及びそれを一構成要素とする電子スチルカメラシステム
において、複数種類の色からなる文字画像を高精細に可
読性に優れた画像に復元可能な文字画像復元装置を提供
し、以ってそのような文字画像復元装置を備えることに
より、複数種類の色からなる文字画像を高精細に可読性
に優れた画像に復元可能な電子スチルカメラ及び電子ス
チルカメラシステムを提供することができる。
As described in detail above, according to the present invention,
In an electronic still camera using a single-plate or two-plate solid-state imaging device and an electronic still camera system including the same as a component, a character capable of restoring a character image composed of a plurality of colors to a high-definition image with excellent readability. An electronic still camera and an electronic still camera capable of restoring a character image composed of a plurality of types of colors into a highly readable image by providing an image restoring device and thus including such a character image restoring device A system can be provided.

【図面の簡単な説明】[Brief description of the drawings]

【図1】本発明の第1の実施の形態にかかる電子スチル
カメラシステムのブロック構成図である。
FIG. 1 is a block configuration diagram of an electronic still camera system according to a first embodiment of the present invention.

【図2】(A)は第1の実施の形態における単板CCD
のフィルタ配置図であり、(B)は第2の実施の形態に
おける単板CCDのフィルタ配置図である。
FIG. 2A shows a single-chip CCD according to the first embodiment;
FIG. 7B is a filter arrangement diagram of a single-chip CCD according to the second embodiment.

【図3】第1の実施の形態における文字画像復元部のブ
ロック構成図である。
FIG. 3 is a block diagram of a character image restoring unit according to the first embodiment.

【図4】判定用テーブルの内容を示す図である。FIG. 4 is a diagram showing the contents of a determination table.

【図5】第1の実施の形態における背景色推定動作のフ
ローチャートである。
FIG. 5 is a flowchart of a background color estimation operation according to the first embodiment.

【図6】本発明の第2の実施の形態における文字画像復
元部のブロック構成図である。
FIG. 6 is a block diagram of a character image restoring unit according to a second embodiment of the present invention.

【図7】第2の実施の形態における非背景色決定動作の
フローチャートである。
FIG. 7 is a flowchart of a non-background color determination operation according to the second embodiment.

【図8】本発明の第3の実施の形態にかかる電子スチル
カメラのブロック構成図である。
FIG. 8 is a block diagram of an electronic still camera according to a third embodiment of the present invention.

【図9】第3の実施の形態における文字画像復元部のブ
ロック構成図である。
FIG. 9 is a block diagram of a character image restoring unit according to a third embodiment.

【図10】(A)は局所領域内における色信号間の相関
関係を説明するための図であり、(B)は従来の単板式
固体撮像素子のフィルタ配置の説明図である。
FIG. 10A is a diagram for explaining a correlation between color signals in a local region, and FIG. 10B is an explanatory diagram of a filter arrangement of a conventional single-chip solid-state imaging device.

【図11】第3の実施の形態における文字色推定動作の
フローチャートである。
FIG. 11 is a flowchart of a character color estimation operation according to the third embodiment.

【図12】ヒストグラムのピーク値に対応する画素値の
状態を示す図である。
FIG. 12 is a diagram illustrating a state of a pixel value corresponding to a peak value of a histogram.

【図13】第3の実施の形態における背景色推定動作の
フローチャートである。
FIG. 13 is a flowchart of a background color estimation operation according to the third embodiment.

【符号の説明】[Explanation of symbols]

10 電子スチルカメラ 12 アダプタ 18 CCD 20 A/D変換回路 22 色分離回路 24,26,28 プロセス回路 30 マトリックス回路 32,34,36 R信号用,G信号用,B信号用バッ
ファ 38 出力部 40 処理切換部 42 文字画像復元部 44 プリンタ出力部 46 クロックジェネレータ 48 CCD駆動回路 50 制御部 52 背景色推定部 56 局所領域抽出部 58,60,62 R信号用,G信号用,B信号用ブロ
ックバッファ 64,66,68 R信号用,G信号用,B信号用最大
最小算出部 70 判定用テーブル 74 背景復元部 78,80,82 R信号用,G信号用,B信号用背景
色成分差計算部 84 汎用画像復元部 86,88,90 R信号用,G信号用,B信号用ヒス
トグラム生成部 92,94,96 R信号,G信号,B信号文字色成分
検出部 100 文字色判定部A 102 切換部A 104 欠落色復元部A 106 切換部B 108 欠落色復元部B 110 背景色推定部C 112 文字色判定部C 114 局所領域抽出部C 116 切換部C 118 欠落色復元部C
Reference Signs List 10 electronic still camera 12 adapter 18 CCD 20 A / D conversion circuit 22 color separation circuit 24, 26, 28 process circuit 30 matrix circuit 32, 34, 36 buffer for R signal, G signal, B signal 38 output section 40 processing Switching unit 42 Character image restoration unit 44 Printer output unit 46 Clock generator 48 CCD drive circuit 50 Control unit 52 Background color estimation unit 56 Local area extraction unit 58, 60, 62 Block buffer for R signal, G signal, B signal 64 , 66, 68 R signal, G signal, B signal maximum / minimum calculation section 70 Judgment table 74 Background restoration section 78, 80, 82 R signal, G signal, B signal background color component difference calculation section 84 General-purpose image restoration unit 86,88,90 R signal, G signal, B signal histogram generation unit 92,94,96 R signal , G signal, B signal character color component detecting unit 100 character color determining unit A 102 switching unit A 104 missing color restoring unit A 106 switching unit B 108 missing color restoring unit B 110 background color estimating unit C 112 character color determining unit C 114 Local area extraction unit C 116 Switching unit C 118 Missing color restoration unit C

Claims (4)

【特許請求の範囲】[Claims] 【請求項1】 単板又は二板式固体撮像素子の映像信号
から複数種類の色からなる文字画像を復元する文字画像
復元装置であって、 上記固体撮像素子の映像信号から背景色を推定する背景
色推定手段と、 上記固体撮像素子の映像信号から所定サイズの局所領域
を抽出する抽出手段と、 上記抽出手段から抽出された局所領域内の文字色を推定
する文字色推定手段と、 上記背景色推定手段から推定された背景色と上記文字色
推定手段から推定された文字色に基づき上記局所領域内
の映像信号を背景と文字とに分離する分離手段と、 上記分離手段により背景とされた場合には上記背景色に
より欠落する色信号を復元し、上記分離手段により文字
とされた場合には上記文字色により欠落する色信号を復
元する欠落色復元手段と、 を具備することを特徴とする文字画像復元装置。
1. A character image restoration apparatus for restoring a character image composed of a plurality of colors from a video signal of a single-chip or two-chip solid-state imaging device, wherein a background color is estimated from a video signal of the solid-state imaging device. Color estimating means, extracting means for extracting a local area of a predetermined size from the video signal of the solid-state imaging device, character color estimating means for estimating the character color in the local area extracted from the extracting means, and the background color Separating means for separating the video signal in the local area into background and characters based on the background color estimated by the estimating means and the character color estimated by the character color estimating means; And a missing color restoring means for restoring a color signal missing due to the background color, and restoring a color signal missing due to the character color when the character is formed by the separating means. Character image restoration device.
【請求項2】 単板又は二板式固体撮像素子の映像信号
から複数種類の色からなる文字画像を復元する文字画像
復元装置であって、 上記固体撮像素子の映像信号から背景色を推定する背景
色推定手段と、 上記固体撮像素子の映像信号から所定サイズの局所領域
を抽出する抽出手段と、 上記背景色推定手段から推定された背景色に基づき上記
局所領域内の映像信号を背景とその他に分離する分離手
段と、 上記分離手段により背景とされた場合には上記背景色に
より欠落する色信号を復元し、その他とされた場合には
上記局所領域内のその他とされた領域の平均化された映
像信号により欠落する色信号を復元する欠落色復元手段
と、 を具備することを特徴とする文字画像復元装置。
2. A character image restoration device for restoring a character image composed of a plurality of colors from a video signal of a single-chip or two-chip solid-state imaging device, wherein a background color is estimated from a video signal of the solid-state imaging device. Color estimating means, extracting means for extracting a local area of a predetermined size from the video signal of the solid-state imaging device, video signal in the local area based on the background color estimated from the background color estimating means, Separating means for separating, when the background is set by the separating means, a color signal which is missing due to the background color is restored, and when it is set as other, the other area within the local area is averaged. And a missing color restoring means for restoring a missing color signal by the video signal.
【請求項3】 単板又は二板式固体撮像素子を用いた電
子スチルカメラ及び後処理装置からなる電子スチルカメ
ラシステムにおいて、 上記固体撮像素子の映像信号から欠落する色信号を、補
間により復元する汎用画像復元手段と、 上記汎用画像復元手段により復元された映像信号から複
数種類の色からなる文字画像を、上記補間とは異なる文
字画像に適した復元方法により復元する文字画像復元手
段と、 上記汎用画像復元手段により復元された映像信号を上記
文字画像復元手段に伝送する伝送手段と、 を具備し、 少なくとも上記文字画像復元手段を上記後処理装置内に
構成したことを特徴とする電子スチルカメラシステム。
3. An electronic still camera system comprising an electronic still camera and a post-processing device using a single-chip or two-chip solid-state imaging device, wherein a color signal missing from a video signal of the solid-state imaging device is restored by interpolation. Image restoration means; and a character image restoration means for restoring a character image composed of a plurality of colors from a video signal restored by the general-purpose image restoration means by a restoration method suitable for a character image different from the interpolation; Transmission means for transmitting a video signal restored by the image restoration means to the character image restoration means, wherein at least the character image restoration means is configured in the post-processing device. .
【請求項4】 単板又は二板式固体撮像素子を用いた電
子スチルカメラにおいて、 上記固体撮像素子の映像信号から欠落する色信号を、補
間により復元する汎用画像復元手段と、 上記固体撮像素子の映像信号から複数種類の色からなる
文字画像を、上記補間とは異なる文字画像に適した復元
方法により復元する文字画像復元手段と、 上記汎用画像復元手段と上記文字画像復元手段とを切り
換える処理切換手段と、 を具備することを特徴とする電子スチルカメラ。
4. An electronic still camera using a single-chip or two-chip solid-state imaging device, wherein: a general-purpose image restoration means for restoring color signals missing from a video signal of the solid-state imaging device by interpolation; A character image restoring means for restoring a character image composed of a plurality of colors from a video signal by a restoration method suitable for a character image different from the interpolation, and a process switching for switching between the general-purpose image restoring means and the character image restoring means Means, and an electronic still camera.
JP36669297A 1997-12-26 1997-12-26 Image restoration device Expired - Fee Related JP3974988B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP36669297A JP3974988B2 (en) 1997-12-26 1997-12-26 Image restoration device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP36669297A JP3974988B2 (en) 1997-12-26 1997-12-26 Image restoration device

Publications (2)

Publication Number Publication Date
JPH11196429A true JPH11196429A (en) 1999-07-21
JP3974988B2 JP3974988B2 (en) 2007-09-12

Family

ID=18487420

Family Applications (1)

Application Number Title Priority Date Filing Date
JP36669297A Expired - Fee Related JP3974988B2 (en) 1997-12-26 1997-12-26 Image restoration device

Country Status (1)

Country Link
JP (1) JP3974988B2 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2001084851A1 (en) * 2000-04-12 2001-11-08 Hitachi, Ltd. Image signal processing method, image signal processing device, and image signal processing system
US6958772B1 (en) 1999-01-20 2005-10-25 Canon Kabushiki Kaisha Image sensing apparatus and image processing method therefor

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6958772B1 (en) 1999-01-20 2005-10-25 Canon Kabushiki Kaisha Image sensing apparatus and image processing method therefor
US7542076B2 (en) 1999-01-20 2009-06-02 Canon Kabushiki Kaisha Image sensing apparatus having a color interpolation unit and image processing method therefor
US7929026B2 (en) 1999-01-20 2011-04-19 Canon Kabushiki Kaisha Image sensing apparatus and image processing method thereof using color conversion and pseudo color removing
WO2001084851A1 (en) * 2000-04-12 2001-11-08 Hitachi, Ltd. Image signal processing method, image signal processing device, and image signal processing system
US7369284B1 (en) 2000-04-12 2008-05-06 Ricoh Printing Systems Ltd. Image signal processing method, image signal processing device, and image signal processing system

Also Published As

Publication number Publication date
JP3974988B2 (en) 2007-09-12

Similar Documents

Publication Publication Date Title
JP4351825B2 (en) How to collect color digital images
US7376288B2 (en) Edge adaptive demosaic system and method
JP2931520B2 (en) Color separation circuit for single-chip color video camera
JP3923335B2 (en) Data transfer system, data transfer method, and digital camera
JP4054184B2 (en) Defective pixel correction device
JP4668185B2 (en) Image processing method
KR100765751B1 (en) Method and apparatus for interpolation of interlaced CMYG color format
JP5123756B2 (en) Imaging system, image processing method, and image processing program
US7333678B1 (en) Edge adaptive demosaic system and method
US20060050956A1 (en) Signal processing apparatus, signal processing method, and signal processing program
JP2004088149A (en) Imaging system and image processing program
KR20070078463A (en) Apparatus and method for reducing noise from image sensor
EP1394742A1 (en) Method for filtering the noise of a digital image sequence
WO2005055590A1 (en) Image interpolation apparatus and image interpolation method
US20100231758A1 (en) Image processing apparatus, image processing method and computer program
US7489822B2 (en) Image processing apparatus and method for detecting a direction of an edge in the vicinity of a pixel of interest and generating all color signals for each pixel by interpolation using color signals of a pixel of interest and its neighbor pixels, and a recording medium having a program recorded thereon for causing the apparatus to perform the method
JP5529424B2 (en) Image processing apparatus, image processing method, and computer program
US20030179299A1 (en) Edge emphasizing circuit
JP3730063B2 (en) Color component generation apparatus, color component generation method, and multicolor image pickup apparatus using the same
JPH11196429A (en) Character picture restoration device, electronic still camera system and electronic still camera
JPH07123421A (en) Image pickup device
JP4245373B2 (en) Pixel signal processing circuit
JP2003134523A (en) Image pickup apparatus and method
JP2000078594A (en) Dynamic range widening process method for single-plate type color camera
JP4298219B2 (en) Imaging apparatus and imaging method

Legal Events

Date Code Title Description
A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20041227

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20041227

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20070327

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20070522

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20070618

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

Free format text: PAYMENT UNTIL: 20100622

Year of fee payment: 3

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

Free format text: PAYMENT UNTIL: 20110622

Year of fee payment: 4

LAPS Cancellation because of no payment of annual fees