Check out this alternative method, IT REQUIRES ANACONDA ENVIRONMENT My suggestion is to run the code in python in a terminal. You will not run into any problem.
Copy the same code and save using filename.py
import cv2 input = cv2.imread('path_to_image.png') cv2.imshow('Hello World', input) cv2.waitKey(0) cv2.destroyAllWindows()
then open a specific directory and then open a terminal
Open terminal - cd path/to/filename.py
This will solve the problem.
https://youtu.be/8O-FW4Wm10s
RK Bhalodia
source share