<built-in function namedWindow> returned NULL without setting an error code example
Example: returned NULL without setting an error
#The syntax of cv2.imshow() is
cv2.imshow("windowname", image)
# First the name of the window, next the image itself.