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 FaceAttackSupportDetector1A model is required to use this function.

detect_attack_support(self, image: Image, detected_face: DetectedFace) -> DetectedFaceAttackSupport

Parameters

image Image
in Source image to process.

detected_face DetectedFace
in Detected face to process.

Returns

The detected face attack support.

Exceptions

An error has occurred during Face Library execution.
DetectedFaceAttackSupport detectAttackSupport(Image image, DetectedFace detectedFace)

Parameters

image Image
in Source image to process.

detectedFace DetectedFace
in Detected face to process.

Returns

The detected face attack support.

Exceptions

An error has occurred during Face Library execution.
public DetectedFaceAttackSupport DetectAttackSupport(Image image, DetectedFace detectedFace)

Parameters

image Image
in Source image to process.

detectedFace DetectedFace
in Detected face to process.

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

image Image
in Source image to process.

detectedFace DetectedFace
in Detected face to process.

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

image Image
in Source image to process.

detectedFace DetectedFace
in Detected face to process.

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

hFacePad ID3_FACE_PAD
in Handle to the FacePad object.

in Source image to process.

hDetectedFace ID3_DETECTED_FACE
in Detected face to process.

sDetectedFaceAttackSupport id3DetectedFaceAttackSupport *
out The detected face attack support.

Returns

int
An error code.
See id3FaceError file for the list of possible error codes.