|
3DiVi Face SDK
3.24.0
|
Raw image interface. More...
Public Member Functions | |
| def | __init__ |
| Get a pointer to the image data buffer. More... | |
| def | crop |
| Create a RawImage object that represents the specified rectangle area of this image. | |
| def | __del__ |
| Virtual destructor. | |
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: