【0001】
【発明の属する技術分野】
本発明は、デジタルカメラが撮影した画像データを記録媒体に書き込む画像データ書込み方法に関し、更に詳しくは時間的に連続して撮影された動画の画像データを分割して2つの記録媒体に書き込む際に後から時間や手間をかけずに簡単に1つの画像ファイルに編集できるように書き込む画像データ書込み方法に関するものである。
【0002】
【従来の技術】
デジタルカメラが撮影した画像データを記録媒体に書き込む画像データ書込み方法としては、MOディスクとメモリカードの2つの記録媒体を備え、MOディスクの残容量が不十分な場合に、記録媒体をメモリカードに切り替えて動画の画像データ(以下動画像データという)の記録を続行し、MOディスクを交換した後、メモリカードに記録された動画像データを新たなMOディスクに書き戻すデジタルカメラの画像データ書込み方法が知られている(例えば特許文献1参照)。
【0003】
一方、デジタルカメラによって撮影された静止画の画像ファイルには、デジタルカメラから自動的に付与される撮影日付情報が含まれている。この撮影日付情報によって全ての画像を撮影日時順に配列して印刷するプリンタが知られている(例えば特許文献2参照)。
【0004】
【特許文献1】
特開2001−136475号公報
【特許文献2】
特開2002−262222号公報
【0005】
【発明が解決しようとする課題】
上記特許文献1記載の画像データ書込み方法では、撮影終了後に2つの記録媒体(新旧2つのMOディスク)にそれぞれ作成された画像ファイルを1つの画像ファイルに繋げる編集作業が必要になるが、2つの画像ファイルを時間的に連続した動画像データの画像ファイルとして編集するには、時間や手間がかかるという課題がある。
【0006】
また、上記特許文献2に記載されているように、デジタルカメラから自動的に付与される撮影日付情報によって2つの画像ファイルを時間的に連続したものと認識することは可能であるが、動画像データの画像ファイルは一般にパーソナルコンピュータ(以下パソコンという)のハードディスクにコピーしてから編集する関係上、撮影日付情報だけでは他の多くの画像ファイルとの区別が明瞭につかなくなるおそれがある。このため、全ての画像ファイルの画像をサムネイル表示させて確認しなければならず、やはり時間や手間がかかるという欠点がある。
【0007】
本発明は、上記問題点を考慮してなされたものであり、時間的に連続して撮影された動画の画像データを分割して2つの記録媒体に書き込む際に、後から時間や手間をかけることなく簡単に1つの画像ファイルに編集できるように書き込む画像データ書込み方法を提供することを目的とする。
【0008】
【課題を解決するための手段】
上記目的を達成するために、本発明の画像データ書込み方法は、時間的に連続して撮影された動画の画像データを二分割し、その前側部を第1画像ファイルとして第1記録媒体に書き込み、後側部を第2画像ファイルとして第2記録媒体に書き込む画像データ書込み方法において、第1画像ファイルに後側部の画像データが欠落していることを示す後側部欠落情報を設けるとともに、第2画像ファイルに前側部の画像データが欠落していることを示す前側部欠落情報を設けるものである。また、前記後側部欠落情報は、第1画像ファイルのファイル名に含まれ、前記前側部欠落情報は、第2画像ファイルのファイル名に含まれるようにしたものである。
【0009】
また、時間的に連続して撮影された動画の画像データを分割し、その前側部を第1画像ファイルとして第1記録媒体に書き込み、後側部を第2画像ファイルとして第2記録媒体に書き込む画像データ書込み方法において、第1画像ファイル,第2画像ファイルにそれぞれ付加情報を書き込む第1付加情報エリア,第2付加情報エリアを設け、第1付加情報エリアに第2画像ファイルのファイル名を書き込むとともに、第2付加情報エリアに第1画像ファイルのファイル名を書き込むものである。
【0010】
また、時間的に連続して撮影された動画の画像データを分割し、その前側部を第1画像ファイルとして第1記録媒体に書き込み、後側部を第2画像ファイルとして第2記録媒体に書き込む画像データ書込み方法において、第1記録媒体及び第2記録媒体の両方に、第1画像ファイルと第2画像ファイルとの関係を示す情報ファイルをそれぞれ設けたものである。
【0011】
【発明の実施の形態】
本発明を実施したデジタルカメラの外観を示す図1及び図2において、デジタルカメラ10のカメラ本体11の前面の右上部には、対物側ファインダ窓12が設けられており、中央部には、開閉自在にスライド操作される半月状のレンズバリア13が組み付けられている。このレンズバリア13が開放位置にスライド操作された時に、撮影レンズ14、ストロボ発光部15等が露呈する。また、カメラ本体11の上面には、シャッタボタン16が設けられている。
【0012】
カメラ本体11の背面には、接眼側ファインダ窓17,液晶パネル(LCD)18,各種操作を行うための操作ボタン20,カーソル操作ボタン21が設けられている。また、液晶パネル18は、静止画モード時,動画モード時にそれぞれ被写体確認用の画像であるスルー画を表示する電子ビューファインダとして使用される。また、再生モードでは、記録画像の再生表示を行う。また、セットアップモードにおいては、各種設定画面等が表示される。
【0013】
操作ボタン20は、電源ボタン22,モード選択ボタン23,決定ボタン24,書込み指示ボタン25,書込み拒否ボタン26の5つのボタンで構成されている。電源ボタン22は、電源スイッチのオン/オフ切替を行う時に、ユーザに押圧操作される。
【0014】
モード選択ボタン23は、押圧操作する毎に、静止画撮影を行う静止画モード/動画撮影を行う動画モード/記録画像を再生表示する再生モード/各種設定を行うセットアップモード等に順次に切り替わる。なお、モード選択ボタン23は、デフォルトでは静止画モードにセットされている。
【0015】
決定ボタン24は、セットアップモード等で選んだ選択肢を確定する際にユーザによって押圧操作される。また、書込み指示ボタン25は、後述する第2記録媒体への書込み指示を行う際に押圧操作される。また、書込み拒否ボタン26は、第2記録媒体への書込み拒否を行う際に押圧操作される。
【0016】
カーソル操作ボタン21は、円形状のボタンであり、この円周を等分割する上下左右の4箇所が押圧操作部となっており、それぞれを操作することによりカーソルを上下左右に移動させることができる。
【0017】
前述の操作ボタン20,及びカーソル操作ボタン21を操作することにより、各種設定・操作を行うことができる。例えば、モード選択ボタン23を押圧操作してセットアップモードにしたときに、液晶パネル18の設定画面内に表示されたメニューのうち該当する項目にカーソルを移動させ、決定ボタン24を押圧操作することにより、該当する項目が選択されて各種操作を行うことができる。
【0018】
カメラ本体11の側面には、2つのメディアスロット27,28が設けられている。第1のメディアスロット27には、第1記録媒体であるメモリカード29が挿脱され、また第2のメディアスロット28には、第2記録媒体である第1記録媒体と同型のメモリカード30が挿脱される。このメモリカード29,30としては、例えば記録容量128MBのエックスディーピクチャーカード(登録商標,以下xDピクチャーカードという)が使用される。なお、メモリカード29,30の容量は異なっていてもよい。
【0019】
デジタルカメラ10の電気構成を示す図3において、デジタルカメラ10は、撮影レンズ14,絞り部31、シャッタ32、撮像素子としてのCCD33、ドライバ回路34、及びA/Dコンバータ35,システムコントローラ37,静止画処理部38,動画処理部39,第1及び第2のバッファメモリ41,42,静止画圧縮/伸張処理部43,動画圧縮/伸張処理部44,表示制御部46,メディアスロット27,28等から構成されている。
【0020】
CCD33は、数百万画素程度の撮像素子である。ドライバ回路34は、システムコントローラ37からの制御により、露光,CCD33からの撮像信号の読出し処理,素子シャッタ制御,及びCCD33に対する電力供給のオン/オフ制御などの処理を行なう。
【0021】
CCD33は、通常では電源供給がオフされており、シャッタボタン16によるシャッタ・レリーズのオン操作に応じて、ドライバ回路34により電源供給がオンされる。シャッタ32は、システムコントローラ37の制御に応じて開閉し、CCD33からの撮像信号の読出し時(静止画撮影時)には閉じられる。
【0022】
A/Dコンバータ35は、CCD33から読出された撮像信号をデジタル画像データに変換する。また、撮影レンズ14は、図示しないA/F機構によりフォーカス駆動されるように構成されている。
【0023】
第1バッファメモリ41は、静止画処理部38により画像処理された静止画の画像データ(以下静止画像データという)または動画処理部39により画像処理された動画の画像データ(以下動画像データという)を一時的に格納する。第1バッファメモリ41に格納された画像データ(以下、静止画像データと動画像データとを区別しない場合に使う)は、表示制御部46により液晶パネル18に表示される。静止画処理部38及び動画処理部39は、画像処理用CPU及びその制御プログラムを格納したメモリから構成されている。
【0024】
静止画圧縮/伸張処理部43は、第1バッファメモリ41に格納された静止画像データを、例えばJPEG方式により画像圧縮処理して第2バッファメモリ42に格納する。また、静止画圧縮/伸張処理部43は、第2バッファメモリ42に格納された静止画像データを画像伸張処理して、第1バッファメモリ41に格納する。
【0025】
また、動画圧縮/伸張処理部44は、第1バッファメモリ41に格納された動画像データを、例えばモーションJPEG方式により画像圧縮処理して第2バッファメモリ42に格納する。また、動画圧縮/伸張処理部44は、第2バッファメモリ42に格納された動画像データを画像伸張処理して、第1バッファメモリ41に格納する。第2バッファメモリ42は、第1メディアスロット27、第2メディアスロット28に接続されている。
【0026】
システムコントローラ37は、制御用CPU及びその制御プログラムを格納したメモリから構成されており、デジタルカメラ10の全ての動作を制御する。また、システムコントローラ37は、メディアスロット27,28を介してメモリカード29,30の各残容量を監視するメモリ残容量検出部51,記録先(記録媒体)切替部(以下記録切替部という)52及び内蔵タイマ53を有する。メモリ残容量検出部51は、メモリカード29,30が新たなものに交換されたか否かを判定する機能も有する。
【0027】
記録切替部52は、メモリ残容量検出部51からの残容量検知結果に基づいて、メモリカード29の残容量が許容量,例えば1MBより少なくなった時には、メモリカード30への切替え指示(書込み指示ボタン25の押圧操作)を促すメッセージを液晶パネル18に出力するとともに、カメラ本体11に設けられたブザー48を駆動して警告音を出力させる。
【0028】
また、記録切替部52は、書込み指示ボタン25の押圧操作があった場合と、書込み指示ボタン25及び書込み拒否ボタン26のいずれの押圧操作もなく一定時間が経過した場合には、記録先をメモリカード30に切り替える制御を実行する。なお、メモリカード29,30への書込み順序は、デフォルトで第1メディアスロット27(メモリカード29)→第2メディアスロット28(メモリカード30)の順になっているが、ユーザの設定により変更可能である。
【0029】
メモリカード29は、図4に示すように、メディアスロット27とのインターフェース(I/F)55,コントローラ56,メモリ部57から構成されている。メモリ部57は、静止画像データまたは動画像データを記録するユーザ使用領域33aと、ユーザ非使用領域33bとからなる。このユーザ非使用領域33bには、メモリカード29固有のID番号がメモリカード29の工場出荷前に記録される。
【0030】
図5(A)に示すように、メモリ部57に画像データが画像ファイルとして記録される毎に画像ファイルのファイル名がシステムコントローラ37によって付与される。本第1実施形態では、メモリ部57内に完結して1つの画像ファイルとして書き込まれる画像データの画像ファイルについては、撮影した順番に連続した通し番号のファイル名、「DSCF0001. JPG」,「DSCF0002. AVI」,・・・・が付与される。なお、各ファイル名の拡張子は、静止画像データは「. JPG」(JPEG)であり、動画像データは「. AVI」(モーションJPEG)である。
【0031】
動画撮影時には、上述したように、時間的に連続する動画像データがメモリカード29のメモリ部57とメモリカード30のメモリ部58(B)とに二分割されて記録され得るが、分割された前側の動画像データは、例えばファイル名「DSCF1001A. AVI」の画像ファイルとしてメモリ部57に書き込まれ、後側の動画像データは、例えばファイル名「DSCF1001B. AVI」の画像ファイルとしてメモリ部58に書き込まれる。
【0032】
前記ファイル名「DSCF1001A. AVI」,「DSCF1001B. AVI」の「DSCF1001」は、それぞれに共通する主要部であり、メモリ部57,58を通しての通し番号である。これにより、画像ファイルDSCF1001A. AVIと画像ファイルDSCF1001B. AVIとが関連していることを示している。また、主要部に続く従属部のアルファベット「A」,「B」が2つの画像ファイルが時間的に連続するものであり、かつ「A」は続き(後側)の画像データが欠落していることを示し、「B」はその前側の画像データが欠落していることを示している。
【0033】
記録切替部52は消去処理部54を有する。この消去処理部54は、書込み拒否ボタン26が押された際に、その時点からメモリカード30への書込みを停止し、その直後にメモリカード30に既に書き込まれた動画像データを消去する機能を備えている。例えば、本第1実施形態では、画像ファイルDSCF1001B. AVIが消去される。
【0034】
このように構成されたデジタルカメラの作用について説明する。まず、静止画撮影は、シャッタボタン16の押下操作に応じてシャッタ32が閉じることにより実行される。静止画処理部38により処理された静止画像データは、第1バッファメモリ41,画像圧縮/伸張部43及び第2バッファメモリ42を介して、メモリカード29に記録される。静止画再生時には、メモリカード29から読出された画像データは、第2バッファメモリ42,画像圧縮/伸張部43、及び第1バッファメモリ41を介して表示制御部46に送られ、静止画が液晶パネル18上に表示される。
【0035】
動画撮影は、モード選択ボタン23を押圧操作して静止画モードから動画モードに切り替えてから、シャッタボタン16を押すことにより実行される。動画処理部39は、A/Dコンバータ35から得られた動画像データを処理し、第1バッファメモリ41に格納する。動画の撮影時間は、例えば最長2分間であり、撮影途中でもう一度シャッタボタン16を押すと、動画撮影が中止される。動画撮影が終了すると、画像圧縮/伸張部44は、動画像データを圧縮し、第2バッファメモリ42を介してメモリカード29に送出する。
【0036】
残容量検出部51は、常にメモリカード29,30の残容量を監視しているとともに、システムコントローラ37は、圧縮された動画像データのデータサイズから、この動画像データがメモリカード29の残容量に格納され得るか否かを判断する。本第1実施形態では、メモリカード29の残容量は、1MBより多いが、動画像データの全部を書き込むには足りないものとする。なお、メモリカード29の残容量が1MBより少ない場合には、撮影を開始する以前から警告メッセージが液晶パネル18に表示される。
【0037】
動画撮影が終了した直後に、図6のフローチャートに示すように、動画像データのメモリカード29への書込みが開始される。この時、システムコントローラ37は、動画像データの前側部を書き込むための画像ファイルDSCF1001A. AVIをメモリカード29のメモリ部57に作成する。メモリカード29の残容量が1MB未満になった時、記録切替部52は、画像データの記録先をメモリカード29からメモリカード30へ切り替えるようユーザに促すメッセージを液晶パネル18に表示すると同時に、ブザー48を駆動して警告音を出力する。
【0038】
ユーザが書込み指示ボタン25も書込み拒否ボタン26をも押圧操作しないままメモリカード29の残容量が0MBになったら、記録切替部52が画像データの書込み先をメモリカード29からメモリカード30に切り替える。そして、システムコントローラ37は、メモリカード30のメモリ部58に新しい画像ファイルDSCF1001B. AVIを作成し、これに動画像データの後側部を書き込み始める。また、これと同時にタイマ53をリセットして(t=0秒)時間の計測を開始する。
【0039】
ユーザが書込み指示ボタン25を押圧操作すると、動画像データの後側部はそのまま継続してメモリカード30に書き込まれる。また、ユーザがメモリカード30への書込みを行いたくない場合には、書込み拒否ボタン26を押圧操作する。これにより、メモリカード30への動画像データの書込みは中止される。そして、この直後に、メモリカード30に既に書き込まれていた画像ファイルDSCF1001B. AVIが消去処理部54によって消去され、メモリカード30にはじめから何も書き込まれなかったと同じ状態にされる。
【0040】
この後、ユーザは第2メディアスロット28からメモリカード30を引き抜き、代わりにデータ書込みを行いたい別のメモリカードを第2メディアスロット28に挿入する。そして、ユーザが書込み指示ボタン25を押圧操作すると、動画像データの後側部がメモリカードに書き込まれる。これにより、ユーザが意図的に選択した記録媒体に画像データを書き込むことができる。また、データ書込み自体を中止する場合には、もう一度書込み拒否ボタン26を押圧操作する。この場合、メモリカード29に画像ファイルDSCF1001A. AVIが残ったままになるが、ユーザが不用と判断すれば、後で消去すればよい。
【0041】
また、動画像データのメモリカード30への書込みが開始されてから、ユーザが書込み指示ボタン25も書込み拒否ボタン26も押圧操作しないまま、例えば30秒経過した場合(t=30秒)には、動画像データのメモリカード30への書込みは、そのまま継続される。これにより、ユーザのうっかりミス等で書込み指示ボタン25を押さなかった場合でも、動画像データの記録は確実に行われる。もし、不用の動画像データであった場合には、後で消去操作を行えばよい。
【0042】
また、図6には記載してないが、メモリカード30の残容量が、例えば1MBより少なくなった場合や、1MBより多いが書き込むべき動画像データのデータサイズがメモリカード30の残容量より大きい場合には、記録切替部52は、メモリカード30を別のものと交換するように促すメッセージを液晶パネル18に出力する。なお、第1メディアスロット28側のメモリカード29を交換して第1メディアスロット27側の新たなメモリカードに画像データを書き込むようにしてもよい。
【0043】
なお、静止画像データの書込みでは、メモリカード29の残容量が1MB以上あっても、書き込むべき静止画像データのデータサイズがメモリカード29の残容量より大きければ、メモリカード29に書き込むことなく(静止画像データを分割することなく)、画像データの書込み先をメモリカード29からメモリカード30に切り替える。
【0044】
撮影を終了した後、撮影された画像データをパーソナルコンピュータ(以下パソコンという)に取り込んで整理や編集を行う場合について説明する。画像データが書き込まれたメモリカード29,30を第1,第2メディアスロット27,28から引き抜いてから、パソコンのメディアスロットに順次に挿入し、メモリカード29,30の全ファイルをパソコンのハードディスクにコピーする。なお、本第1実施形態では、パソコンのメディアスロットは1個である。
【0045】
分割された動画像データの前側部である画像ファイルDSCF1001A. AVIを開こうとすると、パソコンにインストールされている画像編集用プログラムが起動して、「この動画像データには続きの動画像データがあります。連結しますか?」というメッセージがパソコンのモニタに表示される。
【0046】
ユーザが実行キーを押すと、画像編集用プログラムがハードディスクに記録されている画像データファイルから画像ファイルDSCF1001A. AVIのファイル名「DSCF1001A. AVI」の主要部である「DSCF1001」が同じ画像ファイルを検索し、画像ファイルDSCF1001B. AVIを捜し出す。そして、ファイル名「DSCF1001A. AVI」とファイル名「DSCF1001B. AVI」の従属部「A」,「B」のアルファベット順に、画像ファイルDSCF1001A. AVIと画像ファイルDSCF1001B. AVIとを連結し、連続した動画像データとして新たな画像ファイルDSCF1001. AVIを生成する。
【0047】
ハードディスク内に画像ファイルDSCF1001B. AVIを発見できない場合には、「ファイルが見つかりません。続きの動画像データが記録されたメモリカードをメディアスロットに挿入して下さい。」というメッセージがモニタに表示される。
【0048】
次に、第2実施形態を示す図7及び図8において、デジタルカメラ10で撮影された画像データは、図示のようなファイル構造の画像ファイルDSC001. JPG,DSC002. AVI,・・・,DSC101. AVIとして第1メモリカード61に記録される。これら画像ファイルのファイル名は、静止画,動画の区別なく通し番号になっている。また、これら画像ファイルはすべて画像フォルダ62にまとめて格納される。
【0049】
各画像ファイルは、電子情報技術産業協会(JEIDA)から発表された規格であるエグジフ(Exif)フォーマットで記録される。エグジフフォーマットは、画像データ63に加えてエグジフタグ(Exif Tag)データ64と、インデックス表示等に使用するサムネイル画像データ65とを付加したものである。
【0050】
エグジフタグデータ64には、システムコントローラ37で作成された各種撮影条件データが書き込まれる。このエグジフタグデータ64には、撮影日付、シャッタ速度、絞り値、露光量、レンズF値、焦点距離、ストロボ発光の有無などのエグジフフォーマット規格に沿ったエグジフ固有情報67と、メーカーノートタグ(Maker Note Tag)データ68とが含まれる。メーカーノートタグデータ68とは、各メーカーが自由にメーカー固有の情報を設定できるエリアである。
【0051】
画像ファイルDSC101. AVIを第1メモリカード61に書込み中に第1メモリカード61の残容量がなくなった場合には、第2メモリカード71に後側の画像データが画像ファイルDSC102. AVIとして書き込まれる。そして、画像ファイルDSC101. AVIのメーカーノートタグデータ68に画像ファイルDSC102. AVIのファイル名「DSC102. AVI」を書き込むとともに、画像ファイルDSC102. AVIのメーカーノートタグデータ72に画像ファイルDSC101. AVIのファイル名「DSC101. AVI」を書き込む。なお、ファイル名に加えて相手のメモリカード固有のID番号を書き込むようにすると、画像ファイルのファイル名をたとえ同じにした場合でも、互いに相手の画像ファイルと関連付けることができる。
【0052】
前記第1実施形態と同様に、第1メモリカード61,第2メモリカード71の各画像ファイルをパソコンのハードディスクにコピーして、画像ファイルDSC101. AVI又は画像ファイルDSC102. AVIを開こうとすると、専用の画像編集用プログラムが自動的に起動して相手方の画像ファイルを検索し、画像ファイルDSC101. AVIと画像ファイルDSC102. AVIとを結合する。
【0053】
次に、第3実施形態を示す図9及び図10において、第1メモリカード75には、画像フォルダ76の他に関連情報フォルダ77を設け、第2メモリカード81には、画像フォルダ82の他に関連情報フォルダ83を設けてある。関連情報フォルダ77には、第1メモリカード75の画像ファイルDSC101. AVIと、第2メモリカード81の画像ファイルDSC102. AVIとが時間的に連続する動画像データであることを示す情報ファイルDSC101. AVI+DSC102. AVIが書き込まれている。なお、情報ファイルDSC101. AVI+DSC102. AVIは、画像ファイルDSC101. AVIと画像ファイルDSC102. AVIとが時間的に連続する動画像データであることを模式的に表したもので、実際のファイル形式を示すものではない。
【0054】
撮影終了後に、第2メモリカード81に十分な残容量がある場合には、図11に示すように、デジタルカメラ内でファイル編集を行うことができる。デジタルカメラを操作してファイル結合モードを選択すると、デジタルカメラのシステムコントローラは、第1メモリカード75の関連情報フォルダ77及び第2メモリカード81の関連情報フォルダ83からそれぞれ情報ファイルDSC101. AVI+DSC102. AVIを読み出し、これに基づいて画像ファイルDSC101. AVIと画像ファイルDSC102. AVIとを一つの画像ファイルに結合する。
【0055】
なお、分割された後側の動画像データをメモリカードに書き込む際に、例えば最初の1秒間は、前側の動画像データのうち最後の1秒間の動画像データと同じものを書き込むようにすると、後の手作業による編集で連続した動画像データとする際に、作業が容易となる。
【0056】
以上説明した第1実施形態では、書込み拒否がなされた場合、メモリカード30の画像ファイルDSCF1001B. AVIだけを消去したが、メモリカード29の画像ファイルDSCF1001A. AVI及びメモリカード30の画像ファイルDSCF1001B. AVIの両方を消去するようにしてもよい。この場合、メモリカード30の代わりに第2メディアスロットに新たなメモリカードを挿入してから書込み指示ボタン25を押すと、第2バッファメモリ42から第2メディアスロットを介して一続きの動画像データが新たなメモリカードに書き込まれるようにする。
【0057】
また、上記第1実施形態では、前側の動画像データのファイル名を「DSCF1001A. AVI」とし、後側の動画像データのファイル名を「DSCF1001B. AVI」としたが、前側の動画像データには後側の画像データが欠落していることが分かり、後側の動画像データには前側の動画像データが欠落していることが分かれば、上記の例に限らず、例えば「DSCF1001−1. AVI」,「DSCF1001−2. AVI」などでもよい。
【0058】
また、上記実施形態では、ファイル名を付与する際に、静止画像データと動画像データとを拡張子を除いて区別することなく、通し番号としたが、静止画像データと動画像データとを別々のディレクトリに格納し、なおかつ静止画と動画とを判別できるようなファイル名を付与するようにしてもよい。
【0059】
また、上記実施形態では、書込み先の切替えタイミングの目安とする記録媒体の残容量を1MBとしたが、本発明はこれに限定されることなく、例えば2MBでも、また0.5MBでもよい。また、動画の撮影時間を最長2分間としたが、例えば5分間でも、また1分間でもよい。また、第2のメモリカードに書込みを開始してから、そのまま継続することを判断するまでの時間を30秒としたが、これは一例であって、例えば20秒や40秒でもよい。
【0060】
また、上記実施形態では、記録媒体としてメモリカードを採用し、このメモリカードとしてxDピクチャーカード(登録商標)を想定したが、本発明はこれに限定されることなく、メモリカードとしては、例えばスマートメディア(登録商標)でもよい。また、記録媒体としては、メモリカードではなく、マイクロドライブ(登録商標)など種々のものが使用でき、使用される記録媒体に応じた信号処理手段とインターフェースが適用される。また、2つの記録媒体の組み合わせも、種類,容量など、上記の態様に限定されないのはもちろんである。
【0061】
【発明の効果】
以上詳述したように本発明の画像データ書込み方法によれば、時間的に連続して撮影された動画の画像データを二分割し、第1記録媒体に書き込まれる第1画像ファイルに後側部の画像データが欠落していることを示す後側部欠落情報を設けるとともに、第2記録媒体に書き込まれる第2画像ファイルに前側部の画像データが欠落していることを示す前側部欠落情報を設けたので、時間や手間をかけることなく簡単に第1画像ファイルと第2画像ファイルとを1つの画像ファイルに編集できる。また、後側部欠落情報は、第1画像ファイルのファイル名に含まれ、前側部欠落情報は、第2画像ファイルのファイル名に含まれるようにすると、ファイル名だけで第1画像ファイルと第2画像ファイルとを関連付けることができる。
【0062】
また、第1画像ファイル,第2画像ファイルにそれぞれ付加情報を書き込む第1付加情報エリア,第2付加情報エリアを設け、第1付加情報エリアに第2画像ファイルのファイル名を書き込むとともに、第2付加情報エリアに第1画像ファイルのファイル名を書き込むので、第1画像ファイルと第2画像ファイルとを簡単に1つの画像ファイルに編集できる。
【0063】
また、第1記録媒体及び第2記録媒体の両方に、第1画像ファイルと第2画像ファイルとの関係を示す情報ファイルをそれぞれ設けたので、第1画像ファイルと第2画像ファイルとを簡単に1つの画像ファイルに編集できる。
【図面の簡単な説明】
【図1】デジタルカメラの正面側の外観を示す斜視図である。
【図2】デジタルカメラの背面側の外観を示す斜視図である。
【図3】デジタルカメラの内部構成を示すブロック図である。
【図4】メモリカードの内部構成を示すブロック図である。
【図5】第1実施形態に係るメモリカードのメモリ部のファイル構造の概略を示す説明図である。
【図6】動画像データの書込みに関する手順を示すフローチャートである。
【図7】第2実施形態に係る第1メモリカードの画像ファイルのデータ構造を示す説明図である。
【図8】第2実施形態に係る第2メモリカードの画像ファイルのデータ構造を示す説明図である。
【図9】第3実施形態に係る第1メモリカードの画像ファイルのデータ構造を示す説明図である。
【図10】第3実施形態に係る第2メモリカードの画像ファイルのデータ構造を示す説明図である。
【図11】第3実施形態に係る画像ファイルのファイル編集を示すフローチャートである。
【符号の説明】
10 デジタルカメラ
25 書込み指示ボタン
26 書込み拒否ボタン
27 第1メディアスロット
28 第2メディアスロット
29,30 メモリカード
37 システムコントローラ
51 残容量検出部
52 記録切替部
53 タイマ
54 消去処理部
61,75 第1メモリカード
68,72 メーカーノートタグ
71,81 第2メモリカード
77,83 関連情報フォルダ[0001]
BACKGROUND OF THE INVENTION
The present invention relates to an image data writing method for writing image data captured by a digital camera to a recording medium, and more particularly, when dividing image data of a moving image captured continuously in time into two recording media. The present invention relates to an image data writing method for writing so that it can be easily edited into one image file without taking time and effort later.
[0002]
[Prior art]
An image data writing method for writing image data captured by a digital camera to a recording medium includes two recording media, an MO disk and a memory card. When the remaining capacity of the MO disk is insufficient, the recording medium is used as a memory card. Image data writing method for a digital camera that switches and continues recording of moving image data (hereinafter referred to as moving image data), replaces the MO disk, and then writes the moving image data recorded on the memory card to a new MO disk. Is known (see, for example, Patent Document 1).
[0003]
On the other hand, an image file of a still image shot by a digital camera includes shooting date information automatically given from the digital camera. There is known a printer that arranges and prints all images in order of shooting date and time based on the shooting date information (see, for example, Patent Document 2).
[0004]
[Patent Document 1]
JP 2001-136475 A [Patent Document 2]
Japanese Patent Laid-Open No. 2002-262222
[Problems to be solved by the invention]
In the image data writing method described in Patent Document 1, editing work is required to connect image files respectively created on two recording media (new and old two MO disks) after photographing to one image file. There is a problem that it takes time and effort to edit an image file as an image file of moving image data continuous in time.
[0006]
Further, as described in Patent Document 2, it is possible to recognize that two image files are temporally continuous based on shooting date information automatically given from a digital camera. Data image files are generally copied and then edited on a hard disk of a personal computer (hereinafter referred to as a personal computer), and therefore there is a risk that distinction from many other image files cannot be clearly made only by shooting date information. For this reason, the images of all the image files must be displayed as thumbnails for confirmation, which again has the disadvantage that it takes time and effort.
[0007]
The present invention has been made in consideration of the above-described problems, and it takes time and effort later when dividing image data of moving images taken continuously in time and writing them to two recording media. An object of the present invention is to provide an image data writing method for writing data so that it can be easily edited into one image file.
[0008]
[Means for Solving the Problems]
In order to achieve the above object, the image data writing method of the present invention divides image data of a moving image taken continuously in time into two, and writes the front side portion thereof as a first image file on a first recording medium. In the image data writing method for writing the rear side portion as the second image file to the second recording medium, the rear side portion missing information indicating that the rear side portion of the image data is missing is provided in the first image file, and Front side missing information indicating that front side image data is missing is provided in the second image file. The rear side missing information is included in the file name of the first image file, and the front side missing information is included in the file name of the second image file.
[0009]
In addition, the image data of the moving image taken continuously in time is divided, the front side portion is written as the first image file on the first recording medium, and the rear side portion is written as the second image file on the second recording medium. In the image data writing method, a first additional information area and a second additional information area for writing additional information in the first image file and the second image file are provided, and the file name of the second image file is written in the first additional information area. At the same time, the file name of the first image file is written in the second additional information area.
[0010]
In addition, the image data of the moving image taken continuously in time is divided, the front side portion is written as the first image file on the first recording medium, and the rear side portion is written as the second image file on the second recording medium. In the image data writing method, information files indicating the relationship between the first image file and the second image file are provided on both the first recording medium and the second recording medium.
[0011]
DETAILED DESCRIPTION OF THE INVENTION
1 and 2 showing the appearance of a digital camera embodying the present invention, an objective-side finder window 12 is provided in the upper right part of the front surface of the camera body 11 of the digital camera 10, and an opening and closing is provided in the central part. A half-moon-shaped lens barrier 13 that can be freely slid is assembled. When the lens barrier 13 is slid to the open position, the photographing lens 14, the strobe light emitting unit 15 and the like are exposed. A shutter button 16 is provided on the upper surface of the camera body 11.
[0012]
On the back of the camera body 11, an eyepiece finder window 17, a liquid crystal panel (LCD) 18, an operation button 20 for performing various operations, and a cursor operation button 21 are provided. The liquid crystal panel 18 is used as an electronic viewfinder that displays a through image that is a subject confirmation image in the still image mode and the moving image mode. In the reproduction mode, the recorded image is reproduced and displayed. In the setup mode, various setting screens are displayed.
[0013]
The operation button 20 includes five buttons including a power button 22, a mode selection button 23, a determination button 24, a write instruction button 25, and a write rejection button 26. The power button 22 is pressed by the user when the power switch is turned on / off.
[0014]
Each time the mode selection button 23 is pressed, the mode selection button 23 is sequentially switched to a still image mode for taking a still image, a moving image mode for taking a moving image, a reproduction mode for reproducing and displaying a recorded image, a setup mode for making various settings, and the like. The mode selection button 23 is set to the still image mode by default.
[0015]
The decision button 24 is pressed by the user when confirming the option selected in the setup mode or the like. The write instruction button 25 is pressed when a write instruction to a second recording medium to be described later is performed. The write rejection button 26 is pressed when performing write rejection to the second recording medium.
[0016]
The cursor operation button 21 is a circular button, and four portions on the top, bottom, left, and right that equally divide the circumference serve as pressing operation units. By operating each, the cursor can be moved up, down, left, and right. .
[0017]
Various settings and operations can be performed by operating the operation buttons 20 and the cursor operation buttons 21 described above. For example, when the mode selection button 23 is pressed to enter the setup mode, the cursor is moved to a corresponding item in the menu displayed on the setting screen of the liquid crystal panel 18 and the determination button 24 is pressed. The corresponding item is selected and various operations can be performed.
[0018]
Two media slots 27 and 28 are provided on the side surface of the camera body 11. A memory card 29 as a first recording medium is inserted into and removed from the first media slot 27, and a memory card 30 of the same type as the first recording medium as a second recording medium is inserted into the second media slot 28. It is inserted and removed. As the memory cards 29 and 30, for example, an XD picture card (registered trademark, hereinafter referred to as an xD picture card) having a recording capacity of 128 MB is used. Note that the memory cards 29 and 30 may have different capacities.
[0019]
In FIG. 3 showing the electrical configuration of the digital camera 10, the digital camera 10 includes a photographing lens 14, a diaphragm 31, a shutter 32, a CCD 33 as an image sensor, a driver circuit 34, an A / D converter 35, a system controller 37, a stationary unit. Image processing unit 38, moving image processing unit 39, first and second buffer memories 41, 42, still image compression / decompression processing unit 43, moving image compression / decompression processing unit 44, display control unit 46, media slots 27, 28, etc. It is composed of
[0020]
The CCD 33 is an image pickup device having about several million pixels. Under the control of the system controller 37, the driver circuit 34 performs processing such as exposure, readout processing of an image pickup signal from the CCD 33, element shutter control, and on / off control of power supply to the CCD 33.
[0021]
The power supply of the CCD 33 is normally turned off, and the power supply is turned on by the driver circuit 34 in response to the shutter release operation of the shutter button 16 being turned on. The shutter 32 opens and closes according to the control of the system controller 37, and is closed when the imaging signal is read from the CCD 33 (during still image shooting).
[0022]
The A / D converter 35 converts the imaging signal read from the CCD 33 into digital image data. The photographing lens 14 is configured to be driven by a focus by an A / F mechanism (not shown).
[0023]
The first buffer memory 41 includes still image data processed by the still image processing unit 38 (hereinafter referred to as still image data) or moving image data processed by the moving image processing unit 39 (hereinafter referred to as moving image data). Is temporarily stored. Image data stored in the first buffer memory 41 (hereinafter used when still image data and moving image data are not distinguished) is displayed on the liquid crystal panel 18 by the display control unit 46. The still image processing unit 38 and the moving image processing unit 39 are composed of an image processing CPU and a memory that stores a control program thereof.
[0024]
The still image compression / decompression processing unit 43 performs image compression processing on the still image data stored in the first buffer memory 41 using, for example, the JPEG method, and stores it in the second buffer memory 42. Further, the still image compression / decompression processing unit 43 performs image expansion processing on the still image data stored in the second buffer memory 42 and stores it in the first buffer memory 41.
[0025]
In addition, the moving image compression / decompression processing unit 44 performs image compression processing on the moving image data stored in the first buffer memory 41 using, for example, the motion JPEG method, and stores the compressed data in the second buffer memory 42. In addition, the moving image compression / decompression processing unit 44 performs image expansion processing on the moving image data stored in the second buffer memory 42 and stores it in the first buffer memory 41. The second buffer memory 42 is connected to the first media slot 27 and the second media slot 28.
[0026]
The system controller 37 includes a control CPU and a memory that stores a control program thereof, and controls all operations of the digital camera 10. The system controller 37 also includes a memory remaining capacity detection unit 51 that monitors the remaining capacity of the memory cards 29 and 30 via the media slots 27 and 28, and a recording destination (recording medium) switching unit (hereinafter referred to as a recording switching unit) 52. And a built-in timer 53. The remaining memory capacity detection unit 51 also has a function of determining whether or not the memory cards 29 and 30 have been replaced with new ones.
[0027]
Based on the remaining capacity detection result from the memory remaining capacity detecting unit 51, the recording switching unit 52 performs a switching instruction (writing instruction) to the memory card 30 when the remaining capacity of the memory card 29 is less than an allowable amount, for example, 1 MB. A message prompting the user to press the button 25 is output to the liquid crystal panel 18 and a buzzer 48 provided in the camera body 11 is driven to output a warning sound.
[0028]
Further, the recording switching unit 52 stores the recording destination in the memory when there is a pressing operation of the writing instruction button 25 and when a certain time has passed without any pressing operation of the writing instruction button 25 and the writing rejection button 26. Control to switch to the card 30 is executed. The order of writing to the memory cards 29 and 30 is, by default, in the order of the first media slot 27 (memory card 29) → second media slot 28 (memory card 30), but can be changed according to user settings. is there.
[0029]
As shown in FIG. 4, the memory card 29 includes an interface (I / F) 55 with the media slot 27, a controller 56, and a memory unit 57. The memory unit 57 includes a user use area 33a for recording still image data or moving image data, and a user non-use area 33b. In this user non-use area 33b, an ID number unique to the memory card 29 is recorded before the memory card 29 is shipped from the factory.
[0030]
As shown in FIG. 5A, every time image data is recorded in the memory unit 57 as an image file, the file name of the image file is given by the system controller 37. In the first embodiment, for image files of image data that are completed in the memory unit 57 and written as one image file, the file names of serial numbers that are consecutive in the shooting order, “DSCF0001.JPG”, “DSCF0002. AVI ", ... are given. The extension of each file name is “.JPG” (JPEG) for still image data and “.AVI” (motion JPEG) for moving image data.
[0031]
At the time of moving image shooting, as described above, temporally continuous moving image data can be divided and recorded in the memory unit 57 of the memory card 29 and the memory unit 58 (B) of the memory card 30. The moving image data on the front side is written in the memory unit 57 as an image file having a file name “DSCF1001A.AVI”, for example, and the moving image data on the rear side is written in the memory unit 58 as an image file having a file name “DSCF1001B.AVI”, for example. Written.
[0032]
“DSCF1001” of the file names “DSCF1001A.AVI” and “DSCF1001B.AVI” is a main part common to each, and is a serial number through the memory parts 57 and 58. As a result, the image file DSCF1001A. AVI and image file DSCF1001B. It shows that AVI is related. Further, the alphabets “A” and “B” of the subordinate parts following the main part are two image files that are temporally continuous, and “A” is a missing (rear) image data. “B” indicates that the image data on the front side is missing.
[0033]
The recording switching unit 52 has an erasing processing unit 54. The erasure processing unit 54 has a function of stopping writing to the memory card 30 from that point in time when the write rejection button 26 is pressed, and erasing moving image data already written to the memory card 30 immediately thereafter. I have. For example, in the first embodiment, the image file DSCF1001B. AVI is deleted.
[0034]
The operation of the digital camera configured as described above will be described. First, still image shooting is executed by closing the shutter 32 in response to the pressing operation of the shutter button 16. Still image data processed by the still image processing unit 38 is recorded in the memory card 29 via the first buffer memory 41, the image compression / decompression unit 43, and the second buffer memory 42. At the time of still image reproduction, the image data read from the memory card 29 is sent to the display control unit 46 via the second buffer memory 42, the image compression / decompression unit 43, and the first buffer memory 41, and the still image is displayed on the liquid crystal. It is displayed on the panel 18.
[0035]
Moving image shooting is performed by pressing the mode selection button 23 to switch from the still image mode to the moving image mode and then pressing the shutter button 16. The moving image processing unit 39 processes the moving image data obtained from the A / D converter 35 and stores it in the first buffer memory 41. The moving image shooting time is, for example, a maximum of 2 minutes. If the shutter button 16 is pressed again during shooting, the moving image shooting is stopped. When the moving image shooting is completed, the image compression / decompression unit 44 compresses the moving image data and sends it to the memory card 29 via the second buffer memory 42.
[0036]
The remaining capacity detection unit 51 constantly monitors the remaining capacity of the memory cards 29 and 30, and the system controller 37 determines that the moving image data is the remaining capacity of the memory card 29 from the data size of the compressed moving image data. It can be determined whether or not it can be stored. In the first embodiment, the remaining capacity of the memory card 29 is greater than 1 MB, but it is not sufficient to write all of the moving image data. When the remaining capacity of the memory card 29 is less than 1 MB, a warning message is displayed on the liquid crystal panel 18 before shooting is started.
[0037]
Immediately after the moving image shooting is finished, writing of moving image data to the memory card 29 is started as shown in the flowchart of FIG. At this time, the system controller 37 reads the image file DSCF1001A. The AVI is created in the memory unit 57 of the memory card 29. When the remaining capacity of the memory card 29 becomes less than 1 MB, the recording switching unit 52 displays a message prompting the user to switch the recording destination of the image data from the memory card 29 to the memory card 30 on the liquid crystal panel 18 and at the same time 48 is driven to output a warning sound.
[0038]
When the remaining capacity of the memory card 29 becomes 0 MB without pressing the write instruction button 25 or the write rejection button 26 by the user, the recording switching unit 52 switches the image data write destination from the memory card 29 to the memory card 30. Then, the system controller 37 stores a new image file DSCF1001B. An AVI is created and writing of the rear side of the moving image data is started. At the same time, the timer 53 is reset (t = 0 seconds), and time measurement is started.
[0039]
When the user presses the write instruction button 25, the rear side portion of the moving image data is continuously written to the memory card 30 as it is. If the user does not want to write to the memory card 30, the user presses the write rejection button 26. Thereby, the writing of the moving image data to the memory card 30 is stopped. Immediately after this, the image file DSCF1001B. The AVI is erased by the erasure processing unit 54 and is brought into the same state as when nothing was written in the memory card 30 from the beginning.
[0040]
Thereafter, the user pulls out the memory card 30 from the second media slot 28 and inserts another memory card into which data is to be written into the second media slot 28 instead. When the user presses the write instruction button 25, the rear side portion of the moving image data is written to the memory card. Thereby, the image data can be written on the recording medium intentionally selected by the user. When the data writing itself is to be stopped, the write rejection button 26 is pressed again. In this case, the image file DSCF1001A. The AVI remains, but if the user determines that it is unnecessary, it can be deleted later.
[0041]
In addition, for example, when 30 seconds have passed without the user pressing the write instruction button 25 or the write rejection button 26 after the start of writing the moving image data to the memory card 30 (t = 30 seconds), Writing of moving image data to the memory card 30 is continued as it is. Thereby, even when the writing instruction button 25 is not pressed due to a user's inadvertent mistake or the like, the moving image data is surely recorded. If it is unnecessary moving image data, an erasing operation may be performed later.
[0042]
Although not shown in FIG. 6, when the remaining capacity of the memory card 30 is smaller than 1 MB, for example, the data size of moving image data to be written is larger than 1 MB but larger than the remaining capacity of the memory card 30. In this case, the recording switching unit 52 outputs a message prompting the user to replace the memory card 30 with another one on the liquid crystal panel 18. Note that the memory card 29 on the first media slot 28 side may be replaced to write image data to a new memory card on the first media slot 27 side.
[0043]
In the writing of still image data, even if the remaining capacity of the memory card 29 is 1 MB or more, if the data size of the still image data to be written is larger than the remaining capacity of the memory card 29, it is not written to the memory card 29 (still The image data writing destination is switched from the memory card 29 to the memory card 30 without dividing the image data.
[0044]
A description will be given of a case in which captured image data is taken into a personal computer (hereinafter referred to as a personal computer) and organized and edited after the shooting is finished. The memory cards 29 and 30 in which the image data is written are pulled out from the first and second media slots 27 and 28, and then sequentially inserted into the media slot of the personal computer. All the files on the memory cards 29 and 30 are stored in the hard disk of the personal computer. make a copy. In the first embodiment, the personal computer has one media slot.
[0045]
The image file DSCF1001A. Which is the front side of the divided moving image data. When you try to open AVI, the image editing program installed on your computer starts up, and the message “This video data has the following video data. Do you want to connect?” Is displayed on the computer monitor. Is displayed.
[0046]
When the user presses the execution key, the image editing program is stored in the image file DSCF1001A. The same image file “DSCF1001”, which is the main part of the file name “DSCF1001A.AVI” of the AVI, is searched, and the image file DSCF1001B. Search for AVI. Then, the image file DSCF1001A.AVI is in alphabetical order of the subordinate parts “A” and “B” of the file name “DSCF1001A.AVI” and the file name “DSCF1001B.AVI”. AVI and image file DSCF1001B. AVI and a new image file DSCF1001. Create an AVI.
[0047]
The image file DSCF1001B. If the AVI cannot be found, the message “File not found. Please insert a memory card with recorded moving image data into the media slot.” Is displayed on the monitor.
[0048]
Next, in FIG. 7 and FIG. 8 showing the second embodiment, the image data photographed by the digital camera 10 is an image file DSC001. JPG, DSC002. AVI, ..., DSC101. It is recorded on the first memory card 61 as AVI. The file names of these image files are serial numbers regardless of whether they are still images or moving images. All these image files are stored together in the image folder 62.
[0049]
Each image file is recorded in the Exif format, which is a standard published by the Japan Electronics and Information Technology Industries Association (JEIDA). The Exif format is obtained by adding Exif Tag data 64 in addition to the image data 63 and thumbnail image data 65 used for index display or the like.
[0050]
Various shooting condition data created by the system controller 37 is written in the egif tag data 64. The egif tag data 64 includes egif specific information 67 conforming to the exif format standard such as the shooting date, shutter speed, aperture value, exposure amount, lens F value, focal length, and strobe emission, and manufacturer note tag. (Maker Note Tag) data 68 is included. The manufacturer note tag data 68 is an area where each manufacturer can freely set information unique to the manufacturer.
[0051]
Image file DSC101. When the remaining capacity of the first memory card 61 runs out while writing the AVI to the first memory card 61, the rear image data is stored in the second memory card 71 in the image file DSC102. Written as AVI. Then, the image file DSC101. The image file DSC102. The file name “DSC102.AVI” of the AVI is written and the image file DSC102. The image file DSC 101. Write the AVI file name “DSC101.AVI”. If an ID number unique to the other party's memory card is written in addition to the file name, even if the file names of the image files are the same, they can be associated with each other's image file.
[0052]
Similar to the first embodiment, the image files of the first memory card 61 and the second memory card 71 are copied to the hard disk of the personal computer, and the image file DSC 101. AVI or image file DSC102. When opening the AVI, a dedicated image editing program is automatically activated to search for the image file of the other party, and the image file DSC 101. AVI and image file DSC102. Combine with AVI.
[0053]
Next, in FIGS. 9 and 10 showing the third embodiment, the first memory card 75 is provided with a related information folder 77 in addition to the image folder 76, and the second memory card 81 is provided with the image folder 82. Is provided with a related information folder 83. In the related information folder 77, the image file DSC101. AVI and the image file DSC102. An information file DSC101.., Which indicates that AVI is moving image data continuous in time. AVI + DSC102. AVI is written. The information file DSC101. AVI + DSC102. AVI stores the image file DSC101. AVI and image file DSC102. It is a schematic representation that AVI is moving image data continuous in time, and does not indicate an actual file format.
[0054]
When the second memory card 81 has a sufficient remaining capacity after shooting, file editing can be performed in the digital camera as shown in FIG. When the file combination mode is selected by operating the digital camera, the system controller of the digital camera reads information files DSC 101... From the related information folder 77 of the first memory card 75 and the related information folder 83 of the second memory card 81, respectively. AVI + DSC102. AVI is read out, and based on this, the image file DSC 101. AVI and image file DSC102. Combine AVI and one image file.
[0055]
When writing the divided moving image data to the memory card, for example, if the first one second is written the same as the last one second moving image data among the front moving image data, When continuous moving image data is obtained by later manual editing, the operation becomes easy.
[0056]
In the first embodiment described above, when the write rejection is made, the image file DSCF1001B. Only AVI is deleted, but the image file DSCF1001A. AVI and memory card 30 image file DSCF1001B. Both AVIs may be deleted. In this case, when a new memory card is inserted into the second media slot instead of the memory card 30 and then the write instruction button 25 is pressed, a series of moving image data is transferred from the second buffer memory 42 via the second media slot. Is written to a new memory card.
[0057]
In the first embodiment, the file name of the moving image data on the front side is “DSCF1001A.AVI” and the file name of the moving image data on the rear side is “DSCF1001B.AVI”. If the rear side image data is found to be missing and the rear side moving image data is known to be missing the front side moving image data, the present invention is not limited to the above example. For example, “DSCF1001-1 AVI "," DSCF1001-2. AVI ", etc.
[0058]
In the above embodiment, when assigning the file name, the still image data and the moving image data are made serial numbers without distinguishing them except for the extension, but the still image data and the moving image data are separated from each other. A file name that can be stored in a directory and that can distinguish between a still image and a moving image may be assigned.
[0059]
In the above-described embodiment, the remaining capacity of the recording medium, which is a measure of the write destination switching timing, is 1 MB. However, the present invention is not limited to this, and may be 2 MB or 0.5 MB, for example. In addition, although the video recording time is a maximum of 2 minutes, it may be 5 minutes or 1 minute, for example. In addition, although the time from the start of writing to the second memory card to the determination of continuing as it is is 30 seconds, this is an example, and may be 20 seconds or 40 seconds, for example.
[0060]
In the above embodiment, a memory card is used as a recording medium, and an xD picture card (registered trademark) is assumed as the memory card. However, the present invention is not limited to this, and the memory card is, for example, a smart card. Media (registered trademark) may be used. In addition, various recording media such as a microdrive (registered trademark) can be used as a recording medium, and a signal processing unit and an interface corresponding to the recording medium to be used are applied. Of course, the combination of the two recording media is not limited to the above-described aspect such as the type and capacity.
[0061]
【The invention's effect】
As described above in detail, according to the image data writing method of the present invention, the image data of a moving image taken continuously in time is divided into two, and the rear side portion is added to the first image file written to the first recording medium. The rear side missing information indicating that the image data is missing is provided, and the front side missing information indicating that the front side image data is missing in the second image file written to the second recording medium is provided. Since it is provided, the first image file and the second image file can be easily edited into one image file without taking time and labor. Further, when the rear side missing information is included in the file name of the first image file and the front side missing information is included in the file name of the second image file, the first image file and the first image file are only included in the file name. Two image files can be associated.
[0062]
Further, a first additional information area and a second additional information area for writing additional information in the first image file and the second image file, respectively, are provided, and the file name of the second image file is written in the first additional information area. Since the file name of the first image file is written in the additional information area, the first image file and the second image file can be easily edited into one image file.
[0063]
In addition, since the information files indicating the relationship between the first image file and the second image file are provided on both the first recording medium and the second recording medium, the first image file and the second image file can be easily obtained. Can be edited into one image file.
[Brief description of the drawings]
FIG. 1 is a perspective view showing an external appearance of a digital camera.
FIG. 2 is a perspective view showing the appearance of the back side of the digital camera.
FIG. 3 is a block diagram showing an internal configuration of the digital camera.
FIG. 4 is a block diagram showing an internal configuration of a memory card.
FIG. 5 is an explanatory diagram showing an outline of a file structure of a memory unit of the memory card according to the first embodiment.
FIG. 6 is a flowchart showing a procedure for writing moving image data.
FIG. 7 is an explanatory diagram showing a data structure of an image file of the first memory card according to the second embodiment.
FIG. 8 is an explanatory diagram showing a data structure of an image file of a second memory card according to the second embodiment.
FIG. 9 is an explanatory diagram showing a data structure of an image file of the first memory card according to the third embodiment.
FIG. 10 is an explanatory diagram showing a data structure of an image file of a second memory card according to the third embodiment.
FIG. 11 is a flowchart showing file editing of an image file according to the third embodiment.
[Explanation of symbols]
10 Digital Camera 25 Write Instruction Button 26 Write Reject Button 27 First Media Slot 28 Second Media Slot 29, 30 Memory Card 37 System Controller 51 Remaining Capacity Detection Unit 52 Recording Switching Unit 53 Timer 54 Erase Processing Units 61, 75 First Memory Card 68, 72 Manufacturer note tag 71, 81 Second memory card 77, 83 Related information folder