A method for identifying reprinted images based on moiré analysis
Through frequency domain analysis and dynamic threshold mechanism, the fast Fourier transform is used to identify remake images, which solves the problems of insufficient utilization of molar features and poor real-time performance in the prior art, and achieves efficient and accurate remake image detection.
Patent Information
- Application Number
- CN202510472516.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-04-16
- Publication Date
- 2025-07-22
- Estimated Expiration
- 2045-04-16
AI Technical Summary
The existing remake image recognition method does not fully utilize molar features, lacks noise resistance, poor real-time performance, and is difficult to quickly execute on low-power devices.
Through frequency domain analysis technology, the periodic pattern of molar patterns is revealed using fast Fourier transform, and the dynamic threshold mechanism is combined with the remake image recognition.
It realizes fast and accurate remake image detection, reduces error detection rate, improves the noise resistance and real-time performance of the algorithm, and is suitable for copyright protection, identity authentication and judicial evidence collection.
Smart Images

Figure CN119992111B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of image recognition, and in particular to a method for recognizing a reproduced image based on moiré analysis. Background Art
[0002] Reproduction image recognition is an important technology in the field of digital image forensics and copyright protection. In the prior art, the recognition of reproduction images is mainly achieved through the following methods:
[0003] Method 1: Texture feature-based method: By analyzing the regularity of local texture of the image, the screen texture or repeated pattern that may exist in the re-shot image is detected. However, in this method, the texture feature is easily disturbed by the image content and the false detection rate is high.
[0004] Method 2: Color distortion-based method: By detecting color anomalies in the re-shot image caused by screen reflection or ambient light interference. However, the color distortion method is sensitive to changes in ambient light and lacks robustness.
[0005] Method 3: Deep learning-based method: Use convolutional neural network (CNN) to train the model and learn the features of the re-photographed images from a large amount of data. However, deep learning relies on a large amount of labeled data, has high computational complexity, and is difficult to apply in real time.
[0006] In summary, the existing methods for identifying re-photographed images still have the following defects and deficiencies:
[0007] 1) Existing methods do not fully utilize moiré features: The moiré patterns in the reproduced images caused by the shooting screen have unique periodic high-frequency components, but traditional methods do not effectively extract such frequency domain features.
[0008] 2) Insufficient noise resistance: Texture- or color-based methods are easily disturbed by image content noise, resulting in missed detection or false detection.
[0009] 3) Poor real-time performance: Deep learning methods require a lot of computing resources and are difficult to execute quickly on low-power devices.
[0010] Therefore, it is urgent to provide a new solution to solve the defects and shortcomings in the above-mentioned prior art. Summary of the invention
[0011] In order to solve the defects and shortcomings in the prior art, the present invention provides a method for re-photographed image recognition based on moiré analysis.
[0012] The specific scheme provided by the present invention is:
[0013] A method for identifying a reproduced image based on moiré analysis, characterized in that it comprises the following steps:
[0014] S1: preprocess the image;
[0015] S2: Convert the image from the spatial domain to the frequency domain and perform spectrum centering processing on it to obtain the frequency domain energy distribution corresponding to the image;
[0016] S3: Analyze the frequency domain energy distribution to obtain the energy corresponding to the moiré feature, and then obtain the energy proportion corresponding to the moiré feature;
[0017] S4: Determine the threshold range of the normal image through threshold training, and determine whether the image is a re-shot image according to a preset judgment logic.
[0018] As a further preferred embodiment of the present invention, the step S1 at least includes the following steps:
[0019] S1.1: Convert the color image to grayscale image;
[0020] S1.2: Filter and reduce noise on the grayscale image;
[0021] S1.3: Enhance the contrast of the image.
[0022] As a further preferred embodiment of the present invention, in step S1.1, the RGB color image is converted into a grayscale image using a weighted average method, and the conversion is performed according to the following formula:
[0023]
[0024] in,
[0025] I gray ( x , y ) indicates the converted grayscale image at coordinates ( x , y ) at a brightness value ranging from 0 to 255;
[0026] R ( x , y ), G ( x , y ), B ( x , y ) respectively represent the original color image at coordinates ( x , y ) is the brightness value of the red, green, and blue channels at the position, ranging from 0 to 255;
[0027] As a further preferred embodiment of the present invention, the step S1.2 includes the following steps:
[0028] S1.21: Convolve the grayscale image with a two-dimensional Gaussian kernel function, and define the convolution function as:
[0029]
[0030] where
[0031] g represents the Gaussian function; x and y respectively represent the two-dimensional coordinates of each point in the kernel;
[0032] represents the standard deviation of the Gaussian kernel function;
[0033] S1.22: Verify the grayscale image after filtering and noise reduction through the signal-to-noise ratio: Compare the signal-to-noise ratio of the grayscale image after this processing with the preset signal-to-noise ratio corresponding to the same standard deviation:
[0034] When the current signal-to-noise ratio is not lower than the preset signal-to-noise ratio, it is determined that the verification passes; otherwise, it is determined that the verification fails.
[0035] As a further preferred embodiment of the present invention, in the step S1.3, the following steps are adopted to enhance the contrast of the image:
[0036] S1.31: Divide the image into multiple sub-regions;
[0037] S1.32: Independently perform histogram equalization on each sub-region;
[0038] S1.33: Eliminate the block boundary effect through bilinear interpolation.
[0039] As a further preferred embodiment of the present invention, in the step S2, when converting the image from the spatial domain to the frequency domain, perform a two-dimensional fast Fourier transform operation on the preprocessed image according to the following formula to obtain a frequency-domain complex matrix :
[0040]
[0041] where
[0042] N and M are respectively the length and width dimensions of the image;
[0043] and are frequency-domain coordinates;
[0044] j is the imaginary unit, representing the imaginary part of the complex number, satisfying j2 = -1。
[0045] As a further preferred embodiment of the present invention, in step S2, when performing spectral centering processing, the zero-frequency component in the obtained frequency-domain complex matrix is moved to the center of the spectrum according to the following formula:
[0046]
[0047] wherein,
[0048] represents the frequency-domain complex matrix after centering processing;
[0049] As a further preferred embodiment of the present invention, in step S3, when obtaining the energy corresponding to the moiré pattern feature, with the center of the spectrum as the origin, the energy integral at different angles θ is calculated according to the following formula:
[0050]
[0051] wherein,
[0052] ;
[0053] is the energy integral;
[0054] is the angle in the integration direction, the range satisfies [0°, 180°], and the step size is 1°;
[0055] r represents the mirror distance from the center of the spectrum to the target point, unit: pixel;
[0056] Then, the energy integral is normalized:
[0057] If there is a significant periodic peak, it is determined as a moiré pattern feature;
[0058] If there is no significant periodic peak, it is determined that it does not belong to the moiré pattern feature.
[0059] As a further preferred embodiment of the present invention, in step S3, the energy proportion corresponding to the moiré pattern feature is obtained according to the following steps:
[0060] Define the high-frequency region as the outer ring of the spectrum, and calculate its energy proportion according to the following formula:
[0061]
[0062] wherein,
[0063] is the energy proportion of the high-frequency region;
[0064] Represents the sum of the energy of all frequency domain points in the high-frequency region;
[0065] Represents the sum of the energy of all frequency domain points in the entire frequency domain.
[0066] As a further preferred embodiment of the present invention, in step S4,
[0067] When determining the threshold range of normal images through threshold training, a training set containing multiple normal images and multiple re-photographed images is used to count the proportion of high-frequency energy. and peak intensity E peak The distribution of , and the classification boundary of the threshold T is determined by the following formula:
[0068]
[0069] in,
[0070] is the feature mean of the normal image;
[0071] is the standard deviation of the normal image;
[0072] When judging whether an image is a re-photographed image according to the preset judgment logic, the preset judgment logic satisfies:
[0073] (1) If ≥T and there are at least two significant periodic peaks, it is determined to be a re-shot image;
[0074] (2) Otherwise, it is judged as a normal image.
[0075] Compared with the prior art, the present invention can achieve the following technical effects:
[0076] 1) The present invention provides a method for identifying copied images based on moiré analysis. The frequency domain analysis technology is used to quickly and accurately detect the copied images, the fast Fourier transform (FFT) is used to reveal the periodic pattern of the moiré, and the dynamic threshold is set to distinguish between normal images and copied images. This can effectively improve the algorithm's noise resistance and real-time performance, and reduce the false detection rate.
[0077] 2) The present invention provides a method for identifying reproduced images based on moiré analysis. Through fast Fourier transform (FFT) and radial integration algorithm, the periodic characteristics of moiré are accurately quantified, and the high-frequency components of moiré are effectively separated, thereby avoiding the limitations of traditional methods that rely on artificial feature design and complex texture modeling, and improving the calculation speed.
[0078] 3) The present invention provides a method for identifying reproduced images based on moiré analysis, which adopts a dynamic threshold mechanism and combines statistical learning to adaptively adjust the judgment threshold. The judgment threshold can be automatically adjusted according to the application scenario, thereby improving the generalization ability and adapting to the image quality differences in different devices and environments.
[0079] 4) The present invention provides a method for re-photographed image recognition based on moiré analysis, which achieves lightweight and real-time performance. The whole process does not require complex model training, and the processing time of a single image is ≤50ms. It can run in real time in embedded devices (such as mobile phones and security cameras).
[0080] 5) The present invention provides a method for identifying reproduced images based on moiré analysis, which pre-processes the image and enhances the feature robustness by converting the image into a grayscale image and using the synergistic effect of Gaussian filtering and histogram equalization.
[0081] 6) The present invention provides a method for identifying reproduced images based on moiré analysis, which has the advantages of high detection accuracy (tested on the public data set RAISE, the accuracy rate is 98.2%, and the false detection rate is less than 2%), strong real-time performance (single image processing time ≤50ms (CPU i5-8250U), 10 times faster than the deep learning model), excellent noise resistance (when adding Gaussian noise (SNR=20dB) , The detection accuracy is still maintained above 95%) and a wide range of applications. It can be widely used in copyright protection, identity authentication, judicial evidence collection, field photography and clocking in and other fields. BRIEF DESCRIPTION OF THE DRAWINGS
[0082] Figure 1 Shown is a flow chart of the method steps provided by the present invention.
[0083] Figure 2 Shown is a schematic diagram of the structure of four adjacent sub-regions in the bilinear interpolation method in step S1.3. DETAILED DESCRIPTION
[0084] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0085] In the description of the present invention, it should be noted that the terms "upper", "lower", "inner", "outer", "front end", "rear end", "two ends", "one end", "the other end" and the like indicate positions or positional relationships based on the positions or positional relationships shown in the drawings, and are only for the convenience of describing the present invention and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as limiting the present invention. In addition, the terms "first" and "second" are used for descriptive purposes only and cannot be understood as indicating or implying relative importance.
[0086] In the description of the present invention, it should be noted that, unless otherwise clearly specified and limited, the terms "installed", "provided with", "connected", etc. should be understood in a broad sense. For example, "connected" can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection, or it can be indirectly connected through an intermediate medium, or it can be the internal communication of two components. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.
[0087] Since the reproduced image will appear as abnormal high-frequency components or strip-shaped energy distribution in the frequency domain due to the periodic interference (moiré) generated when shooting the screen, the present invention captures these features through frequency domain analysis and combines dynamic thresholds to achieve efficient recognition.
[0088] [First embodiment]
[0089] The first embodiment of the present invention provides a method for identifying a reproduced image based on moiré analysis, such as Figure 1 As shown, the following steps are included:
[0090] S1: Preprocess the image; the purpose of preprocessing the image is to eliminate environmental noise and enhance moiré features, so as to provide high-quality input for subsequent frequency domain analysis.
[0091] In this embodiment, preprocessing the image includes at least the following steps:
[0092] S1.1: Convert the color image to a grayscale image. In this step, the RGB color image is converted to a grayscale image using a weighted average method, and the conversion is performed according to the following formula:
[0093]
[0094] in,
[0095] I gray ( x , y ) indicates the converted grayscale image at coordinates (x , y The luminance value at y has a value range of 0 to 255;
[0096] R ( x , y ), G ( x , y ), B ( x , y ) respectively represent the luminance values of the red, green, and blue channels of the original color image at the coordinate ( x , y ), and the value range is 0 to 255;
[0097] Among them, the coefficients 0.299, 0.587, and 0.114 are weights designed based on the sensitivity of the human eye to different colors of light.
[0098] Since the cone cells in the human eye retina are most sensitive to green light (wavelength about 550 nm), followed by red light (about 630 nm), and least sensitive to blue light (about 440 nm). This perceptual difference results in:
[0099] Green (G) contributes the most: weight 0.587, accounting for about 60%;
[0100] Red (R) comes second: weight 0.299, accounting for about 30%;
[0101] Blue (B) is the smallest: weight 0.114, accounting for about 10%.
[0102] The coefficient weights in this formula are more in line with the sensitivity of the human eye to different colors and are often used in actual image processing. Verified through psychophysical experiments (such as luminance matching experiments), this weighting method can make the grayscale image closer to the subjective perception of the human eye for luminance and can effectively avoid visual distortion caused by the direct averaging method (Y = (R + G + B) / 3).
[0103] The selection of the above weight coefficients is based on the biological characteristics of the human eye's sensitivity to different colors, giving priority to retaining the luminance information and reducing the computational complexity at the same time.
[0104] S1.2: Perform filtering and noise reduction processing on the grayscale image; specifically, it includes the following steps:
[0105] S1.21: Convolve the grayscale image using a two-dimensional Gaussian kernel function, and define the convolution function as:
[0106]
[0107] Among them,
[0108] g represents the Gaussian function; x and y respectively represent the two-dimensional coordinates of each point in the kernel;
[0109] represents the standard deviation of the Gaussian kernel function;
[0110] In the formula, x 2 , y 2 are respectively the squares of the coordinate values, used to calculate the square of the Euclidean distance between the current point and the center point. This operation can convert the coordinates into non-negative values, providing a basis for the subsequent calculation of the exponential function.
[0111] S1.22: Verify the grayscale image after filtering and noise reduction through the signal-to-noise ratio: Compare the signal-to-noise ratio of the grayscale image processed this time with the preset signal-to-noise ratio corresponding to the same standard deviation:
[0112] When the signal-to-noise ratio this time is not lower than the preset signal-to-noise ratio, it is determined that the verification passes; otherwise, it is determined that the verification fails.
[0113] In this embodiment, through experimental determination, the preset signal-to-noise ratios corresponding to each standard deviation satisfy:
[0114] Standard deviation = 0.5, the preset signal-to-noise ratio SNR (dB) = 15.2;
[0115] Standard deviation = 1.0, the preset signal-to-noise ratio SNR (dB) = 18.7;
[0116] Standard deviation = 1.5, the preset signal-to-noise ratio SNR (dB) = 20.3;
[0117] Standard deviation = 2.0, the preset signal-to-noise ratio SNR (dB) = 19.1;
[0118] Standard deviation = 2.5, the preset signal-to-noise ratio SNR (dB) = 17.5;
[0119] When the improvement value of the signal-to-noise ratio SNR is higher, it indicates a better noise suppression effect. Since when σ < 1, it indicates insufficient noise suppression; and when σ > 2, it indicates that the image details are blurred. Therefore, in this embodiment, the standard deviation σ = 1.5 of the Gaussian kernel function is selected and experimentally verified. Through the signal-to-noise ratio SNR test, when σ = 1.5, SNR can be effectively increased by about 22 dB. Therefore, it is determined that the verification passes.
[0120] S1.3: Enhance the contrast of the image. In this embodiment, the following steps are used to enhance the contrast of the image:
[0121] S1.31: Divide the image into multiple sub-regions;
[0122] S1.32: Independently perform histogram equalization on each sub-region;
[0123] S1.33: Eliminate the inter-block boundary effect through bilinear interpolation.
[0124] In Contrast Limited Adaptive Histogram Equalization (CLAHE), the image is divided into multiple sub-regions (such as 8×8 blocks), and histogram equalization is performed independently on each sub-region. However, this block processing may lead to sudden changes in brightness or contrast between adjacent blocks (i.e., "inter-block boundary effect"). Bilinear interpolation achieves a natural transition by smoothing the mapping results of adjacent blocks.
[0125] The following are the specific operation steps of step S1.3:
[0126] 1) Divide the image into M*N sub-regions (e.g., 8*8);
[0127] 2) Independently perform histogram equalization on each sub-region to generate the corresponding gray-scale function T k ( x , y ) where k is the number of the sub-region;
[0128] 3) For any point ( x , y ) in the image, find the central points of the four adjacent sub-regions it belongs to, as shown in Figure 2 :
[0129] Upper-left sub-region center: ( x TL , y TL ); Central coordinates: ( x 1, y 1);
[0130] Upper-right sub-region center: ( x TR , y TR ); Central coordinates: ( x 2, y 1);
[0131] Lower-left sub-region center: ( x BL , y BL ); Central coordinates: ( x 1, y 2);
[0132] Lower right sub-region center: ( x BR , y BR ); Center coordinates: ( x 2, y 2);
[0133] As Figure 2 shown, the target point ( x , y ) is located at the junction of four adjacent sub-regions;
[0134] Calculate the horizontal and vertical weights of the bilinear interpolation respectively:
[0135] Horizontal weight: That is, the horizontal offset ratio of the target point relative to the center of the upper left sub-region w x Satisfy:
[0136]
[0137] Vertical weight: That is, the vertical offset ratio of the target point relative to the center of the upper left sub-region w y Satisfy:
[0138]
[0139] The gray value of the target point can be obtained by weighting the mapping functions of four adjacent sub-regions according to the distance, and the sub-region closer to the target point contributes more. Therefore, the mapping functions of the four adjacent sub-regions can be interpolated according to the weights to obtain the final gray value of the target point I out ( x , y ), and the calculation formula is as follows:
[0140]
[0141] In the formula,
[0142] Corresponds to the upper left sub-region, indicating that when the target point is close to the upper left sub-region, the contribution of the upper left sub-region is the largest, and at this time both the horizontal and vertical weights are small;
[0143] Corresponds to the upper right sub-region, indicating that when the target point is close to the upper right sub-region, the contribution of the upper right sub-region is the largest, and at this time the horizontal weight is large and the vertical weight is small;
[0144] Corresponds to the lower left sub-region, indicating that when the target point is close to the lower left sub-region, the contribution of the lower left sub-region is the largest, and at this time the horizontal weight is small and the vertical weight is large;
[0145] Corresponding to the lower right sub-region, it means that when the target point is close to the lower right sub-region, the contribution of the lower right sub-region is the largest, and at this time both the horizontal and vertical weights are large;
[0146] For the image boundary region:
[0147] If the target point is close to the image edge and there are missing adjacent sub-regions (for example, there is only one sub-region in the upper left corner), then the interpolation degenerates to:
[0148] Unilateral interpolation: that is, only the existing sub-regions are used for linear interpolation; or
[0149] Direct copy: directly use the mapping result of the nearest sub-region.
[0150] For the situation of non-uniform division of sub-regions, for example, if the image size cannot be evenly divided, the interpolation weights need to be adjusted to match the actual coordinates.
[0151] For example: Assume the target point ( x , y ) is located at the junction of four sub-regions and satisfies:
[0152] Mapping value of the upper left sub-region T TL = 100;
[0153] Mapping value of the upper right sub-region T TR = 120;
[0154] Mapping value of the lower left sub-region T BL = 110;
[0155] Mapping value of the lower right sub-region T BR = 130;
[0156] Weight w x = 0.5, w y = 0.5;
[0157] Then the final gray value is:
[0158] I out = 0.25×100 + 0.25×120 + 0.25×110 + 0.25×130 = 115
[0159] Thus, a smoothly transitional gray value is generated at the junction through interpolation, rather than directly using the result of a single sub-region (such as 100 or 130);
[0160] Bilinear interpolation achieves a balance between smoothing effect and computational efficiency, making it suitable for the real-time processing requirements of CLAHE. By fusing the mapping results of adjacent sub-regions, bilinear interpolation effectively eliminates the block boundary effect caused by the block processing of CLAHE. Its core is to achieve smooth transition of gray values through distance weights, taking into account the requirements of noise suppression and detail preservation.
[0161] By adopting histogram equalization to enhance the contrast of the image, the problem of local overexposure caused by global equalization can be avoided, ensuring that the periodic structure of moiré is clearly visible.
[0162] S2: Convert the image from the spatial domain to the frequency domain and perform spectral centering on it to obtain the frequency domain energy distribution corresponding to the image; to reveal the periodic interference pattern of moiré.
[0163] In this step, when converting the image from the spatial domain to the frequency domain, the preprocessed image is subjected to a two-dimensional fast Fourier transform (FFT) operation according to the following formula to obtain a frequency domain complex matrix :
[0164]
[0165] where
[0166] N and M are the length and width dimensions of the image respectively;
[0167] and are the frequency domain coordinates;
[0168] j is the imaginary unit, representing the imaginary part of the complex number, satisfying j 2 = -1.
[0169] In this step, when performing spectral centering, the zero-frequency component in the obtained frequency domain complex matrix is moved to the center of the spectrum according to the following formula:
[0170]
[0171] where
[0172] represents the frequency domain complex matrix after centering;
[0173] After spectral centering, the low-frequency energy can be concentrated at the center of the spectrum, and the high-frequency energy is distributed at the periphery, facilitating the subsequent detection of strip-shaped structures.
[0174] S3: Analyze the frequency domain energy distribution to obtain the energy corresponding to the moiré feature, and then obtain the energy proportion corresponding to the moiré feature;
[0175] In this step, when obtaining the energy corresponding to the moiré feature, the center of the spectrum is taken as the origin, and the energy integral at different angles θ is calculated according to the following formula:
[0176]
[0177] in,
[0178] ;
[0179] is the energy integral;
[0180] is the angle of the integral direction, the range is [0°, 180°], and the step size is 1°;
[0181] r Indicates the mirror distance from the center of the spectrum to the target point, unit: pixel;
[0182] Then the energy integral is normalized and calculated:
[0183] If there are significant periodic peaks (e.g. =45° or 135° direction, etc.), it is determined to be a moiré feature;
[0184] If there is no significant periodic peak, it is determined that it does not belong to the moiré feature;
[0185] In this step, the energy proportion corresponding to the moiré feature is obtained by following the steps below:
[0186] The high-frequency area is defined as the outer ring of the spectrum, and its energy proportion is calculated according to the following formula:
[0187]
[0188] in,
[0189] is the energy proportion of high frequency area;
[0190] Represents the sum of the energy of all frequency domain points in the high-frequency region;
[0191] Represents the sum of the energy of all frequency domain points in the entire frequency domain.
[0192] Energy proportion of high-frequency area in the re-photographed image Usually higher than normal images due to:
[0193] For normal images: Natural images usually have abundant low-frequency information (such as smooth background) and a small amount of high-frequency information (such as detailed texture). Therefore, the proportion of high-frequency energy in normal images is relatively low (its average value is generally 0.12±0.04).
[0194] For the re-photographed images: when the screen is photographed, periodic interference (moiré) will be generated, and this structure is manifested as strip-shaped energy concentration in the high-frequency area in the frequency domain. Therefore, the proportion of high-frequency energy in the re-photographed images is significantly higher (the average value is generally 0.68±0.11).
[0195] After analyzing the spectral energy distribution of a large number of normal images and re-shot images, the high-frequency energy proportion of the re-shot images is significantly higher (the high-frequency mean is 0.68 and the low-frequency mean is 0.12), so the high-frequency area energy proportion can be used to calculate the energy distribution of the re-shot images. To distinguish normal images from reproduced images.
[0196] In this embodiment,
[0197] The low-frequency region corresponds to the slowly changing area in the image, such as a smooth background, large color blocks, etc. In the frequency domain, the low-frequency region is concentrated near the center of the spectrum; this is because the low frequency dominates the smooth information, and most of the energy of the image is concentrated in the low frequency, corresponding to the overall brightness and contrast of the image;
[0198] The high-frequency area corresponds to the rapidly changing areas in the image, such as edges, textures, and noise. In the frequency domain, the high-frequency area is concentrated at the periphery of the spectrum; while the low-frequency response details and noise, edges, textures, and noise appear as high-frequency energy, but noise is usually randomly distributed, while periodic structures (such as moiré) are directional high-frequency energy;
[0199] After the spectrum is centered, the center of the spectrum is taken as the origin, and the low-frequency area and the high-frequency area are distinguished by the radial distance relative to the center of the spectrum: that is:
[0200] Low frequency region: radial distance R 径 ≤R low The central circular area of ;
[0201] High frequency area: radial distance R 径 >R low The outer annular area;
[0202] Where R lowR is the boundary radius between the high-frequency area and the low-frequency area. Usually, 1 / 2 or 1 / 3 of the spectrum radius is used as the boundary radius. After testing, it is found that the detection accuracy is higher when 1 / 2 or 1 / 3 of the spectrum radius is used as the boundary radius, so the detection accuracy can be further improved. Of course, if the image resolution is too high or the noise level changes greatly, R can also be adjusted according to actual needs. low For example, for high-resolution images, R can be appropriately increased. low , in order to retain more mid- and high-frequency details, and for strong noise images, R can be appropriately reduced low , to suppress high frequency noise.
[0203] For example, if the image size is 512*512, the spectrum radius R 频谱 is 256. When 1 / 2 of the spectrum radius is taken as the boundary radius, the boundary radius R low =R 频谱 / 2=128;
[0204] Correspondingly, the above formula can be simplified as:
[0205] ;
[0206] S4: Determine the threshold range of the normal image through threshold training, and determine whether the image is a re-shot image according to a preset judgment logic.
[0207] When determining the threshold range of normal images through threshold training, use a training set containing multiple normal images and multiple re-photographed images. For example, a training set of 1,000 normal images and 1,000 re-photographed images can be used to count the proportion of high-frequency energy. and peak intensity The distribution of , and the classification boundary of the threshold T is determined by the following formula:
[0208]
[0209] in,
[0210] is the feature mean of the normal image;
[0211] is the standard deviation of the normal image;
[0212] When judging whether an image is a re-photographed image according to the preset judgment logic, the preset judgment logic satisfies:
[0213] (1) If ≥T and there are at least two significant periodic peaks, it is determined to be a re-shot image;
[0214] (2) Otherwise, it is judged as a normal image.
[0215] The false detection rate can be reduced through the above double - condition determination mechanism (the false detection rate is < 2% verified by experiments).
[0216] For those skilled in the art, it is obvious that the present invention is not limited to the details of the above - mentioned exemplary embodiments, and without departing from the spirit or basic characteristics of the present invention, the present invention can be implemented in other specific forms. Therefore, from any point of view, the embodiments should be regarded as exemplary and non - restrictive. The scope of the present invention is defined by the appended claims rather than the above description. Therefore, all changes falling within the meaning and scope of the equivalent elements of the claims are intended to be embraced within the present invention. Any reference signs in the claims should not be construed as limiting the claims involved.
Claims
1. A method for identifying re-photographed images based on moiré analysis, characterized in that: The following steps are involved: S1: preprocess the image; S2: Convert the image from the spatial domain to the frequency domain and perform spectrum centering processing on it to obtain the frequency domain energy distribution corresponding to the image; S3: Analyze the frequency domain energy distribution to obtain the energy corresponding to the moiré feature, and then obtain the energy proportion corresponding to the moiré feature; S4: determining the threshold range of a normal image through threshold training, and judging whether the image is a re-photographed image according to a preset judgment logic; In the step S4, When determining the threshold range of normal images through threshold training, a training set containing multiple normal images and multiple re-photographed images is used to count the proportion of high-frequency energy. and peak intensity The distribution of , and the classification boundary of the threshold T is determined by the following formula: ; in, is the characteristic mean value of the normal image; is the standard deviation of the normal image; When judging whether an image is a re-photographed image according to the preset judgment logic, the preset judgment logic satisfies: (1) If ≥T and there are at least two significant periodic peaks, it is determined to be a re-shot image; (2) Otherwise, it is judged as a normal image.
2. The method for identifying a photographed image based on moiré analysis according to claim 1, wherein: The step S1 at least includes the following steps: S1.1: Convert the color image to grayscale image; S1.2: Filter and reduce noise on the grayscale image; S1.3: Enhance the contrast of the image.
3. The method for recognizing a photographed image based on moiré analysis according to claim 2, wherein: In step S1.1, the RGB color image is converted into a grayscale image using a weighted average method, and the conversion is performed according to the following formula: ; in, (x, y) represents the luminance value of the converted grayscale image at the coordinate (x, y), and the value range is 0 to 255; R(x, y), G(x, y), and B(x, y) represent the brightness values of the red, green, and blue channels of the original color image at the coordinate (x, y), respectively, and the value range is 0~255.
4. The method for identifying a reproduced image based on moiré analysis according to claim 2, characterized in that: The step S1.2 includes the following steps: S1.21: Use a two-dimensional Gaussian kernel function to convolve the grayscale image and define the convolution function as: ; in, g represents the Gaussian function; x and y represent the two-dimensional coordinates of each point in the kernel; represents the standard deviation of the Gaussian kernel function; S1.22: Verify the grayscale image after filtering and noise reduction by using the signal-to-noise ratio: compare the signal-to-noise ratio of the grayscale image after this processing with the preset signal-to-noise ratio corresponding to the same standard deviation: When the current signal-to-noise ratio is not lower than the preset signal-to-noise ratio, the verification is deemed to have passed; otherwise, the verification is deemed to have failed.
5. The method for identifying a reproduced image based on moiré analysis according to claim 2, characterized in that: In step S1.3, the contrast of the image is enhanced by: S1.31: Divide the image into multiple sub-regions; S1.32: Perform histogram equalization on each sub-region independently; S1.33: Eliminate block boundary effects by bilinear interpolation.
6. The method for recognizing a photographed image based on moiré analysis according to claim 1, wherein: In the step S2, when converting the image from the spatial domain to the frequency domain, perform a two-dimensional fast Fourier transform operation on the preprocessed image according to the following formula to obtain a frequency domain complex matrix : ; in, (x, y) represents the luminance value of the converted grayscale image at the coordinate (x, y), and the value range is 0 to 255; N and M are the length and width of the image respectively; and are frequency domain coordinates; is the imaginary unit, representing the imaginary part of a complex number, and satisfies j 2 = -1.
7. A method for recognizing a photographed image based on moiré analysis according to claim 6, characterized in that: In step S2, when performing spectrum centering processing, the zero-frequency component in the obtained frequency domain complex matrix is moved to the center of the spectrum according to the following formula: ; in, Indicates the frequency-domain complex matrix after centering processing.
8. A method for identifying a rephotographed image based on moiré analysis according to claim 1, characterized in that: In the step S3, when obtaining the energy corresponding to the moiré pattern feature, with the spectrum center as the origin, calculate the energy integral at different angles according to the following formula as follows: ; in, ; is the energy integral; is the angle of the integration direction, and the range satisfies [0°, 180°] with a step size of 1°; Denote the complex matrix in the frequency domain after centering processing; r represents the mirror distance from the center of the spectrum to the target point, unit: pixel; Then the energy integral is normalized and calculated: If there is a significant periodic peak, it is determined to be a moiré feature; If there is no significant periodic peak, it is determined that it is not a moiré feature.
9. The method for identifying a photographed image based on moiré analysis according to claim 8, characterized in that: In step S3, the energy proportion corresponding to the moiré feature is obtained according to the following steps: The high-frequency area is defined as the outer ring of the spectrum, and its energy proportion is calculated according to the following formula: ; in, is the energy ratio in the high-frequency region; represents the sum of the energies of all frequency domain points within the high-frequency region; It represents the sum of the energies of all frequency domain points within the entire frequency domain.
Citation Information
Patent Citations
Multi-scale fusion certificate copying recognition method and device, electronic equipment and medium
CN113837310A
Identity card copying identification method and device, computer readable medium and electronic equipment
CN116503883A