opencv read and display image code example
Example 1: open opencv image file
cv2.imshow('image',img)
cv2.waitKey(0)
cv2.destroyAllWindows()
Example 2: python opencv load image
img = cv2.imread('filename.jpg',1)
cv2.imshow('image',img)
cv2.waitKey(0)
cv2.destroyAllWindows()
img = cv2.imread('filename.jpg',1)