Answers for "how to crop open cv image"

1

cv2 crop image

import cv2
img = cv2.imread("lenna.png")
crop_img = img[y:y+h, x:x+w]
cv2.imshow("cropped", crop_img)
cv2.waitKey(0)
Posted by: Guest on April-14-2021
-1

how to crop the image using opencv

crop_img = img[y:y+h, x:x+w]
Posted by: Guest on March-06-2021

Python Answers by Framework

Browse Popular Code Answers by Language