Sep-16-2020, 03:22 AM
(This post was last modified: Sep-16-2020, 03:22 AM by Pedroski55.)
EDIT: SOLVED: with advice from askubuntu, I downloaded
pedro@pedro-512ssd:~$ pip3 install opencv-contrib-python
Now the detector works!!
Thanks for the reply:
I got this info:
Looks like my cv2 is significantly shorter than your cv2 1704 to 1946!
Maybe that's why the module is missing!
How to change this? I have tried to install opencv- from pip3, but the install fails.
pedro@pedro-512ssd:~$ pip3 install opencv-contrib-python
Now the detector works!!
Thanks for the reply:
I got this info:
Quote:>>> cv2
<module 'cv2' from '/usr/lib/python3/dist-packages/cv2.cpython-36m-x86_64-linux-gnu.so'>
>>> len(dir(cv2))
1704
>>> dir(cv2) (gives "squeezed text" because the output is very long)
>>>
Looks like my cv2 is significantly shorter than your cv2 1704 to 1946!
Maybe that's why the module is missing!
How to change this? I have tried to install opencv- from pip3, but the install fails.
Quote:pedro@pedro-512ssd:~$ pip3 install opencv-python
Collecting opencv-python
Using cached https://files.pythonhosted.org/packages/....42.tar.gz
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-build-aop87qrl/opencv-python/setup.py", line 9, in <module>
import skbuild
ModuleNotFoundError: No module named 'skbuild'
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-aop87qrl/opencv-python/