display a photo with open cv code example
Example 1: load img cv2
img = cv2.imread('img.jpg')
Example 2: open opencv image file
cv2.imshow('image',img)
cv2.waitKey(0)
cv2.destroyAllWindows()
img = cv2.imread('img.jpg')
cv2.imshow('image',img)
cv2.waitKey(0)
cv2.destroyAllWindows()