JP3995547B2 - Image processing device - Google Patents

Image processing device Download PDF

Info

Publication number
JP3995547B2
JP3995547B2 JP2002208656A JP2002208656A JP3995547B2 JP 3995547 B2 JP3995547 B2 JP 3995547B2 JP 2002208656 A JP2002208656 A JP 2002208656A JP 2002208656 A JP2002208656 A JP 2002208656A JP 3995547 B2 JP3995547 B2 JP 3995547B2
Authority
JP
Japan
Prior art keywords
image
character
cpu
overwriting
character 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.)
Expired - Fee Related
Application number
JP2002208656A
Other languages
Japanese (ja)
Other versions
JP2004056301A (en
Inventor
大輔 天野
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
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

Description

【0001】
【発明の属する技術分野】
この発明は、画像処理装置に関し、特にたとえばディジタルカメラに適用され、画像信号を記録媒体に記録する手段を備える、画像処理装置に関する。
【0002】
【従来技術】
ディジタルカメラにおいて、撮影した画像に任意の文字を入力する機能を備えたものがある。この機能を実現する方法として、たとえば画像データ上に文字データを直接上書きする方法があるが、この方法では、一度上書きされた文字データを後で削除したり或いは変更したりすることができない。そこで、従来、別の方法として、画面に表示された画像上にOSD(On Screen Display)技術によって文字を重ね合わせて表示する方法がある。この方法によれば、画像データおよび文字データの各々を別個に取り扱うことができるので、当該文字データを後で任意に編集することができる。
【0003】
【発明が解決しようとする課題】
ところで、最近のディジタルカメラの多くは、撮影した画像をパーソナルコンピュータに転送する機能をも備えている。ここで、上述のOSD技術を利用した従来技術によれば、ディジタルカメラ側で入力された文字をパーソナルコンピュータ側で再現するには、ディジタルカメラ側で使用されているのと同じフォントデータがパーソナルコンピュータ側においても用意されている必要がある。換言すれば、ディジタルカメラ側で文字の入力に使用されたとの同じフォントデータがパーソナルコンピュータ側においても用意されていなければ、パーソナルコンピュータ側で当該文字を再現することができない、という問題がある。
【0004】
それゆえに、この発明の主たる目的は、画像に入力された文字を編集することができ、しかも特定のフォントデータが用意されていない環境下でも当該文字を再現することができる、画像処理装置を提供することである。
【0005】
【課題を解決するための手段】
この発明に従う画像処理装置は、画像ファイルの第1既定位置に格納された第1画像を再生操作に応答して再生する再生手段、再生手段の再生処理に関連して文字入力操作を受け付ける受付手段、文字入力操作に応答して入力された文字を表す第2画像を再生手段によって再生された第1画像上の指定位置に部分的に存在する部分第1画像に上書きして部分合成画像を作成する上書き手段、上書き手段の上書き処理が完了する毎に指定位置を変更する変更手段、および上書き手段によって作成された1または2以上の部分合成画像を文字入力操作の後の埋め込み操作に応答して画像ファイルの第2既定位置に埋め込む埋め込み手段を備える。
【0006】
【作用】
再生手段は、画像ファイルの第1既定位置に格納された第1画像を再生操作に応答して再生する。文字入力操作は、再生手段の再生処理に関連して受付手段によって受け付けられる。上書き手段は、文字入力操作に応答して入力された文字を表す第2画像を再生手段によって再生された第1画像上の指定位置に部分的に存在する部分第1画像に上書きして部分合成画像を作成する。指定位置は、上書き手段の上書き処理が完了する毎に、変更手段によって変更される。埋め込み手段は、上書き手段によって作成された1または2以上の部分合成画像を、文字入力操作の後の埋め込み操作に応答して画像ファイルの第2既定位置に埋め込む。
【0007】
好ましくは、第1画像は所定方式で圧縮された状態で画像ファイルに格納され、上書き手段によって作成される部分合成画像は所定方式で圧縮された画像である。
【0011】
【発明の効果】
この発明によれば、第1画像と、第1画像一部に第2画像が上書きされた部分合成画像とが、画像ファイルに個別に収められるので、当該第2画像を含む部分合成画像を第1画像とは別個に編集することができる。しかも、特定のフォントデータが用意されていない環境下でも当該第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]
BACKGROUND 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 means for recording an image signal on a recording medium.
[0002]
[Prior art]
Some digital cameras have a function of inputting arbitrary characters into a photographed image. As a method for realizing this function, for example, there is a method of directly overwriting character data on image data. However, with this method, once overwritten character data cannot be deleted or changed later. Therefore, conventionally, 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 have a function of transferring a photographed image to a personal computer. Here, according to the prior art using the OSD technology described above, 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. It needs to be prepared on the side. In other words, there is a problem that if the same font data used for character input on the digital camera side is not prepared on the personal computer side, the character cannot be reproduced on the personal computer side.
[0004]
SUMMARY OF THE INVENTION Therefore, a main object of the present invention is to provide an image processing apparatus capable of editing a character input to an image and reproducing the character even in an environment where specific font data is not prepared. It is to be.
[0005]
[Means for Solving the Problems]
  This inventionThe image processing apparatus according to the present invention includes a reproducing unit that reproduces the first image stored in the first predetermined position of the image file in response to the reproducing operation, a receiving unit that accepts a character input operation in relation to the reproducing process of the reproducing unit, Overwriting to create a partial composite image by overwriting the second image representing the character input in response to the input operation over the partial first image partially existing at the designated position on the first image reproduced by the reproducing means An image file in response to an embedding operation after a character input operation on one or more partial composite images created by the overwriting unit Embedded in the second predetermined position.
[0006]
[Action]
  The reproduction means reproduces the first image stored at the first predetermined position of the image file in response to the reproduction operation. The character input operation is accepted by the accepting means in association with the reproduction process of the reproducing means. The overwriting means overwrites the partial first image partially existing at the designated position on the first image reproduced by the reproduction means with the second image representing the character input in response to the character input operation, and performs partial synthesis. Create an image. The designated position is changed by the changing means every time the overwriting process of the overwriting means is completed. The embedding unit embeds one or more partial composite images created by the overwriting unit in a second predetermined position of the image file in response to the embedding operation after the character input operation.
[0007]
  Preferably, the first image is stored in the image file in a state compressed by a predetermined method, and the partial composite image created by the overwriting means is an image compressed by the predetermined method.
[0011]
【The invention's effect】
  According to this invention, the first pictureStatue and, First imageofPart 2StatueOverwrittenportionComposite imageStatue andBut,Image fileIndividuallyStowThe second pictureStatueIncludeportionComposite imageStatueFirst pictureStatue andCan be edited separately. Moreover, SpecialThe second screen even in environments where certain font data is not preparedTo the statueRepresented bySentenceThe character can be reproduced.
[0012]
The above object, 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 into which an optical image of a subject is incident via a focus lens 12.
[0014]
When the photographing mode for photographing the subject is selected by the main switch 16, the CPU 18 instructs the TG (Timing Generator) 20 to repeat pre-exposure and thinning-out reading. The TG 20 supplies a timing signal corresponding to this command to the image sensor 14, and the image sensor 14 exposes an optical image of the subject according to the supplied timing signal, and a part of the electric charge accumulated by the exposure. Output in the next one frame period. That is, when the shooting mode is initially 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 correlated double sampling processing and gain adjustment processing. , Input to the A / D conversion circuit 24. The A / D conversion circuit 24 converts the input raw image signal into raw image data that 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. Image data (YUV data) processed by the signal processing circuit 26 is temporarily stored in an image data storage area 30a of an SDRAM (Synchronous Dynamic RAM) 30 as a main memory by a memory control circuit 28, and then 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 the OSD memory 36 described later. However, at this time, since no OSD data is input from the OSD memory 36, the image data input from the buffer memory 32 is output as it is from the mixing circuit 34. The image data output from the mixing circuit 34 is input to the video encoder 38, where it is converted into an NTSC composite image signal. The converted composite image signal is input to the liquid crystal monitor 40, whereby a real-time moving image of the subject, 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 enters a recording operation. That is, the CPU 18 instructs the TG 20 to perform main exposure for one frame and all pixel readout. 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 is performed by the image sensor 16, and all 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 input to the A / D conversion circuit 24 where it is converted into raw image data. Then, this raw image data is input to the signal processing circuit 26, 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 out high-resolution image data stored in the image data storage area 30 a according to control by the CPU 18 and inputs the read-out image data to the compression / decompression circuit 44. The compression / decompression circuit 44 is supplied with a compression command from the CPU 18, and the compression / decompression circuit 44 performs a compression process according to a JPEG (Joint Photographic Expert Group) system on the input image data in response to the compression command. . 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. To be recorded.
[0020]
The image (JPEG compressed image file) recorded on the memory card 48 in this way 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 out the JPEG compressed image file. In response to this command, the memory control circuit 28 reads out the JPEG compressed image file from the memory card 48 via the memory interface circuit 46, and once reads the read JPEG compressed image file into the compressed image file storage area 30b in the SDRAM 30. Temporarily store.
[0021]
Then, the memory control circuit 28 inputs the storage of the JPEG compressed image file stored in the compressed image file storage area 30 b to the compression / decompression circuit 44. The compression / decompression circuit 44 is given a decompression command from the CPU 18, and the compression / decompression circuit 44 decompresses the input JPEG compressed image file in response to the decompression command 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. Even 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 as it is from the mixing circuit 34. The image data output from the mixing circuit 34 is input to the video encoder 36 where it is converted into a composite image signal. 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, desired playback images can be displayed one by one, or a plurality of playback images can be displayed in a multi display. In this manner, which playback image is to be displayed can be arbitrarily selected by operating a mode key 50, a set key 52, and a cross key 54, which will be described later, but a detailed description thereof will be omitted.
[0024]
Referring to FIG. 2, mode key 50 and set key 52 are arranged side by side at the upper right position on the back of digital camera 10 together with main switch 16 described above. Below the mode key 50, the set key 52, and the main switch 16, a cross key 54 having four contact points, upper, lower, left, and right is arranged. The shutter switch 42 is provided near the main switch 16 on the upper surface of the digital camera 10. The liquid crystal monitor 40 is provided at a position on the left side of the back surface of the digital camera 10.
[0025]
By the way, the digital camera 10 of this embodiment has a character input function for inputting an arbitrary character (text) to a photographed image. Characters that can be input by this character input function are characters according to 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 order to input a character using this character input function, it is assumed that an image for inputting the character is reproduced.
[0026]
In other words, it is assumed that the reproduction mode is selected by the main switch 16 and an image for inputting characters is 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. 3A is displayed on the liquid crystal monitor 40 as an OSD (overlay) display. 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, the reproduced image according to the image data, that is, the main image of the subject, and the 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 the vertical and horizontal 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 transitions to a character input screen as shown in FIG. . In other words, in addition to the cursor 60, a plurality of characters (including codes) 62, 62,... According to the ASCII code and a rectangular pointer 64 surrounding any one of these characters 62, 62,. , OSD is displayed. Each character 62, 62,... Is displayed based on the character data stored in the EEPROM 56 described above.
[0029]
The pointer 64 on this character input screen is an index for selecting a character to be input on the main image from among a plurality of characters 62, 62,. Moves in the vertical and horizontal directions according to the operation. Here, it is assumed that the character 62 “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 transitions to a state as shown in FIG.
[0030]
That is, in FIG. 3B, the character 66 “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 dimension of the character 66. Move to the right. Here, the character 66 of “H” is not displayed in the OSD but overwritten on the main image. Specifically, the CPU 18 overwrites the character data corresponding to the character 66 on the image data developed in the image data storage area 30 a in the SDRAM 30. 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 is overwritten is displayed on the liquid crystal monitor 40.
[0031]
Note that the character 66 is represented by a total of 1024 pixels of 32 horizontal pixels × 32 vertical pixels as shown in FIG. 4A based on the character data stored in the EEPROM 56 described above. The color of the character 66 itself is white (shown in black in the drawing for the sake of convenience), and the color of the background portion 68 excluding the character 66 itself is a transparent color. Therefore, if there is a striped pattern 70 as shown in FIG. 4B on the main image before the character 66 is overwritten, for example, as shown in FIG. A portion (pixel) overlapping with 66 itself is filled with the character 66 itself, but a portion not overlapping with the character 66 itself appears in the table without being painted.
[0032]
Further, in the state of FIG. 3C, the CPU 18 instructs the compression / decompression circuit 44 to extract a portion of 32 pixels wide × 32 pixels high in which the character 66 is overwritten in the main image (image data) in the JPEG format. Compress according to The so-called compressed character file generated by this compression processing is temporarily stored in the cache memory 18a built therein. 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. The compressed data that is the main body is included.
[0033]
As shown in FIG. 3 (d), 5 "E", "L", "L", "O" and "!" Assume that two characters 66, 66,... Are overwritten successively in this order. Suppose 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 transitions to an input confirmation screen as shown in FIG. That is, a character string 72 “OK” and a character string 74 “CANCEL” are OSD displayed in two upper and lower stages on the main image in which the characters 66, 66,. An elongated rectangular pointer 76 is OSD displayed so as to surround one of the character strings 72 and 74, here the character string 72.
[0034]
The pointer 76 on this input confirmation screen is an index for selecting whether or not to overwrite each character 66, 66,..., And the character strings 72 and 74 are changed according to 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 transitions to a state as shown in FIG. . That is, a screen on which a character string “HELLO!” Represented by six characters 66, 66,... Is input is displayed on the main image, and the OSD display is canceled.
[0035]
At this time, the CPU 18 embeds the above-described six compressed character files stored in its own cache memory 18a in the JPEG compressed image file of the main image currently being reproduced.
[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. As shown in FIG. 6, the CPU 18 assigns an individual identification number n starting from “0” to each compressed character file, 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 portion. The CPU 18 then 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 APP [n] is embedded is input to the memory card 48 by the memory control circuit 28 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,. In other words. The contents of the JPEG compressed image file are updated. By updating the JPEG compressed image file, a series of character input processes in the character input mode is completed.
[0037]
By repeating this series of character input processes, 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 the characters 66, 66,... Input 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 between the characters 66, 66,... Constituting the same character string, and the combination numbers m different between the characters 66, 66,. Is granted.
[0038]
In the input confirmation screen of FIG. 3E, when the set key 52 is pressed in a state where the character string 74 (“CANCEL”) is selected by the pointer 76, all overwritten characters 66, 66 are displayed. Are erased 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]
Now, when an arbitrary image is reproduced in the above-described reproduction mode, if 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. The character string list screen as shown in FIG. That is, one or more character strings input in the character input mode described above on the reproduced main image, here, three character strings 80 “HELLO!”, “GOOD LUCK!”, And “YOO-HOO!” ˜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 in 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, and the character string 80 to 84 is selected according to the operation of the cross key 54. Move up and down to surround either. Here, when the set key 52 is pressed in a state where the character string 80 (“HELLO!”) Is selected by the pointer 86, the screen display of the liquid crystal monitor 40 transitions to a state as shown in FIG. To do. That is, as in FIG. 3F described above, a screen on 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 in FIG. A screen on which a character string “GOOD LUCK!” Is 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 characters “YOO-HOO!” Are displayed on the liquid crystal monitor 40. A screen with the columns entered is displayed.
[0042]
Furthermore, the characters 66, 66,... (Character string) input in the 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 playback 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 the character 66 to be edited, and moves in the vertical and horizontal directions according to the operation of the cross key 54.
[0043]
In the cursor setting screen of FIG. 8A, in the state where the character 66 “L” positioned fourth from the top of each character 66, 66,... Assume that 52 is pressed. Then, the screen display of the liquid crystal monitor 40 transitions to an edit selection screen as shown in FIG. That is, in addition to the cursor 90, a character string 92 “INSERT” and a character string 94 “DELETE” are OSD-displayed in two upper and lower rows, and one of these character strings 92 and 94, which is a character here. An elongated rectangular pointer 96 is displayed in an OSD so as to surround the column 92. Note that the pointer 96 moves up and down so as to surround one of the character strings 92 and 94 in accordance with the operation of the cross key 54.
[0044]
This edit selection screen is a screen for selecting the edit contents to be executed from now on. Specifically, whether the character 66 selected on the cursor setting screen in FIG. 8A is rewritten (Insert), or This is a screen for selecting whether or not to delete the selected character 66. 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, as in the character input screen of FIG. 3B described above, a plurality of characters 98, 98,... According to the ASCII code, and these characters 98, 98, A rectangular pointer 100 surrounding any one of them is OSD-displayed. Note that the pointer 100 moves in the vertical and horizontal directions according to 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 changes to a state as shown in FIG.
[0046]
That is, the fourth character 66 from the beginning which was “L” in FIG. 8C is rewritten to “P”. The list of characters 98, 98,... And the pointer 100 in FIG. 8C are deleted, and the cursor 90 moves to the right by one character 66.
[0047]
The newly rewritten character 66 “P” is not OSD-displayed, but is overwritten on the main image instead of the previous character 66 “L”. 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 head “L” is deleted from the read JPEG compressed image file. The JPEG compressed image file from which APP [n] has been deleted is decompressed by the compression / decompression circuit 44, and the decompressed image data is expanded in the image data storage area 30a of the SDRAM 30 by the memory control circuit 28. Further, the CPU 18 newly overwrites the character data corresponding to the character 66 “P” on the image data developed in the image data storage area 30a. 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 is rewritten to “P” is displayed on the liquid crystal monitor 40.
[0048]
Further, the CPU 18 instructs the compression / decompression circuit 44 to compress the portion of horizontal 32 pixels × vertical 32 pixels rewritten to the character 66 “P” in accordance with the JPEG method. Then, the above-described identification number n is assigned to the compressed character file generated by this compression processing, and a new APP [n] is generated. 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]
The fourth character 66 from the beginning “H” is overwritten with “P”, and the fifth character 66 from the beginning that was initially “O” is shown in FIG. It is assumed that “!” Is overwritten as shown. It is assumed that the set key 52 is pressed in a state where the last character (sixth from the head) “!” Is selected by the cursor 90. Then, the screen display of the liquid crystal monitor 40 transitions to an edit selection screen as shown in FIG.
[0050]
When the set key 52 is pressed in a state where the character string 94 (“DELETE”) is selected by the pointer 96 on the edit selection screen shown in FIG. 8F, the screen display of the liquid crystal monitor 40 is as shown in FIG. Transition to a screen as shown in g). That is, the last character 66 which was “!” In FIG. 8F is deleted from the screen.
[0051]
At this time, the CPU 18 controls the memory control circuit 28 to read out 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 “!” Is deleted from the read JPEG compressed image file. Further, the CPU 18 causes the compression / decompression circuit 44 to decompress the JPEG compressed image file from which APP [n] has been deleted, and causes the memory control circuit 28 to develop the decompressed image data in the image data storage area 30a of the SDRAM 30. The image data developed in the image data storage area 30 a 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 changes to a state as shown in FIG. That is, a character string that was originally input “HELLO!” By six characters 66, 66,... On the main image is changed to a character string “HELP!” By five characters 66, 66,. The rewritten screen is displayed and the OSD display is canceled. 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 30 b 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, 66,. As a result, the contents of the JPEG compressed image file are updated.
[0053]
In the character editing mode, not only the already overwritten character 66 is rewritten or erased, but also a new character can be added at a place where the character 66 is not overwritten. In this case, a new character is added by the same procedure as the character input mode described above.
[0054]
In order to realize the character input function in this embodiment, the CPU 18 performs the following operation in accordance with a control program stored in the program memory 18b built therein.
[0055]
That is, when the character input mode is selected, the CPU 18 proceeds to step S1 in FIG. 9 to display the cursor setting screen in FIG. 3A on the liquid crystal monitor 40 (strictly speaking, this cursor setting screen). OSD data for displaying is generated and input to the OSD memory 36). Then, the CPU 18 proceeds to step S3 and waits for any key operation to be performed.
[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. If it is determined that the mode key 50 has been pressed, the CPU 18 proceeds to step S7. In step S7, the OSD display is canceled and the series of processes in the character input mode is terminated.
[0057]
On the other hand, when determining that the cross key 54 has been operated in step S5, the CPU 18 proceeds to step S9 and moves the cursor 60 in accordance with the operation of the cross key 54. In step S11, the position of the cursor 60 after movement is stored in the cache memory 18a, and then 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. In step S13, the character input screen shown in FIG. 3B is OSD-displayed, and then the process proceeds to step S15 to wait for any key operation to be performed.
[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 in accordance with the operation of the cross key 54. Then, after the process of step S19, the CPU 18 returns to step S15.
[0060]
On the other hand, when determining that the set key 52 has been pressed in step S15, the CPU 18 proceeds to step S21. In step S21, the character 66 corresponding to the character 62 selected by the pointer 64 is overwritten on the main image, and the process proceeds to step S23.
[0061]
In step S23, the CPU 18 compresses the portion of the main image in which the character 66 is overwritten (strictly, the compression is performed by the compression / expansion circuit 44). Then, the CPU 18 proceeds to step S25, assigns the identification number n to the compressed character file generated by the compression process, generates APP [n], and then caches APP [n] in step S27. Temporarily store in the memory 18a. Further, in step S29, the CPU 18 moves the cursor 60 to the right by one 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 step S31, the CPU 18 determines whether or not one or more characters have been input (overwritten) on the character input screen of FIG. If it is determined that no character is input, the CPU 18 returns to step S1 in FIG. 9 and displays the cursor setting screen shown in FIG. 3A again.
[0063]
On the other hand, when determining that one or more characters have been input in step S31, the CPU 18 proceeds to step S33. In step S33, after the OSD display of the input confirmation screen of FIG. 3E is performed, the process proceeds to step S35 and waits for any key operation to be performed.
[0064]
When any key operation is performed in step S35, the CPU 18 proceeds to step S37 and determines the content of the key operation. If it is determined that the mode key 50 has been pressed, the CPU 18 proceeds to step S39. In step S39, after referring to the position of the cursor 60 stored in the cache memory 18a in step S11 described above, the process returns to step S13 in FIG. 9 to display the character input screen 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 that the cross key 54 has been operated in step S37, the CPU 18 proceeds to step S41. In step S41, the pointer 76 is moved in accordance with the operation of the cross key 54, and then 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. In step S43, it is determined whether or not the character string 72 “OK” is selected on the input confirmation screen. If the character string 72 is selected, the process proceeds to step S45. In step S45, the CPU 18 embeds APP [n] stored in the cache memory 18a in the currently reproduced JPEG compressed image file. Then, the CPU 18 proceeds to step S47, deletes APP [n] stored in the cache memory 18a, and then ends the series of processes in this character input mode through step S7 of FIG.
[0067]
If the character string 72 “OK” is not selected on the input confirmation screen in step S43, that is, if the character string 74 “CANCEL” is selected, the CPU 18 proceeds to step S49. In step S49, after deleting APP [n] stored in the cache memory 18a, the process proceeds to step S51 to redraw the main image. After the process of step S51, the CPU 18 ends the process in the character input mode through step S7 of FIG.
[0068]
After exiting this character input mode, the CPU 18 records (overwrites) the JPEG compressed image file stored in the compressed image file storage area 30 b of the SDRAM 30 in the memory card 48. As a result, the contents of the JPEG compressed image file of the currently reproduced image are updated.
[0069]
Next, the operation of the CPU 18 in the playback mode will be described with reference to FIG. When any image is reproduced in the reproduction mode, the CPU 18 proceeds to step S61 in FIG. In 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 characters are input in the character input mode in the reproduced image is displayed on the liquid crystal monitor 40 for OSD for a certain period, and the series shown in the flowchart of FIG. Terminate the process.
[0071]
On the other hand, when APP [n] is included in step S61, the CPU 18 proceeds to step S65. In step S65, after the character string list screen shown in FIG. 7A is OSD-displayed, the CPU 18 proceeds to step S67 and waits for any key operation to be performed.
[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. If it is determined that the mode key 50 has been pressed, the CPU 18 proceeds to step S71. In step S71, the OSD display on the character string list screen is canceled, and the series of processes shown in the flowchart of FIG. 11 is terminated.
[0073]
When the cross key 54 is operated in step S69, the CPU 18 proceeds to step S73. In step S73, it is determined whether there are a plurality of character strings, that is, combination numbers m. If there are a plurality of character strings, the process proceeds to step S75. In step S75, the CPU 18 moves the pointer 86 in accordance with the operation of the cross key 54. After the pointer 86 is moved, the CPU 18 returns to step S67. If there is not a plurality of character strings in step S73, that is, if there is only one, the CPU 18 skips step S75 and directly returns to step S67.
[0074]
If the set key 52 is pressed in step S69, the CPU 18 proceeds to step S77. In 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 ′ included in the character string list screen. To do. Then, the CPU 18 proceeds to step S79 to set an index representing the identification number n to “0” (n = 0), and then in step S81, APP [n] according to the identification number n from the JPEG compressed image file of the reproduced image. Is read.
[0075]
After the processing in step S81, the CPU 18 proceeds to step S83, and compares the combination number m included in APP [n] read 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] constitutes the character string selected on the character string list screen, and proceeds to step S85. In step S85, the compressed data included in the APP [n] is decompressed, and the character (the portion of 32 pixels wide × 32 pixels long including the character 66) reproduced by the decompression process is converted into a book in step S87. Overwrite on the image. After the process of 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. If it is determined that the index n has not yet reached the maximum value N (all APP [n] have not been read), the CPU 18 proceeds to step S91 and increments the index n by “1”. , That is, after all the character input screens of FIG. 3B are displayed, the process returns to step S81.
[0077]
On the other hand, when it is determined that the index n has reached the maximum value N (all APP [n] have 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 described above, if the combination number m included in APP [n] read out in step S81 does not match the number stored in the register m ′, the CPU 18 performs steps S85 and S87. Is skipped and the process proceeds to step S89.
[0079]
Next, the operation of the CPU 18 in the character editing mode will be described. When this 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. Then, the CPU 18 proceeds to step S103 and waits for any key operation to be performed.
[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. If it is determined that the mode key 50 has been pressed, the CPU 18 proceeds to step S107. In step S107, the OSD display is canceled, and the series of processes in the character editing mode ends.
[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 in accordance with the operation of the cross key 54 in 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. In step S113, after the OSD display of the edit selection screen of FIG. 8B is displayed, the process proceeds to step S115 to wait for any key operation to be performed.
[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. If 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 is operated in step S117, the CPU 18 proceeds to step S119. In step S119, after moving the pointer 96 according to the operation of the cross key 54, the CPU 18 returns to step S115.
[0085]
Furthermore, when the set key 52 is pressed in step S117, the CPU 18 proceeds to step S121. In step S121, it is determined whether or not the character string 92 “INSERT” is selected by the pointer 96 described above. If it is determined here that the character string 92 has been selected, the CPU 18 proceeds to step S123. In step S123, the character input screen shown in FIG. 8C is OSD-displayed, and then the process proceeds to step S125 to wait for any key operation to be performed.
[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. If it is determined that the mode key 50 has been pressed, the CPU 18 returns to step S113 and displays the edit selection screen in 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 according to the operation of the cross key 54. Then, after the processing of step S129, the CPU 18 returns to step S125.
[0088]
Further, when determining that the set key 52 has been pressed in step S127, the CPU 18 proceeds to step S131. In step S131, it is determined whether there is a character 66 that has already been overwritten at the position of the cursor 90. If the character 66 is present, the CPU 18 proceeds to step S133 in FIG.
[0089]
In step S133, the CPU 18 recognizes APP [n] of the character 66 existing 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 horizontal 32 pixels × vertical 32 pixels including the character 66 is redrawn based on APP [n] after the partial APP [n] is 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 in which the character 66 is overwritten. Then, the CPU 18 proceeds to step S145 to generate APP [n] by assigning an identification number n to the compressed character file generated by the compression process. Then, in step S147, the CPU 18 converts the APP [n] to a JPEG compressed image. Embed in a file.
[0091]
In step S149, the CPU 18 moves the cursor 90 to the right by one character 66 and then returns to step S101 in FIG. 12 to display the cursor setting screen in FIG. 8A again.
[0092]
If the character 66 does not exist at the position of the cursor 90 in step S131 described above, the CPU 18 skips steps S133 to S139 in FIG. 13 and proceeds to step S141.
[0093]
In addition, when the character string 92 “INSERT” is not selected by the pointer 96 in FIG. 8B in step S121 in FIG. 12, that is, when the character string 94 “DELETE” is selected, the CPU 18 The process proceeds to step S151 in FIG. In step S151, it is determined whether or not the character 66 that has been overwritten already 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 existing at the position of the cursor 90. Then, the CPU 18 proceeds to step S155 to delete 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, and after redrawing the portion of horizontal 32 pixels × vertical 32 pixels including the character 66 based on APP [n] after the partial APP [n] is deleted, FIG. Return 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 directly returns to step S101.
[0096]
As can be seen from the above description, according to the character input function of this embodiment, the characters 66, 66,... Overwritten on the main image in the option marker of the JPEG compressed image file including the compressed image data of the main image.・ ・ Data is embedded. That is, the data of the main image and the data of the characters 66, 66,... Are recorded separately. Therefore, each character 66, 66,... Overwritten on the main image can be individually edited. Moreover, since each character 66 is recorded not as character data but as image data of 32 pixels wide × 32 pixels high including the character 66, the character 66 is recorded even in an environment where specific font data is not prepared. Can be reproduced.
[0097]
In this embodiment, the case where the present invention is applied to the digital camera 10 has been described. However, the present invention is not limited to this. For example, the present invention can be applied to a mobile phone having a digital camera function. The present invention is not limited to a device provided with a digital camera, but can be applied to any device provided with a function of inputting arbitrary characters on an existing image.
[0098]
Further, although the characters that can be input to the image are limited to characters according to the ASCII code, the present invention is not limited to this. That is, it may be possible to input characters expressed in other than the alphabet such as hiragana and kanji.
[0099]
The size of the input character 66 is 32 pixels wide × 32 pixels vertical, but other sizes may be used. However, in the JPEG system, compression processing is performed with 8 pixels in the horizontal direction and 8 pixels in the vertical direction as one unit. Therefore, it is desirable to express the character 66 by the number of pixels that is a multiple 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 of the embodiment of FIG.
FIG. 3 is an illustrative view showing a display example of a screen in a character input mode in the embodiment of FIG. 1;
4 is an illustrative view showing a state in which characters are overwritten on the main image in the embodiment of FIG. 1; FIG.
FIG. 5 is an illustrative view showing a configuration of a JPEG compressed image file in the embodiment of FIG. 1;
6 is an illustrative view showing details of an option marker in FIG. 5; FIG.
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. 1;
12 is a flowchart showing the operation of the CPU in the character editing mode in the embodiment of FIG.
FIG. 13 is a flowchart following FIG. 12;
14 is a flowchart different from FIG. 13 following FIG.
[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 (4)

画像ファイルの第1既定位置に格納された第1画像を再生操作に応答して再生する再生手段、
前記再生手段の再生処理に関連して文字入力操作を受け付ける受付手段、
前記文字入力操作に応答して入力された文字を表す第2画像を前記再生手段によって再生された第1画像上の指定位置に部分的に存在する部分第1画像に上書きして部分合成画像を作成する上書き手段、
前記上書き手段の上書き処理が完了する毎に前記指定位置を変更する変更手段、および 前記上書き手段によって作成された1または2以上の部分合成画像を前記文字入力操作の後の埋め込み操作に応答して前記画像ファイルの第2既定位置に埋め込む埋め込み手段を備える、画像処理装置。
Reproduction means for reproducing the first image stored in the first predetermined position of the image file in response to the reproduction operation;
Accepting means for accepting a character input operation in relation to the reproduction processing of the reproducing means;
A partial composite image is created by overwriting a partial first image partially existing at a specified position on the first image reproduced by the reproduction unit with a second image representing a character input in response to the character input operation. Override means to create,
In response to the embedding operation after the character input operation, the changing unit that changes the designated position every time the overwriting process of the overwriting unit is completed, and one or more partial composite images created by the overwriting unit An image processing apparatus comprising embedding means for embedding in a second predetermined position of the image file .
前記第1画像は所定方式で圧縮された状態で前記画像ファイルに格納され、
前記上書き手段によって作成される部分合成画像は前記所定方式で圧縮された画像である、請求項1記載の画像処理装置。
The first image is stored in the image file in a compressed state by a predetermined method,
The image processing apparatus according to claim 1, wherein the partial composite image created by the overwriting unit is an image compressed by the predetermined method .
画像ファイルの第1既定位置に格納された第1画像を再生操作に応答して再生する再生手段を備える画像処理装置のプロセサに、In a processor of an image processing apparatus provided with reproduction means for reproducing the first image stored in the first predetermined position of the image file in response to the reproduction operation,
前記再生手段の再生処理に関連して文字入力操作を受け付ける受付ステップ、An accepting step of accepting a character input operation in relation to the reproduction process of the reproduction means;
前記文字入力操作に応答して入力された文字を表す第2画像を前記再生手段によって再生された第1画像上の指定位置に部分的に存在する部分第1画像に上書きして部分合成画像を作成する上書きステップ、A partial composite image is created by overwriting a partial first image partially existing at a specified position on the first image reproduced by the reproduction unit with a second image representing a character input in response to the character input operation. Overwrite step to create,
前記上書きステップの上書き処理が完了する毎に前記指定位置を変更する変更ステップ、およびA change step of changing the designated position every time the overwriting process of the overwriting step is completed; and
前記上書きステップによって作成された1または2以上の部分合成画像を前記文字入力操作の後の埋め込み操作に応答して前記画像ファイルの第2既定位置に埋め込む埋め込みステップを実行させるための、画像処理プログラム。An image processing program for executing an embedding step of embedding one or more partial composite images created by the overwriting step at a second predetermined position of the image file in response to an embedding operation after the character input operation .
画像ファイルの第1既定位置に格納された第1画像を再生操作に応答して再生する再生手段を備える画像処理装置によって実行される画像処理方法であって、An image processing method executed by an image processing apparatus including a reproducing unit that reproduces a first image stored in a first predetermined position of an image file in response to a reproduction operation,
前記再生手段の再生処理に関連して文字入力操作を受け付ける受付ステップ、An accepting step of accepting a character input operation in relation to the reproduction process of the reproduction means;
前記文字入力操作に応答して入力された文字を表す第2画像を前記再生手段によって再生された第1画像上の指定位置に部分的に存在する部分第1画像に上書きして部分合成画像を作成する上書きステップ、A partial composite image is created by overwriting a partial first image partially existing at a specified position on the first image reproduced by the reproduction unit with a second image representing a character input in response to the character input operation. Overwrite step to create,
前記上書きステップの上書き処理が完了する毎に前記指定位置を変更する変更ステップ、およびA change step of changing the designated position every time the overwriting process of the overwriting step is completed; and
前記上書きステップによって作成された1または2以上の部分合成画像を前記文字入力操作の後の埋め込み操作に応答して前記画像ファイルの第2既定位置に埋め込む埋め込みステップを備える、画像処理方法。An image processing method comprising: an embedding step of embedding one or more partial composite images created by the overwriting step at a second predetermined position of the image file in response to an embedding operation after the character input operation.
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 JP2004056301A (en) 2004-02-19
JP3995547B2 true 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
JP2004056301A (en) 2004-02-19

Similar Documents

Publication Publication Date Title
US8059182B2 (en) Display apparatus, display method, program and storage medium
US6014170A (en) Information processing apparatus and method
KR100722711B1 (en) Imaging device and signal processing method
US7593045B2 (en) Digital camera, image output method, and program for outputting selected image data
US6980700B2 (en) Image processing apparatus and method of storage medium
US6038365A (en) Image retrieval-oriented processing apparatus which generates and displays search image data that is used as index
JP3972527B2 (en) Imaging apparatus and automatic folder creation method
JP4916553B2 (en) Image processing device
JP2001249653A (en) Picture display method and device, and electronic camera
JP4663662B2 (en) Drawing device
JP2006262442A (en) Image editing apparatus and image editing method
JP2007096574A (en) Image display device and program
JP3995547B2 (en) Image processing device
JP2010049317A (en) Display device
JP4476368B2 (en) Information processing apparatus, information processing method, and recording medium
JP4027254B2 (en) Image processing device
JP4476369B2 (en) Information processing device
JP3661682B2 (en) High-speed image display in digital cameras
JP2009213095A (en) Image file creating apparatus, image file creating method, and program
KR101107928B1 (en) Image processing unit
JP2009021733A (en) Image file generating device, and image file generation program
JP3729200B2 (en) Digital camera
JP4192487B2 (en) Image processing method
JP3832510B2 (en) Digital camera
JP2004364091A (en) Digital imaging machine

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