Open kartik1395 opened 3 years ago
Hi, once I set the transform, how can it be applied to a video frame ?
transform = cvtransforms.Compose([ cvtransforms.TenCrop((224)), cvtransforms.Resize(size=(-1, 256)])
What is the next step to apply it to the frame ?
You can firstly load a single video frame with cv2 as a numpy array with the shape (H,W, 3) ,and then apply the transform to the array as the examples of official tutorials(https://pytorch.org/tutorials/beginner/transfer_learning_tutorial.html).
Hi, once I set the transform, how can it be applied to a video frame ?
What is the next step to apply it to the frame ?