MinAreaRect
- cvcuda.minarearect(src: nvcv.Tensor, numPointsInContour: nvcv.Tensor, totalContours: int, *, stream: Optional[nvcv.cuda.Stream] = None) nvcv.Tensor
Executes the Min Area Rect operation on the given cuda stream.
See also
Refer to the CV-CUDA C API reference for the Min Area Rect operator for more details and usage examples.
- Parameters
src (nvcv.Tensor) – Input tensor containing one or more contours.src[i,j,k] is the set of contours where i ranges from 0 to batch-1, j ranges from 0 to max number of points in cotours k is the coordinate of each points which is in [0,1]
numPointsInContour (nvcv.Tensor) – Input tensor containing the number of points in each input contours.
totalContours (int) – Number of input contours
stream (nvcv.cuda.Stream, optional) – CUDA Stream on which to perform the operation.
- Returns
The output tensor of rotated bounding boxes.The output will give 4 points’ cooridinate(x,y) of each contour’s minimum rotated bounding boxes
- Return type
nvcv.Tensor
Caution
Restrictions to several arguments may apply. Check the C API references of the CV-CUDA operator.
- cvcuda.minarearect_into(dst: nvcv.Tensor, src: nvcv.Tensor, numPointsInContour: nvcv.Tensor, totalContours: int, *, stream: Optional[nvcv.cuda.Stream] = None) nvcv.Tensor
Executes the Min Area Rect operation on the given cuda stream.
See also
Refer to the CV-CUDA C API reference for the Min Area Rect operator for more details and usage examples.
- Parameters
dst (nvcv.Tensor) – Output tensor will give 4 points’ cooridinate(x,y) of each contour’s minimum rotated bounding boxes
src (nvcv.Tensor) – Input tensor containing one or more contours. src[i,j,k] is the set of contours where i ranges from 0 to batch-1, j ranges from 0 to max number of points in cotours k is the coordinate of each points which is in [0,1]
numPointsInContour (nvcv.Tensor) – Input tensor containing the number of points in each input contours.
totalContours (int) – Number of input contours
stream (nvcv.cuda.Stream, optional) – CUDA Stream on which to perform the operation.
stream – CUDA Stream on which to perform the operation.
- Returns
None
Caution
Restrictions to several arguments may apply. Check the C API references of the CV-CUDA operator.