730 likes | 1.2k Views
Image Forgery JPEG Compression Based Forgery Detection. Presented by: Hilal Diab Course professor: Hagit Hel-Or. 18/1/2015. What’s to come ?. JPEG compression algorithm DCT Quantization tables Benford’s law. JPEG. That file format for images right ?.
E N D
Image Forgery JPEG Compression Based Forgery Detection Presented by: Hilal Diab Course professor: Hagit Hel-Or 18/1/2015
What’s to come ? • JPEG compression algorithm • DCT • Quantization tables • Benford’s law
JPEG That file format for images right ? Wrong, JPEG is a compression type, similar to zip
JPEG (Joint Photographic Experts Group) • JPEG became an image compression standard in 1992 • JPEG is a lossy compression algorithm • JPEG can achieve 10:1 compression with little noticeable difference
JPEG Decreased compression from left to right.
JPEG Algorithm Image Color transformation DCT Quantization JPEG Encoding
YCbCr • RGB has a lot of redundant information
Downsampling Source: computerphile
JPEG Algorithm Image Color transformation DCT Quantization
JPEG Algorithm Image Color transformation DCT Quantization JPEG Encoding
Encoding Encode the coefficients using Huffman encoding
Detecting Double Compressed JPEG Images Babak Mahdian and Stanislav Saic
Double Quantization • Double quantization process -> artifacts in the DCT coefficients histogram.
Detecting Double JPEG Compression • Only check the luminance channel • Only on the lower frequencies • Denoise using an average filter • Remove decaying trends while preserving local peaks
Detecting Double JPEG Compression Where is the minimum of n is the length of the minimum filter
Classification • Use an SVM to classify if single or double JPEG compressed. • The features that were used are the normalized peak positions in H shown earlier.
Cons • Classification is per quantization step • They assume that images are not in bitmap format • Not good for high quality factors • Not great results when the first quality factor is higher than the second.
A generalized Benford’s law for JPEG coefficients and its applications in image forensics Dongdong Fu*a, Yun Q. Shi*a, Wei Sub
JPEG Coefficients Close! but not quite there
JPEG Identification • Based on experiments, the previous law does NOT apply on double compressed images. • We can JPEG compress a given bitmap image and check if the law applies or not.
Results 100%
Estimating QF • Re-Compress an image with the same QF won’t change the first digits statistics very much
Cons • Using Benford’s law requires a lot more information, so this will not work on small images. • Won't detect recompression of small patches
JPEG Error Analysis and Its Applications to Digital Image Forensics Weiqi Luo, Member, IEEE, Jiwu Huang, Senior Member, IEEE, and Guoping Qiu, Member, IEEE
Porpose • Identifying JPEG images • Estimating quantization steps • Detecting quantization tables • Double JPEG compression detection
Observations • The AC coefficients of an image will increase in the range of (-1, +1) while decrease significantly in the union regions of (-2, -1] and [+1, +2) after JPEG compression with quantization steps that are equal to or larger than 2. • Same quantization table -> better preservation of the original image.
Fun math (ha ha) Rounding error
Definitions • P , P’: the PDF of d and d’ • k: the quantization step