Input Image¶
-
ErrorCode
Trueface::SDK
::
setImage
(std::string imageFile)¶ Set the image that is processed by the other methods.
- Return
error code, see ErrorCode. Note, it is highly encouraged to check the return value from setImage before proceeding. If the license is invalid, the INVALID_LICENSE error will be returned.
- See
setImage(uint8_t* image, uint16_t width, uint16_t height, ColorCode color)
- Parameters
imageFile
: the path of a JPEG or PNG file (path must not contain ~ ).
-
ErrorCode
Trueface::SDK
::
setImage
(uint8_t *image, uint16_t width, uint16_t height, ColorCode color, int stride = 0)¶ Set the image that is processed by the other methods.
- Return
error code, see ErrorCode. Note, it is highly encouraged to check the return value from setImage before proceeding. If the license is invalid, the INVALID_LICENSE error will be returned.
- See
- Parameters
image
: an 8-bit image array, in the CPU memory or the GPU memory.width
: the image width.height
: the image height.color
: the image color model, see ColorCode.stride
: the distance between image array rows in bytes, also known as step size (used only for pointers to the GPU memory).