3DiVi Face SDK  3.21.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Groups
face_sdk.example.cv_raw_image.CVRawImage Class Reference

Example of implementation of the RawImage interface via OpenCV. More...

Public Member Functions

def __init__
 
def get_format
 Get an image format. More...
 
def mat
 Get a constant reference to the stored image. More...
 

Detailed Description

Example of implementation of the RawImage interface via OpenCV.

Member Function Documentation

def face_sdk.example.cv_raw_image.CVRawImage.get_format (   self)

Get an image format.

Returns
-1, if the stored cv::Mat object is invalid face_sdk_3divi.modules.raw_image.Format.FORMAT_GRAY, if the mat type is CV_8UC1, face_sdk_3divi.modules.raw_image.Format.FORMAT_BGR, if the mat type is CV_8UC3.
def face_sdk.example.cv_raw_image.CVRawImage.mat (   self)

Get a constant reference to the stored image.

Returns
Constant reference to the stored image.