CN105049867A - Method for recognizing whether bitmap having been compressed by JPEG - Google Patents

Method for recognizing whether bitmap having been compressed by JPEG Download PDF

Info

Publication number
CN105049867A
CN105049867A CN201510522016.3A CN201510522016A CN105049867A CN 105049867 A CN105049867 A CN 105049867A CN 201510522016 A CN201510522016 A CN 201510522016A CN 105049867 A CN105049867 A CN 105049867A
Authority
CN
China
Prior art keywords
bitmap
jpeg
compressed
variance
detected
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
CN201510522016.3A
Other languages
Chinese (zh)
Inventor
张军
袁志斌
王志坚
沈永珞
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.)
Guangdong Finance And Economics University
Guangdong University of Business Studies
Original Assignee
Guangdong Finance And Economics University
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 Guangdong Finance And Economics University filed Critical Guangdong Finance And Economics University
Priority to CN201510522016.3A priority Critical patent/CN105049867A/en
Publication of CN105049867A publication Critical patent/CN105049867A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T9/00Image coding
    • G06T9/007Transform coding, e.g. discrete cosine transform
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N1/00Scanning, transmission or reproduction of documents or the like, e.g. facsimile transmission; Details thereof
    • H04N1/41Bandwidth or redundancy reduction
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N17/00Diagnosis, testing or measuring for television systems or their details

Abstract

The invention relates to a method for recognizing whether a bitmap has been compressed by JPEG and belongs to the field of multimedia information safety. In terms of the problem whether one bitmap has been compressed by JPEG, the technical proposal of the invention is as follows: performing 8 plus 8 blocking to the bitmap to be detected, and calculating DCT coefficient matrix to each block; then intercepting the fractional parts of all DCT coefficients; then calculating variances of these fractional parts, and judging that the detected bitmap has not been compressed by JPEG if the magnitude of the variance is more than a preselected threshold value, and judging that the detected bitmap has been compressed by JPEG if the magnitude of the variance is less than the preselected threshold value. The method of the invention could be used for accurately judging whether the bitmap has been compressed by the JPEG by analyzing the fractional parts of the DCT coefficients, and is low in computation complexity and strong in resolving ability. The method of the invention is conducive to tampering a follow-up detection image and hiding information.

Description

A kind ofly identify bitmap whether through the method for JPEG compression
Technical field
The invention belongs to field of multi-media information safety, particularly relate to a kind of method whether bitmap compresses through JPEG that identifies.
Background technology
The content of bitmap is easy to be modified, therefore just have be maliciously tampered and for illegal object may.In addition, bitmap is easily hidden information, for confidential corespondence, thus jeopardizes information security.Identify whether bitmap can contribute to distorting and Information hiding of subsequent detection image through JPEG compression.
Whether Artificial Cognition's bitmap compresses poor accuracy and inefficiency through JPEG, and therefore feasible scheme develops effective computer automatic identification method exactly.
JPEG is the lossy compression of extensive use in image capture apparatus, its operation principle is: JPEG compression is the image compression scheme based on piecemeal, first Iamge Segmentation is become the 8x8 piecemeal of non-overlapping copies, then the DCT coefficient matrix of 8x8 is obtained after discrete cosine transform (DCT) being carried out to each piecemeal, carry out quantification according to the quantization table of a 8x8 to DCT coefficient matrix again to round, finally obtained coefficient is encoded, generate jpeg file.First read quantization table from jpeg file head during jpeg decompression, and file code stream is decoded, obtain quantization DCT coefficient.According to quantization table, inverse quantization, reverse discrete cosine transform (IDCT) are carried out to quantization DCT coefficient again, and round, finally restore bitmap.
The Chinese patent of prior art 1: patent No. CN103067713A: a kind of method and system of bitmap JPEG compressed detected propose and judge by factor histogram the method whether bitmap compresses through JPEG, its basic process is as follows: carry out piecemeal to data bitmap to be detected and calculate corresponding DCT coefficient matrix, be corresponding integer matrix by described DCT coefficient matrix conversion, draw a factor histogram representing the number of times that each positive factor occurs respectively in described integer matrix; Analyze the histogrammic monotonicity of described factor and obtain a metric; Judging whether described metric is greater than previously selected threshold values, when being, then judging that described bitmap to be detected compresses through JPEG, when no, judge that described bitmap to be detected compresses without JPEG.The calculating more complicated of the method, the bitmap resolving ability compressed to high-quality is limited, and therefore prior art need to improve and development.
In JPEG operation principle, DCT coefficient experienced by quantification floor operation, and this operation causes the DCT coefficient of inverse quantization to be integer.Therefore, the decimal characteristic of DCT coefficient analyzing bitmap identifies piece image whether through the good method of overcompression.
Summary of the invention
The invention provides a kind of detection method whether bitmap compresses through JPEG that identifies.In theory, the fractional part without its piecemeal DCT coefficient of bitmap of compression obeys being uniformly distributed between-0.5 to+0.5; And its piecemeal DCT coefficient of compressed bitmap should be integer, but owing to introducing approximation error when being decompressed to pixel, this error approximate normal distribution obeyed between-0.5 to+0.5 after DCT linear combination of 8x8 pixel, therefore its piecemeal DCT coefficient of compressed bitmap is no longer integer, and its fractional part is similar to the normal distribution obeyed between-0.5 to+0.5.The present invention has caught the distribution characteristics of DCT coefficient fractional part, provides a kind of simple, the recognition methods that verification and measurement ratio is high.The method invented is: carry out 8x8 piecemeal to data bitmap to be detected, corresponding DCT coefficient matrix is calculated to every block, then intercept so the fractional part of DCT coefficient, calculate the variance of fractional part again, if the value of variance is greater than previously selected threshold values, then judge that the bitmap detected compresses without JPEG; If be less than previously selected threshold values, then judge that the bitmap detected have passed through JPEG compression.The effect of the method is in table 1:
Table 1
256x256 128x128 64x64 32x32 16x16 8x8
Prior art 1 99.32 98.70 97.34 94.86 88.02 78.44
The present invention 99.85 99.90 99.85 99.85 99.10 89.00
As can be seen from Table 1, the present invention is higher than the recognition accuracy of prior art 1, and when being greater than 16x16 to picture size, recognition accuracy of the present invention is all more than 99%.
Embodiment
Iamge Segmentation is become the 8x8 piecemeal of non-overlapping copies, then corresponding DCT coefficient matrix is calculated to every block.
Intercept the fractional part of all DCT coefficient, then calculate the variance of these fractional parts.
If the value of variance is greater than previously selected threshold values, then judge that the bitmap detected compresses without JPEG; If be less than previously selected threshold values, then judge that the bitmap detected have passed through JPEG compression.
The selecting step of above-mentioned threshold values is: the bitmap of optional some uncompressed, calculates respective corresponding variance in a manner described, add up the average of these variances, be designated as a every width bitmap; Meanwhile, compress the JPEG of above-mentioned bitmap through the various factor, then decompress(ion) is reduced to bitmap, then to the bitmap after these decompress(ion)s, calculates respective corresponding variance in a manner described, add up the average of these variances, be designated as b; Finally choose (a+b)/2 for threshold value.

Claims (2)

1. identify and it is characterized in that the method whether bitmap compresses through JPEG said method comprising the steps of:
A. adopt the fractional part of bitmap piecemeal DCT coefficient for analyzing foundation;
B. with the variance of fractional part for criterion of identification;
If C. the value of variance is greater than previously selected threshold values, then judge that bitmap compresses without JPEG; Otherwise this bitmap have passed through JPEG compression.
2. method according to claim 1, is characterized in that the determining step of described threshold values is:
D. the bitmap of optional some uncompressed, calculates respective corresponding variance, adds up the average of these variances, be designated as a;
E. compress the JPEG of above-mentioned bitmap through the various factor, then decompress(ion) is reduced to bitmap, finally calculates respective corresponding variance to the bitmap after these decompress(ion)s, adds up the average of these variances, be designated as b;
F. (a+b)/2 are chosen for threshold value.
CN201510522016.3A 2015-08-19 2015-08-19 Method for recognizing whether bitmap having been compressed by JPEG Pending CN105049867A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510522016.3A CN105049867A (en) 2015-08-19 2015-08-19 Method for recognizing whether bitmap having been compressed by JPEG

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510522016.3A CN105049867A (en) 2015-08-19 2015-08-19 Method for recognizing whether bitmap having been compressed by JPEG

Publications (1)

Publication Number Publication Date
CN105049867A true CN105049867A (en) 2015-11-11

Family

ID=54455996

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510522016.3A Pending CN105049867A (en) 2015-08-19 2015-08-19 Method for recognizing whether bitmap having been compressed by JPEG

Country Status (1)

Country Link
CN (1) CN105049867A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2019024160A1 (en) * 2017-08-04 2019-02-07 平安科技(深圳)有限公司 Image tampering detection method and system, electronic device, and readable storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070195106A1 (en) * 2006-02-17 2007-08-23 Microsoft Corporation Detecting Doctored JPEG Images
CN101674389A (en) * 2009-09-30 2010-03-17 大连理工大学 Method for testing compression history of BMP image based on loss amount of image information
CN101710989A (en) * 2009-11-06 2010-05-19 中山大学 Method for identifying JPEG compressed digital picture
CN103067713A (en) * 2013-01-06 2013-04-24 中国科学院深圳先进技术研究院 Method and system of bitmap joint photographic experts group (JPEG) compression detection

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070195106A1 (en) * 2006-02-17 2007-08-23 Microsoft Corporation Detecting Doctored JPEG Images
CN101674389A (en) * 2009-09-30 2010-03-17 大连理工大学 Method for testing compression history of BMP image based on loss amount of image information
CN101710989A (en) * 2009-11-06 2010-05-19 中山大学 Method for identifying JPEG compressed digital picture
CN103067713A (en) * 2013-01-06 2013-04-24 中国科学院深圳先进技术研究院 Method and system of bitmap joint photographic experts group (JPEG) compression detection

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
WEIQI LUO等: "JPEG Error Analysis and Its Applications to Digital Image Forensics", 《IEEE TRANSACTIONS ON INFORMATION FORENSICS AND SECURITY》 *
ZHIGANG FAN 等: "Identification of Bitmap Compression History:JPEG Detection and Quantizer Estimation", 《IEEE TRANSACTIONS ON IMAGE PROCESSING》 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2019024160A1 (en) * 2017-08-04 2019-02-07 平安科技(深圳)有限公司 Image tampering detection method and system, electronic device, and readable storage medium

Similar Documents

Publication Publication Date Title
Stamm et al. Undetectable image tampering through JPEG compression anti-forensics
Sadek et al. Robust video steganography algorithm using adaptive skin-tone detection
Sun et al. Exposing video forgeries by detecting MPEG double compression
JP5962937B2 (en) Image processing method
EP2105023A2 (en) Banding artifact detection in digital video content
US9843815B2 (en) Baseband signal quantizer estimation
CN107135401B (en) Key frame selection method and system
Yang et al. A clustering-based framework for improving the performance of JPEG quantization step estimation
CN103067713B (en) Method and system of bitmap joint photographic experts group (JPEG) compression detection
Kumar et al. Near lossless image compression using parallel fractal texture identification
CN101540898B (en) AVS video digital watermark method based on nonnegative matrix decomposition
Mohammed et al. Robust video watermarking scheme using high efficiency video coding attack
CN103533377B (en) Frame deletion manipulation detection method based on H.264/AVC (advanced video coding) video
Zhao et al. Intelligent analysis oriented surveillance video coding
CN105049867A (en) Method for recognizing whether bitmap having been compressed by JPEG
CN101534441A (en) AVS video watermarking method based on gray theory and uniform spectrum theory
Fallahpour et al. Flexible image watermarking in JPEG domain
Hou et al. Double JPEG compression detection based on extended first digit features of DCT coefficients
JP2006217403A5 (en)
CN113542771A (en) Video high-efficiency compression processing method based on content weight
Jiajia et al. Minimum structural similarity distortion for reversible data hiding
Semary et al. Novel Compression System for Hue-Saturation and Intensity Color Space.
Sreelakshmi et al. Image compression using anti-forensics method
CN100361534C (en) Method and device for removing block effect in video coding-decoding system
Sowmya et al. Object based forgery detection and localization in videos

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20151111

WD01 Invention patent application deemed withdrawn after publication