OPencv is installed and i am able to import using python but showing this error AttributeError: module ‘cv2’ has no attribute ‘imread’
OpenCV python Machine learning
Make sure you installed the opencv using the right command, which is
pip install opencv-python
After installing this, use the command
import cv2
img = cv2.imread(path)
Make sure path is correct. and this should run fine.
If error still persists share the screenshot of the error.
Hope this cleared your doubt.
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.