Data Types
- class cvcuda.Image
- cpu(self: cvcuda.Image, layout: cvcuda.TensorLayout | None = None) object
The image on the CPU
- cuda(self: cvcuda.Image, layout: cvcuda.TensorLayout | None = None) object
The image on the CUDA device
- property format
Read-only property that returns the format of the image
- property height
Read-only property that returns the height of the image
- property size
Read-only property that returns the size of the image
- property width
Read-only property that returns the width of the image
- static zeros(size: tuple[int, int], format: cvcuda.Format, rowalign: int = 0) cvcuda.Image
Create an image filled with zeros with a given size, format and optional row align
- class cvcuda.Tensor
- cuda(self: cvcuda.Tensor) object
Reference to the Tensor on the CUDA device.
- property dtype
The data type of the Tensor.
- property layout
The TensorLayout of the Tensor.
- property ndim
The number of dimensions of the Tensor.
- reshape(self: cvcuda.Tensor, shape: tuple, layout: cvcuda.TensorLayout | None = None) cvcuda.Tensor
Produces a tensor pointing to the same data but with a new shape and layout.
- property shape
The shape of the Tensor.
- class cvcuda.ImageBatchVarShape
Batch of Images.
- property capacity
Return the capacity of the ImageBatchVarShape in number of images.
- clear(self: cvcuda.ImageBatchVarShape) None
Remove all images from the ImageBatchVarShape.
- property maxsize
Return the maximum size of the ImageBatchVarShape in bytes.
- popback(self: cvcuda.ImageBatchVarShape, count: int = 1) None
Remove one or more images from the end of the ImageBatchVarShape.
- pushback(*args, **kwargs)
Overloaded function.
pushback(self: cvcuda.ImageBatchVarShape, arg0: cvcuda.Image) -> None
Add a new image to the end of the ImageBatchVarShape.
pushback(self: cvcuda.ImageBatchVarShape, arg0: list[cvcuda.Image]) -> None
Add multiple images to the end of the ImageBatchVarShape.
- property uniqueformat
Return True if all the images have the same format, False otherwise.
- class cvcuda.TensorBatch
Container for a batch of tensors. The capacity of the container must be specified upfront in the batch initialization. The tensors in the batch may differ in shapes but they must have a uniform dimensionality, data type and layout.
- property capacity
Capacity of the tensor batch.
- clear(self: cvcuda.TensorBatch) None
Remove all images from the TensorBatch.
- property dtype
Data type of tensors in the tensor batch. None if the batch is empty.
- property layout
Layout of the tensors in the tensor batch. None if the batch is empty.
- property ndim
Return the number of dimensions of the tensors or -1 for an empty batch
- popback(self: cvcuda.TensorBatch, count: int = 1) None
Remove one or more images from the end of the TensorBatch.
- pushback(*args, **kwargs)
Overloaded function.
pushback(self: cvcuda.TensorBatch, arg0: cvcuda.Tensor) -> None
Add a new image to the end of the TensorBatch.
pushback(self: cvcuda.TensorBatch, arg0: list[cvcuda.Tensor]) -> None
Add multiple images to the end of the TensorBatch.
- class cvcuda.Format
Members:
_2S16
_2S16_BL
_2F16
_2F32
_2C64
_2C128
U8
U8_BL
S8
U16
U32
S32
S16
S16_BL
F16
F32
F64
C64
C128
Y8
Y8_BL
Y8_ER
Y8_ER_BL
Y16
Y16_BL
Y16_ER
Y16_ER_BL
NV12
NV12_BL
NV12_ER
NV12_ER_BL
NV21
NV21_ER
NV24
NV24_BL
NV24_ER
NV24_ER_BL
UYVY
UYVY_BL
UYVY_ER
UYVY_ER_BL
VYUY
VYUY_BL
VYUY_ER
VYUY_ER_BL
YUYV
YUYV_BL
YUYV_ER
YUYV_ER_BL
YUV8p
YUV8p_ER
RGB8
BGR8
RGBA8
BGRA8
RGB8p
BGR8p
RGBA8p
BGRA8p
RGBf16
BGRf16
RGBAf16
BGRAf16
RGBf16p
BGRf16p
RGBAf16p
BGRAf16p
RGBf32
BGRf32
RGBAf32
BGRAf32
RGBf32p
BGRf32p
RGBAf32p
BGRAf32p
HSV8
CMYK8
YCCK8
RGBA8_UNASSOCIATED_ALPHA
RGB8_1U_U8
RGB8_7U_U8
RGBA8_3U_U16
RGBA8_3POS3D_U32
RGB8_3D_F32
- BGR8 = nvcv.<Unknown image format: NVCV_IMAGE_FORMAT_BGR8>
- BGR8p = nvcv.<Unknown image format: NVCVImageFormat(RGB,UNDEFINED,PITCH_LINEAR,UNSIGNED,ZYX1,ASSOCIATED,X8,X8,X8)>
- BGRA8 = nvcv.<Unknown image format: NVCV_IMAGE_FORMAT_BGRA8>
- BGRA8p = nvcv.<Unknown image format: NVCVImageFormat(RGB,UNDEFINED,PITCH_LINEAR,UNSIGNED,ZYXW,ASSOCIATED,X8,X8,X8,X8)>
- BGRAf16 = nvcv.<Unknown image format: NVCVImageFormat(RGB,UNDEFINED,PITCH_LINEAR,FLOAT,ZYXW,ASSOCIATED,X16_Y16_Z16_W16)>
- BGRAf16p = nvcv.<Unknown image format: NVCVImageFormat(RGB,UNDEFINED,PITCH_LINEAR,FLOAT,ZYXW,ASSOCIATED,X16,X16,X16,X16)>
- BGRAf32 = nvcv.<Unknown image format: NVCVImageFormat(RGB,UNDEFINED,PITCH_LINEAR,FLOAT,ZYXW,ASSOCIATED,X32_Y32_Z32_W32)>
- BGRAf32p = nvcv.<Unknown image format: NVCVImageFormat(RGB,UNDEFINED,PITCH_LINEAR,FLOAT,ZYXW,ASSOCIATED,X32,X32,X32,X32)>
- BGRf16 = nvcv.<Unknown image format: NVCVImageFormat(RGB,UNDEFINED,PITCH_LINEAR,FLOAT,ZYX1,ASSOCIATED,X16_Y16_Z16)>
- BGRf16p = nvcv.<Unknown image format: NVCVImageFormat(RGB,UNDEFINED,PITCH_LINEAR,FLOAT,ZYX1,ASSOCIATED,X16,X16,X16)>
- BGRf32 = nvcv.<Unknown image format: NVCVImageFormat(RGB,UNDEFINED,PITCH_LINEAR,FLOAT,ZYX1,ASSOCIATED,X32_Y32_Z32)>
- BGRf32p = nvcv.<Unknown image format: NVCVImageFormat(RGB,UNDEFINED,PITCH_LINEAR,FLOAT,ZYX1,ASSOCIATED,X32,X32,X32)>
- C128 = nvcv.<Unknown image format: NVCV_IMAGE_FORMAT_C128>
- C64 = nvcv.<Unknown image format: NVCV_IMAGE_FORMAT_C64>
- CMYK8 = nvcv.<Unknown image format: NVCV_IMAGE_FORMAT_CMYK8>
- F16 = nvcv.<Unknown image format: NVCVImageFormat(UNDEFINED,PITCH_LINEAR,FLOAT,X000,ASSOCIATED,X16)>
- F32 = nvcv.<Unknown image format: NVCV_IMAGE_FORMAT_F32>
- F64 = nvcv.<Unknown image format: NVCV_IMAGE_FORMAT_F64>
- HSV8 = nvcv.<Unknown image format: NVCV_IMAGE_FORMAT_HSV8>
- NV12 = nvcv.<Unknown image format: NVCV_IMAGE_FORMAT_NV12>
- NV12_BL = nvcv.<Unknown image format: NVCV_IMAGE_FORMAT_NV12_BL>
- NV12_ER = nvcv.<Unknown image format: NVCV_IMAGE_FORMAT_NV12_ER>
- NV12_ER_BL = nvcv.<Unknown image format: NVCV_IMAGE_FORMAT_NV12_ER_BL>
- NV21 = nvcv.<Unknown image format: NVCV_IMAGE_FORMAT_NV12>
- NV21_ER = nvcv.<Unknown image format: NVCV_IMAGE_FORMAT_NV12_ER>
- NV24 = nvcv.<Unknown image format: NVCV_IMAGE_FORMAT_NV24>
- NV24_BL = nvcv.<Unknown image format: NVCV_IMAGE_FORMAT_NV24_BL>
- NV24_ER = nvcv.<Unknown image format: NVCV_IMAGE_FORMAT_NV24_ER>
- NV24_ER_BL = nvcv.<Unknown image format: NVCV_IMAGE_FORMAT_NV24_ER_BL>
- RGB8 = nvcv.<Unknown image format: NVCV_IMAGE_FORMAT_RGB8>
- RGB8_1U_U8 = nvcv.<Unknown image format: NVCV_IMAGE_FORMAT_RGB8_1U_U8>
- RGB8_3D_F32 = nvcv.<Unknown image format: NVCV_IMAGE_FORMAT_RGB8_3D_F32>
- RGB8_7U_U8 = nvcv.<Unknown image format: NVCV_IMAGE_FORMAT_RGB8_7U_U8>
- RGB8p = nvcv.<Unknown image format: NVCVImageFormat(RGB,UNDEFINED,PITCH_LINEAR,UNSIGNED,XYZ0,ASSOCIATED,X8,X8,X8)>
- RGBA8 = nvcv.<Unknown image format: NVCV_IMAGE_FORMAT_RGBA8>
- RGBA8_3POS3D_U32 = nvcv.<Unknown image format: NVCV_IMAGE_FORMAT_RGBA8_3POS3D_U32>
- RGBA8_3U_U16 = nvcv.<Unknown image format: NVCV_IMAGE_FORMAT_RGBA8_3U_U16>
- RGBA8_UNASSOCIATED_ALPHA = nvcv.<Unknown image format: NVCVImageFormat(RGB,UNDEFINED,PITCH_LINEAR,UNSIGNED,XYZW,UNASSOCIATED,X8_Y8_Z8_W8)>
- RGBA8p = nvcv.<Unknown image format: NVCVImageFormat(RGB,UNDEFINED,PITCH_LINEAR,UNSIGNED,XYZW,ASSOCIATED,X8,X8,X8,X8)>
- RGBAf16 = nvcv.<Unknown image format: NVCVImageFormat(RGB,UNDEFINED,PITCH_LINEAR,FLOAT,XYZW,ASSOCIATED,X16_Y16_Z16_W16)>
- RGBAf16p = nvcv.<Unknown image format: NVCVImageFormat(RGB,UNDEFINED,PITCH_LINEAR,FLOAT,XYZW,ASSOCIATED,X16,X16,X16,X16)>
- RGBAf32 = nvcv.<Unknown image format: NVCV_IMAGE_FORMAT_RGBAf32>
- RGBAf32p = nvcv.<Unknown image format: NVCV_IMAGE_FORMAT_RGBAf32p>
- RGBf16 = nvcv.<Unknown image format: NVCVImageFormat(RGB,UNDEFINED,PITCH_LINEAR,FLOAT,XYZ1,ASSOCIATED,X16_Y16_Z16)>
- RGBf16p = nvcv.<Unknown image format: NVCVImageFormat(RGB,UNDEFINED,PITCH_LINEAR,FLOAT,XYZ0,ASSOCIATED,X16,X16,X16)>
- RGBf32 = nvcv.<Unknown image format: NVCVImageFormat(RGB,UNDEFINED,PITCH_LINEAR,FLOAT,XYZ1,ASSOCIATED,X32_Y32_Z32)>
- RGBf32p = nvcv.<Unknown image format: NVCVImageFormat(RGB,UNDEFINED,PITCH_LINEAR,FLOAT,XYZ0,ASSOCIATED,X32,X32,X32)>
- S16 = nvcv.<Unknown image format: NVCV_IMAGE_FORMAT_S16>
- S16_BL = nvcv.<Unknown image format: NVCV_IMAGE_FORMAT_S16_BL>
- S32 = nvcv.<Unknown image format: NVCV_IMAGE_FORMAT_S32>
- S8 = nvcv.<Unknown image format: NVCV_IMAGE_FORMAT_S8>
- U16 = nvcv.<Unknown image format: NVCV_IMAGE_FORMAT_U16>
- U32 = nvcv.<Unknown image format: NVCV_IMAGE_FORMAT_U32>
- U8 = nvcv.<Unknown image format: NVCV_IMAGE_FORMAT_U8>
- U8_BL = nvcv.<Unknown image format: NVCV_IMAGE_FORMAT_U8_BL>
- UYVY = nvcv.<Unknown image format: NVCV_IMAGE_FORMAT_UYVY>
- UYVY_BL = nvcv.<Unknown image format: NVCV_IMAGE_FORMAT_UYVY_BL>
- UYVY_ER = nvcv.<Unknown image format: NVCV_IMAGE_FORMAT_UYVY_ER>
- UYVY_ER_BL = nvcv.<Unknown image format: NVCV_IMAGE_FORMAT_UYVY_ER_BL>
- VYUY = nvcv.<Unknown image format: NVCV_IMAGE_FORMAT_VYUY>
- VYUY_BL = nvcv.<Unknown image format: NVCV_IMAGE_FORMAT_VYUY_BL>
- VYUY_ER = nvcv.<Unknown image format: NVCV_IMAGE_FORMAT_VYUY_ER>
- VYUY_ER_BL = nvcv.<Unknown image format: NVCV_IMAGE_FORMAT_VYUY_ER_BL>
- Y16 = nvcv.<Unknown image format: NVCV_IMAGE_FORMAT_Y16>
- Y16_BL = nvcv.<Unknown image format: NVCV_IMAGE_FORMAT_Y16_BL>
- Y16_ER = nvcv.<Unknown image format: NVCV_IMAGE_FORMAT_Y16_ER>
- Y16_ER_BL = nvcv.<Unknown image format: NVCV_IMAGE_FORMAT_Y16_ER_BL>
- Y8 = nvcv.<Unknown image format: NVCV_IMAGE_FORMAT_Y8>
- Y8_BL = nvcv.<Unknown image format: NVCV_IMAGE_FORMAT_Y8_BL>
- Y8_ER = nvcv.<Unknown image format: NVCV_IMAGE_FORMAT_Y8_ER>
- Y8_ER_BL = nvcv.<Unknown image format: NVCV_IMAGE_FORMAT_Y8_ER_BL>
- YCCK8 = nvcv.<Unknown image format: NVCV_IMAGE_FORMAT_YCCK8>
- YUV8p = nvcv.<Unknown image format: NVCV_IMAGE_FORMAT_YUV8p>
- YUV8p_ER = nvcv.<Unknown image format: NVCV_IMAGE_FORMAT_YUV8p_ER>
- YUYV = nvcv.<Unknown image format: NVCV_IMAGE_FORMAT_YUYV>
- YUYV_BL = nvcv.<Unknown image format: NVCV_IMAGE_FORMAT_YUYV_BL>
- YUYV_ER = nvcv.<Unknown image format: NVCV_IMAGE_FORMAT_YUYV_ER>
- YUYV_ER_BL = nvcv.<Unknown image format: NVCV_IMAGE_FORMAT_YUYV_ER_BL>
- property channels
Read-only property that returns the number of color channels in the image
- property name
- property planes
Read-only property that returns the number of planes in the image
- property value
- class cvcuda.ColorSpec
Members:
BT601 : Color spec defining ITU-R BT.601 standard.
BT709 : Color spec defining ITU-R BT.709 standard.
BT2020 : Color spec defining ITU-R BT.2020 standard.
- BT2020 = <ColorSpec.BT2020: 21930>
- BT601 = <ColorSpec.BT601: 21665>
- BT709 = <ColorSpec.BT709: 21793>
- property name
- property value
- class cvcuda.TensorLayout
- CDHW = CDHW
- CFDHW = CFDHW
- CFHW = CFHW
- CHW = CHW
- CW = CW
- DHW = DHW
- DHWC = DHWC
- FCDHW = FCDHW
- FCHW = FCHW
- FDHW = FDHW
- FDHWC = FDHWC
- FHW = FHW
- FHWC = FHWC
- HW = HW
- HWC = HWC
- NCDHW = NCDHW
- NCFDHW = NCFDHW
- NCFHW = NCFHW
- NCHW = NCHW
- NCW = NCW
- NDHW = NDHW
- NDHWC = NDHWC
- NFCDHW = NFCDHW
- NFCHW = NFCHW
- NFDHW = NFDHW
- NFDHWC = NFDHWC
- NFHW = NFHW
- NFHWC = NFHWC
- NHW = NHW
- NHWC = NHWC
- NW = NW
- NWC = NWC
- W = W
- WC = WC
- class cvcuda.RectI
- property height
Height of the rectangle
- property width
Width of the rectangle
- property x
X coordinate of the rectangle’s top-left corner
- property y
Y coordinate of the rectangle’s top-left corner
- class cvcuda.Stream
- current = <nvcv.cuda.Stream id=0 handle=0>
- default = <nvcv.cuda.Stream id=0 handle=0>
- property handle
Get the integer handle for the CUDA stream object.
- property id
Get the unique ID for the CUDA stream object.
- sync(self: cvcuda.Stream) None
Wait for all preceding CUDA calls in the current stream to complete.
- class cvcuda.Resource
- property id
Unique resource instance identifier
- submitStreamSync(self: cvcuda.Resource, arg0: nvcvpy::priv::Stream) None
Syncs object on new Stream
- class cvcuda.ExternalBuffer
- property dtype
Get the data type of the buffer
- property shape
Get the shape of the buffer as an array
- property strides
Get the strides of the buffer
- class cvcuda.Container
- class cvcuda.Elements