JP4253206B2 - Digital camera - Google Patents
Digital camera Download PDFInfo
- Publication number
- JP4253206B2 JP4253206B2 JP2003101424A JP2003101424A JP4253206B2 JP 4253206 B2 JP4253206 B2 JP 4253206B2 JP 2003101424 A JP2003101424 A JP 2003101424A JP 2003101424 A JP2003101424 A JP 2003101424A JP 4253206 B2 JP4253206 B2 JP 4253206B2
- Authority
- JP
- Japan
- Prior art keywords
- image data
- digital camera
- recording medium
- external recording
- storage
- 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
Links
Images
Landscapes
- Television Signal Processing For Recording (AREA)
- Studio Devices (AREA)
Description
【0001】
【発明の属する技術分野】
本発明は、デジタルカメラで撮影した画像の外部記録媒体への記録に関する。
【0002】
【従来の技術】
従来、デジタルカメラで撮影された画像は、デジタルカメラに内蔵されるマイクロコンピュータの制御に基づいて所定の画像処理が施され、デジタルカメラ内のRAMや、MMCカード、SDカード等の外部記録媒体に記録される。デジタルカメラのマイクロコンピュータと外部記録媒体との通信方式には複数の方式が知られている。SDカードとの通信方式には、SDモード、SPIモードがあり、MMCカードとの通信方式には、MMCモード、SPIモードが知られている。これらのモードにはCRC(Cyclic Redundancy Check)によるデータチェック機能が備えられている。CRCは、SDモード、MMCモードにおいては必須の機能であり、SPIモードではオプションの機能である。CRCを用いることにより、外部記録媒体への伝送中におけるデータ化けの発生を検出することができる(非特許文献1、2参照)。
【非特許文献1】
「Interface 2001年11月号」、CQ出版株式会社、2001年11月1日発行、p.168−171
【非特許文献2】
「Interface 2001年12月号」、CQ出版株式会社、2001年12月1日発行、p.137−139
【0003】
【発明が解決しようとする課題】
ところが、CRCは複雑な演算の組合せで構成された検査方法であるため、この機能をソフトウエアで実現しようとすると、ソフトウエアへの負荷は極めて大きくなる。その結果、外部記録媒体へのデータ伝送速度が遅くなるという問題がある。一方、データ伝送の高速化を図るべくCRCの機能を用いないと、データ化けを検出することができず、外部記録媒体に書き込まれた画像データの信頼性は低くなる。すなわち、デジタルカメラで撮影した画像を外部記録媒体に書き込むにあたって、データを高速に伝送し、かつ書き込まれたデータの高い信頼性を得ることはできないという問題があった。
【0004】
本発明は以上の問題を解決するものであり、デジタルカメラの撮影画像を外部記録媒体に高速で伝送し、かつ書き込まれた画像データの信頼性を維持することを目的としている。
【0005】
【課題を解決するための手段】
本発明に係るデジタルカメラは、撮影された画像データが格納される格納手段と、画像データを外部記録媒体へ伝送し、記録させる画像データ記録手段と、格納手段に格納された画像データと、外部記録媒体に記録された画像データとを比較し、その整合性をチェックする比較手段と、比較手段により、格納手段の画像データと、外部記録媒体の画像データが不一致であることが確認されたら、画像データ記録手段を実行し、格納手段の画像データを外部記録媒体の画像データに上書きさせる画像データ修復手段と、電源投入後のデジタルカメラが待機状態のとき、比較手段及び画像データ修復手段の処理を実行させる制御手段とを備えることを特徴とする。
【0006】
好ましくは、格納手段における画像データの格納位置と、外部記録媒体における画像データの格納位置と、画像データのデータサイズと、制御手段の処理の実行の有無、及び処理結果を記録する処理フラグとが、格納手段において画像データと関連付けられて格納される。
【0007】
好ましくは、制御手段は、デジタルカメラが上述の待機状態のとき、比較手段及び画像データ修復手段の処理を、常時、繰り返し実行させる。
【0008】
好ましくは、比較手段は、格納手段における記画像データの格納位置と、外部記録媒体における画像データの格納位置とに基づいて、比較処理を行う。
【0009】
以上のように、本発明によれば、電源投入後のデジタルカメラが待機状態のとき、格納手段に格納された画像データと、外部記録媒体に記録された画像データとを比較し、両者が不一致であることが確認されたら、画像データ修復手段が実行される。従って、画像データの伝送中にデータ化けのチェックを行う場合に比べ、画像データを高速に伝送させることができると共に、外部記録媒体の画像データの信頼性を維持する。
【0010】
格納手段において、格納手段における画像データの格納位置と、外部記録媒体における画像データの格納位置と、画像データのデータサイズと、制御手段の処理の実行の有無、及び処理結果を記録する処理フラグとを、格納手段において画像データと関連付けられて格納させることにより、外部記録媒体の画像データの修復がより正確に実行される。
【0011】
デジタルカメラが電源投入後の待機状態のとき、上述の画像データの比較手段及び画像データ修復手段の処理を、常時、繰り返し実行させることにより、外部記録媒体の画像データの信頼性がより高まる。
【0012】
【発明の実施の形態】
以下、本発明の実施の形態を、図面を参照して説明する。図1は、本発明に係る実施形態が適用されるデジタルカメラとSDカードのブロック図である。デジタルカメラ1のマイクロコンピュータ10は、デジタル信号を高速に処理する画像処理専用DSPを内蔵した公知のプロセッサであり、CPU、RAM、ROM等から構成される。マイクロコンピュータ10はデジタルカメラ1全体の制御を行う。マイクロコンピュータ10には、測光スイッチ20及びレリーズスイッチ30が接続されており、それぞれのオン・オフ信号が入力される。デジタルカメラ1の筐体に設けられるレリーズボタン(図示せず)が半押しされると測光スイッチ20がオンとなり、マイクロコンピュータ10の制御に基づいて測光処理が実行される。レリーズボタンが全押しされるとレリーズスイッチ30がオンとなり、撮影処理が開始される。
【0013】
CCD40の受光面には撮影光学系50により被写体の光学像が結像させられる。レリーズスイッチ30がオンとなり、撮影処理が開始されると、被写体の光学像はCCD40において光電変換され、アナログ画像信号としてCDS/ADユニット回路60に入力される。CDS/ADユニット回路60により、アナログ画像信号はCCD40から発生するアナログ雑音やリセット雑音が低減され、デジタル画像信号に変換される。デジタル画像信号はマイクロコンピュータ10に入力される。
【0014】
マイクロコンピュータ10に入力されたデジタル画像信号は、所定の画像信号処理が施される。画像信号処理が施されたデジタル画像信号は、1フレーム単位の画像データとしてRAM70に格納される。
【0015】
マイクロコンピュータ10には、デジタルカメラ1の筐体に設けられた各種の操作ボタンに連動する操作ボタンスイッチ群80が接続されている。操作ボタンスイッチ群80のオン・オフ状態に応じたマイクロコンピュータ10の制御に基き、RAM70の画像データのSDカード90への書き込み、LCD100における再生等が実行される。
【0016】
コネクタ15を介してデジタルカメラ1に装着されるSDカード90はコントローラ91とフラッシュメモリ92を内蔵する。マイクロコンピュータ10からコントローラ91へ、コマンド、画像データ等が伝送される。コントローラ91は、伝送されてきたコマンドに応じた処理を実行し、例えば画像データ等のフラッシュメモリ92への書込み等を行う。尚、マイクロコンピュータ10とコントローラ91との間の通信はSPIモードで行われる。
【0017】
マイクロコンピュータ10には、デジタルカメラ1の筐体に設けられるモードダイヤルに連動するモードスイッチ110が接続されている。モードダイヤルは、撮影モード、非撮影モードを選択するためのダイヤルである。モードダイヤルで撮影モードが選択されると、モードスイッチ110はオンとなる。
【0018】
図2は、デジタルカメラ1に電源が投入された後、マイクロコンピュータ10に常駐するメインルーチンの処理手順を示すフローチャートである。デジタルカメラの電源がオンされると、ステップS100において、キー入力の有無がチェックされる。キー入力の有無はマイクロコンピュータ10に接続される上述の全てのスイッチの状態をチェックすることにより判断される。すなわち、オン状態のスイッチがあるとき、キー入力有りと判断される。
【0019】
ステップS100でキー入力があったことが確認されると、ステップS102へ進む。ステップS102では、モードスイッチ110がオンしており、撮影モードが設定されているかチェックされる。撮影モードが設定されていることが確認されたら、ステップS104へ進む。ステップS104では、レリーズボタンが全押しされたかチェックされる。レリーズボタンが全押しされたか否かは、キー入力がレリーズスイッチ30がオンしたことによるものなのか否かで判断される。レリーズボタンが全押しされたことが確認されたら、ステップS106へ進む。
【0020】
ステップS106では、撮影処理が実行される。すなわち、CCD40の受光面に結像された被写体像が光電変換され、CDS/ADユニット回路60で上述の処理が施され、マイクロコンピュータ10で所定の画像処理が施される。次いでステップS108へ進み、RAM書込処理が実行される。RAM書込処理で実行されるRAM書込サブルーチンでは、撮影された画像データ、及び画像データをRAM70、SDカード90に記録する際の記録情報がRAM70に保存される。
【0021】
図3は、RAM書込サブルーチンの処理手順を示すフローチャートである。ステップS200で1フレーム分の画像データがRAM70に記録される。次いで、ステップS202〜S208において、画像データと関連付けられる記録情報部へのデータの格納が行われる。この記録情報部は、撮影動作が実行される度にRAM70内において確保されるメモリ領域であり、撮影された画像データ毎に用意される。図4に記録情報部のフォーマットを示す。記録情報部200は、SDカード格納アドレス201、開始アドレス202、データサイズ203、チェック済みフラグ204を有する。SDカード格納アドレス201には、RAM70に記録された画像データをSDカード90のフラッシュメモリ92に記録するときの、フラッシュメモリ92における記録開始アドレスの値が格納される。開始アドレス202には、RAM70における画像データの先頭アドレスの値が格納される。データサイズ203には、画像データのデータ長が格納される。チェック済みフラグ204は、RAM70に記録された画像データと、フラッシュメモリ92に記録される画像データとの整合性がチェックされたか否かを示すフラグである。このフラグの値が「0」のとき、チェック未実施、若しくはチェックした結果、両画像データが不一致であることを示し、「1」のとき、チェックした結果、両画像データが一致したことを示す。尚、画像データの整合性のチェック処理については後述する。
【0022】
図3に示すように、SDカード格納アドレス201への値の格納はステップS202で、開始アドレス202への値の格納はステップS204で、データサイズ203への値の格納はステップS206で、チェック済みフラグ204への値の格納はステップS208で行われる。尚、RAM書込サブルーチンが実行される時点で、画像データはSDカード90のフラッシュメモリ92へは書き込まれておらず、上述のデータ整合性のチェックはまだ実行されていない。従って、ステップS208では、チェック済みフラグ204に「0」がセットされる。
【0023】
ステップS108のRAM書込サブルーチンが終了したら、図2のステップS110へ進む。ステップS110ではSDカード書込処理が実行され、RAM70に書き込まれた画像データと同一の画像データがSDカード90へ書き込まれる。
【0024】
図5は、SD書込処理で実行されるSD書込サブルーチンの処理手順を示すフローチャートであり、図6はデジタルカメラ1のRAM70及びSDカード90のフラッシュメモリ92の内部構成の一部を示す概念図である。図6には画像データP1〜P3がRAM70及びフラッシュメモリ92に書き込まれている状態が示される。画像データの領域は矩形で示されており、左上端部が書き込み開始アドレスの位置である。例えば、RAM70において、画像データP1に関連付けられた記録情報部R1の開始アドレスから延びる矢印で画像データP1の左上端部が指し示され、記録情報部R1のSDカード格納アドレスから延びる矢印で、フラッシュメモリ92の画像データP1の左上端部が指し示されている。画像データP2及びP3も同様である。
【0025】
ここで、図5及び図6を参照しながら、画像データP3を例にとって、SDカード90への書き込みについて説明する。ステップS300において、マイクロコンピュータ10からSDカード90のコントローラ91(図1参照)へ、書込コマンドと、RAM70において画像データP3に関連付けられている記録情報部R3のSDカード格納アドレスが送信される。次いで、ステップS302において、ステップS300で送信した書込コマンドに対するコントローラ91からのレスポンスを受信したかチェックされる。レスポンス受信が確認されるまで当ステップは繰り返し実行される。尚、書込コマンド及びレスポンスにはCRCチェックのためのCRCビットが含まれるが、本実施形態ではCRC機能をオフして通信を行うため、CRCビットはダミーデータである。
【0026】
レスポンス受信が確認されたら、ステップS304へ進む。ステップS304では、レスポンスの内容が、コントローラ91における受信が異常終了したことを示すものかチェックされる。異常終了を示す場合、本ルーチンは終了する。
【0027】
レスポンスが異常終了を示すものでない場合、ステップS306へ進む。ステップS306では、画像データP3の全てのデータ(ブロック)が送信されたかチェックされる。未送信のデータ(ブロック)が存在することが確認されたら、ステップS308へ進み、ダミーデータのCRCと共にデータ送信処理が行われる。次いで、ステップS310へ進む。ステップS310では、ステップS308で行われたデータ送信に対するコントローラ91からのレスポンスの受信処理が行われる。レスポンスに含まれるCRCもダミーデータである。また、SDカード90がビジー状態のとき、ビジー信号を受信し、ビジー状態が解除されるまでウエイト状態となる。データ受信の正常終了のレスポンス、若しくはビジー状態解除のレスポンスを受信したら、ステップS306へ戻り、以降の処理が繰り返される。
【0028】
ステップS306で画像データP3の全ブロックが送信されたことが確認されたら、本サブルーチンは終了し、図2のステップS110へ戻り、次いでステップS100へ戻り、以降の処理が繰り返される。
【0029】
図2のステップS102において、撮影モードが設定されていないことが確認されたら、ステップS112へ進む。また、ステップS104でレリーズボタンが全押しされていないことが確認されたら、ステップS112へ進む。ステップS112では、レリーズボタン全押し以外のキー入力に対応する各種処理、すなわちレリーズスイッチ30以外の上述のスイッチの状態に応じた処理が実行される。キー入力に対応する処理が実行されたらステップS100へ戻り、以降の処理が繰り返される。
【0030】
図2のステップS100で、キー入力が確認されず、マイクロコンピュータ10がキー入力の有無を監視して次の動作指示を待っている状態下のとき、すなわちデジタルカメラ1が待機状態のとき、ステップS114へ進む。本実施形態においては、デジタルカメラ1が待機状態にあるとき、ステップS114で比較処理が実行される。
【0031】
図7は、比較処理で実行される比較サブルーチンの処理手順を示すフローチャートである。本サブルーチンの実行中は、キー入力の割り込み処理が許可されていて、何らかのキー入力があった場合は、キー入力に対応した処理が優先処理される。しかし、それ以外の場合は、RAM70に有効な記録情報部を有する画像データが存在する限り、画像データ毎に繰り返し実行される。ステップS400において、比較すべき画像データの有無を判別する。この判別処理においては、各画像データと関連付けられた上述の記録情報部において、有効な記録情報部が存在しないか、及び、未比較の画像データがないかの2点についてチェックされる。
【0032】
記録情報部のデータが有効であるか否かは、SDカード格納アドレスの値をチェックすることにより判断される。すなわち、SDカード格納アドレスの値がアドレス値でない場合、例えば16進コードの「FFFFFFFF」が格納されている場合、その記録情報部のデータは無効と判断される。なお、記録情報部の生成直後のSDカード格納アドレスの初期値は上記「FFFFFFFF」とされ、別途実行されるSDカードのファイル管理処理(不図示)によって、画像データを格納するSDカード上のアドレスが決まった段階で更新され、記録情報部が有効になる。尚、画像データが比較済みであるか否かの判断については後述する。
【0033】
またマイクロコンピュータ10は、有効な記録情報部が関連付けられている画像データの数を把握しており(図6の例では、P1、P2、P3の3つ)、有効な記録情報部が関連付けられている画像データが全くないこと、または画像データが全て比較済みであることが確認されたら本ルーチンは終了する。
【0034】
ステップS400において、処理すべき画像データが存在することが確認されたらステップS402へ進む。ステップS402では、処理すべき画像データのうちの1つが選択され、その記録情報部が有効か否かチェックされる。有効か否かの判断は、上述のようにSDカード格納アドレスの値に基づいて行われる。
【0035】
記録情報部が有効であることが確認されたら、ステップS404へ進む。ステップS404では、選択してる画像データに対応した記録情報部が読み出され、作業バッファに格納される。次いでステップS406へ進み、チェック済みフラグの値がチェックされる。チェック済みフラグの値が「0」であり、画像データの比較処理が未だ実行されていないか、実行された結果、SDカード90の画像データと不一致であることが確認されたら、ステップS408へ進む。ステップ408では、SDカード読出処理が実行される。
【0036】
図8は、SDカード読出処理で実行されるSDカード読出サブルーチンの処理手順を示すフローチャートである。ステップS500において、マイクロコンピュータ10からSDカード90のコントローラ91(図1参照)へ、読出コマンドと、作業バッファに格納された記録情報部のSDカードデータ格納アドレスが送信される。次いで、ステップS502において、ステップS500で送信した読出コマンドに対するコントローラ91からのレスポンスを受信したかチェックされる。レスポンス受信が確認されるまで当ステップは繰り返し実行される。読出コマンド、及び読出コマンドからのレスポンスに含まれるCRCがダミーデータである点は、上述の書込コマンドの送受信と同様である。
【0037】
レスポンス受信が確認されたら、ステップS504へ進む。ステップS504では、レスポンスの内容が、コントローラ91における受信が異常終了したことを示すものかチェックされる。異常終了を示す場合、本ルーチンは終了する。
【0038】
レスポンスが異常終了を示すものでない場合、ステップS506へ進む。ステップS506では、画像データの全てのデータが受信されたかチェックされる。未受信のデータが存在することが確認されたら、ステップS508へ進み、ダミーデータのCRCを含むデータ受信処理が行われ、受信したデータが作業バッファに格納される。その後、ステップS506へ戻り、以降の処理が繰り返される。すなわち、画像データの全てのデータを受信したことが確認されるまで、ステップS508は繰り返し実行される。ステップS506において、画像データの全データを受信したことが確認されたら、本ルーチンは終了し、図7のステップS408へ戻る。
【0039】
ステップS408のSDカード読出処理が終了したら、ステップS410へ進む。ステップS410では、RAM70の画像データと、SDカード90のフラッシュメモリ92から読み出され、作業バッファに格納された画像データとの比較処理が行われる。RAM70の画像データの格納場所は、作業バッファに格納されている開始アドレスを参照して確認する。
【0040】
次いでステップS412へ進み、ステップS410の比較処理において一致しないデータがあったかチェックされる。一致しないデータがあることが確認されたら、すなわち、SDカード90の記録データにデータ化けが生じたことが検出されたら、ステップS414へ進み、上述のSDカード書込処理が実行され、図5のSDカード書込サブルーチンが実行される。すなわち、RAM70の画像データが、再度、SDカード90へ伝送され、書き込まれる。SDカード書込サブルーチン実行後は、ステップS420へ進み、次に処理すべき画像データの検索を行ってステップS400へ戻る。
【0041】
ステップS412において、データの不一致がないこと(画像データが一致していること)が確認されたらステップS416へ進み、作業バッファに格納された記録情報部に対応する画像データに関連付けられた記録情報部のチェック済みフラグに「1」がセットされる。これにより、SDカード90に画像データと完全に一致する正しい画像データが書き込まれていることが示される。ステップS416の実行後は、ステップS420へ進み、次に処理すべき画像データの検索を行ってステップS400へ戻る。
【0042】
上記比較サブルーチンは、デジタルカメラ1が待機状態にあるときには、全ての画像についてチェック済みフラグ「1」となるまで、繰り返し実行される。なお、RAM70内にて、チェック済みフラグ「1」となった記録情報部の書込領域とその画像データの領域とは、新たに撮影された画像データとその記録情報部を書き込む領域として利用される。
【0043】
以上のように、本実施形態によれば、デジタルカメラ1のマイクロコンピュータ10とSDカード90のコントローラ91との間で送受信されるコマンド及び画像データに含まれるCRCビットはダミーデータであり、マイクロコンピュータ10とコントローラ91との間ではCRC機能をオフしたSPIモードで送受信が行われる。また、デジタルカメラ1に電源が投入された後、キー入力が全くないとき、すなわち待機状態のとき、RAM70に格納された画像データと、SDカード90に記録された画像データの比較処理が行われ、その結果、両者の不一致が確認されると、RAM70の画像データを再度SDカード90へ記録する処理が行われる。その結果、SDカード90への伝送中に画像データが破壊され、そのまま記録されても修復される。従って、CRC機能をオンにしたSPIモードでSDカード90と通信を行う場合に比べ、画像データを高速で伝送することができ、かつ、SDカード90に記録された画像データの信頼性を維持することができる。
【0044】
【発明の効果】
以上のように、本発明によれば、デジタルカメラで撮影された画像を高速で外部記録媒体に記録することができ、かつ、外部記録媒体に記録された画像の信頼性を維持することができる。
【図面の簡単な説明】
【図1】本発明に係る実施形態が適用されるデジタルカメラとSDカードのブロック図である。
【図2】デジタルカメラに常駐するメインルーチンの処理手順を示すフローチャートである。
【図3】画像データをデジタルカメラのRAMに書き込むサブルーチンの処理手順を示すフローチャートである。
【図4】デジタルカメラのRAMにおいて、画像データと関連付けて格納される記録情報部の構成を示す図である。
【図5】画像データをSDカードへ書き込むサブルーチンの処理手順を示すフローチャートである。
【図6】デジタルカメラのRAM及びSDカードのフラッシュメモリの内部構成の一部を示す概念図である。
【図7】デジタルカメラのRAMの画像データと、SDカードのフラッシュメモリの画像データとの比較処理の処理手順を示すフローチャートである。
【図8】SDカードのフラッシュメモリの画像データを読み出すサブルーチンの処理手順を示すフローチャートである。
【符号の説明】
1 デジタルカメラ
10 マイクロコンピュータ
20 測光スイッチ
30 レリーズスイッチ
40 CCD
50 撮影光学系
60 CDS/ADユニット回路
70 RAM
80 操作ボタンスイッチ群
90 SDカード
100 LCD
110 モードスイッチ[0001]
BACKGROUND OF THE INVENTION
The present invention relates to recording an image photographed with a digital camera onto an external recording medium.
[0002]
[Prior art]
Conventionally, an image captured by a digital camera is subjected to predetermined image processing based on control of a microcomputer built in the digital camera, and is stored in an external recording medium such as a RAM, an MMC card, or an SD card in the digital camera. To be recorded. A plurality of systems are known for communication between the microcomputer of the digital camera and the external recording medium. The SD card and the SPI mode are known as the communication method with the SD card, and the MMC mode and the SPI mode are known as the communication method with the MMC card. These modes have a data check function by CRC (Cyclic Redundancy Check). The CRC is an essential function in the SD mode and the MMC mode, and is an optional function in the SPI mode. By using CRC, it is possible to detect the occurrence of garbled data during transmission to an external recording medium (see Non-Patent Documents 1 and 2) .
[Non-Patent Document 1]
“Interface November 2001 issue”, CQ Publishing Co., Ltd., issued November 1, 2001, p. 168-171
[Non-Patent Document 2]
“Interface December 2001 issue”, CQ Publishing Co., Ltd., issued December 1, 2001, p. 137-139
[0003]
[Problems to be solved by the invention]
However, since CRC is an inspection method configured by a combination of complicated operations, if this function is implemented by software, the load on the software becomes extremely large. As a result, there is a problem that the data transmission speed to the external recording medium becomes slow. On the other hand, if the CRC function is not used in order to increase the speed of data transmission, data corruption cannot be detected, and the reliability of image data written on an external recording medium is lowered. That is, when an image photographed with a digital camera is written to an external recording medium, there is a problem that data cannot be transmitted at high speed and high reliability of the written data cannot be obtained.
[0004]
An object of the present invention is to solve the above-described problems, and an object of the present invention is to transmit a captured image of a digital camera to an external recording medium at a high speed and maintain the reliability of written image data.
[0005]
[Means for Solving the Problems]
A digital camera according to the present invention includes storage means for storing captured image data, image data recording means for transmitting and recording image data to an external recording medium, image data stored in the storage means, and external Comparing the image data recorded on the recording medium and checking the consistency thereof, and when the comparing means confirms that the image data of the storage means and the image data of the external recording medium are inconsistent, Image data recovery means for executing image data recording means and overwriting the image data of the storage means on the image data of the external recording medium, and processing of the comparison means and the image data recovery means when the digital camera after power-on is in a standby state And a control means for executing the above.
[0006]
Preferably, the storage position of the image data in the storage means, the storage position of the image data in the external recording medium, the data size of the image data, the presence / absence of execution of the processing of the control means, and the processing flag for recording the processing result The storage means stores the image data in association with the image data.
[0007]
Preferably, when the digital camera is in the above-described standby state, the control unit causes the processing of the comparison unit and the image data restoration unit to be executed repeatedly at all times.
[0008]
Preferably, the comparison unit performs the comparison process based on the storage position of the image data in the storage unit and the storage position of the image data in the external recording medium.
[0009]
As described above, according to the present invention, when the digital camera after power-on is in a standby state, the image data stored in the storage means and the image data recorded on the external recording medium are compared, and the two do not match. If it is confirmed that this is the case, the image data restoration means is executed. Therefore, it is possible to transmit the image data at a higher speed and to maintain the reliability of the image data on the external recording medium as compared with the case of checking for garbled data during the transmission of the image data.
[0010]
In the storage means, the storage position of the image data in the storage means, the storage position of the image data in the external recording medium, the data size of the image data, the presence or absence of execution of the processing of the control means, and the processing flag for recording the processing result Is stored in association with the image data in the storage means, so that the image data on the external recording medium is more accurately restored.
[0011]
When the digital camera is in a standby state after the power is turned on, the reliability of the image data on the external recording medium is further increased by repeatedly executing the processing of the above-described image data comparison unit and image data restoration unit.
[0012]
DETAILED DESCRIPTION OF THE INVENTION
Hereinafter, embodiments of the present invention will be described with reference to the drawings. FIG. 1 is a block diagram of a digital camera and an SD card to which an embodiment according to the present invention is applied. The
[0013]
An optical image of the subject is formed on the light receiving surface of the
[0014]
The digital image signal input to the
[0015]
An operation
[0016]
The
[0017]
A
[0018]
FIG. 2 is a flowchart showing a processing procedure of a main routine that is resident in the
[0019]
If it is confirmed in step S100 that there is a key input, the process proceeds to step S102. In step S102, it is checked whether the
[0020]
In step S106, a photographing process is executed. That is, the subject image formed on the light receiving surface of the
[0021]
FIG. 3 is a flowchart showing the processing procedure of the RAM writing subroutine. In step S200, image data for one frame is recorded in the RAM. Next, in steps S202 to S208, data is stored in the recording information section associated with the image data. This recording information part is a memory area secured in the
[0022]
As shown in FIG. 3, the storage of the value in the SD
[0023]
When the RAM writing subroutine in step S108 is completed, the process proceeds to step S110 in FIG. In step S <b> 110, the SD card writing process is executed, and the same image data as the image data written in the
[0024]
FIG. 5 is a flowchart showing a processing procedure of an SD writing subroutine executed in the SD writing processing, and FIG. 6 is a concept showing a part of the internal configuration of the
[0025]
Here, the writing to the
[0026]
If the response reception is confirmed, the process proceeds to step S304. In step S304, it is checked whether the content of the response indicates that the reception by the
[0027]
If the response does not indicate abnormal termination, the process proceeds to step S306. In step S306, it is checked whether all data (blocks) of the image data P3 have been transmitted. If it is confirmed that untransmitted data (block) exists, the process proceeds to step S308, and data transmission processing is performed together with CRC of dummy data. Next, the process proceeds to step S310. In step S310, a process for receiving a response from the
[0028]
If it is confirmed in step S306 that all the blocks of the image data P3 have been transmitted, this subroutine ends, the process returns to step S110 in FIG. 2, then returns to step S100, and the subsequent processing is repeated.
[0029]
If it is confirmed in step S102 of FIG. 2 that the shooting mode is not set, the process proceeds to step S112. If it is confirmed in step S104 that the release button has not been fully pressed, the process proceeds to step S112. In step S112, various processes corresponding to key inputs other than full release button pressing, that is, processes corresponding to the states of the switches other than the
[0030]
In step S100 of FIG. 2, when the key input is not confirmed and the
[0031]
FIG. 7 is a flowchart showing a processing procedure of a comparison subroutine executed in the comparison processing. During execution of this subroutine, interrupt processing for key input is permitted, and if there is any key input, processing corresponding to the key input is preferentially processed. However, in other cases, as long as image data having a valid recording information portion exists in the
[0032]
Whether or not the data in the recording information section is valid is determined by checking the value of the SD card storage address. That is, when the value of the SD card storage address is not an address value, for example, when the hexadecimal code “FFFFFFFF” is stored, it is determined that the data in the recording information portion is invalid. Note that the initial value of the SD card storage address immediately after the generation of the recording information portion is “FFFFFFFF”, and the address on the SD card for storing image data by a file management process (not shown) of the SD card that is executed separately. Is updated at a determined stage, and the recorded information portion becomes valid. The determination of whether or not the image data has been compared will be described later.
[0033]
Further, the
[0034]
If it is confirmed in step S400 that there is image data to be processed, the process proceeds to step S402. In step S402, one of the image data to be processed is selected, and it is checked whether or not the recording information portion is valid. Whether or not it is valid is determined based on the value of the SD card storage address as described above.
[0035]
If it is confirmed that the recording information part is valid, the process proceeds to step S404. In step S404, the recording information portion corresponding to the selected image data is read and stored in the work buffer. Next, the process proceeds to step S406, and the value of the checked flag is checked. If the value of the checked flag is “0” and the comparison processing of the image data has not been executed yet, or if it is confirmed that the image data does not match the image data of the
[0036]
FIG. 8 is a flowchart showing a processing procedure of an SD card reading subroutine executed in the SD card reading processing. In step S500, the read command and the SD card data storage address of the recording information portion stored in the work buffer are transmitted from the
[0037]
If response reception is confirmed, the process proceeds to step S504. In step S504, it is checked whether the content of the response indicates that the reception by the
[0038]
If the response does not indicate abnormal termination, the process proceeds to step S506. In step S506, it is checked whether all the image data has been received. If it is confirmed that unreceived data exists, the process proceeds to step S508, where data reception processing including CRC of dummy data is performed, and the received data is stored in the work buffer. Thereafter, the process returns to step S506, and the subsequent processing is repeated. That is, step S508 is repeatedly executed until it is confirmed that all the image data has been received. If it is confirmed in step S506 that all the image data has been received, this routine ends and the process returns to step S408 in FIG.
[0039]
When the SD card reading process in step S408 ends, the process proceeds to step S410. In step S410, the image data in the
[0040]
Next, the process proceeds to step S412, and it is checked whether there is data that does not match in the comparison process of step S410. If it is confirmed that there is data that does not match, that is, if it is detected that the data recorded in the
[0041]
In step S412, if it is confirmed that there is no data mismatch (image data match), the process proceeds to step S416, and the recording information portion associated with the image data corresponding to the recording information portion stored in the work buffer. “1” is set in the checked flag. Thereby, it is shown that correct image data that completely matches the image data is written in the
[0042]
When the digital camera 1 is in a standby state, the comparison subroutine is repeatedly executed until the checked flag “1” is set for all images. In the
[0043]
As described above, according to the present embodiment, the CRC bits included in the command and image data transmitted and received between the
[0044]
【The invention's effect】
As described above, according to the present invention, an image taken with a digital camera can be recorded on an external recording medium at high speed, and the reliability of the image recorded on the external recording medium can be maintained. .
[Brief description of the drawings]
FIG. 1 is a block diagram of a digital camera and an SD card to which an embodiment according to the present invention is applied.
FIG. 2 is a flowchart showing a processing procedure of a main routine resident in the digital camera.
FIG. 3 is a flowchart showing a processing procedure of a subroutine for writing image data into a RAM of the digital camera.
FIG. 4 is a diagram illustrating a configuration of a recording information unit stored in association with image data in a RAM of a digital camera.
FIG. 5 is a flowchart showing a processing procedure of a subroutine for writing image data to an SD card.
FIG. 6 is a conceptual diagram showing a part of the internal configuration of the RAM of the digital camera and the flash memory of the SD card.
FIG. 7 is a flowchart showing a processing procedure for comparison processing between image data stored in a digital camera RAM and image data stored in a flash memory of an SD card.
FIG. 8 is a flowchart showing a processing procedure of a subroutine for reading image data in a flash memory of an SD card.
[Explanation of symbols]
1
50 Shooting
80 Operation
110 Mode switch
Claims (5)
前記デジタルカメラの外部に設けられる外部記録媒体へ前記画像データを伝送し、伝送された前記画像データの誤りを検出せずに前記外部記録媒体に記録させる画像データ記録手段と、
前記格納手段に記録された画像データと前記外部記録媒体に記録された画像データとの整合性がチェックされていないとき、画像データを前記外部記録媒体から読み出して前記格納手段へと伝送し、前記外部記録媒体から伝送された前記画像データと、前記格納手段に格納された画像データとを比較し、その整合性をチェックする比較手段と、
前記比較手段により、前記格納手段の前記画像データと、前記外部記録媒体の前記画像データが不一致であることが確認されたら、前記画像データ記録手段を実行し、前記格納手段の前記画像データを前記外部記録媒体の画像データに上書きさせる画像データ修復手段と、
電源投入後のデジタルカメラが待機状態のとき、前記比較手段及び前記画像データ修復手段の処理を実行させる制御手段とを備えることを特徴とするデジタルカメラ。Storage means provided inside the digital camera for storing captured image data;
Wherein transmitting the image data to the external recording medium provided outside the digital camera, the image data recording means for recording on the external recording medium without put out detection error of the image data transmitted,
When the consistency between the image data recorded on the storage means and the image data recorded on the external recording medium is not checked, the image data is read from the external recording medium and transmitted to the storage means, Comparing means for comparing the image data transmitted from the external recording medium with the image data stored in the storage means and checking the consistency thereof;
When the comparison means confirms that the image data in the storage means and the image data in the external recording medium do not match, the image data recording means is executed, and the image data in the storage means is Image data restoration means for overwriting the image data of the external recording medium;
A digital camera comprising: control means for executing processing of the comparison means and the image data restoration means when the digital camera after power-on is in a standby state.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2003101424A JP4253206B2 (en) | 2003-04-04 | 2003-04-04 | Digital camera |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2003101424A JP4253206B2 (en) | 2003-04-04 | 2003-04-04 | Digital camera |
Publications (3)
Publication Number | Publication Date |
---|---|
JP2004312234A JP2004312234A (en) | 2004-11-04 |
JP2004312234A5 JP2004312234A5 (en) | 2008-07-31 |
JP4253206B2 true JP4253206B2 (en) | 2009-04-08 |
Family
ID=33465219
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2003101424A Expired - Fee Related JP4253206B2 (en) | 2003-04-04 | 2003-04-04 | Digital camera |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP4253206B2 (en) |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
DE102010035361B4 (en) * | 2010-08-25 | 2022-08-18 | Arnold & Richter Cine Technik Gmbh & Co. Betriebs Kg | camera system |
JP5523645B1 (en) * | 2013-02-13 | 2014-06-18 | 株式会社 エニイワイヤ | New slave station setting method |
CN106022406B (en) * | 2016-05-18 | 2019-04-16 | 深圳市微网力合信息技术有限公司 | Read and write the method and device of SD card |
JP7201568B2 (en) * | 2019-10-28 | 2023-01-10 | トヨタ自動車株式会社 | vehicle controller |
-
2003
- 2003-04-04 JP JP2003101424A patent/JP4253206B2/en not_active Expired - Fee Related
Also Published As
Publication number | Publication date |
---|---|
JP2004312234A (en) | 2004-11-04 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11765469B2 (en) | Image capturing apparatus, device, control method, and computer-readable storage medium | |
US8514286B2 (en) | Image transmission apparatus and image reception apparatus | |
JP5322827B2 (en) | Electronic device, control method therefor, and program | |
US8558916B2 (en) | Electronic still camera having cache control function | |
KR100796473B1 (en) | Starting method for a plurality of chips | |
JP4253206B2 (en) | Digital camera | |
EP1187450B1 (en) | Image pickup apparatus | |
US20160055853A9 (en) | Method for processing sound data and circuit therefor | |
JP2002033902A (en) | Image signal processor | |
US8086092B2 (en) | Video image recording apparatus | |
JP2002024060A (en) | File storage device | |
WO2010007936A1 (en) | Data writing method and data writing device | |
JP5063303B2 (en) | IMAGING DEVICE, IMAGING DEVICE CONTROL METHOD, AND PROGRAM | |
US8154603B2 (en) | Imaging device transferring data to external device | |
JP4128477B2 (en) | Communication system and program | |
JP2006268493A (en) | Image processor, image processing method program and recording medium | |
US11363160B2 (en) | Detachable device, control method thereof, and storage medium | |
US11843847B2 (en) | Device, information processing apparatus, control method therefor, and computer-readable storage medium | |
JPH10207788A (en) | Information recording device and method for managing the data and recording medium | |
JP4424160B2 (en) | Image processing apparatus and program | |
JP2007251316A (en) | Digital camera | |
JP2002202947A (en) | Image processor, control method thereof, and storage medium with program stored therein | |
JP2000115606A (en) | Installation method for expansion program for image pickup device and the image pickup device | |
JP2005223543A (en) | Electronic camera apparatus | |
JP2006148582A (en) | Imaging apparatus, control method, and program |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A621 | Written request for application examination |
Free format text: JAPANESE INTERMEDIATE CODE: A621 Effective date: 20060228 |
|
A711 | Notification of change in applicant |
Free format text: JAPANESE INTERMEDIATE CODE: A712 Effective date: 20080425 |
|
A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20080616 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20080715 |
|
A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20080912 |
|
A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20081104 |
|
A521 | Request for written amendment filed |
Free format text: JAPANESE INTERMEDIATE CODE: A523 Effective date: 20081210 |
|
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: 20090120 |
|
A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 |
|
A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20090123 |
|
R150 | Certificate of patent or registration of utility model |
Free format text: JAPANESE INTERMEDIATE CODE: R150 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20120130 Year of fee payment: 3 |
|
S111 | Request for change of ownership or part of ownership |
Free format text: JAPANESE INTERMEDIATE CODE: R313111 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20120130 Year of fee payment: 3 |
|
R350 | Written notification of registration of transfer |
Free format text: JAPANESE INTERMEDIATE CODE: R350 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20130130 Year of fee payment: 4 |
|
FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20140130 Year of fee payment: 5 |
|
S533 | Written request for registration of change of name |
Free format text: JAPANESE INTERMEDIATE CODE: R313533 |
|
R350 | Written notification of registration of transfer |
Free format text: JAPANESE INTERMEDIATE CODE: R350 |
|
LAPS | Cancellation because of no payment of annual fees |