JP2001078014A - Function addition method for digital camera, and recording medium - Google Patents

Function addition method for digital camera, and recording medium

Info

Publication number
JP2001078014A
JP2001078014A JP25167999A JP25167999A JP2001078014A JP 2001078014 A JP2001078014 A JP 2001078014A JP 25167999 A JP25167999 A JP 25167999A JP 25167999 A JP25167999 A JP 25167999A JP 2001078014 A JP2001078014 A JP 2001078014A
Authority
JP
Japan
Prior art keywords
digital camera
data
program
image
image data
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.)
Granted
Application number
JP25167999A
Other languages
Japanese (ja)
Other versions
JP3431130B2 (en
Inventor
Yasumasa Nakajima
靖雅 中島
Kazuto Mogami
和人 最上
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 JP25167999A priority Critical patent/JP3431130B2/en
Publication of JP2001078014A publication Critical patent/JP2001078014A/en
Application granted granted Critical
Publication of JP3431130B2 publication Critical patent/JP3431130B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To realize a function addition method for digital camera which can select whether or not a user is informed of that authentication data are added to a photographed picture. SOLUTION: A program which is recorded in an external recording, medium and pads picture alteration detection data into picture data is transmitted to a digital camera 1 from a personal computer 20 through an interface 17 and is installed in a flash memory 16 of the digital camera 1. At the time of installation of the program, the user can select whether it is installed so that the program name can be displayed or cannot be displayed. If the program is so installed that the program name cannot be displayed, the program name is not displayed in the set mode and cannot be deleted. Therefore, it is possible that the user is not informed whether alteration of a photographed picture can be detected or not when an owner of the digital camera 1 is different from the user.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は、撮影したデジタル
カメラにより記録された画像データに、画像データ改竄
の検出や、画像データ作成者による署名を行う認証デー
タを記録する機能を付加する方法に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a method for adding a function of detecting falsification of image data and recording authentication data for signature by an image data creator to image data recorded by a photographed digital camera. It is.

【0002】[0002]

【従来の技術】従来より、写真を撮影するときには、レ
ンズから取り込まれた光がフィルムの上に照射され、化
学反応が起きることで画像が記録されるカメラが用いら
れている。上記のカメラでは、フィルムを現像し、印画
紙に焼き付けることにより写真をプリントすることがで
きる。上記の化学反応として一般に塩化銀の反応が利用
されるため、このようなカメラによって撮影された写真
を銀塩写真という。
2. Description of the Related Art Conventionally, when a photograph is taken, a camera is used in which light taken in from a lens is irradiated onto a film and a chemical reaction occurs to record an image. With the above camera, a photograph can be printed by developing the film and printing it on photographic paper. Since the reaction of silver chloride is generally used as the above chemical reaction, a photograph taken by such a camera is called a silver halide photograph.

【0003】一方、近年ではCCD等の光センサにより
光を電気信号に変換し、それをデジタル信号に変換して
から、フラッシュメモリ等の記録媒体に記録するデジタ
ルカメラが普及している。デジタルカメラを用いると、
パーソナルコンピュータ等の処理装置を用いて画像の保
存や様々な加工を個人で手軽に行えるほか、プリンタで
出力することによりフィルムの現像をすることなしに写
真を印刷することができる。プリンタの印刷品質の向上
により、銀塩写真とほとんど区別がつかないほど品質の
高い写真も印刷できるようになってきている。
On the other hand, in recent years, digital cameras that convert light into an electric signal by an optical sensor such as a CCD, convert the light into a digital signal, and then record the digital signal on a recording medium such as a flash memory have become widespread. With a digital camera,
Images can be easily stored and various processes can be easily performed by an individual using a processing device such as a personal computer, and a photograph can be printed without developing the film by outputting it with a printer. 2. Description of the Related Art Improvements in the printing quality of printers have made it possible to print high-quality photographs that are almost indistinguishable from silver halide photographs.

【0004】[0004]

【発明が解決しようとする課題】しかしながら、損害保
険等の証明写真に用いようとする場合など、重要な証拠
写真にデジタルカメラで撮影した写真を用いると、デジ
タルカメラで撮影された画像はパーソナルコンピュータ
等により容易に加工が可能であり、銀塩写真と比較して
加工の跡を残さずに加工することが容易であるため、不
正に改竄された写真が用いられていても判別することが
困難であり、悪用される恐れがあるという問題がある。
However, when a photograph taken by a digital camera is used as an important proof photograph, such as when the photograph is to be used for a proof photograph such as non-life insurance, the image photographed by the digital camera becomes a personal computer. Etc., which makes it easier to process without leaving any trace of processing compared to silver halide photographs, making it difficult to discriminate even if a fraudulently tampered photograph is used. And there is a problem that it can be abused.

【0005】また、画像データの改竄を検出できるよう
な認証データを画像データに付加して記録するデジタル
カメラの場合でも、使用者が認証データが記録されると
いうことを知っていると、通常のデジタルカメラで撮影
する場合と撮影者の意識が変わり、異なった撮影結果に
なる場合がある。したがって、本発明の目的は撮影した
画像に認証データを付加することを使用者に知らせるか
否か選択できるデジタルカメラの機能付加方法を提供す
ることにある。
[0005] In addition, even in the case of a digital camera in which authentication data capable of detecting falsification of image data is added to the image data and recorded, if the user knows that the authentication data will be recorded, a normal operation is performed. When photographing with a digital camera, the photographer's consciousness may change, resulting in different photographing results. SUMMARY OF THE INVENTION Accordingly, an object of the present invention is to provide a digital camera function adding method capable of selecting whether to notify a user of adding authentication data to a captured image.

【0006】[0006]

【課題を解決するための手段】本発明の請求項1記載の
デジタルカメラの機能付加方法または請求項7記載のコ
ンピュータ読み取り可能な記録媒体によれば、画像デー
タに認証データを埋め込むプログラムをデジタルカメラ
に導入する手順と、認証データを埋め込むプログラムが
導入されていることをデジタルカメラの表示部に表示可
能とするか否かを選択する手順とを含む。そのため、デ
ジタルカメラの所有者と撮影者が異なる場合などで、認
証データの埋め込みを行うか否かを知らせたくない場合
には、認証データを埋め込むプログラムが導入されてい
ることを表示不可とし、撮影者にとって通常のデジタル
カメラとして使用させることができる。また、撮影者に
認証データを埋め込むプログラムが導入されていること
を知らせたい場合には、表示するように選択することが
できる。認証データとしては、画像改竄検出データや、
電子署名データなどを用いることができる。
According to the digital camera function adding method according to claim 1 of the present invention or a computer readable recording medium according to claim 7, a program for embedding authentication data in image data is stored in a digital camera. And a procedure for selecting whether or not the fact that the program for embedding the authentication data is installed can be displayed on the display unit of the digital camera. For this reason, if the owner of the digital camera and the photographer are different and you do not want to be notified whether or not to embed the authentication data, it is impossible to display that the program for embedding the authentication data is installed, It can be used as a normal digital camera for the person. If the photographer wants to be notified that a program for embedding authentication data is installed, the photographer can select to display the program. Authentication data includes image tampering detection data,
Electronic signature data or the like can be used.

【0007】本発明の請求項2記載のデジタルカメラの
機能付加方法によれば、認証データを埋め込むプログラ
ムが導入されていることを表示可能とするか否かをプロ
グラムの導入時に決定する。
According to the digital camera function adding method of the second aspect of the present invention, it is determined at the time of introduction of the program whether or not it is possible to display that the program for embedding authentication data is installed.

【0008】本発明の請求項3記載のデジタルカメラの
機能付加方法または請求項8記載のコンピュータ読み取
り可能な記録媒体によれば、デジタルカメラにより撮影
された画像データは圧縮して記録される。そのため、画
像の記録枚数を多くすることができる。圧縮の方法とし
ては、JPEGなどの肉眼で画像の劣化が判断しずらい
圧縮方法を用いることができる。
According to the digital camera function adding method according to the third aspect of the present invention or the computer-readable recording medium according to the eighth aspect, image data photographed by the digital camera is compressed and recorded. Therefore, the number of recorded images can be increased. As a compression method, it is possible to use a compression method, such as JPEG, which makes it difficult to determine image degradation with the naked eye.

【0009】本発明の請求項4記載のデジタルカメラの
機能付加方法または請求項9記載のコンピュータ読み取
り可能な記録媒体によれば、認証データを暗号化するプ
ログラムをデジタルカメラに導入する手順を含む。その
ため、画像データの変更に合わせて認証データを書き換
えるのを防ぐことができる。
According to the digital camera function adding method according to the fourth aspect of the present invention or a computer-readable recording medium according to the ninth aspect, a procedure for introducing a program for encrypting authentication data into the digital camera is included. Therefore, it is possible to prevent the authentication data from being rewritten according to the change of the image data.

【0010】本発明の請求項5記載のデジタルカメラの
機能付加方法または請求項10記載のコンピュータ読み
取り可能な記録媒体によれば、認証データとして画像改
竄検出データを用いる。画像改竄検出データとしては、
画像データ全体についてハッシュ関数により算出される
ハッシュ値などを用いることができる。
According to the digital camera function adding method of the present invention or the computer-readable recording medium of the present invention, image tampering detection data is used as authentication data. As the image alteration detection data,
A hash value calculated by a hash function can be used for the entire image data.

【0011】本発明の請求項6記載のデジタルカメラの
機能付加方法または請求項11記載のコンピュータ読み
取り可能な記録媒体によれば、認証データとして画像作
成者を認証する電子署名データを用いる。
According to the digital camera function adding method of the present invention or the computer-readable recording medium of the present invention, digital signature data for authenticating an image creator is used as authentication data.

【0012】[0012]

【発明の実施の形態】以下、本発明の実施の形態を図面
に基づいて詳細に説明する。図2は本発明の実施例のデ
ジタルカメラ1を説明するためのブロック図である。制
御部11、集光レンズ12、光センサとしてのCCD
(Charge Coupled Device )13、A/D変換部14、
RAM(Random Access Memory)15、画像データを記
録する画像記録媒体としてのフラッシュメモリ16、フ
ラッシュメモリ16の内容を外部のパーソナルコンピュ
ータ20等の処理装置と入出力するためのインターフェ
イス17、画像を表示可能な液晶表示部(LCD)19
などから構成される。制御部11はCPUと、デジタル
カメラ1の様々な制御を行うためのプログラムが記録さ
れたROMと、入出力手段とを備える。フラッシュメモ
リ16はデジタルカメラ1に内蔵されるほか、デジタル
カメラ1に着脱自在なメモリカードであってもよく、そ
の両方を備えていてもよい。
Embodiments of the present invention will be described below in detail with reference to the drawings. FIG. 2 is a block diagram for explaining the digital camera 1 according to the embodiment of the present invention. Control unit 11, condenser lens 12, CCD as optical sensor
(Charge Coupled Device) 13, A / D converter 14,
RAM (Random Access Memory) 15, flash memory 16 as an image recording medium for recording image data, interface 17 for inputting / outputting the contents of flash memory 16 to an external processing device such as personal computer 20, and displaying images Liquid crystal display (LCD) 19
Etc. The control unit 11 includes a CPU, a ROM in which programs for performing various controls of the digital camera 1 are recorded, and an input / output unit. The flash memory 16 may be built in the digital camera 1, may be a memory card detachable from the digital camera 1, or may include both of them.

【0013】本実施例のデジタルカメラ1は、外部の記
録媒体(例えば、磁気ディスクやCD−ROM)に記録
されたプログラムを、パーソナルコンピュータ20から
デジタルカメラ1にインターフェイス17を介して送信
し、プログラムをデジタルカメラ1のフラッシュメモリ
16に導入(インストール)することができる。プログ
ラムを導入するためのプログラムもまた、外部の記録媒
体に記録され、パーソナルコンピュータ20によって実
行されることにより、プログラムのインストールが行わ
れる。デジタルカメラ1にインストールされたプログラ
ムは、デジタルカメラ1の制御部11により実行するこ
とが可能である。デジタルカメラ1に着脱自在なメモリ
カード内にプログラムを記録し、デジタルカメラ1に内
蔵されたフラッシュメモリ16にプログラムを送信する
ことにより、インストールしてもよい。
The digital camera 1 of the present embodiment transmits a program recorded on an external recording medium (for example, a magnetic disk or a CD-ROM) from the personal computer 20 to the digital camera 1 via the interface 17. Can be installed (installed) in the flash memory 16 of the digital camera 1. A program for introducing the program is also recorded on an external recording medium, and is executed by the personal computer 20, whereby the program is installed. The program installed in the digital camera 1 can be executed by the control unit 11 of the digital camera 1. The program may be installed in a digital camera 1 by recording the program in a removable memory card and transmitting the program to a flash memory 16 built in the digital camera 1.

【0014】本実施例では、画像データに認証データと
しての画像改竄検出データを、画像データから特徴デー
タを生成し電子透かしの方式により画像データに埋め込
む手順を含むプログラム(以下、透かしプログラム)を
デジタルカメラに導入する。デジタルカメラ1で撮影が
行われた時には、上記プログラムが実行され、画像デー
タがフラッシュメモリ16に記録される。プログラムの
インストール時には、プログラム名を表示可能にインス
トールするか、表示不可にインストールするかを、使用
者が選択することができる。プログラムのインストール
は、デジタルカメラ1を購入後に所有者が自分で行って
もよく、また、プログラムがインストールされた状態で
販売してもよい。
In the present embodiment, a program (hereinafter referred to as a watermark program) including a procedure for generating image falsification detection data as authentication data in image data, and for embedding the image data in the image data by a digital watermarking method by generating feature data from the image data is used. Introduce to the camera. When photographing is performed by the digital camera 1, the above-described program is executed, and image data is recorded in the flash memory 16. When installing the program, the user can select whether to install the program name so that it can be displayed or not. The installation of the program may be performed by the owner himself after purchasing the digital camera 1, or may be sold with the program installed.

【0015】使用者は、デジタルカメラ1に設けられる
入力キーへの入力により、デジタルカメラにより撮影を
行う撮影モード、すでに撮影した画像を表示する再生モ
ード、デジタルカメラの作動について種々の設定を行う
設定モードなどを切り替えることができる。設定モード
では、インストールされたプログラムの種類を示すプロ
グラム名をLCD19に表示することができる。また、
入力キーの操作によりプログラム名を選択してプログラ
ムの削除を実行することができる。
The user inputs settings to the input keys provided on the digital camera 1 to set a photographing mode for photographing with the digital camera, a reproduction mode for displaying already photographed images, and various settings for operation of the digital camera. Modes can be switched. In the setting mode, a program name indicating the type of the installed program can be displayed on the LCD 19. Also,
The program name can be selected by operating the input key to delete the program.

【0016】インストール時にプログラム名を表示不可
にインストールされている場合は、設定モードでプログ
ラム名は表示されず、削除することもできない。そのた
め、デジタルカメラ1の所有者と撮影者が異なる場合な
どで、撮影した画像の改竄を検出できるか否かを撮影者
に知らせたくない場合に、撮影者にとって通常のデジタ
ルカメラとして使用させることができる。
If the program name is installed so that the program name cannot be displayed at the time of installation, the program name is not displayed in the setting mode and cannot be deleted. Therefore, in a case where the owner of the digital camera 1 is different from the photographer and the user does not want to inform the photographer whether or not tampering of the photographed image can be detected, the photographer can use the digital camera 1 as a normal digital camera. it can.

【0017】図1は、透かしプログラムをインストール
したデジタルカメラ1により撮影が行われる行程を示す
フローチャートである。ユーザーがデジタルカメラ1の
シャッターを押すと、ステップS101で、集光レンズ
12により集光された光がCCD13に入力され、電気
信号に変換される。集光レンズ12の絞りやシャッター
スピード、すなわちCCD13の蓄積時間は制御部11
によって自動的に、またはユーザーの指示によって制御
される。CCD13として、例えばR(Red)、G(Gre
en)、B(Blue)の原色フィルタを有する複数の画素が
マトリックス状に配置されたCCD13を用いることに
より、カラー画像を撮影することができる。C(Cya
n)、M(Magenta)、Y(Yellow)、G(Green)の補
色フィルタを有するCCDを用いる場合もある。
FIG. 1 is a flowchart showing a process in which a digital camera 1 in which a watermark program is installed performs photographing. When the user presses the shutter of the digital camera 1, the light condensed by the condenser lens 12 is input to the CCD 13 and converted into an electric signal in step S101. The aperture and shutter speed of the condenser lens 12, that is, the accumulation time of the CCD 13 are controlled by the control unit 11.
Automatically or by user instructions. As the CCD 13, for example, R (Red), G (Gre
By using the CCD 13 in which a plurality of pixels having primary color filters of en) and B (Blue) are arranged in a matrix, a color image can be taken. C (Cya
n), a CCD having complementary color filters of M (Magenta), Y (Yellow), and G (Green) may be used.

【0018】ステップS102では、CCD13から出
力された電気信号がA/D変換部14によりデジタル信
号に変換され、ステップS103ではA/D変換部14
から出力されたデジタルデータが高速化のためDMA
(Direct Memory Access)により制御部11を介さずに
直接RAM15のアドレスを指定して記録される。RA
M15としてはセルフリフレッシュ機能をもつDRAM
を用いることができる。
In step S102, the electric signal output from the CCD 13 is converted into a digital signal by the A / D converter 14. In step S103, the electric signal is converted into a digital signal.
Digital data output from DMA for high speed
(Direct Memory Access) and directly specifies the address of the RAM 15 without the intervention of the control unit 11 and is recorded. RA
DRAM with self-refresh function as M15
Can be used.

【0019】ステップS104では、RAM15に記録
されたデータについて、ホワイトバランスの調整、補間
処理、色補正などの各種の画像補正が行われる。ここ
で、画像の拡大・縮小など、その他の画像処理を行って
もよい。
In step S104, various image corrections such as white balance adjustment, interpolation processing, and color correction are performed on the data recorded in the RAM 15. Here, other image processing such as enlargement / reduction of an image may be performed.

【0020】ステップS105〜S110では、画像記
録媒体への記録枚数を多くするためにステップS104
で補正されたデータをJPEG(Joint Photographic E
xperts Group)などの方式により圧縮し、容量の小さな
画像データを生成する。JPEG圧縮は、制御部11に
よってソフトウェア的に行うほか、高速化のために専用
の回路を用いることができる。
In steps S105 to S110, steps S104 and S104 are performed to increase the number of images to be recorded on the image recording medium.
Data corrected by JPEG (Joint Photographic E
xperts Group) to generate small-capacity image data. The JPEG compression is performed by the control unit 11 using software, and a dedicated circuit can be used for speeding up.

【0021】以下にJPEG圧縮の手順を説明する。ス
テップS105では、まず画像データを8×8画素を1
単位とした複数のブロックに分割する。例えば、640
×480画素の画像データであれば、80×60=48
00ブロックに分割され、ブロック単位に処理が行われ
る。
The procedure of JPEG compression will be described below. In step S105, first, the image data is set to 8 × 8 pixels by 1
Divide into multiple blocks as a unit. For example, 640
80 × 60 = 48 for image data of × 480 pixels
It is divided into 00 blocks, and the processing is performed in block units.

【0022】次に、B1〜B480の各ブロックごとに
画素同士の濃度の相対関係(空間周波数)を調べ、DC
T(拡散コサイン変換)方式により、各ブロックを低周
波数項のDCT0から高周波数項のDCT63に分け
る。DCT0〜DCT63はそれぞれ8ビットの値であ
る。図3には、高周波数項のDCT63を16進数で示
している。そして、所定の量子化テーブルを用いて量子
化することにより高周波数項の多くが0となるように
し、後の行程でハフマン符号化したときに圧縮率が高く
なるようにする。
Next, the relative relationship (spatial frequency) between the densities of the pixels is checked for each block of B1 to B480, and the DC
Each block is divided into a low-frequency term DCT0 to a high-frequency term DCT63 by a T (spread cosine transform) method. DCT0 to DCT63 are 8-bit values. FIG. 3 shows the DCT 63 of the high frequency term in hexadecimal. Then, quantization is performed using a predetermined quantization table so that many of the high-frequency terms become zero, and the compression ratio becomes high when Huffman coding is performed in a later process.

【0023】ステップS106では、後の行程で特徴デ
ータを埋め込む位置を決定するために、ブロック化され
DCT変換された画像データの先頭のブロックから順に
各ブロックで最も高周波側の成分であるDCT63を調
べる。そして、DCT63の値が、0および1以外のブ
ロックを埋め込みブロックとして記憶する。図3に示す
例では、B3、B4、B5及びB6が、、および
の埋め込みブロックとして選択され記憶される。本実
施例では128ビットのハッシュ値を用いるために、1
28のブロックを選択する。埋め込みブロックが128
ブロックに満たない場合は、足りない埋め込みブロック
数と未調査のブロックが一致した時点で、残りのブロッ
クを全て埋め込みブロックとする。そして埋め込みブロ
ックのDCT63の最下位ビットを全て0に置き換え
る。これにより、例えばブロックB4のDCT63はF
FからFEに書き換えられるが、高い周波数における小
さな変動は、肉眼ではほとんど判断することができない
ため、画像の歪みは最小限となる。
In step S106, the DCT 63, which is the highest frequency component in each block, is examined in order from the top block of the DCT-converted image data in order to determine the position where feature data is to be embedded in a later process. . Then, blocks whose DCT value is other than 0 and 1 are stored as embedded blocks. In the example shown in FIG. 3, B3, B4, B5, and B6 are selected and stored as embedded blocks. In this embodiment, since a 128-bit hash value is used, 1
28 blocks are selected. 128 embedded blocks
If the number of embedded blocks is less than the number of embedded blocks, when the number of missing embedded blocks matches the unexamined block, all remaining blocks are regarded as embedded blocks. Then, all the least significant bits of the DCT 63 of the embedded block are replaced with 0. Thereby, for example, the DCT 63 of the block B4 is F
Although rewritten from F to FE, small fluctuations at high frequencies are barely detectable to the naked eye, and image distortion is minimized.

【0024】ステップS107では、ステップS106
で部分的に書き換えられた画像データに基づいて、制御
部11により特徴データを生成する。特徴データとして
は、例えば種々の一方向ハッシュ関数により算出される
ハッシュ値を用いることができる。また、ハッシュ値の
他に、チェックサム、CRC方式等、データがオリジナ
ルから変更されているか否かを検出することができる公
知の方法を本発明に適用することもできる。これらの方
法を用いることにより、各々の画像データに対して異な
る特徴データを割り当てることができ、また、特徴デー
タから元の画像データを再現することはほとんど不可能
となる。本実施例では、特徴データとして128ビット
のハッシュ値を算出する。例えば、MD5、SHAある
いはRIPEMDハッシュ関数を用いることができる。
In step S107, step S106
The control unit 11 generates feature data based on the image data partially rewritten in. As the feature data, for example, hash values calculated by various one-way hash functions can be used. In addition to a hash value, a known method such as a checksum or a CRC method that can detect whether or not data has been changed from the original can be applied to the present invention. By using these methods, different feature data can be assigned to each image data, and it is almost impossible to reproduce the original image data from the feature data. In this embodiment, a 128-bit hash value is calculated as the feature data. For example, an MD5, SHA or RIPEMD hash function can be used.

【0025】ステップS108では、ハッシュ値などの
特徴データが解析されたり容易に書き換えられたりしな
いように、制御部11により暗号化して暗号化データと
する。暗号化の方法としては、公開鍵と秘密鍵を用いる
RAS方式など、公知の方法を用いることができる。秘
密鍵で暗号化した暗号化データは、秘密鍵と対になった
公開鍵を用いて復号することができる。秘密鍵はデジタ
ルカメラ1内に隠し属性のファイルとして記録されてい
る。秘密鍵は、他人に知られてはならず、また、本実施
例ではユーザーが秘密鍵を知る必要はない。一般に、公
開鍵から、それに対応する秘密鍵を求めることは非常に
困難である。これにより、画像データが同一の特徴デー
タを得られる別の画像データに変更されることや、画像
データの変更に合わせて特徴データが書き換えられるの
を防ぐことができる。
In step S108, the control unit 11 encrypts the characteristic data such as the hash value so that the characteristic data is not easily analyzed or rewritten to obtain encrypted data. As an encryption method, a known method such as the RAS method using a public key and a secret key can be used. The encrypted data encrypted with the secret key can be decrypted using the public key paired with the secret key. The secret key is recorded in the digital camera 1 as a file with a hidden attribute. The secret key must not be known to others, and in this embodiment, the user does not need to know the secret key. In general, it is very difficult to find a corresponding private key from a public key. As a result, it is possible to prevent the image data from being changed to another image data that can obtain the same feature data, and from being rewritten in accordance with the change in the image data.

【0026】ステップS109では、ハッシュ値を暗号
化した暗号化データを、選択された埋め込みブロックの
DCT63の最下位ビットに1ビットずつ書き込むこと
により、画像の劣化を最小限にして特徴データを画像デ
ータの中に埋め込む。なお、JPEG形式の画像データ
は、カラー画像の場合は、Y(輝度)、U、V(色相)
の成分を有するが、暗号化された特徴データはY成分に
埋め込まれる。
In step S109, the encrypted data obtained by encrypting the hash value is written one bit at a time to the least significant bit of the DCT 63 of the selected embedded block, thereby minimizing the deterioration of the image and reducing the characteristic data to the image data. Embed in In the case of a color image, JPEG image data is Y (luminance), U, V (hue).
, But the encrypted feature data is embedded in the Y component.

【0027】ステップS110では、暗号化データが埋
め込まれたデータをハフマン符号化することにより、デ
ータの圧縮を行う。ハフマン符号化では、データの可逆
性は満足されており、処理の前後でデータの欠損はな
い。S105での量子化テーブルによる量子化の度合い
を変えることによって圧縮率を変更することができる。
In step S110, the data in which the encrypted data is embedded is subjected to Huffman encoding to compress the data. In Huffman coding, the reversibility of data is satisfied, and there is no loss of data before and after processing. The compression ratio can be changed by changing the degree of quantization by the quantization table in S105.

【0028】ステップS111では、S110で圧縮さ
れた画像データをJPEGファイル30として画像記録
媒体としてのフラッシュメモリ16に記録する。フラッ
シュメモリ16は通電しなくても記録内容を保存するこ
とのできる書換え可能な記録媒体であり、デジタルカメ
ラ1に内蔵されるか、あるいは着脱自在にデジタルカメ
ラ1に取り付けられている。一般にJPEGファイル3
0は図4に示すようにデータ長、圧縮率等の情報を含む
ヘッダ部31と、画像データ部32とから構成される。
デジタルカメラ1によって記録されるJPEGファイル
30の場合は、撮影日や撮影条件等の情報もヘッダ部3
1に記録されることがある。本実施例では、暗号化に用
いた秘密鍵に対応する公開鍵33をヘッダ部31に更に
加えて記録している。
In step S111, the image data compressed in step S110 is recorded as a JPEG file 30 in the flash memory 16 as an image recording medium. The flash memory 16 is a rewritable recording medium capable of storing recorded contents without power supply, and is built in the digital camera 1 or is detachably attached to the digital camera 1. Generally JPEG file 3
0 is composed of a header section 31 including information such as a data length and a compression ratio and an image data section 32 as shown in FIG.
In the case of the JPEG file 30 recorded by the digital camera 1, information such as a photographing date and photographing conditions is also included in the header section 3.
1 may be recorded. In this embodiment, the public key 33 corresponding to the secret key used for encryption is further added to the header section 31 and recorded.

【0029】設定モードで透かしプログラムを実行しな
いように設定されている場合は、通常のJPEG圧縮と
同様の手順により、ステップS105でDCT変換され
量子化されたデータはステップS110でハフマン符号
化により圧縮される。
If the setting is made so that the watermark program is not executed in the setting mode, the data that has been DCT-transformed and quantized in step S105 is compressed by Huffman coding in step S110 according to the same procedure as ordinary JPEG compression. Is done.

【0030】上記の例では、JPEG圧縮の途中の行程
で特徴データを埋め込んだが、特徴データの埋め込みを
行わずにハフマン符号化まで行う通常のJPEG圧縮を
行った後に、JPEGの画像データを部分的に復号化
し、ステップS106〜S109と同様の行程により特
徴データを埋め込み、再度ハフマン符号化してもよい。
In the above example, the feature data is embedded in a process in the middle of the JPEG compression. , The feature data may be embedded by the same process as in steps S106 to S109, and Huffman encoding may be performed again.

【0031】上記のようなデジタルカメラ1と、デジタ
ルカメラ1から出力された画像データを入力する手段を
備えるパーソナルコンピュータ20等のコンピュータ
と、デジタルカメラ1によって記録された画像データが
変更されたか否かを判定するためにパーソナルコンピュ
ータ20等にインストールされた検出プログラムとによ
って画像改竄検出システムが構成される。
The digital camera 1 as described above, a computer such as a personal computer 20 having means for inputting image data output from the digital camera 1, and whether or not the image data recorded by the digital camera 1 has been changed The image tampering detection system is configured by a detection program installed in the personal computer 20 or the like to determine the falsification.

【0032】本実施例の画像改竄検出システムにより画
像の改竄を検出する行程を図5に示すフローチャートを
用いて説明する。ステップS201では、検出プログラ
ムにより、パーソナルコンピュータ20にデジタルカメ
ラから画像データが読み込まれる。パーソナルコンピュ
ータ20に画像データを読み込む手段としては、シリア
ルケーブル18等を介してデジタルカメラ1のインター
フェイス17と接続してフラッシュメモリ16内のJP
EGファイルをパーソナルコンピュータ20に転送する
方法や、フラッシュメモリ16が着脱自在でパーソナル
コンピュータ20と互換性のある形式でフォーマットさ
れている場合には、アダプタを介してフラッシュメモリ
16に記録されたJPEGファイル30をパーソナルコ
ンピュータ20で直接読取ることも可能である。
The process of detecting image tampering by the image tampering detection system of this embodiment will be described with reference to the flowchart shown in FIG. In step S201, image data is read from the digital camera into the personal computer 20 by the detection program. As means for reading image data into the personal computer 20, the personal computer 20 is connected to the interface 17 of the digital camera 1 via a serial cable 18 or the like,
When the EG file is transferred to the personal computer 20, or when the flash memory 16 is detachably formatted in a format compatible with the personal computer 20, the JPEG file recorded on the flash memory 16 via the adapter is used. It is also possible to read 30 directly by the personal computer 20.

【0033】ステップS202では、上記のステップS
106で特徴データを埋め込むブロックを選択したとき
と同様の手順で、特徴データが埋め込まれているべきブ
ロックを選択し、128ビットの暗号化データを抽出す
る。
In step S202, the above step S
In the same procedure as when the block in which the feature data is embedded is selected in 106, a block in which the feature data is to be embedded is selected, and 128-bit encrypted data is extracted.

【0034】ステップS203では、暗号化データが埋
め込まれていたビットに全て0を書き込み、暗号化デー
タが埋め込まれる前の元画像データを生成する。ステッ
プS204では、ステップS106と同様の手順で、1
28ビットのハッシュ値を算出する。
In step S203, all 0s are written into the bits where the encrypted data is embedded, and the original image data before the encrypted data is embedded is generated. In step S204, 1 is performed in the same procedure as in step S106.
Calculate a 28-bit hash value.

【0035】ステップS205では、ステップS202
で抽出した暗号化データを、JPEGファイルのヘッダ
に書き込まれた公開鍵を用いて、秘密鍵によって暗号化
されたことを確認すると同時に暗号を復号する。それに
より、暗号化前のハッシュ値を求める。
In step S205, step S202
Using the public key written in the header of the JPEG file, it is confirmed that the encrypted data extracted by the above is encrypted by the secret key, and at the same time, the encryption is decrypted. Thereby, a hash value before encryption is obtained.

【0036】ステップS206では、ステップS204
で算出されたハッシュ値とステップS205で算出され
たハッシュ値を比較し、一致していれば画像データは本
実施例のデジタルカメラ1により撮影された後に改竄さ
れていないものであると判定し、一致しなければ画像デ
ータは撮影時から改竄されていると判定する。また、ス
テップS205で、暗号化データが公開鍵で復号できな
い場合にも、その画像データは本発明実施例のデジタル
カメラ1で撮影されたものではないか、撮影後に変更さ
れたものとみなされる。
In step S206, step S204
The hash value calculated in step S205 is compared with the hash value calculated in step S205, and if they match, it is determined that the image data has not been altered after being photographed by the digital camera 1 of the present embodiment, If they do not match, it is determined that the image data has been altered from the time of shooting. Also, in step S205, even if the encrypted data cannot be decrypted with the public key, it is considered that the image data was not captured by the digital camera 1 of the embodiment of the present invention or changed after the capture.

【0037】したがって、本発明実施例の画像改竄検出
システムを使用する場合、写真の提出者は、デジタルカ
メラ1から出力して変更を加えていない画像データを含
むファイル(本実施例ではJPEGファイル30)をフ
ロッピー等の記録媒体に記録したもの、あるいは着脱可
能な記録媒体であるフラッシュメモリ16をデジタルカ
メラ1から取り外したものを、印刷した写真と共に、あ
るいは相手の求めに応じて提出する。受け取り側は、パ
ーソナルコンピュータ20にインストールされた検出プ
ログラムを用いて受け取ったファイルを読み込んで調べ
ることにより、そのファイルの画像データがデジタルカ
メラ1から出力された時点から変更されていないという
ことを確認することができる。
Therefore, when using the image tampering detection system according to the embodiment of the present invention, the submitter of the photograph is required to output a file containing the unmodified image data output from the digital camera 1 (in this embodiment, the JPEG file 30). ) Is recorded on a recording medium such as a floppy, or a flash memory 16 which is a removable recording medium removed from the digital camera 1 is submitted together with a printed photograph or at the request of the other party. The receiving side reads the received file using the detection program installed in the personal computer 20 and checks it, thereby confirming that the image data of the file has not been changed since the time when it was output from the digital camera 1. be able to.

【0038】また、検出プログラムにJPEGファイル
30等の画像データの画像を表示する機能をもたせるこ
とにより、印刷された写真と表示された画像が同一であ
ることを確認することができる。
Further, by providing the detection program with a function of displaying an image of image data such as the JPEG file 30, it is possible to confirm that the printed photo and the displayed image are the same.

【0039】上記の実施例では、JPEG圧縮したもの
を画像データとして画像記録媒体に記録したが、本発明
は他の圧縮方法で圧縮したものや、無圧縮のデータを画
像データとして記録したものにも適用できる。また、本
実施例では、特徴データを暗号化してJPEGファイル
の画像データ部分の中に埋め込んで記録したが、本発明
としてはヘッダ部に書き込むなど、特徴データは画像デ
ータのどの位置にあってもよい。
In the above embodiment, JPEG-compressed data is recorded as image data on the image recording medium. However, the present invention is not limited to data compressed by another compression method, or uncompressed data recorded as image data. Can also be applied. Further, in the present embodiment, the feature data is encrypted and embedded in the image data portion of the JPEG file and recorded. However, according to the present invention, the feature data can be written in any position of the image data, such as writing in the header portion. Good.

【0040】また、本実施例では、認証データとして画
像データのわずかな変更により破壊され、画像の改竄を
検出することのできる画像改竄検出データを用いたが、
画像データの作成者を認証することのできる電子署名デ
ータを用いてもよい。電子署名データは、画像データを
修正しても容易には失われないように画像データの中に
埋め込むことができる。
Further, in this embodiment, the image falsification detection data which is destroyed by a slight change of the image data and can detect the falsification of the image is used as the authentication data.
Digital signature data that can authenticate the creator of the image data may be used. The electronic signature data can be embedded in the image data so that the data is not easily lost even if the image data is modified.

【図面の簡単な説明】[Brief description of the drawings]

【図1】本発明の実施例におけるデジタルカメラにより
画像を記録する手順を示すフローチャートである。
FIG. 1 is a flowchart illustrating a procedure for recording an image by a digital camera according to an embodiment of the present invention.

【図2】本発明の実施例によるデジタルカメラを示すブ
ロック図である。
FIG. 2 is a block diagram illustrating a digital camera according to an embodiment of the present invention.

【図3】本発明の実施例による画像データの特徴データ
を算出する方法を説明するための模式図である。
FIG. 3 is a schematic diagram for explaining a method for calculating feature data of image data according to an embodiment of the present invention.

【図4】本発明の実施例によるJPEGファイルの構造
を説明するための模式図である。
FIG. 4 is a schematic diagram for explaining a structure of a JPEG file according to an embodiment of the present invention.

【図5】本発明の実施例により画像データの改竄を検出
する手順を示すフローチャートである。
FIG. 5 is a flowchart illustrating a procedure for detecting tampering of image data according to the embodiment of the present invention.

【符号の説明】[Explanation of symbols]

1 デジタルカメラ 11 制御部 12 集光レンズ 13 CCD(撮像部) 14 A/D変換部 15 RAM 16 フラッシュメモリ 17 インターフェイス 18 接続ケーブル 19 液晶表示部(LCD) 20 パーソナルコンピュータ 30 JPEGファイル 31 ヘッダ部 32 画像データ 33 公開鍵 Reference Signs List 1 digital camera 11 control unit 12 condenser lens 13 CCD (imaging unit) 14 A / D conversion unit 15 RAM 16 flash memory 17 interface 18 connection cable 19 liquid crystal display unit (LCD) 20 personal computer 30 JPEG file 31 header unit 32 image Data 33 public key

フロントページの続き Fターム(参考) 5B057 BA26 CA01 CA08 CA12 CA16 CB01 CB08 CB12 CB16 CC02 CE08 CG05 CG07 CH08 DB02 DB06 DB09 DC30 5C022 AA11 AA13 AC01 AC18 AC42 AC69 AC75 AC80 CA00 5C053 FA08 FA13 FA27 GA11 GB06 GB36 JA21 KA21 KA24 LA01 5C076 AA14 AA36 BA06 Continued on front page F-term (reference) AA14 AA36 BA06

Claims (11)

【特許請求の範囲】[Claims] 【請求項1】 撮影対象からの光を画像データに変換す
るデジタルカメラに機能を付加する方法であって、 前記画像データに認証データを埋め込むプログラムを前
記デジタルカメラに導入する手順と、 前記認証データを埋め込むプログラムが導入されている
ことを前記デジタルカメラの表示部に表示可能とするか
否かを選択する手順と、を含むことを特徴とするデジタ
ルカメラの機能付加方法。
1. A method for adding a function to a digital camera that converts light from a shooting target into image data, comprising: introducing a program for embedding authentication data into the image data into the digital camera; Selecting whether or not to display on the display unit of the digital camera that a program for embedding is installed, on the display unit of the digital camera.
【請求項2】 前記認証データを埋め込むプログラムが
導入されていることを表示可能とするか否かを、前記プ
ログラムの導入時に決定することを特徴とする請求項1
記載のデジタルカメラの機能付加方法。
2. The method according to claim 1, wherein whether or not it is possible to display that the program for embedding the authentication data is installed is determined when the program is installed.
The method for adding functions of the digital camera described in the above.
【請求項3】 前記画像データは圧縮して記録されるこ
とを特徴とする請求項1または2のいずれかに記載のデ
ジタルカメラの機能付加方法。
3. The method according to claim 1, wherein the image data is compressed and recorded.
【請求項4】 前記認証データを暗号化するプログラム
を前記デジタルカメラに導入する手順を含むことを特徴
とする請求項1〜3のいずれか一項に記載のデジタルカ
メラの機能付加方法。
4. The digital camera function adding method according to claim 1, further comprising a step of introducing a program for encrypting the authentication data into the digital camera.
【請求項5】 前記認証データは、画像データ生成後の
改竄の有無を判断する画像改竄検出データであることを
特徴とする請求項1〜4のいずれか一項に記載のデジタ
ルカメラの機能付加方法。
5. The digital camera according to claim 1, wherein the authentication data is image falsification detection data for determining whether there is tampering after image data generation. Method.
【請求項6】 前記認証データは、画像作成者を認証す
る電子署名データであることを特徴とする請求項1〜4
のいずれか一項に記載のデジタルカメラの機能付加方
法。
6. The authentication data according to claim 1, wherein the authentication data is electronic signature data for authenticating an image creator.
The method for adding functions of a digital camera according to any one of the above.
【請求項7】 撮影対象からの光を画像データに変換す
るデジタルカメラに機能を付加するプログラムであっ
て、 前記画像データに認証データを埋め込むプログラムを前
記デジタルカメラに導入する手順と、 前記認証データを埋め込むプログラムが導入されている
ことを前記デジタルカメラの表示部に表示可能とするか
否かを選択する手順と、を含むことを特徴とするコンピ
ュータ読み取り可能なプログラムを記録した記録媒体。
7. A program for adding a function to a digital camera for converting light from an object to be photographed into image data, wherein a program for embedding authentication data in the image data is introduced into the digital camera; A step of selecting whether or not it is possible to display on the display unit of the digital camera that the program for embedding is installed, on the display unit of the digital camera.
【請求項8】 前記画像データは圧縮して記録されるこ
とを特徴とする請求項7に記載のコンピュータ読み取り
可能なプログラムを記録した記録媒体。
8. The recording medium according to claim 7, wherein the image data is compressed and recorded.
【請求項9】 前記認証データを暗号化するプログラム
を前記デジタルカメラに導入する手順を含むことを特徴
とする請求項7または8のいずれかに記載のコンピュー
タ読み取り可能なプログラムを記録した記録媒体。
9. The recording medium according to claim 7, further comprising a step of introducing a program for encrypting the authentication data into the digital camera.
【請求項10】 前記認証データは、画像データ生成後
の改竄の有無を判断する画像改竄検出データであること
を特徴とする請求項7〜9のいずれか一項に記載のコン
ピュータ読み取り可能なプログラムを記録した記録媒
体。
10. The computer-readable program according to claim 7, wherein the authentication data is image tampering detection data for determining whether there is tampering after image data generation. Recording medium on which is recorded.
【請求項11】 前記認証データは、画像作成者を認証
する電子署名データであることを特徴とする請求項7〜
9のいずれか一項に記載のコンピュータ読み取り可能な
プログラムを記録した記録媒体。
11. The apparatus according to claim 7, wherein the authentication data is electronic signature data for authenticating an image creator.
10. A recording medium on which the computer-readable program according to any one of 9 is recorded.
JP25167999A 1999-09-06 1999-09-06 Digital camera function addition method and recording medium Expired - Fee Related JP3431130B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP25167999A JP3431130B2 (en) 1999-09-06 1999-09-06 Digital camera function addition method and recording medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP25167999A JP3431130B2 (en) 1999-09-06 1999-09-06 Digital camera function addition method and recording medium

Publications (2)

Publication Number Publication Date
JP2001078014A true JP2001078014A (en) 2001-03-23
JP3431130B2 JP3431130B2 (en) 2003-07-28

Family

ID=17226409

Family Applications (1)

Application Number Title Priority Date Filing Date
JP25167999A Expired - Fee Related JP3431130B2 (en) 1999-09-06 1999-09-06 Digital camera function addition method and recording medium

Country Status (1)

Country Link
JP (1) JP3431130B2 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7868933B2 (en) 2004-08-13 2011-01-11 Konica Minolta Opto, Inc. Imaging device
JP2012037955A (en) * 2010-08-04 2012-02-23 Nikon Corp Photographing information processing program and photographing information processing device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7868933B2 (en) 2004-08-13 2011-01-11 Konica Minolta Opto, Inc. Imaging device
JP2012037955A (en) * 2010-08-04 2012-02-23 Nikon Corp Photographing information processing program and photographing information processing device

Also Published As

Publication number Publication date
JP3431130B2 (en) 2003-07-28

Similar Documents

Publication Publication Date Title
US7984300B2 (en) System and method of authenicating a digitally captured image
JP3997085B2 (en) Image generation device
JP4097773B2 (en) Digital image editing system
US20110002012A1 (en) Image processing apparatus, image reading apparatus, image forming apparatus and recording medium
EP1865459A1 (en) The method of digital watermark and the corresponding device, and digital camera which can append watermark
JP2006121656A (en) Electronic watermark embedding device, electronic watermark embedding method, and program for making computer execute the method
JP2000152148A (en) Electronic camera
US6600571B1 (en) Method, apparatus and recording medium for image printing
US20030123699A1 (en) Image generating apparatus and verification data generation method
JP3164215B2 (en) Digital camera and image tampering detection system
JP3246660B2 (en) Digital camera and image tampering detection system
JP3521723B2 (en) Digital camera and image authentication system using the same
JP2000050043A (en) Method and device for processing image, computer readable storage medium recording program for executing the method for computer and image pickup device
JP3431130B2 (en) Digital camera function addition method and recording medium
JP3528700B2 (en) Digital camera and image tampering detection system
JP2001309159A (en) Recorder
JP4632445B2 (en) Image file generation apparatus, image file generation method, program, and storage medium
JP2007080071A (en) System having alteration detecting function
JP2009027503A (en) Imaging apparatus, alteration detecting method, and alteration detecting device
JP2000216985A (en) Digital watermark embedding device and method and recording medium for storing digital watermark embedding program and digital camera and method for controlling the same
JP2003289435A (en) Image data generation method, falsification detecting method, image data generation apparatus, falsification detection apparatus, computer program, and recording medium
JP2007013882A (en) Storage medium, and apparatus and method for digital data processing
JPH10290359A (en) Time stamp device
JP4143516B2 (en) Image processing apparatus, image verification method, program, and storage medium
JP2003348536A (en) Digital camera

Legal Events

Date Code Title Description
FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20080523

Year of fee payment: 5

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090523

Year of fee payment: 6

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100523

Year of fee payment: 7

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110523

Year of fee payment: 8

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120523

Year of fee payment: 9

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20130523

Year of fee payment: 10

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20140523

Year of fee payment: 11

S531 Written request for registration of change of domicile

Free format text: JAPANESE INTERMEDIATE CODE: R313531

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

LAPS Cancellation because of no payment of annual fees