Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions Resizing the Image.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import cv2

#Reads the image as a gray scale image
img = cv2.imread("Image1.jpg",0)

#resize image
resize_image = cv2.resize(img,(650,500))

#opens a window to display the image
cv2.imshow("Image1",resized_image)

# waits until the user presses a key
cv2.waitKey(0)

#closes the window based on wait for key parameter
cv2.destroyAllWindows()