3DiVi Face SDK  3.21.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Groups
RawImage

Classes

class  face_sdk.modules.raw_image.Rectangle
 Rectangle in an image. More...
 
class  face_sdk.modules.raw_image.Format
 Format of image data. More...
 
class  face_sdk.modules.raw_image.RawImage
 Raw image interface. More...
 

Functions

def face_sdk.modules.raw_image.CapiData.__init__
 
def face_sdk.modules.raw_image.Rectangle.__init__
 X coordinate of the top-left corner. More...
 
def face_sdk.modules.raw_image.Rectangle.__repr__
 
def face_sdk.modules.raw_image.RawImage.__init__
 Get a pointer to the image data buffer. More...
 
def face_sdk.modules.raw_image.RawImage.make_c_api_data
 
def face_sdk.modules.raw_image.RawImage.crop
 Create a RawImage object that represents the specified rectangle area of this image.
 
def face_sdk.modules.raw_image.RawImage.__del__
 Virtual destructor.
 

Variables

 face_sdk.modules.raw_image.CapiData.data
 
 face_sdk.modules.raw_image.CapiData.width
 
 face_sdk.modules.raw_image.CapiData.height
 
 face_sdk.modules.raw_image.CapiData.format
 
 face_sdk.modules.raw_image.CapiData.with_crop
 
 face_sdk.modules.raw_image.CapiData.crop_info_offset_x
 
 face_sdk.modules.raw_image.CapiData.crop_info_offset_y
 
 face_sdk.modules.raw_image.CapiData.crop_info_data_image_width
 
 face_sdk.modules.raw_image.CapiData.crop_info_data_image_height
 
 face_sdk.modules.raw_image.Rectangle.x
 
 face_sdk.modules.raw_image.Rectangle.y
 
 face_sdk.modules.raw_image.Rectangle.width
 
 face_sdk.modules.raw_image.Rectangle.height
 
int face_sdk.modules.raw_image.Format.FORMAT_GRAY = 0
 Grayscale, 8 bit per pixel.
 
int face_sdk.modules.raw_image.Format.FORMAT_RGB = 1
 RGB, 24 bit per pixel, 8 bit per channel.
 
int face_sdk.modules.raw_image.Format.FORMAT_BGR = 2
 BGR, 24 bit per pixel, 8 bit per channel.
 
int face_sdk.modules.raw_image.Format.FORMAT_YUV_NV21 = 3
 NV21 format in the YUV color coding system, the standard image format used on the Android camera preview.
 
int face_sdk.modules.raw_image.Format.FORMAT_YUV_NV12 = 4
 NV12 format in the YUV color coding system.
 
 face_sdk.modules.raw_image.RawImage.width
 
 face_sdk.modules.raw_image.RawImage.height
 
 face_sdk.modules.raw_image.RawImage.format
 
 face_sdk.modules.raw_image.RawImage.data
 
 face_sdk.modules.raw_image.RawImage.with_crop
 
 face_sdk.modules.raw_image.RawImage.crop_info_offset_x
 
 face_sdk.modules.raw_image.RawImage.crop_info_offset_y
 
 face_sdk.modules.raw_image.RawImage.crop_info_data_image_width
 
 face_sdk.modules.raw_image.RawImage.crop_info_data_image_height
 

Detailed Description

Function Documentation

def face_sdk.modules.raw_image.Rectangle.__init__ (   self,
  x 
)

X coordinate of the top-left corner.

Y coordinate of the top-left corner.

Width of the rectangle.

Height of the rectangle.

def face_sdk.modules.raw_image.RawImage.__init__ (   self,
  width 
)

Get a pointer to the image data buffer.

All pixels must be stored continuously row by row, without gaps at the end of each row. Can't throw an exception (see Warning in Class description).

Returns
Pointer to the image data buffer.

Get image width. Can't throw an exception (see Warning in Class description).

Returns
Number of columns in the image.

Get image height. Can't throw an exception (see Warning in Class description).

Returns
Number of rows in the image.

Get image format. Can't throw an exception (see Warning in Class description).

Returns
Number of the image format (see face_sdk_3divi.modules.raw_image.Format).