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.
-
ErrorCode
Trueface::SDK
::
setImage
(uint8_t *image, uint16_t width, uint16_t height, ColorCode color)¶ 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.width
: the image width.height
: the image height.color
: the image color model, see ColorCode.