3DiVi Face SDK
3.21.0
|
Raw image interface. More...
Public Member Functions | |
def | __init__ |
Get a pointer to the image data buffer. More... | |
def | make_c_api_data |
def | crop |
Create a RawImage object that represents the specified rectangle area of this image. | |
def | __del__ |
Virtual destructor. | |
Public Attributes | |
width | |
height | |
format | |
data | |
with_crop | |
crop_info_offset_x | |
crop_info_offset_y | |
crop_info_data_image_width | |
crop_info_data_image_height | |
Raw image interface.
To use this interface, you need to inherit it and create your own implementation for a specific image type. See an example of implementation in face_sdk_3divi/example/cv_raw_image.py.
WARNING: Member functions RawImage.data, RawImage.width, RawImage.height and RawImage.format can't throw any exceptions, since they will be called from the dynamic library and throwing an exception can cause a crash.
So instead of throwing an exception you can return some invalid values: