I followed this tutorial from official documentation. I run their code:
import numpy as np import cv2 im = cv2.imread(\'test.jpg\') imgray = cv2.cvtColor(im
Add these 2 lines at the end:
cv2.imshow("title", im) cv2.waitKey()
Also, be aware that you have img instead of im in your last line.
img
im