FacePad.detectAttackSupport Method¶
Module: FacePad
Definition¶
Detects if an attack support surrounds the detected face.
The recommended usage is to consider the image to be an attack as soon as an attack support is detected.
Important
Loading the FaceAttackSupportDetector model is required to use this function.
detect_attack_support(self, image: Image, detected_face: DetectedFace) -> DetectedFaceAttackSupport
Parameters
Returns
The detected face attack support.
Exceptions
An error has occurred during Face Library execution.
DetectedFaceAttackSupport detectAttackSupport(Image image, DetectedFace detectedFace)
Parameters
Returns
The detected face attack support.
Exceptions
An error has occurred during Face Library execution.
public DetectedFaceAttackSupport DetectAttackSupport(Image image, DetectedFace detectedFace)
Parameters
Returns
The detected face attack support.
Exceptions
An error has occurred during Face Library execution.
public DetectedFaceAttackSupport detectAttackSupport(Image image, DetectedFace detectedFace) throws FaceException
Parameters
Returns
The detected face attack support.
Exceptions
An error has occurred during Face Library execution.
public func detectAttackSupport(image: Image, detectedFace: DetectedFace) throws -> DetectedFaceAttackSupport
Parameters
Returns
The detected face attack support.
Exceptions
An error has occurred during Face Library execution.
int id3FacePad_DetectAttackSupport (
ID3_FACE_PAD hFacePad,
ID3_FACE_IMAGE hImage,
ID3_DETECTED_FACE hDetectedFace,
id3DetectedFaceAttackSupport * sDetectedFaceAttackSupport)
Parameters
hFacePadID3_FACE_PADin Handle to the FacePad object.hImageID3_FACE_IMAGEin Source image to process.hDetectedFaceID3_DETECTED_FACEin Detected face to process.sDetectedFaceAttackSupportid3DetectedFaceAttackSupport *out The detected face attack support.
Returns