DetectedFace.fromFile Method

Module: DetectedFace

Definition

Imports the face object from a file.

@staticmethod
from_file(path: str) -> DetectedFace

Parameters

path str
in Path to the file to import the face object from.

Returns

The newly created detected face.

Exceptions

An error has occurred during Face Library execution.
static DetectedFace fromFile(String? path)

Parameters

path String
in Path to the file to import the face object from.

Returns

The newly created detected face.

Exceptions

An error has occurred during Face Library execution.
public static DetectedFace FromFile(string path)

Parameters

path string
in Path to the file to import the face object from.

Returns

The newly created detected face.

Exceptions

An error has occurred during Face Library execution.
public static DetectedFace fromFile(String path) throws FaceException

Parameters

path String
in Path to the file to import the face object from.

Returns

The newly created detected face.

Exceptions

An error has occurred during Face Library execution.
public static func fromFile(path: String) throws -> DetectedFace

Parameters

path String
in Path to the file to import the face object from.

Returns

The newly created detected face.

Exceptions

An error has occurred during Face Library execution.
int id3DetectedFace_FromFile (
    ID3_DETECTED_FACE hDetectedFace,
    const char * path)

Parameters

hDetectedFace ID3_DETECTED_FACE
in Handle to the DetectedFace object.

path const char *
in Path to the file to import the face object from.

Returns

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