sail.BMImage ____________ \_\_init\_\_ >>>>>>>>>>>>>>>>>>>>>>>>>>>>> **Interface:** .. code-block:: python def __init__(self) def __init__(self, handle: sail.Handle, h: int, w: int, format: bm_image_format_ext, dtype: sail.bm_image_data_format_ext) **Parameters** * handle : sail.Handle Handle instance * h: int The height of img * w: int The width of img * format : bm_image_format_ext The format of img * dtype: sail.bm_image_data_format_ext The data type of img width >>>>>>>>>>> Get the img width. **Interface:** .. code-block:: python def width(self)-> int **Returns** * width : int The width of img height >>>>>>>>>>>>>>>>> Get the img height. **Interface:** .. code-block:: python def height(self)-> int **Returns** * height : int The height of img format >>>>>>>>>>>>>>>>> Get the img format. **Interface:** .. code-block:: python def format(self)-> bm_image_format_ext **Returns** * format : bm_image_format_ext The format of img dtype >>>>>>>>>>>>> Get the img dtype. **Interface:** .. code-block:: python def dtype(self)-> bm_image_data_format_ext Returns * dtype: bm_image_data_format_ext The data type of img data >>>>>>>>>>>>>>>>>>>>>>>>>>>>> Get inner bm_image. **Interface:** .. code-block:: python def data(self)-> bm_image **Returns** * img : bm_image the data of img get_device_id >>>>>>>>>>>>>>>>>>>>>>>>>>>>> Get device id of this image. **Interface:** .. code-block:: python def get_device_id(self)-> int **Returns** * device_id : int tpu ids of this image. asmat >>>>>>>>>>>>>>>>>>>>>>>>>>>>> Convert to cv Mat **Interface:** .. code-block:: python def asmat(self)-> numpy.ndarray[numpy.uint8] **Returns** * image : numpy.ndarray[numpy.uint8] only support uint8 get_plane_num >>>>>>>>>>>>>>>>>>>>>>>>>>>>> Get plane number of this image **Interface:** .. code-block:: python def get_plane_num(self) -> int: