JP2007172113A - File processor, printer and file processing method - Google Patents

File processor, printer and file processing method Download PDF

Info

Publication number
JP2007172113A
JP2007172113A JP2005366085A JP2005366085A JP2007172113A JP 2007172113 A JP2007172113 A JP 2007172113A JP 2005366085 A JP2005366085 A JP 2005366085A JP 2005366085 A JP2005366085 A JP 2005366085A JP 2007172113 A JP2007172113 A JP 2007172113A
Authority
JP
Japan
Prior art keywords
file
same
recording medium
backup
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
JP2005366085A
Other languages
Japanese (ja)
Inventor
Katsumi Nakano
克己 中野
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.)
Seiko Epson Corp
Original Assignee
Seiko Epson Corp
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 Seiko Epson Corp filed Critical Seiko Epson Corp
Priority to JP2005366085A priority Critical patent/JP2007172113A/en
Publication of JP2007172113A publication Critical patent/JP2007172113A/en
Pending legal-status Critical Current

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To prevent duplicate writing in backup of digital camera image by a simple method. <P>SOLUTION: The file processor (e.g., printer) comprises an identification means for identifying a file recorded in a storage medium (memory card) of a backup source with a file recorded in a storage medium (CD-R) of a backup destination; and a means for excluding a file identified by the identification means from the object of backup. The identification means identifies files of the same file name based on whether headers of the files (Exif headers) are same or not. The determination can be performed also by comparison of checksum or CRC value as well as the header. <P>COPYRIGHT: (C)2007,JPO&INPIT

Description

本発明は、バックアップ時のファイルの処理方法、それを用いるファイル処理装置及び印刷装置に関する。   The present invention relates to a file processing method at the time of backup, a file processing apparatus using the same, and a printing apparatus.

デジタルカメラの撮影画像が記録されたメモリカード内のファイルを、CD−Rなどにバックアップする装置が知られている(特許文献1参照)。かかる装置では、バックアップする毎に、新規にフォルダ(「001」、「002」、「003」等の名称のフォルダ)を作成し、そのフォルダにメモリカード内の全てのファイルを格納する(図9の「1回目」参照)。   An apparatus is known that backs up a file in a memory card in which a photographed image of a digital camera is recorded to a CD-R or the like (see Patent Document 1). In such an apparatus, a new folder (a folder with a name such as “001”, “002”, “003”, etc.) is created every time backup is performed, and all files in the memory card are stored in the folder (FIG. 9). (See "First time").

特開2005−210433号公報Japanese Patent Laying-Open No. 2005-210433

ところで、ユーザがメモリカード内のファイルを消去しないで再びデジタルカメラにより撮影すると、メモリカードに新たなファイルが追加されることになる。かかる場合でも、従来の装置では、バックアップの要求を受け付けると、新規にフォルダを作成して、そのフォルダにメモリカード内の全てのファイルを格納する(図9の「2回目」参照)。したがって、同一ファイルが重複して格納され、記録容量が無駄に消費される。   By the way, when the user takes a picture again with the digital camera without deleting the file in the memory card, a new file is added to the memory card. Even in such a case, when receiving a backup request, the conventional apparatus creates a new folder and stores all files in the memory card in the folder (see “second time” in FIG. 9). Therefore, the same file is stored repeatedly, and the recording capacity is wasted.

この点、同一ファイルを見つける方法として、ファイル名を比較する方法が考えられるが、デジタルカメラで撮影された画像ファイルは、通常DCF(Design rule for Camera File system)規格に則りファイル名が決定されているので、異なる画像でも同じファイル名である場合がある。したがって、ファイル名を調べるだけでは、同一画像のファイルかどうかは分からない。一方で、同一性の判断のために複雑な処理を行うのは現実的ではない。   In this regard, as a method of finding the same file, a method of comparing file names is conceivable. However, an image file taken with a digital camera is usually determined according to the DCF (Design Rule for Camera File system) standard. Therefore, different images may have the same file name. Therefore, it is not known whether the files are the same image by simply examining the file name. On the other hand, it is not realistic to perform a complicated process for determining identity.

そこで、本発明は、簡便な方法で、バックアップ時の重複書き込みを防止することにある。   Therefore, the present invention is to prevent duplicate writing during backup by a simple method.

上記目的を達成するため、本発明の第1は、ファイル処理装置であって、
バックアップ元の記録媒体に記録されているファイルと、バックアップ先の記録媒体に記録されているファイルとが同一か否かを判定する同一性判定手段と、
前記同一性判定手段により同一と判定されたファイルをバックアップの対象から除外する手段とを備えている。そして、前記同一性判定手段は、ファイルのヘッダが同一か否かによりファイルが同一か否かを判定する。
In order to achieve the above object, a first aspect of the present invention is a file processing apparatus,
Identity determining means for determining whether or not a file recorded on a backup source recording medium and a file recorded on a backup destination recording medium are the same;
Means for excluding files determined to be identical by the identity determining means from backup targets. The identity determination means determines whether the files are the same depending on whether the headers of the files are the same.

前記ファイルは、Exif(Exchangeable Image File Format for digital still cameras、登録商標)形式のファイルであってもよい。   The file may be an Exif (Exchangeable Image File Format for digital still cameras, registered trademark) format file.

また、前記同一性判定部は、ファイルのヘッダを基に予め定めた計算により生成される値(例えば、チェックサムやCRC値)を比較することにより、ファイルが同一か否かを判定するようにしてもよい。   Further, the identity determination unit determines whether or not the files are identical by comparing values (for example, checksum and CRC value) generated by a predetermined calculation based on the header of the file. May be.

また、前記同一性判定手段は、前記バックアップ先の記録媒体に、前記バックアップ元の記録媒体に記録されているファイルとファイル名が同じファイルがある場合に、ファイルが同一か否かを判定する処理を行うようにしてもよい。   In addition, the identity determination unit determines whether or not the files are the same when the backup destination recording medium includes a file having the same file name as the file recorded on the backup source recording medium. May be performed.

また、本発明の第2は、ファイル処理装置であって、
バックアップ先の記録媒体に、バックアップ元の記録媒体に記録されているファイルと、同一のファイルが存在するか否か判定する同一性判定手段と、
前記同一性判定手段によりヘッダが同一のファイルが存在する場合、そのファイルをバックアップの対象から除外する手段とを備えている。そして、前記同一性判定手段は、ファイル全体のデータから予め定めた計算により生成される値(例えば、チェックサムやCRC値)を比較してファイルが同一か否か判定する。
A second aspect of the present invention is a file processing apparatus,
An identity determination means for determining whether or not the same file as the file recorded on the backup source recording medium exists in the backup destination recording medium;
And means for excluding the file from the backup target when there is a file having the same header by the identity determination means. Then, the identity determination means determines whether or not the files are the same by comparing values (for example, a checksum and CRC value) generated by a predetermined calculation from the data of the entire file.

また、本発明の第3は、印刷装置であって、
デジタルカメラで撮影された画像データのファイルが記録された第1の記録媒体からファイルを読み込む第1のファイル読込手段と、
バックアップ用の第2の記録媒体に記録されているファイルを読み込む第2のファイル読込手段と、
前記第2の記録媒体に、前記第1の記録媒体に記録されているファイルと同一のファイルが存在するか否かを判定する同一性判定手段と、
前記同一性判定手段により同一のファイルが存在すると判定された場合、前記第1の記録媒体に記録されている同一と判定されたファイルを、バックアップの対象から除外する手段とを備えている。そして、前記同一性判定手段は、ファイルのヘッダが同一か否かによりファイルが同一か否か判定する。
A third aspect of the present invention is a printing apparatus,
First file reading means for reading a file from a first recording medium on which a file of image data photographed by a digital camera is recorded;
A second file reading means for reading a file recorded on the second recording medium for backup;
Identity determining means for determining whether or not the same file as the file recorded on the first recording medium exists in the second recording medium;
And a means for excluding, from the backup target, a file determined to be the same recorded in the first recording medium when the identity determining means determines that the same file exists. The identity determination unit determines whether the files are the same based on whether the headers of the files are the same.

また、本発明の第4は、印刷装置であって、
デジタルカメラで撮影された画像データのファイルが記録された第1の記録媒体からファイルを読み込む第1のファイル読込手段と、
バックアップ用の第2の記録媒体に記録されているファイルを読み込む第2のファイル読込手段と、
前記第2の記録媒体に、前記第1の記録媒体に記録されているファイルと同一のファイルが存在するか否かを判定する同一性判定手段と、
前記同一性判定手段により同一のファイルが存在すると判定された場合、前記第1の記録媒体に記録されている同一と判定されたファイルを、バックアップの対象から除外する手段とを備えている。そして、前記同一性判定手段は、ファイル全体のデータから予め定めた計算により生成される値を比較してファイルが同一か否か判定する。
A fourth aspect of the present invention is a printing apparatus,
First file reading means for reading a file from a first recording medium on which a file of image data photographed by a digital camera is recorded;
A second file reading means for reading a file recorded on the second recording medium for backup;
Identity determining means for determining whether or not the same file as the file recorded on the first recording medium exists in the second recording medium;
And a means for excluding, from the backup target, a file determined to be the same recorded in the first recording medium when the identity determining means determines that the same file exists. The identity determination means determines whether the files are identical by comparing values generated by a predetermined calculation from the data of the entire file.

本発明の実施の形態について図面を参照して説明する。   Embodiments of the present invention will be described with reference to the drawings.

図1は、本発明の一実施形態が適用された印刷装置の概略構成図である。本実施形態の印刷装置は、ホストコンピュータなしで可搬性の記録媒体(メモリカード)45と直接接続して印刷するいわゆるダイレクトプリンタである。ただし、印刷装置は、ホストコンピュータと接続し、プリンタドライバから制御命令を受けて印刷を実行する機能も備えている。また、デジタルカメラがホストとなって、印刷を実行する機能も備えている。   FIG. 1 is a schematic configuration diagram of a printing apparatus to which an embodiment of the present invention is applied. The printing apparatus according to the present embodiment is a so-called direct printer that performs printing by directly connecting to a portable recording medium (memory card) 45 without a host computer. However, the printing apparatus has a function of connecting to a host computer and executing printing in response to a control command from a printer driver. The digital camera is also a host and has a function to execute printing.

図1に示すように、印刷装置は、印刷のための様々な処理を行うコントローラ10と、操作パネル20と、印刷を実行する印刷エンジン30と、メモリカード読書装置40と、バックアップ用記録媒体読書装置50とを備えている。   As shown in FIG. 1, the printing apparatus includes a controller 10 that performs various processes for printing, an operation panel 20, a print engine 30 that executes printing, a memory card reading device 40, and a backup recording medium reading. Device 50.

コントローラ10は、主制御装置であるCPU101と、プログラム等が記録されたROM102と、メインメモリとしてデータ等を一時的に格納するRAM103と、操作パネル20等との入出力を制御するインタフェース105と、各装置間の通信経路となるシステムバス106とを備えて構成される。なお、インタフェース105は、各処理を専用に行うように設計されたASICとすることができる。   The controller 10 includes a CPU 101 as a main control device, a ROM 102 in which programs and the like are recorded, a RAM 103 that temporarily stores data and the like as a main memory, an interface 105 that controls input and output with the operation panel 20 and the like, And a system bus 106 serving as a communication path between the devices. The interface 105 can be an ASIC designed to perform each process exclusively.

操作パネル20は、液晶表示装置、操作ボタン等から構成され、ユーザから、レイアウトの指示を受け付けたり、印刷対象の画像ファイルの選択を受け付けたり、メモリカード内のファイルのバックアップ要求を受け付けたりするユーザインタフェース機能を担っている。   The operation panel 20 includes a liquid crystal display device, operation buttons, and the like. The user receives a layout instruction from the user, receives a selection of an image file to be printed, and receives a backup request for a file in the memory card. It is responsible for the interface function.

メモリカード読書装置40は、メモリカード45に記録されたファイルを読み出し、コントローラ10に送る。また、コントローラ10の命令に従って、メモリカード45に記録されているファイルを削除したり、書き換える処理を行う。   The memory card reading device 40 reads the file recorded on the memory card 45 and sends it to the controller 10. Further, in accordance with an instruction from the controller 10, processing for deleting or rewriting a file recorded on the memory card 45 is performed.

バックアップ用記録媒体読書装置40は、バックアップ用記録媒体(例えば、CD−R、CD−RW、DVD−R、DVD−RWなど)55に記録されているファイルを読み出し、コントローラ10に送る。また、コントローラ10の命令に従って、バックアップ用記録媒体55に記録されているファイルを削除したり、書き換える処理を行う。   The backup recording medium reading device 40 reads a file recorded on a backup recording medium (for example, CD-R, CD-RW, DVD-R, DVD-RW, etc.) 55 and sends it to the controller 10. Further, in accordance with an instruction from the controller 10, processing for deleting or rewriting the file recorded on the backup recording medium 55 is performed.

つぎに、コントローラ10の特徴的な機能構成について図2のブロック図を参照して説明する。   Next, a characteristic functional configuration of the controller 10 will be described with reference to the block diagram of FIG.

図2は、コントローラ10の機能構成の一例を示すブロック図である。各機能部は、ソフトウェアあるいはハードウェア的に実現することができる。   FIG. 2 is a block diagram illustrating an example of a functional configuration of the controller 10. Each functional unit can be realized by software or hardware.

図示するように、コントローラ10は、指示解析部111と、同一性判断部112と、バックアップ処理部113とを備えている。   As illustrated, the controller 10 includes an instruction analysis unit 111, an identity determination unit 112, and a backup processing unit 113.

指示解析部111は、操作パネル20を介して入力されたユーザからの要求を解析し、その要求に応じた処理がなされるように、各機能部に命令する処理を行う。例えば、ファイルのバックアップ要求を受け付けると、バックアップ処理部113にバックアップのための処理を行うように指示する。   The instruction analysis unit 111 analyzes a request from the user input via the operation panel 20, and performs a process of instructing each functional unit so that a process according to the request is performed. For example, when a file backup request is received, the backup processing unit 113 is instructed to perform processing for backup.

同一性判断部112は、メモリカード45に記録されているファイルと、バックアップ用記録媒体55に記録されているファイルとの同一性を判断する。   The identity determination unit 112 determines the identity between the file recorded on the memory card 45 and the file recorded on the backup recording medium 55.

バックアップ処理部113は、メモリカード45に記録されているファイルを、バックアップ用記録媒体55に記録し、ファイルのバックアップをとる処理を行う。また、バックアップに先立って、同一性判断部112に、メモリカード45内のファイルとバックアップ用記録媒体55内のファイルとの同一性の判断をさせ、バックアップ用記録媒体55に同一のファイルが重複記録されないようにする。   The backup processing unit 113 records a file recorded on the memory card 45 on the backup recording medium 55 and performs a process of backing up the file. Prior to backup, the identity determination unit 112 determines the identity of the file in the memory card 45 and the file in the backup recording medium 55, and the same file is recorded in duplicate on the backup recording medium 55. Do not be.

<動作の説明>
つぎに、上記のように構成される印刷装置の動作について説明する。本実施形態の印刷装置は、上記のとおり、メモリカード45に記録されているファイルをバックアップ用記録媒体55にバックアップする機能を備えている。さらに、バックアップ用記録媒体55への同一のファイルの重複書き込みを防止する機能も備えている。
<Description of operation>
Next, the operation of the printing apparatus configured as described above will be described. As described above, the printing apparatus according to the present embodiment has a function of backing up files recorded on the memory card 45 to the backup recording medium 55. Furthermore, a function for preventing the same file from being written to the backup recording medium 55 is provided.

印刷装置は、重複書き込みを防止するために、ファイルのヘッダの情報を利用する。   The printing apparatus uses information in the header of the file to prevent duplicate writing.

ここで、メモリカード45に記録されるファイルのフォーマットについて説明する。メモリカード45には、デジタルカメラで撮影された画像データのファイルが格納される。このファイルは、電子情報技術通産業協会(JEITA)によって定められたExif(Exchangeable Image File Format for digital still cameras、登録商標)形式のファイル(「Exifファイル」)である。   Here, the format of the file recorded on the memory card 45 will be described. The memory card 45 stores a file of image data taken with a digital camera. This file is an Exif (Exchangeable Image File Format for digital still cameras, registered trademark) format file ("Exif file") defined by the Japan Electronics and Information Technology Industries Association (JEITA).

図3は、Exifファイルの構成を示す図である。Exifファイルは、通常、ヘッダ71と、画像データ72とで構成されている。ヘッダ71には、画素数、圧縮モード、撮影日時、機種名、絞り値、色空間などの情報が格納されている。画像データ72には、サムネイル画像データと、主画像データとが格納されている。   FIG. 3 is a diagram showing the structure of an Exif file. An Exif file is usually composed of a header 71 and image data 72. The header 71 stores information such as the number of pixels, compression mode, shooting date and time, model name, aperture value, and color space. The image data 72 stores thumbnail image data and main image data.

図4は、印刷装置のファイルのバックアップ時の処理の流れを示すフロー図である。   FIG. 4 is a flowchart showing the flow of processing when backing up a file in the printing apparatus.

このフローは、指示解析部111により、ユーザから操作パネル20を介して、バックアップの要求を受け付けると開始される。   This flow is started when the instruction analysis unit 111 receives a backup request from the user via the operation panel 20.

バックアップ処理部113は、メモリカード45に記録されているファイルを順番に一つ読み込む(S11)。そして、ヘッダを抽出し(S12)、ヘッダから撮影日を特定する(S13)。   The backup processing unit 113 reads one file recorded in the memory card 45 in order (S11). Then, the header is extracted (S12), and the shooting date is specified from the header (S13).

次に、バックアップ処理部113は、バックアップ用記録媒体55に、S13で特定した撮影日に相当するフォルダが存在するか否か判定する(S14)。そのようなフォルダが存在しない場合(S14:N)、バックアップ用記録媒体55に、撮影日のフォルダを作成する(S15)。そして、そのフォルダに、S11で読み込んだファイルを格納し(S16)、S21の処理に移行する。   Next, the backup processing unit 113 determines whether or not the backup recording medium 55 has a folder corresponding to the shooting date specified in S13 (S14). If such a folder does not exist (S14: N), a shooting date folder is created in the backup recording medium 55 (S15). Then, the file read in S11 is stored in the folder (S16), and the process proceeds to S21.

一方、バックアップ用記録媒体55に、S13で特定した撮影日に相当するフォルダが存在する場合(S14:Y)、バックアップ処理部113は、そのフォルダ内に、S11で読み込んだファイルと同一名称のファイルが存在するか否か判定する(S17)。存在しない場合(S17:N)、そのフォルダに、S11で読み込んだファイルを格納し(S16)、S21の処理に移行する。   On the other hand, when the backup recording medium 55 includes a folder corresponding to the shooting date specified in S13 (S14: Y), the backup processing unit 113 includes a file having the same name as the file read in S11. Is determined (S17). If it does not exist (S17: N), the file read in S11 is stored in the folder (S16), and the process proceeds to S21.

一方、S13で特定した撮影日のフォルダに、S11で読み込んだファイルと同一名称のファイルが存在する場合(S17:Y)、同一性判断部112は、ファイルのヘッダが一致するか否かを調べることにより、ファイルの同一性を判断する処理を行う(S18)。   On the other hand, if a file with the same name as the file read in S11 exists in the folder of the shooting date specified in S13 (S17: Y), the identity determination unit 112 checks whether the file headers match. Thus, a process for determining the identity of the file is performed (S18).

図5は、ファイルの同一性を判断する処理の流れを示すフロー図である。   FIG. 5 is a flowchart showing the flow of processing for determining the identity of a file.

同一性判断部112は、比較元のファイル(図4のS11で読み込んだファイル)のヘッダの先頭アドレスaddを取得する。なお、比較先のファイル(バックアップ用記録媒体55に記録されている、比較元のファイルと同一名称のファイル)のヘッダの先頭アドレスを取得するようにしてもよい。   The identity determination unit 112 acquires the header start address add of the comparison source file (the file read in S11 of FIG. 4). Note that the head address of the header of the comparison destination file (the file recorded in the backup recording medium 55 and having the same name as the comparison source file) may be acquired.

次に、同一性判断部112は、比較元のファイルのアドレスaddの値と、比較先のファイルのアドレスaddの値をそれぞれ読み込む(S32、S33)。   Next, the identity determination unit 112 reads the address add value of the comparison source file and the address add value of the comparison destination file (S32 and S33).

そして、同一性判断部112は、両者の値が同じか否か判定する(S34)。同じでない場合(S34:N)、比較元のファイルと比較先のファイルは非同一と判断し(S35)、処理を終了する。   Then, the identity determination unit 112 determines whether or not both values are the same (S34). If they are not the same (S34: N), it is determined that the comparison source file and the comparison destination file are not identical (S35), and the process ends.

一方、両者の値が同じ場合(S34:Y)、同一性判断部112は、アドレスaddがヘッダの最後であるか否か判定する(S36)。そして、最後である場合(S36:Y)、同一ファイルと判断し(S37)、処理を終了する。   On the other hand, when both values are the same (S34: Y), the identity determination unit 112 determines whether or not the address add is the last of the header (S36). If it is the last (S36: Y), it is determined that they are the same file (S37), and the process is terminated.

一方、アドレスaddが最後でない場合(S36:N)、同一性判断部112は、アドレスaddをインクリメントし(S38)、S32の処理に戻る。   On the other hand, if the address add is not the last (S36: N), the identity determining unit 112 increments the address add (S38), and returns to the process of S32.

こうして、ファイルの同一性が判断される。   In this way, the identity of the file is determined.

図4に戻って説明を続ける。バックアップ処理部113は、同一性判断部112によりファイルが同一であると判断された場合(S19:Y)、S21の処理に移行する。一方、ファイルが非同一であると判断された場合(S19:N)、S11で読み込んだファイルを、ファイル名を変更した後、バックアップ用記録媒体55のS14で特定した撮影日のフォルダに格納する。   Returning to FIG. 4, the description will be continued. When the identity determination unit 112 determines that the files are the same (S19: Y), the backup processing unit 113 proceeds to the process of S21. On the other hand, if it is determined that the files are not identical (S19: N), the file read in S11 is stored in the shooting date folder specified in S14 of the backup recording medium 55 after the file name is changed. .

S21では、バックアップ処理部113は、メモリカード45に、次ぎのファイルが存在するか判定する。そして、存在する場合は、S11に戻って処理を続ける。こうして、メモリカード45内の全てのファイルについて、S11〜S20の処理がなされる。   In S <b> 21, the backup processing unit 113 determines whether the next file exists in the memory card 45. And when it exists, it returns to S11 and continues a process. In this way, the processing of S11 to S20 is performed for all the files in the memory card 45.

図6は、メモリカード45内のファイルがバックアップ用記録媒体55であるCD−Rにバックアップされる様子を説明する図である。   FIG. 6 is a diagram for explaining how files in the memory card 45 are backed up to a CD-R which is a backup recording medium 55.

図示するように、1回目のバックアップでは、CD−Rに、撮影日に応じたフォルダ(「2005/11/01」、「2005/11/03」及び「2005/11/05」)80が作成され、その撮影日のファイル81がそれぞれ格納される。   As shown in the figure, in the first backup, folders (“2005/11/01”, “2005/11/03”, and “2005/11/05”) 80 corresponding to the shooting date are created on the CD-R. The shooting date files 81 are stored respectively.

2回目のバックアップでは、追加されたファイル(「AAAA0007.JPG」、「AAAA0008.JPG」及び「AAAA0009.JPG」)が、撮影日に応じて追加されたフォルダ(「2005/11/11」)に格納される。   In the second backup, the added files (“AAAA0007.JPG”, “AAAA0008.JPG” and “AAAA0009.JPG”) are added to the folder (“2005/11/11”) added according to the shooting date. Stored.

3回目のバックアップでは、追加されたファイル(「AAAA0009.JPG」、及び「AAAA0010.JPG」が、撮影日に応じて追加されたフォルダ(「2005/11/16」)に格納される。   In the third backup, the added files (“AAAA0009.JPG” and “AAAA0010.JPG” are stored in a folder (“2005/11/16”) added according to the shooting date.

ここで、メモリカード45内の「AAAA0003.JPG」が、デジタルカメラにより編集されていた場合について説明する。具体的には、「AAAA0003.JPG」が、ファイル名の変更はないものの、ユーザによりデジタルカメラの編集モードを利用して編集されていたとする。例えば、サイズ変更、レタッチ処理、向きの変更などの編集がなされていたとする。   Here, a case where “AAAA0003.JPG” in the memory card 45 has been edited by the digital camera will be described. Specifically, it is assumed that “AAAA0003.JPG” is edited by the user using the editing mode of the digital camera, although the file name is not changed. For example, it is assumed that editing such as a size change, a retouch process, and a change in orientation has been performed.

かかる場合、ファイル名の変更はないものの、ヘッダは書き換わっている。したがって、図5で示したファイルの同一性の判断処理により、メモリカード45の「AAAA0003.JPG」と、CD−Rに記録されている「AAAA0003.JPG」とが非同一であると判断される。そして、図4のS20の処理により、例えば、「AAAB0003.JPG」とリネームされて、CD−Rに記録される。このとき、撮影日は元のままであるので、元の撮影日に対応するフォルダに格納される。   In such a case, although the file name is not changed, the header is rewritten. Accordingly, the file identity determination process shown in FIG. 5 determines that “AAAA0003.JPG” in the memory card 45 and “AAAA0003.JPG” recorded on the CD-R are not identical. . 4 is renamed, for example, “AAAB0003.JPG” and recorded on the CD-R. At this time, since the shooting date remains the same, it is stored in a folder corresponding to the original shooting date.

以上、本発明の一実施形態について説明した。   The embodiment of the present invention has been described above.

上記実施形態によれば、印刷装置は、重複するファイルをバックアップする対象から除外する。したがって、同一のファイルが重複してバックアップ用記録媒体に記録されることがない。   According to the embodiment, the printing apparatus excludes duplicate files from the target to be backed up. Therefore, the same file is not recorded on the backup recording medium twice.

また、ファイル名のみから、同一か否か判断するのではなく、Exif形式のヘッダが一致するか否かによって判断する。したがって、DCF規格により、異なる画像データでありながら同一のファイル名である場合においても、同一性を適切に判断することができる。   Further, it is not determined from the file names alone whether or not they are the same, but is determined by whether or not the Exif format headers match. Therefore, according to the DCF standard, it is possible to appropriately determine the identity even in the case of different image data but the same file name.

また、ユーザが画像を編集した場合は、ヘッダが変更されるので、異なるファイルとして確実にバックアップされる。   Further, when the user edits the image, the header is changed, so that it is reliably backed up as a different file.

さらに、撮影日ごとのフォルダに格納されるので、ユーザにとって検索しやすいものとなる。   Furthermore, since it is stored in a folder for each shooting date, it is easy for the user to search.

<変形例>
本発明は、上記実施形態に制限されない。上記実施形態は、本発明の技術的思想の範囲内で様々変形が可能である。
<Modification>
The present invention is not limited to the above embodiment. The above embodiment can be variously modified within the scope of the technical idea of the present invention.

例えば、上記実施形態のように、ファイルの同一性の判断のためにヘッダをそのままチェックするのではなく、チェックサムやCRC(Cyclic Redundancy Check)値を利用することもできる。   For example, as in the above-described embodiment, a checksum or CRC (Cyclic Redundancy Check) value can be used instead of checking the header as it is to determine the identity of the file.

図7は、かかる場合のファイルの同一性の判断の処理のフロー図である。   FIG. 7 is a flowchart of processing for determining file identity in such a case.

同一性判断部112は、ヘッダのアドレスを取得し(S51)、比較元のファイルのヘッダと、比較先のファイルのヘッダとを、それぞれ読み込み、それぞれチェックサム(又はCRC値)を計算する(S52、S53)。   The identity determination unit 112 acquires the header address (S51), reads the header of the comparison source file and the header of the comparison destination file, and calculates the checksum (or CRC value) (S52). , S53).

そして、両者のチェックサム(又は、CRC値)が同じか否か判定し(S54)、同じである場合(S54:Y)、同一ファイルと判断する。一方、異なる場合(S54:N)、
非同一ファイルと判断する。
Then, it is determined whether or not both checksums (or CRC values) are the same (S54). If they are the same (S54: Y), it is determined that they are the same file. On the other hand, if different (S54: N),
Judged as non-identical files.

このようにすれば、処理を迅速に行うことができる。なお、チェックサムでは、2つ以上のデータが同時に変化を起こすと、それらが相殺されて正常状態とみなされてしまうことがあるが、CRC値を用いれば、この問題を回避できる。   In this way, processing can be performed quickly. In the checksum, if two or more pieces of data change at the same time, they may cancel each other and be regarded as a normal state, but this problem can be avoided by using a CRC value.

また、ヘッダを用いずに、ファイル全体から同一性を判断することもできる。   It is also possible to determine the identity from the entire file without using a header.

図8は、かかる場合のファイルの同一性の判断の処理のフロー図である。   FIG. 8 is a flowchart of processing for determining file identity in such a case.

同一性判断部112は、比較元のファイルの全ての部分(ヘッダ及び画像データの部分、又は画像データの部分のみでもよい)と、比較先のファイルの全ての部分とを、それぞれ読み込み、それぞれチェックサム(又はCRC値)を計算する(S61、S62)。   The identity determination unit 112 reads and checks all the parts of the comparison source file (may be the header and image data part or only the image data part) and the comparison destination file. Sum (or CRC value) is calculated (S61, S62).

そして、両者のチェックサム(又は、CRC値)が同じか否か判定し(S63)、同じである場合(S63:Y)、同一ファイルと判断する。一方、異なる場合(S64:N)、非同一ファイルと判断する。   Then, it is determined whether or not both checksums (or CRC values) are the same (S63). If they are the same (S63: Y), it is determined that they are the same file. On the other hand, if they are different (S64: N), they are determined to be non-identical files.

こうすれば、Exif形式のヘッダが存在しないファイルに対しても同一性を判断することができる。   In this way, it is possible to determine the identity even for a file having no Exif format header.

なお、上記実施形態では、バックアップのための処理を行う装置が、ダイレクト印刷が可能な印刷装置である場合について説明したが、本発明は、これに限定されない。   In the above-described embodiment, the case has been described in which the apparatus that performs the backup process is a printing apparatus capable of direct printing, but the present invention is not limited to this.

パーソナルコンピュータなどの情報処理装置が、上記で説明したバックアップ処理を行うようにしてもよい。また、パーソナルコンピュータが、印刷装置と接続されており、印刷装置に装着されたメモリカードからファイルを読み込み、CD−Rなどのバックアップ用記録媒体にバックアップするようにしてもよい。この場合にも、重複書き込みを防止するために本発明を適用することができる。   An information processing apparatus such as a personal computer may perform the backup process described above. Further, a personal computer may be connected to the printing apparatus, read a file from a memory card attached to the printing apparatus, and back up to a backup recording medium such as a CD-R. Also in this case, the present invention can be applied to prevent duplicate writing.

また、バックアップ元の記録媒体は、メモリカードに限定されず、デジタルカメラに装着可能な可搬性の記録媒体、例えば、USBメモリ、小型ハードディスクなどであってもよい。   The backup source recording medium is not limited to a memory card, and may be a portable recording medium that can be attached to a digital camera, such as a USB memory or a small hard disk.

また、印刷装置は、プリンタに限らず、コピー、スキャナ、ファクシミリなどの機能を備えた複合機であってもよい。   Further, the printing apparatus is not limited to a printer, and may be a multifunction machine having functions such as copying, scanning, and facsimile.

印刷装置の一例を示すブロック図。1 is a block diagram illustrating an example of a printing apparatus. コントローラの機能構成の一例を示すブロック図。The block diagram which shows an example of a function structure of a controller. Exifファイルの構成図。The block diagram of an Exif file. バックアップ処理のフロー図。The flowchart of a backup process. ファイルの同一性の判断の処理のフロー図。The flowchart of the process of judgment of the identity of a file. バックアップの様子を説明するための図。The figure for demonstrating the mode of backup. ファイルの同一性の判断の処理のフロー図。The flowchart of the process of judgment of the identity of a file. ファイルの同一性の判断の処理のフロー図。The flowchart of the process of judgment of the identity of a file. 従来のバックアップの様子を説明するための図。The figure for demonstrating the mode of the conventional backup.

符号の説明Explanation of symbols

10…コントローラ、101…CPU、102…ROM、103…RAM、105…インタフェース、106…システムバス、
20…操作パネル、
30…印刷エンジン、
40…メモリカード読書装置、45…メモリカード、
50…バックアップ用記録媒体読書装置、55…バックアップ用記録媒体、
111…指示解析装置、112…同一性判断部、113…バックアップ処理部
DESCRIPTION OF SYMBOLS 10 ... Controller, 101 ... CPU, 102 ... ROM, 103 ... RAM, 105 ... Interface, 106 ... System bus,
20 ... operation panel,
30 ... Print engine,
40 ... Memory card reading device, 45 ... Memory card,
50 ... Reading device for backup recording medium, 55 ... Recording medium for backup,
111 ... Instruction analysis device, 112 ... Identity determination unit, 113 ... Backup processing unit

Claims (9)

ファイル処理装置であって、
バックアップ元の記録媒体に記録されているファイルと、バックアップ先の記録媒体に記録されているファイルとが同一か否かを判定する同一性判定手段と、
前記同一性判定手段により同一と判定されたファイルをバックアップの対象から除外する手段とを備え、
前記同一性判定手段は、
ファイルのヘッダが同一か否かによりファイルが同一か否かを判定する
ことを特徴とするファイル処理装置。
A file processing device,
Identity determining means for determining whether or not a file recorded on a backup source recording medium and a file recorded on a backup destination recording medium are the same;
Means for excluding files determined to be identical by the identity determination means from backup targets,
The identity determination means includes
A file processing apparatus for determining whether or not files are the same depending on whether or not the headers of the files are the same.
請求項1において、
前記ファイルは、Exif形式のファイルである
ことを特徴とするファイル処理装置。
In claim 1,
The file processing apparatus characterized in that the file is an Exif format file.
請求項1において、
前記同一性判定部は、
ファイルのヘッダを基に予め定めた計算により生成される値を比較することにより、ファイルが同一か否かを判定する
ことを特徴とするファイル処理装置。
In claim 1,
The identity determination unit
A file processing apparatus for determining whether or not files are identical by comparing values generated by a predetermined calculation based on file headers.
請求項1において、
前記同一性判定手段は、
前記バックアップ先の記録媒体に、前記バックアップ元の記録媒体に記録されているファイルとファイル名が同じファイルがある場合に、ファイルが同一か否かを判定する処理を行う
ことを特徴とするファイル処理装置。
In claim 1,
The identity determination means includes
A file process for determining whether or not the files are the same when the backup destination recording medium includes a file having the same file name as the file recorded on the backup source recording medium; apparatus.
ファイル処理装置であって、
バックアップ先の記録媒体に、バックアップ元の記録媒体に記録されているファイルと、同一のファイルが存在するか否か判定する同一性判定手段と、
前記同一性判定手段によりヘッダが同一のファイルが存在する場合、そのファイルをバックアップの対象から除外する手段とを備え、
前記同一性判定手段は、
ファイル全体のデータから予め定めた計算により生成される値を比較してファイルが同一か否か判定する
ことを特徴とするファイル処理装置。
A file processing device,
An identity determination means for determining whether or not the same file as the file recorded on the backup source recording medium exists in the backup destination recording medium;
A file having the same header by the identity determination means, and a means for excluding the file from backup targets;
The identity determination means includes
A file processing apparatus characterized by comparing values generated by a predetermined calculation from data of an entire file to determine whether or not the files are identical.
印刷装置であって、
デジタルカメラで撮影された画像データのファイルが記録された第1の記録媒体からファイルを読み込む第1のファイル読込手段と、
バックアップ用の第2の記録媒体に記録されているファイルを読み込む第2のファイル読込手段と、
前記第2の記録媒体に、前記第1の記録媒体に記録されているファイルと同一のファイルが存在するか否かを判定する同一性判定手段と、
前記同一性判定手段により同一のファイルが存在すると判定された場合、前記第1の記録媒体に記録されている同一と判定されたファイルを、バックアップの対象から除外する手段とを備え、
前記同一性判定手段は、
ファイルのヘッダが同一か否かによりファイルが同一か否か判定する
ことを特徴とする印刷装置。
A printing device,
First file reading means for reading a file from a first recording medium on which a file of image data photographed by a digital camera is recorded;
A second file reading means for reading a file recorded on the second recording medium for backup;
Identity determining means for determining whether or not the same file as the file recorded on the first recording medium exists in the second recording medium;
A means for excluding, from the backup target, a file determined to be the same recorded in the first recording medium when the identity determining means determines that the same file exists,
The identity determination means includes
A printing apparatus that determines whether or not files are the same based on whether or not the headers of the files are the same.
印刷装置であって、
デジタルカメラで撮影された画像データのファイルが記録された第1の記録媒体からファイルを読み込む第1のファイル読込手段と、
バックアップ用の第2の記録媒体に記録されているファイルを読み込む第2のファイル読込手段と、
前記第2の記録媒体に、前記第1の記録媒体に記録されているファイルと同一のファイルが存在するか否かを判定する同一性判定手段と、
前記同一性判定手段により同一のファイルが存在すると判定された場合、前記第1の記録媒体に記録されている同一と判定されたファイルを、バックアップの対象から除外する手段とを備え、
前記同一性判定手段は、
ファイル全体のデータから予め定めた計算により生成される値を比較してファイルが同一か否か判定する
ことを特徴とする印刷装置。
A printing device,
First file reading means for reading a file from a first recording medium on which a file of image data photographed by a digital camera is recorded;
A second file reading means for reading a file recorded on the second recording medium for backup;
Identity determining means for determining whether or not the same file as the file recorded on the first recording medium exists in the second recording medium;
A means for excluding, from the backup target, a file determined to be the same recorded in the first recording medium when the identity determining means determines that the same file exists,
The identity determination means includes
A printing apparatus comprising: comparing values generated by a predetermined calculation from data of an entire file to determine whether the files are the same.
ファイル処理装置のファイル処理方法であって、
バックアップ元の記録媒体に記録されているファイルと、バックアップ先の記録媒体に記録されているファイルとが同一か否かを判定する同一性判定ステップと、
前記同一性判定ステップにより同一と判定されたファイルをバックアップの対象から除外するステップとを備え、
前記同一性判定ステップは、
ファイルのヘッダが同一か否かによりファイルが同一か否かを判定する
ことを特徴とするファイル処理方法。
A file processing method for a file processing apparatus, comprising:
An identity determination step for determining whether or not the file recorded on the backup source recording medium and the file recorded on the backup destination recording medium are the same;
And a step of excluding files determined to be identical by the identity determination step from backup targets,
The identity determination step includes
A file processing method for determining whether or not files are the same depending on whether or not the headers of the files are the same.
ファイル処理装置のファイル処理方法であって、
バックアップ先の記録媒体に、バックアップ元の記録媒体に記録されているファイルと、同一のファイルが存在するか否か判定する同一性判定ステップと、
前記同一性判定手段によりヘッダが同一のファイルが存在する場合、そのファイルをバックアップの対象から除外するステップを備え、
前記同一性判定ステップは、
ファイル全体のデータから予め定めた計算により生成される値を比較してファイルが同一か否か判定する
ことを特徴とするファイル処理方法。
A file processing method for a file processing apparatus, comprising:
An identity determination step for determining whether or not the same file as the file recorded on the backup source recording medium exists in the backup destination recording medium;
If there is a file with the same header by the identity determination means, the step of excluding the file from the backup target,
The identity determination step includes
A file processing method comprising: comparing values generated by a predetermined calculation from data of an entire file to determine whether or not the files are the same.
JP2005366085A 2005-12-20 2005-12-20 File processor, printer and file processing method Pending JP2007172113A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2005366085A JP2007172113A (en) 2005-12-20 2005-12-20 File processor, printer and file processing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2005366085A JP2007172113A (en) 2005-12-20 2005-12-20 File processor, printer and file processing method

Publications (1)

Publication Number Publication Date
JP2007172113A true JP2007172113A (en) 2007-07-05

Family

ID=38298627

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2005366085A Pending JP2007172113A (en) 2005-12-20 2005-12-20 File processor, printer and file processing method

Country Status (1)

Country Link
JP (1) JP2007172113A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2019153134A (en) * 2018-03-05 2019-09-12 日本電産株式会社 Robot controller, backup file preservation method, and program

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2019153134A (en) * 2018-03-05 2019-09-12 日本電産株式会社 Robot controller, backup file preservation method, and program

Similar Documents

Publication Publication Date Title
JP4186678B2 (en) Print job management apparatus, program used therefor, and print job management method
JP4692041B2 (en) File management apparatus, file management method and program thereof
CN104683638A (en) Image Forming Apparatus Capable Of Reproducing User Settings, Method Of Controlling The Same, And Storage Medium
US8437018B2 (en) Image formation device supporting direct printing of print files stored in external storage devices
JPH11191870A (en) Method and system for processing order of image output service, order information preparing device to be used for the method, order receiving device and digital camera
JP2007172113A (en) File processor, printer and file processing method
JP2002033902A (en) Image signal processor
JP2002024060A (en) File storage device
US20070216913A1 (en) Image forming system, image forming apparatus, and image forming method
JP2006268493A (en) Image processor, image processing method program and recording medium
JP2003260847A (en) Printer and setting method for printing subject
JP2002354309A (en) Digital camera link system and record medium recording image data processing program
JP4574458B2 (en) Storage control device, storage control method, and program
JP2005109760A (en) Apparatus and method of storing image
JP2010010947A (en) Image processing apparatus, image processing method, program, and recording medium
JP4235519B2 (en) Image forming system, image forming apparatus, control method therefor, and program
JP2004178211A (en) Print image data processor
JP2008219425A (en) Image processor and image processing method
JP4198144B2 (en) Digital image editing device
US20150146219A1 (en) Portable terminal capable of displaying image, control method therefor, and storage medium storing control program therefor
JP2009217588A (en) Filing system, electronic camera, file access method, and program
EP2023594A1 (en) Image inputting apparatus, image inputting program product, camera, and image processing system
JP2004199854A (en) Program and terminal for data copying
JP4065490B2 (en) Image processing system
JP3907386B2 (en) Image processing apparatus and image processing method