Hide navigation sidebar
Hide table of contents sidebar
Skip to content
Back to top
Toggle table of contents sidebar

# DetectedFace.fromBuffer Method

Module: DetectedFace

## Definition

Imports the face object from a buffer.

Python

    @staticmethod
    from_buffer(data: bytearray) -> DetectedFace

Parameters

> `data` bytearray
> in Buffer to import the face object from.

Returns

> DetectedFace
> The newly created detected face.

Exceptions

> FaceException
> An error has occurred during Face Library execution.

Dart

    static DetectedFace fromBuffer(Uint8List? data)

Parameters

> `data` Uint8List
> in Buffer to import the face object from.

Returns

> DetectedFace
> The newly created detected face.

Exceptions

> FaceException
> An error has occurred during Face Library execution.

C#

    public static DetectedFace FromBuffer(byte[] data)

Parameters

> `data` byte[]
> in Buffer to import the face object from.

Returns

> DetectedFace
> The newly created detected face.

Exceptions

> FaceException
> An error has occurred during Face Library execution.

Java

    public static DetectedFace fromBuffer(byte[] data) throws FaceException

Parameters

> `data` byte[]
> in Buffer to import the face object from.

Returns

> DetectedFace
> The newly created detected face.

Exceptions

> FaceException
> An error has occurred during Face Library execution.

Swift

    public static func fromBuffer(data: [UInt8]) throws -> DetectedFace

Parameters

> `data` [UInt8]
> in Buffer to import the face object from.

Returns

> DetectedFace
> The newly created detected face.

Exceptions

> FaceException
> An error has occurred during Face Library execution.

C

    int id3DetectedFace_FromBuffer (
        ID3_DETECTED_FACE hDetectedFace,
        unsigned char * data,
        int dataSize)

Parameters

> `hDetectedFace` ID3_DETECTED_FACE
> in Handle to the DetectedFace object.
> `data` unsigned char *
> in Buffer to import the face object from.
> `dataSize` int
> in Size of the ‘data’ buffer.

Returns

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