JP2001078070A - Digital camera and picture alteration detection system - Google Patents

Digital camera and picture alteration detection system

Info

Publication number
JP2001078070A
JP2001078070A JP25166599A JP25166599A JP2001078070A JP 2001078070 A JP2001078070 A JP 2001078070A JP 25166599 A JP25166599 A JP 25166599A JP 25166599 A JP25166599 A JP 25166599A JP 2001078070 A JP2001078070 A JP 2001078070A
Authority
JP
Japan
Prior art keywords
data
image data
image
digital camera
feature
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
JP25166599A
Other languages
Japanese (ja)
Other versions
JP3528700B2 (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 JP25166599A priority Critical patent/JP3528700B2/en
Publication of JP2001078070A publication Critical patent/JP2001078070A/en
Application granted granted Critical
Publication of JP3528700B2 publication Critical patent/JP3528700B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Television Systems (AREA)
  • Television Signal Processing For Recording (AREA)
  • Facsimile Transmission Control (AREA)
  • Editing Of Facsimile Originals (AREA)
  • Studio Devices (AREA)
  • Compression Or Coding Systems Of Tv Signals (AREA)
  • Image Processing (AREA)

Abstract

PROBLEM TO BE SOLVED: To obtain a digital camera which outputs picture data which enables a user to confirm whether picture data at the time of photographing has been altered or not. SOLUTION: An electric signal outputted from a CCD is converted to a digital signal in a step S101. In a step S103, digital data outputted from an A/D converter is recorded in a RAM. In a step S104, data recorded in the RAM is subjected to various kinds of picture correction. In steps S105 to S110, data corrected in the step S104 is compressed by the JPEG system. A feature data embedding position is determined in a step S106, and feature data is generated from picture data in a step S107. In a step S108, feature data is enciphered into encryption data. In a step S109, the enciphered feature data is embedded in the picture data.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、撮影した画像をデ
ジタルデータとして記録するデジタルカメラおよびデジ
タルカメラにより記録された画像データの改竄を検出す
るシステムに関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a digital camera for recording a photographed image as digital data and a system for detecting alteration of image data recorded by the digital camera.

【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】したがって、本発明の目的は撮影時の画像
データから改竄されたか否かを検出することのできる画
像データを出力するデジタルカメラおよびそれを用いた
画像改竄検出システムを提供することにある。
Accordingly, it is an object of the present invention to provide a digital camera which outputs image data capable of detecting whether or not the image data has been tampered with at the time of photographing, and an image tampering detection system using the same.

【0006】[0006]

【課題を解決するための手段】本発明の請求項1に記載
のデジタルカメラによれば、画像データに画像処理を行
う手段と、画像処理後の画像データから第1の特徴デー
タを生成する手段と、画像データに第1の特徴データを
埋め込む手段と、第1の特徴データを埋め込んだ画像デ
ータを記録する記録媒体とを備える。そのため、デジタ
ルカメラ内で行われる画像処理が全て終わった後に第1
の特徴データが画像データに埋め込まれる。したがっ
て、デジタルカメラによる撮影時に記録媒体に記録され
た画像データが、その後に1ビットでも変更された場合
には、画像データと第1の特徴データとが不整合とな
る、あるいは特徴データが破壊されるため、撮影後に画
像データが改竄されたと判断することができる。また、
画像データと第1の特徴データとの整合性がとれていれ
ば、画像は撮影時のままであると判断することができ
る。第1の特徴データを生成する方法としては、画像デ
ータのチェックサムを求める方法やCRC(Cyclic Red
undancy check)のようなデータ通信における誤りの検
出のための方法や、一方向ハッシュ関数により算出され
るハッシュ値などを用いることができる。
According to the first aspect of the present invention, there is provided a digital camera, comprising: means for performing image processing on image data; and means for generating first characteristic data from image data after image processing. And means for embedding the first feature data in the image data, and a recording medium for recording the image data in which the first feature data is embedded. Therefore, after all image processing performed in the digital camera is completed, the first
Are embedded in the image data. Therefore, if the image data recorded on the recording medium at the time of photographing by the digital camera is changed even by one bit, the image data and the first feature data become inconsistent or the feature data is destroyed. Therefore, it can be determined that the image data has been tampered with after photographing. Also,
If the consistency between the image data and the first feature data is ensured, it can be determined that the image is as it was at the time of shooting. As a method of generating the first feature data, a method of obtaining a checksum of image data or a CRC (Cyclic Red
undancy check), a method for detecting an error in data communication, a hash value calculated by a one-way hash function, or the like can be used.

【0007】本発明の請求項2に記載のデジタルカメラ
によれば、画像データは圧縮されるため、画像データの
容量を小さくすることができる。
According to the digital camera of the present invention, since the image data is compressed, the capacity of the image data can be reduced.

【0008】本発明の請求項3に記載のデジタルカメラ
によれば、第1の特徴データを暗号化する手段を備え
る。そのため、画像の改竄に合わせて特徴データを書き
換えるのを防ぐことができる。
According to the digital camera of the third aspect of the present invention, the digital camera includes means for encrypting the first characteristic data. Therefore, it is possible to prevent the feature data from being rewritten according to the alteration of the image.

【0009】本発明の請求項4記載のデジタルカメラに
よれば、第1の特徴データを暗号化した秘密鍵に対応
し、暗号化された特徴データを復号するための公開鍵を
画像データに添付する。そのため、秘密鍵で暗号化され
たことを容易に認証することができる。
According to the digital camera of the fourth aspect of the present invention, a public key for decrypting the encrypted characteristic data is attached to the image data corresponding to the secret key obtained by encrypting the first characteristic data. I do. Therefore, it is possible to easily authenticate that the data has been encrypted with the secret key.

【0010】本発明の請求項5に記載の画像改竄検出シ
ステムによれば、画像データを入力する手段と、画像デ
ータから第1の特徴データを取り除く手段と、第1の特
徴データを取り除いた画像データから第2の特徴データ
を生成する手段と、第1の特徴データと第2の特徴デー
タとを比較する手段とを備える。そのため、第1の特徴
データと第2の特徴データとが一致していれば、入力さ
れた画像データがデジタルカメラによって記録された後
に変更されていないことを検出することができる。
According to the image tampering detection system of the present invention, a means for inputting image data, a means for removing first characteristic data from the image data, and an image from which the first characteristic data is removed The apparatus includes means for generating second characteristic data from the data, and means for comparing the first characteristic data with the second characteristic data. Therefore, if the first feature data and the second feature data match, it can be detected that the input image data has not been changed after being recorded by the digital camera.

【0011】本発明の請求項6記載の画像改竄検出シス
テムによれば、公開鍵が画像データに添付されていない
ときに改竄可能性有りと判断できる。また、本発明の請
求項7記載の画像改竄検出システムによれば、画像デー
タの付加情報が、請求項1〜4に記載のデジタルカメラ
に特有のものと異なるときに改竄の可能性有りと判断す
る。そのため、画像データを特定のデジタルカメラによ
って撮影したときは、改竄の可能性を容易に判断するこ
とができる。
According to the image tampering detection system of the present invention, when a public key is not attached to image data, it can be determined that there is a possibility of tampering. According to the image tampering detection system of the present invention, it is determined that there is a possibility of tampering when the additional information of the image data is different from that specific to the digital camera according to the first to fourth embodiments. I do. Therefore, when image data is captured by a specific digital camera, the possibility of tampering can be easily determined.

【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 / from external personal computer 20, liquid crystal display capable of displaying images (LCD) 19 and the like. The control unit 11 includes a CPU and a ROM in which programs for performing various controls of the digital camera 1 are recorded.
And input / output means. 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はデジタルカメラ1により撮影が行わ
れる行程を示すフローチャートである。ユーザーがデジ
タルカメラ1のシャッターを押すと、ステップS101
で、集光レンズ12により集光された光がCCD13に
入力され、電気信号に変換される。集光レンズ12の絞
りやシャッタースピード、すなわちCCD13の蓄積時
間は制御部11によって自動的に、またはユーザーの指
示によって制御される。CCD13として、例えばR
(Red)、G(Green)、B(Blue)の原色フィルタを有
する複数の画素がマトリックス状に配置されたCCD1
3を用いることにより、カラー画像を撮影することがで
きる。C(Cyan)、M(Magenta)、Y(Yellow)、G
(Green)の補色フィルタを有するCCDを用いる場合
もある。
FIG. 1 is a flow chart showing a process of taking a picture by the digital camera 1. When the user presses the shutter of the digital camera 1, step S101
Then, the light condensed by the condenser lens 12 is input to the CCD 13 and converted into an electric signal. 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 a user's instruction. As the CCD 13, for example, R
(Red), G (Green), B (Blue) CCD1 in which a plurality of pixels having primary color filters are arranged in a matrix
3, a color image can be taken. C (Cyan), M (Magenta), Y (Yellow), G
In some cases, a CCD having a (Green) complementary color filter is used.

【0014】ステップ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.

【0015】ステップ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.

【0016】ステップ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.

【0017】以下にJPEG圧縮の手順を説明する。ス
テップS105では、まず画像データを8×8画素を1
単位とした複数のブロックに分割する。例えば、640
×480画素の画像データであれば、80×60=48
00ブロックに分割され、ブロック単位に処理が行われ
る。
The JPEG compression procedure 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.

【0018】次に、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.

【0019】ステップ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 of each block, is examined in order from the first block of the DCT-converted image data in order to determine the position where the feature data is to be embedded in the subsequent 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.

【0020】ステップ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.

【0021】ステップS108では、ハッシュ値などの
特徴データが解析されたり容易に書き換えられたりしな
いように、制御部11により暗号化して暗号化データと
する。暗号化の方法としては、公開鍵と秘密鍵を用いる
RAS方式など、公知の方法を用いることができる。秘
密鍵で暗号化した暗号化データは、秘密鍵と対になった
公開鍵を用いて復号することができる。秘密鍵はデジタ
ルカメラ1内に隠し属性のファイルとして記録されてい
る。秘密鍵は、他人に知られてはならず、また、本実施
例ではユーザーが秘密鍵を知る必要はない。一般に、公
開鍵から、それに対応する秘密鍵を求めることは非常に
困難である。これにより、画像データが同一の特徴デー
タを得られる別の画像データに変更されることや、画像
データの変更に合わせて特徴データが書き換えられるの
を防ぐことができる。
In step S108, the control unit 11 encrypts the characteristic data such as a hash value so that the characteristic data is not easily rewritten and converted into 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.

【0022】ステップ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.

【0023】ステップ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.

【0024】ステップS111では、S110で圧縮さ
れた画像データをJPEGファイル30として画像記録
媒体としてのフラッシュメモリ16に記録する。フラッ
シュメモリ16は通電しなくても記録内容を保存するこ
とのできる書換え可能な記録媒体であり、デジタルカメ
ラ1に内蔵されるか、あるいは着脱自在にデジタルカメ
ラ1に取り付けられている。一般にJPEGファイル3
0は図4に示すようにデータ長、圧縮率等の付加情報を
含むヘッダ部31と、画像データ部32とから構成され
る。デジタルカメラ1によって記録されるJPEGファ
イル30の場合は、撮影日や撮影条件等の情報もヘッダ
部31に記録されることがある。本実施例では、暗号化
に用いた秘密鍵に対応する公開鍵33をヘッダ部31に
更に加えて記録している。
In step S111, the image data compressed in 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 additional information such as a data length and a compression ratio, as shown in FIG. 4, and an image data section 32. In the case of a JPEG file 30 recorded by the digital camera 1, information such as a photographing date and photographing conditions may also be recorded in the header section 31. 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.

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

【0026】上記のようなデジタルカメラ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.

【0027】本実施例の画像改竄検出システムにより画
像の改竄を検出する行程を図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.

【0028】ステップS202では、読み込まれたJP
EGファイルのヘッダを調べ、公開鍵が添付されている
か否か、また、本実施例のデジタルカメラ特有の付加情
報が記録されているか否かを検出する。いずれか一方で
も見つからない場合、そのJPEGファイルは本実施例
のデジタルカメラ以外の機器により作成されたか、画像
データが改竄された可能性が有ると判断する。
In step S202, the read JP
By examining the header of the EG file, it is detected whether or not a public key is attached and whether or not additional information unique to the digital camera of this embodiment is recorded. If either one is not found, it is determined that the JPEG file has been created by a device other than the digital camera of the present embodiment, or that the image data may have been tampered with.

【0029】ステップS203では、上記のステップS
106で特徴データを埋め込むブロックを選択したとき
と同様の手順で、特徴データが埋め込まれているべきブ
ロックを選択し、128ビットの暗号化データを抽出す
る。
In step S203, the above-described 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.

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

【0031】ステップS206では、ステップS203
で抽出した暗号化データを、JPEGファイルのヘッダ
に書き込まれた公開鍵を用いて、秘密鍵によって暗号化
されたことを確認すると同時に暗号を復号する。それに
より、暗号化前のハッシュ値を求める。
In step S206, step S203
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.

【0032】ステップS207では、ステップS205
で算出されたハッシュ値とステップS206で算出され
たハッシュ値を比較し、一致していれば画像データは本
実施例のデジタルカメラ1により撮影された後に改竄さ
れていないものであると判定し、一致しなければ画像デ
ータは撮影時から改竄されていると判定する。また、ス
テップS206で、暗号化データが公開鍵で復号できな
い場合にも、その画像データは本発明実施例のデジタル
カメラ1で撮影されたものではないか、撮影後に変更さ
れたものとみなされる。
In step S207, step S205
The hash value calculated in step S206 is compared with the hash value calculated in step S206, 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 S206, 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.

【0033】したがって、本発明実施例の画像改竄検出
システムを使用する場合、写真の提出者は、デジタルカ
メラ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 image data which has been output from the digital camera 1 and has not been modified (in this embodiment, the JPEG file 30). ) Is recorded on a recording medium such as a floppy (registered trademark) or a flash memory 16 which is a detachable recording medium.
Is removed from the digital camera 1 and submitted together with the printed photo 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.

【0034】また、検出プログラムにJPEGファイル
30等の画像データの画像を表示する機能をもたせるこ
とにより、印刷された写真と表示された画像が同一であ
ることを確認することができる。
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 picture and the displayed image are the same.

【0035】以上、実施例によって説明したように、本
発明のデジタルカメラおよびそれを用いた画像改竄検出
システムを用いることにより、デジタルカメラで撮影し
た写真が撮影時から変更されていない、オリジナルのも
のであることを確認することができる。
As described above with reference to the embodiments, by using the digital camera of the present invention and the image tampering detection system using the same, the photograph taken by the digital camera has not been changed since the photographing. Can be confirmed.

【0036】上記の実施例では、JPEG圧縮したもの
を画像データとして画像記録媒体に記録したが、本発明
は他の圧縮方法で圧縮したものや、無圧縮のデータを画
像データとして記録したものにも適用できる。また、本
実施例では、特徴データを暗号化してJPEGファイル
の画像データ部分の中に埋め込んで記録したが、本発明
としてはヘッダ部に書き込むなど、特徴データは画像デ
ータのどの位置にあってもよい。
In the above embodiment, JPEG-compressed data is recorded on the image recording medium as image data. 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.

【図面の簡単な説明】[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

───────────────────────────────────────────────────── フロントページの続き (51)Int.Cl.7 識別記号 FI テーマコート゛(参考) H04N 5/765 H04N 5/781 510L 5C075 5/781 5/91 J 5C076 5/91 7/08 Z 5J104 7/08 7/133 Z 7/081 7/30 Fターム(参考) 5B057 AA11 BA24 BA29 CA01 CA19 CB19 CE08 CH11 DA08 DA16 DB06 DC32 5C022 AA13 AC31 AC42 AC54 AC69 5C053 FA08 FA14 GB23 GB36 KA04 KA24 KA25 LA01 LA11 5C059 KK43 MA00 MA23 MC11 ME02 PP01 PP15 RB08 RC35 SS15 UA02 UA05 5C063 AB03 AC02 AC10 CA09 CA11 DA07 DA13 DB09 5C075 CD05 EE03 5C076 AA14 BA02 BA03 CA08 5J104 AA08 AA14 LA03 NA02 NA15 NA27 PA14 ──────────────────────────────────────────────────続 き Continued on the front page (51) Int.Cl. 7 Identification symbol FI theme coat ゛ (Reference) H04N 5/765 H04N 5/781 510L 5C075 5/781 5/91 J 5C076 5/91 7/08 Z 5J104 7 / 08 7/133 Z 7/081 7/30 F term (reference) 5B057 AA11 BA24 BA29 CA01 CA19 CB19 CE08 CH11 DA08 DA16 DB06 DC32 5C022 AA13 AC31 AC42 AC54 AC69 5C053 FA08 FA14 GB23 GB36 KA04 KA24 KA25 LA01 LA11 5C059 KK43 MA MC11 ME02 PP01 PP15 RB08 RC35 SS15 UA02 UA05 5C063 AB03 AC02 AC10 CA09 CA11 DA07 DA13 DB09 5C075 CD05 EE03 5C076 AA14 BA02 BA03 CA08 5J104 AA08 AA14 LA03 NA02 NA15 NA27 PA14

Claims (7)

【特許請求の範囲】[Claims] 【請求項1】 撮影対象からの光を画像データに変換す
る撮像部と、 前記画像データに画像処理を行う手段と、 前記画像処理後の画像データから第1の特徴データを生
成する手段と、 前記画像データに前記第1の特徴データを埋め込む手段
と、 前記第1の特徴データを埋め込んだ画像データを記録す
る記録媒体と、を備えることを特徴とするデジタルカメ
ラ。
An imaging unit configured to convert light from an imaging target into image data; a unit configured to perform image processing on the image data; a unit configured to generate first feature data from the image data after the image processing; A digital camera comprising: means for embedding the first feature data in the image data; and a recording medium for recording the image data in which the first feature data is embedded.
【請求項2】 前記画像データを圧縮する手段を備える
ことを特徴とする請求項1記載のデジタルカメラ。
2. The digital camera according to claim 1, further comprising means for compressing the image data.
【請求項3】 前記第1の特徴データを暗号化する手段
を備えることを特徴とする請求項1に記載のデジタルカ
メラ。
3. The digital camera according to claim 1, further comprising means for encrypting the first characteristic data.
【請求項4】 前記第1の特徴データを暗号化する秘密
鍵に対応した公開鍵を、前記画像データに添付する手段
を備えることを特徴とする請求項3記載のデジタルカメ
ラ。
4. The digital camera according to claim 3, further comprising: means for attaching a public key corresponding to a secret key for encrypting the first characteristic data to the image data.
【請求項5】 請求項1〜4のいずれか一項に記載のデ
ジタルカメラを用いた画像改竄検出システムであって、 前記画像データを入力する手段と、 前記画像データから前記第1の特徴データを取り除く手
段と、 前記第1の特徴データを取り除いた画像データから第2
の特徴データを生成する手段と、 前記第1の特徴データと前記第2の特徴データとを比較
する手段と、を備えることを特徴とする画像改竄検出シ
ステム。
5. An image tampering detection system using the digital camera according to claim 1, wherein said image data is input, and said first feature data is obtained from said image data. Means for removing the second feature from the image data from which the first feature data has been removed.
An image tampering detection system comprising: means for generating feature data; and means for comparing the first feature data and the second feature data.
【請求項6】 請求項4に記載のデジタルカメラを用い
た画像改竄検出システムであって、 前記画像データを入力する手段と、 前記画像データから前記第1の特徴データを取り除く手
段と、 前記第1の特徴データを取り除いた画像データから第2
の特徴データを生成する手段と、 前記第1の特徴データと前記第2の特徴データとを比較
する手段と、 前記公開鍵が画像データに添付されていないときに改竄
可能性有りと判断する手段を備えることを特徴とする画
像改竄検出システム。
6. An image tampering detection system using a digital camera according to claim 4, wherein: a means for inputting the image data; a means for removing the first feature data from the image data; From the image data from which the feature data of
Means for generating the characteristic data of the above, means for comparing the first characteristic data with the second characteristic data, and means for determining that there is a possibility of tampering when the public key is not attached to the image data An image tampering detection system comprising:
【請求項7】 前記画像データの付加情報が、前記デジ
タルカメラに特有のものと異なるときに改竄の可能性有
りと判断する手段を備えることを特徴とする請求項5ま
たは6のいずれかに記載の画像改竄検出システム。
7. The apparatus according to claim 5, further comprising: means for determining that there is a possibility of tampering when the additional information of the image data is different from information unique to the digital camera. Image tampering detection system.
JP25166599A 1999-09-06 1999-09-06 Digital camera and image tampering detection system Expired - Fee Related JP3528700B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP25166599A JP3528700B2 (en) 1999-09-06 1999-09-06 Digital camera and image tampering detection system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP25166599A JP3528700B2 (en) 1999-09-06 1999-09-06 Digital camera and image tampering detection system

Publications (2)

Publication Number Publication Date
JP2001078070A true JP2001078070A (en) 2001-03-23
JP3528700B2 JP3528700B2 (en) 2004-05-17

Family

ID=17226209

Family Applications (1)

Application Number Title Priority Date Filing Date
JP25166599A Expired - Fee Related JP3528700B2 (en) 1999-09-06 1999-09-06 Digital camera and image tampering detection system

Country Status (1)

Country Link
JP (1) JP3528700B2 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008529354A (en) * 2005-01-24 2008-07-31 モデレイター システムズ, インコーポレイテッド Wireless event authentication system
US7440143B2 (en) 2002-03-08 2008-10-21 Oki Electric Industry Co., Ltd. Tampering judgement system, encrypting system for judgement of tampering and tampering judgement method
US7894519B2 (en) 2005-01-24 2011-02-22 Moderator Systems, Inc. Wireless event authentication system

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7440143B2 (en) 2002-03-08 2008-10-21 Oki Electric Industry Co., Ltd. Tampering judgement system, encrypting system for judgement of tampering and tampering judgement method
JP2008529354A (en) * 2005-01-24 2008-07-31 モデレイター システムズ, インコーポレイテッド Wireless event authentication system
US7894519B2 (en) 2005-01-24 2011-02-22 Moderator Systems, Inc. Wireless event authentication system

Also Published As

Publication number Publication date
JP3528700B2 (en) 2004-05-17

Similar Documents

Publication Publication Date Title
US7984300B2 (en) System and method of authenicating a digitally captured image
JP4097773B2 (en) Digital image editing system
KR20000035423A (en) Recording device
US20040095600A1 (en) Image processing system, image capturing device, image processing terminal, image processing data storage terminal, program for the device, program for the terminal, data structure of image data, method of processing image, and method of generating image data
JP2007189428A (en) Apparatus and program for index image output
JP2002157166A (en) Digital imaging apparatus having image authentication capability
JP3164215B2 (en) Digital camera and image tampering detection system
JP3521723B2 (en) Digital camera and image authentication system using the same
JP4022644B2 (en) Image file reading method and image file reading device
JP3246660B2 (en) Digital camera and image tampering detection system
JP3528700B2 (en) Digital camera and image tampering detection system
JP2001309159A (en) Recorder
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
JP4632445B2 (en) Image file generation apparatus, image file generation method, program, and storage medium
JP2019205140A (en) Imaging apparatus, information processing apparatus, generation method, and verification method
JP2007080071A (en) System having alteration detecting function
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
JP4338190B2 (en) Image processing apparatus, method, program, and recording medium
JP2005286823A (en) Image input device, communication system, control method, computer program, and storage medium
JP2002509268A (en) Digital image authentication device
JP2003069942A (en) Method and device for recording image-attached information and imaging apparatus

Legal Events

Date Code Title Description
TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20040203

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20040216

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

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

Free format text: PAYMENT UNTIL: 20080305

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20090305

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20090305

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20100305

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20100305

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20110305

Year of fee payment: 7

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

Free format text: PAYMENT UNTIL: 20120305

Year of fee payment: 8

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

Free format text: PAYMENT UNTIL: 20120305

Year of fee payment: 8

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

Free format text: PAYMENT UNTIL: 20130305

Year of fee payment: 9

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

Free format text: PAYMENT UNTIL: 20140305

Year of fee payment: 10

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