Image processing method and device, computer-readable storage medium and electronic device
First Claim
1. A method for image processing, the method being applied to an electronic device comprising a first processor, the method comprising:
- acquiring, by the first processor, a target infrared image and a target depth image, and performing face detection according to the target infrared image to determine a target face region, wherein the target depth image is used to represent depth information corresponding to the target infrared image;
acquiring, by the first processor, a target face attribute parameter corresponding to the target face region, and performing face matching processing on the target face region according to the target face attribute parameter;
responsive to that face matching succeeds, performing, by the first processor, liveness detection processing on the target face region according to the target depth image to obtain a liveness detection result; and
obtaining, by the first processor, a face verification result according to the liveness detection result;
wherein the electronic device further comprises a second processor and a camera module; and
acquiring the target infrared image and the target depth image comprises;
responsive to that a face verification instruction has been detected by the second processor, controlling, by the second processor, the camera module to acquire an infrared image and a depth image and receiving the infrared image and the depth image from the camera module, wherein a time interval between a first moment at winch the infrared image is acquired and a second moment at which the depth image is acquired is less than a first threshold; and
acquiring, by the first processor, the target infrared image according to the infrared image, and acquiring the target depth image according to the depth image.
1 Assignment
0 Petitions
Accused Products
Abstract
An image processing method and device, a computer-readable storage medium and an electronic device are provided. The method includes that: a target infrared image and a target depth image are acquired, and face detection is performed according to the target infrared image to determine a target face region, here, the target depth image is used to represent depth information corresponding to the target infrared image; a target face attribute parameter corresponding to the target face region is acquired, and face matching processing is performed on the target face region according to the target face attribute parameter; responsive to that face matching succeeds, liveness detection processing is performed on the target face region according to the target depth image to obtain a liveness detection result; and a face verification result is obtained according to the liveness detection result.
10 Citations
18 Claims
-
1. A method for image processing, the method being applied to an electronic device comprising a first processor, the method comprising:
-
acquiring, by the first processor, a target infrared image and a target depth image, and performing face detection according to the target infrared image to determine a target face region, wherein the target depth image is used to represent depth information corresponding to the target infrared image; acquiring, by the first processor, a target face attribute parameter corresponding to the target face region, and performing face matching processing on the target face region according to the target face attribute parameter; responsive to that face matching succeeds, performing, by the first processor, liveness detection processing on the target face region according to the target depth image to obtain a liveness detection result; and obtaining, by the first processor, a face verification result according to the liveness detection result; wherein the electronic device further comprises a second processor and a camera module; and acquiring the target infrared image and the target depth image comprises; responsive to that a face verification instruction has been detected by the second processor, controlling, by the second processor, the camera module to acquire an infrared image and a depth image and receiving the infrared image and the depth image from the camera module, wherein a time interval between a first moment at winch the infrared image is acquired and a second moment at which the depth image is acquired is less than a first threshold; and acquiring, by the first processor, the target infrared image according to the infrared image, and acquiring the target depth image according to the depth image. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8)
-
-
9. An electronic device, comprising:
-
a first processor; and a memory storing instructions that, when executed by the first processor, cause processor to; acquire a target infrared image and a target depth image and perform face detection according to the target infrared image to determine a target face region, Wherein the target depth image is used to represent depth information corresponding to the target infrared image; acquire a target face attribute parameter corresponding to the target face region and perform face matching processing on the target face region according to the target face attribute parameter; responsive to that face snatching succeeds, perform liveness detection processing on the target region according to the target depth image to obtain liveness detection result; and obtain a face verification result according to the liveness detection result; wherein the electronic device further comprises a second processor and a camera module and the second processor is configured to, responsive to that a face verification instruction has been detected by the second processor, control the camera module to acquire an infrared image and a depth image and receive the infrared image and the depth image from the camera module, wherein a time interval between a first moment at which the infrared image is acquired and a second moment at which the depth image is acquired is less than a first threshold; and the first processor is further configured to acquire the target infrared image according to the infrared image and acquire the target depth image according to the depth image. - View Dependent Claims (10, 11, 12, 13, 14, 15, 16, 17)
-
-
18. A non-transitory computer-readable storage medium having stored thereon a computer program that, when executed by one or more processors, cause the one or more processors to:
-
acquire a target infrared image and a target depth image and perform face detection according to the target infrared image to determine a target face region, wherein the target depth image is used to represent depth information corresponding to the target infrared image; acquire a target face attribute parameter corresponding to the target face region and perform face matching processing on the target face region according to the target face attribute parameter; responsive to that face matching succeeds, perform liveness detection processing on the target face region according to the target depth image to obtain a liveness detection result; and obtain a face verification result according to the liveness detection result; wherein the operation of acquiring the target infrared image and the target depth image comprises; responsive to that a face verification instruction has been detected by the second processor, controlling a camera module to acquire an infrared image and a depth image and receiving the infrared image and the depth image from the camera module, wherein a time interval between a first moment at which the infrared image is acquired and a second moment at which the depth image is acquired is less than a first threshold; and acquiring the target infrared image according to the infrared image, and acquiring the target depth image according to the depth image.
-
Specification