xxxxxxxxxx
# Python program to explain cv2.imshow() method
# importing cv2
import cv2
# path
path = r'C:\Users\Rajnish\Desktop\geeksforgeeks.png'
# Reading an image in default mode
image = cv2.imread(path)
# Using cv2.imshow() method
# Displaying the Hello
cv2.imshow("Hello", image)
# waits for user to press any key
# (this is necessary to avoid Python kernel form crashing)
cv2.waitKey(0)
# closing all open windows
cv2.destroyAllWindows()