Skip to content

Commit d39377a

Browse files
committed
Added Resizing.py to resize images
1 parent df053ed commit d39377a

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
import cv2
2+
dimensions = input("Enter width and height : ").split()
3+
width = int(dimensions[0])
4+
height = int(dimensions[1])
5+
6+
image = cv2.imread("lenna.png")
7+
resized_image = cv2.resize(image , (width, height), interpolation=cv2.INTER_AREA)
8+
cv2.imshow("Resized Image", resized_image)
9+
cv2.waitKey(0)

0 commit comments

Comments
 (0)