JP2014003506A - Image processing device and image processing method - Google Patents

Image processing device and image processing method Download PDF

Info

Publication number
JP2014003506A
JP2014003506A JP2012138331A JP2012138331A JP2014003506A JP 2014003506 A JP2014003506 A JP 2014003506A JP 2012138331 A JP2012138331 A JP 2012138331A JP 2012138331 A JP2012138331 A JP 2012138331A JP 2014003506 A JP2014003506 A JP 2014003506A
Authority
JP
Japan
Prior art keywords
coefficient
unit
detection code
falsification
frequency conversion
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
JP2012138331A
Other languages
Japanese (ja)
Inventor
Koji Yamada
幸二 山田
Taizo Anami
泰三 阿南
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.)
Fujitsu Ltd
Original Assignee
Fujitsu Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fujitsu Ltd filed Critical Fujitsu Ltd
Priority to JP2012138331A priority Critical patent/JP2014003506A/en
Publication of JP2014003506A publication Critical patent/JP2014003506A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Editing Of Facsimile Originals (AREA)
  • Compression Of Band Width Or Redundancy In Fax (AREA)

Abstract

PROBLEM TO BE SOLVED: To provide an image processing device capable of detecting the presence/absence of falsification without erroneously detecting falsification even when an image is recompressed.SOLUTION: The image processing device comprises: a frequency transform unit that transforms an image into a frequency transform coefficient; and a quantization unit that quantizes the frequency transform coefficient on the basis of a first quantization table to calculate a quantized frequency transform coefficient. The image processing device further comprises a generation unit that generates a falsification detection code for detecting falsification on the basis of the positive/negative sign of the frequency transform coefficient or the quantized frequency transform coefficient.

Description

本発明は、画像等のコンテンツに対する改竄の防止または検知を行う画像処理装置、画像処理方法に関する。   The present invention relates to an image processing apparatus and an image processing method for preventing or detecting falsification of content such as an image.

近年、デジタル画像処理技術の発達と、デジタル撮影が可能なカメラの出現により、飛躍的にデジタル静止画像ならびにデジタル映像(以後両者を併せて画像と称する)の利用場面が増加している。撮影した画像は、従来の銀塩写真とは異なり、パソコンの画像編集ソフトウェア等を用いて容易に画像を変更することが可能である。この為、ドライブレコーダ、監視映像、ならびに工事報告書の写真等の証拠性を求められる画像では、不正な改竄が行われる可能性がある為、改竄の有無を正確に検知することが重要となる。   In recent years, with the development of digital image processing technology and the advent of cameras capable of digital photography, the usage scenes of digital still images and digital images (hereinafter referred to as images together) have increased dramatically. Unlike a conventional silver halide photograph, a photographed image can be easily changed using image editing software on a personal computer. For this reason, it is important to accurately detect the presence or absence of tampering in images that require evidence, such as drive recorders, surveillance video, and photographs of construction reports. .

画像の改竄の有無を検知する方法として、改竄されていない原画像のハッシュ値を算出しておき、改竄を検知したい画像に対しても同様のハッシュ値を算出し、ハッシュ値の一致または不一致により画像の改竄を判定する技術が開示されている。   As a method of detecting the presence / absence of image falsification, calculate the hash value of the original image that has not been falsified, calculate the same hash value for the image you want to detect falsification, and match or mismatch the hash values. A technique for determining falsification of an image is disclosed.

上述の開示技術は、画像の改竄検知の為の検証データとなるロバストデジタル署名データを作成し、作成したロバストデジタル署名データを用いて画像の改竄検知を行う。具体的には、始めに改竄されていない原画像から、画像が本質的に変化しない場合に変わらない特徴量を算出する。具体的な特徴量として、DCT係数ブロック毎に量子化DCT係数を算出する。そして、ハッシュ関数を用いて、量子化DCT係数のハッシュ値を算出する。その後、秘密鍵を用いてデジタル署名を行い、ロバストデジタル署名データを出力する。   The above-described disclosed technique creates robust digital signature data serving as verification data for image tampering detection, and performs image tampering detection using the created robust digital signature data. Specifically, a feature amount that does not change is calculated from an original image that has not been tampered with when the image does not change substantially. As a specific feature amount, a quantized DCT coefficient is calculated for each DCT coefficient block. Then, a hash value of the quantized DCT coefficient is calculated using a hash function. Thereafter, a digital signature is performed using the secret key, and robust digital signature data is output.

画像の改竄の有無を検知する場合は、公開鍵を用いてロバストデジタル署名データからハッシュ値を算出する。また、改竄検知対象の画像から、画像の特徴量となる量子化DCT係数を算出し、量子化DCT係数のハッシュ値を算出する。最後に、ロバストデジタル署名データから算出されたハッシュ値と、改竄検知を行いたい画像の量子化DCT係数から算出されたハッシュ値を比較する。ハッシュ値が異なる場合は画像が改竄されていると判定する。   When detecting the presence or absence of falsification of an image, a hash value is calculated from robust digital signature data using a public key. Also, a quantized DCT coefficient that is a feature amount of the image is calculated from the image to be detected for falsification, and a hash value of the quantized DCT coefficient is calculated. Finally, the hash value calculated from the robust digital signature data is compared with the hash value calculated from the quantized DCT coefficient of the image to be tampered with. If the hash values are different, it is determined that the image has been tampered with.

上述の開示技術においては、例えば、交通事故の写真を自分に有利になる様に信号の色を書き換える等、画像を修正する等の画像が改竄された場合に、画像の改竄を検出することが可能である。   In the above disclosed technique, for example, when an image such as rewriting the color of a signal so as to be advantageous to a photograph of a traffic accident is corrected, the image is altered or the alteration is detected. Is possible.

特許第4454908号Patent No. 4454908

ところで、画像の利用場面の増加に伴い、ストレージ機器の記憶容量の制約から、圧縮された画像を再度圧縮する再圧縮が頻繁に行われている。これは、改竄検知対象の画像は、撮影時には、画質を良くする為に、圧縮率を低く設定されている場合が多い。しかし、このような画像をストレージ機器に保存する場合は、再圧縮して画質を落としてでも記憶容量を極力低くしたいという要望がある場合が多い為である。   By the way, with the increase of the use scene of an image, the recompression which recompresses the compressed image is performed frequently by the restriction | limiting of the storage capacity of a storage apparatus. This is because the tampering detection target image is often set at a low compression rate in order to improve the image quality. However, when such an image is stored in a storage device, there is often a desire to reduce the storage capacity as much as possible even if the image quality is reduced by recompression.

圧縮率は、量子化テーブルの係数で一意的に決定される。つまり、圧縮率が異なると量子化テーブルはそれぞれ異なるものとなる。ここで、例えば、量子化テーブルAで量子化されたJPEG画像等の画像に対して、量子化テーブルBを使用して再圧縮を行った場合、再圧縮の前後で量子化テーブルが異なるため、量子化DCT係数等の量子化周波数変換係数も再圧縮の前後で異なる。   The compression rate is uniquely determined by the coefficient of the quantization table. That is, if the compression rate is different, the quantization table is different. Here, for example, when recompression is performed using the quantization table B for an image such as a JPEG image quantized by the quantization table A, the quantization table is different before and after the recompression. Quantized frequency transform coefficients such as quantized DCT coefficients also differ before and after recompression.

そのため、再圧縮前の画像からハッシュ関数により算出した量子化周波数変換係数のハッシュ値Aと、再圧縮後の画像からハッシュ関数により算出した量子化周波数変換係数のハッシュ値Bは異なる値となってしまう。この為、上述の開示技術も含めて、画像の再圧縮を行う場合は、画像の本質的な内容は変化しないにも関わらず、ハッシュ値が再圧縮の前後で異なる。この為、画像が改竄されていないのにもかかわらず、改竄されているものとして誤検出してしまうという課題がある。   For this reason, the hash value A of the quantization frequency conversion coefficient calculated by the hash function from the image before recompression is different from the hash value B of the quantization frequency conversion coefficient calculated by the hash function from the image after recompression. End up. For this reason, when the image is recompressed including the above-described disclosed technique, the hash value is different before and after the recompression even though the essential content of the image does not change. For this reason, there is a problem that the image is erroneously detected as being falsified even though the image is not falsified.

本発明は、画像を再圧縮させた場合でも、改竄を誤検出することが無く、改竄の有無を検知出来る画像処理装置を提供することを目的とする。   An object of the present invention is to provide an image processing apparatus that can detect the presence or absence of falsification without erroneously detecting falsification even when the image is recompressed.

本発明が開示する一様態における画像処理装置は、画像を周波数変換係数に変換する周波数変換部と、周波数変換係数を第1の量子化テーブルに基づいて量子化して量子化周波数変換係数を算出する量子化部を備える。更に当該画像処理装置は、周波数変換係数または量子化周波数変換係数の正負の符号に基づいて改竄を検知する改竄検知コードを生成する生成部を備える。   An image processing apparatus according to an aspect disclosed by the present invention calculates a quantized frequency transform coefficient by quantizing a frequency transform coefficient based on a first quantization table and a frequency transform unit that transforms an image into a frequency transform coefficient. A quantization unit is provided. The image processing apparatus further includes a generation unit that generates a falsification detection code for detecting falsification based on the sign of the frequency transform coefficient or the quantized frequency transform coefficient.

また、本発明が開示する他の様態における画像処理装置は、画像が周波数変換係数に変換され、周波数変換係数が第1の量子化テーブルに基づいて量子化された量子化周波数変換係数を取得し、周波数変換係数または量子化周波数変換係数の正負の符号に基づいて改竄を検知する第1の改竄検知コードを生成する生成部を備える。更に当該画像処理装置は、正負の符号に基づいて生成された第2の改竄検知コードを取得し、第1の改竄検知コードと第2の改竄検知コードを比較する比較部を備える。   An image processing apparatus according to another aspect disclosed by the present invention acquires a quantized frequency transform coefficient in which an image is converted into a frequency transform coefficient, and the frequency transform coefficient is quantized based on a first quantization table. And a generation unit that generates a first falsification detection code for detecting falsification based on the sign of the frequency conversion coefficient or the quantized frequency conversion coefficient. The image processing apparatus further includes a comparison unit that acquires the second falsification detection code generated based on the positive and negative signs and compares the first falsification detection code and the second falsification detection code.

なお、本発明の目的及び利点は、請求項において特に指摘されたエレメント及び組み合わせにより実現され、かつ達成されるものである。また、上記の一般的な記述及び下記の詳細な記述の何れも、例示的かつ説明的なものであり、請求項のように、本発明を制限するものではないことを理解されたい。   The objects and advantages of the invention will be realized and attained by means of the elements and combinations particularly pointed out in the appended claims. It should also be understood that both the above general description and the following detailed description are exemplary and explanatory and are not restrictive of the invention as claimed.

本明細書に開示される画像処理装置では、画像を再圧縮させた場合でも、改竄を誤検出すること無く、改竄の有無を検知することが可能となる。   In the image processing apparatus disclosed in this specification, even when an image is recompressed, it is possible to detect the presence or absence of falsification without erroneously detecting falsification.

一つの実施形態による画像処理装置10の構成の一例を示す図である。It is a figure which shows an example of a structure of the image processing apparatus 10 by one Embodiment. 実施例1における制御部11の一例を示す機能ブロック図である。3 is a functional block diagram illustrating an example of a control unit 11 in Embodiment 1. FIG. 圧縮画像の周波数変換係数の一例となるDCT変換係数を示す。The DCT conversion coefficient which is an example of the frequency conversion coefficient of a compressed image is shown. 量子化テーブルの一例となる第1の量子化テーブルを示す。The 1st quantization table used as an example of a quantization table is shown. 量子化周波数変換係数の一例となる量子化DCT係数を示す。The quantization DCT coefficient which is an example of a quantization frequency conversion coefficient is shown. 再圧縮の為に、第1の量子化テーブルとは異なる任意の量子化テーブルで量子化した量子化周波数変換係数の一例となる量子化DCT係数を示す。A quantized DCT coefficient is shown as an example of a quantized frequency transform coefficient quantized with an arbitrary quantization table different from the first quantization table for recompression. (a)は、原画像の周波数変換係数を示す。(b)は、(a)の周波数変換係数を第1の量子化テーブルを用いて変換した量子化周波数変換係数を示す。(c)は、(a)の周波数変換係数を第1の量子化テーブル以外の任意の第1の量子化テーブルを用いて変換し、係数の一部が改竄されている量子化周波数変換係数を示す。(A) shows the frequency conversion coefficient of an original image. (B) shows the quantization frequency conversion coefficient which converted the frequency conversion coefficient of (a) using the 1st quantization table. (C) converts the frequency conversion coefficient of (a) using an arbitrary first quantization table other than the first quantization table, and converts the quantized frequency conversion coefficient in which a part of the coefficient is tampered with Show. (a)は、オリジナルの原画像の量子化周波数変換係数ブロックの量子化周波数係数をラスタ順でスキャンを実施する概念図である。(b)は改竄検知コードの一例を示す。(A) is a conceptual diagram which scans the quantization frequency coefficient of the quantization frequency conversion coefficient block of an original original image in raster order. (B) shows an example of a falsification detection code. ジグザグスキャン方式の概念図を示す。A conceptual diagram of the zigzag scanning method is shown. 縦方向優先スキャン方式の概念図を示す。The conceptual diagram of a vertical direction priority scanning system is shown. 実施例1における改竄防止処理の一例を示すフローチャートである。3 is a flowchart illustrating an example of falsification prevention processing according to the first exemplary embodiment. 一つの実施形態による画像処理装置30の構成の一例を示す図である。It is a figure which shows an example of a structure of the image processing apparatus 30 by one Embodiment. 実施例2における制御部31の一例を示す機能ブロック図である。FIG. 10 is a functional block diagram illustrating an example of a control unit 31 according to a second embodiment. 実施例2における改竄検知処理の一例を示すフローチャート(その1)である。10 is a flowchart (part 1) illustrating an example of falsification detection processing according to the second embodiment. 実施例2における改竄検知処理の一例を示すフローチャート(その2)である。12 is a flowchart (part 2) illustrating an example of falsification detection processing according to the second embodiment. 実施例3における制御部31の一例を示す機能ブロック図である。FIG. 10 is a functional block diagram illustrating an example of a control unit 31 according to a third embodiment. 実施例3における改竄検知処理の一例を示すフローチャートである。12 is a flowchart illustrating an example of falsification detection processing in the third embodiment. 実施例4における制御部11の一例を示す機能ブロック図である。FIG. 10 is a functional block diagram illustrating an example of a control unit 11 according to a fourth embodiment. 一つの実施形態による改竄防止機能と改竄検知機能を有する第1の画像処理システム1900の構成図である。1 is a configuration diagram of a first image processing system 1900 having a falsification prevention function and a falsification detection function according to one embodiment. FIG. 一つの実施形態による改竄防止機能と改竄検知機能を有する第2の画像処理システム2000の構成図である。It is a block diagram of the 2nd image processing system 2000 which has a falsification prevention function and a falsification detection function by one embodiment.

以下に、一つの実施形態による画像処理装置、画像処理方法、画像処理用コンピュータプログラムの実施例を図面に基づいて詳細に説明する。なお、この実施例は開示の技術を限定するものではない。   Hereinafter, examples of an image processing apparatus, an image processing method, and an image processing computer program according to an embodiment will be described in detail with reference to the drawings. Note that this embodiment does not limit the disclosed technology.

(実施例1)
図1は、一つの実施形態による画像処理装置10の構成の一例を示す図である。図1に示す画像処理装置10は、画像に対する改竄を防止する改竄防止装置としても機能する。図1に示す画像処理装置10は、制御部11、主記憶部12、補助記憶部13、表示制御部14、記録媒体I/F部16、及びカメラI/F部18を有する。なお、各部は、バスを介して相互にデータ送受信可能に接続されている。
Example 1
FIG. 1 is a diagram illustrating an example of a configuration of an image processing apparatus 10 according to one embodiment. The image processing apparatus 10 illustrated in FIG. 1 also functions as a falsification preventing apparatus that prevents falsification of an image. An image processing apparatus 10 illustrated in FIG. 1 includes a control unit 11, a main storage unit 12, an auxiliary storage unit 13, a display control unit 14, a recording medium I / F unit 16, and a camera I / F unit 18. Each unit is connected to each other via a bus so that data can be transmitted and received.

制御部11は、画像処理装置10で、各機能の制御やデータの演算、加工を行うCPU(Central Processing Unit)である。また、制御部11は、主記憶部12や補助記憶部13に記憶されたプログラムを実行する演算装置である。制御部11は、各記憶部からデータを受け取り、演算、加工した上で、出力部や各記憶部に出力する。   The control unit 11 is a CPU (Central Processing Unit) that controls each function, calculates and processes data in the image processing apparatus 10. The control unit 11 is an arithmetic device that executes a program stored in the main storage unit 12 or the auxiliary storage unit 13. The control unit 11 receives data from each storage unit, calculates and processes the data, and then outputs the data to the output unit and each storage unit.

また、例えば、制御部11は、補助記憶部13に記憶される改竄防止プログラムとして機能する画像処理用プログラムを実行することで、画像に対する改竄防止機能の役割を果たす。   Further, for example, the control unit 11 plays a role of an anti-tampering function for an image by executing an image processing program that functions as an anti-tampering program stored in the auxiliary storage unit 13.

主記憶部12は、例えばRAM(Random Access Memory)などであり、制御部11が実行する基本ソフトウェアであるOSやアプリケーションソフトウェアなどのプログラムやデータを記憶又は一時保存する記憶部である。また、主記憶部12は、プログラムやデータを置くワークメモリとして機能する。   The main storage unit 12 is, for example, a RAM (Random Access Memory) and the like, and is a storage unit that stores or temporarily stores programs and data such as an OS and application software that are basic software executed by the control unit 11. The main storage unit 12 functions as a work memory for storing programs and data.

補助記憶部13は、例えばHDD(Hard Disk Drive)または、SSD(Solid State Drive)などであり、アプリケーションソフトウェアなどに関連するデータを記憶する記憶装置である。補助記憶部13は、改竄防止プログラムを記憶する。   The auxiliary storage unit 13 is, for example, an HDD (Hard Disk Drive) or an SSD (Solid State Drive), and is a storage device that stores data related to application software. The auxiliary storage unit 13 stores a falsification preventing program.

補助記憶部13は、カメラI/F部18から取得した画像を記憶する。また、補助記憶部13は、記録媒体17などから取得された画像などを記憶しておいてもよい。   The auxiliary storage unit 13 stores an image acquired from the camera I / F unit 18. The auxiliary storage unit 13 may store an image acquired from the recording medium 17 or the like.

表示制御部14は、画像やデータなどを表示部15に表示するため、表示制御を行う。   The display control unit 14 performs display control in order to display images and data on the display unit 15.

記録媒体I/F(インターフェース)部16は、USB(Universal Serial Bus)などのデータ伝送路を介して接続された記録媒体17(例えば、フラッシュメモリなど)と画像処理装置10とのインターフェースである。   The recording medium I / F (interface) unit 16 is an interface between the image processing apparatus 10 and a recording medium 17 (for example, a flash memory) connected via a data transmission path such as a USB (Universal Serial Bus).

また、記録媒体17に、所定のプログラム(画像処理用プログラム)を格納し、この記録媒体17に格納されたプログラムは記録媒体I/F部16を介して画像処理装置10にインストールされる。インストールされた所定のプログラムは、画像処理装置10により実行可能となる。   A predetermined program (image processing program) is stored in the recording medium 17, and the program stored in the recording medium 17 is installed in the image processing apparatus 10 via the recording medium I / F unit 16. The installed predetermined program can be executed by the image processing apparatus 10.

なお、記録媒体17を例えばSDカードとした場合は、記録媒体I/F部16は、SDカードスロットである。 When the recording medium 17 is an SD card, for example, the recording medium I / F unit 16 is an SD card slot.

カメラI/F部18は、カメラ19で撮像された画像を取得する。取得された画像は、主記憶部12に記憶される。なお、カメラ19や表示部15は、画像処理装置10に内蔵されてもよい。   The camera I / F unit 18 acquires an image captured by the camera 19. The acquired image is stored in the main storage unit 12. The camera 19 and the display unit 15 may be built in the image processing apparatus 10.

また、画像処理装置10は、図示しない通信部を有し、有線又は無線で通信を行う。通信部は、例えば、圧縮画像、公開鍵、電子署名等を外部装置等に送信する。   In addition, the image processing apparatus 10 includes a communication unit (not shown) and performs wired or wireless communication. For example, the communication unit transmits a compressed image, a public key, an electronic signature, and the like to an external device or the like.

(改竄防止機能)
次に、制御部11について詳細に説明する。図2は、実施例1における制御部11の一例を示す機能ブロック図である。図2に示す制御部11は、ブロック分割部21、
周波数変換部22、量子化部23、可変長符号化部24、位置算出部25、生成部26、署名生成部27を有する。ここで、制御部11は、改竄から保護したい原画像、及び固有の秘密鍵を入力データとする。
(Falsification prevention function)
Next, the control unit 11 will be described in detail. FIG. 2 is a functional block diagram illustrating an example of the control unit 11 according to the first embodiment. 2 includes a block dividing unit 21,
The frequency converter 22, the quantizer 23, the variable length encoder 24, the position calculator 25, the generator 26, and the signature generator 27 are included. Here, the control unit 11 uses the original image to be protected from tampering and a unique secret key as input data.

ブロック分割部21は、JPEG(Joint Photographic Experts Group)のように、入力された原画像を例えば、8×8ブロック等の所定のブロックに分割する。   The block dividing unit 21 divides the input original image into predetermined blocks such as 8 × 8 blocks, such as JPEG (Joint Photographic Experts Group).

周波数変換部22は、ブロック分割部21で分割されたそれぞれのブロックの画像に対して、例えば離散コサイン変換(DCT(Discrete Cosine Transform)変換)を用いて周波数変換係数を算出する。なお、実施例1においては、一例としてDCT変換を用いて説明するが、離散ウェーブレット変換や、離散アダマール変換等を用いて周波数変換係数を算出することも可能である。   The frequency conversion unit 22 calculates a frequency conversion coefficient for each block image divided by the block division unit 21 by using, for example, discrete cosine transform (DCT (Discrete Cosine Transform) conversion). In the first embodiment, the DCT transform is used as an example, but it is also possible to calculate a frequency transform coefficient using a discrete wavelet transform, a discrete Hadamard transform, or the like.

図3には、圧縮画像の周波数変換係数の一例となるDCT変換係数を示す。図3に示される様に、垂直周波数成分と水平周波数成分が所定の周波数成分毎に分割された8×8=64個のDCT係数が周波数変換部22によって算出される。周波数変換部22は、算出した周波数変換係数を量子化部23に出力する。   FIG. 3 shows DCT transform coefficients as an example of frequency transform coefficients for compressed images. As shown in FIG. 3, 8 × 8 = 64 DCT coefficients obtained by dividing the vertical frequency component and the horizontal frequency component into predetermined frequency components are calculated by the frequency conversion unit 22. The frequency conversion unit 22 outputs the calculated frequency conversion coefficient to the quantization unit 23.

量子化部23は、圧縮率に応じた量子化テーブルを用いて、量子化周波数変換係数の一例となる量子化DCT係数を算出する。図4には、量子化テーブルの一例となる第1の量子化テーブルを示す。図4に示される様に、第1の量子化テーブルは、例えば、ユーザーの視認性に大きな影響を与え難い高次の周波数成分の係数が大きくなる様に設定される。   The quantization unit 23 calculates a quantized DCT coefficient, which is an example of a quantized frequency conversion coefficient, using a quantization table corresponding to the compression rate. FIG. 4 shows a first quantization table as an example of the quantization table. As shown in FIG. 4, the first quantization table is set so that, for example, the coefficient of the higher-order frequency component that hardly affects the user visibility is increased.

図5には、量子化周波数変換係数の一例となる量子化DCT係数を示す。なお、図5に示される量子化DCT係数は、図4に示す第1の量子化テーブルを用いて算出された係数である。また、一度量子化されたDCT係数は、同一の量子化テーブルを用いた量子化処理に対しては可逆であり、逆量子化変換を実行すると、図3に示す基の周波数変換係数に戻る。ここで、量子化周波数変換係数は、次式に従って算出される。
(数1)
Sqvu = round(Svu / Quv)
但し、Sqvuは量子化周波数変換係数ブロックのv(水平周波数成分)行、u(垂直周波数成分)列の量子化周波数変換係数、
Svuは周波数変換係数ブロックのv行u列の周波数変換係数、
Quvは量子化テーブルのv行u列の係数(Qvuは正の整数)、とする。
FIG. 5 shows a quantized DCT coefficient as an example of a quantized frequency conversion coefficient. Note that the quantized DCT coefficient shown in FIG. 5 is a coefficient calculated using the first quantization table shown in FIG. Also, once quantized DCT coefficients are reversible with respect to the quantization processing using the same quantization table, and when the inverse quantization transform is executed, the DCT coefficients return to the basic frequency transform coefficients shown in FIG. Here, the quantization frequency conversion coefficient is calculated according to the following equation.
(Equation 1)
Sqvu = round (Svu / Quv)
Where Sqvu is the v (horizontal frequency component) row of the quantized frequency transform coefficient block, the quantized frequency transform coefficient of u (vertical frequency component) column,
Svu is the frequency conversion coefficient in the v row and u column of the frequency conversion coefficient block,
Quv is a coefficient of v rows and u columns of the quantization table (Qvu is a positive integer).

図5に示される通り、量子化周波数変換係数は高域の周波数成分になるにつれ、係数が0になる箇所が多くなる。ここで、本発明者により以下の事象が新たに着目された。図6には、再圧縮の為に、第1の量子化テーブルとは異なる任意の量子化テーブルで量子化した量子化周波数変換係数の一例となる量子化DCT係数を示す。図6に示される様に、再圧縮を実行した場合は、量子化DCT係数が異なっていることが確認される。この為、単純に量子化DCT係数からハッシュ値を生成すると、上述の改竄の誤検知が生じてしまう。   As shown in FIG. 5, as the quantized frequency conversion coefficient becomes a high frequency component, the number of places where the coefficient becomes zero increases. Here, the following events were newly noticed by the present inventors. FIG. 6 shows a quantized DCT coefficient as an example of a quantized frequency transform coefficient quantized with an arbitrary quantization table different from the first quantization table for recompression. As shown in FIG. 6, when recompression is performed, it is confirmed that the quantized DCT coefficients are different. For this reason, if a hash value is simply generated from a quantized DCT coefficient, the above-described false detection of falsification occurs.

ここで、量子化DCT係数の正負の符号に着目すると、再圧縮の為、任意の量子化テーブルを用いて量子化周波数変換係数を算出しても、正符号の係数は、符号が変わらず正符号の係数か、係数の値が0となり、係数の符号が正から負に反転することはない。また、負符号の係数においても、再圧縮の為、任意の量子化テーブルを用いて量子化周波数変換係数を算出しても負符号の係数は、符号が変わらず負符号の係数か、係数の値が0となり、係数の符号が負から正に反転することはない。この事象に着目すれば、改竄検知対象となる画像の量子化DCT係数の符号が正符号の位置に対応する原画像の量子化DCT係数の符号が負符号に反転している場合や、改竄検知対象となる画像の量子化DCT係数の符号が負符号の位置に対応する原画像の量子化DCT係数の符号が正符号に反転している場合は、画像の改竄が行われたと判定することが可能となる。   Here, focusing on the positive and negative signs of the quantized DCT coefficients, even if the quantization frequency transform coefficient is calculated using an arbitrary quantization table for recompression, the positive sign coefficient is positive without changing the sign. The coefficient of the sign or the value of the coefficient is 0, and the sign of the coefficient is not reversed from positive to negative. In addition, even for the negative sign coefficient, even if the quantization frequency conversion coefficient is calculated using an arbitrary quantization table for recompression, the negative sign coefficient is the same as the negative sign coefficient or the coefficient without changing the sign. The value is 0, and the sign of the coefficient is not reversed from negative to positive. If attention is paid to this event, the sign of the quantized DCT coefficient of the original image corresponding to the position of the positive sign corresponding to the position of the quantized DCT coefficient of the image subject to falsification detection is reversed to the negative sign, If the sign of the quantized DCT coefficient of the original image corresponding to the position of the negative sign of the quantized DCT coefficient of the target image is inverted to the positive sign, it may be determined that the image has been tampered with. It becomes possible.

図7(a)には、原画像の周波数変換係数を示す。図7(b)には、図7(a)の周波数変換係数を第1の量子化テーブルを用いて変換した量子化周波数変換係数を示す。図7(c)には、図7(a)の周波数変換係数を復号した原画像に対して改竄が施された画像を周波数変換し、第1の量子化テーブル以外の任意の量子化テーブルを用いて量子化した量子化周波数変換係数を示す。図7(a)〜図7(c)に示される様に、オリジナルの原画像の量子化周波数変換係数の量子化周波数変換係数ブロックにおける正符号の係数の位置または、負符号の係数の位置に対応した、改竄検知対象の圧縮画像の量子化周波数変換係数が0以外の値であり、かつ当該係数の符号が反転している場合、画像の改竄が行われたと判定することが出来る。なお、実施例1の例示として量子化周波数変換係数について記載しているが、周波数変換係数を用いても同様の原理を適用することが出来る。図7(a)ならびに図7(c)に示される様に、オリジナルの原画像の周波数変換係数の量子化周波数変換係数ブロックにおける正符号の係数の位置または、負符号の係数の位置に対応した、改竄検知対象の圧縮画像の量子化周波数変換係数が0以外の値であり、かつ当該係数の符号が反転している場合、画像の改竄が行われたと判定することが出来る。   FIG. 7A shows the frequency conversion coefficient of the original image. FIG. 7B shows a quantized frequency transform coefficient obtained by transforming the frequency transform coefficient of FIG. 7A using the first quantization table. In FIG. 7C, an image obtained by falsifying the original image obtained by decoding the frequency conversion coefficient in FIG. 7A is subjected to frequency conversion, and an arbitrary quantization table other than the first quantization table is displayed. The quantization frequency conversion coefficient quantized using is shown. As shown in FIGS. 7A to 7C, the position of the positive sign coefficient or the position of the negative sign coefficient in the quantized frequency transform coefficient block of the quantized frequency transform coefficient of the original original image is set. If the corresponding quantization frequency conversion coefficient of the compressed image subject to tampering detection is a value other than 0 and the sign of the coefficient is inverted, it can be determined that the image has been tampered with. Although the quantization frequency conversion coefficient is described as an example of the first embodiment, the same principle can be applied even if the frequency conversion coefficient is used. As shown in FIG. 7A and FIG. 7C, it corresponds to the position of the positive sign coefficient or the negative sign coefficient in the quantized frequency transform coefficient block of the frequency transform coefficient of the original original image. If the quantized frequency conversion coefficient of the compressed image to be falsified is a value other than 0 and the sign of the coefficient is inverted, it can be determined that the image has been falsified.

なお、実施例1の例示として量子化DCT係数を挙げているが、量子化アダマール変換係数、量子化ウェーブレット変換係数等の量子化周波数変換係数の場合でも同様の考え方を適用することが出来る。   In addition, although the quantized DCT coefficient is cited as an example of the first embodiment, the same concept can be applied to quantized frequency transform coefficients such as quantized Hadamard transform coefficients and quantized wavelet transform coefficients.

図2の位置算出部25は、周波数変換係数ブロックまたは量子化周波数変換係数ブロックを例えばラスタ順にスキャンする。更に、位置算出部25は、周波数変換係数ブロックまたは量子化周波数変換係数ブロックに対する正符号の係数の位置、負符号の係数の位置、または値が0の係数の位置を示す位置情報を算出し、当該位置情報を、生成部26に出力する。   The position calculation unit 25 in FIG. 2 scans the frequency transform coefficient block or the quantized frequency transform coefficient block in raster order, for example. Further, the position calculation unit 25 calculates position information indicating the position of the positive sign coefficient, the position of the negative sign coefficient, or the position of the coefficient whose value is 0 with respect to the frequency transform coefficient block or the quantized frequency transform coefficient block, The position information is output to the generation unit 26.

生成部26は、位置算出部25からの位置情報を取得し、例えば、周波数変換係数または量子化周波数変換係数が正符号の係数である場合を1、周波数変換係数または量子化周波数変換係数が負符号の係数である場合を2、更に、周波数変換係数または量子化周波数変換係数の値が0である場合を0としたものを、改竄検知コードとして生成して、署名生成部27へ出力する。このとき、生成部26は、位置算出部25が算出した位置情報や、周波数変換係数または量子化周波数変換係数のいずれかで改竄検知コードを生成したかという識別子を改竄検知コードに付加することも可能である。改竄検知コードに付加する位置情報は、例えば、スキャン順のシリアルNoや周波数変換係数ブロックまたは量子化周波数変換係数ブロックの座標値(v、u)であれば良い。   The generation unit 26 acquires the position information from the position calculation unit 25. For example, the frequency conversion coefficient or the quantization frequency conversion coefficient is 1 when the frequency conversion coefficient or the quantization frequency conversion coefficient is a positive sign coefficient, and the frequency conversion coefficient or the quantization frequency conversion coefficient is negative. A code coefficient of 2 is generated, and a frequency conversion coefficient or quantized frequency conversion coefficient value of 0 is generated as a falsification detection code and output to the signature generation unit 27. At this time, the generation unit 26 may add an identifier indicating whether the falsification detection code has been generated by using the position information calculated by the position calculation unit 25 or the frequency conversion coefficient or the quantized frequency conversion coefficient. Is possible. The position information added to the falsification detection code may be, for example, the serial number in the scan order, the coordinate value (v, u) of the frequency conversion coefficient block, or the quantized frequency conversion coefficient block.

また、生成部26は、位置算出部25から位置情報を取得しなくとも、改竄検知コードを生成することも可能である。具体的には、生成部26は、周波数変換係数ブロックまたは量子化周波数変換係数ブロックを例えばラスタ順にスキャンし、例えば、周波数変換係数または量子化周波数変換係数が正符号の係数である場合を1、負符号の係数である場合を2、係数の値が0である場合を0としたものを、改竄検知コードとして生成する。   Further, the generation unit 26 can also generate a falsification detection code without acquiring the position information from the position calculation unit 25. Specifically, the generation unit 26 scans the frequency transform coefficient block or the quantized frequency transform coefficient block, for example, in raster order, for example, 1 when the frequency transform coefficient or the quantized frequency transform coefficient is a positive sign coefficient, A code having a negative sign coefficient of 2 and a coefficient value of 0 being 0 is generated as a falsification detection code.

図8(a)は、オリジナルの原画像の量子化周波数変換係数ブロックの量子化周波数係数をラスタ順でスキャンを実施する概念図である。図8(b)は改竄検知コードの一例を示す。図8(a)、(b)に示す様に、位置算出部25または、生成部26は、量子化周波数変換係数ブロックを例えばラスタ順にスキャンしたあと、量子化周波数変換係数が正符号の係数である場合を1、負符号の係数である場合を2、係数の値が0である場合を0としたものから改竄検知コードを生成する。なお、位置算出部25が算出する位置情報を用いる場合は、必要に応じて量子化周波数変換係数ブロックの座標値(v、u)等の位置情報が改竄検知コードに付加される。なお、図8(a)、(b)には量子化周波数変換係数ブロックを用いた例示を記載しているが、周波数変換係数ブロックを用いた場合にもおいても同様の処理となる為、詳細な説明は省略する。   FIG. 8A is a conceptual diagram in which the quantization frequency coefficients of the quantization frequency transform coefficient block of the original original image are scanned in raster order. FIG. 8B shows an example of a falsification detection code. As shown in FIGS. 8A and 8B, the position calculation unit 25 or the generation unit 26 scans the quantized frequency transform coefficient block, for example, in raster order, and then the quantized frequency transform coefficient is a positive sign coefficient. A falsification detection code is generated from a case where 1 is a case, 2 is a negative sign coefficient, and 0 is a coefficient value. When the position information calculated by the position calculation unit 25 is used, position information such as the coordinate value (v, u) of the quantization frequency transform coefficient block is added to the falsification detection code as necessary. 8 (a) and 8 (b) show an example using a quantized frequency transform coefficient block, but the same processing is performed even when a frequency transform coefficient block is used. Detailed description is omitted.

ここで、図9には、ジグザグスキャン方式の概念図を示す。図10には、縦方向優先スキャン方式の概念図を示す。図9または図10に示す通り、上述したラスタスキャンの他、ジグザグスキャン、縦方向優先スキャン等のスキャン順で量子化周波数変換係数ブロックをスキャンすることも可能である。なお、周波数変換係数ブロックを用いた場合においても同様の処理となる為、詳細な説明は省略する。   Here, FIG. 9 shows a conceptual diagram of the zigzag scanning method. FIG. 10 is a conceptual diagram of the vertical direction priority scan method. As shown in FIG. 9 or FIG. 10, in addition to the raster scan described above, it is also possible to scan the quantized frequency transform coefficient block in a scan order such as a zigzag scan and a vertical priority scan. Note that the same processing is performed when the frequency conversion coefficient block is used, and thus detailed description thereof is omitted.

図2の署名生成部27は、生成部26で生成された改竄検知コードを、画像処理装置10が予め有する固有の秘密鍵を用いて、暗号化して電子署名データとして出力する。なお、固有の秘密鍵は、例えば、主記憶部12等に記憶される。更に、固有の秘密鍵の対となる公開鍵も、例えば、主記憶部12等に記憶される。なお、署名生成部27は、主記憶部12などから秘密鍵を予め取得しておく。また、署名生成部27は、SHA−1などの既存ハッシュ関数を用いてハッシュ値を計算し、最後に秘密鍵を用いてハッシュ値を暗号化し、電子署名データとして出力してもよい。なお、署名生成部27は、必須の構成ではなく、必要に応じて備えられれば良い。署名生成部27を構成要件としない場合は、生成部26が改竄検知コードを出力する。   The signature generation unit 27 in FIG. 2 encrypts the falsification detection code generated by the generation unit 26 using a unique private key that the image processing apparatus 10 has in advance, and outputs it as electronic signature data. The unique secret key is stored, for example, in the main storage unit 12 or the like. Furthermore, a public key that is a unique private key pair is also stored in, for example, the main storage unit 12 or the like. The signature generation unit 27 acquires a secret key from the main storage unit 12 or the like in advance. Further, the signature generation unit 27 may calculate a hash value using an existing hash function such as SHA-1, and finally encrypt the hash value using a secret key and output it as electronic signature data. Note that the signature generation unit 27 is not an essential component, and may be provided as necessary. When the signature generation unit 27 is not a constituent requirement, the generation unit 26 outputs a falsification detection code.

可変長符号化部24は、量子化部23から取得した量子化周波数変換係数を、ハフマン符号等を用いて圧縮符号化する。可変長符号化部24は、圧縮符号化された圧縮画像を出力する。   The variable length encoding unit 24 compresses and encodes the quantization frequency transform coefficient acquired from the quantization unit 23 using a Huffman code or the like. The variable length encoding unit 24 outputs a compressed image that has been compression encoded.

画像処理装置10は、圧縮画像、生成した電子署名データまたは改竄検知コード、固有の秘密鍵の対となる公開鍵を出力する。これらの情報は、後の改竄検知に利用される。次に、改竄防止装置として機能する画像処理装置の各処理について詳しく説明する。   The image processing apparatus 10 outputs a compressed image, generated digital signature data or falsification detection code, and a public key that is a pair of a unique secret key. These pieces of information are used for subsequent alteration detection. Next, each process of the image processing apparatus functioning as a falsification preventing apparatus will be described in detail.

(改竄防止処理)
次に、実施例1における改竄防止装置として機能する画像処理装置10の動作について説明する。図11は、実施例1における改竄防止処理の一例を示すフローチャートである。
(Falsification prevention processing)
Next, the operation of the image processing apparatus 10 that functions as a falsification preventing apparatus according to the first embodiment will be described. FIG. 11 is a flowchart illustrating an example of tampering prevention processing according to the first embodiment.

図11に示すステップS1201で、ブロック分割部21は、改竄防止対象の原画像が入力されると、画像を例えば、8×8画素の複数のブロックに分割する。   In step S1201 shown in FIG. 11, when an original image to be tampered with is input, the block dividing unit 21 divides the image into a plurality of blocks of 8 × 8 pixels, for example.

ステップS1202で、周波数変換部22は、複数のブロック数に分割されたそれぞれの画像に対して周波数変換を行い、周波数変換係数を算出する。   In step S1202, the frequency conversion unit 22 performs frequency conversion on each image divided into a plurality of blocks, and calculates a frequency conversion coefficient.

ステップS1203で、量子化部23は、圧縮率に応じた任意の量子化テーブルを用いて、量子化周波数変換係数を算出する。   In step S1203, the quantization unit 23 calculates a quantization frequency transform coefficient using an arbitrary quantization table corresponding to the compression rate.

ステップS1204で、位置算出部25は、周波数変換係数ブロック内における周波数変換係数または、量子化周波数変換係数ブロック内における量子化周波数変換係数の符号が正符号の係数の位置、負符号の係数の位置、または値が0の係数の位置を示す位置情報を算出する。   In step S1204, the position calculation unit 25 determines the position of the frequency conversion coefficient in the frequency conversion coefficient block, the position of the coefficient of the positive sign in the quantization frequency conversion coefficient block, the position of the coefficient of the negative sign in the quantization frequency conversion coefficient block. Or position information indicating the position of a coefficient having a value of 0 is calculated.

ステップS1205で、生成部26は、位置算出部25が算出した位置情報に基づいて、改竄検知コードを生成する。具体的には、生成部26は、位置算出部25から位置情報を必要に応じて取得し、例えば、周波数変換係数または量子化周波数変換係数が正符号の係数である場合を1、負符号の係数である場合を2、係数の値が0である場合を0としたものを、改竄検知コードとして生成して、署名生成部27へ出力する。このとき、生成部26は、位置算出部25が算出する位置情報を改竄検知コードに付加しても良い。   In step S1205, the generation unit 26 generates a falsification detection code based on the position information calculated by the position calculation unit 25. Specifically, the generation unit 26 acquires position information from the position calculation unit 25 as necessary. For example, when the frequency conversion coefficient or the quantization frequency conversion coefficient is a positive sign coefficient, A code with 2 as the coefficient and 0 as the coefficient value is generated as a falsification detection code and output to the signature generation unit 27. At this time, the generation unit 26 may add the position information calculated by the position calculation unit 25 to the falsification detection code.

ステップS1206で、生成部26は、所定のブロック数に分割されたそれぞれの画像に対して改竄検知コードの生成が完了したか否かを判定する。否の場合(ステップS1206−No)は、ステップS1204の処理に戻り、完了した場合は(ステップS1206−Yes)は、ステップS1207に処理を進める。   In step S1206, the generation unit 26 determines whether the generation of the falsification detection code is completed for each image divided into a predetermined number of blocks. If not (step S1206-No), the process returns to step S1204. If completed (step S1206-Yes), the process proceeds to step S1207.

ステップS1207で、可変長符号化部24は、例えばハフマン符号等を用いて、ステップS1203で算出した量子化周波数変換係数を符号化する。   In step S1207, the variable length encoding unit 24 encodes the quantized frequency transform coefficient calculated in step S1203 using, for example, a Huffman code.

ステップS1208で、署名生成部27は、ステップS1205で生成された改竄検知コードを秘密鍵で暗号化する。または、署名生成部27はハッシュ関数を用いたハッシュをとっても良い。   In step S1208, the signature generation unit 27 encrypts the falsification detection code generated in step S1205 with a secret key. Alternatively, the signature generation unit 27 may take a hash using a hash function.

なお、画像処理装置10は、ステップS1205の処理とステップS1207の処理を並列に実行してもよい。あるいは、画像処理装置10は、ステップS1207の処理を行う前にステップS1205の処理を実行してもよい。   Note that the image processing apparatus 10 may execute the processing in step S1205 and the processing in step S1207 in parallel. Alternatively, the image processing apparatus 10 may execute the process of step S1205 before performing the process of step S1207.

以上、実施例1によれば、再圧縮を実施しても(換言すると任意の量子化テーブルを用いても)、正負の符号が反転しない周波数変換係数または量子化周波数変換係数の正負の符号に基づいて改竄検知コードを生成している為に、改竄の誤検知を防止することが可能となる。   As described above, according to the first embodiment, even if recompression is performed (in other words, an arbitrary quantization table is used), the sign of the frequency transform coefficient or the sign of the quantized frequency transform coefficient that does not invert the sign of the sign is changed. Since the falsification detection code is generated based on this, it is possible to prevent erroneous detection of falsification.

(実施例2)
次に、実施例2における画像処理装置30について説明する。画像処理装置30は、改竄検知装置として機能する。画像処理装置30は、実施例1の改竄防止装置1で出力した画像に対して共通の改竄検知処理を行う。
(Example 2)
Next, the image processing apparatus 30 according to the second embodiment will be described. The image processing device 30 functions as a tampering detection device. The image processing apparatus 30 performs a common falsification detection process on the image output by the falsification preventing apparatus 1 of the first embodiment.

図12は、画像処理装置30の構成の一例を示す図である。図12に示す画像処理装置30は、画像に対する改竄を検知する改竄検知装置として機能する。図12に示す画像処理装置30は、制御部31、主記憶部32、補助記憶部33、表示制御部34、記録媒体I/F部36、及び入力I/F部38を有する。各部は、バスを介して相互にデータ送受信可能に接続されている。   FIG. 12 is a diagram illustrating an example of the configuration of the image processing apparatus 30. The image processing device 30 illustrated in FIG. 12 functions as a tampering detection device that detects tampering with an image. An image processing apparatus 30 illustrated in FIG. 12 includes a control unit 31, a main storage unit 32, an auxiliary storage unit 33, a display control unit 34, a recording medium I / F unit 36, and an input I / F unit 38. Each unit is connected via a bus so that data can be transmitted / received to / from each other.

制御部31は、画像処理装置30の中で、各機能の制御やデータの演算、加工を行うCPUである。また、制御部31は、主記憶部32や補助記憶部33に記憶されたプログラムを実行する演算装置である。制御部31は、各記憶部からデータを受け取り、演算、加工した上で、出力部や各記憶部に出力する。   The control unit 31 is a CPU that controls each function, calculates and processes data in the image processing apparatus 30. The control unit 31 is an arithmetic device that executes a program stored in the main storage unit 32 or the auxiliary storage unit 33. The control unit 31 receives data from each storage unit, calculates and processes the data, and then outputs the data to the output unit and each storage unit.

例えば、制御部31は、補助記憶部33に記憶される改竄検知プログラムを実行することで、画像に対する改竄検知機能の役割を果たす。   For example, the control unit 31 plays a role of a falsification detection function for an image by executing a falsification detection program stored in the auxiliary storage unit 33.

主記憶部32は、例えばRAMなどであり、制御部31が実行する基本ソフトウェアであるOSやアプリケーションソフトウェアなどのプログラムやデータを記憶又は一時保存する記憶部である。また、主記憶部32は、プログラムやデータを置くワークメモリとして機能する。   The main storage unit 32 is, for example, a RAM or the like, and is a storage unit that stores or temporarily stores programs and data such as an OS and application software that are basic software executed by the control unit 31. The main storage unit 32 functions as a work memory for storing programs and data.

補助記憶部33は、例えばHDDまたは、SSDなどであり、アプリケーションソフトウェアなどに関連するデータを記憶する記憶装置である。補助記憶部33は、改竄検知プログラムを記憶する。   The auxiliary storage unit 33 is, for example, an HDD or an SSD, and is a storage device that stores data related to application software. The auxiliary storage unit 33 stores a falsification detection program.

補助記憶部33は、例えば改竄防止装置として機能する画像処理装置10から取得した圧縮画像や公開鍵、電子署名を記憶する。また、補助記憶部33は、記録媒体37などから取得された画像などを記憶しておいてもよい。   The auxiliary storage unit 33 stores, for example, a compressed image, a public key, and an electronic signature acquired from the image processing apparatus 10 that functions as a falsification preventing apparatus. The auxiliary storage unit 33 may store an image acquired from the recording medium 37 or the like.

表示制御部34は、画像やデータなどを表示部35に表示するため、表示制御を行う。   The display control unit 34 performs display control in order to display images and data on the display unit 35.

記録媒体I/F部36は、USBなどのデータ伝送路を介して接続された記録媒体37(例えば、フラッシュメモリなど)と画像処理装置30とのインターフェースである。   The recording medium I / F unit 36 is an interface between the image processing apparatus 30 and a recording medium 37 (for example, a flash memory) connected via a data transmission path such as a USB.

また、記録媒体37に、所定のプログラム(改竄検知プログラムとして機能する画像処理用プログラム)を格納し、この記録媒体37に格納されたプログラムは記録媒体I/F部36を介して画像処理装置30にインストールされる。インストールされた所定のプログラムは、画像処理装置30により実行可能となる。   A predetermined program (an image processing program that functions as a falsification detection program) is stored in the recording medium 37, and the program stored in the recording medium 37 is stored in the image processing apparatus 30 via the recording medium I / F unit 36. To be installed. The installed predetermined program can be executed by the image processing apparatus 30.

なお、記録媒体37を例えばSDカードとした場合は、記録媒体I/F部36は、SDカードスロットである。   If the recording medium 37 is an SD card, for example, the recording medium I / F unit 36 is an SD card slot.

入力I/F部38は、入力デバイスとなるマウス・キーボード39から入力されたデータを取得する。取得されたデータは、主記憶部32や補助記憶部33に記憶される。なお、マウス・キーボード39や表示部35は、画像処理装置30に内蔵されてもよい。   The input I / F unit 38 acquires data input from a mouse / keyboard 39 serving as an input device. The acquired data is stored in the main storage unit 32 or the auxiliary storage unit 33. Note that the mouse / keyboard 39 and the display unit 35 may be built in the image processing apparatus 30.

また、画像処理装置30は、通信部を有し、有線又は無線で通信を行う。通信部は、例えば、圧縮画像、公開鍵、電子署名を改竄防止装置として機能する画像処理装置10から受信する。   Further, the image processing apparatus 30 includes a communication unit, and performs wired or wireless communication. The communication unit receives, for example, a compressed image, a public key, and an electronic signature from the image processing apparatus 10 that functions as a falsification preventing apparatus.

(改竄検知機能)
次に、改竄検知機能を有する制御部31について詳しく説明する。図13は、実施例2における制御部31の一例を示す機能ブロック図である。図13に示す制御部31は、可変長復号部41、逆量子化部42、逆周波数変換部43、ブロック結合部44、位置算出部45、生成部46、署名認証部47、及び比較部48を有する。ここで、制御部31は、改竄検知対象の圧縮画像、電子署名及び画像処理装置10の秘密鍵と対となる公開鍵を入力データとする。
(Falsification detection function)
Next, the control unit 31 having a falsification detection function will be described in detail. FIG. 13 is a functional block diagram illustrating an example of the control unit 31 according to the second embodiment. The control unit 31 illustrated in FIG. 13 includes a variable length decoding unit 41, an inverse quantization unit 42, an inverse frequency conversion unit 43, a block combination unit 44, a position calculation unit 45, a generation unit 46, a signature authentication unit 47, and a comparison unit 48. Have Here, the control unit 31 uses, as input data, a compressed image to be detected for falsification, a digital signature, and a public key that is paired with the private key of the image processing apparatus 10.

可変長復号部41は、圧縮画像を取得し、ハフマン符号等により符号化された量子化周波数変換係数を復号して、逆量子化部42と、位置算出部45へ出力する。なお、可変長復号部41より復号された量子化周波数変換係数は、例えば、図5に示す量子化周波数変換係数となる。   The variable length decoding unit 41 acquires the compressed image, decodes the quantized frequency transform coefficient encoded by Huffman code or the like, and outputs the decoded coefficient to the inverse quantization unit 42 and the position calculation unit 45. Note that the quantized frequency transform coefficient decoded by the variable length decoding unit 41 is, for example, the quantized frequency transform coefficient illustrated in FIG.

逆量子化部42は、復号された量子化周波数変換係数を、量子化テーブルを用いて周波数変換係数に変換して、逆周波数変換部43ならびに位置算出部45へ出力する。なお、量子化テーブルは、例えば、図4に示す第1の量子化テーブルを用いれば良い。逆量子化部42により、逆量子化された周波数変換係数は、例えば、図3に示す周波数変換係数となる。
なお、周波数変換係数は、次式に従って算出される。
(数2)
Svu =Sqvu × Quv
但し、Svuは周波数変換係数ブロックのv行u列の周波数変換係数、
Sqvuは量子化周波数変換係数ブロックのv(水平周波数成分)行、u(垂直周波数成分)列の量子化周波数変換係数、
Quvは量子化テーブルのv行u列の係数(Qvuは正の整数)、とする。
また、逆量子化部42は、通常は、圧縮画像に添付されている量子化テーブルを使用するが、複数の量子化テーブルを格納し、周波数変換係数に使用する量子化テーブルを画像処理装置10から指定されても良い。また、周波数変換係数に使用する量子化テーブルを画像処理装置10から取得しても良い。
The inverse quantization unit 42 converts the decoded quantized frequency transform coefficient into a frequency transform coefficient using the quantization table, and outputs the frequency transform coefficient to the inverse frequency transform unit 43 and the position calculation unit 45. As the quantization table, for example, the first quantization table shown in FIG. 4 may be used. The frequency transform coefficient inversely quantized by the inverse quantization unit 42 becomes, for example, the frequency transform coefficient shown in FIG.
The frequency conversion coefficient is calculated according to the following equation.
(Equation 2)
Svu = Sqvu × Quv
Where Svu is the frequency conversion coefficient in the v row u column of the frequency conversion coefficient block,
Sqvu is v (horizontal frequency component) row of quantization frequency transform coefficient block, quantization frequency transform coefficient of u (vertical frequency component) column,
Quv is a coefficient of v rows and u columns of the quantization table (Qvu is a positive integer).
The inverse quantization unit 42 normally uses a quantization table attached to a compressed image. However, the inverse quantization unit 42 stores a plurality of quantization tables and uses the quantization table used for frequency conversion coefficients as the image processing apparatus 10. May be specified. Further, the quantization table used for the frequency conversion coefficient may be acquired from the image processing apparatus 10.

逆周波数変換部43は、周波数変換係数に対して逆周波数変換を行い、所定のブロック(例えば、8×8画素の複数のブロック)に分割された画像に変換し、ブロック結合部44に出力する。なお、逆周波数変換は、例えば逆離散コサイン変換(IDCT)、逆ウェーブレット変換または逆離散アダマール変換等を用いることが可能である。   The inverse frequency conversion unit 43 performs inverse frequency conversion on the frequency conversion coefficient, converts the frequency conversion coefficient into an image divided into predetermined blocks (for example, a plurality of blocks of 8 × 8 pixels), and outputs the image to the block combination unit 44. . For the inverse frequency transform, for example, an inverse discrete cosine transform (IDCT), an inverse wavelet transform, an inverse discrete Hadamard transform, or the like can be used.

ブロック結合部44は、所定のブロックに分割された画像を結合して原画像を出力する。出力された原画像は、例えば、図12の表示部35に表示される。   The block combining unit 44 combines the images divided into predetermined blocks and outputs the original image. The output original image is displayed on the display unit 35 in FIG. 12, for example.

図13の位置算出部45は、周波数変換係数ブロックまたは量子化周波数変換係数ブロックを例えばラスタ順にスキャンし、周波数変換係数ブロックまたは量子化周波数変換係数ブロックに対する正符号の係数の位置、負符号の係数の位置、または値が0の係数の位置を示す位置情報を算出する。位置算出部45は、当該位置情報を、生成部46に出力する。なお、位置算出部45の機能は、図2の位置算出部25の同等の機能を有する為、詳細な説明は省略する。なお、位置算出部45には図示しないセレクタを含み周波数変換係数を取得するか、量子化周波数変換係数を取得するかを識別子等に基づいて選択することが出来る。   The position calculation unit 45 in FIG. 13 scans the frequency transform coefficient block or the quantized frequency transform coefficient block in raster order, for example, and positions the positive sign coefficient and the negative sign coefficient with respect to the frequency transform coefficient block or the quantized frequency transform coefficient block. Or position information indicating the position of the coefficient having a value of 0 is calculated. The position calculation unit 45 outputs the position information to the generation unit 46. The function of the position calculation unit 45 has the same function as the position calculation unit 25 of FIG. The position calculation unit 45 includes a selector (not shown) and can select whether to acquire a frequency conversion coefficient or a quantization frequency conversion coefficient based on an identifier or the like.

図13の生成部46は、位置算出部45から位置情報を取得し、例えば、周波数変換係数または量子化周波数変換係数が正符号の係数である場合を1、負符号の係数である場合を2、係数の値が0である場合を0としたものを、改竄検知コードとして生成して、比較部48に出力する。なお、生成部46の機能は、図2の生成部26と同等の機能を有する為、詳細な説明は省略する。   The generation unit 46 in FIG. 13 acquires position information from the position calculation unit 45. For example, the case where the frequency conversion coefficient or the quantization frequency conversion coefficient is a positive sign coefficient is 1, and the case where the frequency conversion coefficient is a negative sign coefficient 2 When the coefficient value is 0, 0 is generated as a falsification detection code and output to the comparison unit 48. The function of the generation unit 46 is the same as that of the generation unit 26 in FIG.

図13の署名認証部47は、画像処理装置10の生成部26が生成した改竄検知コードを暗号化した秘密鍵と対となる公開鍵と、電子署名を画像処理装置10から取得する。署名認証部47は公開鍵を用いて電子署名を確認するとともに、暗号化された改竄検知コードを復号して、比較部48へ出力する。なお、画像処理装置10が改竄検知コードを暗号化しない場合は、署名認証部47は、平文の改竄検知コードを画像処理装置10から取得して、比較部48に出力する。また、電子署名の確認結果は、例えば、図12の表示部35に表示される。   13 acquires from the image processing apparatus 10 a public key that is paired with a secret key obtained by encrypting the falsification detection code generated by the generation unit 26 of the image processing apparatus 10 and an electronic signature. The signature authentication unit 47 confirms the electronic signature using the public key, decrypts the encrypted falsification detection code, and outputs it to the comparison unit 48. When the image processing apparatus 10 does not encrypt the falsification detection code, the signature authentication unit 47 acquires the plaintext falsification detection code from the image processing apparatus 10 and outputs it to the comparison unit 48. Further, the confirmation result of the electronic signature is displayed on the display unit 35 in FIG. 12, for example.

ここで、説明の便宜上、画像処理装置30の生成部46が生成した改竄検知コードを第1の改竄検知コードと定義し、画像処理装置10の生成部26が生成した改竄検知コードを第2の改竄検知コードと定義して称することとする。   Here, for convenience of explanation, the falsification detection code generated by the generation unit 46 of the image processing device 30 is defined as the first falsification detection code, and the falsification detection code generated by the generation unit 26 of the image processing device 10 is the second falsification detection code. The falsification detection code is defined and called.

比較部48は、第1の改竄検知コードと、第2の改竄検知コードを比較して、双方のコードが一致している場合は、改竄無しと判定する。また、比較部48は、第1の改竄検知コードと、第2の改竄検知コードの双方が一致していない場合においても、第2の改竄検知コードで正符号に相当する係数が、第1の改竄検知コードで正符号に相当する係数または値が0の係数であり、かつ、第2の改竄検知コードで負符号に相当する係数が、第1の改竄検知コードで負符号に相当する係数または値が0の係数であれば改竄無しと判定する。また、比較部48は、第2の改竄検知コードで正符号に相当する係数が、第1の改竄検知コードで負符号に反転している係数や、第2の改竄検知コードで負符号に相当する係数が、第1の改竄検知コードで正符号に反転している係数が1つでも存在している場合は改竄有りと判定し、改竄検証結果を出力する。
例えば、比較部48は、
・第1の改竄検知コード=12100000、10001000、20・・・
・第2の改竄検知コード=12100021、10021000、20・・・
の場合は、第2の改竄検知コードで正符号に相当する係数が、第1の改竄検知コードで正符号に相当する係数または値が0の係数であり、かつ、第2の改竄検知コードで負符号に相当する係数が、第1の改竄検知コードで負符号に相当する係数または値が0の係数である為、改竄無しと判定する。
また、比較部48は、
・第1の改竄検知コード=12200000、10001000、10・・・
・第2の改竄検知コード=12100021、10021000、20・・・
の場合は、第2の改竄検知コードで正符号に相当する係数が、第1の改竄検知コードで負符号に反転している係数や、第2の改竄検知コードで負符号に相当する係数が、第1の改竄検知コードで正符号に反転している係数が存在している為、改竄有りと判定する。
なお、改竄検証結果は、例えば、表示部35に表示される。また、比較部48は、第1の改竄検知コードと第2の改竄検知コードを比較する際、少なくとも係数の値が0である場合は、当該係数については改竄検知の対象から除外しても良い。
The comparison unit 48 compares the first tampering detection code and the second tampering detection code, and determines that there is no tampering if both codes match. The comparison unit 48 also determines that the coefficient corresponding to the positive sign in the second falsification detection code is equal to the first sign even when both the first falsification detection code and the second falsification detection code do not match. A coefficient corresponding to a positive sign in the falsification detection code or a coefficient whose value is 0, and a coefficient corresponding to a negative sign in the second falsification detection code is a coefficient corresponding to a negative sign in the first falsification detection code or If the value is a coefficient of 0, it is determined that there is no falsification. In addition, the comparison unit 48 corresponds to a coefficient in which the coefficient corresponding to the positive sign in the second tampering detection code is inverted to the negative sign in the first tampering detection code or the negative sign in the second tampering detection code. If there is even one coefficient that is inverted to a positive sign in the first falsification detection code, it is determined that there is falsification, and a falsification verification result is output.
For example, the comparison unit 48
First alteration detection code = 12100000, 10001000, 20 ...
Second alteration detection code = 12100021, 10021000, 20...
In this case, the coefficient corresponding to the positive sign in the second tampering detection code is the coefficient corresponding to the positive sign in the first tampering detection code or the coefficient having a value of 0, and the second tampering detection code is Since the coefficient corresponding to the negative sign is the coefficient corresponding to the negative sign in the first falsification detection code or the coefficient having a value of 0, it is determined that there is no falsification.
The comparison unit 48
First falsification detection code = 12200000, 10001000, 10,.
Second alteration detection code = 12100021, 10021000, 20...
In this case, the coefficient corresponding to the positive sign in the second falsification detection code is the coefficient inverted to the negative sign in the first falsification detection code, or the coefficient corresponding to the negative sign in the second falsification detection code. Since there is a coefficient inverted to a positive sign in the first tampering detection code, it is determined that tampering exists.
The falsification verification result is displayed on the display unit 35, for example. Further, when comparing the first tampering detection code and the second tampering detection code, the comparison unit 48 may exclude the coefficient from the tampering detection target when at least the coefficient value is 0. .

比較部48は、第2の改竄検知コードと第1の改竄検知コードの比較によって改竄有りと判定した場合は、改竄された係数を含むブロックを検出し、改竄された係数の位置情報をブロック結合部44に出力する。   If the comparison unit 48 determines that there is falsification by comparing the second tampering detection code and the first tampering detection code, the comparison unit 48 detects a block including the tampered coefficient, and blocks the position information of the tampered coefficient. To the unit 44.

ブロック結合部44は、改竄されたブロックの位置情報に基づいて原画像に対して、改竄された位置に丸印等の任意の印を重畳して出力する。任意の印が重畳された原画像は、例えば、表示部35に表示される。   The block combining unit 44 superimposes and outputs an arbitrary mark such as a circle at the position where the falsification is performed on the original image based on the position information of the falsified block. The original image on which an arbitrary mark is superimposed is displayed on the display unit 35, for example.

(改竄検知処理1)
次に、実施例2における改竄検知装置として機能する画像処理装置30の動作について説明する。図14は、実施例2における改竄検知処理の一例を示すフローチャート(その1)である。図15は、実施例2における改竄検知処理の一例を示すフローチャート(その2)である。図14、図15に示す処理は、実施例1において生成された電子署名、公開鍵と改竄検知対象の圧縮画像を入力して改竄を検知する処理である。
(Falsification detection process 1)
Next, the operation of the image processing device 30 functioning as a tamper detection device in the second embodiment will be described. FIG. 14 is a flowchart (part 1) illustrating an example of falsification detection processing according to the second embodiment. FIG. 15 is a flowchart (part 2) illustrating an example of falsification detection processing according to the second embodiment. The processes shown in FIGS. 14 and 15 are processes for detecting falsification by inputting the digital signature, the public key, and the compressed image to be falsified for detection generated in the first embodiment.

ステップS1501で、可変長復号部41は、所定のブロック数に分割された圧縮画像を取得し、ハフマン符号等により符号化された量子化周波数変換係数を復号して、逆量子化部42と、位置算出部45へ出力する。   In step S1501, the variable length decoding unit 41 acquires a compressed image divided into a predetermined number of blocks, decodes a quantized frequency transform coefficient encoded by a Huffman code or the like, and an inverse quantization unit 42; Output to the position calculator 45.

ステップS1502で、逆量子化部42は、復号された量子化周波数変換係数を、量子化テーブルを用いて周波数変換係数に変換して、逆周波数変換部43ならびに位置算出部45へ出力する。   In step S1502, the inverse quantization unit 42 converts the decoded quantized frequency transform coefficient into a frequency transform coefficient using the quantization table, and outputs the frequency transform coefficient to the inverse frequency transform unit 43 and the position calculation unit 45.

ステップS1503で、逆周波数変換部43は、周波数変換係数に対して逆周波数変換を行い、所定のブロック(例えば、8×8画素の複数のブロック)に分割された画像に変換し、ブロック結合部44に出力する。   In step S1503, the inverse frequency conversion unit 43 performs inverse frequency conversion on the frequency conversion coefficient, converts the frequency conversion coefficient into an image divided into predetermined blocks (for example, a plurality of blocks of 8 × 8 pixels), and a block combination unit 44.

ステップS1504で、ブロック結合部44は、所定のブロックに分割された画像を結合して原画像を出力する。   In step S1504, the block combining unit 44 combines the images divided into predetermined blocks and outputs the original image.

ステップS1505で、位置算出部45は、周波数変換係数ブロックまたは量子化周波数変換係数ブロックを例えばラスタ順にスキャンし、正符号の係数の位置、負符号の係数の位置、または値が0の係数の位置を示す位置情報を算出し、当該位置情報を、生成部46に出力する。ステップS1505の処理は、図11のステップS1204と同等の処理の為、詳細な説明は省略する。   In step S1505, the position calculation unit 45 scans the frequency transform coefficient block or the quantized frequency transform coefficient block, for example, in raster order, and the position of the positive sign coefficient, the position of the negative sign coefficient, or the position of the coefficient whose value is 0. Is calculated, and the position information is output to the generation unit 46. Since the process in step S1505 is the same as that in step S1204 in FIG. 11, detailed description thereof is omitted.

ステップS1506で、生成部46は、位置情報を取得し、周波数変換係数または量子化周波数変換係数が正符号の係数である場合を1、周波数変換係数または量子化周波数変換係数が負符号の係数である場合を2、更に、周波数変換係数または量子化周波数変換係数の値が0である場合を0としたものを、第1の改竄検知コードとして生成して、比較部48に出力する。なお、ステップS1506は、図11のステップ1205と同等の処理の為、詳細な説明は省略する。   In step S <b> 1506, the generation unit 46 acquires the position information, and when the frequency transform coefficient or the quantized frequency transform coefficient is a positive sign coefficient, the generation unit 46 is a positive sign coefficient, and the frequency transform coefficient or the quantized frequency transform coefficient is a negative sign coefficient. A case where 2 is set, and a case where the value of the frequency conversion coefficient or the quantized frequency conversion coefficient is 0 is generated as a first tampering detection code and output to the comparison unit 48. Note that step S1506 is the same processing as step 1205 in FIG.

ステップS1507で、生成部46は、所定のブロック数に分割されたそれぞれの圧縮画像に対して改竄検知コードの生成が完了したか否かを判定する。否の場合(ステップS1507−No)は、ステップS1505の処理に戻り、完了した場合は(ステップS1507−Yes)は、ステップS1509に処理を進める。   In step S1507, the generation unit 46 determines whether generation of the falsification detection code is completed for each compressed image divided into a predetermined number of blocks. If not (step S1507-No), the process returns to step S1505. If completed (step S1507-Yes), the process proceeds to step S1509.

ステップS1508で、署名認証部47は公開鍵を用いて電子署名を確認するとともに、暗号化された画像処理装置10の生成部26が生成した第2の改竄検知コードを復号して、比較部48へ出力する。   In step S1508, the signature authentication unit 47 confirms the electronic signature using the public key, decrypts the second falsification detection code generated by the generation unit 26 of the encrypted image processing apparatus 10, and compares the comparison unit 48. Output to.

ステップS1509で、比較部48は、第1の改竄検知コードと、第2の改竄検知コードを比較して、双方のコードが一致している場合は、改竄無しと判定する(ステップS1510−No)。また、比較部48は、第1の改竄検知コードと、第2の改竄検知コードの双方が一致していない場合においても、第2の改竄検知コードで正符号に相当する係数が、第1の改竄検知コードで正符号に相当する係数または値が0の係数であり、かつ、第2の改竄検知コードで負符号に相当する係数が、第1の改竄検知コードで負符号に相当する係数または値が0の係数であれば改竄無しと判定する(ステップS1510−No)。また、比較部48は、第2の改竄検知コードで正符号に相当する係数が、第1の改竄検知コードで負符号に反転している係数や、第2の改竄検知コードで負符号に相当する係数が、第1の改竄検知コードで正符号に反転している係数が1つでも存在している場合は改竄有りと判定し(ステップS1510−Yes)、改竄検証結果をそれぞれ表示部35へ出力する。(ステップS1511、S1512)なお、比較部48は、第1の改竄検知コードと第2の改竄検知コードを比較する際、少なくとも係数の値が0である場合は、当該係数については改竄検知の対象から除外しても良い。   In step S1509, the comparison unit 48 compares the first tampering detection code and the second tampering detection code, and determines that there is no tampering if both codes match (step S1510-No). . The comparison unit 48 also determines that the coefficient corresponding to the positive sign in the second falsification detection code is equal to the first sign even when both the first falsification detection code and the second falsification detection code do not match. A coefficient corresponding to a positive sign in the falsification detection code or a coefficient whose value is 0, and a coefficient corresponding to a negative sign in the second falsification detection code is a coefficient corresponding to a negative sign in the first falsification detection code or If the value is a coefficient of 0, it is determined that there is no falsification (No in step S1510). In addition, the comparison unit 48 corresponds to a coefficient in which the coefficient corresponding to the positive sign in the second tampering detection code is inverted to the negative sign in the first tampering detection code or the negative sign in the second tampering detection code. If there is at least one coefficient that is inverted to a positive sign in the first falsification detection code, it is determined that there is falsification (step S1510-Yes), and the falsification verification result is displayed on the display unit 35, respectively. Output. (Steps S1511, S1512) When the comparison unit 48 compares the first tampering detection code and the second tampering detection code, if at least the coefficient value is 0, the coefficient is subject to tampering detection. May be excluded.

ステップS1513で、ブロック結合部44は、第2の改竄検知コードと第1の改竄検知コードの比較によって改竄有りと判定した場合は、改竄された係数を含むブロックの位置情報を比較部48から取得する。更にブロック結合部44は、改竄されたブロックの位置情報に基づいて原画像に対して、改竄された位置に丸印等の任意の印を重畳して出力する。   In step S1513, if the block combination unit 44 determines that there is falsification by comparing the second tampering detection code and the first tampering detection code, the block combination unit 44 acquires the block position information including the tampered coefficient from the comparison unit 48. To do. Further, the block combining unit 44 superimposes and outputs an arbitrary mark such as a round mark on the original image based on the position information of the falsified block.

以上、実施例2によれば、画像の改竄が行われず、再圧縮だけされた画像に対して、改竄と誤検知しないことが可能となる。また、画像を書き換える等の改竄があった場合は、その位置をブロック単位で特定することが可能となる。   As described above, according to the second embodiment, it is possible to prevent false detection of falsification of an image that has not been falsified and has only been recompressed. In addition, when there is tampering such as rewriting an image, the position can be specified in units of blocks.

(実施例3)
(改竄検知機能の変形例)
次に、改竄検知機能を有する制御部31の変形例について詳細に説明する。図16は、実施例3における制御部31の一例を示す機能ブロック図である。図16に示す制御部31は、可変長復号部41、逆量子化部42、逆周波数変換部43、ブロック結合部44、署名認証部47、及び判定部51を有する。ここで、制御部31は、改竄検知対象の圧縮画像、電子署名及び画像処理装置10の秘密鍵と対となる公開鍵を入力データとする。
(Example 3)
(Modification of the falsification detection function)
Next, a modified example of the control unit 31 having a falsification detection function will be described in detail. FIG. 16 is a functional block diagram illustrating an example of the control unit 31 according to the third embodiment. The control unit 31 illustrated in FIG. 16 includes a variable length decoding unit 41, an inverse quantization unit 42, an inverse frequency conversion unit 43, a block combination unit 44, a signature authentication unit 47, and a determination unit 51. Here, the control unit 31 uses, as input data, a compressed image to be detected for falsification, a digital signature, and a public key that is paired with the private key of the image processing apparatus 10.

なお、判定部51を除く、可変長復号部41、逆量子化部42、逆周波数変換部43、ブロック結合部44、署名認証部47は、図13に示す機能と同様である為、説明を省略する。   The variable length decoding unit 41, the inverse quantization unit 42, the inverse frequency conversion unit 43, the block combination unit 44, and the signature authentication unit 47, excluding the determination unit 51, are the same as those shown in FIG. Omitted.

図16の判定部51は、署名認証部47から復号された改竄検知コードを取得する。更に、判定部51は、署名認証部47から取得した改竄検知コードに含まれる位置情報を取得する。また、判定部51は、可変長復号部41から量子化周波数変換係数または、逆量子化部42から周波数変換係数を取得する。なお、判定部51には図示しないセレクタを含み周波数変換係数を取得するか、量子化周波数変換係数を取得するかを識別子等に基づいて選択することが出来る。   The determination unit 51 in FIG. 16 acquires the falsification detection code decrypted from the signature authentication unit 47. Further, the determination unit 51 acquires position information included in the falsification detection code acquired from the signature authentication unit 47. Further, the determination unit 51 acquires the quantized frequency transform coefficient from the variable length decoding unit 41 or the frequency transform coefficient from the inverse quantization unit 42. The determination unit 51 includes a selector (not shown) and can select whether to acquire a frequency conversion coefficient or a quantization frequency conversion coefficient based on an identifier or the like.

判定部51は、取得した改竄検知コードに含まれる位置情報に対応する、改竄検知対象画像の周波数変換係数または量子化周波数変換係数に基づいて改竄の有無を判定する。具体的には、改竄検知コードに含まれる、改竄検知対象画像の周波数変換係数ブロックまたは量子化周波数変換係数ブロックにおける正符号の係数の位置または、負符号の係数の位置に対応した、改竄検知対象の圧縮画像の量子化周波数変換係数が0以外の値であり、かつ当該係数の符号が反転している場合、画像の改竄が行われたと判定する。換言すると、判定部51は、取得した改竄検知コードのみで改竄の有無を判定することが可能であり、判定部51自身が改竄検知コードを生成する必要がない。なお、判定部51は、改竄有りと判定した場合は、改竄された係数の位置情報をブロック結合部44に出力する。   The determination unit 51 determines the presence / absence of falsification based on the frequency conversion coefficient or the quantized frequency conversion coefficient of the falsification detection target image corresponding to the position information included in the acquired falsification detection code. Specifically, the falsification detection target corresponding to the position of the positive sign coefficient or the negative sign coefficient in the falsification detection target image frequency transform coefficient block or quantized frequency transform coefficient block included in the falsification detection code If the quantized frequency conversion coefficient of the compressed image is a value other than 0 and the sign of the coefficient is inverted, it is determined that the image has been tampered with. In other words, the determination unit 51 can determine the presence or absence of falsification using only the acquired falsification detection code, and the determination unit 51 itself does not need to generate a falsification detection code. If the determination unit 51 determines that there is falsification, the determination unit 51 outputs the position information of the falsified coefficient to the block combination unit 44.

判定部51の判定処理について、図8(a)、(b)を参照して具体例を説明する。判定部51は、図8(b)の改竄検知コードに含まれる位置情報の一例となる量子化周波数変換係数ブロックの座標値から任意の第1の座標情報を取得する。図8(b)を例とすると、例えば任意の第1の座標情報は(1、2)とする。次に判定部51は、任意の第1の座標情報となる(1、2)に基づいて、図8(a)の改竄検知対象画像の量子化周波数変換係数ブロックの座標値(1、2)の係数の符号を参照する。ここで、図8(b)において任意の第1の座標情報(1、2)に対応する改竄検知コードの係数は1であり、当該係数は、正の符号に相当する。図8(a)の改竄検知対象画像の量子化周波数変換係数ブロックの座標値(1、2)の係数は正の符号である為、判定部51は改竄なしと判定する。続いて、判定部51は、任意の第2の位置座標を取得し、任意の第1の位置座標と同様に改竄の有無の判定を行う。ここで、任意の第1ないし第nの位置座標は、図8(b)のスキャン順のシリアルNoに倣って決定しても良いし、特定の位置座標を選定しても良い。例えば、図8(a)に示される通り、高域周波数領域においては、係数が0になる傾向にある為、当該領域を改竄の有無の判定から除いても良い。また、量子化周波数変換係数ブロックを例示として記載しているが、周波数変換ブロックを用いた場合でも同様の処理となる為、詳細な説明は省略する。   A specific example of the determination process of the determination unit 51 will be described with reference to FIGS. The determination unit 51 acquires arbitrary first coordinate information from the coordinate value of the quantization frequency transform coefficient block, which is an example of the position information included in the falsification detection code in FIG. Taking FIG. 8B as an example, for example, arbitrary first coordinate information is (1, 2). Next, the determination unit 51 uses the coordinate values (1, 2) of the quantized frequency transform coefficient block of the falsification detection target image in FIG. Refer to the sign of the coefficient. Here, in FIG. 8B, the coefficient of the falsification detection code corresponding to the arbitrary first coordinate information (1, 2) is 1, and the coefficient corresponds to a positive sign. Since the coefficient of the coordinate value (1, 2) of the quantization frequency conversion coefficient block of the tampering detection target image in FIG. 8A is a positive sign, the determination unit 51 determines that there is no tampering. Subsequently, the determination unit 51 acquires arbitrary second position coordinates and determines whether or not tampering has occurred in the same manner as the arbitrary first position coordinates. Here, the arbitrary first to n-th position coordinates may be determined following the serial number in the scan order of FIG. 8B, or specific position coordinates may be selected. For example, as shown in FIG. 8A, in the high frequency range, the coefficient tends to be 0, so the region may be excluded from the determination of whether or not tampering has occurred. Further, although the quantized frequency transform coefficient block is described as an example, detailed description is omitted because the same processing is performed even when the frequency transform block is used.

(改竄検知処理の変形例)
次に、実施例3における改竄検知装置として機能する画像処理装置30の動作について説明する。図17は、実施例3における改竄検知処理の一例を示すフローチャートである。図17に示す処理は、実施例1において生成された電子署名、公開鍵と改竄検知対象の圧縮画像を入力して改竄を検知する処理である。
(Modification of falsification detection processing)
Next, the operation of the image processing apparatus 30 functioning as a falsification detection apparatus in the third embodiment will be described. FIG. 17 is a flowchart illustrating an example of falsification detection processing according to the third embodiment. The process illustrated in FIG. 17 is a process for detecting falsification by inputting the digital signature, the public key, and the compressed image to be falsified to be detected in the first embodiment.

ステップS1601〜S1605ならびにS1607〜S1610の処理は、図14、図15に示す、ステップS1501〜S1504、S1508ならびにS1510〜1513の処理と同様である為、説明を省略する。   The processing in steps S1601 to S1605 and S1607 to S1610 is the same as the processing in steps S1501 to S1504, S1508, and S1510 to 1513 shown in FIGS.

ステップS1606で、判定部51は、位置情報に対応する、変換した周波数変換係数または復号した量子化周波数変換係数に基づいて改竄の有無を判定する。具体的には、改竄検知コードに含まれる、改竄検知対象画像の周波数変換係数ブロックまたは量子化周波数変換係数ブロックにおける正符号の係数の位置または、負符号の係数の位置に対応した、改竄検知対象の圧縮画像の量子化周波数変換係数が0以外の値であり、かつ当該係数の符号が反転している場合、画像の改竄有りと判定する。また、判定部51は、改竄有りと判定した場合は、改竄された係数の位置情報をブロック結合部44に出力する。   In step S1606, the determination unit 51 determines the presence / absence of falsification based on the transformed frequency transform coefficient or the decoded quantized frequency transform coefficient corresponding to the position information. Specifically, the falsification detection target corresponding to the position of the positive sign coefficient or the negative sign coefficient in the falsification detection target image frequency transform coefficient block or quantized frequency transform coefficient block included in the falsification detection code When the quantization frequency conversion coefficient of the compressed image is a value other than 0 and the sign of the coefficient is inverted, it is determined that the image has been tampered with. If the determination unit 51 determines that there is falsification, the determination unit 51 outputs the position information of the falsified coefficient to the block combination unit 44.

以上、実施例3によれば、画像の改竄が行われず、再圧縮だけされた画像に対して、改竄と誤検知しないことが可能となる。また、画像を書き換える等の改竄があった場合は、その位置をブロック単位で特定することが可能となる。更に、改竄検知コードを作成することが不要であり、改竄検知の処理速度を向上させることが可能になる。   As described above, according to the third embodiment, it is possible to prevent false detection of falsification of an image that has not been falsified and has only been recompressed. In addition, when there is tampering such as rewriting an image, the position can be specified in units of blocks. Furthermore, it is not necessary to create a falsification detection code, and the processing speed of falsification detection can be improved.

(実施例4)
(改竄防止機能の変形例)
次に、改竄防止機能を有する制御部11の変形例について詳細に説明する。図18は、実施例4における制御部11の一例を示す機能ブロック図である。図18に示す制御部11は、可変長復号部41、逆量子化部42、位置算出部25、生成部26、及び署名生成部27を有する。ここで、制御部11は、改竄防止対象の量子化周波数変換係数を含む圧縮画像、固有の秘密鍵を入力データとする。
Example 4
(Modification of the falsification prevention function)
Next, a modified example of the control unit 11 having a falsification preventing function will be described in detail. FIG. 18 is a functional block diagram illustrating an example of the control unit 11 according to the fourth embodiment. The control unit 11 illustrated in FIG. 18 includes a variable length decoding unit 41, an inverse quantization unit 42, a position calculation unit 25, a generation unit 26, and a signature generation unit 27. Here, the control unit 11 uses, as input data, a compressed image including a quantized frequency conversion coefficient to be tampered with and a unique secret key.

なお、可変長復号部41、逆量子化部42、位置算出部25、生成部26、署名生成部27はそれぞれ、図2ならびに図13に示す機能と同様である為、詳細な説明を省略する。   The variable length decoding unit 41, the inverse quantization unit 42, the position calculation unit 25, the generation unit 26, and the signature generation unit 27 are the same as the functions shown in FIGS. .

可変長復号部41は、圧縮画像を取得し、ハフマン符号等により符号化された量子化周波数変換係数を復号して、逆量子化部42と、位置算出部45へ出力する。   The variable length decoding unit 41 acquires the compressed image, decodes the quantized frequency transform coefficient encoded by Huffman code or the like, and outputs the decoded coefficient to the inverse quantization unit 42 and the position calculation unit 45.

逆量子化部42は、復号された量子化周波数変換係数を、量子化テーブルを用いて周波数変換係数に変換して、位置算出部45へ出力する。なお、改竄検知コードを周波数変換係数に基づいて生成しない場合は、逆量子化部42は必須の構成ではない。   The inverse quantization unit 42 converts the decoded quantized frequency transform coefficient into a frequency transform coefficient using the quantization table, and outputs the frequency transform coefficient to the position calculation unit 45. In addition, when the falsification detection code is not generated based on the frequency conversion coefficient, the inverse quantization unit 42 is not an essential configuration.

位置算出部25は、周波数変換係数ブロックまたは量子化周波数変換係数ブロックを例えばラスタ順にスキャンし、位置情報を、生成部26に出力する。   The position calculation unit 25 scans the frequency transform coefficient block or the quantized frequency transform coefficient block in raster order, for example, and outputs the position information to the generation unit 26.

生成部26は、必要に応じて位置算出部25から位置情報を取得し、例えば、周波数変換係数または量子化周波数変換係数が正符号の係数である場合を1、周波数変換係数または量子化周波数変換係数が負符号の係数である場合を2、更に、周波数変換係数または量子化周波数変換係数の値が0である場合を0としたものを、改竄検知コードとして生成して、署名生成部27へ出力する。このとき、生成部26は、位置情報や、周波数変換係数または量子化周波数変換係数のいずれかで改竄検知コードを生成したかという識別子を改竄検知コードに付加することも可能である。改竄検知コードに付加する位置情報は、例えば、スキャン順のシリアルNoや周波数変換係数ブロックまたは量子化周波数変換係数ブロックの座標値(v、u)であれば良い。   The generation unit 26 acquires position information from the position calculation unit 25 as necessary. For example, the frequency conversion coefficient or the quantization frequency conversion is 1 when the frequency conversion coefficient or the quantization frequency conversion coefficient is a positive sign coefficient. When the coefficient is a negative sign coefficient, 2 is generated, and when the value of the frequency conversion coefficient or the quantized frequency conversion coefficient is 0, the code is generated as a falsification detection code and sent to the signature generation unit 27. Output. At this time, the generation unit 26 can also add an identifier indicating whether the falsification detection code has been generated using position information or any one of the frequency conversion coefficient and the quantized frequency conversion coefficient to the falsification detection code. The position information added to the falsification detection code may be, for example, the serial number in the scan order, the coordinate value (v, u) of the frequency conversion coefficient block, or the quantized frequency conversion coefficient block.

署名生成部27は、生成部26で生成された改竄検知コードを、画像処理装置10が予め有する固有の秘密鍵を用いて、暗号化して電子署名データとして出力する。なお、固有の秘密鍵は、例えば、主記憶部12等に記憶される。なお、署名生成部27は、必須の構成ではなく、必要に応じて備えられれば良い。署名生成部27を構成要件としない場合は、生成部26が改竄検知コードを出力する。   The signature generation unit 27 encrypts the falsification detection code generated by the generation unit 26 using a unique private key that the image processing apparatus 10 has in advance, and outputs it as electronic signature data. The unique secret key is stored, for example, in the main storage unit 12 or the like. Note that the signature generation unit 27 is not an essential component, and may be provided as necessary. When the signature generation unit 27 is not a constituent requirement, the generation unit 26 outputs a falsification detection code.

以上、実施例4によれば、圧縮画像に対しても改竄検知コードを生成することが可能となり、誤検知を防止することが可能となる。   As described above, according to the fourth embodiment, it is possible to generate a falsification detection code for a compressed image, and it is possible to prevent erroneous detection.

(実施例5)
(改竄防止機能と改竄検知機能を有する第1の画像処理システム)
図19は、一つの実施形態による改竄防止機能と改竄検知機能を有する第1の画像処理システム1900の構成図である。画像処理システム1900は、第1制御部110と第2制御部310を有する。第1制御部110は、ブロック分割部21、周波数変換部22、量子化部23、可変長符号化部24、第1位置算出部250、生成部26、及び署名生成部27を有する。ここで、第1制御部110が有するブロック分割部21、周波数変換部22、量子化部23、可変長符号化部24、生成部26、署名生成部27の各機能は、図2に示す各機能と同様である為、詳細な説明を省略する。また、図19に示す第1位置算出部250も図2に示す位置算出部25の機能と同様である為、詳細な説明を省略する。
(Example 5)
(First image processing system having a falsification prevention function and a falsification detection function)
FIG. 19 is a configuration diagram of a first image processing system 1900 having a falsification preventing function and a falsification detection function according to one embodiment. The image processing system 1900 includes a first control unit 110 and a second control unit 310. The first control unit 110 includes a block division unit 21, a frequency conversion unit 22, a quantization unit 23, a variable length coding unit 24, a first position calculation unit 250, a generation unit 26, and a signature generation unit 27. Here, each function of the block division unit 21, the frequency conversion unit 22, the quantization unit 23, the variable length coding unit 24, the generation unit 26, and the signature generation unit 27 included in the first control unit 110 is illustrated in FIG. Since it is the same as the function, detailed description is omitted. Further, the first position calculation unit 250 shown in FIG. 19 has the same function as that of the position calculation unit 25 shown in FIG.

第2制御部310は、可変長復号部41、逆量子化部42、逆周波数変換部43、ブロック結合部44、第2位置算出部450、生成部46、署名認証部47、及び比較部48を有する。ここで、第2制御部310が有する可変長復号部41、逆量子化部42、逆周波数変換部43、ブロック結合部44、生成部46、署名認証部47、比較部48の各機能は、図13に示す各機能と同様である為、詳細な説明を省略する。また、図19に示す第2位置算出部450も図13に示す位置算出部45の機能と同様である為、詳細な説明を省略する。なお、画像処理システム1900における、第1制御部110と第2制御部310は、図1に示す画像処理装置10が有する制御部11または、図12に示す画像処理装置30が有する制御部31によって実現させることが出来る。   The second control unit 310 includes a variable length decoding unit 41, an inverse quantization unit 42, an inverse frequency conversion unit 43, a block combination unit 44, a second position calculation unit 450, a generation unit 46, a signature authentication unit 47, and a comparison unit 48. Have Here, each function of the variable length decoding unit 41, the inverse quantization unit 42, the inverse frequency conversion unit 43, the block combination unit 44, the generation unit 46, the signature authentication unit 47, and the comparison unit 48 included in the second control unit 310 is as follows. Since it is the same as each function shown in FIG. 13, detailed description is abbreviate | omitted. Also, the second position calculation unit 450 shown in FIG. 19 has the same function as the position calculation unit 45 shown in FIG. In the image processing system 1900, the first control unit 110 and the second control unit 310 are controlled by the control unit 11 included in the image processing apparatus 10 illustrated in FIG. 1 or the control unit 31 included in the image processing apparatus 30 illustrated in FIG. It can be realized.

図19に示す、画像処理システム1900の第1制御部110は、改竄から保護したい原画像、及び固有の秘密鍵等を、画像送信側(改竄防止側)となる第1クライアント100から受信する。第1制御部110は、図2に示す制御部11と同様の処理で改竄検知コードを生成した後、圧縮画像、公開鍵、電子署名等を、画像受信側(改竄検知側)となる第2クライアント200へ送信する。   The first control unit 110 of the image processing system 1900 illustrated in FIG. 19 receives an original image to be protected from falsification, a unique secret key, and the like from the first client 100 on the image transmission side (falsification preventing side). The first control unit 110 generates a falsification detection code by the same process as the control unit 11 illustrated in FIG. 2, and then sends a compressed image, a public key, an electronic signature, and the like to the image reception side (falsification detection side). Send to client 200.

第2クライアント200は、圧縮画像、公開鍵、電子署名等を画像処理システム1900の第1制御部110から受信する。第2クライアント200は、改竄の有無を検証する為に、第1制御部110から受信した圧縮画像、公開鍵、電子署名等を画像処理システム1900に送信する。   The second client 200 receives a compressed image, a public key, an electronic signature, and the like from the first control unit 110 of the image processing system 1900. The second client 200 transmits the compressed image, public key, electronic signature, and the like received from the first control unit 110 to the image processing system 1900 in order to verify the presence / absence of falsification.

画像処理システム1900の第2制御部310は、図13に示す制御部31と同様の処理で改竄の有無を検知し、電子署名の確認結果、改竄の有無の検証結果や、必要に応じて原画像と当該原画像に重畳して示した画像を、第2クライアント200に送信する。   The second control unit 310 of the image processing system 1900 detects the presence / absence of falsification by the same processing as that of the control unit 31 shown in FIG. 13, and confirms the electronic signature confirmation result, the falsification verification result, and the original if necessary. The image and the image superimposed on the original image are transmitted to the second client 200.

なお、第1制御部110は、圧縮画像、公開鍵、電子署名等を必ずしも第2クライアントに送信する必要はない。例えば、第1制御部110は、圧縮画像、公開鍵、電子署名等を図1に示す補助記憶部13に記憶させ、一意のIDのみを第2クライアントに送信する。IDを受信した第2クライアントは、当該IDを画像処理システム1900システムに送信する。画像処理システム1900の第2制御部310は、第2クライアントから送信されるIDに基づき、補助記憶部13にアクセスし、圧縮画像、公開鍵、電子署名等を署名認証部47や可変長復号部41に格納させて、改竄の有無を検証し、改竄検証結果や、原画像、更に必要に応じて当該原画像に重畳して示した画像を第2クライアント200に送信しても良い。   Note that the first control unit 110 does not necessarily transmit the compressed image, the public key, the electronic signature, and the like to the second client. For example, the first control unit 110 stores a compressed image, a public key, an electronic signature, and the like in the auxiliary storage unit 13 illustrated in FIG. 1, and transmits only a unique ID to the second client. The second client that has received the ID transmits the ID to the image processing system 1900 system. The second control unit 310 of the image processing system 1900 accesses the auxiliary storage unit 13 based on the ID transmitted from the second client, and sends the compressed image, public key, electronic signature, etc. to the signature authentication unit 47 and the variable length decryption unit. 41, the presence / absence of falsification may be verified, and the falsification verification result, the original image, and an image superimposed on the original image as necessary may be transmitted to the second client 200.

実施例5によれば、画像の改竄が行われず、再圧縮だけされた画像に対して、改竄と誤検知しないことが可能となる。   According to the fifth embodiment, it is possible to prevent false detection of falsification on an image that has not been falsified and has only been recompressed.

(実施例6)
(改竄防止機能と改竄検知機能を有する第2の画像処理システム)
図20は、一つの実施形態による改竄防止機能と改竄検知機能を有する第2の画像処理システム2000の構成図である。
画像処理システム2000は、第1制御部110と第2制御部311を有する。第1制御部110は、ブロック分割部21、周波数変換部22、量子化部23、可変長符号化部24、第1位置算出部250、生成部26、及び署名生成部27を有する。ここで、第1制御部110が有するブロック分割部21、周波数変換部22、量子化部23、可変長符号化部24、第1位置算出部250、生成部26、署名生成部27の各機能は、図19の制御部110に示す各機能と同様である為、詳細な説明を省略する。
(Example 6)
(Second image processing system having a falsification prevention function and a falsification detection function)
FIG. 20 is a configuration diagram of a second image processing system 2000 having a falsification preventing function and a falsification detection function according to one embodiment.
The image processing system 2000 includes a first control unit 110 and a second control unit 311. The first control unit 110 includes a block division unit 21, a frequency conversion unit 22, a quantization unit 23, a variable length coding unit 24, a first position calculation unit 250, a generation unit 26, and a signature generation unit 27. Here, each function of the block dividing unit 21, the frequency converting unit 22, the quantizing unit 23, the variable length coding unit 24, the first position calculating unit 250, the generating unit 26, and the signature generating unit 27 that the first control unit 110 has. These are the same as the functions shown in the control unit 110 of FIG.

図20の第2制御部311は、可変長復号部41、逆量子化部42、逆周波数変換部43、ブロック結合部44、署名認証部47、及び判定部51を有する。ここで、第2制御部311が有する可変長復号部41、逆量子化部42、逆周波数変換部43、ブロック結合部44、署名認証部47、判定部51の各機能は、図16に示す各機能と同様である為、詳細な説明を省略する。なお、画像処理システム2000における、第1制御部110と第2制御部311は、図1に示す画像処理装置10が有する制御部11または、図12に示す画像処理装置30が有する制御部31によって実現させることが出来る。   The second control unit 311 in FIG. 20 includes a variable length decoding unit 41, an inverse quantization unit 42, an inverse frequency conversion unit 43, a block combination unit 44, a signature authentication unit 47, and a determination unit 51. Here, each function of the variable length decoding unit 41, the inverse quantization unit 42, the inverse frequency conversion unit 43, the block combination unit 44, the signature authentication unit 47, and the determination unit 51 included in the second control unit 311 is illustrated in FIG. Since it is the same as each function, detailed description is abbreviate | omitted. In the image processing system 2000, the first control unit 110 and the second control unit 311 are controlled by the control unit 11 included in the image processing apparatus 10 illustrated in FIG. 1 or the control unit 31 included in the image processing apparatus 30 illustrated in FIG. It can be realized.

図20に示す、画像処理システム2000の第1制御部110は、改竄から保護したい原画像、及び固有の秘密鍵等を、画像送信側(改竄防止側)となる第1クライアント100から受信する。第1制御部110は、図2に示す制御部11と同様の処理で改竄検知コードを生成した後、圧縮画像、公開鍵、電子署名等を、画像受信側(改竄検知側)となる第2クライアント200へ送信する。   The first control unit 110 of the image processing system 2000 illustrated in FIG. 20 receives an original image that is to be protected from falsification, a unique secret key, and the like from the first client 100 that is the image transmission side (falsification preventing side). The first control unit 110 generates a falsification detection code by the same process as the control unit 11 illustrated in FIG. 2, and then sends a compressed image, a public key, an electronic signature, and the like to the image reception side (falsification detection side). Send to client 200.

第2クライアント200は、圧縮画像、公開鍵、電子署名等を画像処理システム2000の第1制御部110から受信する。第2クライアント200は、改竄の有無を検証する為に、第1制御部110から受信した圧縮画像、公開鍵、電子署名等を画像処理システム2000に送信する。   The second client 200 receives a compressed image, a public key, an electronic signature, and the like from the first control unit 110 of the image processing system 2000. The second client 200 transmits the compressed image, public key, electronic signature, and the like received from the first control unit 110 to the image processing system 2000 in order to verify whether or not tampering has occurred.

画像処理システム2000の第2制御部311は、図16に示す制御部31と同様の処理で改竄の有無を検知し、電子署名の確認結果、改竄の有無の検証結果や、必要に応じて原画像と当該原画像に重畳して示した画像を、第2クライアント200に送信する。   The second control unit 311 of the image processing system 2000 detects the presence / absence of falsification by the same process as the control unit 31 shown in FIG. 16, and confirms the result of electronic signature confirmation, the result of verification of falsification, The image and the image superimposed on the original image are transmitted to the second client 200.

なお、第1制御部110は、圧縮画像、公開鍵、電子署名等を必ずしも第2クライアントに送信する必要はない。例えば、第1制御部110は、圧縮画像、公開鍵、電子署名等を図1に示す補助記憶部13に記憶させ、一意のIDのみを第2クライアントに送信する。IDを受信した第2クライアントは、当該IDを画像処理システム2000システムに送信する。画像処理システム2000の第2制御部311は、第2クライアントから送信されるIDに基づき、補助記憶部13にアクセスし、圧縮画像、公開鍵、電子署名等を署名認証部47や可変長復号部41に格納させて、改竄の有無を検証し、改竄検証結果や、原画像、更に必要に応じて当該原画像に重畳して示した画像を第2クライアント200に送信しても良い。   Note that the first control unit 110 does not necessarily transmit the compressed image, the public key, the electronic signature, and the like to the second client. For example, the first control unit 110 stores a compressed image, a public key, an electronic signature, and the like in the auxiliary storage unit 13 illustrated in FIG. 1, and transmits only a unique ID to the second client. The second client that has received the ID transmits the ID to the image processing system 2000 system. The second control unit 311 of the image processing system 2000 accesses the auxiliary storage unit 13 based on the ID transmitted from the second client, and sends the compressed image, public key, electronic signature, and the like to the signature authentication unit 47 and the variable length decryption unit. 41, the presence / absence of falsification may be verified, and the falsification verification result, the original image, and an image superimposed on the original image as necessary may be transmitted to the second client 200.

実施例6によれば、画像の改竄が行われず、再圧縮だけされた画像に対して、改竄と誤検知しないことが可能となる。   According to the sixth embodiment, it is possible to prevent false detection of falsification on an image that has not been falsified and has only been recompressed.

(改竄防止機能と改竄検知機能を有するその他の画像処理システム)
図19と図20に開示した画像処理システム1900、画像処理システム2000ならびに第1クライアント100、第2クライアントの各装置の各構成要素は、各種の負荷や使用状況などに応じて、任意の単位で機能的または物理的に分散・統合して構成することができる。例えば、図19の第2クライアント200に制御部310の各機能を統合することにより、第2クライアント200単独で改竄を検知することが可能となる。また、図20の第2クライアント200に制御部311の各機能を統合することでも、第2クライアント200単独で改竄を検知することが可能となる。
(Other image processing systems with falsification prevention and falsification detection functions)
Each component of each of the image processing system 1900, the image processing system 2000, the first client 100, and the second client disclosed in FIGS. 19 and 20 is in arbitrary units according to various loads and usage conditions. It can be configured functionally or physically distributed and integrated. For example, by integrating each function of the control unit 310 into the second client 200 of FIG. 19, it is possible to detect falsification by the second client 200 alone. Further, by integrating each function of the control unit 311 into the second client 200 of FIG. 20, it is possible to detect falsification by the second client 200 alone.

なお、前述した各実施例で説明した改竄防止処理及び改竄検知処理を実現するためのプログラムを記録媒体に記録することで、各実施例での改竄防止処理及び改竄検知処理をコンピュータに実施させることができる。例えば、このプログラムを記録媒体に記録し、このプログラムが記録された記録媒体をコンピュータや携帯装置に読み取らせて、前述した改竄防止処理及び改竄検知処理を実現させることも可能である。   In addition, recording the program for realizing the falsification prevention process and the falsification detection process described in each embodiment described above on a recording medium causes the computer to perform the falsification prevention process and the falsification detection process in each embodiment. Can do. For example, it is possible to record the program on a recording medium and cause the computer or portable device to read the recording medium on which the program is recorded, thereby realizing the above-described falsification prevention processing and falsification detection processing.

記録媒体は、CD−ROM、フレキシブルディスク、光磁気ディスク等の様に情報を光学的,電気的或いは磁気的に記録する記録媒体、ROM、フラッシュメモリ等の様に情報を電気的に記録する半導体メモリ等、様々なタイプの記録媒体を用いることができる。   The recording medium is a recording medium that records information optically, electrically, or magnetically, such as a CD-ROM, a flexible disk, or a magneto-optical disk, or a semiconductor that electrically records information, such as a ROM or flash memory. Various types of recording media such as a memory can be used.

画像処理装置で実行されるプログラムは、各実施例で説明した各部を含むモジュール構成となっている。実際のハードウェアとしては、制御部が補助記憶部からプログラムを読み出して実行することにより上記各部のうち1又は複数の各部が主記憶部上にロードされ、1又は複数の各部が主記憶部上に生成されるようになっている。   The program executed by the image processing apparatus has a module configuration including each unit described in each embodiment. As actual hardware, when the control unit reads out and executes a program from the auxiliary storage unit, one or more of the above-described units are loaded on the main storage unit, and one or more of the units are on the main storage unit. To be generated.

また、改竄防止対象又は改竄検知対象の画像は、動画でもよく、フレーム毎に、上記の処理を行ってもよいし、所定間隔のフレーム毎に上記処理を行ってもよい。   Further, the image to be tampered with or tampered with may be a moving image, and the above processing may be performed for each frame, or the above processing may be performed for every frame at a predetermined interval.

また、上述の実施例において、図示した各装置の各構成要素は、必ずしも物理的に図示の如く構成されていることを要しない。すなわち、各装置の分散・統合の具体的形態は図示のものに限られず、その全部または一部を、各種の負荷や使用状況などに応じて、任意の単位で機能的または物理的に分散・統合して構成することができる。   In the above-described embodiments, each component of each illustrated device does not necessarily need to be physically configured as illustrated. In other words, the specific form of distribution / integration of each device is not limited to that shown in the figure, and all or a part thereof may be functionally or physically distributed or arbitrarily distributed in arbitrary units according to various loads or usage conditions. Can be integrated and configured.

ここに挙げられた全ての例及び特定の用語は、当業者が、本発明及び当該技術の促進に対する本発明者により寄与された概念を理解することを助ける、教示的な目的において意図されたものであり、本発明の優位性及び劣等性を示すことに関する、本明細書の如何なる例の構成、そのような特定の挙げられた例及び条件に限定しないように解釈されるべきものである。本発明の実施形態は詳細に説明されているが、本発明の範囲から外れることなく、様々な変更、置換及び修正をこれに加えることが可能であることを理解されたい。   All examples and specific terms listed herein are intended for instructional purposes to help those skilled in the art to understand the concepts contributed by the inventor to the invention and the promotion of the art. And should not be construed as limited to the construction of any example herein, such specific examples and conditions, with respect to demonstrating the superiority and inferiority of the present invention. While embodiments of the present invention have been described in detail, it should be understood that various changes, substitutions and modifications can be made thereto without departing from the scope of the invention.

以上説明した実施形態及びその変形例に関し、更に以下の付記を開示する。
(付記1)
画像を周波数変換係数に変換する周波数変換部と、
前記周波数変換係数を第1の量子化テーブルに基づいて量子化して量子化周波数変換係数を算出する量子化部と、
前記周波数変換係数または前記量子化周波数変換係数の正負の符号に基づいて改竄を検知する改竄検知コードを生成する生成部と、
を備えることを特徴とする画像処理装置。
(付記2)
前記生成部は、前記周波数変換係数または前記量子化周波数変換係数のうち、正符号の係数と、負符号の係数と、値が0の係数を区別して、前記改竄検知コードを生成することを特徴とする付記1記載の画像処理装置。
(付記3)
前記周波数変換係数が所定の周波数成分毎に格納される周波数変換係数ブロックまたは、前記量子化周波数変換係数が所定の周波数成分毎に格納される量子化周波数変換係数ブロックに対する前記正符号の係数の位置、前記負符号の係数の位置、または前記値が0の係数の位置を示す位置情報を算出する位置算出部を更に備え、
前記生成部は、前記位置情報に基づいて前記改竄検知コードを生成することを特徴とする付記1または付記2に記載の画像処理装置。
(付記4)
前記改竄検知コードを秘密鍵で暗号化して電子署名を生成する署名生成部を更に備えることを特徴とする付記1ないし付記3のいずれか一つに記載の画像処理装置。
(付記5)
前記画像を所定のブロック数に分割するブロック分割部を更に有し、
前記周波数変換部は、前記所定のブロック数に分割されたそれぞれの画像を前記周波数変換係数に変換することを特徴とする付記1ないし付記4のいずれか一つに記載の画像処理装置。
(付記6)
画像が周波数変換係数に変換され、前記周波数変換係数が第1の量子化テーブルに基づいて量子化された量子化周波数変換係数を取得し、前記周波数変換係数または前記量子化周波数変換係数の正負の符号に基づいて改竄を検知する第1の改竄検知コードを生成する生成部と、
前記正負の符号に基づいて生成された第2の改竄検知コードを取得し、前記第1の改竄検知コードと前記第2の改竄検知コードを比較する比較部と、
を備えることを特徴とする画像処理装置。
(付記7)
前記第2の改竄検知コードは、前記周波数変換係数または前記量子化周波数変換係数のうち、正符号の係数と、負符号の係数と、値が0の係数を区別して生成されており、
前記生成部は、前記周波数変換係数または前記量子化周波数変換係数のうち、前記正符号の係数と、前記負符号の係数と、前記値が0の係数を区別して、前記第1の改竄検知コードを生成することを特徴とする付記6記載の画像処理装置。
(付記8)
前記第2の改竄検知コードは、前記量子化周波数変換係数が所定の周波数成分毎に格納される量子化周波数変換係数ブロック、または前記周波数変換係数が所定の周波数成分毎に格納される周波数変換係数ブロックに対する前記正符号の係数の位置、前記負符号の係数の位置、前記値が0の係数の位置を示す位置情報を算出する位置算出部を更に備え、
前記生成部は、前記位置情報に基づいて前記第1の改竄検知コードを生成する、
ことを特徴とする付記6または付記7に記載の画像処理装置。
(付記9)
前記量子化周波数変換係数を前記周波数変換係数に変換する逆量子化部と、
前記周波数変換係数を所定のブロックに分割された画像に変換する逆周波数変換部と、
前記所定のブロックに分割された画像を結合して原画像を出力するブロック結合部と、
を更に備え、
前記比較部は、前記第1の改竄検知コードと前記第2の改竄検知コードの比較結果に基づき、改竄を検知した場合は、改竄された前記ブロックの位置情報を前記ブロック結合部へ出力し、
前記ブロック結合部は、前記位置情報に基づいて前記原画像に対して、改竄された位置を重畳して出力する、
ことを特徴とする付記8記載の画像処理装置。
(付記10)
前記改竄検知コードを秘密鍵で暗号化して生成された電子署名と、前記秘密鍵と対になる公開鍵を取得し、前記公開鍵で前記電子署名を復号する署名認証部を更に備えることを特徴とする付記7ないし付記9のいずれか一つに記載の画像処理装置。
(付記11)
画像が周波数変換係数に変換され、前記周波数変換係数が第1の量子化テーブルに基づいて量子化された量子化周波数変換係数と、
前記量子化周波数変換係数が所定の周波数成分毎に格納される量子化周波数変換係数ブロック、または前記周波数変換係数が所定の周波数成分毎に格納される周波数変換係数ブロックに対する前記正符号の係数、前記負符号の係数、前記値が0の係数の位置を示す位置情報が含まれる改竄検知コードと、を取得し、
前記位置情報と前記周波数変換係数ブロックまたは、前記量子化周波数変換係数ブロックに格納される前記周波数変換係数または前記量子化周波数変換係数の正負の符号に基づいて改竄の有無を判定する判定部、
を備えることを特徴とする画像処理装置。
(付記12)
画像を周波数変換係数に変換し、
前記周波数変換係数を第1の量子化テーブルに基づいて量子化して量子化周波数変換係数を算出し、
前記周波数変換係数または前記量子化周波数変換係数の正負の符号に基づいて改竄を検知する改竄検知コードを生成する、
処理をコンピュータが実行する画像処理方法。
(付記13)
前記生成することは、前記周波数変換係数または前記量子化周波数変換係数のうち、正符号の係数と、負符号の係数と、値が0の係数を区別して、前記改竄検知コードを生成することを特徴とする付記12記載の画像処理方法。
(付記14)
前記周波数変換係数が所定の周波数成分毎に格納される周波数変換係数ブロックまたは、前記量子化周波数変換係数が所定の周波数成分毎に格納される量子化周波数変換係数ブロックに対する前記正符号の係数の位置、前記負符号の係数の位置、または前記値が0の係数の位置を示す位置情報を算出し、
前記生成することは、前記位置情報に基づいて前記改竄検知コードを生成することを特徴とする付記13に記載の画像処理方法。
(付記15)
画像が周波数変換係数に変換され、前記周波数変換係数が第1の量子化テーブルに基づいて量子化された量子化周波数変換係数を取得し、
前記周波数変換係数または前記量子化周波数変換係数の正負の符号に基づいて改竄を検知する第1の改竄検知コードを生成し、
前記正負の符号に基づいて生成された第2の改竄検知コードを取得し、前記第1の改竄検知コードと前記第2の改竄検知コードを比較する、
処理をコンピュータが実行する画像処理方法。
(付記16)
前記第2の改竄検知コードは、前記周波数変換係数または前記量子化周波数変換係数のうち、正符号の係数と、負符号の係数と、値が0の係数を区別して生成されており、
前記生成することは、前記周波数変換係数または前記量子化周波数変換係数のうち、前記正符号の係数と、前記負符号の係数と、前記値が0の係数を区別して、前記第1の改竄検知コードを生成することを特徴とする付記15記載の画像処理方法。
(付記17)
前記第2の改竄検知コードは、前記量子化周波数変換係数が所定の周波数成分毎に格納される量子化周波数変換係数ブロック、または前記周波数変換係数が所定の周波数成分毎に格納される周波数変換係数ブロックに対する前記正符号の係数の位置、前記負符号の係数の位置、または前記値が0の係数の位置を示す位置情報を算出し、
前記生成することは、前記位置情報に基づいて前記第1の改竄検知コードを生成することを特徴とする付記15または付記16記載の画像処理方法。
(付記18)
画像を周波数変換係数に変換し、
前記周波数変換係数を第1の量子化テーブルに基づいて量子化して量子化周波数変換係数を算出し、
前記周波数変換係数または前記量子化周波数変換係数の正負の符号に基づいて改竄を検知する改竄検知コードを生成する、
処理をコンピュータに実行させることを特徴とする画像処理プログラム。
(付記19)
画像が周波数変換係数に変換され、前記周波数変換係数が第1の量子化テーブルに基づいて量子化された量子化周波数変換係数を取得し、
前記周波数変換係数または前記量子化周波数変換係数の正負の符号に基づいて改竄を検知する第1の改竄検知コードを生成し、
前記正負の符号に基づいて生成された第2の改竄検知コードを取得し、前記第1の改竄検知コードと前記第2の改竄検知コードを比較する、
処理をコンピュータに実行させることを特徴とする画像処理プログラム。
(付記20)
画像を周波数変換係数に変換する周波数変換部と、
前記周波数変換係数を第1の量子化テーブルに基づいて量子化して量子化周波数変換係数を算出する量子化部と、
前記周波数変換係数または前記量子化周波数変換係数の正負の符号に基づいて改竄を検知する第2の改竄検知コードを生成する第2生成部と、
画像が周波数変換係数に変換され、前記周波数変換係数が第1の量子化テーブルに基づいて量子化された量子化周波数変換係数を取得し、前記周波数変換係数または前記量子化周波数変換係数の正負の符号に基づいて改竄を検知する第1の改竄検知コードを生成する第1生成部と、
前記正負の符号に基づいて生成された第2の改竄検知コードを取得し、前記第1の改竄検知コードと前記第2の改竄検知コードを比較する比較部と、
を備えることを特徴とする画像処理システム。
The following supplementary notes are further disclosed regarding the embodiment described above and its modifications.
(Appendix 1)
A frequency conversion unit for converting an image into a frequency conversion coefficient;
A quantization unit that quantizes the frequency transform coefficient based on a first quantization table to calculate a quantized frequency transform coefficient;
A generation unit that generates a falsification detection code for detecting falsification based on a positive or negative sign of the frequency conversion coefficient or the quantized frequency conversion coefficient;
An image processing apparatus comprising:
(Appendix 2)
The generation unit generates the falsification detection code by distinguishing a positive sign coefficient, a negative sign coefficient, and a coefficient having a value of 0 from the frequency conversion coefficient or the quantized frequency conversion coefficient. The image processing apparatus according to appendix 1.
(Appendix 3)
Position of the positive sign coefficient with respect to the frequency transform coefficient block in which the frequency transform coefficient is stored for each predetermined frequency component or the quantized frequency transform coefficient block in which the quantized frequency transform coefficient is stored for each predetermined frequency component A position calculating unit that calculates position information indicating the position of the coefficient of the negative sign or the position of the coefficient of which the value is 0;
The image processing apparatus according to appendix 1 or appendix 2, wherein the generation unit generates the falsification detection code based on the position information.
(Appendix 4)
4. The image processing apparatus according to claim 1, further comprising a signature generation unit that encrypts the tampering detection code with a secret key to generate an electronic signature.
(Appendix 5)
A block dividing unit for dividing the image into a predetermined number of blocks;
5. The image processing apparatus according to claim 1, wherein the frequency conversion unit converts each image divided into the predetermined number of blocks into the frequency conversion coefficient.
(Appendix 6)
An image is converted into a frequency conversion coefficient, and the frequency conversion coefficient is quantized based on a first quantization table to obtain a quantized frequency conversion coefficient, and the frequency conversion coefficient or the positive or negative of the quantized frequency conversion coefficient A generator for generating a first falsification detection code for detecting falsification based on a code;
A comparison unit that obtains a second alteration detection code generated based on the positive and negative signs, and compares the first alteration detection code with the second alteration detection code;
An image processing apparatus comprising:
(Appendix 7)
The second tampering detection code is generated by distinguishing a positive sign coefficient, a negative sign coefficient, and a coefficient having a value of 0 from the frequency transform coefficient or the quantized frequency transform coefficient,
The generating unit distinguishes the positive sign coefficient, the negative sign coefficient, and the coefficient having the value of 0 from the frequency transform coefficient or the quantized frequency transform coefficient, and the first falsification detection code The image processing apparatus according to appendix 6, wherein:
(Appendix 8)
The second tampering detection code is a quantized frequency transform coefficient block in which the quantized frequency transform coefficient is stored for each predetermined frequency component, or a frequency transform coefficient in which the frequency transform coefficient is stored for each predetermined frequency component. A position calculating unit that calculates position information indicating the position of the coefficient of the positive sign relative to the block, the position of the coefficient of the negative sign, and the position of the coefficient whose value is 0;
The generation unit generates the first falsification detection code based on the position information.
The image processing apparatus according to appendix 6 or appendix 7, characterized in that.
(Appendix 9)
An inverse quantization unit that converts the quantized frequency transform coefficient into the frequency transform coefficient;
An inverse frequency transform unit for transforming the frequency transform coefficient into an image divided into predetermined blocks;
A block combining unit that combines the images divided into the predetermined blocks and outputs an original image;
Further comprising
If the comparison unit detects falsification based on the comparison result between the first falsification detection code and the second falsification detection code, the comparison unit outputs position information of the falsified block to the block combination unit,
The block combining unit outputs a position where the falsified position is superimposed on the original image based on the position information.
The image processing apparatus according to appendix 8, wherein
(Appendix 10)
An electronic signature generated by encrypting the falsification detection code with a private key and a public key that is paired with the private key are obtained, and further includes a signature authentication unit that decrypts the electronic signature with the public key. The image processing apparatus according to any one of Appendix 7 to Appendix 9.
(Appendix 11)
An image is converted into a frequency conversion coefficient, and the frequency conversion coefficient is quantized based on a first quantization table;
The quantized frequency transform coefficient block in which the quantized frequency transform coefficient is stored for each predetermined frequency component, or the positive sign coefficient for the frequency transform coefficient block in which the frequency transform coefficient is stored for each predetermined frequency component, A negative sign coefficient, a falsification detection code including position information indicating the position of the coefficient whose value is 0, and
A determination unit that determines the presence or absence of falsification based on the position information and the frequency transform coefficient block or the positive or negative sign of the frequency transform coefficient or the quantized frequency transform coefficient stored in the quantized frequency transform coefficient block;
An image processing apparatus comprising:
(Appendix 12)
Convert the image to frequency conversion coefficient,
Quantizing the frequency transform coefficient based on a first quantization table to calculate a quantized frequency transform coefficient;
Generating a falsification detection code for detecting falsification based on the sign of the frequency transform coefficient or the quantized frequency transform coefficient;
An image processing method in which processing is executed by a computer.
(Appendix 13)
The generating includes generating the falsification detection code by distinguishing a positive sign coefficient, a negative sign coefficient, and a coefficient having a value of 0 from the frequency conversion coefficient or the quantized frequency conversion coefficient. Item 13. The image processing method according to appendix 12.
(Appendix 14)
Position of the positive sign coefficient with respect to the frequency transform coefficient block in which the frequency transform coefficient is stored for each predetermined frequency component or the quantized frequency transform coefficient block in which the quantized frequency transform coefficient is stored for each predetermined frequency component Calculating position information indicating the position of the coefficient of the negative sign or the position of the coefficient of which the value is 0,
14. The image processing method according to appendix 13, wherein the generating includes generating the falsification detection code based on the position information.
(Appendix 15)
An image is converted into a frequency conversion coefficient, and the frequency conversion coefficient is quantized based on a first quantization table to obtain a quantized frequency conversion coefficient;
Generating a first falsification detection code for detecting falsification based on a positive or negative sign of the frequency conversion coefficient or the quantized frequency conversion coefficient;
Obtaining a second alteration detection code generated based on the positive and negative signs, and comparing the first alteration detection code with the second alteration detection code;
An image processing method in which processing is executed by a computer.
(Appendix 16)
The second tampering detection code is generated by distinguishing a positive sign coefficient, a negative sign coefficient, and a coefficient having a value of 0 from the frequency transform coefficient or the quantized frequency transform coefficient,
The generating comprises distinguishing the positive sign coefficient, the negative sign coefficient, and the coefficient having a value of 0 from the frequency transform coefficient or the quantized frequency transform coefficient, and detecting the first falsification detection. The image processing method according to appendix 15, wherein a code is generated.
(Appendix 17)
The second tampering detection code is a quantized frequency transform coefficient block in which the quantized frequency transform coefficient is stored for each predetermined frequency component, or a frequency transform coefficient in which the frequency transform coefficient is stored for each predetermined frequency component. Calculating position information indicating the position of the positive sign coefficient, the position of the negative sign coefficient, or the position of the coefficient whose value is 0 with respect to the block;
The image processing method according to appendix 15 or appendix 16, wherein the generating generates the first falsification detection code based on the position information.
(Appendix 18)
Convert the image to frequency conversion coefficient,
Quantizing the frequency transform coefficient based on a first quantization table to calculate a quantized frequency transform coefficient;
Generating a falsification detection code for detecting falsification based on the sign of the frequency transform coefficient or the quantized frequency transform coefficient;
An image processing program for causing a computer to execute processing.
(Appendix 19)
An image is converted into a frequency conversion coefficient, and the frequency conversion coefficient is quantized based on a first quantization table to obtain a quantized frequency conversion coefficient;
Generating a first falsification detection code for detecting falsification based on a positive or negative sign of the frequency conversion coefficient or the quantized frequency conversion coefficient;
Obtaining a second alteration detection code generated based on the positive and negative signs, and comparing the first alteration detection code with the second alteration detection code;
An image processing program for causing a computer to execute processing.
(Appendix 20)
A frequency conversion unit for converting an image into a frequency conversion coefficient;
A quantization unit that quantizes the frequency transform coefficient based on a first quantization table to calculate a quantized frequency transform coefficient;
A second generation unit that generates a second tampering detection code that detects tampering based on a positive or negative sign of the frequency conversion coefficient or the quantized frequency conversion coefficient;
An image is converted into a frequency conversion coefficient, and the frequency conversion coefficient is quantized based on a first quantization table to obtain a quantized frequency conversion coefficient, and the frequency conversion coefficient or the positive or negative of the quantized frequency conversion coefficient A first generation unit that generates a first falsification detection code that detects falsification based on a code;
A comparison unit that obtains a second alteration detection code generated based on the positive and negative signs, and compares the first alteration detection code with the second alteration detection code;
An image processing system comprising:

ブロック分割部21
周波数変換部22
量子化部23
可変長符号化部24
位置算出部25
生成部26
署名生成部27
可変長復号部41
逆量子化部42
逆周波数変換部43
ブロック結合部44
位置算出部45
生成部46
比較部48
判定部51
Block division unit 21
Frequency converter 22
Quantization unit 23
Variable length encoding unit 24
Position calculation unit 25
Generator 26
Signature generator 27
Variable length decoding unit 41
Inverse quantization unit 42
Inverse frequency converter 43
Block coupling part 44
Position calculation unit 45
Generation unit 46
Comparison unit 48
Determination unit 51

Claims (8)

画像を周波数変換係数に変換する周波数変換部と、
前記周波数変換係数を第1の量子化テーブルに基づいて量子化して量子化周波数変換係数を算出する量子化部と、
前記周波数変換係数または前記量子化周波数変換係数の正負の符号に基づいて改竄を検知する改竄検知コードを生成する生成部と、
を備えることを特徴とする画像処理装置。
A frequency conversion unit for converting an image into a frequency conversion coefficient;
A quantization unit that quantizes the frequency transform coefficient based on a first quantization table to calculate a quantized frequency transform coefficient;
A generation unit that generates a falsification detection code for detecting falsification based on a positive or negative sign of the frequency conversion coefficient or the quantized frequency conversion coefficient;
An image processing apparatus comprising:
前記生成部は、前記周波数変換係数または前記量子化周波数変換係数のうち、正符号の係数と、負符号の係数と、値が0の係数を区別して、前記改竄検知コードを生成することを特徴とする請求項1記載の画像処理装置。   The generation unit generates the falsification detection code by distinguishing a positive sign coefficient, a negative sign coefficient, and a coefficient having a value of 0 from the frequency conversion coefficient or the quantized frequency conversion coefficient. The image processing apparatus according to claim 1. 前記周波数変換係数が所定の周波数成分毎に格納される周波数変換係数ブロックまたは、前記量子化周波数変換係数が所定の周波数成分毎に格納される量子化周波数変換係数ブロックに対する前記正符号の係数の位置、前記負符号の係数の位置、または前記値が0の係数の位置を示す位置情報を算出する位置算出部を更に備え、
前記生成部は、前記位置情報に基づいて前記改竄検知コードを生成することを特徴とする請求項1または請求項2に記載の画像処理装置。
Position of the positive sign coefficient with respect to the frequency transform coefficient block in which the frequency transform coefficient is stored for each predetermined frequency component or the quantized frequency transform coefficient block in which the quantized frequency transform coefficient is stored for each predetermined frequency component A position calculating unit that calculates position information indicating the position of the coefficient of the negative sign or the position of the coefficient of which the value is 0;
The image processing apparatus according to claim 1, wherein the generation unit generates the falsification detection code based on the position information.
画像が周波数変換係数に変換され、前記周波数変換係数が第1の量子化テーブルに基づいて量子化された量子化周波数変換係数を取得し、前記周波数変換係数または前記量子化周波数変換係数の正負の符号に基づいて改竄を検知する第1の改竄検知コードを生成する生成部と、
前記正負の符号に基づいて生成された第2の改竄検知コードを取得し、前記第1の改竄検知コードと前記第2の改竄検知コードを比較する比較部と、
を備えることを特徴とする画像処理装置。
An image is converted into a frequency conversion coefficient, and the frequency conversion coefficient is quantized based on a first quantization table to obtain a quantized frequency conversion coefficient, and the frequency conversion coefficient or the positive or negative of the quantized frequency conversion coefficient A generator for generating a first falsification detection code for detecting falsification based on a code;
A comparison unit that obtains a second alteration detection code generated based on the positive and negative signs, and compares the first alteration detection code with the second alteration detection code;
An image processing apparatus comprising:
前記第2の改竄検知コードは、前記周波数変換係数または前記量子化周波数変換係数のうち、正符号の係数と、負符号の係数と、値が0の係数を区別して生成されており、
前記生成部は、前記周波数変換係数または前記量子化周波数変換係数のうち、前記正符号の係数と、前記負符号の係数と、前記値が0の係数を区別して、前記第1の改竄検知コードを生成することを特徴とする請求項4記載の画像処理装置。
The second tampering detection code is generated by distinguishing a positive sign coefficient, a negative sign coefficient, and a coefficient having a value of 0 from the frequency transform coefficient or the quantized frequency transform coefficient,
The generating unit distinguishes the positive sign coefficient, the negative sign coefficient, and the coefficient having the value of 0 from the frequency transform coefficient or the quantized frequency transform coefficient, and the first falsification detection code The image processing apparatus according to claim 4, wherein:
前記第2の改竄検知コードは、前記量子化周波数変換係数が所定の周波数成分毎に格納される量子化周波数変換係数ブロック、または前記周波数変換係数が所定の周波数成分毎に格納される周波数変換係数ブロックに対する前記正符号の係数の位置、前記負符号の係数の位置、前記値が0の係数の位置を示す位置情報を算出する位置算出部を更に備え、
前記生成部は、前記位置情報に基づいて前記第1の改竄検知コードを生成する、
ことを特徴とする請求項4または請求項5に記載の画像処理装置。
The second tampering detection code is a quantized frequency transform coefficient block in which the quantized frequency transform coefficient is stored for each predetermined frequency component, or a frequency transform coefficient in which the frequency transform coefficient is stored for each predetermined frequency component. A position calculating unit that calculates position information indicating the position of the coefficient of the positive sign relative to the block, the position of the coefficient of the negative sign, and the position of the coefficient whose value is 0;
The generation unit generates the first falsification detection code based on the position information.
The image processing apparatus according to claim 4, wherein the image processing apparatus is an image processing apparatus.
画像を周波数変換係数に変換し、
前記周波数変換係数を第1の量子化テーブルに基づいて量子化して量子化周波数変換係数を算出し、
前記周波数変換係数または前記量子化周波数変換係数の正負の符号に基づいて改竄を検知する改竄検知コードを生成する、
処理をコンピュータが実行する画像処理方法。
Convert the image to frequency conversion coefficient,
Quantizing the frequency transform coefficient based on a first quantization table to calculate a quantized frequency transform coefficient;
Generating a falsification detection code for detecting falsification based on the sign of the frequency transform coefficient or the quantized frequency transform coefficient;
An image processing method in which processing is executed by a computer.
画像が周波数変換係数に変換され、前記周波数変換係数が第1の量子化テーブルに基づいて量子化された量子化周波数変換係数を取得し、
前記周波数変換係数または前記量子化周波数変換係数の正負の符号に基づいて改竄を検知する第1の改竄検知コードを生成し、
前記正負の符号に基づいて生成された第2の改竄検知コードを取得し、前記第1の改竄検知コードと前記第2の改竄検知コードを比較する、
処理をコンピュータが実行する画像処理方法。
An image is converted into a frequency conversion coefficient, and the frequency conversion coefficient is quantized based on a first quantization table to obtain a quantized frequency conversion coefficient;
Generating a first falsification detection code for detecting falsification based on a positive or negative sign of the frequency conversion coefficient or the quantized frequency conversion coefficient;
Obtaining a second alteration detection code generated based on the positive and negative signs, and comparing the first alteration detection code with the second alteration detection code;
An image processing method in which processing is executed by a computer.
JP2012138331A 2012-06-20 2012-06-20 Image processing device and image processing method Pending JP2014003506A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2012138331A JP2014003506A (en) 2012-06-20 2012-06-20 Image processing device and image processing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2012138331A JP2014003506A (en) 2012-06-20 2012-06-20 Image processing device and image processing method

Publications (1)

Publication Number Publication Date
JP2014003506A true JP2014003506A (en) 2014-01-09

Family

ID=50036283

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2012138331A Pending JP2014003506A (en) 2012-06-20 2012-06-20 Image processing device and image processing method

Country Status (1)

Country Link
JP (1) JP2014003506A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112134688A (en) * 2020-09-22 2020-12-25 广东海洋大学 Asymmetric image encryption method based on quantum chaotic mapping and SHA-3

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112134688A (en) * 2020-09-22 2020-12-25 广东海洋大学 Asymmetric image encryption method based on quantum chaotic mapping and SHA-3
CN112134688B (en) * 2020-09-22 2023-10-31 广东海洋大学 Asymmetric image encryption method based on quantum chaotic mapping and SHA-3

Similar Documents

Publication Publication Date Title
US8971691B2 (en) Signature device and signature method
US7308577B2 (en) Image verification system, image verification apparatus, and image verification method
US7167988B2 (en) Information processing method and information processing apparatus
WO2021039953A1 (en) Information processing device, information processing method, and program
JP2017041841A (en) Signature generation system, signature generation device and signature generation method
JP5766297B2 (en) Imaging device, video recording device, video display device, video monitoring device, video monitoring system, and video monitoring method
JP2006279850A (en) Image processing apparatus
US20210319144A1 (en) Information processing system, information processing method, terminal apparatus, and information processing apparatus
US20130156257A1 (en) Image processing device, tampering prevention method, and tampering detection method
JP2013197889A (en) Image processing device and image processing method
JP2012114654A (en) Monitoring camera, storage device, and method for detecting tampering of monitoring image
US20220294640A1 (en) System and method for capturing authenticatable digital media files on connected media-capture devices
JP2014003506A (en) Image processing device and image processing method
JPWO2020116177A1 (en) Image sensor, image sensor and method
JP2019205140A (en) Imaging apparatus, information processing apparatus, generation method, and verification method
JP4728136B2 (en) Content distribution system and content distribution method
JP2010109787A (en) Electronic watermark embedding and detecting method utilizing degraded host signal
EP3602478B1 (en) Video watermarking
JP4106311B2 (en) Information embedding device, encoding device, falsification detection device, method thereof, and recording medium recording program for executing the method
EP4369704A1 (en) Signing video for reduced bit rate
JP2005310038A (en) Image recording device
JP2008067309A (en) Verification data embedding method, program and apparatus, image tampering detecting method, program, apparatus, and image tampering detection system
JP2006333299A (en) Encoding apparatus, encoding method and image forming apparatus
KR20210114323A (en) Robust selective image, video, and audio content authentication
KR102172995B1 (en) Electronic device for storing image and method thereof