JP2004056301A - Image processing apparatus - Google Patents

Image processing apparatus Download PDF

Info

Publication number
JP2004056301A
JP2004056301A JP2002208656A JP2002208656A JP2004056301A JP 2004056301 A JP2004056301 A JP 2004056301A JP 2002208656 A JP2002208656 A JP 2002208656A JP 2002208656 A JP2002208656 A JP 2002208656A JP 2004056301 A JP2004056301 A JP 2004056301A
Authority
JP
Japan
Prior art keywords
character
cpu
image
image signal
input
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
JP2002208656A
Other languages
Japanese (ja)
Other versions
JP3995547B2 (en
Inventor
Daisuke Amano
天野 大輔
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.)
Sanyo Electric Co Ltd
Original Assignee
Sanyo Electric 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 Sanyo Electric Co Ltd filed Critical Sanyo Electric Co Ltd
Priority to JP2002208656A priority Critical patent/JP3995547B2/en
Publication of JP2004056301A publication Critical patent/JP2004056301A/en
Application granted granted Critical
Publication of JP3995547B2 publication Critical patent/JP3995547B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To separately edit characters overwritten on an image, and to reproduce the overwritten characters even under an environment in which specific font data are not prepared. <P>SOLUTION: The image data of a picked-up object are recorded in a memory card in a state of being compressed. Characters can be arbitrarily inputted in a main image reproduced by the image data by operating a mode key 48, a setting key 50 and a cross key 52. These characters are overwritten on the main image, and a portion including the characters and a background are recorded as image data into the memory card. Meanwhile, the data of the character portion are embedded into an option marker of the main image data different from the main image data. That means, the main image data and the data of the character portion are differently recorded with each other. <P>COPYRIGHT: (C)2004,JPO

Description

【0001】
【発明の属する技術分野】
この発明は、画像処理装置に関し、特にたとえばディジタルカメラに適用され、画像信号を記録媒体に記録する手段を備える、画像処理装置に関する。
【0002】
【従来技術】
ディジタルカメラにおいて、撮影した画像に任意の文字を入力する機能を備えたものがある。この機能を実現する方法として、たとえば画像データ上に文字データを直接上書きする方法があるが、この方法では、一度上書きされた文字データを後で削除したり或いは変更したりすることができない。そこで、従来、別の方法として、画面に表示された画像上にOSD(On Screen Display)技術によって文字を重ね合わせて表示する方法がある。この方法によれば、画像データおよび文字データの各々を別個に取り扱うことができるので、当該文字データを後で任意に編集することができる。
【0003】
【発明が解決しようとする課題】
ところで、最近のディジタルカメラの多くは、撮影した画像をパーソナルコンピュータに転送する機能をも備えている。ここで、上述のOSD技術を利用した従来技術によれば、ディジタルカメラ側で入力された文字をパーソナルコンピュータ側で再現するには、ディジタルカメラ側で使用されているのと同じフォントデータがパーソナルコンピュータ側においても用意されている必要がある。換言すれば、ディジタルカメラ側で文字の入力に使用されたとの同じフォントデータがパーソナルコンピュータ側においても用意されていなければ、パーソナルコンピュータ側で当該文字を再現することができない、という問題がある。
【0004】
それゆえに、この発明の主たる目的は、画像に入力された文字を編集することができ、しかも特定のフォントデータが用意されていない環境下でも当該文字を再現することができる、画像処理装置を提供することである。
【0005】
【課題を解決するための手段】
この発明は、第1画像信号を記録媒体に記録する第1記録手段、第1画像信号の少なくとも一部をメモリに書き込む第1書き込み手段、メモリに書き込まれた第1画像信号に第2画像信号を上書きして合成画像信号を生成する第1上書き手段、および第1上書き手段によって生成された合成画像信号を記録媒体に記録する第2記録手段を備える、画像処理装置である。
【0006】
【作用】
この発明では、第1記録手段が、第1画像信号を記録媒体に記録する。そして、第1書き込み手段が、第1画像信号の少なくとも一部をメモリに書き込み、第1上書き手段が、当該メモリに書き込まれた第1画像信号に第2画像信号を上書きして合成画像信号を生成する。この合成画像信号は、第2記録手段によって記録媒体に記録される。つまり、記録媒体には、第1画像信号と、当該第1画像信号の少なくとも一部に第2画像信号が上書きされた合成画像信号とが、別個に記録される。
【0007】
なお、第1記録手段は、第1画像信号を所定方式で圧縮する第1圧縮手段を含み、第2記録手段は、合成画像信号を当該所定方式で圧縮する第2圧縮手段を含むものとしてもよい。
【0008】
この場合、第1記録手段は、第1圧縮手段によって生成された圧縮第1画像信号を含む画像ファイルを記録媒体内に作成する作成手段をさらに含み、第2記録手段は、第2圧縮手段によって生成された圧縮合成画像信号を画像ファイルに埋め込む埋め込み手段をさらに含むものとすることができる。
【0009】
さらに、第2画像信号は、第1数のテキスト画像を含み、第2圧縮手段は、当該第1数よりも小さい第2数のテキスト画像毎に合成画像信号を圧縮するものとしてもよい。
【0010】
この発明のある実施例では、第1画像信号を記録媒体から再生する第1再生手段、第1再生手段によって再生された第1画像信号をメモリに書き込む第2書き込み手段、合成画像信号を記録媒体から再生する第2再生手段、および第2再生手段によって再生された合成画像信号をメモリに書き込まれた第1画像信号に上書きする第2上書き手段をさらに備える。この構成によれば、第1画像信号に合成画像信号が上書きされた信号に基づく画像が、再生される。
【0011】
【発明の効果】
この発明によれば、第1画像信号と、第1画像信号の少なくとも一部に第2画像信号が上書きされた合成画像信号とが、記録媒体に個別に記録されるので、当該第2画像信号を含む合成画像信号を第1画像信号とは別個に編集することができる。しかも、第2画像信号がテキスト画像を表す信号を含む場合には、特定のフォントデータが用意されていない環境下でも当該第2画像信号によって表されるテキスト画像、つまり文字を再現することができる。
【0012】
この発明の上述の目的,その他の目的,特徴および利点は、図面を参照して行う以下の実施例の詳細な説明から一層明らかとなろう。
【0013】
【実施例】
図1を参照して、この実施例のディジタルカメラ10は、フォーカスレンズ12を介して被写体の光学像が入射されるCCD(Charge Coupled Device)型のイメージセンサ14を有している。
【0014】
メインスイッチ16によって被写体を撮影するための撮影モードが選択されると、CPU18は、TG(Timing Generator)20に対してプリ露光および間引き読み出しの繰り返しを命令する。TG20は、この命令に対応するタイミング信号をイメージセンサ14に供給し、イメージセンサ14は、供給されたタイミング信号に従って、被写体の光学像を露光するとともに、当該露光によって蓄積された電荷の一部を次の1フレーム期間に出力する。つまり、撮影モードが選択された当初は、低解像度の生画像信号が1フレーム期間毎にイメージセンサ14から出力される。
【0015】
イメージセンサ14から出力された各フレームの生画像信号は、CDS(Correlated Double Sampling)/AGC(Automatic Gain Control)回路22に入力され、ここで相関二重サンプリング処理およびゲイン調整処理を施された後、A/D変換回路24に入力される。A/D変換回路24は、入力された生画像信号をディジタル信号である生画像データに変換し、変換後の生画像データを信号処理回路26に入力する。
【0016】
信号処理回路26は、入力された生画像データに色分離,白バランス調整,ガンマ補正,YUV変換などの一連の処理を施す。この信号処理回路26による処理後の画像データ(YUVデータ)は、メモリ制御回路28によって、一旦、メインメモリとしてのSDRAM(Synchronous Dynamic RAM)30の画像データ記憶領域30aに記憶された後、バッファメモリ32に転送される。
【0017】
バッファメモリ32に転送された画像データは、混合回路34に入力され、ここで、後述するOSDメモリ36から入力されるOSDデータと混合される。ただし、この時点では、OSDメモリ36からOSDデータが入力されないので、混合回路34からは、バッファメモリ32から入力される画像データがそのまま出力される。混合回路34から出力された画像データは、ビデオエンコーダ38に入力され、ここでNTSC方式の複合画像信号に変換される。そして、変換後の複合画像信号は、液晶モニタ40に入力され、これによって液晶モニタ40に被写体のリアルタイム動画像、いわゆるスルー画像が表示される。
【0018】
ここで、シャッタボタン42が押下されると、CPU18は、記録動作に入る。すなわち、CPU18は、TG20に対して1フレーム分の本露光および全画素読み出しを命令する。TG20は、CPU18からの命令に対応するタイミング信号をイメージセンサ14に供給する。これによって、イメージセンサ16による本露光が行われ、この本露光によって蓄積された全電荷、つまり1フレーム分の高解像度生画像信号がイメージセンサ14から出力される。イメージセンサ14から出力された生画像信号は、CDS/AGC回路22による処理を経て、A/D変換回路24に入力され、ここで生画像データに変換される。そして、この生画像データは、信号処理回路26に入力され、ここで上述した一連の処理を施された後、メモリ制御回路28によって、SDRAM30内の画像データ記憶領域30aに記憶される。
【0019】
メモリ制御回路28は、CPU18による制御に従って、画像データ記憶領域30aに記憶された高解像度の画像データを読み出し、読み出した画像データを圧縮伸長回路44に入力する。圧縮伸長回路44には、CPU18から圧縮命令が与えられており、圧縮伸長回路44は、この圧縮命令に応答して、入力された画像データにJPEG(Joint Photographic Expert Group)方式に従う圧縮処理を施す。この圧縮処理によって生成されたJPEG圧縮画像ファイルは、メモリ制御回路28によって、一旦、SDRAM30内の圧縮画像ファイル記憶領域30bに記憶された後、メモリインタフェース回路46を介してメモリカード48に入力され、記録される。
【0020】
このようにしてメモリカード48に記録された画像(JPEG圧縮画像ファイル)は、再生モードによって再生することができる。すなわち、メインスイッチ16によって再生モードが選択されると、CPU18は、メモリ制御回路28に対してJPEG圧縮画像ファイルの読み出しを命令する。メモリ制御回路28は、この命令に応答して、メモリインタフェース回路46を介してメモリカード48からJPEG圧縮画像ファイルを読み出し、読み出したJPEG圧縮画像ファイルを、一旦、SDRAM30内の圧縮画像ファイル記憶領域30bに一時記憶する。
【0021】
そして、メモリ制御回路28は、圧縮画像ファイル記憶領域30bに記憶されたJPEG圧縮画像ファイルの記憶を、圧縮伸長回路44に入力する。圧縮伸長回路44には、CPU18から伸長命令が与えられており、圧縮伸長回路44は、この伸長命令に応答して、入力されたJPEG圧縮画像ファイルを伸長し、元の画像データを再現する。再現された画像データは、メモリ制御回路28によって、一旦、SDRAM30の画像データ記憶領域30aに記憶された後、バッファメモリ32に転送される。
【0022】
バッファメモリ32に転送された画像データは、混合回路34に入力される。この時点でも、混合回路34にはOSDメモリ36からOSDデータが入力されていない状態にあるので、混合回路34からは、バッファメモリ32から入力された画像データがそのまま出力される。混合回路34から出力された画像データは、ビデオエンコーダ36に入力され、ここで複合画像信号に変換される。そして、変換後の複合画像信号は、液晶モニタ40に入力され、これによって、液晶モニタ40に高解像度な再生画像が写し出される。
【0023】
なお、再生モードにおいては、希望の再生画像を1枚ずつ表示させることもできるし、複数枚の再生画像をマルチ表示させることもできる。このようにいずれの態様でいずれの再生画像を表示させるかは、後述するモードキー50,セットキー52および十字キー54の操作によって任意に選択できるが、これについての詳しい説明は省略する。
【0024】
図2を参照して、モードキー50およびセットキー52は、上述のメインスイッチ16とともに、ディジタルカメラ10の背面の右側上方の位置に横並びの状態で配置されている。そして、これらモードキー50,セットキー52およびメインスイッチ16の下方に、上下左右の4つの接点を有する十字キー54が配置されている。なお、シャッタスイッチ42は、ディジタルカメラ10の上面のメインスイッチ16に近い位置に設けられている。そして、液晶モニタ40は、ディジタルカメラ10の背面の左寄りの位置に設けられている。
【0025】
ところで、この実施例のディジタルカメラ10は、撮影した画像に任意の文字(テキスト)を入力するという文字入力機能を備えている。この文字入力機能によって入力可能な文字は、周知のASCII(American Standard Code for Information Interchange)コードに従う文字であり、かかる文字を表現するための文字データがEEPROM(Electrically Erasable ROM)56に記憶されている。なお、この文字入力機能によって文字を入力するには、当該文字の入力を希望する画像が再生されていることが前提となる。
【0026】
すなわち、今、メインスイッチ16によって再生モードが選択されており、文字の入力を希望する画像が再生されているとする。この状態で、モードキー50,セットキー52および十字キー54の操作によって文字入力モードが選択されると、液晶モニタ40に、図3(a)に示すようなカーソル設定画面がOSD(オーバレイ)表示される。具体的には、CPU18が、当該カーソル設定画面を表示させるためのOSDデータを生成し、このOSDデータをOSDメモリ36に入力する。OSDメモリ36に入力されたOSDデータは、混合回路34に入力され、ここでバッファメモリ32から当該混合回路34に入力される画像データと混合された後、ビデオエンコーダ38に入力される。ビデオエンコーダ36は、入力されたデータを複合画像信号に変換し、変換した複合画像信号を液晶モニタ40に入力する。これによって、液晶モニタ40に、画像データに従う再生画像、言わば被写体の本画像と、OSDデータに従うカーソル設定画面とが、重なって表示される。
【0027】
図3(a)に示すように、カーソル設定画面には、矩形のカーソル60が表示される。このカーソル60は、これから文字を入力しようとする場所を指示するための指標であり、十字キー54の操作に応じて上下左右の各方向に移動する。具体的には、CPU18が、十字キー54の操作に応じてカーソル60が移動するようなOSDデータを生成する。
【0028】
このカーソル設定画面において、カーソル60が或る位置に置かれた状態でセットキー52が押下されると、液晶モニタ40の画面表示が、図3(b)に示すような文字入力画面に遷移する。すなわち、カーソル60の他に、ASCIIコードに従う複数の文字(符号を含む)62,62,・・・、およびこれらの文字62,62,・・・のいずれか1つを囲む矩形のポインタ64が、OSD表示される。なお、各文字62,62,・・・は、上述したEEPROM56に記憶されている文字データに基づいて表示される。
【0029】
この文字入力画面におけるポインタ64は、一覧表示された複数の文字62,62,・・・の中から、これから本画像上に入力しようとする文字を選択するための指標であり、十字キー54の操作に応じて上下左右の各方向に移動する。ここで、ポインタ64によって“H”という文字62が選択され(囲まれ)、この状態で、セットキー52が押下されたとする。すると、液晶モニタ40の画面表示は、図3(c)に示すような状態に遷移する。
【0030】
すなわち、図3(b)においてセットキー52が押下される前にカーソル60が存在していた場所に、“H”という文字66が表示されるとともに、この文字66の幅寸法分だけカーソル60が右側に移動する。ここで、“H”という文字66は、OSD表示されるのではなく、本画像上に上書きされる。具体的には、CPU18が、SDRAM30内の画像データ記憶領域30aに展開された画像データに、文字66に対応する文字データを上書きする。この文字データが上書きされた画像データは、メモリ制御回路28によって読み出され、バッファメモリ32に転送される。これによって、当該文字66が上書きされた本画像が、液晶モニタ40に表示される。
【0031】
なお、文字66は、上述のEEPROM56に記憶されている文字データに基づいて、図4(a)に示すように、横32画素×縦32画素の計1024個の画素で表現される。この文字66自体の色は、白色とされており(図では便宜上黒色で表している)、当該文字66自体を除く背景部分68の色は、透明色とされる。したがって、文字66が上書きされる前の本画像上に、たとえば図4(b)に示すような縞模様70がある場合は、図4(a)に示すように、当該縞模様70のうち文字66自体と重なる部分(画素)は当該文字66自体によって塗りつぶされるが、文字66自体と重ならない部分は塗りつぶされずに表に現れる。
【0032】
さらに、CPU18は、図3(c)の状態のとき、圧縮伸長回路44に命令して、本画像(画像データ)のうち文字66が上書きされた横32画素×縦32画素の部分をJPEG方式に従って圧縮させる。そして、この圧縮処理によって生成された言わば圧縮文字ファイルを、自身が内蔵するキャッシュメモリ18aに一時記憶する。なお、後述するが、この圧縮文字ファイルには、“m”という組合せ番号を表す情報,本画像上における文字66の位置を表す座標情報、文字66に対応するASCIIコード,および圧縮されたデータの本体である圧縮データが含まれる。
【0033】
上述の“H”という文字66が上書きされたのと同様の手順で、図3(d)に示すように、“E”,“L”,“L”,“O”および“!”という5つの文字66,66,・・・がこの順番で続けて上書きされたとする。そして、これらの文字66,66,・・・に対応する5つの圧縮文字ファイルが、CPU18のキャッシュメモリ18aに記憶されたとする。この状態で、セットキー52が押下されると、液晶モニタ40の画面表示が、図3(e)に示すような入力確認画面に遷移する。すなわち、文字66,66,・・・が上書きされた本画像上に、“OK”という文字列72と、“CANCEL”という文字列74とが、上下二段にOSD表示されるとともに、これらの文字列72および74の一方、ここでは文字列72、を囲むように細長い矩形のポインタ76がOSD表示される。
【0034】
この入力確認画面におけるポインタ76は、各文字66,66,・・・の上書きを有効化するか否かを選択するための指標であり、十字キー54の操作に応じて文字列72および74のいずれかを囲むように上下方向に移動する。ここで、ポインタ76によって文字列72(“OK”)が選択された状態でセットキー52が押下されると、液晶モニタ40の画面表示は、図3(f)に示すような状態に遷移する。すなわち、本画像上に6つの文字66,66,・・・によって表される“HELLO!”という文字列が入力された画面が表示されるとともに、OSD表示が解除される。
【0035】
このとき、CPU18は、自身のキャッシュメモリ18aに記憶しておいた上述の6つの圧縮文字ファイルを、現在再生されている本画像のJPEG圧縮画像ファイルに埋め込む。
【0036】
すなわち、JPEG圧縮画像ファイルには、図5に示すようにAPP[n](Reserved for Application segments)というオプション・マーカを埋め込むことができる。CPU18は、図6に示すように各圧縮文字ファイルに“0”から始まる個別の識別番号nを付与して、当該識別番号n毎にAPP[n]を生成する。それぞれのAPP[n]には、上述した組合せ番号m,文字66の位置座標,ASCIIコードおよび文字66部分の圧縮データが含まれる。そして、CPU18は、メモリ制御回路28を制御して、SDRAM30内の圧縮画像ファイル記憶領域30bに記憶されているJPEG圧縮画像ファイルに、生成したAPP[n]を埋め込む。このAPP[n]が埋め込まれたJPEG圧縮画像ファイルは、メモリ制御回路28によってメモリインタフェース回路46を介してメモリカード48に入力される。メモリカード48に入力されたJPEG圧縮画像ファイルは、文字入力モードによって文字66,66,・・・が入力される以前に当該JPEG圧縮画像ファイルが記録されていた領域に記録される。つまり。JPEG圧縮画像ファイルの内容が更新される。このJPEG圧縮画像ファイルの更新を以って、文字入力モードによる一連の文字入力処理が完了する。
【0037】
なお、この一連の文字入力処理が繰り返されることによって、1つの画像に複数の文字列が入力される。つまり、オペレータは、1つの画像に複数の文字列を入力することができる。このとき、CPU18は、1回の文字入力処理によって入力される各文字66,66,・・・に同じ組合せ番号mを付与し、当該文字入力処理が繰り返される毎に組合せ番号mを更新する。したがって、互いに同じ文字列を構成する文字66,66,・・・間では互いに同じ組合せ番号mが付与され、互いに異なる文字列を構成する文字66,66,・・・間では互いに異なる組合せ番号mが付与される。
【0038】
また、図3(e)の入力確認画面において、ポインタ76によって文字列74(“CANCEL”)が選択された状態でセットキー52が押下された場合には、上書きされた全ての文字66,66,・・・が液晶モニタ40の画面から消去されるとともに、OSD表示が解除される。その結果、液晶モニタ40には、本画像のみが表示される。
【0039】
さて、上述の再生モードによって任意の画像が再生されるとき、上述の文字入力モードによって当該画像に1以上の文字列が入力されている場合には、液晶モニタ40には、図7(a)に示すような文字列一覧画面がOSD表示される。すなわち、再生された本画像上に、上述の文字入力モードによって入力された1以上の文字列、ここでは“HELLO!”,“GOOD LUCK!”および“YOO−HOO!”という3つの文字列80〜84が上下方向に沿って一列に表示される。そして、これらの文字列80〜84のいずれか、ここでは文字列80を、囲むように細長い矩形のポインタ86が表示される。
【0040】
この文字列一覧画面におけるポインタ86は、各文字列80〜84のうちのいずれを画面に表示させるのかを選択するための指標であり、十字キー54の操作に応じて各文字列80〜84のいずれかを囲むように上下方向に移動する。ここで、ポインタ86によって文字列80(“HELLO!”)が選択された状態でセットキー52が押下されると、液晶モニタ40の画面表示が、図7(b)に示すような状態に遷移する。すなわち、上述した図3(f)と同様に、本画像上に6つの文字66,66,・・・によって表される“HELLO!”という文字列が入力された画面が表示されるとともに、OSD表示が解除される。
【0041】
なお、図7(a)の文字列一覧画面において、ポインタ86によって文字列82(“GOOD LUCK!”)が選択された状態でセットキー52が押下された場合には、液晶モニタ40には、本画像上に“GOOD LUCK!”という文字列が入力された画面が表示される。同様に、ポインタ86によって文字列84(“YOO−HOO!”)が選択された状態でセットキー52が押下されると、液晶モニタ40には、本画像上に“YOO−HOO!”という文字列が入力された画面が表示される。
【0042】
さらに、上述の文字入力モードによって入力された文字66,66,・・・(文字列)は、文字編集モードによって任意に編集することができる。すなわち、今、再生モードにおいて液晶モニタ40に上述の図6(b)に示す画面が表示されているとする。この状態で、モードキー50,セットキー52および十字キー54の操作によって文字編集モードが選択されると、液晶モニタ40に、図8(a)に示すようなカーソル設定画面がOSD表示される。すなわち、先頭の文字66を囲むように、矩形のカーソル90が表示される。このカーソル90は、これから編集しようとする文字66を選択するための指標であり、十字キー54の操作に応じて上下左右の各方向に移動する。
【0043】
この図8(a)のカーソル設定画面において、各文字66,66,・・・のうち先頭から数えて4番目に位置する“L”という文字66がカーソル90によって選択された状態で、セットキー52が押下されたとする。すると、液晶モニタ40の画面表示が、図8(b)に示すような編集選択画面に遷移する。すなわち、カーソル90の他に、“INSERT”という文字列92と、“DELETE”という文字列94とが、上下二段にOSD表示されるとともに、これらの文字列92および94の一方、ここでは文字列92、を囲むように細長い矩形のポインタ96がOSD表示される。なお、ポインタ96は、十字キー54の操作に応じて文字列92および94のいずれかを囲むように上下方向に移動する。
【0044】
この編集選択画面は、これから実施しようとする編集内容を選択するための画面であり、具体的には図8(a)のカーソル設定画面において選択された文字66を書き換えるのか(Insert)、若しくは当該選択された文字66を消去(Delete)するのかを選択するための画面である。ここで、ポインタ96によって文字列92(“INSERT”)が選択された状態でセットキー52が押下されると、液晶モニタ40の画面表示が、図8(c)に示すような文字入力画面に遷移する。
【0045】
この図8(c)の文字入力画面においては、上述した図3(b)の文字入力画面と同様に、ASCIIコードに従う複数の文字98,98,・・・、およびこれらの文字98,98,・・・のいずれか1つを囲む矩形のポインタ100が、OSD表示される。なお、ポインタ100は、十字キー54の操作に応じて上下左右の各方向に移動する。ここで、ポインタ100によって“P”という文字98が選択され、この状態で、セットキー52が押下されたとする。すると、液晶モニタ40の画面表示は、図3(d)に示すような状態に遷移する。
【0046】
すなわち、図8(c)においては“L”であった先頭から4番目の文字66が、“P”に書き換えられる。そして、図8(c)における文字98,98,・・・の一覧およびポインタ100が消去されるとともに、カーソル90が文字66の1文字分だけ右側に移動する。
【0047】
なお、新たに書き換えられた“P”という文字66は、OSD表示されるのではなく、それ以前の“L”という文字66に代えて本画像上に上書きされる。具体的には、CPU18が、まず、メモリ制御回路28を制御して、SDRAM30内の圧縮画像ファイル記憶領域30bから、当該圧縮画像ファイル記憶領域30bに記憶されているJPEG圧縮画像ファイルを読み出す。そして、読み出したJPEG圧縮画像ファイルから、当該“L”という先頭から5番目の文字66に対応するAPP[n]を削除する。そして、このAPP[n]が削除されたJPEG圧縮画像ファイルを圧縮伸長回路44に伸長させ、伸長後の画像データをメモリ制御回路28によってSDRAM30の画像データ記憶領域30aに展開させる。さらに、CPU18は、この画像データ記憶領域30aに展開された画像データに、新たに“P”という文字66に対応する文字データを上書きする。この文字データが上書きされた画像データは、メモリ制御回路28によって読み出され、バッファメモリ32に転送される。これによって、先頭から4番目の文字66が“P”に書き換えられた本画像が、液晶モニタ40に表示される。
【0048】
さらに、CPU18は、圧縮伸長回路44に命令して、“P”という文字66に書き換えられた横32画素×縦32画素の部分をJPEG方式に従って圧縮させる。そして、この圧縮処理によって生成された圧縮文字ファイルに上述した識別番号nを付与して、新たなAPP[n]を生成する。そして、CPU18は、メモリ制御回路28を制御して、SDRAM30内の圧縮画像ファイル記憶領域30bに記憶されているJPEG圧縮画像ファイルに、当該新たに生成したAPP[n]を埋め込む。
【0049】
上述の“H”という先頭から4番目の文字66が“P”に上書きされたのと同様の手順で、当初は“O”であった先頭から5番目の文字66が図8(e)に示すように“!”に上書きされたとする。そして、カーソル90によって“!”という最後尾(先頭から6番目)の文字66が選択された状態で、セットキー52が押下されたとする。すると、液晶モニタ40の画面表示は、図8(f)に示すように編集選択画面に遷移する。
【0050】
この図8(f)に示す編集選択画面において、ポインタ96によって文字列94(“DELETE”)が選択された状態でセットキー52が押下されると、液晶モニタ40の画面表示は、図8(g)に示すような画面に遷移する。すなわち、図8(f)においては“!”であった最後尾の文字66が、画面から消去される。
【0051】
このとき、CPU18は、メモリ制御回路28を制御して、SDRAM30内の圧縮画像ファイル記憶領域30bから、当該圧縮画像ファイル記憶領域30bに記憶されているJPEG圧縮画像ファイルを読み出す。そして、読み出したJPEG圧縮画像ファイルから、当該“!”という最後尾の文字66に対応するAPP[n]を削除する。さらに、CPU18は、このAPP[n]が削除されたJPEG圧縮画像ファイルを圧縮伸長回路44に伸長させ、伸長後の画像データをメモリ制御回路28によってSDRAM30の画像データ記憶領域30aに展開させる。この画像データ記憶領域30aに展開された画像データは、メモリ制御回路28によって読み出され、バッファメモリ32に転送される。これによって、最後尾の文字66が消去された本画像が、液晶モニタ40に表示される。
【0052】
そして、図8(g)の状態で、モードキー50が押下されると、液晶モニタ40の画面表示は、図8(h)に示すような状態に遷移する。すなわち、当初本画像上に6つの文字66,66,・・・によって“HELLO!”と入力されていた文字列が、5つの文字66,66,・・・によって“HELP!”という文字列に書き換えられた画面が表示されるとともに、OSD表示が解除される。さらに、CPU18は、メモリ制御回路28を制御して、SDRAM30の圧縮画像ファイル記憶領域30bに記憶されているJPEG圧縮画像ファイルをメモリカード48に転送させる。このメモリカード48に転送されたJPEG圧縮画像ファイルは、文字編集モードによって文字66,66,・・・が編集される以前に当該JPEG圧縮画像ファイルが記録されていた領域に記録される。これによって、JPEG圧縮画像ファイルの内容が更新される。
【0053】
なお、文字編集モードにおいては、既に上書きされている文字66を書き換え、または当該文字66を消去するばかりでなく、文字66が上書きされていない場所に新たな文字を追加することもできる。この場合、上述した文字入力モードと同様の手順によって、新たな文字が追加される。
【0054】
この実施例における文字入力機能を実現するために、CPU18は、自身が内蔵するプログラムメモリ18bに記憶されている制御プログラムに従って次のような動作をする。
【0055】
すなわち、文字入力モードが選択されると、CPU18は、図9のステップS1に進み、上述した図3(a)のカーソル設定画面を液晶モニタ40にOSD表示させる(厳密には、このカーソル設定画面を表示させるためのOSDデータを生成してOSDメモリ36に入力する)。そして、CPU18は、ステップS3に進み、何らかのキー操作が成されるのを待機する。
【0056】
ステップS3において何らかのキー操作が成されると、CPU18は、ステップS5に進み、当該キー操作の内容を判別する。ここで、モードキー50が押下されたと判断すると、CPU18は、ステップS7に進む。そして、このステップS7においてOSD表示を解除して、文字入力モードにおける一連の処理を終了する。
【0057】
一方、ステップS5において十字キー54が操作されたと判断すると、CPU18は、ステップS9に進み、当該十字キー54の操作に応じてカーソル60を移動させる。そして、ステップS11において、移動後のカーソル60の位置をキャッシュメモリ18aに記憶した後、ステップS3に戻る。
【0058】
さらに、ステップS5においてセットキー52が押下されたとき、CPU18は、ステップS13に進む。そして、このステップS13において、図3(b)の文字入力画面をOSD表示した後、ステップS15に進み、何らかのキー操作が成されるのを待機する。
【0059】
ステップS15において何らかのキー操作が成されると、CPU18は、ステップS17に進み、当該キー操作の内容を判別する。ここで、十字キー54が操作されると、CPU18は、ステップS19に進み、当該十字キー54の操作に応じてポインタ64を移動させる。そして、このステップS19の処理後、CPU18は、ステップS15に戻る。
【0060】
一方、ステップS15においてセットキー52が押下されたと判断すると、CPU18は、ステップS21に進む。そして、このステップS21において、上述のポインタ64によって選択された文字62に対応する文字66を本画像上に上書きした後、ステップS23に進む。
【0061】
ステップS23において、CPU18は、本画像上の文字66が上書きされた部分を圧縮する(厳密には、圧縮伸長回路44に圧縮させる)。そして、CPU18は、ステップS25に進み、当該圧縮処理によって生成された圧縮文字ファイルに上述の識別番号nを付与してAPP[n]を生成した後、ステップS27において、当該APP[n]をキャッシュメモリ18aに一時記憶する。さらに、CPU18は、ステップS29において、カーソル60を文字66の1文字分だけ右側に移動させた後、ステップS15に戻る。
【0062】
ステップS15においてモードキー50が押下された場合、CPU18は、図10のステップS31に進む。このステップS31において、CPU18は、図3(b)の文字入力画面において1文字以上の文字が入力(上書き)されたか否かを判断する。ここで、何ら文字が入力されていないと判断した場合、CPU18は、図9のステップS1に戻り、改めて図3(a)に示すカーソル設定画面を表示する。
【0063】
一方、ステップS31において1文字以上の文字が入力されたと判断すると、CPU18は、ステップS33に進む。そして、このステップS33において、図3(e)の入力確認画面をOSD表示した後、ステップS35に進み、何らかのキー操作が成されるのを待機する。
【0064】
ステップS35において何らかのキー操作が成されると、CPU18は、ステップS37に進み、当該キー操作の内容を判別する。ここで、モードキー50が押下されたと判断すると、CPU18は、ステップS39に進む。そして、このステップS39において、上述のステップS11でキャッシュメモリ18aに記憶したカーソル60の位置を参照した後、図9のステップS13に戻り、改めて文字入力画面を表示する。このとき、CPU18は、ステップS39における参照結果に基づいて、文字入力画面上でのカーソル60の表示位置を設定する。
【0065】
一方、ステップS37において十字キー54が操作されたと判断すると、CPU18は、ステップS41に進む。そして、このステップS41において、十字キー54の操作に応じてポインタ76を移動させた後、ステップS35に戻る。
【0066】
さらに、ステップS37においてセットキー52が押下されると、CPU18は、ステップS43に進む。そして、このステップS43において、入力確認画面上で“OK”という文字列72が選択されたか否かを判断し、当該文字列72が選択された場合には、ステップS45に進む。このステップS45において、CPU18は、キャッシュメモリ18aに記憶しておいたAPP[n]を現在再生されているJPEG圧縮画像ファイルに埋め込む。そして、CPU18は、ステップS47に進み、当該キャッシュメモリ18aに記憶しておいたAPP[n]を削除した後、図9のステップS7を経て、この文字入力モードにおける一連の処理を終了する。
【0067】
ステップS43において、入力確認画面上で“OK”という文字列72が選択されなかった場合、つまり“CANCEL”という文字列74が選択された場合、CPU18は、ステップS49に進む。そして、このステップS49において、キャッシュメモリ18aに記憶しておいたAPP[n]を削除した後、ステップS51に進み、本画像を再描画する。このステップS51の処理後、CPU18は、図9のステップS7を経て、文字入力モードにおける処理を終了する。
【0068】
なお、この文字入力モードを抜けた後、CPU18は、SDRAM30の圧縮画像ファイル記憶領域30bに記憶されているJPEG圧縮画像ファイルをメモリカード48に記録(上書き)する。これによって、現在再生されている画像のJPEG圧縮画像ファイルの内容が更新される。
【0069】
次に、図11を参照して、再生モードにおけるCPU18の動作について説明する。再生モードにおいて任意の画像が再生されると、CPU18は、図11のステップS61に進む。そして、このステップS61において、再生された画像のJPEG圧縮画像ファイルにAPP[n](厳密には文字66を表すAPP[n])が含まれているか否かを判断する。
【0070】
ここで、APP[n]が含まれていない場合、CPU18は、ステップS61からステップS63に進む。そして、このステップS63において、再生された画像には文字入力モードによって何ら文字が入力されていないことを表すメッセージを液晶モニタ40に一定期間OSD表示して、この図11のフロー図で示される一連の処理を終了する。
【0071】
一方、ステップS61においてAPP[n]が含まれているとき、CPU18は、ステップS65に進む。そして、このステップS65において、図7(a)に示す文字列一覧画面をOSD表示した後、CPU18は、ステップS67に進み、何らかのキー操作が成されるのを待機する。
【0072】
ステップS67において何らかのキー操作が成されると、CPU18は、ステップS69に進み、当該キー操作の内容を判別する。ここで、モードキー50が押下されたと判断すると、CPU18は、ステップS71に進む。そして、このステップS71において文字列一覧画面のOSD表示を解除して、この図11のフロー図で示される一連の処理を終了する。
【0073】
ステップS69において十字キー54が操作されると、CPU18は、ステップS73に進む。そして、このステップS73において文字列、つまり組合せ番号mは複数であるか否かを判断し、複数である場合には、ステップS75に進む。ステップS75において、CPU18は、十字キー54の操作に応じてポインタ86を移動させる。そして、このポインタ86の移動後、CPU18は、ステップS67に戻る。なお、ステップS73において文字列が複数でない場合、つまり1つの場合は、CPU18は、ステップS75をスキップして、直接ステップS67に戻る。
【0074】
ステップS69においてセットキー52が押下された場合、CPU18は、ステップS77に進む。そして、このステップS77において、文字列一覧画面上でポインタ86によって選択された文字列80,82または84の組合せ番号mを認識するとともに、認識した番号mを自身が有する所定のレジスタm’に記憶する。そして、CPU18は、ステップS79に進み、識別番号nを表すインデックスを“0”(n=0)とした後、ステップS81において、再生画像のJPEG圧縮画像ファイルから当該識別番号nに従うAPP[n]を読み出す。
【0075】
ステップS81の処理後、CPU18は、ステップS83に進む、当該ステップS81で読み出したAPP[n]に含まれる組合せ番号mを、上述のレジスタm’に記憶された番号と比較する。ここで、両者が一致する(m=m’)とき、CPU18は、読み出したAPP[n]が文字列一覧画面で選択された文字列を構成するものであると認識し、ステップS85に進む。そして、このステップS85において、当該APP[n]に含まれる圧縮データを伸長し、この伸長処理によって再現された文字(文字66を含む横32画素×縦32画素の部分)を、ステップS87において本画像上に上書きする。このステップS87の処理後、CPU18は、ステップS89に進む。
【0076】
ステップS89において、CPU18は、再生画像のJPEG圧縮画像ファイルから全てのAPP[n]を読み出したか否か、具体的には現在のインデックスnがその最大値Nに達したか否かを判断する。ここで、未だインデックスnが最大値Nに達していない(全てのAPP[n]を読み出していない)と判断した場合、CPU18は、ステップS91に進み、当該インデックスnを“1”だけインクリメントした後、であるか否か、つまり全てのAPP図3(b)の文字入力画面を表示した後、ステップS81に戻る。
【0077】
一方、インデックスnが最大値Nに達した(全てのAPP[n]を読み出した)と判断すると、CPU18は、ステップS71に進み、OSD表示を解除して、この図11のフロー図で示される一連の処理を終了する。
【0078】
なお、上述のステップS83において、ステップS81で読み出したAPP[n]に含まれる組合せ番号mと、レジスタm’に記憶されている番号とが一致しない場合には、CPU18は、ステップS85およびステップS87をスキップして、ステップS89に進む。
【0079】
次に、文字編集モードにおけるCPU18の動作について説明する。この文字編集モードが選択されると、CPU18は、まず、図12のステップS101に進み、上述した図8(a)のカーソル設定画面をOSD表示する。そして、CPU18は、ステップS103に進み、何らかのキー操作が成されるのを待機する。
【0080】
ステップS103において何らかのキー操作が成されると、CPU18は、ステップS105に進み、当該キー操作の内容を判別する。ここで、モードキー50が押下されたと判断すると、CPU18は、ステップS107に進む。そして、このステップS107においてOSD表示を解除して、文字編集モードにおける一連の処理を終了する。
【0081】
一方、ステップS105において十字キー54が操作されると、CPU18は、ステップS109に進む。そして、このステップS105において十字キー54の操作に応じてカーソル90を移動させた後、CPU18は、ステップS103に戻る。
【0082】
さらに、ステップS105においてセットキー52が押下されたとき、CPU18は、ステップS113に進む。そして、このステップS113において、図8(b)の編集選択画面をOSD表示した後、ステップS115に進み、何らかのキー操作が成されるのを待機する。
【0083】
ステップS115において何らかのキー操作が成されると、CPU18は、ステップS117に進み、当該キー操作の内容を判別する。ここで、モードキー50が押下されたと判断すると、CPU18は、ステップS101に戻り、改めて図8(a)のカーソル設定画面を表示する。
【0084】
一方、ステップS117において十字キー54が操作された場合は、CPU18は、ステップS119に進む。そして、このステップS119において、十字キー54の操作に応じてポインタ96を移動させた後、CPU18は、ステップS115に戻る。
【0085】
さらに、ステップS117においてセットキー52が押下された場合、CPU18は、ステップS121に進む。そして、このステップS121において、上述のポインタ96によって選択されたのが“INSERT”という文字列92であるか否かを判断する。ここで、文字列92が選択されたと判断すると、CPU18が、ステップS123に進む。そして、このステップS123において、図8(c)の文字入力画面をOSD表示した後、ステップS125に進み、何らかのキー操作が成されるのを待機する。
【0086】
ステップS125において何らかのキー操作が成されると、CPU18は、ステップS127に進み、当該キー操作の内容を判別する。ここで、モードキー50が押下されたと判断すると、CPU18は、ステップS113に戻り、改めて図8(b)の編集選択画面を表示する。
【0087】
一方、ステップS127において十字キー54が操作されると、CPU18は、ステップS129に進み、当該十字キー54の操作に応じてポインタ100を移動させる。そして、このステップS129の処理後、CPU18は、ステップS125に戻る。
【0088】
さらに、ステップS127においてセットキー52が押下されたと判断すると、CPU18は、ステップS131に進む。そして、このステップS131において、カーソル90の位置に既に上書きされている文字66が存在するか否かを判断する。ここで、文字66が存在する場合、CPU18は、図13のステップS133に進む。
【0089】
ステップS133において、CPU18は、カーソル90の位置に存在する文字66のAPP[n]を認識する。そして、CPU18は、ステップS135に進み、当該認識したAPP[n]をJPEG圧縮画像ファイルから削除する。さらに、CPU18は、ステップS137に進み、現在再生されている本画像を再描画する。そして、ステップS139に進み、当該一部のAPP[n]が削除された後のAPP[n]に基づいて文字66を含む横32画素×縦32画素の部分を再描画する。
【0090】
さらに、CPU18は、ステップS141に進み、上述のポインタ100によって選択された文字98に対応する文字66を本画像上に上書きした後、ステップS143に進む。このステップS143において、CPU18は、本画像上の文字66が上書きされた部分を圧縮する。そして、CPU18は、ステップS145に進み、当該圧縮処理によって生成された圧縮文字ファイルに識別番号nを付与してAPP[n]を生成した後、ステップS147において、当該APP[n]をJPEG圧縮画像ファイルに埋め込む。
【0091】
そして、CPU18は、ステップS149において、カーソル90を文字66の1文字分だけ右側に移動させた後、図12のステップS101に戻り、改めて図8(a)のカーソル設定画面を表示する。
【0092】
なお、上述のステップS131において、カーソル90の位置に文字66が存在しない場合は、CPU18は、図13のステップS133〜ステップS139をスキップして、ステップS141に進む。
【0093】
また、図12のステップS121において、図8(b)のポインタ96によって選択されたのが“INSERT”という文字列92でない場合、つまり“DELETE”という文字列94が選択された場合、CPU18は、図14のステップS151に進む。そして、このステップS151において、カーソル90の位置に既に上書きされている文字66が存在するか否かを判断し、文字66が存在する場合、CPU18は、ステップS153に進む。
【0094】
ステップS153において、CPU18は、カーソル90の位置に存在する文字66のAPP[n]を認識する。そして、CPU18は、ステップS155に進み、当該認識したAPP[n]をJPEG圧縮画像ファイルから削除する。さらに、CPU18は、ステップS157に進み、現在再生されている本画像を再描画する。そして、ステップS159に進み、当該一部のAPP[n]が削除された後のAPP[n]に基づいて文字66を含む横32画素×縦32画素の部分を再描画した後、図12のステップS101に戻る。
【0095】
なお、ステップS151においてカーソル90の位置に文字66が存在しない場合、CPU18は、図14のステップS153〜ステップS159をスキップして、直接ステップS101に戻る。
【0096】
以上の説明から判るように、この実施例の文字入力機能によれば、本画像の圧縮画像データを含むJPEG圧縮画像ファイルのオプション・マーカに、当該本画像に上書きされた文字66,66,・・・のデータが埋め込まれる。すなわち、本画像のデータと、文字66,66,・・・のデータとは、個別に記録される。したがって、本画像に上書きされた各文字66,66,・・・を個別に編集することができる。しかも、各々の文字66は、文字データとしてではなく、当該文字66を含む横32画素×縦32画素の画像データとして記録されるので、特定のフォントデータが用意されていない環境下でも当該文字66を再現することができる。
【0097】
なお、この実施例では、ディジタルカメラ10にこの発明を適用する場合について説明したが、これに限らない。たとえば、ディジタルカメラの機能を備えた携帯電話機にも、この発明を適用することができる。また、ディジタルカメラを備えた装置に限らず、既存の画像上に任意の文字を入力する機能を備えた装置であれば、この発明を適用できる。
【0098】
また、画像に入力可能な文字をASCIIコードに従う文字に限定したが、これに限らない。すなわち、ひらがなや漢字などのアルファベット以外で表される文字を入力できるようにしてもよい。
【0099】
そして、入力される文字66のサイズを横32画素×縦32画素としたが、これ以外のサイズとしてもよい。ただし、JPEG方式では、横8画素×縦8画素を1単位として圧縮処理が成されるので、縦横ともに8の倍数の画素数によって当該文字66を表現するのが望ましい。
【図面の簡単な説明】
【図1】この発明の一実施例の概略構成を示すブロック図である。
【図2】図1の実施例のディジタルカメラの背面図である。
【図3】図1の実施例における文字入力モードでの画面の表示例を示す図解図である。
【図4】図1の実施例において本画像に文字が上書きされた状態を示す図解図である。
【図5】図1の実施例におけるJPEG圧縮画像ファイルの構成を示す図解図である。
【図6】図5におけるオプション・マーカの詳細を示す図解図である。
【図7】図1の実施例における再生モードでの画面の表示例を示す図解図である。
【図8】図1の実施例における文字編集モードでの画面の表示例を示す図解図である。
【図9】図1の実施例における文字入力モードでのCPUの動作を示すフロー図である。
【図10】図9に続くフロー図である。
【図11】図1の実施例における再生モードでのCPUの動作を示すフロー図である。
【図12】図1の実施例における文字編集モードでのCPUの動作を示すフロー図である。
【図13】図12に続くフロー図である。
【図14】図12に続く図13とは別のフロー図である。
【符号の説明】
10…ディジタルカメラ
16…メインスイッチ
18…CPU
28…メモリ制御回路
30…SDRAM
34…混合回路
36…OSDメモリ
40…液晶モニタ
44…圧縮伸長回路
48…メモリカード
56…EEPROM
[0001]
TECHNICAL FIELD OF THE INVENTION
The present invention relates to an image processing apparatus, and more particularly to an image processing apparatus that is applied to, for example, a digital camera and includes a unit that records an image signal on a recording medium.
[0002]
[Prior art]
2. Description of the Related Art Some digital cameras have a function of inputting arbitrary characters to a captured image. As a method of realizing this function, for example, there is a method of directly overwriting character data on image data. However, with this method, character data that has been overwritten once cannot be deleted or changed later. Therefore, as another method, there is a method of superimposing characters on an image displayed on a screen by OSD (On Screen Display) technology. According to this method, since each of the image data and the character data can be handled separately, the character data can be arbitrarily edited later.
[0003]
[Problems to be solved by the invention]
By the way, many recent digital cameras also have a function of transferring a captured image to a personal computer. Here, according to the conventional technology using the above-described OSD technology, in order to reproduce characters input on the digital camera side on the personal computer side, the same font data used on the digital camera side is used on the personal computer side. It must also be prepared on the side. In other words, there is a problem that the character cannot be reproduced on the personal computer unless the same font data used for inputting the character on the digital camera is prepared on the personal computer.
[0004]
Therefore, a main object of the present invention is to provide an image processing apparatus capable of editing characters input to an image and reproducing the characters even in an environment where specific font data is not prepared. It is to be.
[0005]
[Means for Solving the Problems]
The present invention relates to a first recording unit for recording a first image signal on a recording medium, a first writing unit for writing at least a part of the first image signal to a memory, and a second image signal for the first image signal written to the memory. An image processing apparatus comprising: a first overwriting unit configured to generate a composite image signal by overwriting a composite image signal; and a second recording unit configured to record the composite image signal generated by the first overwriting unit on a recording medium.
[0006]
[Action]
According to the present invention, the first recording means records the first image signal on the recording medium. Then, the first writing means writes at least a part of the first image signal into the memory, and the first overwriting means overwrites the first image signal written into the memory with the second image signal to write the synthesized image signal. Generate. This composite image signal is recorded on a recording medium by the second recording means. That is, the recording medium separately records the first image signal and the composite image signal in which at least a part of the first image signal is overwritten with the second image signal.
[0007]
Note that the first recording means may include a first compression means for compressing the first image signal by a predetermined method, and the second recording means may include a second compression means for compressing the composite image signal by the predetermined method. Good.
[0008]
In this case, the first recording unit further includes a creation unit that creates an image file including the compressed first image signal generated by the first compression unit in a recording medium, and the second recording unit includes The image processing apparatus may further include an embedding unit that embeds the generated compressed combined image signal in the image file.
[0009]
Further, the second image signal may include a first number of text images, and the second compression unit may compress the composite image signal for each second number of text images smaller than the first number.
[0010]
In one embodiment of the present invention, a first reproducing unit for reproducing a first image signal from a recording medium, a second writing unit for writing the first image signal reproduced by the first reproducing unit to a memory, and a composite image signal And a second overwriting means for overwriting the composite image signal reproduced by the second reproduction means with the first image signal written in the memory. According to this configuration, an image based on the signal obtained by overwriting the first image signal with the composite image signal is reproduced.
[0011]
【The invention's effect】
According to the present invention, the first image signal and the composite image signal in which at least a part of the first image signal is overwritten with the second image signal are individually recorded on the recording medium, so that the second image signal Can be edited separately from the first image signal. In addition, when the second image signal includes a signal representing a text image, the text image represented by the second image signal, that is, a character can be reproduced even in an environment where specific font data is not prepared. .
[0012]
The above and other objects, features and advantages of the present invention will become more apparent from the following detailed description of embodiments with reference to the drawings.
[0013]
【Example】
Referring to FIG. 1, a digital camera 10 of this embodiment has a CCD (Charge Coupled Device) type image sensor 14 on which an optical image of a subject is incident via a focus lens 12.
[0014]
When a shooting mode for shooting a subject is selected by the main switch 16, the CPU 18 instructs a TG (Timing Generator) 20 to repeat pre-exposure and thinning-out reading. The TG 20 supplies a timing signal corresponding to the command to the image sensor 14. The image sensor 14 exposes the optical image of the subject according to the supplied timing signal, and also removes a part of the charge accumulated by the exposure. Output in the next one frame period. That is, when the photographing mode is selected, a low-resolution raw image signal is output from the image sensor 14 every frame period.
[0015]
The raw image signal of each frame output from the image sensor 14 is input to a CDS (Correlated Double Sampling) / AGC (Automatic Gain Control) circuit 22, where it is subjected to a correlated double sampling process and a gain adjustment process. , A / D conversion circuit 24. The A / D conversion circuit 24 converts the input raw image signal into raw image data which is a digital signal, and inputs the converted raw image data to the signal processing circuit 26.
[0016]
The signal processing circuit 26 performs a series of processes such as color separation, white balance adjustment, gamma correction, and YUV conversion on the input raw image data. The image data (YUV data) processed by the signal processing circuit 26 is temporarily stored by a memory control circuit 28 in an image data storage area 30a of an SDRAM (Synchronous Dynamic RAM) 30 as a main memory, and then stored in a buffer memory. 32.
[0017]
The image data transferred to the buffer memory 32 is input to the mixing circuit 34, where it is mixed with OSD data input from an OSD memory 36 described later. However, at this time, since the OSD data is not input from the OSD memory 36, the image data input from the buffer memory 32 is output from the mixing circuit 34 as it is. The image data output from the mixing circuit 34 is input to a video encoder 38, where it is converted into a composite image signal of the NTSC system. Then, the converted composite image signal is input to the liquid crystal monitor 40, whereby a real-time moving image of the subject, that is, a so-called through image is displayed on the liquid crystal monitor 40.
[0018]
Here, when the shutter button 42 is pressed, the CPU 18 starts a recording operation. That is, the CPU 18 instructs the TG 20 to perform one-frame main exposure and all-pixel reading. The TG 20 supplies a timing signal corresponding to a command from the CPU 18 to the image sensor 14. As a result, the main exposure by the image sensor 16 is performed, and all the electric charges accumulated by the main exposure, that is, a high-resolution raw image signal for one frame is output from the image sensor 14. The raw image signal output from the image sensor 14 is processed by the CDS / AGC circuit 22 and then input to the A / D conversion circuit 24, where it is converted into raw image data. Then, the raw image data is input to the signal processing circuit 26, where the raw image data is subjected to the series of processes described above, and then stored in the image data storage area 30 a in the SDRAM 30 by the memory control circuit 28.
[0019]
The memory control circuit 28 reads the high-resolution image data stored in the image data storage area 30 a under the control of the CPU 18 and inputs the read image data to the compression / expansion circuit 44. The compression / expansion circuit 44 is given a compression instruction from the CPU 18, and in response to the compression instruction, the compression / expansion circuit 44 performs a compression process on the input image data according to a JPEG (Joint Photographic Expert Group) system. . The JPEG compressed image file generated by this compression processing is temporarily stored in the compressed image file storage area 30b in the SDRAM 30 by the memory control circuit 28, and then input to the memory card 48 via the memory interface circuit 46. Be recorded.
[0020]
The image (JPEG compressed image file) recorded on the memory card 48 in this manner can be reproduced in the reproduction mode. That is, when the reproduction mode is selected by the main switch 16, the CPU 18 instructs the memory control circuit 28 to read a JPEG compressed image file. In response to this command, the memory control circuit 28 reads a JPEG compressed image file from the memory card 48 via the memory interface circuit 46, and temporarily stores the read JPEG compressed image file in the compressed image file storage area 30b in the SDRAM 30. To be stored temporarily.
[0021]
Then, the memory control circuit 28 inputs the storage of the JPEG compressed image file stored in the compressed image file storage area 30b to the compression / decompression circuit 44. The compression / decompression circuit 44 is provided with a decompression command from the CPU 18, and in response to the decompression command, the compression / decompression circuit 44 decompresses the input JPEG compressed image file and reproduces the original image data. The reproduced image data is temporarily stored in the image data storage area 30 a of the SDRAM 30 by the memory control circuit 28 and then transferred to the buffer memory 32.
[0022]
The image data transferred to the buffer memory 32 is input to the mixing circuit 34. At this time, since the OSD data is not input from the OSD memory 36 to the mixing circuit 34, the image data input from the buffer memory 32 is output from the mixing circuit 34 as it is. The image data output from the mixing circuit 34 is input to a video encoder 36, where it is converted into a composite image signal. Then, the converted composite image signal is input to the liquid crystal monitor 40, whereby a high-resolution reproduced image is displayed on the liquid crystal monitor 40.
[0023]
In the playback mode, a desired playback image can be displayed one by one, or a plurality of playback images can be displayed in a multi-display manner. In this manner, which reproduction image is to be displayed can be arbitrarily selected by operating the mode key 50, the set key 52, and the cross key 54, which will be described later, but a detailed description thereof will be omitted.
[0024]
With reference to FIG. 2, the mode key 50 and the set key 52 are arranged side by side at the upper right position on the back of the digital camera 10 together with the main switch 16 described above. Below the mode key 50, the set key 52 and the main switch 16, there is arranged a cross key 54 having four contacts of up, down, left and right. The shutter switch 42 is provided on the upper surface of the digital camera 10 at a position close to the main switch 16. The liquid crystal monitor 40 is provided at a position on the left side of the back of the digital camera 10.
[0025]
By the way, the digital camera 10 of this embodiment has a character input function of inputting an arbitrary character (text) into a captured image. Characters that can be input by this character input function are characters in accordance with the well-known ASCII (American Standard Code for Information Interchange) code, and character data for expressing such characters is stored in an EEPROM (Electrically Erasable ROM) 56. . In addition, in order to input a character by the character input function, it is assumed that an image for which the input of the character is desired is reproduced.
[0026]
That is, it is assumed that the reproduction mode is currently selected by the main switch 16 and an image for which a character input is desired is being reproduced. In this state, when the character input mode is selected by operating the mode key 50, the set key 52, and the cross key 54, a cursor setting screen as shown in FIG. Is done. Specifically, the CPU 18 generates OSD data for displaying the cursor setting screen, and inputs the OSD data to the OSD memory 36. The OSD data input to the OSD memory 36 is input to the mixing circuit 34, where it is mixed with the image data input from the buffer memory 32 to the mixing circuit 34, and then input to the video encoder 38. The video encoder 36 converts the input data into a composite image signal, and inputs the converted composite image signal to the liquid crystal monitor 40. As a result, a reproduced image according to the image data, that is, a main image of the subject, and a cursor setting screen according to the OSD data are displayed on the liquid crystal monitor 40 in an overlapping manner.
[0027]
As shown in FIG. 3A, a rectangular cursor 60 is displayed on the cursor setting screen. The cursor 60 is an index for indicating a place where a character is to be input from now on, and moves in up, down, left and right directions in accordance with the operation of the cross key 54. Specifically, the CPU 18 generates OSD data such that the cursor 60 moves according to the operation of the cross key 54.
[0028]
In this cursor setting screen, when the set key 52 is pressed while the cursor 60 is placed at a certain position, the screen display of the liquid crystal monitor 40 transits to a character input screen as shown in FIG. . That is, in addition to the cursor 60, a plurality of characters (including signs) 62, 62,... According to the ASCII code, and a rectangular pointer 64 surrounding any one of these characters 62, 62,. , OSD display. .. Are displayed based on the character data stored in the EEPROM 56 described above.
[0029]
The pointer 64 on the character input screen is an index for selecting a character to be input on the main image from among the plurality of characters 62, 62,. It moves up, down, left and right according to the operation. Here, it is assumed that the character 62 of “H” is selected (enclosed) by the pointer 64 and the set key 52 is pressed in this state. Then, the screen display of the liquid crystal monitor 40 transits to a state as shown in FIG.
[0030]
That is, in FIG. 3B, the character 66 of “H” is displayed at the place where the cursor 60 existed before the set key 52 was pressed, and the cursor 60 is moved by the width of the character 66. Move to the right. Here, the character “H” 66 is overwritten on the main image instead of being displayed on the OSD. Specifically, the CPU 18 overwrites the image data expanded in the image data storage area 30a in the SDRAM 30 with character data corresponding to the character 66. The image data overwritten with the character data is read by the memory control circuit 28 and transferred to the buffer memory 32. As a result, the main image in which the character 66 has been overwritten is displayed on the liquid crystal monitor 40.
[0031]
Note that the character 66 is represented by a total of 1024 pixels (32 horizontal pixels × 32 vertical pixels) based on the character data stored in the above-described EEPROM 56, as shown in FIG. The color of the character 66 itself is white (shown in black in the drawing for convenience), and the color of the background portion 68 excluding the character 66 itself is a transparent color. Therefore, for example, when a stripe pattern 70 as shown in FIG. 4B is present on the main image before the character 66 is overwritten, as shown in FIG. The portion (pixel) overlapping with the character 66 itself is painted with the character 66 itself, but the portion not overlapping with the character 66 itself appears in the table without being painted.
[0032]
Further, in the state shown in FIG. 3C, the CPU 18 instructs the compression / expansion circuit 44 to convert the part of the main image (image data) of the horizontal 32 pixels × vertical 32 pixels, in which the character 66 is overwritten, into the JPEG format. Compress according to Then, the so-called compressed character file generated by this compression processing is temporarily stored in its own cache memory 18a. As will be described later, the compressed character file includes information indicating a combination number “m”, coordinate information indicating the position of the character 66 on the main image, an ASCII code corresponding to the character 66, and compressed data. It contains compressed data that is the main body.
[0033]
As shown in FIG. 3D, in the same procedure as when the above-mentioned character "H" 66 is overwritten, 5 "E", "L", "L", "O" and "!" .. Are assumed to be successively overwritten in this order. Assume that five compressed character files corresponding to these characters 66, 66,... Are stored in the cache memory 18a of the CPU 18. When the set key 52 is pressed in this state, the screen display of the liquid crystal monitor 40 transits to an input confirmation screen as shown in FIG. That is, a character string 72 of "OK" and a character string 74 of "CANCEL" are displayed on the main image on which the characters 66, 66,. An elongated rectangular pointer 76 is displayed by OSD so as to surround one of the character strings 72 and 74, here, the character string 72.
[0034]
The pointer 76 on the input confirmation screen is an index for selecting whether or not to enable the overwriting of each character 66, 66,..., And displays the character strings 72 and 74 in accordance with the operation of the cross key 54. Move up and down to surround either. Here, when the set key 52 is pressed while the character string 72 (“OK”) is selected by the pointer 76, the screen display of the liquid crystal monitor 40 transits to a state as shown in FIG. . That is, a screen in which a character string “HELLO!” Represented by six characters 66, 66,... Is input on the main image is displayed, and the OSD display is released.
[0035]
At this time, the CPU 18 embeds the above-described six compressed character files stored in its own cache memory 18a into the JPEG compressed image file of the currently reproduced main image.
[0036]
That is, an optional marker called APP [n] (Reserved for Application segments) can be embedded in the JPEG compressed image file as shown in FIG. The CPU 18 assigns an individual identification number n starting from “0” to each compressed character file as shown in FIG. 6 and generates APP [n] for each identification number n. Each APP [n] includes the combination number m, the position coordinates of the character 66, the ASCII code, and the compressed data of the character 66. Then, the CPU 18 controls the memory control circuit 28 to embed the generated APP [n] in the JPEG compressed image file stored in the compressed image file storage area 30b in the SDRAM 30. The JPEG compressed image file in which the APP [n] is embedded is input by the memory control circuit 28 to the memory card 48 via the memory interface circuit 46. The JPEG compressed image file input to the memory card 48 is recorded in the area where the JPEG compressed image file was recorded before the characters 66, 66,... Were input in the character input mode. I mean. The content of the JPEG compressed image file is updated. With the updating of the JPEG compressed image file, a series of character input processing in the character input mode is completed.
[0037]
Note that by repeating this series of character input processing, a plurality of character strings are input to one image. That is, the operator can input a plurality of character strings in one image. At this time, the CPU 18 assigns the same combination number m to each of the characters 66, 66,... Inputted by one character input process, and updates the combination number m each time the character input process is repeated. Therefore, the same combination number m is assigned to the characters 66, 66,... Forming the same character string, and the different combination numbers m are set to the characters 66, 66,. Is given.
[0038]
In the input confirmation screen of FIG. 3E, when the set key 52 is pressed while the character string 74 (“CANCEL”) is selected by the pointer 76, all the overwritten characters 66, 66 are overwritten. ,... Are deleted from the screen of the liquid crystal monitor 40, and the OSD display is released. As a result, only the main image is displayed on the liquid crystal monitor 40.
[0039]
By the way, when an arbitrary image is reproduced in the above-described reproduction mode and one or more character strings are input to the image in the above-described character input mode, the liquid crystal monitor 40 displays the image shown in FIG. Is displayed on the OSD. That is, on the reproduced main image, one or more character strings input in the character input mode described above, here, three character strings 80 of “HELLO!”, “GOOD LUCK!”, And “YOO-HOO!” To 84 are displayed in a line along the vertical direction. Then, an elongated rectangular pointer 86 is displayed so as to surround any one of these character strings 80 to 84, here, the character string 80.
[0040]
The pointer 86 on the character string list screen is an index for selecting which of the character strings 80 to 84 is to be displayed on the screen. Move up and down to surround either. Here, when the set key 52 is pressed while the character string 80 (“HELLO!”) Is selected by the pointer 86, the screen display of the liquid crystal monitor 40 transits to a state as shown in FIG. I do. That is, similarly to FIG. 3F described above, a screen in which a character string “HELLO!” Represented by six characters 66, 66,. The display is canceled.
[0041]
When the set key 52 is pressed while the character string 82 (“GOOD LUCK!”) Is selected by the pointer 86 on the character string list screen of FIG. A screen in which a character string “GOOD LUCK!” Has been input is displayed on the main image. Similarly, when the set key 52 is pressed while the character string 84 (“YOO-HOO!”) Is selected by the pointer 86, the character “YOO-HOO!” A screen with the columns entered appears.
[0042]
Further, the characters 66, 66,... (Character strings) input in the above-described character input mode can be arbitrarily edited in the character edit mode. That is, it is assumed that the screen shown in FIG. 6B is displayed on the liquid crystal monitor 40 in the reproduction mode. In this state, when the character editing mode is selected by operating the mode key 50, the set key 52, and the cross key 54, a cursor setting screen as shown in FIG. That is, a rectangular cursor 90 is displayed so as to surround the first character 66. The cursor 90 is an index for selecting a character 66 to be edited, and moves in the up, down, left, and right directions in accordance with the operation of the cross key 54.
[0043]
On the cursor setting screen shown in FIG. 8A, in a state where the character “L” 66 located at the fourth position from the top among the characters 66, 66,. It is assumed that 52 has been pressed. Then, the screen display of the liquid crystal monitor 40 transits to an edit selection screen as shown in FIG. That is, in addition to the cursor 90, a character string 92 of "INSERT" and a character string 94 of "DELETE" are displayed on the upper and lower two levels by OSD, and one of these character strings 92 and 94, here, a character An elongated rectangular pointer 96 surrounding the column 92 is displayed by OSD. The pointer 96 moves up and down so as to surround one of the character strings 92 and 94 in response to the operation of the cross key 54.
[0044]
The edit selection screen is a screen for selecting an edit content to be executed from now on. Specifically, whether the character 66 selected on the cursor setting screen of FIG. 8A is to be rewritten (Insert), or It is a screen for selecting whether to delete (Delete) the selected character 66. Here, when the set key 52 is pressed while the character string 92 (“INSERT”) is selected by the pointer 96, the screen display of the liquid crystal monitor 40 is changed to a character input screen as shown in FIG. Transition.
[0045]
In the character input screen of FIG. 8C, similarly to the character input screen of FIG. 3B, a plurality of characters 98, 98,. .. Are displayed by OSD. The pointer 100 moves up, down, left, and right in accordance with the operation of the cross key 54. Here, it is assumed that the character 98 "P" is selected by the pointer 100, and the set key 52 is pressed in this state. Then, the screen display of the liquid crystal monitor 40 transits to a state as shown in FIG.
[0046]
That is, the fourth character 66 from the top, which was "L" in FIG. 8C, is rewritten to "P". Then, the list of the characters 98, 98,... And the pointer 100 in FIG. 8C are deleted, and the cursor 90 moves to the right by one character of the character 66.
[0047]
The newly rewritten character “P” 66 is not displayed on the OSD, but is overwritten on the main image instead of the previous character “L” 66. Specifically, the CPU 18 first controls the memory control circuit 28 to read a JPEG compressed image file stored in the compressed image file storage area 30b from the compressed image file storage area 30b in the SDRAM 30. Then, APP [n] corresponding to the fifth character 66 from the beginning of “L” is deleted from the read JPEG compressed image file. The JPEG compressed image file from which APP [n] has been deleted is expanded by the compression / expansion circuit 44, and the expanded image data is expanded by the memory control circuit 28 in the image data storage area 30a of the SDRAM 30. Further, the CPU 18 newly overwrites the image data developed in the image data storage area 30a with character data corresponding to the character 66 of "P". The image data overwritten with the character data is read by the memory control circuit 28 and transferred to the buffer memory 32. As a result, the main image in which the fourth character 66 from the top has been rewritten to “P” is displayed on the liquid crystal monitor 40.
[0048]
Further, the CPU 18 instructs the compression / expansion circuit 44 to compress the portion of 32 pixels by 32 pixels rewritten into the character 66 of "P" according to the JPEG system. Then, a new APP [n] is generated by giving the above-mentioned identification number n to the compressed character file generated by this compression processing. Then, the CPU 18 controls the memory control circuit 28 to embed the newly generated APP [n] in the JPEG compressed image file stored in the compressed image file storage area 30b in the SDRAM 30.
[0049]
In the same procedure as when the fourth character 66 from the beginning “H” is overwritten with “P”, the fifth character 66 from the beginning, which was initially “O”, is It is assumed that "!" Is overwritten as shown. Then, it is assumed that the set key 52 is pressed while the last (sixth from the top) character 66 of “!” Is selected by the cursor 90. Then, the screen display of the liquid crystal monitor 40 transits to the edit selection screen as shown in FIG.
[0050]
When the set key 52 is pressed while the character string 94 (“DELETE”) is selected by the pointer 96 on the edit selection screen shown in FIG. The screen transitions as shown in g). That is, the last character 66 which is "!" In FIG. 8F is deleted from the screen.
[0051]
At this time, the CPU 18 controls the memory control circuit 28 to read the JPEG compressed image file stored in the compressed image file storage area 30b from the compressed image file storage area 30b in the SDRAM 30. Then, APP [n] corresponding to the last character 66 of “!” Is deleted from the read JPEG compressed image file. Further, the CPU 18 expands the JPEG compressed image file from which the APP [n] has been deleted by the compression / expansion circuit 44, and expands the expanded image data in the image data storage area 30a of the SDRAM 30 by the memory control circuit 28. The image data developed in the image data storage area 30a is read by the memory control circuit 28 and transferred to the buffer memory 32. As a result, the main image from which the last character 66 has been deleted is displayed on the liquid crystal monitor 40.
[0052]
Then, when the mode key 50 is pressed in the state of FIG. 8G, the screen display of the liquid crystal monitor 40 transits to a state as shown in FIG. That is, the character string that was originally input as “HELLO!” By six characters 66, 66,... On the main image is changed to a character string of “HELP!” By five characters 66, 66,. The rewritten screen is displayed, and the OSD display is released. Further, the CPU 18 controls the memory control circuit 28 to transfer the JPEG compressed image file stored in the compressed image file storage area 30b of the SDRAM 30 to the memory card 48. The JPEG compressed image file transferred to the memory card 48 is recorded in the area where the JPEG compressed image file was recorded before the characters 66 were edited in the character editing mode. Thus, the contents of the JPEG compressed image file are updated.
[0053]
In the character editing mode, not only can the character 66 already overwritten be rewritten or erased, but also a new character can be added to a place where the character 66 has not been overwritten. In this case, a new character is added by the same procedure as in the above-described character input mode.
[0054]
In order to realize the character input function in this embodiment, the CPU 18 operates as follows according to a control program stored in a program memory 18b incorporated therein.
[0055]
That is, when the character input mode is selected, the CPU 18 proceeds to step S1 in FIG. 9 and displays the above-described cursor setting screen in FIG. 3A on the liquid crystal monitor 40 by OSD (strictly speaking, this cursor setting screen). Is generated and input to the OSD memory 36). Then, the CPU 18 proceeds to step S3 and waits for any key operation.
[0056]
When any key operation is performed in step S3, the CPU 18 proceeds to step S5, and determines the content of the key operation. Here, if it is determined that the mode key 50 has been pressed, the CPU 18 proceeds to step S7. Then, in step S7, the OSD display is released, and a series of processes in the character input mode is terminated.
[0057]
On the other hand, when determining in step S5 that the cross key 54 has been operated, the CPU 18 proceeds to step S9 to move the cursor 60 in accordance with the operation of the cross key 54. Then, in step S11, the position of the cursor 60 after the movement is stored in the cache memory 18a, and the process returns to step S3.
[0058]
Further, when the set key 52 is pressed in step S5, the CPU 18 proceeds to step S13. Then, in this step S13, after the character input screen of FIG. 3B is displayed by OSD, the process proceeds to step S15, and waits for any key operation.
[0059]
When any key operation is performed in step S15, the CPU 18 proceeds to step S17, and determines the content of the key operation. Here, when the cross key 54 is operated, the CPU 18 proceeds to step S19, and moves the pointer 64 according to the operation of the cross key 54. Then, after the processing in step S19, the CPU 18 returns to step S15.
[0060]
On the other hand, if it is determined in step S15 that the set key 52 has been pressed, the CPU 18 proceeds to step S21. Then, in step S21, the character 66 corresponding to the character 62 selected by the pointer 64 is overwritten on the main image, and then the process proceeds to step S23.
[0061]
In step S23, the CPU 18 compresses the portion of the main image over which the character 66 has been overwritten (strictly, the compression is performed by the compression / expansion circuit 44). Then, the CPU 18 proceeds to step S25, assigns the above-mentioned identification number n to the compressed character file generated by the compression processing, generates APP [n], and caches the APP [n] in step S27. It is temporarily stored in the memory 18a. Further, in step S29, the CPU 18 moves the cursor 60 to the right by one character of the character 66, and then returns to step S15.
[0062]
When the mode key 50 is pressed in step S15, the CPU 18 proceeds to step S31 in FIG. In this step S31, the CPU 18 determines whether or not one or more characters have been input (overwritten) on the character input screen of FIG. 3B. Here, if it is determined that no character has been input, the CPU 18 returns to step S1 of FIG. 9 and displays the cursor setting screen shown in FIG. 3A again.
[0063]
On the other hand, if it is determined in step S31 that one or more characters have been input, the CPU 18 proceeds to step S33. Then, in this step S33, after the input confirmation screen of FIG. 3E is displayed by OSD, the process proceeds to step S35 to wait for any key operation.
[0064]
If any key operation is performed in step S35, the CPU 18 proceeds to step S37 to determine the contents of the key operation. Here, if it is determined that the mode key 50 has been pressed, the CPU 18 proceeds to step S39. Then, in this step S39, after referring to the position of the cursor 60 stored in the cache memory 18a in the above-mentioned step S11, the process returns to step S13 in FIG. 9, and the character input screen is displayed again. At this time, the CPU 18 sets the display position of the cursor 60 on the character input screen based on the reference result in step S39.
[0065]
On the other hand, when determining in step S37 that the cross key 54 has been operated, the CPU 18 proceeds to step S41. Then, in this step S41, after the pointer 76 is moved according to the operation of the cross key 54, the process returns to step S35.
[0066]
Further, when the set key 52 is pressed in step S37, the CPU 18 proceeds to step S43. Then, in this step S43, it is determined whether or not the character string 72 of "OK" has been selected on the input confirmation screen. If the character string 72 has been selected, the process proceeds to step S45. In this step S45, the CPU 18 embeds the APP [n] stored in the cache memory 18a into the currently reproduced JPEG compressed image file. Then, the CPU 18 proceeds to step S47, deletes the APP [n] stored in the cache memory 18a, and ends the series of processing in this character input mode via step S7 in FIG.
[0067]
In step S43, if the character string 72 of "OK" is not selected on the input confirmation screen, that is, if the character string 74 of "CANCEL" is selected, the CPU 18 proceeds to step S49. Then, in this step S49, after APP [n] stored in the cache memory 18a is deleted, the process proceeds to step S51, and the main image is redrawn. After the processing in step S51, the CPU 18 ends the processing in the character input mode via step S7 in FIG.
[0068]
After exiting from the character input mode, the CPU 18 records (overwrites) the JPEG compressed image file stored in the compressed image file storage area 30b of the SDRAM 30 on the memory card 48. As a result, the content of the JPEG compressed image file of the currently reproduced image is updated.
[0069]
Next, the operation of the CPU 18 in the reproduction mode will be described with reference to FIG. When an arbitrary image is reproduced in the reproduction mode, the CPU 18 proceeds to step S61 in FIG. Then, in this step S61, it is determined whether or not APP [n] (strictly, APP [n] representing the character 66) is included in the JPEG compressed image file of the reproduced image.
[0070]
Here, when APP [n] is not included, the CPU 18 proceeds from step S61 to step S63. In step S63, a message indicating that no character has been input in the reproduced image in the character input mode is displayed on the liquid crystal monitor 40 by OSD for a certain period, and a series of steps shown in the flowchart of FIG. Is completed.
[0071]
On the other hand, when APP [n] is included in step S61, the CPU 18 proceeds to step S65. Then, in this step S65, after the character string list screen shown in FIG. 7A is displayed by OSD, the CPU 18 proceeds to step S67 and waits for any key operation.
[0072]
When any key operation is performed in step S67, the CPU 18 proceeds to step S69 and determines the content of the key operation. Here, when determining that the mode key 50 has been pressed, the CPU 18 proceeds to step S71. Then, in step S71, the OSD display on the character string list screen is released, and the series of processing shown in the flowchart of FIG. 11 ends.
[0073]
When the cross key 54 is operated in step S69, the CPU 18 proceeds to step S73. Then, in this step S73, it is determined whether or not there are a plurality of character strings, that is, the combination number m, and if there is a plurality, the process proceeds to step S75. In step S75, the CPU 18 moves the pointer 86 according to the operation of the cross key 54. After the movement of the pointer 86, the CPU 18 returns to step S67. If there is not a plurality of character strings in step S73, that is, if there is one, the CPU 18 skips step S75 and returns directly to step S67.
[0074]
If the set key 52 has been pressed in step S69, the CPU 18 proceeds to step S77. In this step S77, the combination number m of the character string 80, 82 or 84 selected by the pointer 86 on the character string list screen is recognized, and the recognized number m is stored in a predetermined register m 'of the apparatus itself. I do. Then, the CPU 18 proceeds to step S79, sets the index indicating the identification number n to “0” (n = 0), and then in step S81, determines from the JPEG compressed image file of the reproduced image APP [n] according to the identification number n. Read out.
[0075]
After the processing in step S81, the CPU 18 proceeds to step S83, and compares the combination number m included in the APP [n] read out in step S81 with the number stored in the register m '. Here, when the two match (m = m ′), the CPU 18 recognizes that the read APP [n] is a character string selected on the character string list screen, and proceeds to step S85. Then, in step S85, the compressed data included in the APP [n] is decompressed, and the character reproduced by the decompression process (the portion of 32 pixels wide by 32 pixels including the character 66) is extracted in step S87. Overwrite on the image. After the process in step S87, the CPU 18 proceeds to step S89.
[0076]
In step S89, the CPU 18 determines whether or not all APP [n] have been read from the JPEG compressed image file of the reproduced image, specifically, whether or not the current index n has reached its maximum value N. Here, if it is determined that the index n has not yet reached the maximum value N (all the APPs [n] have not been read), the CPU 18 proceeds to step S91 and increments the index n by “1”. , That is, all the character input screens shown in FIG. 3B are displayed, and the process returns to step S81.
[0077]
On the other hand, when determining that the index n has reached the maximum value N (all APP [n] has been read), the CPU 18 proceeds to step S71, cancels the OSD display, and is shown in the flowchart of FIG. A series of processing ends.
[0078]
In step S83, if the combination number m included in APP [n] read in step S81 does not match the number stored in register m ', CPU 18 proceeds to steps S85 and S87. And skips to step S89.
[0079]
Next, the operation of the CPU 18 in the character editing mode will be described. When the character editing mode is selected, the CPU 18 first proceeds to step S101 in FIG. 12, and displays the above-described cursor setting screen in FIG. 8A by OSD. Then, the CPU 18 proceeds to step S103 and waits for any key operation.
[0080]
When any key operation is performed in step S103, the CPU 18 proceeds to step S105, and determines the content of the key operation. Here, when determining that the mode key 50 has been pressed, the CPU 18 proceeds to step S107. Then, in step S107, the OSD display is released, and a series of processes in the character editing mode is ended.
[0081]
On the other hand, when the cross key 54 is operated in step S105, the CPU 18 proceeds to step S109. Then, after moving the cursor 90 according to the operation of the cross key 54 in this step S105, the CPU 18 returns to step S103.
[0082]
Further, when the set key 52 is pressed in step S105, the CPU 18 proceeds to step S113. Then, in this step S113, the edit selection screen of FIG. 8B is displayed by OSD, and the process proceeds to step S115 to wait for any key operation.
[0083]
When any key operation is performed in step S115, the CPU 18 proceeds to step S117, and determines the content of the key operation. Here, when it is determined that the mode key 50 has been pressed, the CPU 18 returns to step S101 and displays the cursor setting screen of FIG. 8A again.
[0084]
On the other hand, if the cross key 54 has been operated in step S117, the CPU 18 proceeds to step S119. Then, in this step S119, after moving the pointer 96 in accordance with the operation of the cross key 54, the CPU 18 returns to step S115.
[0085]
Further, when the set key 52 is pressed in step S117, the CPU 18 proceeds to step S121. Then, in this step S121, it is determined whether or not the one selected by the pointer 96 is the character string 92 of "INSERT". Here, if it is determined that the character string 92 has been selected, the CPU 18 proceeds to step S123. Then, in this step S123, the character input screen of FIG. 8C is displayed by OSD, and then the process proceeds to step S125 to wait for any key operation.
[0086]
When any key operation is performed in step S125, the CPU 18 proceeds to step S127, and determines the content of the key operation. Here, when determining that the mode key 50 has been pressed, the CPU 18 returns to step S113 and displays the edit selection screen of FIG. 8B again.
[0087]
On the other hand, when the cross key 54 is operated in step S127, the CPU 18 proceeds to step S129, and moves the pointer 100 in accordance with the operation of the cross key 54. After the process in step S129, the CPU 18 returns to step S125.
[0088]
Further, if it is determined in step S127 that the set key 52 has been pressed, the CPU 18 proceeds to step S131. Then, in this step S131, it is determined whether or not the character 66 already overwritten exists at the position of the cursor 90. Here, if the character 66 exists, the CPU 18 proceeds to step S133 in FIG.
[0089]
In step S133, the CPU 18 recognizes APP [n] of the character 66 located at the position of the cursor 90. Then, the CPU 18 proceeds to step S135, and deletes the recognized APP [n] from the JPEG compressed image file. Further, the CPU 18 proceeds to step S137, and redraws the currently reproduced main image. Then, the process proceeds to step S139, and a portion of 32 pixels wide by 32 pixels long including the character 66 is redrawn based on the APP [n] after the partial APP [n] has been deleted.
[0090]
Further, the CPU 18 proceeds to step S141, overwrites the character 66 corresponding to the character 98 selected by the pointer 100 on the main image, and then proceeds to step S143. In step S143, the CPU 18 compresses the portion of the main image where the character 66 has been overwritten. Then, the CPU 18 proceeds to step S145 to add an identification number n to the compressed character file generated by the compression processing to generate APP [n], and then, in step S147, converts the APP [n] to a JPEG compressed image. Embed in file.
[0091]
Then, in step S149, the CPU 18 moves the cursor 90 to the right by one character of the character 66, returns to step S101 in FIG. 12, and displays the cursor setting screen in FIG. 8A again.
[0092]
If the character 66 does not exist at the position of the cursor 90 in the above-described step S131, the CPU 18 skips steps S133 to S139 in FIG. 13 and proceeds to step S141.
[0093]
In step S121 in FIG. 12, when the character string 92 selected by the pointer 96 in FIG. 8B is not the character string 92 “INSERT”, that is, when the character string 94 “DELETE” is selected, the CPU 18 It proceeds to step S151 in FIG. Then, in this step S151, it is determined whether or not the character 66 already overwritten exists at the position of the cursor 90. If the character 66 exists, the CPU 18 proceeds to step S153.
[0094]
In step S153, the CPU 18 recognizes APP [n] of the character 66 located at the position of the cursor 90. Then, the process proceeds to step S155, where the CPU 18 deletes the recognized APP [n] from the JPEG compressed image file. Further, the CPU 18 proceeds to step S157, and redraws the currently reproduced main image. Then, the process proceeds to step S159 to re-draw a portion of 32 pixels × 32 pixels including the character 66 based on the APP [n] after the partial APP [n] has been deleted. It returns to step S101.
[0095]
If the character 66 does not exist at the position of the cursor 90 in step S151, the CPU 18 skips steps S153 to S159 in FIG. 14 and returns directly to step S101.
[0096]
As can be understood from the above description, according to the character input function of this embodiment, the option marker of the JPEG compressed image file including the compressed image data of the main image is provided with the characters 66, 66,.・ ・ Data is embedded. That is, the data of the main image and the data of the characters 66, 66,... Are individually recorded. Therefore, each character 66, 66,... Overwritten on the main image can be individually edited. In addition, since each character 66 is recorded not as character data but as image data of 32 pixels wide by 32 pixels long including the character 66, even in an environment where specific font data is not prepared, the character 66 is not recorded. Can be reproduced.
[0097]
In this embodiment, the case where the present invention is applied to the digital camera 10 has been described. For example, the present invention can be applied to a mobile phone having a digital camera function. Further, the present invention is not limited to a device having a digital camera, but may be applied to any device having a function of inputting arbitrary characters on an existing image.
[0098]
Further, the characters that can be input to the image are limited to the characters according to the ASCII code, but are not limited to this. That is, characters that are not represented by alphabets such as hiragana and kanji may be input.
[0099]
The size of the input character 66 is set to 32 pixels wide by 32 pixels high, but may be other size. However, in the JPEG method, compression processing is performed with one unit of 8 pixels in the horizontal direction and 8 pixels in the vertical direction. Therefore, it is desirable to express the character 66 by the number of pixels of multiples of 8 in both the vertical and horizontal directions.
[Brief description of the drawings]
FIG. 1 is a block diagram showing a schematic configuration of an embodiment of the present invention.
FIG. 2 is a rear view of the digital camera according to the embodiment shown in FIG. 1;
FIG. 3 is an illustrative view showing a display example of a screen in a character input mode in the embodiment of FIG. 1;
FIG. 4 is an illustrative view showing a state where characters are overwritten on a main image in the embodiment of FIG. 1;
FIG. 5 is an illustrative view showing a configuration of a JPEG compressed image file in the embodiment of FIG. 1;
FIG. 6 is an illustrative view showing details of an option marker in FIG. 5;
FIG. 7 is an illustrative view showing a display example of a screen in a reproduction mode in the embodiment of FIG. 1;
FIG. 8 is an illustrative view showing a display example of a screen in a character editing mode in the embodiment of FIG. 1;
FIG. 9 is a flowchart showing the operation of the CPU in the character input mode in the embodiment of FIG. 1;
FIG. 10 is a flowchart following FIG. 9;
FIG. 11 is a flowchart showing the operation of the CPU in the reproduction mode in the embodiment of FIG.
FIG. 12 is a flowchart showing the operation of the CPU in the character editing mode in the embodiment of FIG. 1;
FIG. 13 is a flowchart following FIG. 12;
FIG. 14 is a flowchart different from FIG. 13 following FIG. 12;
[Explanation of symbols]
10. Digital camera
16 ... Main switch
18 CPU
28 ... Memory control circuit
30 ... SDRAM
34 ... mixing circuit
36 ... OSD memory
40 ... LCD monitor
44… Compression / decompression circuit
48… Memory card
56… EEPROM

Claims (5)

第1画像信号を記録媒体に記録する第1記録手段、
前記第1画像信号の少なくとも一部をメモリに書き込む第1書き込み手段、
前記メモリに書き込まれた第1画像信号に第2画像信号を上書きして合成画像信号を生成する第1上書き手段、および
前記第1上書き手段によって生成された前記合成画像信号を前記記録媒体に記録する第2記録手段を備える、画像処理装置。
First recording means for recording the first image signal on a recording medium,
First writing means for writing at least a part of the first image signal into a memory;
First overwriting means for overwriting the first image signal written in the memory with a second image signal to generate a combined image signal, and recording the combined image signal generated by the first overwriting means on the recording medium An image processing apparatus, comprising:
前記第1記録手段は前記第1画像信号を所定方式で圧縮する第1圧縮手段を含み、
前記第2記録手段は前記合成画像信号を前記所定方式で圧縮する第2圧縮手段を含む、請求項1記載の画像処理装置。
The first recording means includes first compression means for compressing the first image signal in a predetermined format,
2. The image processing apparatus according to claim 1, wherein the second recording unit includes a second compression unit that compresses the composite image signal in the predetermined format.
前記第1記録手段は前記第1圧縮手段によって生成された圧縮第1画像信号を含む画像ファイルを前記記録媒体内に作成する作成手段をさらに含み、
前記第2記録手段は前記第2圧縮手段によって生成された圧縮合成画像信号を前記画像ファイルに埋め込む埋め込み手段をさらに含む、請求項2記載の画像処理装置。
The first recording unit further includes a creation unit that creates an image file including the compressed first image signal generated by the first compression unit in the recording medium,
3. The image processing apparatus according to claim 2, wherein the second recording unit further includes an embedding unit that embeds the compressed combined image signal generated by the second compression unit in the image file.
前記第2画像信号は第1数のテキスト画像を含み、
前記第2圧縮手段は前記第1数よりも小さい第2数の前記テキスト画像毎に前記合成画像信号を圧縮する、請求項2または3記載の画像処理装置。
The second image signal includes a first number of text images;
The image processing apparatus according to claim 2, wherein the second compression unit compresses the synthesized image signal for each of a second number of the text images smaller than the first number.
前記第1画像信号を前記記録媒体から再生する第1再生手段、
前記第1再生手段によって再生された第1画像信号を前記メモリに書き込む第2書き込み手段、
前記合成画像信号を前記記録媒体から再生する第2再生手段、および
前記第2再生手段によって再生された合成画像信号を前記メモリに書き込まれた第1画像信号に上書きする第2上書き手段をさらに備える、請求項1ないし4のいずれかに記載の画像処理装置。
First reproducing means for reproducing the first image signal from the recording medium;
Second writing means for writing the first image signal reproduced by the first reproduction means into the memory;
A second reproducing unit that reproduces the composite image signal from the recording medium; and a second overwriting unit that overwrites the first image signal written in the memory with the composite image signal reproduced by the second reproducing unit. The image processing apparatus according to claim 1.
JP2002208656A 2002-07-17 2002-07-17 Image processing device Expired - Fee Related JP3995547B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2002208656A JP3995547B2 (en) 2002-07-17 2002-07-17 Image processing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2002208656A JP3995547B2 (en) 2002-07-17 2002-07-17 Image processing device

Publications (2)

Publication Number Publication Date
JP2004056301A true JP2004056301A (en) 2004-02-19
JP3995547B2 JP3995547B2 (en) 2007-10-24

Family

ID=31932742

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2002208656A Expired - Fee Related JP3995547B2 (en) 2002-07-17 2002-07-17 Image processing device

Country Status (1)

Country Link
JP (1) JP3995547B2 (en)

Also Published As

Publication number Publication date
JP3995547B2 (en) 2007-10-24

Similar Documents

Publication Publication Date Title
US8059182B2 (en) Display apparatus, display method, program and storage medium
US6014170A (en) Information processing apparatus and method
CN1164098C (en) Imaging device and signal processing method
US20050264669A1 (en) Apparatus and method for image processing
JP2005328241A (en) Imaging apparatus and user interface
US6980700B2 (en) Image processing apparatus and method of storage medium
JPH1118044A (en) Digital still camera
US6038365A (en) Image retrieval-oriented processing apparatus which generates and displays search image data that is used as index
JPWO2009087962A1 (en) Image processing device
JP2004208291A (en) Digital imaging device and method for controlling it
JP2007096574A (en) Image display device and program
JP3995547B2 (en) Image processing device
JP2010049317A (en) Display device
JPH05284448A (en) Electronic still camera
JP4567937B2 (en) Moving picture reproducing apparatus and moving picture reproducing method
JP2008182513A (en) Imaging apparatus with information writing function
JP4027254B2 (en) Image processing device
JP2010119139A (en) Image-reproducing device
JP4152183B2 (en) Image processing device
JP3515424B2 (en) Digital camera
JP2003153157A (en) Digital still camera
JP4192487B2 (en) Image processing method
JPH10164498A (en) Image-recording controller and recording medium
JP2005051279A (en) Method of setting display direction of static image
JP4476369B2 (en) Information processing device

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20050614

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20070403

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20070410

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20070611

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20070731

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

Free format text: PAYMENT UNTIL: 20100810

Year of fee payment: 3

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

Free format text: PAYMENT UNTIL: 20100810

Year of fee payment: 3

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

Free format text: PAYMENT UNTIL: 20100810

Year of fee payment: 3

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

Free format text: PAYMENT UNTIL: 20110810

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20110810

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20120810

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20130810

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20130810

Year of fee payment: 6

S111 Request for change of ownership or part of ownership

Free format text: JAPANESE INTERMEDIATE CODE: R313113

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

Free format text: PAYMENT UNTIL: 20130810

Year of fee payment: 6

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

LAPS Cancellation because of no payment of annual fees