SyntaxFix
Write A Post
Hire A Developer
Questions
In my case, the image was incorrectly named. Check if the image exists and try
import numpy as np import cv2 img = cv2.imread('image.png', 0) cv2.imshow('image', img)