get_original_tensor

Function Usage

Obtains tensor objects in the valid range of an image.

The following image color gamut types are supported:

  • base.yuv_400
  • base.rgb
  • base.bgr
  • base.rgba
  • base.bgra
  • base.argb
  • base.abgr

If you want to convert an image into ndarray, use this API to convert the image into a tensor on the host and then into ndarray.

Prototype

1
get_original_tensor()

Response Parameters

Tensor