We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2a68a5a commit fc910f7Copy full SHA for fc910f7
Image_Processing/src/cropping/crop.py
@@ -0,0 +1,5 @@
1
+import cv2
2
+img = cv2.imread("lenna.png")
3
+crop_img = img[y:y+h, x:x+w]
4
+cv2.imshow("cropped", crop_img)
5
+cv2.waitKey(0)
0 commit comments