ImageBatchVarShape

class nvcv.ImageBatchVarShape

Batch of Images.

property capacity

Return the capacity of the ImageBatchVarShape in number of images.

clear(self: nvcv.ImageBatchVarShape) None

Remove all images from the ImageBatchVarShape.

property maxsize

Return the maximum size of the ImageBatchVarShape in bytes.

popback(self: nvcv.ImageBatchVarShape, count: int = 1) None

Remove one or more images from the end of the ImageBatchVarShape.

pushback(*args, **kwargs)

Overloaded function.

  1. pushback(self: nvcv.ImageBatchVarShape, arg0: nvcv.Image) -> None

Add a new image to the end of the ImageBatchVarShape.

  1. pushback(self: nvcv.ImageBatchVarShape, arg0: list[nvcv.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.

nvcv.as_images(buffers: list[object] = [], format: nvcv.Format = nvcv.Format.NONE) nvcv.ImageBatchVarShape

Wrap a vector of external buffers as a batch of images, and tie the buffers lifetime to it