Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Attribute error #9

Open
keerthanaggopala opened this issue Mar 28, 2023 · 1 comment
Open

Attribute error #9

keerthanaggopala opened this issue Mar 28, 2023 · 1 comment

Comments

@keerthanaggopala
Copy link

AttributeError: 'cv2.VideoCapture' object has no attribute 'getDevices'

@J42-777
Copy link

J42-777 commented Apr 19, 2023

This error may come if you installed opencv previously without the e-consystems videoio module and the current build and install is not successful. Check in your build/lib directory of your OpenCV build. There should be a cv2.so file there (if both cmake and make executed without error). If the cv2.so file is present, manually copy it into both the system site-packages (or dist-packages) directory.

Then run the following command.
$ sudo PYTHONPATH=”@release/lib/python3” LD_LIBRARY_PATH=”@release/lib” python3 main.py

These details are provided in OpenCV_Python_Installation_Linux_Manual_v1.4.pdf Page 11

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants