CPUImage

CPUImage inheritance diagram
- class savant.utils.image.CPUImage(image)
 - to_gpu()
 Returns GPU image.
- Returns:
 GPU image
- Return type:
 cv2.cuda.GpuMat
- cut(bbox)
 Cuts image by bbox and padding. :param bbox: cutout bbox :return:
- paste(image, point)
 Pastes image on current image.
- concat(image, axis=0)
 Concatenates images along axis.
- rotate(angle, bbox=None)
 Rotates image on angle. If bbox is not None, image will be rotated around center point of image.
- resize(resolution, method='fit', interpolation=cv2.INTER_LINEAR)
 Resizes image to resolution.
- Parameters:
 - Returns:
 resized image
- Return type: