1 | initial version |
Actually I don't know how to use crop but now I got the answer. Thanks for efforts.
2 | No.2 Revision |
Actually I don't know how to use crop but now I got the answer. Thanks for efforts.
Code :
import cv2
im = (1024,1024,3)
print(im.shape)
a=(im.shape[0]*2,im.shape[1]*2)
gpu = cv2.cuda_GpuMat()
gpu.upload(im)
maxX=500
maxY=500
minX = 500
minY= 500
cropped = cv2.cuda_GpuMat(gpu, (minY, minX, maxY,maxX))