Liveness detection method, liveness detection system, and computer program product
AssigneesBeijing Kuangshi Technology Co., Ltd., Pinhole (Beijing) Technology Co., Ltd.
InventorsHaoqiang Fan, Qi Yin
Life of this patent
Estimating the term…
Abstract
The application provides a liveness detection method capable of implementing liveness detection, and a liveness detection system that employs the liveness detection method. The liveness detection method comprises: irradiating an object to be detected with structured light; obtaining first facial image data of the object to be detected under irradiation of the structured light; determining, based on the first facial image data, a detection parameter that indicates a sub-surface scattering intensity of the structured light on a face of the object to be detected; and determining, based on the detection parameter and a predetermined parameter threshold, whether the object to be detected is a living body.
Claims12
A liveness detection method, comprising:
- irradiating an object to be detected with structured light;
- obtaining first facial image data of the object to be detected under irradiation of the structured light;
- determining, based on the first facial image data, a detection parameter that indicates a sub-surface scattering intensity of the structured light on a face of the object to be detected;
- and
- determining, based on the detection parameter and a predetermined parameter threshold, whether the object to be detected is a living body,
- wherein the detection parameter is a ratio of a sum of gradient magnitudes of the first facial image data within a predetermined region to a total brightness value of the image within the predetermined region, or
- wherein determining, based on the first facial image data, a detection parameter that indicates a sub-surface scattering intensity of the structured light on a face of the object to be detected comprises:
- dividing the first facial image data into a plurality of sub-image regions;
- performing Fourier transform on sub-image data of each sub-image region to obtain a sub-image Fourier transform coefficient of each sub-image region;
- as for each sub-image region, calculating a ratio of a sum of squares of the sub-image Fourier transform coefficient within a predetermined frequency range to a square of a sub-image Fourier transform lowest frequency coefficient;
- and
- calculating an average of the ratios in the plurality of sub-image regions as the detection parameter.
A liveness detection system, comprising:
- a structured light source module for emitting structured light to irradiate an object to be detected;
- an image data obtaining module for obtaining first facial image data of the object to be detected under irradiation of the structured light;
- and
- a liveness detecting module for determining, based on the first facial image data, a detection parameter that indicates a sub-surface scattering intensity of the structured light on a face of the object to be detected, and determining, based on the detection parameter and a predetermined parameter threshold, whether the object to be detected is a living body,
- wherein the detection parameter is a ratio of a sum of gradient magnitudes of the first facial image data within a predetermined region to a total brightness value of the image within the predetermined region, or
- wherein the liveness detecting module divides the first facial image data into a plurality of sub-image regions;
- performs Fourier transform on sub-image data of each sub-image region to obtain a sub-image Fourier transform coefficient of each sub-image region;
- as for each sub-image region, calculates a ratio of a sum of squares of the sub-image Fourier transform coefficient within a predetermined frequency range to a square of a sub-image Fourier transform lowest frequency coefficient and calculates an average of the ratios in the plurality of sub-image regions as the detection parameter.
A liveness detection device, comprising:
- a processor;
- a memory;
- and
- computer program instructions stored in the memory and when run by the processor, configured to cause the liveness detection device to perform a liveness detection method comprising the following steps:
- irradiating an object to be detected with structured light;
- obtaining first facial image data of the object to be detected under irradiation of the structured light;
- determining, based on the first facial image data, a detection parameter that indicates a sub-surface scattering intensity of the structured light on a face of the object to be detected;
- and
- determining, based on the detection parameter and a predetermined parameter threshold, whether the object to be detected is a living body,
- wherein the detection parameter is a ratio of a sum of gradient magnitudes of the first facial image data within a predetermined region to a total brightness value of the image within the predetermined region, or
- wherein the step of determining, based on the first facial image data, a detection parameter that indicates a sub-surface scattering intensity of the structured light on a face of the object to be detected performed by the liveness detection device caused by the computer program instructions run by the processor comprises:
- dividing the first facial image data into a plurality of sub-image regions;
- performing Fourier transform on sub-image data of each sub-image region to obtain a sub-image Fourier transform coefficient of each sub-image region;
- as for each sub-image region, calculating a ratio of a sum of squares the sub-image Fourier transform coefficient within a predetermined frequency range to a square of a sub-image Fourier transform lowest frequency coefficient;
- and
- calculating an average of the ratios in the plurality of sub-image regions as the detection parameter.
Dependencies are inferred from the claim text.