A method and apparatus for detecting a certificate sticker attack

By converting document images into monochrome images and performing edge detection, and utilizing CMYK color mode and feature analysis, the method identifies texture attacks on counterfeit documents, solving the problem of difficulty in identifying counterfeit documents in existing technologies and achieving efficient document anti-counterfeiting capabilities.

CN116740105BActive Publication Date: 2026-11-27ALIPAY (HANGZHOU) INFORMATION TECH CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202310576977.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-05-18
Publication Date
2026-11-27
Estimated Expiration
2043-05-18

AI Technical Summary

Technical Problem

Existing identity verification systems are vulnerable to fraud when they remotely obtain images of people's identification documents. They are difficult to effectively identify forged document images and thus infringe on the rights of document owners.

Method used

By converting the image to be detected into a monochrome image, edge detection and extraction are performed to identify suspicious edges and determine whether the image is a texture-attacked image. By utilizing the CMYK color mode and the feature differences of different color channels, features such as dot size and angle are analyzed to distinguish texture-attacked documents from original genuine documents.

Benefits of technology

It improves the efficiency of document anti-counterfeiting detection, effectively blocks most document sticker attacks, and protects users' rights from malicious infringement.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116740105B_ABST
    Figure CN116740105B_ABST
Patent Text Reader

Abstract

The embodiment of the specification discloses a kind of detection certificate map attack method, comprising the following steps: obtaining image to be detected;According to the image to be detected, monochrome image is generated;Edge detection is carried out to monochrome image, and extract several edges in monochrome image, generate target image;Suspicious edge identification processing is carried out to target image, and whether the image to be detected is map attack image according to the suspicious edge identification result of target image judges.The corresponding detection certificate map attack device is also disclosed, which comprises: an acquisition unit for obtaining an image to be detected;Monochrome image generation unit for generating monochrome image according to the image to be detected;Detection extraction unit for edge detection of monochrome image, and extracting several edges in monochrome image to generate target image;Identification and judgment unit for suspicious edge identification processing of target image, and whether the image to be detected is map attack image according to the suspicious edge identification result of target image judges.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This specification includes examples of image processing techniques, and in particular, a method and apparatus for detecting document image patch attacks. Background Technology

[0002] With the continuous development of a credit-based society, more and more application scenarios require the use of technologies such as document recognition and facial recognition to verify user identity, covering fields such as finance, insurance, and security.

[0003] However, some existing identity verification systems, in order to simplify the identification process and reduce the procurement cost of dedicated equipment, adopt a method of verifying personnel identity by remotely acquiring images of personal identification documents. This method has certain problems; namely, it allows for the use of improper means to bypass the identity verification system, thereby infringing upon the rights of the document holder.

[0004] However, these acts of fraud by forging certificates through improper means bring great risks and losses to users.

[0005] Forgery methods typically involve altering genuine documents. This type of forgery is considered a relatively difficult area in document recognition, as it is hard to detect with simple recognition algorithms. Summary of the Invention

[0006] One of the objectives of the embodiments in this specification is to provide a method for detecting document sticker attacks. This method can improve the detection efficiency of document anti-counterfeiting, effectively defend against malicious sticker attacks, and protect the rights and interests of users from malicious infringement.

[0007] In accordance with the above objectives, this specification provides an embodiment of a method for detecting document image attacks, comprising the following steps:

[0008] Acquire the image to be detected;

[0009] Generate a monochrome image based on the image to be detected;

[0010] Edge detection is performed on the monochrome image, and several edges in the monochrome image are extracted to generate a target image;

[0011] The target image is subjected to suspicious edge recognition processing, and the image to be detected is determined to be a texture-attack image based on the suspicious edge recognition results of the target image.

[0012] In the embodiments of this specification, the image to be detected is converted into monochrome images of different channels. By analyzing the dot size, dot angle, and DPI (dots per inch) in the monochrome images, the textured document can be distinguished from the original genuine document to the greatest extent. Due to differences in the hollowing, external pasting, and printing techniques, textured documents may have lines that differ from the original genuine document. Image preprocessing is then performed under different color channels to facilitate edge detection and extraction. By identifying relevant edges, the document detection results are judged, thereby intercepting most document texture attacks and enhancing the document's anti-counterfeiting capabilities.

[0013] Furthermore, in some embodiments of this specification, the step of generating a monochrome image includes generating a monochrome image based on the CMYK color mode of the image to be detected.

[0014] Generally, in the CMYK color model, C represents Cyan, M represents Magenta, Y represents Yellow, and K represents Black. In CMYK color mode, an image can be decomposed into four monochrome channels: cyan, magenta, yellow, and black.

[0015] Furthermore, in some embodiments of this specification, before performing edge detection on the monochrome image, the following steps are included:

[0016] The monochrome image is subjected to image edge enhancement processing;

[0017] The image edge enhancement process includes highlighting the boundary lines of adjacent regions with different distinguishing features within the monochrome image;

[0018] The distinguishing features include at least one of image grayscale features, image brightness features, image hue features, and image saturation features.

[0019] Furthermore, in some embodiments of this specification, edge detection of the monochrome image includes the following steps:

[0020] The monochrome image is input into the constructed HED edge detection model for edge detection and extraction to obtain the target image;

[0021] Alternatively, the monochrome image can be input into a constructed structural forest edge detection model for edge detection and extraction to obtain the target image.

[0022] Furthermore, in some embodiments of this specification, edge detection of the monochrome image includes the following steps:

[0023] Based on the grayscale values ​​of each dot in the grayscale image converted from the monochrome image, edges are formed through non-maximum suppression.

[0024] Based on the hysteresis threshold, strong edges above the hysteresis threshold and weak edges below the hysteresis threshold are obtained, wherein the hysteresis threshold is the average gray value of all dots in the grayscale image.

[0025] Edge detection is achieved by filtering out non-continuous weak edges.

[0026] Furthermore, in some embodiments of this specification, the target image includes a face image, and the process of identifying suspicious edges in the target image includes performing suspicious edge identification processing on the face region within the target image and the adjacent regions of the face region.

[0027] Furthermore, in some more specific embodiments of this specification, determining whether the image to be detected is a texture-attack image based on the suspicious edge recognition result of the target image specifically includes:

[0028] Determine the shape formed by the identified suspicious edges;

[0029] The shape is used to determine whether the image to be detected is a texture-attack image.

[0030] Furthermore, in some embodiments of this specification, determining whether the image to be detected is a texture-attack image based on the shape specifically includes:

[0031] Determine whether the shape is a preset geometric shape;

[0032] If so, the image to be detected is determined to be a texture-attack image.

[0033] In some specific implementations, the geometry can be a circle, rectangle, trapezoid, or other common geometric shapes.

[0034] Furthermore, in some embodiments of this specification, determining whether the image to be detected is a texture-attack image based on the shape specifically includes:

[0035] When the shape is a connected topology line, determine whether the length of the connected topology line is greater than a set threshold;

[0036] If so, the image to be detected is determined to be a texture-attack image.

[0037] Furthermore, in some more specific embodiments of this specification, edge detection is performed on the monochrome image, and several edges in the monochrome image are extracted to generate a target image, specifically including:

[0038] For each generated monochrome image, edge detection is performed on the monochrome image to extract several edges in the monochrome image and generate the target image corresponding to the monochrome image;

[0039] Determining whether the image to be detected is a texture-attack image based on the suspicious edge recognition results of the target image specifically includes:

[0040] Based on the suspicious edge recognition results of the target image corresponding to each monochrome image, it is determined whether the image to be detected is a texture-attack image.

[0041] Another objective of this specification is to provide a device for detecting document texture attacks. This device can convert the image to be detected into different channels of a monochrome image and analyze features such as dot size, dot angle, and dots per inch (DPI) in the monochrome image to distinguish textured documents from original genuine documents to the greatest extent possible. Original genuine documents have boundaries with vertical lines and topologically connected lines; however, textured documents have irregular lines at the edges due to the presence of the texture. Therefore, image preprocessing is required in different color channels to facilitate edge detection and extraction. By identifying relevant edges and judging the document detection results, most document texture attacks can be blocked, thereby strengthening the anti-counterfeiting capabilities of documents.

[0042] In accordance with the above objectives, embodiments of this specification also provide a device for detecting document image attacks, comprising:

[0043] The acquisition unit is used to acquire the image to be detected;

[0044] A monochrome image generation unit is used to generate a monochrome image based on the image to be detected;

[0045] The detection and extraction unit is used to perform edge detection on the monochrome image and extract several edges in the monochrome image to generate a target image;

[0046] The identification and judgment unit is used to perform suspicious edge identification processing on the target image, and to determine whether the image to be detected is a texture attack image based on the suspicious edge identification result of the target image.

[0047] Furthermore, in some specific embodiments, the device for detecting document sticker attacks also includes a collection unit connected to one end of the acquisition unit, used by the camera device to collect the image to be detected.

[0048] Furthermore, in some specific embodiments, the monochrome image generation unit is used to generate a monochrome image based on the CMYK color mode of the image to be detected.

[0049] Furthermore, in some specific embodiments, one end of the detection and extraction unit is also connected to the image edge enhancement processing unit for performing image edge enhancement processing on the monochrome image; the image edge enhancement processing includes highlighting the boundary lines of adjacent regions with different distinguishing features within the monochrome image; wherein, the distinguishing features include at least one of image grayscale features, image brightness features, image hue features, and image saturation features.

[0050] Furthermore, in some specific embodiments, the detection and extraction unit performs edge detection on the monochrome image using the following steps:

[0051] The monochrome image is input into the constructed HED edge detection model for edge detection and extraction to obtain the target image;

[0052] Alternatively, the monochrome image can be input into a constructed structural forest edge detection model for edge detection and extraction to obtain the target image.

[0053] Furthermore, in some specific embodiments, the target image includes a face image, and the process of identifying suspicious edges in the target image includes performing suspicious edge identification processing on the face region within the target image and the adjacent regions of the face region.

[0054] Furthermore, in some more specific embodiments, the identification and judgment unit includes a function for determining whether the image to be detected is a texture-attack image based on the shape, specifically including:

[0055] Determine whether the shape is a preset geometric shape;

[0056] If so, then the image to be detected is determined to be a texture-attack image;

[0057] Alternatively, when the shape is a connected topology line, determine whether the length of the connected topology line is greater than a set threshold.

[0058] If so, the image to be detected is determined to be a texture-attack image.

[0059] The geometric shape can be a circle, rectangle, trapezoid, or other common geometric figures.

[0060] Another object of the embodiments of this specification is to provide a readable storage medium having a computer program stored thereon, wherein when the computer program is executed in a computer, the calculator executes the program to implement the method described above.

[0061] Another object of the embodiments of this specification is to provide an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement the methods described above.

[0062] The beneficial effect of the document texture-based attack detection method described in this specification lies in extracting monochrome channel images of different color channels from the document image to be tested, and analyzing features such as dot size, dot angle, and dots per inch (DPI) in each monochrome image. These features are then configured to maximize the differentiation between counterfeit documents with textures and genuine documents. The counterfeit image detection method provided in this specification recognizes that original documents exhibit obvious cropping and overlay marks at the edges, while textured documents have irregular lines at the edges due to the presence of the texture. Therefore, image preprocessing is required in different color channels to facilitate edge detection and extraction. By identifying relevant edges and judging the document detection results, most document texture-based attacks can be blocked, thereby strengthening the document's anti-counterfeiting capabilities.

[0063] The document texture attack detection device described in the embodiments of this specification also has the above-mentioned beneficial effects. Attached Figure Description

[0064] Figure 1 The illustration shows a scenario diagram of one implementation of a method for detecting document image attacks as described in the embodiments of this specification.

[0065] Figure 2 The diagram shows a flowchart of some implementations of a method for detecting document image attacks as described in the examples of this specification.

[0066] Figure 3 The illustration shows a flowchart of a method for detecting document image attacks described in this specification applied to some implementations.

[0067] Figure 4 This document exemplarily illustrates a schematic diagram of one embodiment of a device for detecting document image attacks as described in the embodiments of this specification. Detailed Implementation

[0068] The method and apparatus for detecting document image attacks described in this specification will be further described in detail below with reference to the accompanying drawings and specific embodiments. However, this detailed description does not constitute a limitation on the embodiments of this specification.

[0069] The following embodiments use the detection of document texture attacks as an example to illustrate the solution. However, the method and apparatus for detecting document texture attacks provided in the embodiments of this specification are not limited to detecting document texture attacks, and the following embodiments are not intended to limit the application scenarios of this solution.

[0070] In one embodiment of this specification, a method for detecting document image-based attacks is proposed. Figure 1 An exemplary schematic diagram of a scenario in one implementation of the document image detection attack method described in the embodiments of this specification is shown.

[0071] The following image-covering attack can be a method of identity theft or document information theft. For example, an identity thief steals another person's real ID and overlays their own facial image onto the victim's ID. If real-person authentication cannot detect the forged image overlaid on the ID, the thief can steal the victim's document information to complete real-person authentication, thereby infringing on the victim's legitimate rights.

[0072] The following image-covered documents may be counterfeit documents with facial images overlaid, while the following original documents may be legitimate documents without facial overlays.

[0073] To address the aforementioned issues, this specification provides a method for detecting document image attacks in one embodiment.

[0074] Figure 2 This document illustrates a flowchart of one implementation of a method for detecting document image attacks as described in the embodiments of this specification.

[0075] like Figure 2 As shown, this method first acquires a photo of the ID card and maps it to the CMYK four-color channels, then performs image enhancement processing on each channel. Next, edge detection and extraction are performed, and pattern recognition and classification are applied to the edges. The scoring method includes classifying the facial region as having vertical or horizontal lines, and scoring the probability of detecting topological closed loop regions in the facial region. Finally, ID cards exceeding the mapping threshold are judged as malicious ID cards.

[0076] Figure 3 An exemplary flowchart of one implementation of a method for detecting document image attacks described in the embodiments of this specification is shown.

[0077] like Figure 3 As shown, in some embodiments, an attack method for detecting ID card stickers may include the following steps when detecting ID card stickers:

[0078] 100: Acquire the image to be detected;

[0079] The image to be detected can be a photograph of the document to be detected.

[0080] 102: Generate a monochrome image based on the image to be detected;

[0081] In some specific embodiments, the step of generating a monochrome image includes generating a monochrome image based on the CMYK color mode of the image to be detected.

[0082] Generally, in the CMYK color model, C represents Cyan, M represents Magenta, Y represents Yellow, and K represents Black. In CMYK color mode, an image can be decomposed into four monochrome channels: cyan, magenta, yellow, and black. In color printing of identification documents, the generation of a color image is achieved by adjusting the dot size and angle of the four CMYK channels; this is the fundamental principle of color printing.

[0083] After mapping the collected ID photo to the CMYK channel, the textured ID photo can be distinguished from the original ID photo, because the dot size and angle of the original ID photo are different from those of the textured ID photo.

[0084] 104: Perform edge detection on the monochrome image and extract several edges from the monochrome image to generate the target image;

[0085] In some specific embodiments, image edge processing is required before edge detection is performed on the monochrome image.

[0086] In some more specific implementations, image edge enhancement processing may include highlighting the boundary lines of adjacent regions with different distinguishing features within a monochrome image.

[0087] In some more specific embodiments, the distinguishing features may include at least one of image grayscale features, image brightness features, image hue features, and image saturation features.

[0088] In some more specific implementations, edge enhancement can be performed using gamma transform, piecewise linear transform, or histogram equalization.

[0089] Gamma transform is a non-linear image transformation method that can enhance image contrast, especially for enhancing details in dark areas. By exponentially calculating the pixel intensity of the original image, it can be mapped to a certain range of output values. This makes pixel values ​​that were originally similar more widely distributed in the output image, enhancing the dynamic range of the image and helping to highlight some detailed features and texture information in the image, thereby achieving the effect of edge feature enhancement.

[0090] Piecewise linear transformation can be viewed as a composite transformation consisting of multiple linear transformations. It's equivalent to applying different linear stretching and compression to the pixel intensity of an image, thereby adjusting brightness and contrast. Using piecewise linear transformation, it's possible to flexibly adjust different brightness areas, such as enhancing high-brightness areas, compressing dark details, and adjusting intermediate grayscale values. In edge processing, piecewise linear transformation is often used to make different adjustments to these areas, making edge features more prominent while preserving some features of the original image.

[0091] Histogram equalization is a common image processing method that adjusts the global contrast and brightness of an image, making it clearer and brighter. This method primarily works by adjusting the distribution of pixel values ​​to ensure a relatively balanced number of pixels at each brightness level, thereby enhancing image contrast, detail, and overall image quality. In edge processing, histogram equalization can enhance grayscale contrast, making edge features clearer and thus improving edge detection and enhancement, ultimately improving image recognition and segmentation capabilities.

[0092] In some specific embodiments, edge detection of a monochrome image may include the following steps:

[0093] The monochrome image is input into the constructed HED edge detection model for edge detection and extraction to obtain the target image;

[0094] Alternatively, the monochrome image can be input into a constructed structural forest edge detection model for edge detection and extraction to obtain the target image;

[0095] Alternatively, the monochrome image can be input into the constructed Canny algorithm for edge detection and extraction to obtain the target image.

[0096] Among them, HED (Holistically-Nested Edge Detection) is an edge detection algorithm based on convolutional neural networks. Its main idea is to predict the edge response values ​​of pixels through multi-layer convolutional networks and combine these response values ​​into the final edge image.

[0097] Structural forests are a type of decision tree-based classifier, consisting of multiple decision trees, each classifying the input data. Random forests are a special type of forest structure that constructs multiple decision trees by randomly selecting samples and features, and then uses a voting method to integrate the classification results of these decision trees. Random forest algorithms have high robustness and accuracy, and can effectively handle high-dimensional data and noise.

[0098] The Canny algorithm, as an edge detection algorithm, identifies edges in an image through multiple steps. The steps of applying the Canny algorithm in edge detection are as follows: First, the image is Gaussian filtered to smooth it and remove noise. Then, the gradient magnitude and direction of each pixel in the image are calculated to determine if the pixel is on an edge. After determining if a pixel is on an edge, non-maximum suppression is applied to the gradient magnitude to eliminate noise on the edge. Next, double threshold detection is used to determine which edges are true edges. If the gradient value of an edge is greater than the high threshold, it is considered a strong edge; if the gradient value is less than the low threshold, it is considered a weak edge; if the gradient value is between the two thresholds, it is considered a possible edge. Finally, strong edges and possible edges are connected to form a complete edge. 。

[0099] In some more specific embodiments, edge detection on a monochrome image may include the following steps: converting the monochrome image to a grayscale image and obtaining the grayscale value of each pixel. Maximizing the grayscale differences between pixels in the grayscale image to form edges. This can be achieved using a non-maximum suppression algorithm, which searches the grayscale values ​​of pixels surrounding each pixel to determine if the pixel is on an edge. Based on a hysteresis threshold, edges are categorized as strong or weak. The hysteresis threshold is the average grayscale value of all pixels in the grayscale image; edges above this threshold are considered strong edges, and those below are weak edges. Discontinuous weak edges are removed, retaining only weak edges continuous with strong edges. This ensures the continuity and accuracy of the edge detection results.

[0100] 106: Perform suspicious edge recognition processing on the target image, and determine whether the image to be detected is a texture attack image based on the suspicious edge recognition results of the target image.

[0101] In some specific embodiments, suspicious edge recognition processing is performed on the target image, where the target image includes a face image. This process includes suspicious edge recognition processing on the face region and its neighboring regions within the target image.

[0102] In some more specific embodiments, the detection of an image is determined based on the results of suspicious edge recognition of the target image. The specific determination process includes identifying the shape formed by the identified suspicious edges, and then determining whether the image to be detected is a texture-attached attack image based on the shape formed by the suspicious edges.

[0103] Furthermore, in some more specific embodiments, it is determined whether the shape is a preset geometric shape; if so, the image to be detected is determined to be a texture attack image. When the shape is a connected topology line, it is determined whether the length of the connected topology line is greater than a set threshold; if so, the image to be detected is determined to be a texture attack image.

[0104] In some more specific implementations, the geometry can be a circle, rectangle, trapezoid, or other common geometric shapes.

[0105] In some more specific embodiments, edge detection is performed on the monochrome image, and several edges in the monochrome image are extracted to generate a target image. The specific processing includes performing edge detection on each generated monochrome image to extract several edges and generate the corresponding target image. Based on the suspicious edge recognition results of the target image corresponding to each monochrome image, it is determined whether the image to be detected is a texture-attack image.

[0106] Figure 4 This diagram illustrates a structural schematic of one embodiment of a device for detecting document image attacks as described in this specification.

[0107] like Figure 4 As shown, in some other embodiments, a device for detecting document image attacks is also provided, which includes an acquisition unit, a monochrome image generation unit, a detection and extraction unit, and an identification and judgment unit.

[0108] The unit includes an acquisition unit for acquiring an image to be detected; a monochrome image generation unit for generating a monochrome image based on the image to be detected; an detection extraction unit for performing edge detection on the monochrome image and extracting several edges from the monochrome image to generate a target image; and an identification and judgment unit for identifying suspicious edges in the target image and determining whether the image to be detected is a texture-attack image based on the suspicious edge identification results of the target image.

[0109] In some more specific embodiments, the acquisition unit may further include a collection unit connected to one end of the acquisition unit, which is used by the camera device to collect the image to be detected.

[0110] In some more specific embodiments, the monochrome image generation unit can generate a monochrome image based on the CMYK color mode of the image to be detected.

[0111] In some more specific embodiments, one end of the detection and extraction unit is connected to the image edge enhancement processing unit. The image edge enhancement processing unit is used to perform image edge enhancement processing on the monochrome image. This processing includes highlighting the boundary lines of adjacent regions within the monochrome image that have different distinguishing features, wherein the distinguishing features include at least one of image grayscale features, image brightness features, image hue features, and image saturation features. The detection and extraction unit is used to perform edge detection on the monochrome image, including inputting the monochrome image into a constructed HED edge detection model or a structured forest edge detection model for edge detection and extraction to obtain the target image.

[0112] In some more specific embodiments, the identification and judgment unit performs suspicious edge recognition processing on the target image containing the face image, which may include processing the face region and the adjacent region.

[0113] In some more specific implementations, the identification and judgment unit may determine whether the image to be detected is a texture attack image by: determining whether the shape is a preset geometric shape, and if so, determining that it is a texture attack image; or determining whether the length of the connected topology lines is greater than a set threshold, and if so, determining that it is a texture attack image.

[0114] In other specific embodiments, a readable storage medium is also provided, on which a computer program is stored, which, when executed in a computer, causes the computer to perform the steps of the method described above.

[0115] In some other specific embodiments, an electronic device is also provided, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement the method described above.

[0116] Therefore, this manual demonstrates that the four-channel color separation process used in printing can effectively distinguish textured ID cards from the original ID cards. Different ID cards have different dot sizes, dot angles, and DPI in their CMYK color modes. Due to differences in the techniques used for cutouts, external application, and printing, textured ID cards often exhibit vertical lines and topologically connected lines at the edges of the original genuine ID card. By performing edge enhancement and edge detection in four channels, this process can intercept various texture attacks, including those involving ID photo textures, round-face cutouts, hole-punch cutouts, and other common texture attacks.

[0117] The various embodiments in this specification are described in a progressive manner. Similar or identical parts between embodiments can be referred to interchangeably. Each embodiment focuses on describing the differences from other embodiments. In particular, the system embodiments are basically similar to the method embodiments, so the description is relatively simple; relevant parts can be referred to the descriptions in the method embodiments.

[0118] The foregoing has described specific embodiments of this specification. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recited in the claims may be performed in a different order than that shown in the embodiments and may still achieve the desired result. Furthermore, the processes depicted in the drawings do not necessarily require the specific or sequential order shown to achieve the desired result. In some embodiments, multitasking and parallel processing are possible or may be advantageous.

[0119] It should be noted that the above examples are merely specific embodiments of the present invention, and the present invention is obviously not limited to the above embodiments, with many similar variations. All modifications that can be directly derived or conceived by those skilled in the art from the content disclosed in this invention should fall within the protection scope of this invention.

Claims

1. A method for detecting document image-based attacks, comprising the following steps: Acquire the image to be detected; In CMYK color mode, the image to be detected is decomposed into monochrome images in C channel, M channel, Y channel and K channel; The monochrome image is subjected to image edge enhancement processing, which includes highlighting the boundary lines of adjacent regions with different distinguishing features within the monochrome image; Edge detection is performed on the monochrome image, and several edges in the monochrome image are extracted to generate a target image; The target image is subjected to suspicious edge recognition processing. If the identified suspicious edges form a preset geometric shape, or if the shape formed by the identified suspicious edges is a connected topological line and the length of the connected topological line is greater than a set threshold, the image to be detected is determined to be a texture attack image.

2. The method for detecting document image attacks as described in claim 1, wherein, The distinguishing features include at least one of image grayscale features, image brightness features, image hue features, and image saturation features.

3. The method for detecting document image attacks as described in claim 1, wherein edge detection of the monochrome image includes the following steps: The monochrome image is input into the constructed HED edge detection model for edge detection and extraction to obtain the target image; or, The monochrome image is input into the constructed structural forest edge detection model for edge detection and extraction to obtain the target image.

4. The method for detecting document image attacks as described in claim 1, wherein edge detection of the monochrome image includes the following steps: Based on the grayscale values ​​of each dot in the grayscale image converted from the monochrome image, edges are formed through non-maximum suppression. Based on the hysteresis threshold, strong edges above the hysteresis threshold and weak edges below the hysteresis threshold are obtained, wherein the hysteresis threshold is the average gray value of all dots in the grayscale image; edge detection is completed by filtering out non-continuous weak edges.

5. The method for detecting document image attacks as described in claim 1, wherein the target image comprises: The process of identifying suspicious edges in the target image, specifically the face region, includes performing suspicious edge identification on the face region within the target image and its neighboring regions.

6. The method for detecting document image attacks as described in claim 1, wherein, The method involves performing edge detection on the monochrome image and extracting several edges from the monochrome image to generate a target image. Specifically, this includes performing edge detection on each generated monochrome image to extract several edges from the monochrome image and generating a target image corresponding to the monochrome image.

7. A device for detecting document image attacks, comprising: The acquisition unit is used to acquire the image to be detected; A monochrome image generation unit is used to decompose the image to be detected into monochrome images in C, M, Y and K channels under CMYK color mode; An image edge enhancement processing unit is used to perform image edge enhancement processing on the monochrome image, wherein the image edge enhancement processing includes highlighting the boundary lines of adjacent regions with different distinguishing features within the monochrome image; The detection and extraction unit is used to perform edge detection on the monochrome image and extract several edges in the monochrome image to generate a target image; The identification and judgment unit is used to identify suspicious edges in the target image. If the identified suspicious edges form a preset geometric shape, or if the shape formed by the identified suspicious edges is a connected topological line and the length of the connected topological line is greater than a set threshold, the image to be detected is determined to be a texture attack image.

8. The document image detection device as described in claim 7 further includes a collection unit connected to one end of the acquisition unit, used to collect the image to be detected by a camera device.

9. The device for detecting document image attacks as described in claim 7, wherein, The distinguishing features include at least one of image grayscale features, image brightness features, image hue features, and image saturation features.

10. The document image detection device as described in claim 7, wherein edge detection of the monochrome image comprises: The monochrome image is input into the constructed HED edge detection model for edge detection and extraction to obtain the target image; or, The monochrome image is input into the constructed structural forest edge detection model for edge detection and extraction to obtain the target image.

11. The device for detecting document image attacks as described in claim 7, wherein the target image includes a face image, and the process of identifying suspicious edges in the target image includes performing suspicious edge identification processing on the face region within the target image and the adjacent regions of the face region.

12. A computer-readable storage medium storing a computer program that, when executed by a processor, implements the method described in any one of claims 1-6.

13. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the program, it implements the method described in any one of claims 1-6.

Citation Information

Patent Citations

  • Method for detecting spliced and tampered images

    CN111062931A

  • Optimizing detection of images in relation to targets based on colorspace transformation techniques

    CN113853615A

  • Certificate image defect detection method and device

    CN114581359A