Voucher detection method and device, storage medium and equipment

Through depth estimation and low-light image enhancement processing, the accuracy and robustness of image voucher detection are improved, the problem of detection accuracy fluctuation under complex lighting conditions is solved, and a more efficient voucher detection effect is achieved.

CN118675188AActive Publication Date: 2024-09-20ALIPAY (HANGZHOU) INFORMATION TECH CO LTD
View PDF 7 Cites 0 Cited by

Patent Information

Application Number
CN202410651821.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-23
Publication Date
2024-09-20
Estimated Expiration
2044-05-23

AI Technical Summary

Technical Problem

It is difficult for the existing technology to effectively improve the detection accuracy and robustness in image voucher detection, especially under complex lighting conditions, the detection accuracy fluctuates greatly.

Method used

By performing depth estimation on the image to be detected, a depth feature map is generated, and low-light image enhancement is performed on it. After generating the enhanced image, voucher detection is performed, and depth features and enhanced image features are used for fusion feature extraction to improve the detection effect.

Benefits of technology

It improves the accuracy and robustness of image voucher detection, reduces the impact of different lighting conditions on detection results, and improves the detection capability under different lighting conditions.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118675188A
    Figure CN118675188A
Patent Text Reader

Abstract

The embodiment of the invention provides a voucher detection method and device, a storage medium and equipment, and the method comprises the steps: carrying out the depth estimation of a to-be-detected image, obtaining a depth feature map corresponding to the to-be-detected image, and generating a depth image based on the fusion of the depth feature map and the to-be-detected image, according to the method, the depth image is subjected to low-illumination image enhancement processing to obtain the enhanced image, and the voucher detection is carried out based on the enhanced image to obtain the voucher detection result, so that the voucher detection accuracy and robustness can be effectively improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to computer technology, and in particular to a credential detection method, device, storage medium and equipment. Background Art

[0002] With the advent of the digital age, various image credentials containing specific digital identification information are used for security authentication, identity authentication and other scenarios. When performing various authentication tasks through image credentials, it is necessary to detect and identify the digital identification information in the image credentials. In the related technology, there is an urgent need for a credential detection solution that can improve the accuracy of image credential detection and has good robustness. Summary of the invention

[0003] The purpose of the embodiments of this specification is to provide a credential detection method, apparatus, storage medium and device, which can effectively improve the accuracy and robustness of credential detection.

[0004] Other features and advantages of the present specification will become apparent from the following detailed description, or may be learned in part from the practice of the present specification.

[0005] According to a first aspect of an embodiment of this specification, a credential detection method is provided, the method comprising:

[0006] Performing depth estimation on the image to be detected to obtain a depth feature map corresponding to the image to be detected;

[0007] Generate a depth image based on the fusion of the depth feature map and the image to be detected;

[0008] Performing low-light image enhancement processing on the depth image to obtain an enhanced image;

[0009] Credential detection is performed based on the enhanced image to obtain a credential detection result.

[0010] In some example embodiments of the present specification, based on the foregoing solution, performing depth estimation on the image to be detected to obtain a depth feature map corresponding to the image to be detected includes:

[0011] Performing feature extraction processing on the image to be detected to obtain a plurality of first image features of different scales;

[0012] Performing multi-scale feature fusion processing on each of the first image features to obtain a plurality of second image features of different scales;

[0013] Performing feature fusion on the target first image feature with the smallest scale among the first image features and the target second image feature with the smallest scale among the second image features to obtain a fused image feature;

[0014] Depth estimation and prediction are performed based on the fused image features to obtain the depth feature map.

[0015] In some example embodiments of the present specification, based on the foregoing solution, performing depth estimation prediction based on the fused image features to obtain the depth feature map includes:

[0016] Based on each of the second image features, multi-level residual refinement prediction is performed on the fused image features to obtain the depth feature map.

[0017] In some example embodiments of the present specification, based on the foregoing solution, performing credential detection based on the enhanced image to obtain a credential detection result includes:

[0018] Extracting enhanced image features corresponding to the enhanced image based on a central difference convolution algorithm;

[0019] Credential detection is performed based on the enhanced image features to obtain the credential detection result.

[0020] In some example embodiments of the present specification, based on the above solution, performing low-light image enhancement processing on the depth image to obtain an enhanced image includes:

[0021] Perform brightness estimation based on the depth image to obtain brightness estimation information corresponding to the depth image;

[0022] The depth image is enhanced based on the brightness estimation information to obtain the enhanced image.

[0023] In some example embodiments of the present specification, based on the foregoing solution, performing image enhancement on the depth image based on the brightness estimation information to obtain the enhanced image includes:

[0024] Based on the brightness estimation information, the depth image is subjected to brightness information removal to obtain a brightness information removed image;

[0025] Extracting the brightness information to remove image visual features in the image;

[0026] The depth image and the image visual features are fused to obtain the enhanced image.

[0027] In some example embodiments of the present specification, based on the aforementioned solution, performing credential detection based on the enhanced image to obtain a credential detection result includes:

[0028] Extracting enhanced image features corresponding to the enhanced image based on a center difference convolution algorithm, and extracting brightness features corresponding to the brightness estimation information based on a center difference convolution algorithm;

[0029] The enhanced image feature and the brightness feature are fused to obtain a fused feature.

[0030] Credential detection is performed based on the fusion feature to obtain the credential detection result.

[0031] According to a second aspect of an embodiment of this specification, there is provided a credential detection device, comprising:

[0032] A depth estimation module, used to perform depth estimation on the image to be detected and obtain a depth feature map corresponding to the image to be detected;

[0033] An image fusion module, used to generate a depth image based on the fusion of the depth feature map and the image to be detected;

[0034] An image enhancement module, used to perform low-light image enhancement processing on the depth image to obtain an enhanced image;

[0035] The credential detection module is used to perform credential detection based on the enhanced image to obtain a credential detection result.

[0036] According to a third aspect of the embodiments of this specification, a storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the steps of any one of the methods described above are implemented.

[0037] According to a fourth aspect of an embodiment of this specification, there is provided an electronic device, comprising: a processor and a memory; wherein the memory stores computer-readable instructions, and the computer-readable instructions are suitable for being loaded by the processor and executing the steps of any one of the methods described above.

[0038] According to a fifth aspect of the embodiments of this specification, there is provided a computer program product having at least one instruction stored thereon, wherein when the at least one instruction is executed by a processor, the steps of any one of the methods described above are implemented.

[0039] The technical solutions provided by the embodiments of this specification may have the following beneficial effects:

[0040] The credential detection method in the example embodiment of the present specification performs depth estimation on the image to be detected to obtain a depth feature map corresponding to the image to be detected, fuses the depth feature map and the image to be detected to obtain a depth image containing depth information, and the depth information can improve the credential detection effect, then performs low-light image enhancement processing on the depth image to obtain an enhanced image, and finally performs credential detection based on the enhanced image to obtain a credential detection result, wherein low-light image enhancement can improve image quality and reduce the impact of different lighting conditions on the image. While improving the credential detection effect, it can also improve the robustness of credential detection for images to be detected under different lighting conditions. BRIEF DESCRIPTION OF THE DRAWINGS

[0041] The accompanying drawings herein are incorporated into and constitute a part of the specification, illustrate embodiments consistent with the specification, and together with the specification are used to explain the principles of the specification. Obviously, the accompanying drawings described below are only some embodiments of the specification, and for those of ordinary skill in the art, other accompanying drawings can be obtained based on these accompanying drawings without creative work.

[0042] Figure 1 A schematic diagram of an application scenario of a credential detection method is provided for an embodiment of this specification;

[0043] Figure 2 A flowchart of a credential detection method is provided for the embodiments of this specification;

[0044] Figure 3 A flowchart of a credential detection method is provided for the embodiments of this specification;

[0045] Figure 4 An example schematic diagram of image depth estimation is provided for the embodiments of this specification;

[0046] Figure 5 A flowchart of a credential detection method is provided for the embodiments of this specification;

[0047] Figure 6 A flowchart of a credential detection method is provided for the embodiments of this specification;

[0048] Figure 7 An example schematic diagram of a credential detection is provided for the embodiments of this specification;

[0049] Figure 8 A schematic diagram of the structure of a credential detection device provided in an embodiment of this specification;

[0050] Fig. 9 A schematic diagram of the structure of an electronic device provided in an embodiment of this specification. DETAILED DESCRIPTION

[0051] In order to make the purpose, technical solutions and advantages of this specification more clear, the technical solutions of this specification will be clearly and completely described below in combination with the specific embodiments of this specification and the corresponding drawings. Obviously, the described embodiments are only part of the embodiments of this specification, not all of them. Based on the embodiments in this specification, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this specification.

[0052] In addition, the drawings are only schematic illustrations of the present specification and are not necessarily drawn to scale. The same reference numerals in the figures represent the same or similar parts, and their repeated description will be omitted. Some of the block diagrams shown in the drawings are functional entities and do not necessarily correspond to physically or logically independent entities. These functional entities can be implemented in software form, or implemented in one or more hardware modules or integrated circuits, or implemented in different networks and / or processor devices and / or microcontroller devices.

[0053] In actual image credential detection application scenarios, complex and changing lighting conditions pose great difficulties for credential detection and recognition. Indoor, outdoor, day, night, backlight, reflection and other issues may cause huge fluctuations in detection accuracy. Therefore, the ability to flexibly cope with complex lighting conditions is the key to credential detection.

[0054] Based on this, the present specification proposes a credential detection method. According to this method, the depth of the image to be detected is estimated to obtain a depth feature map corresponding to the image to be detected, and the depth feature map and the image to be detected are fused to obtain a depth image containing depth information. The depth information can improve the credential detection effect. The depth image is then enhanced in low light to obtain an enhanced image. Finally, credential detection is performed based on the enhanced image to obtain a credential detection result. Among them, low light image enhancement can improve image quality and reduce the impact of different lighting conditions on the image. While improving the credential detection effect, it can also improve the robustness of credential detection for images to be detected under different lighting conditions.

[0055] The credential detection method provided in the embodiments of this specification can be applied to Figure 1 In the application environment shown. Among them, the terminal 01 communicates with the server 02 through the network. The data storage system can store the data that the server 02 needs to process. The data storage system can be integrated on the server 02, or it can be placed on the cloud or other servers. When the user of the terminal 01 needs to perform a credential detection, the image to be detected can be provided to the server 02, and the server 02 obtains the image to be detected and executes the credential detection method based on the image to be detected. Among them, the terminal 01 can be but is not limited to various desktop computers, laptops, smart phones, tablet computers, Internet of Things devices and portable wearable devices. The Internet of Things devices can be smart speakers, smart TVs, smart air conditioners, smart car-mounted devices, etc. Portable wearable devices can be smart watches, smart bracelets, head-mounted devices, etc. Server 02 can be implemented with an independent server or a server cluster or cloud server consisting of multiple servers.

[0056] See also Figure 2, which is a flowchart of a credential detection method according to an embodiment of the present specification. In an embodiment of the present specification, the credential detection method is applied to a credential detection device or an electronic device equipped with a credential detection device. In this embodiment, the electronic device equipped with the credential detection device may be a server. Figure 2 The process shown is described in detail, and the credential detection method may specifically include the following steps:

[0057] S102, performing depth estimation on the image to be detected to obtain a depth feature map corresponding to the image to be detected;

[0058] The image to be detected is an image that needs to be tested for credentials. The image to be detected can be acquired by the terminal device through a camera device, and the camera device can be independent of the terminal device or integrated on the terminal device. For example, the terminal device acquires the image to be detected through a camera device, and sends the image to be detected to a server equipped with a credential detection device to perform credential detection on the image to be detected.

[0059] In one or more embodiments of the present specification, after obtaining the image to be detected, depth estimation is first performed on the image to be detected. The depth estimation can extract the depth information corresponding to the image to be detected to obtain a depth feature map containing the depth information of the image to be detected.

[0060] The depth information may be the distance between each pixel in the image to be detected and the camera device during image acquisition.

[0061] Optionally, the depth estimation of the image to be detected can be implemented based on a deep learning depth estimation neural network model. Specifically, the image to be detected is input into the depth estimation neural network model, and the model operates on the image to be detected, predicts the depth information corresponding to each pixel in the image to be detected, and finally obtains a depth feature map.

[0062] S106, generating a depth image based on the fusion of the depth feature map and the image to be detected;

[0063] In one or more embodiments of the present specification, after obtaining a depth feature map corresponding to the image to be detected, the depth feature map and the image to be detected are fused to obtain a depth image containing depth information.

[0064] It can be understood that the image to be detected is a general RGB image, that is, each pixel in the image has its corresponding R (red) value, G (green) value and B (blue) value. The depth feature map includes the depth (depth, D) value corresponding to each pixel in the image to be detected. The image to be detected and the depth feature map are fused to obtain a four-channel depth image containing R (red) value, G (green) value, B (blue) value and D (depth) value.

[0065] S108, performing low-light image enhancement processing on the depth image to obtain an enhanced image;

[0066] In one or more embodiments of the present specification, after obtaining the fused four-channel depth image containing depth information, low-light image enhancement processing is performed on the depth image to obtain an enhanced image.

[0067] Among them, low-light image enhancement processing can improve image quality and reduce the impact of lighting conditions on image imaging quality.

[0068] S110, performing credential detection based on the enhanced image to obtain a credential detection result.

[0069] In one or more embodiments of the present specification, after obtaining the enhanced image, the enhanced image is input into a pre-trained credential detection model to perform credential detection on the enhanced image to obtain a credential detection result corresponding to the image to be detected.

[0070] The credential detection model proposed in one or more embodiments of this specification can be implemented based on convolutional neural networks (CNN), but is not limited to a specific CNN structure (such as ResNet, MobileNet, etc.), and can even be an RNN or Transformer structure.

[0071] In an embodiment of the present specification, depth estimation is performed on an image to be detected to obtain a depth feature map corresponding to the image to be detected, and the depth feature map and the image to be detected are fused to obtain a depth image containing depth information, which can improve the credential detection effect. The depth image is then subjected to low-light image enhancement processing to obtain an enhanced image, and finally credential detection is performed based on the enhanced image to obtain a credential detection result, wherein low-light image enhancement can improve image quality and reduce the impact of different lighting conditions on the image. While improving the credential detection effect, it can also improve the robustness of credential detection of images to be detected under different lighting conditions.

[0072] Optionally, when performing depth estimation on the image to be detected, monocular depth estimation, binocular depth estimation or multi-camera depth estimation can be used. Among them, monocular depth estimation can have a good depth estimation effect on the image using only a single image.

[0073] In one embodiment, a monocular depth estimation method is used to perform depth estimation on the image to be detected, and a depth feature map corresponding to the image to be detected is obtained. Specifically, a neural network model for depth estimation can be constructed and the model can be trained to perform monocular depth estimation on the image. Figure 3 , step S102 may include the following steps:

[0074] S1021, performing feature extraction processing on the image to be detected to obtain a plurality of first image features of different scales;

[0075] S1022, performing multi-scale feature fusion processing on each first image feature to obtain a plurality of second image features of different scales;

[0076] It should be noted that in one or more embodiments of the present specification, the depth estimation model may be a neural network model based on an encoder-decoder structure, wherein the encoder is used to extract image features of the image to be detected, and the decoder is used to perform depth estimation prediction based on the extracted features.

[0077] In the embodiment of the present specification, after the image to be detected is input into the depth estimation model, the image features of different scales corresponding to the image to be detected are first extracted based on the backbone network in the encoder. The backbone network can be connected in sequence by multiple layers of convolutional neural networks of different scales, and the image to be detected passes through the convolutional neural networks of different scales to obtain multiple first image features of different scales in sequence. Then, the multi-scale feature fusion module in the encoder performs feature fusion on the first image features of multiple different scales to obtain multiple second image features of different scales.

[0078] Among them, multi-scale feature fusion can capture feature information at different scales, thereby improving feature expression. Compared with features of a single scale, multi-scale feature fusion can produce more discriminative and robust features, thereby improving the depth estimation effect of the model; multi-scale feature fusion utilizes features from different scales for fusion to enrich the spatial information of the image content, thereby improving the accuracy and robustness of the model; features of different scales have different stabilities and robustness. By fusing them, the depth estimation model can be made more stable and robust, thereby improving its generalization ability and adaptability.

[0079] S1023, performing feature fusion on the target first image feature with the smallest scale among the first image features and the target second image feature with the smallest scale among the second image features to obtain a fused image feature;

[0080] S1024, performing depth estimation prediction based on the fused image features to obtain a depth feature map.

[0081] In the embodiment of the present specification, after obtaining the multi-scale first image features and the multi-scale second image features, the first target image features with the smallest scale and the second target image features with the smallest scale are connected and fused to obtain fused image features. Among them, the second target image features with the smallest scale among the second image features are image features that express the global layout representation. Finally, depth estimation prediction is performed based on the fused image features to obtain a depth feature map.

[0082] In the embodiments of the present specification, in the process of performing depth estimation on the image to be detected, multi-scale image features are extracted and feature fusion is performed on the multi-scale image features to obtain fused image features. The fused image features capture feature information of different scales and improve the feature effect, thereby ensuring the depth estimation effect of the depth estimation model.

[0083] In one embodiment, the depth estimation of the image to be detected can be specifically based on the SARPN algorithm. SARPN is a monocular depth estimation method based on a residual pyramid structure. The depth estimation model based on the residual pyramid is constructed and the model is trained to estimate the depth of the image. It should be noted that in this embodiment, it can be a neural network model based on an encoder-decoder structure. Among them, the encoder is used to extract the image features of the image to be detected, and the encoder includes a multi-scale feature fusion module; the decoder is used to perform depth estimation prediction based on the extracted features, and the decoder is based on a multi-layer residual refinement module.

[0084] Depth estimation is performed on the image to be detected based on the SARPN algorithm, which can specifically include: performing feature extraction processing on the image to be detected to obtain multiple first image features of different scales, then performing multi-scale feature fusion processing on each first image feature to obtain multiple second image features of different scales, performing feature fusion on the target first image feature with the smallest scale in each first image feature and the target second image feature with the smallest scale in each second image feature to obtain a fused image feature, and performing multi-level residual refinement prediction on the fused image feature based on each of the second image features to obtain the depth feature map.

[0085] Further explanation: the image to be detected is input into the depth estimation model. First, image features of different scales corresponding to the image to be detected are extracted based on the backbone network in the encoder. The backbone network can be composed of multiple layers of convolutional neural networks of different scales connected in sequence. The image to be detected passes through the convolutional neural networks of different scales to obtain multiple first image features of different scales in sequence. Then, the multi-scale feature fusion module in the encoder performs feature fusion on the multiple first image features of different scales to obtain multiple second image features of different scales. After obtaining the multi-scale first image features and the multi-scale second image features, the target first image feature with the smallest scale and the target second image feature with the smallest scale are connected and fused to obtain the fused image features. Among them, the target second image feature with the smallest scale among each second image feature is the image feature that expresses the global layout representation. After that, the multi-level residual refinement module in the encoder performs residual refinement processing on the fused image features according to each second image feature, wherein each level of residual refinement module can combine the second image feature and the fused image feature to predict the corresponding scale feature, and the next level can further predict a finer scale feature based on the rough scale feature predicted by the previous level according to another second image feature, and finally predict the depth feature map. Please refer to Figure 4 , is an example schematic diagram of an image depth estimation provided in an embodiment of this specification. Figure 4 As shown in the figure, the image to be detected is firstly extracted by the backbone network feature to obtain the first image features of different scales, and then each first image feature is fused by the multi-scale feature fusion module to obtain each second image feature, and the first image feature of the smallest scale and the second image feature of the smallest scale are fused by the conv*3 convolution layer to obtain the fused image feature, and finally the multi-level residual refinement module performs residual refinement processing on the fused image feature according to each second image feature to finally obtain the deep feature map.

[0086] See also Figure 5 , which is a flowchart of a credential detection method provided in the embodiment of this specification. It includes the following steps:

[0087] S202, performing depth estimation on the image to be detected to obtain a depth feature map corresponding to the image to be detected;

[0088] In one or more embodiments of the present specification, for step S202, please refer to the detailed description of step S102 in another embodiment of the present specification, which will not be repeated here.

[0089] S204, generating a depth image based on the fusion of the depth feature map and the image to be detected;

[0090] In one or more embodiments of the present specification, for step S204, please refer to the detailed description of step S104 in another embodiment of the present specification, which will not be repeated here.

[0091] S206, performing brightness estimation based on the depth image to obtain brightness estimation information corresponding to the depth image;

[0092] In one or more embodiments of the present specification, after obtaining a four-channel depth image including R (red) values, G (green) values, B (blue) values, and D (depth) values, firstly, brightness estimation is performed on the depth image to obtain brightness estimation information corresponding to the depth image. The brightness estimation information refers to the reflected light information corresponding to the depth image.

[0093] S208, performing image enhancement on the depth image based on the brightness estimation information to obtain an enhanced image;

[0094] According to the Retinex theory, the information about an object is composed of its incident light information and reflected light information. The incident light is reflected by the inherent reflective properties of the object itself to form an image. In the embodiments of this specification, the brightness estimation information refers to the reflected light information corresponding to the depth image. The depth image is enhanced based on the brightness estimation information. By removing the reflected light information on the surface of the depth image and retaining only the inherent properties of the object in the image, the image is enhanced while reducing the impact of lighting conditions on the image quality.

[0095] Furthermore, step S206 and step S208 may be implemented based on a low-light image enhancement model.

[0096] It should be noted that the depth image is a four-channel depth image including R (red) value, G (green) value, B (blue) value and D (depth) value. Therefore, a four-channel low-light image enhancement model is constructed, and the depth image is input into the low-light image enhancement model to enhance the depth image through the low-light image enhancement model to obtain an enhanced image.

[0097] S210, extracting enhanced image features corresponding to the enhanced image based on a center difference convolution algorithm;

[0098] Among them, the center difference convolution algorithm is a convolution operation, which uses the difference between the center pixel and the adjacent pixels to calculate the value of the new pixel. The center difference convolution algorithm replaces the value of each pixel with the difference between the pixel and its surrounding pixels. It can not only reduce the noise in the image, but also enhance the features in the image. In the embodiment of this specification, the enhanced image features corresponding to the enhanced image are extracted by the center difference convolution algorithm, so as to perform credential detection according to the enhanced image features and obtain the credential detection result.

[0099] During convolution, the center difference convolution is no longer the product of each weight of the convolution kernel and a corresponding pixel of the input, but the difference product of the weight of the convolution kernel and the value of the corresponding input pixel and the center pixel of the input area. As shown in the following formula:

[0100]

[0101] Among them, w refers to the weight, w 11 Refers to the weight corresponding to pixel 11, x refers to the pixel, and the subscript refers to the position number corresponding to each pixel.

[0102] S212, performing credential detection based on the enhanced image features to obtain a credential detection result.

[0103] Further, step S210 and step S212 can be implemented based on a pre-trained credential detection model. The credential detection model can include a feature extraction network based on center difference convolution and a credential detection network. The feature extraction network based on center difference convolution extracts image features corresponding to the enhanced image through a center difference convolution algorithm, and the credential detection network is used to perform credential detection based on the enhanced image features.

[0104] It should be noted that the credential detection method proposed in one or more embodiments of this specification can be used for detection tasks of the same type as credential detection, credential location detection, and credential authenticity detection.

[0105] In an embodiment of the present specification, depth estimation is performed on an image to be detected to obtain a depth feature map corresponding to the image to be detected, and the depth feature map and the image to be detected are fused to obtain a depth image containing depth information, which can improve the credential detection effect. The depth image is then subjected to low-light image enhancement processing to obtain an enhanced image, and finally credential detection is performed based on the enhanced image to obtain a credential detection result, wherein low-light image enhancement can improve image quality and reduce the impact of different lighting conditions on the image. While improving the credential detection effect, it can also improve the robustness of credential detection of images to be detected under different lighting conditions.

[0106] See also Figure 6 , which is a flowchart of a credential detection method provided in the embodiment of this specification. It includes the following steps:

[0107] S302, performing depth estimation on the image to be detected to obtain a depth feature map corresponding to the image to be detected;

[0108] In one or more embodiments of the present specification, for step S302, please refer to the detailed description of step S102 in another embodiment of the present specification, which will not be repeated here.

[0109] S304, generating a depth image based on the fusion of the depth feature map and the image to be detected;

[0110] In one or more embodiments of the present specification, for step S304, please refer to the detailed description of step S104 in another embodiment of the present specification, which will not be repeated here.

[0111] S306, performing brightness estimation based on the depth image to obtain brightness estimation information corresponding to the depth image;

[0112] In one or more embodiments of the present specification, after obtaining a four-channel depth image including R (red) values, G (green) values, B (blue) values, and D (depth) values, firstly, brightness estimation is performed on the depth image to obtain brightness estimation information corresponding to the depth image. The brightness estimation information refers to the reflected light information corresponding to the depth image.

[0113] According to the Retinex theory, the information about an object is composed of its incident light information and reflected light information. The incident light is reflected by the inherent reflective properties of the object itself to form an image. In the embodiments of this specification, the brightness estimation information refers to the reflected light information corresponding to the depth image. The depth image is enhanced based on the brightness estimation information. By removing the reflected light information on the surface of the depth image and retaining only the inherent properties of the object in the image, the image is enhanced while reducing the impact of lighting conditions on the image quality.

[0114] S308, removing brightness information from the depth image based on the brightness estimation information to obtain a brightness information removed image after the brightness information is removed;

[0115] The brightness estimation information is the reflected light information corresponding to the depth image. The depth image includes the reflected light information and the inherent attribute information of the object in the depth image. After the brightness estimation is performed on the depth image to obtain the brightness estimation information, the reflected light brightness information in the depth image is removed according to the estimated brightness estimation information to obtain a brightness information removed image. The brightness information removed image only contains the inherent attribute information of the object in the depth image.

[0116] S310, extracting brightness information to remove image visual features in the image;

[0117] It can be understood that the brightness information removed image only contains the inherent attribute information of the object in the depth image. By extracting the image visual features in the brightness information removed image, the image visual features that are independent of the lighting conditions are extracted.

[0118] S312, fusing the depth image and the image visual features to obtain an enhanced image;

[0119] By fusing the depth image and the extracted image visual features, the depth image is enhanced to obtain an enhanced image, which reduces the impact of lighting conditions on image quality and improves image quality.

[0120] Furthermore, step S306 and step S312 may be implemented based on a low-light image enhancement model.

[0121] It should be noted that the depth image is a four-channel depth image including R (red) value, G (green) value, B (blue) value and D (depth) value. Therefore, a four-channel low-light image enhancement model is constructed, and the depth image is input into the low-light image enhancement model to enhance the depth image through the low-light image enhancement model to obtain an enhanced image.

[0122] In a feasible implementation, the above-mentioned low-light image enhancement model may include a multi-stage cascaded low-light image enhancement module, the low-light image enhancement module including a brightness estimation unit and a self-calibration unit, and for low-light image enhancement modules at different stages, the output of the low-light image enhancement module at the previous stage is the input of the low-light image enhancement module at this stage, and the output of the low-light image enhancement module at this stage is the input of the low-light image enhancement module at the next stage. In the first stage, the input of the low-light image enhancement module is a depth image.

[0123] The brightness estimation unit is used to estimate the brightness of the input image in this stage and obtain the corresponding brightness estimation information. As shown below:

[0124] u t =H θ (x t ),x 0 =y;

[0125] x t+1 =x t +u t ;

[0126] Among them, x t Refers to the input of this stage, y is the depth image, u t is the residual, H θ is the illumination estimation network, x t+1 Lighting estimation information estimated for this stage.

[0127] The self-calibration unit is used to perform image calibration and image enhancement on the depth image according to the brightness estimation information output by the brightness estimation unit. As follows:

[0128] z t =y / x t ,

[0129] s t=K θ (z t ),

[0130] v t =y+s t ,

[0131] Among them, x t Refers to the input of this stage, y is the depth image, z t is the brightness information removed image after removing the brightness estimation information from the depth image at stage t, s t is the image visual feature extracted from the image with brightness information removed in the tth stage, v t According to the image visual features s t The enhanced image is obtained by enhancing the depth image.

[0132] The depth image is input into the low-light image enhancement model, and is enhanced through a multi-stage cascade of low-light image enhancement modules to finally obtain an enhanced image.

[0133] S314, extracting enhanced image features corresponding to the enhanced image based on a center difference convolution algorithm, and extracting brightness features corresponding to the brightness estimation information based on a center difference convolution algorithm;

[0134] S316, fusing the enhanced image feature and the brightness feature to obtain a fused feature;

[0135] Specifically, the enhanced image features and the brightness features are weighted fused according to preset weights to obtain fused features.

[0136] S318, performing credential detection based on the fused features to obtain credential detection results.

[0137] Among them, the central difference convolution algorithm is a convolution operation that uses the difference between the central pixel and the adjacent pixels to calculate the value of the new pixel. The central difference convolution algorithm replaces the value of each pixel with the difference between the pixel and its surrounding pixels. It can not only reduce the noise in the image, but also enhance the features in the image.

[0138] In the embodiments of the present specification, not only the enhanced image features corresponding to the enhanced image are extracted by the central difference convolution algorithm, but also the brightness features corresponding to the brightness estimation information are extracted based on the central difference convolution algorithm, and the enhanced image features and the brightness features are fused to obtain the fused features. Finally, the credential detection is performed based on the fused features to obtain the credential detection results, so as to further enhance the brightness and further reduce the influence of the lighting conditions on the detection results.

[0139] See also Figure 7 , is an example schematic diagram of a credential detection provided in the embodiments of this specification. Figure 7As shown, the image to be detected is predicted by the depth estimation model to obtain the corresponding depth feature map, and then the depth feature map is fused with the image to be detected to obtain a depth image, and the depth image is input into the low-light image enhancement model, and the image is enhanced by the multi-stage cascaded low-light image enhancement module in the low-light image enhancement model to obtain an enhanced image; then the enhanced image and the brightness estimation information output by the low-light image enhancement model are input into the credential detection model, and the credential detection model includes a feature extraction network based on center difference convolution and a credential detection network, the feature extraction network extracts enhanced image features corresponding to the enhanced image based on the center difference convolution algorithm, and extracts brightness features corresponding to the brightness estimation information based on the center difference convolution algorithm, the enhanced image features and the brightness features are fused to generate fused features, and finally the fused features are input into the credential detection network for credential detection to obtain credential detection results.

[0140] See also Figure 8 , is a schematic diagram of the structure of a credential detection device provided in an embodiment of this specification. Figure 8 As shown, the credential detection device 1 can be implemented as all or part of an electronic device through software, hardware or a combination of both. According to some embodiments, the credential detection device 1 includes a depth estimation module 11, an image fusion module 12, an image enhancement module 13 and a credential detection module 14, specifically including:

[0141] A depth estimation module 11 is used to perform depth estimation on the image to be detected and obtain a depth feature map corresponding to the image to be detected;

[0142] An image fusion module 12, configured to generate a depth image based on the fusion of the depth feature map and the image to be detected;

[0143] The image enhancement module 13 is used to perform low-light image enhancement processing on the depth image to obtain an enhanced image;

[0144] The credential detection module 14 is used to perform credential detection based on the enhanced image to obtain a credential detection result.

[0145] Optionally, the depth estimation module 11 is specifically used for:

[0146] Performing feature extraction processing on the image to be detected to obtain a plurality of first image features of different scales;

[0147] Performing multi-scale feature fusion processing on each of the first image features to obtain a plurality of second image features of different scales;

[0148] Performing feature fusion on the target first image feature with the smallest scale among the first image features and the target second image feature with the smallest scale among the second image features to obtain a fused image feature;

[0149] Depth estimation and prediction are performed based on the fused image features to obtain the depth feature map.

[0150] Optionally, when the depth estimation module 11 performs the depth estimation prediction based on the fused image features to obtain the depth feature map, it is specifically used to:

[0151] Based on each of the second image features, multi-level residual refinement prediction is performed on the fused image features to obtain the depth feature map.

[0152] Optionally, the credential detection module 14 is specifically used to:

[0153] Extracting enhanced image features corresponding to the enhanced image based on a central difference convolution algorithm;

[0154] Credential detection is performed based on the enhanced image features to obtain the credential detection result.

[0155] Optionally, the image enhancement module 13 is specifically used to:

[0156] Perform brightness estimation based on the depth image to obtain brightness estimation information corresponding to the depth image;

[0157] The depth image is enhanced based on the brightness estimation information to obtain the enhanced image.

[0158] Optionally, when the image enhancement module 13 performs the image enhancement on the depth image based on the brightness estimation information to obtain the enhanced image, it is specifically used to:

[0159] Based on the brightness estimation information, the depth image is subjected to brightness information removal to obtain a brightness information removed image;

[0160] Extracting the brightness information to remove image visual features in the image;

[0161] The depth image and the image visual features are fused to obtain the enhanced image.

[0162] Optionally, the credential detection module 14 is further used to:

[0163] Extracting enhanced image features corresponding to the enhanced image based on a center difference convolution algorithm, and extracting brightness features corresponding to the brightness estimation information based on a center difference convolution algorithm;

[0164] The enhanced image feature and the brightness feature are fused to obtain a fused feature.

[0165] Credential detection is performed based on the fusion feature to obtain the credential detection result.

[0166] The above device embodiments correspond to the method embodiments. For specific descriptions, please refer to the description of the method embodiments, which will not be repeated here. The device embodiments are obtained based on the corresponding method embodiments and have the same technical effects as the corresponding method embodiments. For specific descriptions, please refer to the corresponding method embodiments.

[0167] The present specification also provides a computer storage medium, which can store a computer program, and the computer program is suitable for being loaded by a processor and executed as described above. Figure 1 to Figure 7 The method of the embodiment shown in the figure can be found in the specific implementation process. Figure 1 to Figure 7 The specific description of the illustrated embodiment will not be repeated here.

[0168] The present specification also provides a computer program product, which stores at least one instruction, and the at least one instruction is loaded and executed by the processor as described above. Figures 1 to 7 The method of the embodiment shown in the figure can be found in the specific implementation process. Figure 1 to Figure 7 The specific description of the illustrated embodiment will not be repeated here.

[0169] The embodiments of this specification also provide Fig. 9 The structural diagram of the electronic device shown in FIG. Fig. 9 At the hardware level, the electronic device includes a processor, an internal bus, a network interface, a memory, and a non-volatile memory, and may also include other hardware required for the business. The processor reads the corresponding computer program from the non-volatile memory into the memory and then runs it to implement the above method.

[0170] Of course, in addition to software implementation, this specification does not exclude other implementation methods, such as logic devices or a combination of software and hardware, etc., that is to say, the executor of the following processing flow is not limited to each logic unit, but can also be hardware or logic devices.

[0171] In the 1990s, improvements to a technology could be clearly distinguished as hardware improvements (for example, improvements to the circuit structure of diodes, transistors, switches, etc.) or software improvements (improvements to the method flow). However, with the development of technology, many improvements to the method flow today can be regarded as direct improvements to the hardware circuit structure. Designers almost always obtain the corresponding hardware circuit structure by programming the improved method flow into the hardware circuit. Therefore, it cannot be said that an improvement in a method flow cannot be implemented using a hardware entity module. For example, a programmable logic device (PLD) (such as a field programmable gate array (FPGA)) is such an integrated circuit whose logical function is determined by the user's programming of the device. Designers can "integrate" a digital system on a PLD by programming it themselves, without having to ask a chip manufacturer to design and produce a dedicated integrated circuit chip. Moreover, nowadays, instead of manually making integrated circuit chips, this kind of programming is mostly implemented by "logic compiler" software, which is similar to the software compiler used when developing and writing programs, and the original code before compilation must also be written in a specific programming language, which is called hardware description language (HDL). There is not only one HDL, but many kinds, such as ABEL (Advanced Boolean Expression Language), AHDL (Altera Hardware Description Language), Confluence, CUPL (Cornell University Programming Language), HDCal, JHDL (Java Hardware Description Language), Lava, Lola, MyHDL, PALASM, RHDL (Ruby Hardware Description Language), etc. The most commonly used ones are VHDL (Very-High-Speed ​​Integrated Circuit Hardware Description Language) and Verilog. Those skilled in the art should also know that it is only necessary to program the method flow slightly in the above-mentioned hardware description languages ​​and program it into the integrated circuit, and then it is easy to obtain the hardware circuit that implements the logic method flow.

[0172] The controller can be implemented in any appropriate manner, for example, the controller can take the form of a microprocessor or processor and a computer-readable medium storing a computer-readable program code (such as software or firmware) that can be executed by the (micro)processor, a logic gate, a switch, an application-specific integrated circuit (ASIC), a programmable logic controller, and an embedded microcontroller. Examples of controllers include, but are not limited to, the following microcontrollers: ARC 625D, Atmel AT91SAM, Microchip PIC18F26K20, and Silicone Labs C8051F320. The memory controller can also be implemented as part of the control logic of the memory. Those skilled in the art also know that in addition to implementing the controller in a purely computer-readable program code manner, the controller can be implemented in the form of a logic gate, a switch, an application-specific integrated circuit, a programmable logic controller, and an embedded microcontroller by logically programming the method steps. Therefore, this controller can be considered as a hardware component, and the devices included therein for implementing various functions can also be regarded as structures within the hardware component. Or even, the devices for implementing various functions can be regarded as both software modules for implementing the method and structures within the hardware component.

[0173] The systems, devices, modules or units described in the above embodiments may be implemented by computer chips or entities, or by products with certain functions. A typical implementation device is a computer. Specifically, the computer may be, for example, a personal computer, a laptop computer, a cellular phone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or a combination of any of these devices.

[0174] For the convenience of description, the above device is described in various units according to their functions. Of course, when implementing this specification, the functions of each unit can be implemented in the same or multiple software and / or hardware.

[0175] Those skilled in the art will appreciate that the embodiments of this specification may be provided as methods, systems, or computer program products. Therefore, this specification may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, this specification may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code.

[0176] This specification is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of this specification. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0177] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0178] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process in the computer or other programmable device. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0179] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.

[0180] The memory may include non-permanent storage in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.

[0181] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.

[0182] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.

[0183] Those skilled in the art will appreciate that the embodiments of this specification may be provided as methods, systems or computer program products. Therefore, this specification may take the form of a complete hardware embodiment, a complete software embodiment or an embodiment combining software and hardware. Moreover, this specification may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0184] This specification may be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types. This specification may also be practiced in distributed computing environments where tasks are performed by remote processing devices connected through a communication network. In a distributed computing environment, program modules may be located in local and remote computer storage media, including storage devices.

[0185] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.

[0186] The above description is only an embodiment of the present specification and is not intended to limit the present specification. For those skilled in the art, the present specification may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present specification shall be included in the scope of the claims of the present specification.

Claims

1. A credential detection method, the method comprising: Performing depth estimation on the image to be detected to obtain a depth feature map corresponding to the image to be detected; Generate a depth image based on the fusion of the depth feature map and the image to be detected; Performing low-light image enhancement processing on the depth image to obtain an enhanced image; Credential detection is performed based on the enhanced image to obtain a credential detection result.

2. According to the method of claim 1, the step of performing depth estimation on the image to be detected to obtain a depth feature map corresponding to the image to be detected comprises: Performing feature extraction processing on the image to be detected to obtain a plurality of first image features of different scales; Performing multi-scale feature fusion processing on each of the first image features to obtain a plurality of second image features of different scales; Performing feature fusion on the target first image feature with the smallest scale among the first image features and the target second image feature with the smallest scale among the second image features to obtain a fused image feature; Depth estimation and prediction are performed based on the fused image features to obtain the depth feature map.

3. According to the method of claim 2, the performing depth estimation prediction based on the fused image features to obtain the depth feature map comprises: Based on each of the second image features, multi-level residual refinement prediction is performed on the fused image features to obtain the depth feature map.

4. The method according to claim 1, wherein the performing credential detection based on the enhanced image to obtain a credential detection result comprises: Extracting enhanced image features corresponding to the enhanced image based on a central difference convolution algorithm; Credential detection is performed based on the enhanced image features to obtain the credential detection result.

5. The method according to claim 1, wherein the performing low-light image enhancement processing on the depth image to obtain an enhanced image comprises: Perform brightness estimation based on the depth image to obtain brightness estimation information corresponding to the depth image; The depth image is enhanced based on the brightness estimation information to obtain the enhanced image.

6. The method according to claim 5, wherein the performing image enhancement on the depth image based on the brightness estimation information to obtain the enhanced image comprises: Based on the brightness estimation information, the depth image is subjected to brightness information removal to obtain a brightness information removed image; Extracting the brightness information to remove image visual features in the image; The depth image and the image visual features are fused to obtain the enhanced image.

7. The method according to claim 5, performing credential detection based on the enhanced image to obtain a credential detection result, comprising: Extracting enhanced image features corresponding to the enhanced image based on a center difference convolution algorithm, and extracting brightness features corresponding to the brightness estimation information based on a center difference convolution algorithm; The enhanced image feature and the brightness feature are fused to obtain a fused feature. Credential detection is performed based on the fusion feature to obtain the credential detection result.

8. A credential detection device, comprising: A depth estimation module, used to perform depth estimation on the image to be detected and obtain a depth feature map corresponding to the image to be detected; An image fusion module, used to generate a depth image based on the fusion of the depth feature map and the image to be detected; An image enhancement module, used to perform low-light image enhancement processing on the depth image to obtain an enhanced image; The credential detection module is used to perform credential detection based on the enhanced image to obtain a credential detection result.

9. A storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the steps of the method according to any one of claims 1 to 7.

10. An electronic device, comprising: A processor and a memory; wherein the memory stores computer-readable instructions, and the computer-readable instructions are suitable for being loaded by the processor and executing the steps of the method as claimed in any one of claims 1 to 7.

11. A computer program product having at least one instruction stored thereon, wherein when the at least one instruction is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.

Citation Information

Patent Citations

  • Method and device for obtaining depth map of single-view color image

    CN110415284A

  • Multi-supervision face in-vivo detection method fusing multi-scale features

    CN114677722A

  • Certificate picture enhancement method and system, electronic equipment and storage medium

    CN116630194A

  • Face recognition method and device, computer equipment and storage medium

    CN117275071A

  • Silent human face living body detection method

    CN117953596A