CN114913574A - Image detection method, living body detection method, electronic device, medium and product - Google Patents

Image detection method, living body detection method, electronic device, medium and product Download PDF

Info

Publication number
CN114913574A
CN114913574A CN202210434344.8A CN202210434344A CN114913574A CN 114913574 A CN114913574 A CN 114913574A CN 202210434344 A CN202210434344 A CN 202210434344A CN 114913574 A CN114913574 A CN 114913574A
Authority
CN
China
Prior art keywords
image
pixel
target
detected
living body
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210434344.8A
Other languages
Chinese (zh)
Inventor
周争光
金宇林
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Yuanli Jinzhi Chongqing Technology Co ltd
Original Assignee
Shenzhen Kuangshi Jinzhi Technology Co ltd
Beijing Kuangshi Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Kuangshi Jinzhi Technology Co ltd, Beijing Kuangshi Technology Co Ltd filed Critical Shenzhen Kuangshi Jinzhi Technology Co ltd
Priority to CN202210434344.8A priority Critical patent/CN114913574A/en
Publication of CN114913574A publication Critical patent/CN114913574A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V40/00Recognition of biometric, human-related or animal-related patterns in image or video data
    • G06V40/10Human or animal bodies, e.g. vehicle occupants or pedestrians; Body parts, e.g. hands
    • G06V40/16Human faces, e.g. facial parts, sketches or expressions
    • G06V40/161Detection; Localisation; Normalisation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/20Image preprocessing
    • G06V10/25Determination of region of interest [ROI] or a volume of interest [VOI]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V40/00Recognition of biometric, human-related or animal-related patterns in image or video data
    • G06V40/40Spoof detection, e.g. liveness detection
    • G06V40/45Detection of the body part being alive

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Multimedia (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Health & Medical Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • Oral & Maxillofacial Surgery (AREA)
  • Image Analysis (AREA)
  • Image Processing (AREA)

Abstract

The present disclosure relates to an image detection method, a living body detection method, an electronic device, a medium, and a product. The in vivo detection method comprises the following steps: acquiring an image to be detected; wherein the image to be detected comprises a face area of a target object; performing frequency domain conversion on the image to be detected to obtain a frequency spectrum image of the image to be detected, generating a first line image corresponding to the image to be detected based on the frequency spectrum image, and performing copying attack detection on the image to be detected based on the first line image to obtain a copying attack detection result; performing living body detection on the target object based on the image to be detected to obtain a living body detection result; and determining whether the target object is a living body or not based on the living body detection result and the copying attack detection result. The living body detection precision can be improved through the living body detection method and the living body detection device.

Description

图像检测方法、活体检测方法、电子设备、介质及产品Image detection method, living body detection method, electronic device, medium and product

技术领域technical field

本公开涉及图像处理技术领域,尤其涉及一种图像检测方法、活体检测方法、电子设备、介质及产品。The present disclosure relates to the technical field of image processing, and in particular, to an image detection method, a living body detection method, an electronic device, a medium and a product.

背景技术Background technique

随着计算机技术的发展,出现了图像检测技术,其作为一种高效便捷的验证方式,广泛应用于诸多领域。相关技术中,例如活体检测、环境分析等应用场景,通常需要判别对所检测的图像是否为翻拍图像。其中,翻拍图像,是指对采集到的图像进行翻拍所得到的图像。例如,通过手机对显示屏所显示的画面进行翻拍后得到的图像。With the development of computer technology, image detection technology has emerged. As an efficient and convenient verification method, it is widely used in many fields. In the related art, for example, in application scenarios such as living body detection and environmental analysis, it is usually necessary to determine whether the detected image is a retaken image. Wherein, the re-photographed image refers to an image obtained by re-photographing the collected image. For example, an image obtained by retaking a picture displayed on the display screen by a mobile phone.

相关技术中,能够通过识别摩尔纹的方式,对翻拍显示屏所得到的翻拍图像进行有效检出。但由于通常的,只有分辨率较低的显示屏,才会使翻拍图像出现较为明显的摩尔纹。因此,相关技术中,无法对翻拍高分辨率显示屏所得到的翻拍图像(翻拍图像不存在摩尔纹,或翻拍图像的摩尔纹不明显)进行有效检出。In the related art, it is possible to effectively detect the copied image obtained by copying the display screen by recognizing the moiré pattern. However, usually, only a display with a lower resolution will make the remake image appear more obvious moiré. Therefore, in the related art, it is not possible to effectively detect the reproduced image obtained by reproducing the high-resolution display screen (the reproduced image has no moiré pattern, or the reproduced image has no obvious moiré pattern).

发明内容SUMMARY OF THE INVENTION

为克服相关技术中存在的问题,本公开提供一种图像检测方法、活体检测方法、电子设备、介质及产品。In order to overcome the problems existing in the related art, the present disclosure provides an image detection method, a living body detection method, an electronic device, a medium and a product.

根据本公开实施例的第一方面,提供一种活体检测方法,包括:According to a first aspect of the embodiments of the present disclosure, there is provided a method for detecting a living body, including:

获取待检测图像;其中,所述待检测图像中包括目标对象的脸部区域;对所述待检测图像进行频域转换,得到所述待检测图像的频谱图像,基于所述频谱图像生成对应于所述待检测图像的第一线索图像,基于所述第一线索图像对所述待检测图像进行翻拍攻击检测,得到翻拍攻击检测结果;以及,基于所述待检测图像对所述目标对象进行活体检测,得到活体检测结果;基于所述活体检测结果以及所述翻拍攻击检测结果,确定所述目标对象是否为活体。Obtain an image to be detected; wherein, the image to be detected includes the face area of the target object; perform frequency domain conversion on the image to be detected to obtain a spectral image of the image to be detected, and generate a corresponding image based on the spectral image. For the first clue image of the to-be-detected image, performing a copy attack detection on the to-be-detected image based on the first clue image, to obtain a copy attack detection result; and performing a living test on the target object based on the to-be-detected image Detecting to obtain a living body detection result; and determining whether the target object is a living body based on the living body detection result and the remake attack detection result.

一种实施方式中,所述基于所述频谱图像生成对应于所述待检测图像的第一线索图像,包括:按照目标规则截取包含目标像素点在内的图像区域;其中,所述目标像素点为所述频谱图像中位于各目标像素行和各目标像素列的像素点,各所述目标像素行等间隔排布,各所述目标像素列等间隔排布;将各所述图像区域进行拼接,得到所述第一线索图像。In one embodiment, the generating a first clue image corresponding to the image to be detected based on the spectral image includes: intercepting an image area including target pixels according to target rules; wherein the target pixels For the pixel points located in each target pixel row and each target pixel column in the spectrum image, each of the target pixel rows is arranged at equal intervals, and each of the target pixel columns is arranged at equal intervals; splicing each of the image areas , to obtain the first clue image.

一种实施方式中,所述目标像素行为除所述频谱图像的中心像素行之外的像素行,所述目标像素列为除所述频谱图像的中心像素列之外的像素列。In one embodiment, the target pixel row is a pixel row other than the central pixel row of the spectral image, and the target pixel row is a pixel row other than the central pixel row of the spectral image.

一种实施方式中,所述目标像素行位于所述频谱图像的1/8或者1/8的整数倍所对应位置处,所述目标像素列位于所述频谱图像的1/8或者1/8的整数倍所对应位置处。In an embodiment, the target pixel row is located at a position corresponding to 1/8 or an integer multiple of 1/8 of the spectrum image, and the target pixel column is located at 1/8 or 1/8 of the spectrum image. at the position corresponding to an integer multiple of .

一种实施方式中,所述方法还包括:对各所述图像区域进行亮度差异增大处理,其中,所述亮度差异为所述图像区域中亮点像素和其余像素之间的亮度差异。In one embodiment, the method further includes: performing a brightness difference increasing process on each of the image areas, wherein the brightness difference is a brightness difference between a bright pixel and the remaining pixels in the image area.

一种实施方式中,所述对各所述图像区域进行亮度差异增大处理,包括:针对每个所述图像区域,按照像素值由大到小的顺序选取指定数量的第一指定像素点,对所述图像区域中除所述第一指定像素点之外的像素点的像素值进行调节处理;其中,所述调节处理包括将所述像素点的像素值设置为目标数值或者调小所述像素点的像素值;或者,针对每个所述图像区域,确定像素值小于目标像素阈值的第二指定像素点,对所述第二指定像素点的像素值进行调节处理;其中,所述调节处理包括将所述像素点的像素值设置为目标数值或者调小所述像素点的像素值。In one embodiment, the performing the brightness difference increasing process on each of the image regions includes: for each of the image regions, selecting a specified number of first specified pixel points in descending order of pixel values, Perform adjustment processing on the pixel values of the pixel points other than the first designated pixel point in the image area; wherein, the adjustment processing includes setting the pixel value of the pixel point to a target value or reducing the The pixel value of the pixel point; or, for each of the image areas, determine a second designated pixel point whose pixel value is less than the target pixel threshold, and perform adjustment processing on the pixel value of the second designated pixel point; wherein, the adjustment The processing includes setting the pixel value of the pixel point to a target value or reducing the pixel value of the pixel point.

根据本公开实施例的第二方面,提供一种图像检测方法,包括:According to a second aspect of the embodiments of the present disclosure, an image detection method is provided, including:

获取待检测图像;对所述待检测图像进行频域转换,得到所述待检测图像的频谱图像,基于所述频谱图像生成对应于所述待检测图像的第一线索图像;基于所述第一线索图像对所述待检测图像进行翻拍攻击检测,得到翻拍攻击检测结果。Obtaining an image to be detected; performing frequency domain conversion on the image to be detected to obtain a spectral image of the image to be detected, and generating a first clue image corresponding to the image to be detected based on the spectral image; The clue image performs copy attack detection on the to-be-detected image to obtain a copy attack detection result.

一种实施方式中,所述基于所述频谱图像生成对应于所述待检测图像的第一线索图像,包括:按照目标规则截取包含目标像素点在内的图像区域;其中,所述目标像素点为所述频谱图像中位于各目标像素行和各目标像素列的像素点,各所述目标像素行等间隔排布,各所述目标像素列等间隔排布;将各所述图像区域进行拼接,得到所述第一线索图像。In one embodiment, the generating a first clue image corresponding to the image to be detected based on the spectral image includes: intercepting an image area including target pixels according to target rules; wherein the target pixels For the pixel points located in each target pixel row and each target pixel column in the spectrum image, each of the target pixel rows is arranged at equal intervals, and each of the target pixel columns is arranged at equal intervals; splicing each of the image areas , to obtain the first clue image.

一种实施方式中,所述目标像素行为除所述频谱图像的中心像素行之外的像素行,所述目标像素列为除所述频谱图像的中心像素列之外的像素列。In one embodiment, the target pixel row is a pixel row other than the central pixel row of the spectral image, and the target pixel row is a pixel row other than the central pixel row of the spectral image.

一种实施方式中,所述目标像素行位于所述频谱图像的1/8或者1/8的整数倍所对应位置处,所述目标像素列位于所述频谱图像的1/8或者1/8的整数倍所对应位置处。In an embodiment, the target pixel row is located at a position corresponding to 1/8 or an integer multiple of 1/8 of the spectrum image, and the target pixel column is located at 1/8 or 1/8 of the spectrum image. at the position corresponding to an integer multiple of .

根据本公开实施例的第三方面,提供一种活体检测装置,包括:According to a third aspect of the embodiments of the present disclosure, there is provided a living body detection device, comprising:

获取单元,用于获取待检测图像;其中,所述待检测图像中包括目标对象的脸部区域;处理单元,用于对所述待检测图像进行频域转换,得到所述待检测图像的频谱图像,基于所述频谱图像生成对应于所述待检测图像的第一线索图像,基于所述第一线索图像对所述待检测图像进行翻拍攻击检测,得到翻拍攻击检测结果;以及用于基于所述待检测图像对所述目标对象进行活体检测,得到活体检测结果;确定单元,用于基于所述活体检测结果以及所述翻拍攻击检测结果,确定所述目标对象是否为活体。an acquisition unit, configured to acquire an image to be detected; wherein, the image to be detected includes the face area of the target object; a processing unit, configured to perform frequency domain conversion on the image to be detected, to obtain a spectrum of the image to be detected image, generating a first clue image corresponding to the to-be-detected image based on the spectrum image, performing copy attack detection on the to-be-detected image based on the first clue image, to obtain a copy attack detection result; The to-be-detected image performs living detection on the target object to obtain a living body detection result; a determining unit is configured to determine whether the target object is a living body based on the living body detection result and the remake attack detection result.

一种实施方式中,所述处理单元基于所述频谱图像生成对应于所述待检测图像的第一线索图像:按照目标规则截取包含目标像素点在内的图像区域;其中,所述目标像素点为所述频谱图像中位于各目标像素行和各目标像素列的像素点,各所述目标像素行等间隔排布,各所述目标像素列等间隔排布;将各所述图像区域进行拼接,得到所述第一线索图像。In one embodiment, the processing unit generates a first clue image corresponding to the to-be-detected image based on the spectral image: intercepts an image area including target pixels according to target rules; wherein, the target pixels For the pixel points located in each target pixel row and each target pixel column in the spectrum image, each of the target pixel rows is arranged at equal intervals, and each of the target pixel columns is arranged at equal intervals; splicing each of the image areas , to obtain the first clue image.

一种实施方式中,所述目标像素行为除所述频谱图像的中心像素行之外的像素行,所述目标像素列为除所述频谱图像的中心像素列之外的像素列。In one embodiment, the target pixel row is a pixel row other than the central pixel row of the spectral image, and the target pixel row is a pixel row other than the central pixel row of the spectral image.

一种实施方式中,所述目标像素行位于所述频谱图像的1/8或者1/8的整数倍所对应位置处,所述目标像素列位于所述频谱图像的1/8或者1/8的整数倍所对应位置处。In an embodiment, the target pixel row is located at a position corresponding to 1/8 or an integer multiple of 1/8 of the spectrum image, and the target pixel column is located at 1/8 or 1/8 of the spectrum image. at the position corresponding to an integer multiple of .

一种实施方式中,所述处理单元还用于:对各所述图像区域进行亮度差异增大处理,其中,所述亮度差异为所述图像区域中亮点像素和其余像素之间的亮度差异。In one embodiment, the processing unit is further configured to: perform a brightness difference increase process on each of the image regions, where the brightness difference is a brightness difference between a bright pixel and other pixels in the image region.

一种实施方式中,所述处理单元采用如下方式对各所述图像区域进行亮度差异增大处理:针对每个所述图像区域,按照像素值由大到小的顺序选取指定数量的第一指定像素点,对所述图像区域中除所述第一指定像素点之外的像素点的像素值进行调节处理;其中,所述调节处理包括将所述像素点的像素值设置为目标数值或者调小所述像素点的像素值;或者,针对每个所述图像区域,确定像素值小于目标像素阈值的第二指定像素点,对所述第二指定像素点的像素值进行调节处理;其中,所述调节处理包括将所述像素点的像素值设置为目标数值或者调小所述像素点的像素值。In one embodiment, the processing unit performs the brightness difference increase processing on each of the image regions in the following manner: for each of the image regions, selects a specified number of first specified pixels in descending order of pixel values. pixel point, performing adjustment processing on the pixel value of the pixel point in the image area except the first designated pixel point; wherein, the adjustment processing includes setting the pixel value of the pixel point to the target value or adjusting The pixel value of the pixel is smaller than the pixel value of the pixel; or, for each of the image areas, determine a second specified pixel whose pixel value is less than the target pixel threshold, and perform adjustment processing on the pixel value of the second specified pixel; wherein, The adjustment process includes setting the pixel value of the pixel point to a target value or reducing the pixel value of the pixel point.

根据本公开实施例的第四方面,提供一种图像检测装置,包括:According to a fourth aspect of the embodiments of the present disclosure, there is provided an image detection apparatus, including:

获取单元,用于获取待检测图像;处理单元,用于对所述待检测图像进行频域转换,得到所述待检测图像的频谱图像,基于所述频谱图像生成对应于所述待检测图像的第一线索图像;以及用于基于所述第一线索图像对所述待检测图像进行翻拍攻击检测,得到翻拍攻击检测结果。The acquisition unit is used to acquire the image to be detected; the processing unit is used to perform frequency domain conversion on the image to be detected to obtain a spectrum image of the image to be detected, and generate a spectrum image corresponding to the image to be detected based on the spectrum image a first clue image; and for performing copy attack detection on the to-be-detected image based on the first clue image to obtain a copy attack detection result.

一种实施方式中,所述处理单元采用如下方式基于所述频谱图像生成对应于所述待检测图像的第一线索图像:按照目标规则截取包含目标像素点在内的图像区域;其中,所述目标像素点为所述频谱图像中位于各目标像素行和各目标像素列的像素点,各所述目标像素行等间隔排布,各所述目标像素列等间隔排布;将各所述图像区域进行拼接,得到所述第一线索图像。In one embodiment, the processing unit generates a first clue image corresponding to the image to be detected based on the spectrum image in the following manner: intercepting an image area including target pixels according to target rules; wherein, the The target pixel points are the pixel points located in each target pixel row and each target pixel column in the spectrum image, the target pixel rows are arranged at equal intervals, and the target pixel columns are arranged at equal intervals; The regions are spliced to obtain the first clue image.

一种实施方式中,所述目标像素行为除所述频谱图像的中心像素行之外的像素行,所述目标像素列为除所述频谱图像的中心像素列之外的像素列。In one embodiment, the target pixel row is a pixel row other than the central pixel row of the spectral image, and the target pixel row is a pixel row other than the central pixel row of the spectral image.

一种实施方式中,所述目标像素行位于所述频谱图像的1/8或者1/8的整数倍所对应位置处,所述目标像素列位于所述频谱图像的1/8或者1/8的整数倍所对应位置处。In an embodiment, the target pixel row is located at a position corresponding to 1/8 or an integer multiple of 1/8 of the spectrum image, and the target pixel column is located at 1/8 or 1/8 of the spectrum image. at the position corresponding to an integer multiple of .

根据本公开实施例第五方面,提供一种电子设备,包括:According to a fifth aspect of the embodiments of the present disclosure, an electronic device is provided, including:

处理器;用于存储处理器可执行指令的存储器;processor; memory for storing processor-executable instructions;

其中,所述处理器被配置为:执行第一方面或者第一方面任意一种实施方式中所述的活体检测方法,或执行第二方面或者第二方面任意一种实施方式中所述的图像检测方法。Wherein, the processor is configured to: execute the living body detection method described in the first aspect or any embodiment of the first aspect, or execute the image described in the second aspect or any embodiment of the second aspect Detection method.

根据本公开实施例第六方面,提供一种存储介质,所述存储介质中存储有指令,当所述存储介质中的指令由处理器执行时,使得处理器能够执行第一方面或者第一方面任意一种实施方式中所述的活体检测方法,或执行第二方面或者第二方面任意一种实施方式中所述的图像检测方法。According to a sixth aspect of the embodiments of the present disclosure, a storage medium is provided, where instructions are stored in the storage medium, and when the instructions in the storage medium are executed by a processor, the processor can execute the first aspect or the first aspect The living body detection method described in any one of the embodiments, or the image detection method described in the second aspect or any one of the embodiments of the second aspect.

根据本公开实施例第七方面,提供一种计算机程序产品,所述计算机程序产品包括计算机程序,所述计算机程序被处理器执行时实现第一方面或者第一方面任意一种实施方式中所述的活体检测方法,或实现第二方面或者第二方面任意一种实施方式中所述的图像检测方法。According to a seventh aspect of the embodiments of the present disclosure, a computer program product is provided, the computer program product includes a computer program, and when the computer program is executed by a processor, the first aspect or any one of the implementation manners of the first aspect is implemented. The living body detection method, or the image detection method described in the second aspect or any one of the implementation manners of the second aspect is implemented.

本公开的实施例提供的技术方案可以包括以下有益效果:可以对待检测图像进行频域转换,得到待检测图像的频谱图像,并通过频谱图像生成对应于待检测图像的第一线索图像。进一步的,可以通过第一线索图像对待检测图像进行翻拍攻击检测,得到翻拍攻击检测结果,以及通过待检测图像对目标对象进行活体检测,得到活体检测结果。在此基础上,可以通过活体检测结果以及翻拍攻击检测结果,确定目标对象是否为活体,该方法将翻拍攻击检测作为活体检测的补充检测,可以进一步提高活体检测结果的准确性。此外,由于该方法是通过由待检测图像的频谱图所生成的线索图像进行翻拍攻击检测,所涉及的翻拍攻击检测流程具有普适性,可以实现对翻拍高分辨率屏幕的显示画面得到的翻拍图像(即,不存在摩尔纹或摩尔纹不明显的翻拍图像)的精准识别,实现了高清屏幕翻拍场景下的翻拍攻击检测,进一步提升了活体检测精度。The technical solutions provided by the embodiments of the present disclosure may include the following beneficial effects: the image to be detected can be converted in the frequency domain to obtain a spectral image of the image to be detected, and a first clue image corresponding to the image to be detected can be generated from the spectral image. Further, the image to be detected can be subjected to remake attack detection through the first clue image to obtain a remake attack detection result, and the target object can be subjected to living body detection through the to-be-detected image to obtain the living body detection result. On this basis, it can be determined whether the target object is a living body through the living body detection result and the remake attack detection result. In this method, the remake attack detection is used as a supplementary detection of the living body detection, which can further improve the accuracy of the living body detection result. In addition, since this method detects the remake attack by using the clue image generated by the spectrogram of the image to be detected, the involved remake attack detection process is universal, and can realize the remake of the display image obtained by remaking the high-resolution screen. Accurate identification of images (that is, images without moiré or remake images with inconspicuous moiré patterns) enables the detection of remake attacks in high-definition screen remake scenarios, further improving the accuracy of live detection.

应当理解的是,以上的一般描述和后文的细节描述仅是示例性和解释性的,并不能限制本公开。It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure.

附图说明Description of drawings

此处的附图被并入说明书中并构成本说明书的一部分,示出了符合本公开的实施例,并与说明书一起用于解释本公开的原理。The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the disclosure and together with the description serve to explain the principles of the disclosure.

图1是根据一示例性实施例示出的一种活体检测方法的流程图。Fig. 1 is a flow chart of a method for detecting a living body according to an exemplary embodiment.

图2是根据一示例性实施例示出的一种基于频谱图像生成对应于待检测图像的第一线索图像的方法流程图。Fig. 2 is a flowchart of a method for generating a first clue image corresponding to an image to be detected based on a spectral image according to an exemplary embodiment.

图3是根据一示例性实施例示出的一种频谱图像中目标像素点的示意图。Fig. 3 is a schematic diagram of a target pixel in a spectrum image according to an exemplary embodiment.

图4是根据一示例性实施例示出的另一种基于频谱图像生成对应于待检测图像的第一线索图像的方法流程图。Fig. 4 is a flowchart of another method for generating a first clue image corresponding to an image to be detected based on a spectral image according to an exemplary embodiment.

图5是根据一示例性实施例示出的一种通过翻拍图像得到的亮度差异增大处理后的线索图像的示意图。FIG. 5 is a schematic diagram of a clue image obtained by retaking an image after processing to increase the brightness difference, according to an exemplary embodiment.

图6是根据一示例性实施例示出的另一种活体检测方法的流程图。Fig. 6 is a flow chart of another method for detecting a living body according to an exemplary embodiment.

图7是根据一示例性实施例示出的一种图像检测方法的流程图。Fig. 7 is a flow chart of an image detection method according to an exemplary embodiment.

图8是根据一示例性实施例示出的一种基于频谱图像生成对应于待检测图像的第一线索图像的方法流程图。Fig. 8 is a flowchart of a method for generating a first clue image corresponding to an image to be detected based on a spectral image according to an exemplary embodiment.

图9是根据一示例性实施例示出的一种活体检测装置框图。Fig. 9 is a block diagram of an apparatus for detecting a living body according to an exemplary embodiment.

图10是根据一示例性实施例示出的一种图像检测装置框图。Fig. 10 is a block diagram of an image detection apparatus according to an exemplary embodiment.

图11是根据一示例性实施例示出的一种用于图像检测或活体检测的电子设备框图。Fig. 11 is a block diagram of an electronic device for image detection or living body detection according to an exemplary embodiment.

具体实施方式Detailed ways

这里将详细地对示例性实施例进行说明,其示例表示在附图中。下面的描述涉及附图时,除非另有表示,不同附图中的相同数字表示相同或相似的要素。以下示例性实施例中所描述的实施方式并不代表与本公开相一致的所有实施方式。Exemplary embodiments will be described in detail herein, examples of which are illustrated in the accompanying drawings. Where the following description refers to the drawings, the same numerals in different drawings refer to the same or similar elements unless otherwise indicated. The implementations described in the illustrative examples below are not intended to represent all implementations consistent with this disclosure.

在附图中,自始至终相同或类似的标号表示相同或类似的元件或具有相同或类似功能的元件。所描述的实施例是本公开一部分实施例,而不是全部的实施例。下面通过参考附图描述的实施例是示例性的,旨在用于解释本公开,而不能理解为对本公开的限制。基于本公开中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本公开保护的范围。下面结合附图对本公开的实施例进行详细说明。Throughout the drawings, the same or similar reference numbers refer to the same or similar elements or elements having the same or similar functions. The described embodiments are some, but not all, of the embodiments of the present disclosure. The embodiments described below with reference to the accompanying drawings are exemplary, and are intended to explain the present disclosure and should not be construed as a limitation of the present disclosure. Based on the embodiments in the present disclosure, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present disclosure. The embodiments of the present disclosure will be described in detail below with reference to the accompanying drawings.

近年来,基于人工智能的计算机视觉、深度学习、机器学习、图像处理、图像识别等技术研究取得了重要进展。人工智能(Artificial Intelligence,AI)是研究、开发用于模拟、延伸人的智能的理论、方法、技术及应用系统的新兴科学技术。人工智能学科是一门综合性学科,涉及芯片、大数据、云计算、物联网、分布式存储、深度学习、机器学习、神经网络等诸多技术种类。计算机视觉作为人工智能的一个重要分支,具体是让机器识别世界,计算机视觉技术通常包括人脸识别、图像检测、指纹识别与防伪验证、生物特征识别、人脸检测、行人检测、目标检测、行人识别、图像处理、图像识别、图像语义理解、图像检索、文字识别、视频处理、视频内容识别、行为识别、三维重建、虚拟现实、增强现实、同步定位与地图构建(SLAM)、计算摄影、机器人导航与定位等技术。随着人工智能技术的研究和进步,该项技术在众多领域展开了应用,例如安防、城市管理、交通管理、楼宇管理、园区管理、人脸通行、人脸考勤、物流管理、仓储管理、机器人、智能营销、计算摄影、手机影像、云服务、智能家居、穿戴设备、无人驾驶、自动驾驶、智能医疗、人脸支付、人脸解锁、指纹解锁、人证核验、智慧屏、智能电视、摄像机、移动互联网、网络直播、美颜、美妆、医疗美容、智能测温等领域。In recent years, important progress has been made in the research of artificial intelligence-based computer vision, deep learning, machine learning, image processing, image recognition and other technologies. Artificial Intelligence (AI) is an emerging science and technology that studies and develops theories, methods, technologies and application systems for simulating and extending human intelligence. Artificial intelligence is a comprehensive discipline, involving chips, big data, cloud computing, Internet of Things, distributed storage, deep learning, machine learning, neural networks and many other types of technologies. As an important branch of artificial intelligence, computer vision is to let machines recognize the world. Computer vision technology usually includes face recognition, image detection, fingerprint recognition and anti-counterfeiting verification, biometric recognition, face detection, pedestrian detection, target detection, pedestrian detection Recognition, Image Processing, Image Recognition, Image Semantic Understanding, Image Retrieval, Text Recognition, Video Processing, Video Content Recognition, Behavior Recognition, 3D Reconstruction, Virtual Reality, Augmented Reality, Simultaneous Localization and Mapping (SLAM), Computational Photography, Robotics Navigation and positioning technology. With the research and progress of artificial intelligence technology, this technology has been applied in many fields, such as security, city management, traffic management, building management, park management, face access, face attendance, logistics management, warehouse management, robotics , smart marketing, computational photography, mobile imaging, cloud services, smart home, wearable devices, driverless, autonomous driving, smart medical care, face payment, face unlock, fingerprint unlock, witness verification, smart screen, smart TV, Cameras, mobile Internet, webcasting, beauty, beauty, medical beauty, intelligent temperature measurement and other fields.

本公开实施例提供的活体检测方法,可以应用于通过判断图像是否为翻拍图像的方式进行活体检测的场景。The living body detection method provided by the embodiment of the present disclosure can be applied to a scene in which living body detection is performed by judging whether an image is a duplicated image.

随着计算机技术的发展,出现了图像检测技术,其作为一种高效便捷的验证方式,广泛应用于诸多领域。相关技术中,例如活体检测、环境分析等应用场景,通常需要对所检测的图像是否为翻拍图像进行判别。其中,翻拍图像,是指对采集到的图像进行再次采集后得到的图像。例如,通过手机对显示屏所显示的画面进行翻拍后得到的图像。With the development of computer technology, image detection technology has emerged. As an efficient and convenient verification method, it is widely used in many fields. In the related art, for example, in application scenarios such as living body detection and environmental analysis, it is usually necessary to discriminate whether the detected image is a duplicated image. Wherein, the re-shot image refers to an image obtained after the collected image is collected again. For example, an image obtained by retaking a picture displayed on the display screen by a mobile phone.

相关技术中,能够通过识别摩尔纹的方式,对翻拍显示屏所得到的翻拍图像进行有效检出。但由于通常的,只有分辨率较低的显示屏(分辨率小于或等于1280*x720的显示屏),才会使翻拍图像出现较为明显的摩尔纹。因此,相关技术中,无法对翻拍高分辨率显示屏(如分辨率高于1280*720的显示屏,例如4K显示屏)所得到的翻拍图像(翻拍图像不存在摩尔纹,或翻拍图像的摩尔纹不明显)进行有效检出,这也使得应用相关技术进行翻拍检测的活体检测方案无法实现对翻拍图像进行较为精准的识别。In the related art, it is possible to effectively detect the copied image obtained by copying the display screen by recognizing the moiré pattern. However, usually, only a display screen with a lower resolution (a display screen with a resolution less than or equal to 1280*x720) will make the remake image appear more obvious moiré. Therefore, in the related art, it is impossible to remake images obtained by reproducing a high-resolution display screen (such as a display screen with a resolution higher than 1280*720, such as a 4K display screen) (there is no moiré in the remake image, or the moiré in the remake image is This also makes it impossible for the living body detection scheme that uses related technologies to perform remake detection to achieve more accurate identification of the remake image.

有鉴于此,本公开提出了一种活体检测方法,可以对待检测图像进行频域转换,得到待检测图像的频谱图像,并通过频谱图像生成对应于待检测图像的线索图像。进一步的,可以通过线索图像对待检测图像进行翻拍攻击检测,得到翻拍攻击检测结果,以及通过待检测图像对目标对象进行活体检测,得到活体检测结果。在此基础上,可以通过活体检测结果以及翻拍攻击检测结果,确定目标对象是否为活体,该方法将翻拍攻击检测作为活体检测的补充检测,可以进一步提高活体检测结果的准确性。此外,由于该方法是通过由待检测图像的频谱图所生成的线索图像进行翻拍攻击检测,所涉及的翻拍攻击检测流程具有普适性,可以实现对翻拍高分辨率屏幕的显示画面得到的翻拍图像(即,不存在摩尔纹或摩尔纹不明显的翻拍图像)的精准识别,实现了高清屏幕翻拍场景下的翻拍攻击检测,进一步提升了活体检测精度。本公开以下为便于描述,将通过频谱图像得到的线索图像称为第一线索图像。In view of this, the present disclosure proposes a method for detecting a living body, which can perform frequency domain conversion on an image to be detected, obtain a spectral image of the image to be detected, and generate a clue image corresponding to the image to be detected through the spectral image. Further, the image to be detected can be subjected to remake attack detection through the clue image to obtain the remake attack detection result, and the target object can be subjected to living body detection through the to-be-detected image to obtain the living body detection result. On this basis, it can be determined whether the target object is a living body through the living body detection result and the remake attack detection result. In this method, the remake attack detection is used as a supplementary detection of the living body detection, which can further improve the accuracy of the living body detection result. In addition, since this method detects the remake attack by using the clue image generated by the spectrogram of the image to be detected, the involved remake attack detection process is universal, and can realize the remake of the display image obtained by remaking the high-resolution screen. Accurate identification of images (that is, images without moiré or remake images with inconspicuous moiré patterns) enables the detection of remake attacks in high-definition screen remake scenarios, further improving the accuracy of live detection. Hereinafter, for the convenience of description, the present disclosure will refer to the clue image obtained by the spectral image as the first clue image.

图1是根据一示例性实施例示出的一种活体检测方法的流程图,如图1所示,包括以下步骤。Fig. 1 is a flowchart of a method for detecting a living body according to an exemplary embodiment. As shown in Fig. 1 , the method includes the following steps.

在步骤S11中,获取待检测图像。In step S11, an image to be detected is acquired.

其中,待检测图像中包括目标对象的脸部区域。Wherein, the image to be detected includes the face area of the target object.

在步骤S12中,对待检测图像进行频域转换,得到待检测图像的频谱图像,基于频谱图像生成对应于待检测图像的第一线索图像,基于第一线索图像对待检测图像进行翻拍攻击检测,得到翻拍攻击检测结果,以及基于待检测图像对目标对象进行活体检测,得到活体检测结果。In step S12, frequency domain conversion is performed on the image to be detected to obtain a spectral image of the image to be detected, a first clue image corresponding to the image to be detected is generated based on the spectral image, and a copy attack detection is performed on the image to be detected based on the first clue image to obtain Remake the attack detection result, and perform living body detection on the target object based on the to-be-detected image to obtain the living body detection result.

本公开实施例中,待检测图像为三基色(Red Green Blue,RGB)颜色空间格式的三通道图像,对待检测图像进行频域转换所得到的频谱图像为单通道图像。频谱图像的单通道数据,即为像素值。示例的,可以通过快速傅立叶变换(fast Fourier transform,fft)算法,对待检测图像进行频域转换。In the embodiment of the present disclosure, the image to be detected is a three-channel image in a three-primary color (Red Green Blue, RGB) color space format, and a spectrum image obtained by performing frequency domain conversion on the image to be detected is a single-channel image. The single-channel data of the spectral image is the pixel value. For example, a fast Fourier transform (fast Fourier transform, fft) algorithm may be used to perform frequency domain transformation on the image to be detected.

在步骤S13中,基于活体检测结果以及翻拍攻击检测结果,确定目标对象是否为活体。In step S13, it is determined whether the target object is a living body based on the living body detection result and the remake attack detection result.

示例的,针对活体检测结果以及翻拍攻击检测结果,可以通过“取交集”的方式,判断目标对象是否为活体。例如,若活体检测结果为待检测图像为活体图像,且翻拍攻击检测结果为待检测图像非翻拍图像,则判断目标对象为活体。若活体检测结果为待检测图像为非活体图像,或翻拍攻击检测结果为待检测图像翻拍图像,则判断目标对象为非活体。For example, for the detection result of the living body and the detection result of the remake attack, it can be determined whether the target object is a living body by means of "taking the intersection". For example, if the living body detection result is that the to-be-detected image is a living body image, and the duplication attack detection result is that the to-be-detected image is not a duplicated image, it is determined that the target object is a living body. If the living body detection result is that the to-be-detected image is a non-living body image, or the duplication attack detection result is that the to-be-detected image is a duplicated image, it is determined that the target object is a non-living body.

本公开涉及的活体检测方式,例如可以为动作活体检测(如眨眼、张嘴等)、炫彩活体检测、唇语活体检测等活体检测方式,本公开对此不做具体限定。在一些具体实施方式中,针对活体检测以及翻拍攻击检测,可以先以其中一种检测方式进行检测,并在检测通过的情况下进一步执行另外一种检测。例如,可以先通过待检测图像进行活体检测,并在活体检测通过的情况下,对第一线索图像进行翻拍攻击检测。又例如,可以先通过第一线索图像进行翻拍攻击检测,并在翻拍攻击检测通过的情况下,再通过待检测图像进行活体检测。当然,活体检测和翻拍攻击检测也可以同时进行。The liveness detection methods involved in the present disclosure may be, for example, motion liveness detection (such as blinking, mouth opening, etc.), colorful liveness detection, lip language liveness detection and other liveness detection methods, which are not specifically limited in this disclosure. In some specific implementation manners, for live detection and remake attack detection, one of the detection methods may be used to perform detection first, and if the detection is passed, the other detection method may be further performed. For example, the living body detection may be performed first through the image to be detected, and if the living body detection is passed, the remake attack detection may be performed on the first clue image. For another example, the first clue image may be used to perform the remake attack detection, and if the remake attack detection passes, the living body detection may be performed through the to-be-detected image. Of course, liveness detection and remake attack detection can also be performed simultaneously.

通常的,针对某一指定图像,以及对该指定图像进行屏幕翻拍得到的翻拍图像,在将两图像分别进行频谱转换得到的频谱图像后,针对频谱图像中的特定区域,会存在较为明显的像素排布差异。本公开一实施方式中,可以通过针对上述涉及的特定区域的裁剪及拼接,得到第一线索图像。Generally, for a specified image and a replayed image obtained by performing a screen remake of the designated image, after the spectrum image obtained by spectrally transforming the two images respectively, there will be more obvious pixels for a specific area in the spectrum image. Arrange differences. In an embodiment of the present disclosure, the first clue image can be obtained by cropping and splicing the above-mentioned specific region.

图2是根据一示例性实施例示出的一种基于频谱图像生成对应于待检测图像的第一线索图像的方法流程图,如图2所示,包括以下步骤。Fig. 2 is a flowchart of a method for generating a first clue image corresponding to an image to be detected based on a spectral image according to an exemplary embodiment. As shown in Fig. 2 , the method includes the following steps.

在步骤S21中,按照目标规则截取包含目标像素点在内的图像区域。In step S21, the image area including the target pixel is intercepted according to the target rule.

本公开实施例中,目标像素点为频谱图像中位于各目标像素行和各目标像素列的像素交点。其中,各目标像素行之间等间隔排布,且各目标像素列之间等间隔排布。In the embodiment of the present disclosure, the target pixel point is the pixel intersection point located in each target pixel row and each target pixel column in the spectrum image. The target pixel rows are arranged at equal intervals, and the target pixel columns are arranged at equal intervals.

示例的,可以将目标像素点作为截取中心点来截取图像区域,也可以将与目标像素点相近的其他像素点作为截取中心点来截取图像区域。此外,截取范围可以根据频谱图像的实际情况进行调整(例如可以将20*20的像素范围作为截取范围),本公开对此不做具体限定。By way of example, the target pixel point may be used as the interception center point to intercept the image area, and other pixels close to the target pixel point may be used as the interception center point to intercept the image area. In addition, the interception range may be adjusted according to the actual situation of the spectrum image (for example, a pixel range of 20*20 may be used as the interception range), which is not specifically limited in the present disclosure.

在步骤S22中,将各图像区域进行拼接,得到第一线索图像。In step S22, each image area is spliced to obtain a first clue image.

本公开实施例中,按照目标规则截取包含目标像素点在内的图像区域,并将各图像区域进行拼接,得到第一线索图像,是为了排除频谱图像中不利于翻拍攻击检测的图像区域。将非翻拍图像与翻拍图像之间容易出现特征差异的图像区域进行保留,可以进一步提高翻拍攻击检测精度。如下以图3作为参考,对在频谱图像中选取的目标像素点进行示例性说明。In the embodiment of the present disclosure, the image area including the target pixel is intercepted according to the target rule, and each image area is spliced to obtain the first clue image, in order to exclude the image area in the spectrum image that is not conducive to the detection of the remake attack. Retaining the image area that is prone to feature differences between the non-repeat image and the remake image can further improve the detection accuracy of the remake attack. With reference to FIG. 3 , the target pixel points selected in the spectrum image are exemplarily described below.

图3是根据一示例性实施例示出的一种频谱图像中目标像素点的示意图。示例的,如图3所示,目标像素行例如可以包括像素行X1、像素行X2、像素行X3、像素行X4、像素行X5、像素行X6以及像素行X7,目标像素列例如可以包括像素列Y1、像素列Y2、像素列Y3、像素列Y4、像素列Y5、像素列Y6以及像素列Y7。所选取的目标像素点,例如可以是图3中以方形标注及圆形标注的各个像素交点,具体包括像素点[X1,Y1]、[X1,Y2]、[X1,Y3]、[X1,Y4]、[X1,Y5]、[X1,Y6]、[X1,Y7]、[X2,Y1]、[X2,Y2]、[X2,Y3]、[X2,Y4]、[X2,Y5]、[X2,Y6]、[X2,Y7]、[X3,Y1]、[X3,Y2]、[X3,Y3]、[X3,Y4]、[X3,Y5]、[X3,Y6]、[X3,Y7]、[X4,Y1]、[X4,Y2]、[X4,Y3]、[X4,Y4]、[X4,Y5]、[X4,Y6]、[X4,Y7]、[X5,Y1]、[X5,Y2]、[X5,Y3]、[X5,Y4]、[X5,Y5]、[X5,Y6]、[X5,Y7]、[X6,Y1]、[X6,Y2]、[X6,Y3]、[X6,Y5]、[X6,Y6]、[X6,Y7]、[X7,Y1]、[X7,Y2]、[X7,Y3]、[X7,Y5]、[X7,Y6]以及[X7,Y7]。Fig. 3 is a schematic diagram of a target pixel in a spectrum image according to an exemplary embodiment. Exemplarily, as shown in FIG. 3 , the target pixel row may include, for example, pixel row X1, pixel row X2, pixel row X3, pixel row X4, pixel row X5, pixel row X6, and pixel row X7, and the target pixel column may, for example, include pixel rows. Column Y1, pixel column Y2, pixel column Y3, pixel column Y4, pixel column Y5, pixel column Y6, and pixel column Y7. The selected target pixel, for example, can be the intersection of each pixel marked with a square and a circle in FIG. Y4], [X1,Y5], [X1,Y6], [X1,Y7], [X2,Y1], [X2,Y2], [X2,Y3], [X2,Y4], [X2,Y5] , [X2, Y6], [X2, Y7], [X3, Y1], [X3, Y2], [X3, Y3], [X3, Y4], [X3, Y5], [X3, Y6], [ X3,Y7], [X4,Y1], [X4,Y2], [X4,Y3], [X4,Y4], [X4,Y5], [X4,Y6], [X4,Y7], [X5, Y1], [X5, Y2], [X5, Y3], [X5, Y4], [X5, Y5], [X5, Y6], [X5, Y7], [X6, Y1], [X6, Y2] , [X6,Y3], [X6,Y5], [X6,Y6], [X6,Y7], [X7,Y1], [X7,Y2], [X7,Y3], [X7,Y5], [ X7,Y6] and [X7,Y7].

示例的,通过将非翻拍图像的频谱图像与翻拍图像的频谱图像进行对比,发现中心像素行(频谱图像的中心像素点所属的像素行)及中心像素列(频谱图像的中心像素点所属的像素列)附近的像素点通常不会出现较为明显的像素值排布差异。一实施方式中,可以将等间隔排布的像素行中除频谱图像的中心像素行之外的像素行作为目标像素行中,以及将等间隔排布的像素列除频谱图像的中心像素列之外的像素列作为目标像素列。Exemplarily, by comparing the spectrum image of the non-reproduced image with the spectrum image of the copied image, it is found that the center pixel row (the pixel row to which the center pixel of the spectrum image belongs) and the center pixel column (the pixel to which the center pixel of the spectrum image belongs) Pixel points near the column) usually do not have obvious differences in the arrangement of pixel values. In one embodiment, the pixel rows other than the central pixel row of the spectral image in the pixel rows arranged at equal intervals may be used as the target pixel row, and the pixel rows arranged at equal intervals except the central pixel row of the spectral image may be used as the target pixel row. The outer pixel column is used as the target pixel column.

以图3为例,中心像素行为像素行X4,中心像素列为像素列Y4,目标像素点例如可以是图3中以方形标注的各个像素点,具体包括像素点[X1,Y1]、[X1,Y2]、[X1,Y3]、[X1,Y5]、[X1,Y6]、[X1,Y7]、[X2,Y1]、[X2,Y2]、[X2,Y3]、[X2,Y5]、[X2,Y6]、[X2,Y7]、[X3,Y1]、[X3,Y2]、[X3,Y3]、[X3,Y5]、[X3,Y6]、[X3,Y7]、[X5,Y1]、[X5,Y2]、[X5,Y3]、[X5,Y5]、[X5,Y6]、[X5,Y7]、[X6,Y1]、[X6,Y2]、[X6,Y3]、[X6,Y5]、[X6,Y6]、[X6,Y7]、[X7,Y1]、[X7,Y2]、[X7,Y3]、[X7,Y5]、[X7,Y6]以及[X7,Y7]确定为目标像素点。排除属于中心像素行或中心像素列的像素点后,所得到的第一线索图像可以更优的体现出翻拍图像与非翻拍图像之间的差异,可以进一步提升作为翻拍攻击检测效果。Taking Figure 3 as an example, the central pixel row is pixel row X4, the central pixel column is pixel row Y4, and the target pixel point can be, for example, each pixel point marked with a square in Figure 3, specifically including pixel points [X1, Y1], [X1 ,Y2], [X1,Y3], [X1,Y5], [X1,Y6], [X1,Y7], [X2,Y1], [X2,Y2], [X2,Y3], [X2,Y5 ], [X2, Y6], [X2, Y7], [X3, Y1], [X3, Y2], [X3, Y3], [X3, Y5], [X3, Y6], [X3, Y7], [X5,Y1], [X5,Y2], [X5,Y3], [X5,Y5], [X5,Y6], [X5,Y7], [X6,Y1], [X6,Y2], [X6 ,Y3], [X6,Y5], [X6,Y6], [X6,Y7], [X7,Y1], [X7,Y2], [X7,Y3], [X7,Y5], [X7,Y6 ] and [X7, Y7] are determined as target pixels. After excluding the pixels belonging to the center pixel row or center pixel column, the obtained first clue image can better reflect the difference between the recapped image and the non-recaptured image, which can further improve the detection effect of recapture attacks.

此外,在对翻拍攻击的实际检测过程中发现,目标像素行及目标像素列应分别位于频谱图像的1/8或者1/8的整数倍(具体包括2/8、3/8、4/8、5/8、6/8、7/8)所对应位置处时,所选取的目标像素点才会落入频谱图像中易于对翻拍图像进行识别的图像区域。其中,如图3所示,位于频谱图像的1/8位置处的像素行为像素行X1,频谱图像的2/8位置处的像素行为像素行X2,频谱图像的3/8位置处的像素行为像素行X3。此外,相应的,像素行X4至像素行X7分别为位于频谱图像的4/8位置处的像素行至位于频谱图像的7/8的像素行,本公开在此不做赘述。以目标像素行对频谱图像进行区域划分,可以将频谱图像划分为8个大小相等的图像区域。同样的,位于频谱图像的1/8位置处的像素列为像素列Y1,频谱图像的2/8位置处的像素列为像素列Y2,频谱图像的3/8位置处的像素列为像素列Y3。此外,相应的,像素列Y4至像素列Y7分别为位于频谱图像的4/8位置处的像素列至位于频谱图像的7/8的像素列,本公开在此不做赘述。以目标像素列对频谱图像进列区域划分,可以将频谱图像划分为8个大小相等的图像区域。在此基础上,将位于频谱图像的1/8或者1/8的整数倍位置处的像素行作为目标像素行,以及将位于频谱图像的1/8或者1/8的整数倍位置处的像素列作为目标像素列,并在目标像素行及目标像素列中剔除中心像素行(位于频谱图像的4/8位置处的像素行)及中心像素列(位于频谱图像的4/8位置处的像素列),最终可以得到易于对翻拍图像进行识别的多个图像区域,将通过该方法得到的多个图像区域进行拼接,得到第一线索图像,可以作为本公开得到第一线索图像的一种择优方式。In addition, in the actual detection process of the remake attack, it was found that the target pixel row and target pixel column should be located at 1/8 or an integer multiple of 1/8 of the spectral image (specifically including 2/8, 3/8, 4/8). , 5/8, 6/8, 7/8), the selected target pixel will fall into the image area in the spectrum image that is easy to identify the remake image. Among them, as shown in Figure 3, the pixel at the 1/8 position of the spectrum image is the pixel row X1, the pixel at the 2/8 position of the spectrum image is the pixel row X2, and the pixel at the 3/8 position of the spectrum image is the row X2. Pixel row X3. In addition, correspondingly, the pixel row X4 to the pixel row X7 are respectively the pixel row located at the 4/8 position of the spectrum image to the pixel row located at the 7/8 position of the spectrum image, which will not be repeated in the present disclosure. The spectral image can be divided into 8 image areas of equal size by dividing the spectral image by the target pixel row. Similarly, the pixel column at the 1/8 position of the spectrum image is the pixel column Y1, the pixel at the 2/8 position of the spectrum image is the pixel column Y2, and the pixel at the 3/8 position of the spectrum image is the pixel column. Y3. In addition, correspondingly, the pixel row Y4 to the pixel row Y7 are respectively the pixel row located at the 4/8 position of the spectrum image to the pixel row located at the 7/8 position of the spectrum image, which will not be described in detail herein. The spectral image is divided into column regions by the target pixel column, and the spectral image can be divided into 8 image regions of equal size. On this basis, the pixel row located at the position of 1/8 or an integer multiple of 1/8 of the spectrum image is used as the target pixel row, and the pixel located at the position of 1/8 or an integer multiple of 1/8 of the spectrum image is used as the target pixel row. The column is used as the target pixel column, and the central pixel row (the pixel row located at the 4/8 position of the spectral image) and the central pixel column (the pixel located at the 4/8 position of the spectral image) are removed from the target pixel row and target pixel column. column), and finally, multiple image areas that are easy to identify the remake image can be obtained, and the multiple image areas obtained by this method are spliced to obtain the first clue image, which can be used as a preferred method for obtaining the first clue image in the present disclosure. Way.

示例的,在对多个图像区域进行拼接的过程中,各个图像区域所拼接的位置,与其在频谱图像中原先所处的位置相一致。例如,如图3所示,针对以像素点[X1,Y1]作为中心点得到的图像区域,其所对应的图像区域在拼接图像中仍位于左上位置,针对以像素点[X7,Y7]作为中心点得到的图像区域,其所对应的图像区域在拼接图像中仍位于右下位置。For example, in the process of splicing multiple image regions, the spliced positions of each image region are consistent with their original positions in the spectrum image. For example, as shown in Figure 3, for the image area obtained with the pixel point [X1, Y1] as the center point, the corresponding image area is still located in the upper left position in the spliced image, for the pixel point [X7, Y7] as the The image area obtained from the center point, the corresponding image area is still located in the lower right position in the stitched image.

通过本公开实施例提供的图像检测方法,可以在频谱图像中筛选出有利于识别翻拍图像的图像区域。进一步的,将指定图像区域进行裁剪及拼接,并对拼接得到的第一线索图像进行翻拍攻击检测,可以得到较为准确的翻拍攻击检测结果。With the image detection method provided by the embodiment of the present disclosure, an image area that is helpful for recognizing the remake image can be screened out in the spectrum image. Further, by cropping and splicing the designated image area, and performing remake attack detection on the first clue image obtained by splicing, a relatively accurate remake attack detection result can be obtained.

通常的,通过非翻拍图像得到的线索图像,与通过翻拍图像得到的线索图像之间,虽在频谱排布上存在差异,但差异并不明显。若直接对第一线索图像进行翻拍攻击检测,则检测精度受限。鉴于此,本公开实施例中,可以对各个图像区域进行亮度差异增大处理,其中,亮度差异为图像区域中亮点像素和其余像素之间的亮度差异。通过亮度差异增大处理可突出翻拍图像与非翻拍图像之间的像素值差异。其中,针对频谱图像,像素的像素值可以表征像素的亮度,像素值越高则像素越亮。以下对通过图像区域进行亮度差异增大处理的实施方式进行示例性说明。Generally, although there is a difference in the spectral arrangement between the clue image obtained from the non-repeat image and the clue image obtained from the retake image, the difference is not obvious. If the remake attack detection is directly performed on the first clue image, the detection accuracy is limited. In view of this, in the embodiment of the present disclosure, brightness difference increasing processing may be performed on each image area, where the brightness difference is the brightness difference between the bright pixel and the remaining pixels in the image area. The difference in pixel value between the remake image and the non-remake image can be highlighted by the brightness difference increasing process. Among them, for the spectral image, the pixel value of the pixel can represent the brightness of the pixel, and the higher the pixel value, the brighter the pixel. The following is an exemplary description of an embodiment of the luminance difference increasing process by the image area.

具体的,在对图像区域进行亮度差异增大处理的过程,可以是在将各个图像区域拼接生成第一线索图像之前执行,也可以是在将各个图像区域拼接生成第一线索图像之后执行;本公开实施例并不对上述亮度差异增大处理的具体执行时间进行限定。Specifically, the process of increasing the brightness difference on the image areas may be performed before splicing each image area to generate the first clue image, or may be performed after splicing each image area to generate the first clue image; this The disclosed embodiments do not limit the specific execution time of the above brightness difference increasing processing.

图4是根据一示例性实施例示出的另一种基于频谱图像生成对应于待检测图像的第一线索图像的方法流程图,如图4所示,本公开实施例中的步骤S31与图2中的步骤S21的执行方法相似,在此不做赘述。FIG. 4 is a flowchart of another method for generating a first clue image corresponding to an image to be detected based on a spectral image according to an exemplary embodiment. As shown in FIG. 4 , step S31 in the embodiment of the present disclosure is the same as that in FIG. 2 . The execution method of step S21 in the above is similar, which is not repeated here.

在步骤S32中,对各图像区域进行亮度差异增大处理。In step S32, luminance difference increasing processing is performed on each image area.

其中,亮度差异为图像区域中亮点像素和其余像素之间的亮度差异。Among them, the brightness difference is the brightness difference between the bright pixel and the remaining pixels in the image area.

在步骤S33中,对亮度差异增大处理后的将各图像区域进行拼接,得到第一线索图像。In step S33, each image area after the brightness difference increasing process is stitched to obtain a first clue image.

本公开实施例中,通过对多个不同图像区域分别进行亮度差异增大处理的方式,可以进一步拉大翻拍图像与非翻拍图像之间的线索图像差异,以使翻拍攻击检测精度得到进一步提高。In the embodiment of the present disclosure, by performing brightness difference increasing processing on a plurality of different image regions, the clue image difference between the remake image and the non-remake image can be further enlarged, so that the remake attack detection accuracy can be further improved.

本公开以下对亮度差异增大处理的可实施方式进行实例性说明。本公开以下为便于描述,将以方式一选取的指定像素点称为第一指定像素点,将以方式二选取的指定像素点称为第二指定像素点。The present disclosure exemplifies possible implementations of the luminance difference increase process below. Hereinafter, for the convenience of description in the present disclosure, the specified pixel point selected in the first manner is referred to as the first specified pixel point, and the specified pixel point selected in the second manner is referred to as the second specified pixel point.

方式一:针对每个图像区域,按照像素值由大到小的顺序选取指定数量的第一指定像素点,对图像区域中除第一指定像素点之外的像素点的像素值进行调节处理。Mode 1: For each image area, select a specified number of first designated pixels in descending order of pixel values, and adjust the pixel values of pixels in the image area other than the first designated pixels.

示例的,指定数量例如可以是20,当然,也可以为其他,上述指定数量的具体数值可以根据实际需求进行设置,本公开实施例并不对上述指定数量的具体数值进行限定。For example, the specified number may be 20, of course, it may be other, the specific value of the above specified number can be set according to actual needs, and the embodiment of the present disclosure does not limit the specific value of the above specified number.

方式二:针对每个图像区域,确定像素值小于目标像素阈值的第二指定像素点,对第二指定像素点的像素值进行调节处理。Method 2: For each image area, determine a second designated pixel whose pixel value is smaller than the target pixel threshold, and perform adjustment processing on the pixel value of the second designated pixel.

此外,针对上述方式一或方式二,调节处理例如可以包括将像素点的像素值设置为目标数值(示例的,目标数值可以为0),或者调小相应像素点(针对方式一,调节的像素点为除第一指定像素点之外的像素点,针对方式二,调节的像素点为第二指定像素点)的像素值。In addition, for the above-mentioned manner 1 or manner 2, the adjustment process may include, for example, setting the pixel value of the pixel point to a target value (for example, the target value may be 0), or reducing the corresponding pixel point (for manner 1, the adjusted pixel value The point is a pixel point other than the first designated pixel point, and for the second method, the adjusted pixel point is the pixel value of the second designated pixel point).

上述实施例中,对各个图像区域进行亮度差异增大处理的方式,旨在进一步提高翻拍图像与非翻拍图像之间的线索图像差异,以使翻拍攻击检测精度得到进一步提升。In the above-mentioned embodiment, the method of increasing the brightness difference of each image area is aimed at further improving the difference of clue images between the duplicated image and the non-duplicated image, so as to further improve the detection accuracy of the duplicated attack.

图5是根据一示例性实施例示出的一种通过翻拍图像得到的亮度差异增大处理后的线索图像的示意图。示例的,如图5所示,线索图像中黑色区域对应亮度差异增大处理过程中调节处理后的像素点,白色区域对应亮度差异增大处理过程中未被调节的像素点。通常的,针对通过非翻拍图像得到的亮度差异增大处理后的线索图像,图像中位于白色区域的像素点并无明显排布规律,而针对通过翻拍图像得到的亮度差异增大处理后的线索图像,图像中白色区域的像素低点存在较为明显的排布规律(具体的,如图5所示,在亮度差异增大处理过程中未被调节的像素点,会在线索图像中集中规则排布)。FIG. 5 is a schematic diagram of a clue image obtained by retaking an image after processing to increase the brightness difference, according to an exemplary embodiment. Exemplarily, as shown in FIG. 5 , the black area in the clue image corresponds to the pixels adjusted during the process of increasing the brightness difference, and the white area corresponds to the pixels that were not adjusted during the process of increasing the brightness difference. Generally, for the clue image obtained by the non-reproduced image after the brightness difference increase processing, the pixels located in the white area in the image have no obvious arrangement pattern, while the brightness difference obtained by the duplicate image is increased. In the image, the pixel low points in the white area in the image have obvious arrangement rules (specifically, as shown in Figure 5, the pixels that are not adjusted in the process of increasing the brightness difference will be concentrated and regularly arranged in the clue image. cloth).

示例的,可以通过预先训练的目标检测模型对第一线索图像进行翻拍攻击检测。Exemplarily, a pre-trained target detection model may be used to detect a remake attack on the first clue image.

图6是根据一示例性实施例示出的另一种活体检测方法的流程图,如图6所示,本公开实施例中的步骤S41和S43与图1中的步骤S11和S13的执行方法相似,在此不做赘述。FIG. 6 is a flowchart of another method for detecting a living body according to an exemplary embodiment. As shown in FIG. 6 , steps S41 and S43 in the embodiment of the present disclosure are similar to the execution methods of steps S11 and S13 in FIG. 1 . , which will not be repeated here.

在步骤S42中,对待检测图像进行频域转换,得到待检测图像的频谱图像,基于频谱图像生成对应于待检测图像的第一线索图像,将第一线索图像输入目标检测模型,获取目标检测模型的输出信息,基于输出信息得到待检测图像的翻拍攻击检测结果,以及基于待检测图像对目标对象进行活体检测,得到活体检测结果。In step S42, frequency domain conversion is performed on the image to be detected to obtain a spectral image of the image to be detected, a first clue image corresponding to the image to be detected is generated based on the spectral image, the first clue image is input into the target detection model, and the target detection model is obtained Based on the output information, a remake attack detection result of the image to be detected is obtained based on the output information, and a living body detection result is obtained on the target object based on the to-be-detected image.

其中,目标检测模型是通过非翻拍图像对应的第二线索图像以及翻拍图像对应的第三线索图像训练得到的。并且,翻拍图像例如包括对分辨率高于指定分辨率(示例的,指定分辨率可以为1280*720)的屏幕所显示画面进行拍摄得到的图像。The target detection model is obtained by training the second clue image corresponding to the non-remake image and the third clue image corresponding to the remake image. In addition, the recapped image includes, for example, an image obtained by photographing a picture displayed on a screen with a resolution higher than a specified resolution (for example, the specified resolution may be 1280*720).

示例的,目标检测模型例如可以是甚深卷积网络(Very Deep ConvolutionalNetworks,VGG)结构的神经网络模型。Illustratively, the target detection model may be, for example, a neural network model with a very deep convolutional network (Very Deep Convolutional Networks, VGG) structure.

本公开实施例中,目标检测模型用于通过线索图像的频谱特征判断待检测图像是否为翻拍图像。示例的,可以将线索图像输入目标检测模型,并根据输出信息得到翻拍攻击检测结果。其中,翻拍检测结果例如可以是待检测图像为翻拍图像的概率值,当然,也可以是根据概率值进行二分类得到的最终判别结果。(例如“待检测图像为翻拍图像”或“待检测图像不为翻拍图像”)In the embodiment of the present disclosure, the target detection model is used to determine whether the to-be-detected image is a remake image based on the spectral features of the clue image. For example, the clue image can be input into the target detection model, and the remake attack detection result can be obtained according to the output information. The remake detection result may be, for example, a probability value that the image to be detected is a remake image, and of course, may also be a final discrimination result obtained by performing binary classification according to the probability value. (For example, "The image to be detected is a remake" or "The image to be detected is not a remake")

示例的,可以目标用于判别翻拍检测结果的目标概率值(示例以0.5表示),若目标检测模型确定待检测图像为翻拍图像的概率值大于目标概率值,则输出“1”,表征待检测图像为翻拍图像。若目标检测模型确定待检测图像为翻拍图像的概率值小于或等于目标概率值,则输出“0”,表征待检测图像不为翻拍图像。Illustratively, the target probability value (an example is represented by 0.5) can be used to discriminate the remake detection result. If the target detection model determines that the probability value of the image to be detected is a remake image is greater than the target probability value, “1” is output, indicating the to-be-detected image. Image is a remake. If the target detection model determines that the probability value of the image to be detected is a retaken image is less than or equal to the target probability value, "0" is output, indicating that the image to be detected is not a retaken image.

此外,还可通过裁剪翻拍图像的背景区域,保留翻拍图像的脸部区域的方式,减小图像中背景区域对目标检测模型训练的干扰,以此保证模型的训练效果。其中,翻拍图像中目标对象的脸部区域例如可以是通过人脸检测算法确定的。进一步的,还可以基于人工调整的方式对通过人脸检测算法所确定的脸部区域进行调整(增大或缩小脸部区域的范围),以此得到仅包括目标对象脸部区域的裁剪图像。In addition, by cropping the background area of the retaken image and retaining the face area of the retaken image, the interference of the background area in the image to the training of the target detection model can be reduced, so as to ensure the training effect of the model. Wherein, the face region of the target object in the retaken image may be determined by, for example, a face detection algorithm. Further, the face region determined by the face detection algorithm can also be adjusted (increasing or reducing the range of the face region) based on manual adjustment, so as to obtain a cropped image that only includes the face region of the target object.

此外,为进一步提高目标检测模型的特征学习效率,可以为第二线索图像及第三线索图像配置二通道的位置编码(position encoding)。其中,位置编码用于标识图像中各像素位置,以位置编码[X,Y]为例,X用于标识像素行,Y用于标识像素列。进一步的,可以针对第二线索图像(或第三线索图像)的二通道位置编码,与第二线索图像(或第三线索图像)的单通道数据(即,像素值)进行通道拼接,得到具有三通道数据的第二线索图像(或第三线索图像)。进一步的,可以通过具有三通道数据的第二线索图像以及具有三通道数据的第三线索图像训练目标检测模型,进而在目标检测模型收敛或目标检测模型的训练步数达到指定步数时,停止训练,得到目标检测模型。In addition, in order to further improve the feature learning efficiency of the target detection model, two-channel position encoding can be configured for the second clue image and the third clue image. Among them, the position code is used to identify the position of each pixel in the image, taking the position code [X, Y] as an example, X is used to identify the pixel row, and Y is used to identify the pixel column. Further, channel splicing can be performed on the two-channel position encoding of the second clue image (or the third clue image) and the single-channel data (ie, pixel values) of the second clue image (or the third clue image) to obtain a The second cue image (or the third cue image) for the three-channel data. Further, the target detection model can be trained by the second clue image with three-channel data and the third clue image with three-channel data, and then stop when the target detection model converges or the number of training steps of the target detection model reaches a specified number of steps. Train to get the target detection model.

本公开实施例提供的活体检测方法,可以通过待检测图像的频谱特征,实现对待检测图像是否为翻拍图像的判别。相较于通过图像中包含的摩尔纹进行翻拍图像检测的常规方式,本公开提出的图像检测方法具有普适性,针对不存在摩尔纹或摩尔纹不明显的翻拍图像,仍有较高的识别精度,可以满足对高分辨率显示屏翻拍图像的检测需求。在此基础上,以翻拍攻击检测结合活体检测,可以进一步提高活体检测精度,该方法针对例如翻拍高分辨率显示屏的攻击图像,可以实现精确检出。In the living body detection method provided by the embodiments of the present disclosure, it is possible to judge whether the image to be detected is a duplicated image based on the spectral characteristics of the image to be detected. Compared with the conventional method of detecting reprinted images through moiré included in the image, the image detection method proposed in the present disclosure has universality, and still has a high recognition ability for reprinted images with no moiré or inconspicuous moiré. Accuracy, can meet the detection needs of high-resolution display re-shot images. On this basis, the detection accuracy of living body can be further improved by combining the attack detection of remakes with the detection of living bodies. This method can achieve accurate detection for, for example, the attack images of remakes of high-resolution display screens.

此外,本公开基于相同的构思,本公开实施例还提供一种图像检测方法,可以实现对翻拍图像的检出,用以满足例如活体检测、环境分析等应用场景的翻拍图像检测需求。In addition, the present disclosure is based on the same concept, and an embodiment of the present disclosure also provides an image detection method, which can realize the detection of a duplicated image, so as to meet the duplicated image detection requirements of application scenarios such as living body detection and environmental analysis.

图7是根据一示例性实施例示出的一种图像检测方法的流程图,如图7所示,包括以下步骤。Fig. 7 is a flowchart of an image detection method according to an exemplary embodiment. As shown in Fig. 7 , the method includes the following steps.

在步骤S51中,获取待检测图像。In step S51, an image to be detected is acquired.

在步骤S52中,对待检测图像进行频域转换,得到待检测图像的频谱图像,基于频谱图像生成对应于待检测图像的第一线索图像。In step S52, frequency domain conversion is performed on the image to be detected to obtain a spectral image of the image to be detected, and a first clue image corresponding to the image to be detected is generated based on the spectral image.

在步骤S53中,基于第一线索图像对待检测图像进行翻拍攻击检测,得到翻拍攻击检测结果。In step S53, the image to be detected is subjected to remake attack detection based on the first clue image to obtain a remake attack detection result.

一实施方式中,可以通过对第一频谱图像中特定区域的裁剪及拼接,得到第一线索图像。In one embodiment, the first clue image can be obtained by cropping and splicing a specific area in the first spectral image.

图8是根据一示例性实施例示出的一种基于频谱图像生成对应于待检测图像的第一线索图像的方法流程图,如图8所示,包括以下步骤。Fig. 8 is a flowchart of a method for generating a first clue image corresponding to an image to be detected based on a spectral image according to an exemplary embodiment. As shown in Fig. 8 , the method includes the following steps.

在步骤S61中,按照目标规则截取包含目标像素点在内的图像区域。In step S61, the image area including the target pixel is intercepted according to the target rule.

本公开实施例中,目标像素点为频谱图像中位于各目标像素行和各目标像素列的像素交点。其中,各目标像素行之间等间隔排布,且各目标像素列之间等间隔排布。In the embodiment of the present disclosure, the target pixel point is the pixel intersection point located in each target pixel row and each target pixel column in the spectrum image. The target pixel rows are arranged at equal intervals, and the target pixel columns are arranged at equal intervals.

示例的,可以将目标像素点作为截取中心点来截取图像区域,也可以将与目标像素点相近的其他像素点作为截取中心点来截取图像区域。此外,截取范围可以根据频谱图像的实际情况进行调整(例如可以将20*20的像素范围作为截取范围),本公开对此不做具体限定。By way of example, the target pixel point may be used as the interception center point to intercept the image area, and other pixels close to the target pixel point may be used as the interception center point to intercept the image area. In addition, the interception range may be adjusted according to the actual situation of the spectrum image (for example, a pixel range of 20*20 may be used as the interception range), which is not specifically limited in the present disclosure.

在步骤S62中,将各图像区域进行拼接,得到第一线索图像。In step S62, each image area is spliced to obtain a first clue image.

本公开实施例中,按照目标规则截取包含目标像素点在内的图像区域,并将各图像区域进行拼接,得到第一线索图像,可以保留非翻拍图像与翻拍图像之间容易出现特征差异的图像区域,可以提高翻拍攻击检测精度。In the embodiment of the present disclosure, the image area including the target pixel is intercepted according to the target rule, and the image areas are spliced to obtain the first clue image, which can retain the image that is prone to feature differences between the non-remake image and the remake image. region, which can improve the detection accuracy of remake attacks.

此外,示例的,可以将位于频谱图像的1/8或者1/8的整数倍位置处的像素行作为目标像素行,将位于频谱图像的1/8或者1/8的整数倍位置处的像素列作为目标像素列,并在目标像素行及目标像素列中剔除中心像素行及中心像素列,最终可以得到易于对翻拍图像进行识别的多个图像区域,将通过该方法得到的多个图像区域进行拼接,得到第一线索图像,可以作为本公开得到第一线索图像的一种择优方式。In addition, for example, a pixel row located at a position of 1/8 or an integer multiple of 1/8 of the spectrum image may be used as a target pixel row, and a pixel located at a position of 1/8 or an integer multiple of 1/8 of the spectrum image may be used as the target pixel row. The column is used as the target pixel column, and the central pixel row and the central pixel column are eliminated from the target pixel row and target pixel column, and finally multiple image areas that are easy to identify the remake image can be obtained. Performing splicing to obtain the first clue image can be used as a preferred method for obtaining the first clue image in the present disclosure.

本公开实施例中涉及的翻拍攻击检测方式,与上述活体检测方法中涉及的翻拍攻击检测方式相似,本公开涉及的图像检测方法中相关内容不清楚之处,可直接参考活体检测方法中涉及的任一实施例。The copying attack detection method involved in the embodiments of the present disclosure is similar to the copying attack detection method involved in the above-mentioned living body detection method. For the unclear contents of the image detection method involved in the present disclosure, you can directly refer to the method involved in the living body detection method. any of the examples.

基于相同的构思,本公开实施例还提供一种活体检测装置。Based on the same concept, an embodiment of the present disclosure also provides a living body detection device.

可以理解的是,本公开实施例提供的图像检测装置为了实现上述功能,其包含了执行各个功能相应的硬件结构和/或软件模块。结合本公开实施例中所公开的各示例的单元及算法步骤,本公开实施例能够以硬件或硬件和计算机软件的结合形式来实现。某个功能究竟以硬件还是计算机软件驱动硬件的方式来执行,取决于技术方案的特定应用和设计约束条件。本领域技术人员可以对各个特定的应用来使用不同的方法来实现所描述的功能,但是这种实现不应认为超出本公开实施例的技术方案的范围。It can be understood that, in order to implement the above-mentioned functions, the image detection apparatus provided by the embodiments of the present disclosure includes corresponding hardware structures and/or software modules for executing each function. Combining with the units and algorithm steps of each example disclosed in the embodiments of the present disclosure, the embodiments of the present disclosure can be implemented in hardware or a combination of hardware and computer software. Whether a function is performed by hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art may use different methods for each specific application to implement the described functions, but such implementation should not be considered beyond the scope of the technical solutions of the embodiments of the present disclosure.

图9是根据一示例性实施例示出的一种活体检测装置框图。参照图9,该装置100包括获取单元101、处理单元102和确定单元103。Fig. 9 is a block diagram of an apparatus for detecting a living body according to an exemplary embodiment. Referring to FIG. 9 , the apparatus 100 includes an acquisition unit 101 , a processing unit 102 and a determination unit 103 .

获取单元101,用于获取待检测图像。其中,待检测图像中包括目标对象的脸部区域。处理单元102,用于对待检测图像进行频域转换,得到待检测图像的频谱图像,基于频谱图像生成对应于待检测图像的第一线索图像,基于第一线索图像对待检测图像进行翻拍攻击检测,得到翻拍攻击检测结果。以及用于基于待检测图像对目标对象进行活体检测,得到活体检测结果。确定单元103,用于基于活体检测结果以及翻拍攻击检测结果,确定目标对象是否为活体。The acquiring unit 101 is used for acquiring the image to be detected. Wherein, the image to be detected includes the face area of the target object. The processing unit 102 is configured to perform frequency domain conversion on the image to be detected, obtain a spectral image of the image to be detected, generate a first clue image corresponding to the image to be detected based on the spectral image, and perform copy attack detection on the image to be detected based on the first clue image, Get the remake attack detection result. And it is used to perform live detection on the target object based on the image to be detected to obtain the live detection result. The determining unit 103 is configured to determine whether the target object is a living body based on the living body detection result and the remake attack detection result.

一种实施方式中,处理单元102基于频谱图像生成对应于待检测图像的第一线索图像:按照目标规则截取包含目标像素点在内的图像区域。其中,目标像素点为频谱图像中位于各目标像素行和各目标像素列的像素点,各目标像素行等间隔排布,各目标像素列等间隔排布。将各图像区域进行拼接,得到第一线索图像。In an embodiment, the processing unit 102 generates a first clue image corresponding to the image to be detected based on the spectrum image: intercepts an image area including the target pixel point according to the target rule. The target pixel points are pixels located in each target pixel row and each target pixel column in the spectrum image, each target pixel row is arranged at equal intervals, and each target pixel column is arranged at equal intervals. Each image area is spliced to obtain the first clue image.

一种实施方式中,目标像素行为除频谱图像的中心像素行之外的像素行,目标像素列为除频谱图像的中心像素列之外的像素列。In one embodiment, the target pixel row is a pixel row other than the central pixel row of the spectral image, and the target pixel row is a pixel row other than the central pixel row of the spectral image.

一种实施方式中,目标像素行位于频谱图像的1/8或者1/8的整数倍所对应位置处,目标像素列位于频谱图像的1/8或者1/8的整数倍所对应位置处。In one embodiment, the target pixel row is located at a position corresponding to 1/8 or an integer multiple of 1/8 of the spectral image, and the target pixel column is located at a position corresponding to 1/8 or an integer multiple of 1/8 of the spectral image.

一种实施方式中,处理单元102还用于:对各图像区域进行亮度差异增大处理,其中,亮度差异为图像区域中亮点像素和其余像素之间的亮度差异。In one embodiment, the processing unit 102 is further configured to: perform brightness difference increasing processing on each image area, where the brightness difference is the brightness difference between the bright pixel and the remaining pixels in the image area.

一种实施方式中,处理单元102采用如下方式对各图像区域进行亮度差异增大处理:针对每个图像区域,按照像素值由大到小的顺序选取指定数量的第一指定像素点,对图像区域中除第一指定像素点之外的像素点的像素值进行调节处理。其中,调节处理包括将像素点的像素值设置为目标数值或者调小像素点的像素值。或者,针对每个图像区域,确定像素值小于目标像素阈值的第二指定像素点,对第二指定像素点的像素值进行调节处理。其中,调节处理包括将像素点的像素值设置为目标数值或者调小像素点的像素值。In an embodiment, the processing unit 102 performs the brightness difference increase processing on each image area in the following manner: for each image area, selects a specified number of first specified pixels in the order of pixel values from large to small, The pixel values of the pixel points in the area other than the first designated pixel point are adjusted. The adjustment processing includes setting the pixel value of the pixel point to a target value or reducing the pixel value of the pixel point. Or, for each image area, determine a second designated pixel whose pixel value is smaller than the target pixel threshold, and perform adjustment processing on the pixel value of the second designated pixel. The adjustment processing includes setting the pixel value of the pixel point to a target value or reducing the pixel value of the pixel point.

基于相同的构思,本公开还提出了一种图像检测装置。Based on the same concept, the present disclosure also proposes an image detection device.

图10是根据一示例性实施例示出的一种图像检测装置框图。参照图10,该装置200包括获取单元201和处理单元202。Fig. 10 is a block diagram of an image detection apparatus according to an exemplary embodiment. Referring to FIG. 10 , the apparatus 200 includes an acquisition unit 201 and a processing unit 202 .

获取单元201,用于获取待检测图像。处理单元202对待检测图像进行频域转换,得到待检测图像的频谱图像,基于频谱图像生成对应于待检测图像的第一线索图像。基于第一线索图像对待检测图像进行翻拍攻击检测,得到翻拍攻击检测结果。The acquiring unit 201 is used for acquiring the image to be detected. The processing unit 202 performs frequency domain conversion on the image to be detected to obtain a spectral image of the image to be detected, and generates a first clue image corresponding to the image to be detected based on the spectral image. Based on the first clue image, the image to be detected is subjected to remake attack detection to obtain a remake attack detection result.

一种实施方式中,处理单元202采用如下方式基于频谱图像生成对应于待检测图像的第一线索图像:按照目标规则截取包含目标像素点在内的图像区域。其中,目标像素点为频谱图像中位于各目标像素行和各目标像素列的像素点,各目标像素行等间隔排布,各目标像素列等间隔排布。将各图像区域进行拼接,得到第一线索图像。In one embodiment, the processing unit 202 generates the first clue image corresponding to the image to be detected based on the spectrum image in the following manner: intercepting the image area including the target pixel point according to the target rule. The target pixel points are pixels located in each target pixel row and each target pixel column in the spectrum image, each target pixel row is arranged at equal intervals, and each target pixel column is arranged at equal intervals. Each image area is spliced to obtain the first clue image.

一种实施方式中,目标像素行为除频谱图像的中心像素行之外的像素行,目标像素列为除频谱图像的中心像素列之外的像素列。In one embodiment, the target pixel row is a pixel row other than the central pixel row of the spectral image, and the target pixel row is a pixel row other than the central pixel row of the spectral image.

一种实施方式中,目标像素行位于频谱图像的1/8或者1/8的整数倍所对应位置处,目标像素列位于频谱图像的1/8或者1/8的整数倍所对应位置处。In one embodiment, the target pixel row is located at a position corresponding to 1/8 or an integer multiple of 1/8 of the spectral image, and the target pixel column is located at a position corresponding to 1/8 or an integer multiple of 1/8 of the spectral image.

关于上述实施例中的装置,其中各个模块执行操作的具体方式已经在有关该方法的实施例中进行了详细描述,此处将不做详细阐述说明。Regarding the apparatus in the above-mentioned embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be described in detail here.

图11是根据一示例性实施例示出的一种用于图像检测或活体检测的电子设备300框图。FIG. 11 is a block diagram of an electronic device 300 for image detection or living body detection according to an exemplary embodiment.

如图11所示,本公开的一个实施方式提供了一种电子设备300。其中,该电子设备300包括存储器301、处理器302、输入/输出(Input/Output,I/O)接口303。其中,存储器301,用于存储指令。处理器302,用于调用存储器301存储的指令执行本公开实施例的图像检测或活体检测方法。其中,处理器302分别与存储器301、I/O接口303连接,例如可通过总线系统和/或其他形式的连接机构(未示出)进行连接。存储器301可用于存储程序和数据,包括本公开实施例中涉及的图像检测或活体检测方法的程序,处理器302通过运行存储在存储器301的程序从而执行电子设备300的各种功能应用以及数据处理。As shown in FIG. 11 , an embodiment of the present disclosure provides an electronic device 300 . The electronic device 300 includes a memory 301 , a processor 302 , and an input/output (I/O) interface 303 . Among them, the memory 301 is used for storing instructions. The processor 302 is configured to invoke the instructions stored in the memory 301 to execute the image detection or living body detection method according to the embodiment of the present disclosure. Wherein, the processor 302 is respectively connected with the memory 301 and the I/O interface 303, for example, it can be connected through a bus system and/or other forms of connection mechanisms (not shown). The memory 301 can be used to store programs and data, including the programs of the image detection or living body detection methods involved in the embodiments of the present disclosure, and the processor 302 executes various functional applications and data processing of the electronic device 300 by running the programs stored in the memory 301 .

本公开实施例中处理器302可以采用数字信号处理器(Digital SignalProcessing,DSP)、现场可编程门阵列(Field Programmable Gate Array,FPGA)、可编程逻辑阵列(Programmable Logic Array,PLA)中的至少一种硬件形式来实现,所述处理器302可以是中央处理单元(Central Processing Unit,CPU)或者具有数据处理能力和/或指令执行能力的其他形式的处理单元中的一种或几种的组合。In this embodiment of the present disclosure, the processor 302 may use at least one of a digital signal processor (Digital Signal Processing, DSP), a field programmable gate array (Field Programmable Gate Array, FPGA), and a programmable logic array (Programmable Logic Array, PLA). It is implemented in a hardware form, and the processor 302 may be a central processing unit (Central Processing Unit, CPU) or one or a combination of other forms of processing units with data processing capability and/or instruction execution capability.

本公开实施例中的存储器301可以包括一个或多个计算机程序产品,所述计算机程序产品可以包括各种形式的计算机可读存储介质,例如易失性存储器和/或非易失性存储器。所述易失性存储器例如可以包括随机存取存储器(Random Access Memory,RAM)和/或高速缓冲存储器(cache)等。所述非易失性存储器例如可以包括只读存储器(Read OnlyMemory,ROM)、快闪存储器(Flash Memory)、硬盘(Hard Disk Drive,HDD)或固态硬盘(Solid State Drive,SSD)等。The memory 301 in the embodiments of the present disclosure may include one or more computer program products, and the computer program products may include various forms of computer-readable storage media, such as volatile memory and/or non-volatile memory. The volatile memory may include, for example, a random access memory (Random Access Memory, RAM) and/or a cache memory (cache). The non-volatile memory may include, for example, a read only memory (Read Only Memory, ROM), a flash memory (Flash Memory), a hard disk (Hard Disk Drive, HDD), or a solid state drive (Solid State Drive, SSD), and the like.

本公开实施例中,I/O接口303可用于接收输入的指令(例如数字或字符信息,以及产生与电子设备300的用户设置以及功能控制有关的键信号输入等),也可向外部输出各种信息(例如,图像或声音等)。本公开实施例中I/O接口303可包括物理键盘、功能按键(比如音量控制按键、开关按键等)、鼠标、操作杆、轨迹球、麦克风、扬声器、和触控面板等中的一个或多个。In the embodiment of the present disclosure, the I/O interface 303 can be used to receive input instructions (such as numeric or character information, and generate key signal input related to user settings and function control of the electronic device 300 , etc.), and can also output various external information (for example, images or sounds, etc.). In this embodiment of the present disclosure, the I/O interface 303 may include one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a mouse, a joystick, a trackball, a microphone, a speaker, and a touch panel, etc. indivual.

在一些实施方式中,本公开提供了一种计算机可读存储介质,该计算机可读存储介质存储有计算机可执行指令,计算机可执行指令在由处理器执行时,执行上文所述的任何方法。In some embodiments, the present disclosure provides a computer-readable storage medium storing computer-executable instructions that, when executed by a processor, perform any of the methods described above .

在一些实施方式中,本公开提供了一种计算机程序产品,该计算机程序产品包括计算机程序,计算机程序被处理器执行时,执行上文所述的任何方法。In some embodiments, the present disclosure provides a computer program product comprising a computer program that, when executed by a processor, performs any of the methods described above.

尽管在附图中以特定的顺序描述操作,但是不应将其理解为要求按照所示的特定顺序或是串行顺序来执行这些操作,或是要求执行全部所示的操作以得到期望的结果。在特定环境中,多任务和并行处理可能是有利的。Although operations are depicted in the figures in a particular order, this should not be construed as requiring that the operations be performed in the particular order shown, or in a serial order, or that all operations shown be performed to obtain desirable results . In certain circumstances, multitasking and parallel processing may be advantageous.

本公开的方法和装置能够利用标准编程技术来完成,利用基于规则的逻辑或者其他逻辑来实现各种方法步骤。还应当注意的是,此处以及权利要求书中使用的词语“装置”和“模块”意在包括使用一行或者多行软件代码的实现和/或硬件实现和/或用于接收输入的设备。The methods and apparatus of the present disclosure can be accomplished using standard programming techniques, using rule-based logic or other logic to implement the various method steps. It should also be noted that the terms "means" and "module" as used herein and in the claims are intended to include implementations using one or more lines of software code and/or hardware implementations and/or means for receiving input.

此处描述的任何步骤、操作或程序可以使用单独的或与其他设备组合的一个或多个硬件或软件模块来执行或实现。在一个实施方式中,软件模块使用包括包含计算机程序代码的计算机可读介质的计算机程序产品实现,其能够由计算机处理器执行用于执行任何或全部的所描述的步骤、操作或程序。Any steps, operations or procedures described herein may be performed or implemented using one or more hardware or software modules, alone or in combination with other devices. In one embodiment, a software module is implemented using a computer program product comprising a computer-readable medium containing computer program code executable by a computer processor for performing any or all of the described steps, operations or procedures.

出于示例和描述的目的,已经给出了本公开实施的前述说明。前述说明并非是穷举性的也并非要将本公开限制到所公开的确切形式,根据上述教导还可能存在各种变形和修改,或者是可能从本公开的实践中得到各种变形和修改。选择和描述这些实施例是为了说明本公开的原理及其实际应用,以使得本领域的技术人员能够以适合于构思的特定用途来以各种实施方式和各种修改而利用本公开。The foregoing descriptions of implementations of the present disclosure have been presented for the purposes of illustration and description. The foregoing description is not intended to be exhaustive nor to limit the present disclosure to the precise forms disclosed, and various variations and modifications are possible in light of the above teachings or may be obtained from practice of the present disclosure. The embodiments were chosen and described in order to explain the principles of the disclosure and its practical application to enable others skilled in the art to utilize the disclosure in various embodiments and with various modifications as are suited to the particular use contemplated.

关于上述实施例中的装置,其中各个模块执行操作的具体方式已经在有关该方法的实施例中进行了详细描述,此处将不做详细阐述说明。Regarding the apparatus in the above-mentioned embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be described in detail here.

可以理解的是,本公开中“多个”是指两个或两个以上,其它量词与之类似。“和/或”,描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。字符“/”一般表示前后关联对象是一种“或”的关系。单数形式的“一种”、“所述”和“该”也旨在包括多数形式,除非上下文清楚地表示其他含义。It should be understood that in the present disclosure, "plurality" refers to two or more than two, and other quantifiers are similar. "And/or", which describes the association relationship of the associated objects, means that there can be three kinds of relationships, for example, A and/or B, which can mean that A exists alone, A and B exist at the same time, and B exists alone. The character "/" generally indicates that the associated objects are an "or" relationship. The singular forms "a," "the," and "the" are intended to include the plural forms as well, unless the context clearly dictates otherwise.

进一步可以理解的是,术语“第一”、“第二”等用于描述各种信息,但这些信息不应限于这些术语。这些术语仅用来将同一类型的信息彼此区分开,并不表示特定的顺序或者重要程度。实际上,“第一”、“第二”等表述完全可以互换使用。例如,在不脱离本公开范围的情况下,第一信息也可以被称为第二信息,类似地,第二信息也可以被称为第一信息。It is further understood that the terms "first", "second", etc. are used to describe various information, but the information should not be limited to these terms. These terms are only used to distinguish the same type of information from one another, and do not imply a particular order or level of importance. In fact, the expressions "first", "second" etc. are used completely interchangeably. For example, the first information may also be referred to as the second information, and similarly, the second information may also be referred to as the first information, without departing from the scope of the present disclosure.

进一步可以理解的是,除非有特殊说明,“连接”包括两者之间不存在其他构件的直接连接,也包括两者之间存在其他元件的间接连接。It should be further understood that, unless otherwise specified, "connection" includes a direct connection between the two without other components, and also includes an indirect connection between the two with other elements.

进一步可以理解的是,本公开实施例中尽管在附图中以特定的顺序描述操作,但是不应将其理解为要求按照所示的特定顺序或是串行顺序来执行这些操作,或是要求执行全部所示的操作以得到期望的结果。在特定环境中,多任务和并行处理可能是有利的。It is further to be understood that, although the operations in the embodiments of the present disclosure are described in a specific order in the drawings, it should not be construed as requiring that the operations be performed in the specific order shown or the serial order, or requiring Perform all operations shown to obtain the desired result. In certain circumstances, multitasking and parallel processing may be advantageous.

本领域技术人员在考虑说明书及实践这里公开的发明后,将容易想到本公开的其它实施方案。本申请旨在涵盖本公开的任何变型、用途或者适应性变化,这些变型、用途或者适应性变化遵循本公开的一般性原理并包括本公开未公开的本技术领域中的公知常识或惯用技术手段。说明书和实施例仅被视为示例性的,本公开的真正范围和精神由下面的权利范围指出。Other embodiments of the present disclosure will readily occur to those skilled in the art upon consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or techniques in the technical field not disclosed by the present disclosure . The specification and examples are to be regarded as exemplary only, with the true scope and spirit of the disclosure being indicated by the following claims.

应当理解的是,本公开并不局限于上面已经描述并在附图中示出的精确结构,并且可以在不脱离其范围进行各种修改和改变。本公开的范围仅由所附的权利范围来限制。It is to be understood that the present disclosure is not limited to the precise structures described above and illustrated in the accompanying drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the scope of the appended rights.

Claims (15)

1. A method of in vivo detection, the method comprising:
acquiring an image to be detected; wherein the image to be detected comprises a face area of a target object;
performing frequency domain conversion on the image to be detected to obtain a frequency spectrum image of the image to be detected, generating a first line image corresponding to the image to be detected based on the frequency spectrum image, and performing copying attack detection on the image to be detected based on the first line image to obtain a copying attack detection result; performing living body detection on the target object based on the image to be detected to obtain a living body detection result;
and determining whether the target object is a living body or not based on the living body detection result and the copying attack detection result.
2. The in-vivo detection method according to claim 1, wherein said generating a first cable image corresponding to the image to be detected based on the spectrum image comprises:
intercepting an image area containing a target pixel point according to a target rule; the target pixel points are pixel intersection points of target pixel rows and target pixel columns in the frequency spectrum image, the target pixel rows are arranged at equal intervals, and the target pixel columns are arranged at equal intervals;
and splicing the image areas to obtain the first cable image.
3. The living body detection method according to claim 2, wherein the target pixel row is a pixel row other than a center pixel row of the spectral image, and the target pixel column is a pixel column other than the center pixel column of the spectral image.
4. The living body detecting method according to claim 2 or 3, wherein the target pixel row is located at a position corresponding to an integer multiple of 1/8 or 1/8 of the spectral image, and the target pixel column is located at a position corresponding to an integer multiple of 1/8 or 1/8 of the spectral image.
5. The in-vivo detection method according to any one of claims 2 to 4, wherein the method further comprises:
and performing brightness difference increasing processing on each image area, wherein the brightness difference is the brightness difference between the bright point pixel and the rest pixels in the image area.
6. The living body detection method according to claim 5, wherein the performing of the brightness difference increasing process on each of the image areas includes:
aiming at each image area, selecting a specified number of first specified pixel points according to the sequence of pixel values from large to small, and adjusting the pixel values of the pixel points in the image area except the first specified pixel points; the adjustment processing comprises setting the pixel value of the pixel point to be a target value or reducing the pixel value of the pixel point;
or,
for each image area, determining a second designated pixel point with a pixel value smaller than a target pixel threshold value, and adjusting the pixel value of the second designated pixel point; and adjusting the pixel value of the pixel point to be a target value or to be reduced.
7. The in-vivo detection method according to any one of claims 1 to 6, wherein the performing of the detection of the copying attack on the image to be detected based on the first line image to obtain a result of the detection of the copying attack comprises:
inputting the first cable image into a target detection model, acquiring output information of the target detection model, and obtaining a copying attack detection result of the image to be detected based on the output information; the target detection model is obtained by training based on a second cable image corresponding to the non-reproduction image and a third cable image corresponding to the reproduction image.
8. The biopsy method according to claim 7, wherein the reproduced image is an image obtained by photographing a screen displayed at a resolution higher than a predetermined resolution.
9. An image detection method, comprising:
acquiring an image to be detected;
performing frequency domain conversion on the image to be detected to obtain a frequency spectrum image of the image to be detected, and generating a first cable image corresponding to the image to be detected based on the frequency spectrum image;
and carrying out copying attack detection on the image to be detected based on the first line image to obtain a copying attack detection result.
10. The image detection method according to claim 9, wherein the generating a first cable image corresponding to the image to be detected based on the spectrum image comprises:
intercepting an image area containing a target pixel point according to a target rule; the target pixel points are pixel points which are positioned in each target pixel row and each target pixel column in the frequency spectrum image, each target pixel row is arranged at equal intervals, and each target pixel column is arranged at equal intervals;
and splicing the image areas to obtain the first cable image.
11. The image detection method according to claim 10, wherein the target pixel row is a pixel row other than a center pixel row of the spectrum image, and the target pixel column is a pixel column other than the center pixel column of the spectrum image.
12. The image detection method according to claim 10 or 11, wherein the target pixel row is located at a position corresponding to an integer multiple of 1/8 or 1/8 of the spectral image, and the target pixel column is located at a position corresponding to an integer multiple of 1/8 or 1/8 of the spectral image.
13. An electronic device, comprising:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to: performing the in-vivo detection method of any one of claims 1 to 8, or performing the image detection method of any one of claims 9 to 12.
14. A storage medium having stored therein instructions that, when executed by a processor, enable the processor to perform the liveness detection method of any one of claims 1 to 8 or the image detection method of any one of claims 9 to 12.
15. A computer program product, characterized in that the computer program product comprises a computer program which, when being executed by a processor, implements the living body detection method of any one of claims 1 to 8 or performs the image detection method of any one of claims 9 to 12.
CN202210434344.8A 2022-04-24 2022-04-24 Image detection method, living body detection method, electronic device, medium and product Pending CN114913574A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210434344.8A CN114913574A (en) 2022-04-24 2022-04-24 Image detection method, living body detection method, electronic device, medium and product

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210434344.8A CN114913574A (en) 2022-04-24 2022-04-24 Image detection method, living body detection method, electronic device, medium and product

Publications (1)

Publication Number Publication Date
CN114913574A true CN114913574A (en) 2022-08-16

Family

ID=82764250

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210434344.8A Pending CN114913574A (en) 2022-04-24 2022-04-24 Image detection method, living body detection method, electronic device, medium and product

Country Status (1)

Country Link
CN (1) CN114913574A (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20180218200A1 (en) * 2015-03-27 2018-08-02 Bundesdruckerei Gmbh Person identification apparatus
CN112507934A (en) * 2020-12-16 2021-03-16 平安银行股份有限公司 Living body detection method, living body detection device, electronic apparatus, and storage medium
CN112801057A (en) * 2021-04-02 2021-05-14 腾讯科技(深圳)有限公司 Image processing method, image processing device, computer equipment and storage medium

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20180218200A1 (en) * 2015-03-27 2018-08-02 Bundesdruckerei Gmbh Person identification apparatus
CN112507934A (en) * 2020-12-16 2021-03-16 平安银行股份有限公司 Living body detection method, living body detection device, electronic apparatus, and storage medium
CN112801057A (en) * 2021-04-02 2021-05-14 腾讯科技(深圳)有限公司 Image processing method, image processing device, computer equipment and storage medium

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
XIAO LUAN 等: "Face liveness detection with recaptured feature extraction", 《2017 INTERNATIONAL CONFERENCE ON SECURITY, PATTERN ANALYSIS, AND CYBERNETICS (SPAC)》, 1 March 2018 (2018-03-01), pages 429 - 432 *
熊兴发: "浅析深度学习生物识别反欺诈辅助算法", 《天津科技》, vol. 46, no. 11, 30 November 2019 (2019-11-30), pages 37 - 40 *

Similar Documents

Publication Publication Date Title
JP7476428B2 (en) Image line of sight correction method, device, electronic device, computer-readable storage medium, and computer program
US20230086552A1 (en) Image processing method and apparatus, device, storage medium, and computer program product
JP6636154B2 (en) Face image processing method and apparatus, and storage medium
US10832069B2 (en) Living body detection method, electronic device and computer readable medium
US10360465B2 (en) Liveness testing methods and apparatuses and image processing methods and apparatuses
EP3916627A1 (en) Living body detection method based on facial recognition, and electronic device and storage medium
CN115050064B (en) Human face liveness detection method, device, equipment and medium
WO2021196389A1 (en) Facial action unit recognition method and apparatus, electronic device, and storage medium
Raghavendra et al. Exploring the usefulness of light field cameras for biometrics: An empirical study on face and iris recognition
US11227149B2 (en) Method and apparatus with liveness detection and object recognition
JP7360217B2 (en) Method for obtaining data from an image of an object of a user having biometric characteristics of the user
JP2023545190A (en) Image line-of-sight correction method, device, electronic device, and computer program
CN112257729B (en) Image recognition method, device, equipment and storage medium
WO2022267653A1 (en) Image processing method, electronic device, and computer readable storage medium
Jiang et al. Application of a fast RCNN based on upper and lower layers in face recognition
CN112699885A (en) Semantic segmentation training data augmentation method and system based on antagonism generation network GAN
CN111325107A (en) Detection model training method and device, electronic equipment and readable storage medium
CN110070017B (en) A method and device for generating a false-eye image of a human face
CN115147936A (en) A living body detection method, electronic device, storage medium and program product
WO2021139169A1 (en) Method and apparatus for card recognition, device, and storage medium
Santos et al. A new method based on deep learning to detect lesions in retinal images using YOLOv5
CN118486079A (en) Character interaction identification method, device, equipment and storage medium
CN114639132A (en) Feature extraction model processing method, device and equipment in face recognition scene
CN112183422A (en) Human face living body detection method and device based on space-time characteristics, electronic equipment and storage medium
CN114913574A (en) Image detection method, living body detection method, electronic device, medium and product

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right

Effective date of registration: 20250126

Address after: No. 257, 2nd Floor, Building 9, No. 2 Huizhu Road, Liangjiang New District, Yubei District, Chongqing, China 401123

Applicant after: Yuanli Jinzhi (Chongqing) Technology Co.,Ltd.

Country or region after: China

Address before: No. 1268, 1f, building 12, neijian Middle Road, Xisanqi building materials City, Haidian District, Beijing 100096

Applicant before: BEIJING KUANGSHI TECHNOLOGY Co.,Ltd.

Country or region before: China

Applicant before: Shenzhen Kuangshi Jinzhi Technology Co.,Ltd.

TA01 Transfer of patent application right