JP2006174099A - Electronic apparatus, method for recording date therein and photographing device - Google Patents

Electronic apparatus, method for recording date therein and photographing device Download PDF

Info

Publication number
JP2006174099A
JP2006174099A JP2004363921A JP2004363921A JP2006174099A JP 2006174099 A JP2006174099 A JP 2006174099A JP 2004363921 A JP2004363921 A JP 2004363921A JP 2004363921 A JP2004363921 A JP 2004363921A JP 2006174099 A JP2006174099 A JP 2006174099A
Authority
JP
Japan
Prior art keywords
date
time
file
clock
recorded
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.)
Pending
Application number
JP2004363921A
Other languages
Japanese (ja)
Inventor
Katsumi Takayama
克美 高山
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.)
Fujifilm Holdings Corp
Original Assignee
Fuji Photo Film 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 Fuji Photo Film Co Ltd filed Critical Fuji Photo Film Co Ltd
Priority to JP2004363921A priority Critical patent/JP2006174099A/en
Publication of JP2006174099A publication Critical patent/JP2006174099A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Electric Clocks (AREA)
  • Camera Data Copying Or Recording (AREA)
  • Studio Devices (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To update the recording of a correct date when the date is set even when the previously recorded date is the incorrect one. <P>SOLUTION: The date is acquired from a built-in clock. When the acquired date is an initial state, an incorrect date state flag is set and recorded at each file together with the incorrect date (100-108). When the date is inputted, the correct date of the file is calculated, based on the inputted date, the incorrect date recorded in the file, and the existing incorrect date, so as to be updated in recording, concerning the file with the incorrect date state flag set therein (116-128). <P>COPYRIGHT: (C)2006,JPO&NCIPI

Description

本発明は、電子装置、撮影装置、及び電子装置の日時記録方法にかかり、特に、デジタルカメラ、携帯電話、パーソナルコンピュータ、PDA等の電子装置、デジタルカメラ等の撮影装置、及び当該電子装置の日時記録方法に関する。   The present invention relates to an electronic device, a photographing device, and a date and time recording method for the electronic device, and in particular, a digital camera, a mobile phone, a personal computer, an electronic device such as a PDA, a photographing device such as a digital camera, and the date and time of the electronic device. It relates to a recording method.

近年、日時を計時するデジタルカメラや携帯情報端末等の電子装置が普及している。このような電子装置では、各種情報をメモリ等に記録する際の記録日時として使用される日時情報や、撮影した画像情報に関連する付属情報として使用される日時情報が装置内部にて生成され、ファイル記録の際のタイムスタンプや撮影情報として、主情報と共に記録される。このような電子装置としては、例えば、特許文献1〜3に記載の技術が提案されている。   In recent years, electronic devices such as digital cameras and portable information terminals that measure the date and time have become widespread. In such an electronic device, date and time information used as recording date and time when recording various information in a memory and the like and date and time information used as attached information related to captured image information are generated inside the device, It is recorded together with the main information as a time stamp and shooting information at the time of file recording. As such an electronic device, for example, techniques described in Patent Documents 1 to 3 have been proposed.

特許文献1に記載の技術では、時差がある地点での撮影データに対して、地域名に基づく時差データを保持して、保持した時差データに基づいて時刻の修正を行うことが提案されている。   In the technique described in Patent Document 1, it is proposed that time difference data based on a region name is held for shooting data at a point with a time difference, and the time is corrected based on the held time difference data. .

また、特許文献2に記載の技術では、機種情報をメディアから読出して、装置の発売日を特定し、撮影日付が発売日以前である場合に、不正日時と判断する技術が提案されている。   In the technique described in Patent Document 2, a technique is proposed in which model information is read from a medium, a device release date is specified, and if the shooting date is before the release date, it is determined as an unauthorized date.

また、特許文献3に記載の技術では、バッテリの交換を検出する交換検出手段と、バッテリの交換が検出されると、記録日時の記録を禁止し、時計の日付及び時刻が再設定されると、記録日時の記録の禁止を解除することが提案されている。
特開平11−275494号公報 特開2002−16789号公報 特開平6−258709号公報
Further, in the technique described in Patent Document 3, when the replacement detection unit that detects the replacement of the battery and the replacement of the battery is detected, the recording of the recording date and time is prohibited, and the date and time of the clock are reset. It has been proposed to lift the prohibition of recording date and time.
Japanese Patent Laid-Open No. 11-275494 JP 2002-16789 A JP-A-6-258709

デジタルカメラなどの電子装置では、バッテリが消耗し内蔵時計の日時がリセットされた後などでは、撮影開始時に時計の再設定が必要となり、時計の再設定を行わずに撮影を行うと不正日時が記録されてしまう、という問題がある。   In an electronic device such as a digital camera, after the battery is depleted and the date / time of the built-in clock is reset, it is necessary to reset the clock when shooting starts. There is a problem of being recorded.

従来の技術では、上述のように時刻の修正を行うことや、不正日時を判断すること、バッテリ交換時に日時の記録を禁止することなどが提案されているが、不正日時のまま記録して日時が設定された時に修正するような技術は提案されていない。   In the prior art, it has been proposed to correct the time as described above, determine the incorrect date and time, and prohibit recording of the date and time when replacing the battery. No technology has been proposed for correcting when is set.

本発明は、上記事実を考慮して成されたもので、既に記録された日時が不正な場合でも日時が設定されたときに正確な日時の記録更新を可能とすることを目的とする。   The present invention has been made in consideration of the above-described facts, and an object of the present invention is to make it possible to accurately update the date and time when the date and time is set even when the date and time already recorded is incorrect.

上記目的を達成するために請求項1に記載の発明は、予め定めた初期状態日時からの経過時間を計時することにより日時を計時する時計手段と、電源投入時に前記時計手段によって計時された日時が不正日時か否かを判定する判定手段と、ファイル毎に前記時計手段によって計時された日時を記録する記録手段と、前記判定手段によって不正日時と判定された場合に、不正日時を表す不正日時状態フラグと共に前記時計手段によって計時された日時をファイル毎に記録するように前記記録手段を制御する制御手段と、を備えることを特徴としている。   In order to achieve the above object, the invention described in claim 1 is characterized in that the clock means for measuring the date and time by measuring the elapsed time from the predetermined initial date and time, and the date and time measured by the clock means when the power is turned on. Determining means for determining whether or not is an invalid date, a recording means for recording the date and time counted by the clock means for each file, and an illegal date and time representing an illegal date and time when the date and time is determined by the determining means And a control means for controlling the recording means so as to record the date and time counted by the clock means together with the status flag for each file.

請求項1に記載の電子装置によれば、時計手段では、予め定めた初期状態からの経過時間を計時することにより日時が計時され、判定手段では、電源投入時に時計手段によって計時された日時が不正日時か否か判定される。例えば、判定手段は、時計手段によって計時された日時が初期状態か否かを判定することによって不正日時か否かを判定することができる。   According to the electronic device of the first aspect, the clock means measures the date and time by measuring the elapsed time from a predetermined initial state, and the determination means determines the date and time counted by the clock means when the power is turned on. It is determined whether the date is invalid. For example, the determination unit can determine whether or not the date and time counted by the clock unit is an incorrect date and time by determining whether or not the date and time is an initial state.

また、記録手段では、ファイル毎に時計手段によって計時された日時が記録される。この時、制御手段では、判定手段によって不正日時と判定された場合に、不正日時を表す不正日時状態フラグと共に、時計手段によって計時された日時(不正日時)をファイル毎に記録するように記録手段が制御される。   The recording means records the date and time counted by the clock means for each file. At this time, in the control unit, when the determination unit determines that the date / time is invalid, the recording unit records the date / time (incorrect date / time) measured by the clock unit together with the incorrect date / time state flag indicating the illegal date / time. Is controlled.

すなわち、不正日時がファイルに記録された場合でも、不正日時状態フラグがあるか否かを確認することによって、ファイルに記録された日時が不正か否か判断することができる。   That is, even when an invalid date / time is recorded in the file, it can be determined whether the date / time recorded in the file is invalid by checking whether there is an invalid date / time status flag.

また、不正日時が記録されたファイルには不正日時状態フラグの他に、時計手段によって計時された不正日時が記録されるので、新たに現在の日時が設定された場合に、時計手段によって計時されている現在の日時(不正日時)、ファイルに記録された日時、及び新たな現在の日時に基づいて、正しい日時を計算して記録することが可能となる。   In addition to the illegal date / time status flag, the illegal date / time counted by the clock means is recorded in the file in which the illegal date / time is recorded. Therefore, when the current date / time is newly set, the time is counted by the clock means. The correct date and time can be calculated and recorded based on the current date and time (illegal date and time), the date and time recorded in the file, and the new current date and time.

従って、既に記録された日時が不正な場合でも日時が設定されたときに正確な日時の記録更新が可能となる。   Accordingly, even when the date and time already recorded is incorrect, the date and time can be accurately updated when the date and time is set.

なお、請求項2に記載の発明のように、保持手段を更に備えて、保持手段によって、判定手段の判定結果を日時状態フラグとして保持し、制御手段が保持手段に保持された日時状態フラグに基づいて制御を行うようにしてもよい。   As in the second aspect of the present invention, the holding means further includes a holding means that holds the determination result of the determining means as a date / time state flag, and the control means stores the date / time state flag held in the holding means. Control may be performed based on this.

正確な日時の記録更新は、例えば、請求項3に記載の発明のように、現在の日時を入力する入力手段と、制御手段の制御によって不正日時状態フラグが記録されたファイルについて、入力手段によって入力された現在の日時、ファイルに記録されている日時、及び時計手段によって計時されている現在の日時(不正日時)に基づいて、ファイルに記録されている日時を修正する修正手段と、を備えることで実現可能である。   For example, according to the third aspect of the present invention, the accurate date and time record update is performed by the input unit for the input unit for inputting the current date and time, and for the file in which the incorrect date and time status flag is recorded by the control of the control unit. Correction means for correcting the date and time recorded in the file based on the input current date and time, the date and time recorded in the file, and the current date and time (illegal date and time) timed by the clock means. This is possible.

請求項4に記載の撮影装置は、請求項1乃至請求項3の何れか1項に記載の電子装置を備え、被写体を撮影して被写体像を表す画像データを取得し、該画像データをファイルとして記録することを特徴としている。   A photographing apparatus according to a fourth aspect includes the electronic device according to any one of the first to third aspects, obtains image data representing a subject image by photographing the subject, and stores the image data as a file. It is characterized by recording as.

請求項4に記載の発明によれば、被写体を撮影して被写体像を表す画像データを取得して、ファイルに記録する撮影装置に、請求項1乃至請求項3の何れか1項に記載の電子装置を備えている。   According to a fourth aspect of the present invention, the photographing apparatus according to any one of the first to third aspects of the present invention provides a photographing apparatus that photographs a subject, acquires image data representing the subject image, and records the data in a file. Equipped with electronic devices.

従って、上述したように、既に記録された日時が不正な場合でも日時が設定されたときに正確な日時を記録更新すること可能となる。   Therefore, as described above, even when the already recorded date and time are incorrect, it is possible to record and update the correct date and time when the date and time is set.

請求項5に記載の電子装置の日時記録方法は、予め定めた初期状態日時からの経過時間を計時することにより日時を計時する時計ステップと、電源投入時に前記時計ステップで計時する日時が不正日時か否かを判定する判定ステップと、ファイル毎に前記時計ステップで計時した日時を記録する記録ステップと、前記判定ステップで不正日時と判定された場合に、不正日時を表す不正日時状態フラグと共に前記時計ステップで計時した日時をファイル毎に記録するように前記記録ステップを制御する制御ステップと、を含むことを特徴としている。   The date and time recording method for an electronic device according to claim 5 is a clock step for measuring the date and time by counting an elapsed time from a predetermined initial state date and time, and the date and time measured by the clock step at power-on is an incorrect date and time. A determination step for determining whether or not, a recording step for recording the date and time counted in the clock step for each file, and an incorrect date and time status flag indicating an incorrect date and time when the determination step determines an incorrect date and time And a control step for controlling the recording step so as to record the date and time measured in the clock step for each file.

請求項5に記載の発明によれば、時計ステップでは、予め定めた初期状態からの経過時間を計時することにより日時を計時し、判定ステップでは、電源投入時に時計ステップで計時した日時が不正日時か否か判定する。例えば、判定ステップは、時計ステップで計時した日時が初期状態か否かを判定することによって不正日時か否かを判定することができる。   According to the invention described in claim 5, in the clock step, the date and time is measured by measuring the elapsed time from a predetermined initial state, and in the determination step, the date and time counted in the clock step at power-on is an incorrect date and time. It is determined whether or not. For example, the determination step can determine whether or not the date and time measured at the clock step is an incorrect date and time by determining whether or not the date and time is an initial state.

また、記録ステップでは、ファイル毎に時計ステップで計時した日時を記録する。この時、制御ステップでは、判定ステップで不正日時と判定した場合に、不正日時を表す不正日時状態フラグと共に、時計ステップで計時した日時(不正日時)を記録するように記録ステップを制御する。   In the recording step, the date and time counted in the clock step is recorded for each file. At this time, the control step controls the recording step to record the date and time (illegal date and time) measured in the clock step together with the illegal date and time status flag indicating the illegal date and time when it is determined that the date and time is invalid.

すなわち、不正日時がファイルに記録された場合でも、不正日時状態フラグがあるか否かを確認することによって、ファイルに記録された日時が不正か否か判断することができる。   That is, even when an invalid date / time is recorded in the file, it can be determined whether the date / time recorded in the file is invalid by checking whether there is an invalid date / time status flag.

また、不正日時が記録されたファイルには不正日時状態フラグの他に、時計ステップで計時した不正日時が記録されるので、新たに日時が設定された場合に、時計ステップで計時している現在の日時(不正日時)、ファイルに記録した日時、及び新たな現在の日時に基づいて、正しい日時を計算して記録することが可能となる。   In addition to the illegal date / time status flag, the illegal date / time counted in the clock step is recorded in the file in which the illegal date / time is recorded. Therefore, when a new date / time is set, the current time measured in the clock step is recorded. The correct date and time can be calculated and recorded based on the date and time (incorrect date and time), the date and time recorded in the file, and the new current date and time.

従って、既に記録された日時が不正な場合でも日時が設定されたときに正確な日時の記録更新が可能となる。   Accordingly, even when the date and time already recorded is incorrect, the date and time can be accurately updated when the date and time is set.

なお、請求項6に記載の発明のように、保持ステップを更に含み、判定ステップの判定結果を日時状態フラグとして保持ステップで保持し、制御ステップが保持ステップで保持した日時状態フラグに基づいて制御を行うようにしてもよい。   In addition, as in the invention described in claim 6, it further includes a holding step, the determination result of the determination step is held as a date / time state flag in the holding step, and the control step performs control based on the date / time state flag held in the holding step. May be performed.

正確な日時の記録更新は、例えば、請求項7に記載の発明のように、現在の日時を入力する入力ステップと、制御ステップの制御によって不正日時状態フラグが記録されたファイルについて、入力ステップで入力した現在の日時、ファイルに記録されている日時、及び時計ステップで計時している現在の日時(不正日時)に基づいて、ファイルに記録されている日時を修正する修正ステップと、を備えることで実現可能である。   For example, as shown in the invention according to claim 7, the accurate date and time record update is performed in the input step for an input step for inputting the current date and time, and for a file in which an illegal date and time status flag is recorded by the control of the control step. A correction step for correcting the date and time recorded in the file based on the input current date and time, the date and time recorded in the file, and the current date and time (illegal date and time) measured in the clock step. It is feasible.

以上説明したように本発明によれば、電源投入時に計時された日時が不正日時か否かを判定し、不正日時と判定された場合に、不正日時を表す不正日時状態フラグと共に日時をファイル毎に記録することで、新たに日時が設定された場合に、現在の日時、ファイルに記録した日時、及び新たな現在の日時に基づいて、正しい日時を計算して記録することができるので、既に記録された日時が不正な場合でも日時が設定されたときに正確な日時の記録更新が可能となる、という効果がある。   As described above, according to the present invention, it is determined whether or not the date and time counted when the power is turned on is an illegal date and time. When a new date and time is set, the correct date and time can be calculated and recorded based on the current date and time, the date and time recorded in the file, and the new current date and time. Even when the recorded date and time are incorrect, there is an effect that the recording and updating of the accurate date and time can be performed when the date and time is set.

以下、図面を参照して本発明の実施の形態の一例を詳細に説明する。本実施の形態では、本発明をデジタルカメラに適用した例を説明するが、携帯電話、パーソナルコンピュータ、PDA等のその他の電子装置に本発明を適用するようにしてもよい。   Hereinafter, an example of an embodiment of the present invention will be described in detail with reference to the drawings. In this embodiment, an example in which the present invention is applied to a digital camera will be described. However, the present invention may be applied to other electronic devices such as a mobile phone, a personal computer, and a PDA.

図1は、本発明の実施の形態に係わるデジタルカメラの外観を示す図である。   FIG. 1 is a diagram showing an external appearance of a digital camera according to an embodiment of the present invention.

本発明の実施の形態に係わるデジタルカメラ10は、図1(A)に示すように、カメラ本体12の前面にレンズ14、上面にレリーズボタン16を備えている。   As shown in FIG. 1A, the digital camera 10 according to the embodiment of the present invention includes a lens 14 on the front surface of the camera body 12 and a release button 16 on the upper surface.

また、図1(B)に示すように、本体12の裏面には、電源ボタン18、指示キー20、入力ボタン22等の各種スイッチが設けられていると共に、撮影画像を表示するための液晶ディスプレイ(以下、LCDという)24が設けられている。   As shown in FIG. 1B, various switches such as a power button 18, an instruction key 20, and an input button 22 are provided on the back surface of the main body 12, and a liquid crystal display for displaying a photographed image. (Hereinafter referred to as LCD) 24 is provided.

図2は、本発明の実施の形態に係わるデジタルカメラ10の電気系の構成を示すブロック図である。   FIG. 2 is a block diagram showing the configuration of the electrical system of the digital camera 10 according to the embodiment of the present invention.

本発明の実施の形態に係わるデジタルカメラ10は、制御部26、メディアインタフェース(I/F)28、撮像系30、LCD24、内蔵メモリ32、内蔵時計34、状態記録装置36、指示キー20、入力ボタン22、電源ボタン18、及びUSBインタフェース(I/F)38を備え、バス40を介して接続されている。   The digital camera 10 according to the embodiment of the present invention includes a control unit 26, a media interface (I / F) 28, an imaging system 30, an LCD 24, a built-in memory 32, a built-in clock 34, a status recording device 36, an instruction key 20, and an input. A button 22, a power button 18, and a USB interface (I / F) 38 are provided, and are connected via a bus 40.

撮像系30は、画像データの取り込みを行うと共に、画像データに基づく画像ファイルの作成を行い、デジタルカメラ10内に画像データを取り込む。なお、画像ファイルは、撮影日時を表す日時データ及び画像データを含んで構成される。   The imaging system 30 captures image data, creates an image file based on the image data, and captures the image data into the digital camera 10. Note that the image file includes date and time data representing the shooting date and time and image data.

内部メモリ32には、制御部26で実効される各種プログラムが記憶されており、画像ファイルの一時的な記憶も行われると共に、制御部26で行われる演算の作業領域としても使用される。   Various programs executed by the control unit 26 are stored in the internal memory 32, and an image file is temporarily stored and used as a work area for operations performed by the control unit 26.

制御部26は、内部メモリ32に記憶されている各種プログラムを読み出して、読み出したプログラムを実行することにより、デジタルカメラ10全体の制御を行う。   The control unit 26 reads various programs stored in the internal memory 32 and executes the read programs to control the entire digital camera 10.

メディアI/F28は、外部メモリ42への画像ファイルの書き込み及び外部メモリ42からの画像ファイルの読み出しを行う。すなわち、撮像系30によってデジタルカメラ10内に取り込まれた画像データが画像ファイルとして外部メモリ42に書き込むことができる。   The media I / F 28 writes an image file to the external memory 42 and reads an image file from the external memory 42. That is, the image data captured in the digital camera 10 by the imaging system 30 can be written in the external memory 42 as an image file.

LCD24は、撮像系30によって取り込まれた画像データに基づく画像の表示やデジタルカメラ10内の各種設定画面表示等を行う。なお、各種設定画面の操作は、指示キー20や入力ボタン22を用いて行うことができる。   The LCD 24 displays an image based on the image data captured by the imaging system 30, displays various setting screens in the digital camera 10, and the like. Various setting screens can be operated using the instruction key 20 or the input button 22.

内蔵時計34は、所定の間隔で日時を表す値を初期状態からカウントアップすることで経過時間を計時して日時を計時する。また、内蔵時計34は、初期状態では、例えば“0”等の特殊な値が予め設定される。初期状態は、バッテリが切れて内蔵時計34への電源供給がない状態が続いた後に、内蔵時計34へ電源供給が再開された時に初期状態が設定され、内蔵時計34への電源供給が続く限り、日時を表す値のカウントアップを行う。   The built-in clock 34 counts a value representing the date and time at a predetermined interval from the initial state, thereby counting the elapsed time and counting the date and time. Further, the built-in clock 34 is preset with a special value such as “0” in the initial state. The initial state is set when the power supply to the internal clock 34 is resumed after the battery has run out and no power is supplied to the internal clock 34, and as long as the power supply to the internal clock 34 continues. Count up the value representing the date and time.

USBインタフェース38は、USBケーブルを介して、外部装置(例えば、パーソナルコンピュータ、他のデジタルカメラ、PDA、携帯電話等)と接続可能とされている。本実施の形態では、外部装置からUSBインタフェース38を介して内蔵時計34の日時を設定するための情報がデジタルカメラ10に入力される。なお、内蔵時計34への日時設定は、指示キー20や入力ボタン22等の操作によっても入力することができる。   The USB interface 38 can be connected to an external device (for example, a personal computer, another digital camera, a PDA, a mobile phone, etc.) via a USB cable. In the present embodiment, information for setting the date and time of the internal clock 34 is input to the digital camera 10 from the external device via the USB interface 38. The date and time setting for the built-in clock 34 can also be input by operating the instruction key 20, the input button 22, or the like.

状態記録装置36には、内蔵時計34に設定されている日時が正しいか、不正日時かを表す日時状態フラグが記録される。なお、日時が正しいか不正日時かの判断は、電源投入時に内蔵時計34の値が初期状態か否かを制御部26が判定することによってなされる。   The status recording device 36 records a date / time status flag indicating whether the date / time set in the internal clock 34 is correct or incorrect. Whether the date and time is correct or incorrect is determined by the control unit 26 determining whether or not the value of the internal clock 34 is in an initial state when the power is turned on.

状態記録装置36は、詳細には、図3に示すように、時計基準日時記憶ROM44及び状態フラグ記憶装置46を含んで構成されている。時計基準日時記憶ROM44には、予め定められた基準日時として特定の日時を表す値が記憶されており、当該基準日時を表す値と、内蔵時計34が計時した現在日時とを比較することで、上述の内蔵時計34の初期状態か否かを制御部26が判定し(例えば、現在日時が基準日時よりも前の場合に初期状態と判定する)、状態フラグ記憶装置46に、制御部26によって判定された判定結果が日時状態フラグとして記憶される。   Specifically, the status recording device 36 includes a clock reference date / time storage ROM 44 and a status flag storage device 46 as shown in FIG. The clock reference date and time storage ROM 44 stores a value representing a specific date and time as a predetermined reference date and time, and by comparing the value representing the reference date and time with the current date and time counted by the built-in clock 34, The control unit 26 determines whether or not the built-in clock 34 is in the initial state (for example, when the current date and time is earlier than the reference date and time), the control unit 26 stores the status flag storage device 46 in the initial state. The determined determination result is stored as a date / time state flag.

続いて、上述のように構成されたデジタルカメラ10の動作の一例について説明する。図4は、本発明の実施の形態に係わるデジタルカメラ10の制御部26で行われる処理の一例の流れを示すフローチャートである。   Next, an example of the operation of the digital camera 10 configured as described above will be described. FIG. 4 is a flowchart showing an exemplary flow of processing performed by the control unit 26 of the digital camera 10 according to the embodiment of the present invention.

まず、デジタルカメラ10の電源が投入されると、ステップ100では、内蔵時計34起動処理が行われる。なお、内蔵時計起動処理は、図5に示すフローチャートに沿って行われる。   First, when the power of the digital camera 10 is turned on, in step 100, a built-in clock 34 activation process is performed. The internal clock activation process is performed according to the flowchart shown in FIG.

すなわち、ステップ200では、内蔵時計34から日時が制御部26に取得されてステップ202へ移行する。   That is, in step 200, the date and time is acquired from the built-in clock 34 by the control unit 26, and the process proceeds to step 202.

ステップ202では、内蔵時計34から取得した日時が初期状態か否か制御部26によって判定される。該判定は、状態記録装置36の時計基準日時記憶ROM44に記憶された基準日時を表す値を取得し、該取得の基準日時の値と内蔵時計34から取得した日時とを比較することによってなされ、内蔵時計の値が基準日時よりも前の日時を表す値である場合に、初期状態に戻ったと判断し、該判定が肯定された場合には、ステップ204へ移行し、否定された場合には、ステップ206へ移行する。   In step 202, the control unit 26 determines whether the date and time acquired from the built-in clock 34 is in the initial state. The determination is made by acquiring a value representing the reference date and time stored in the clock reference date and time storage ROM 44 of the state recording device 36, and comparing the value of the acquired reference date and time with the date and time acquired from the built-in clock 34. When the value of the built-in clock is a value representing the date and time before the reference date and time, it is determined that the state has returned to the initial state, and when the determination is affirmed, the process proceeds to step 204, and when the determination is negative The process proceeds to step 206.

ステップ204では、状態記録装置36の状態フラグ記憶装置46に記憶する日時状態フラグが正常に設定されて、ステップ208へ移行する。   In step 204, the date / time state flag stored in the state flag storage device 46 of the state recording device 36 is set normally, and the routine proceeds to step 208.

ステップ206では、状態記録装置36の状態フラグ記憶装置46に記憶する日時状態フラグが不正日時に設定されて、ステップ208へ移行する。   In step 206, the date and time status flag stored in the status flag storage device 46 of the status recording device 36 is set to an incorrect date and time, and the process proceeds to step 208.

このように日時状態フラグが設定されると、ステップ208では、内蔵時計34に対して動作開始指示が制御部26から出力されて、図4のフローチャートのステップ102に戻る。これによって、内蔵時計34の動作が開始されて、日時のカウントアップが開始される。   When the date / time state flag is set in this way, in step 208, an operation start instruction is output from the control unit 26 to the built-in clock 34, and the process returns to step 102 in the flowchart of FIG. As a result, the operation of the built-in clock 34 is started, and the count-up of the date and time is started.

続いて、図2のステップ102では、日時入力がなされたか否か制御部26によって判定される。該判定は、例えば、デジタルカメラ10に設けられた入力ボタン22や指示キー20が操作されて日時の入力が行われたか否かを判定したり、日時の取得が可能なパーソナルコンピュータ等の外部装置がUSBインタフェース38を介して接続されて日時が入力されたか否かを制御部26が判定することによってなされ、該否定が肯定された場合には、ステップ104へ移行する。   Subsequently, in step 102 in FIG. 2, it is determined by the control unit 26 whether date / time input has been performed. The determination is made by, for example, determining whether or not date / time has been input by operating the input button 22 or the instruction key 20 provided on the digital camera 10, or an external device such as a personal computer capable of acquiring the date / time. Is connected through the USB interface 38 and the control unit 26 determines whether or not the date and time has been input. If the negative is affirmed, the process proceeds to step 104.

ステップ104では、撮影画像データが入力されたか否か制御部26によって判定される。該判定は、例えば、撮像系30による撮影によって撮影画像データを取得したか否かを制御部26が判定することによってなされ、該判定が肯定された場合には、ステップ106へ移行して、不正日時状態フラグが設定されているか否か制御部26によって判定される。該判定は、制御部26が状態記録装置36の状態フラグ記憶装置46に記憶された日時状態フラグを確認することによってなされ、該判定が肯定された場合には、ステップ108へ移行し、否定された場合には、ステップ110へ移行する。   In step 104, it is determined by the control unit 26 whether or not photographed image data has been input. The determination is made, for example, by the control unit 26 determining whether or not the captured image data has been acquired by capturing with the imaging system 30. If the determination is affirmative, the process proceeds to step 106, and the determination is made. The control unit 26 determines whether or not the date / time state flag is set. The determination is made by the control unit 26 confirming the date / time state flag stored in the state flag storage device 46 of the state recording device 36. If the determination is affirmative, the process proceeds to step 108 and denied. If YES, go to step 110.

ステップ108では、画像データ、日時、及び不正日時状態フラグがファイルとして外部メモリ42等に記録されて、ステップ132へ移行する。   In step 108, the image data, the date and time, and the illegal date and time status flag are recorded as files in the external memory 42 or the like, and the process proceeds to step 132.

また、ステップ110では、画像データと日時がファイルとして外部メモリ42等に記録されて、ステップ132へ移行する。   In step 110, the image data and date / time are recorded as files in the external memory 42 or the like, and the process proceeds to step 132.

一方、ステップ104の判定が否定された場合には、ステップ112へ移行して、画像データの読み出しか否か制御部26によって判定される。該判定は、例えば、指示キー20や入力ボタン22等が操作されて撮影画像のLCD24への表示が指示されたか否かを制御部26が判定することによってなされ、該判定が肯定された場合には、ステップ114へ移行して、画像データに基づく画像がLCD24に表示されるように制御部26によって制御されて、ステップ132へ移行する。なお、この時の表示画像の一例を図6(A)に示す。例えば、日時状態フラグが不正日時状態フラグと共に記憶されている画像データについては、図6(A)に示すように、「日時が不正です。設定する:(1)」等の表示を同時に表示するようにしてもよい。この場合には、(1)に対応する操作を行うことで日時設定を行うことが可能となる。   On the other hand, if the determination in step 104 is negative, the process proceeds to step 112 where the control unit 26 determines whether or not to read image data. The determination is made, for example, when the control unit 26 determines whether or not the instruction key 20 or the input button 22 is operated to instruct display of the captured image on the LCD 24, and when the determination is affirmed. Shifts to step 114, and is controlled by the control unit 26 so that an image based on the image data is displayed on the LCD 24, and shifts to step 132. An example of the display image at this time is shown in FIG. For example, for image data in which the date / time state flag is stored together with the incorrect date / time state flag, as shown in FIG. 6A, a display such as “Date and time is invalid. Set: (1)” is displayed at the same time. You may do it. In this case, the date and time can be set by performing the operation corresponding to (1).

また、ステップ112の判定が否定された場合には、そのままステップ132へ移行する。   If the determination at step 112 is negative, the process proceeds to step 132 as it is.

一方、ステップ102の判定が肯定された場合には、ステップ116へ移行して、外部メモリ42等に記憶されたファイルに不正日時状態フラグが設定されているか否か制御部26によって判定される。該判定は、状態記録装置36の状態フラグ記憶装置46に不正日時状態フラグが設定されているか否かを制御部26が確認することによってなされ、該判定が肯定された場合には、ステップ118へ移行し、否定された場合には、ステップ130へ移行する。   On the other hand, when the determination in step 102 is affirmed, the process proceeds to step 116, where the control unit 26 determines whether or not the illegal date / time state flag is set in the file stored in the external memory 42 or the like. The determination is made by the control unit 26 confirming whether or not the unauthorized date / time state flag is set in the state flag storage device 46 of the state recording device 36. If the determination is affirmative, the process goes to step 118. If the result of the determination is negative, the process proceeds to step 130.

ステップ118では、制御部26によって状態フラグ記憶装置46の日時状態フラグがリセット、すなわち、正常フラグに書き換えられてステップ120へ移行する。   In step 118, the control unit 26 resets the date / time state flag in the state flag storage device 46, that is, rewrites the normal flag, and the process proceeds to step 120.

ステップ120では、外部メモリ42等に記録されたファイルが制御部26の制御によって内蔵メモリ32等に読み出され、ステップ122へ移行する。   In step 120, the file recorded in the external memory 42 or the like is read to the built-in memory 32 or the like under the control of the control unit 26, and the process proceeds to step 122.

ステップ122では、読み出されたファイルが不正日時のファイルか否か制御部26によって判定される。すなわち、ステップ108で日時状態フラグとして不正日時状態フラグがファイルに記録されているか否か制御部26によって判定され、該判定が否定された場合には、ステップ120に戻って、他のファイルが読み出され、ステップ122の判定が肯定された場合には、ステップ124へ移行する。   In step 122, the control unit 26 determines whether or not the read file is an illegal date and time file. That is, in step 108, it is determined by the control unit 26 whether or not the illegal date / time status flag is recorded in the file as the date / time status flag. If the determination is negative, the process returns to step 120 to read another file. If the determination at step 122 is affirmative, the routine proceeds to step 124.

ステップ124では、ファイルに記録された正確な日時が計算されてステップ126へ移行して、計算された日時にファイルに記録された日時が記録更新されてステップ128へ移行する。なお、日時の計算は、例えば、次のように計算できる。すなわち、内蔵時計34の現在の日時(不正日時)を表す値をTc、入力された更新日時(新たな現在の日時)を表す値をTr、ファイルに記録された不正日時を表す値をTeとすると、ファイルの新たな日時は、Tr−(Tc−Te)で計算することができる。   In step 124, the exact date and time recorded in the file is calculated and the process proceeds to step 126. The date and time recorded in the file is recorded and updated at the calculated date and time, and the process proceeds to step 128. The date and time can be calculated as follows, for example. That is, Tc is a value representing the current date and time (incorrect date and time) of the internal clock 34, Tr is a value representing the input update date and time (new current date and time), and Te is a value representing the incorrect date and time recorded in the file. Then, the new date and time of the file can be calculated by Tr- (Tc-Te).

そして、ステップ128では、全ファイルについて日時修正が終了したか制御部26によって判定される。該判定は、外部メモリ42内に記録された全てのファイルについてステップ120〜126の処理が終了したか否かを制御部26が判定することによってなされ、該判定が否定された場合には、ステップ120に戻って上述の処理が繰り返され、ステップ128の判定が肯定されたところでステップ130へ移行して、内蔵時計34の日時が入力された日時に更新された後にステップ132へ移行する。   In step 128, the control unit 26 determines whether date correction has been completed for all files. The determination is made by the control unit 26 determining whether or not the processing of steps 120 to 126 has been completed for all the files recorded in the external memory 42. If the determination is negative, Returning to 120, the above-described processing is repeated, and when the determination in step 128 is affirmed, the process proceeds to step 130, and the date / time of the internal clock 34 is updated to the input date / time, and then the process proceeds to step 132.

そして、ステップ132では、電源ボタン18の操作等によって電源がオフされたか否か判定され、該判定が否定された場合には、ステップ102に戻って上述の処理が繰り返され、ステップ132の判定が肯定されたところで一連の処理を終了する。   In step 132, it is determined whether or not the power is turned off by operating the power button 18 or the like. If the determination is negative, the process returns to step 102 and the above-described processing is repeated. When affirmed, the series of processes is terminated.

なお、上記の実施の形態では、不正日時状態フラグが状態フラグ記憶装置46に設定されているとき(ステップ116の判定が肯定された場合)に、自動的にファイルの日時の修正を行うようにしたが、これに限るものではなく、例えば、図6(B)に示すように、ファイル毎に更新するか否かをユーザに適宜問い合わせる表示を行い、ユーザの指示に応じて日時の修正更新を行うようにしてもよい。図6(B)の場合には、表示する画像を修正する場合には、(1)に対応する操作を行い、全ての画像を修正する場合には、(2)に対応する操作をユーザが行うことで、日時の修正を行う場合の表示画像の一例を示す。   In the above embodiment, when the illegal date / time status flag is set in the status flag storage device 46 (when the determination in step 116 is affirmed), the date / time of the file is automatically corrected. However, the present invention is not limited to this. For example, as shown in FIG. 6B, a display for inquiring the user as to whether or not to update for each file is performed, and the date and time is updated and updated according to the user's instruction. You may make it perform. In the case of FIG. 6B, when correcting the image to be displayed, the operation corresponding to (1) is performed, and when correcting all the images, the user performs the operation corresponding to (2). By doing so, an example of a display image when correcting the date and time is shown.

本発明の実施の形態に係わるデジタルカメラの外観を示す図である。It is a figure which shows the external appearance of the digital camera concerning embodiment of this invention. 本発明の実施の形態に係わるデジタルカメラの電気系の構成を示すブロック図である。It is a block diagram which shows the structure of the electric system of the digital camera concerning embodiment of this invention. 状態記録装置の詳細な構成を示すブロック図である。It is a block diagram which shows the detailed structure of a state recording device. 本発明の実施の形態に係わるデジタルカメラの制御部で行われる処理の流れの一例を示すフローチャートである。It is a flowchart which shows an example of the flow of the process performed in the control part of the digital camera concerning embodiment of this invention. 内蔵時計起動処理の流れの一例を示すフローチャートである。It is a flowchart which shows an example of the flow of an internal clock starting process. 本発明の実施の形態に係わるデジタルカメラに表示される表示画像の一例を示す図である。It is a figure which shows an example of the display image displayed on the digital camera concerning embodiment of this invention.

符号の説明Explanation of symbols

10 デジタルカメラ
20 指示キー
22 入力ボタン
26 制御部
34 内蔵時計
36 状態記録装置
38 USB I/F
44 状態フラグ記憶装置
46 時計基準日時記憶ROM
DESCRIPTION OF SYMBOLS 10 Digital camera 20 Instruction key 22 Input button 26 Control part 34 Built-in clock 36 Status recording device 38 USB I / F
44 Status flag storage device 46 Clock reference date and time storage ROM

Claims (7)

予め定めた初期状態日時からの経過時間を計時することにより日時を計時する時計手段と、
電源投入時に前記時計手段によって計時された日時が不正日時か否かを判定する判定手段と、
ファイル毎に前記時計手段によって計時された日時を記録する記録手段と、
前記判定手段によって不正日時と判定された場合に、不正日時を表す不正日時状態フラグと共に前記時計手段によって計時された日時をファイル毎に記録するように前記記録手段を制御する制御手段と、
を備えた電子装置。
Clock means for measuring the date and time by measuring the elapsed time from the predetermined initial state date and time,
Determination means for determining whether the date and time counted by the clock means at the time of power-on is an incorrect date and time;
Recording means for recording the date and time counted by the clock means for each file;
Control means for controlling the recording means to record, for each file, the date and time counted by the clock means together with an illegal date and time status flag indicating the illegal date and time when the determination means determines that the date and time is invalid;
An electronic device with
前記判定手段の判定結果を日時状態フラグとして保持する保持手段を更に備え、前記制御手段が前記保持手段に保持された前記日時状態フラグに基づいて制御を行うことを特徴とする請求項1に記載の電子装置。   2. The storage device according to claim 1, further comprising a holding unit that holds a determination result of the determination unit as a date / time state flag, wherein the control unit performs control based on the date / time state flag held in the holding unit. Electronic devices. 現在の日時を入力する入力手段と、前記不正日時状態フラグが記録されたファイルについて、前記入力手段によって入力された現在の日時、ファイルに記録されている日時、及び前記時計手段によって計時されている現在の日時に基づいて、ファイルに記録されている日時を修正する修正手段と、を更に備えることを特徴とする請求項1又は請求項2に記載の電子装置。   With respect to the input means for inputting the current date and time, and the file in which the illegal date and time status flag is recorded, the current date and time input by the input means, the date and time recorded in the file, and the clock means are timed. The electronic apparatus according to claim 1, further comprising a correcting unit that corrects the date and time recorded in the file based on the current date and time. 請求項1乃至請求項3の何れか1項に記載の電子装置を備え、被写体を撮影して被写体像を表す画像データを取得し、該画像データをファイルとして記録する撮影装置。   An imaging device comprising the electronic device according to any one of claims 1 to 3, wherein the imaging device captures image data representing a subject image by photographing the subject, and records the image data as a file. 予め定めた初期状態日時からの経過時間を計時することにより日時を計時する時計ステップと、
電源投入時に前記時計ステップで計時する日時が不正日時か否かを判定する判定ステップと、
ファイル毎に前記時計ステップで計時した日時を記録する記録ステップと、
前記判定ステップで不正日時と判定された場合に、不正日時を表す不正日時状態フラグと共に前記時計ステップで計時した日時をファイル毎に記録するように前記記録ステップを制御する制御ステップと、
を含む電子装置の日時記録方法。
A clock step for measuring the date and time by counting the elapsed time from a predetermined initial state date and time,
A determination step of determining whether or not the date and time counted by the clock step at power-on is an incorrect date and time;
A recording step for recording the date and time counted in the clock step for each file;
A control step for controlling the recording step so as to record, for each file, the date and time counted in the clock step together with an illegal date and time state flag representing the illegal date and time when it is determined as an illegal date and time in the determination step;
A date and time recording method for an electronic device.
前記判定ステップの判定結果を日時状態フラグとして保持する保持ステップを更に含み、前記制御ステップが前記保持ステップで保持された前記日時状態フラグに基づいて制御を行うことを特徴とする請求項5に記載の電子装置の日時記録方法。   6. The method according to claim 5, further comprising a holding step of holding a determination result of the determination step as a date / time state flag, wherein the control step performs control based on the date / time state flag held in the holding step. Electronic device date and time recording method. 現在の日時を入力する入力ステップと、前記不正日時状態フラグが記録されたファイルについて、前記入力ステップで入力された現在の日時、ファイルに記録されている日時、及び前記時計ステップで計時している現在の日時に基づいて、ファイルに記録された日時を修正する修正ステップと、を更に含むことを特徴とする請求項5又は請求項6に記載の電子装置の日時記録方法。   For the input step for inputting the current date and time and the file in which the illegal date and time status flag is recorded, the current date and time input in the input step, the date and time recorded in the file, and the clock step are counted. The date and time recording method for an electronic device according to claim 5 or 6, further comprising a correction step of correcting the date and time recorded in the file based on the current date and time.
JP2004363921A 2004-12-16 2004-12-16 Electronic apparatus, method for recording date therein and photographing device Pending JP2006174099A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2004363921A JP2006174099A (en) 2004-12-16 2004-12-16 Electronic apparatus, method for recording date therein and photographing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2004363921A JP2006174099A (en) 2004-12-16 2004-12-16 Electronic apparatus, method for recording date therein and photographing device

Publications (1)

Publication Number Publication Date
JP2006174099A true JP2006174099A (en) 2006-06-29

Family

ID=36674371

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2004363921A Pending JP2006174099A (en) 2004-12-16 2004-12-16 Electronic apparatus, method for recording date therein and photographing device

Country Status (1)

Country Link
JP (1) JP2006174099A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2020161973A (en) * 2019-03-26 2020-10-01 ブラザー工業株式会社 Optical scanning device, control method, and program

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2020161973A (en) * 2019-03-26 2020-10-01 ブラザー工業株式会社 Optical scanning device, control method, and program

Similar Documents

Publication Publication Date Title
JP4125309B2 (en) Imaging device
JP2008206138A (en) Imaging apparatus and image processor
JP2012004899A (en) Imaging device, and method and program for controlling the same
JP2019004500A (en) Electronic device and program
JP2003209718A (en) Electronic device
JP2009272844A (en) Electronic appliance
JP2006174099A (en) Electronic apparatus, method for recording date therein and photographing device
JP4646725B2 (en) IMAGING DEVICE AND IMAGING DEVICE CONTROL METHOD
KR101983481B1 (en) Electronic device and connection method
JP4498071B2 (en) Imaging device, control method of the imaging device, control program, and storage medium
JP2007209131A (en) Charger
JP4836233B2 (en) Image processing apparatus, control method therefor, computer program, and storage medium
JP2011221582A (en) Information processor, calibration method thereof, program and storage medium
JP4298534B2 (en) Image display apparatus and method
JP4785778B2 (en) Imaging device, control method thereof, and program
JP4679333B2 (en) Digital camera
JP2010197710A (en) Image display apparatus
JP2011130198A (en) Imaging apparatus, control method thereof and program
JP2005115505A (en) Electronic device
JP2015109567A (en) Imaging device with file monitoring function and file monitoring method of imaging device, and file monitoring program of imaging device
JP4557463B2 (en) Image processing device
JP5599037B2 (en) Imaging apparatus, control method thereof, and program
JP5811398B2 (en) Display device, photographing device, image storage device, display control method, image storage method, and program
JP5968086B2 (en) Imaging apparatus and control method thereof
JP4383974B2 (en) Imaging apparatus and image data management method

Legal Events

Date Code Title Description
A711 Notification of change in applicant

Free format text: JAPANESE INTERMEDIATE CODE: A712

Effective date: 20070221

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20070302

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20090825

A02 Decision of refusal

Free format text: JAPANESE INTERMEDIATE CODE: A02

Effective date: 20091222