|opencv path in python for ubuntu||by aysegul ucar (Webots PRO - 31) 2019-01-07 09:40:34|
R2018b academic pro
We are using Ubuntu 16.04 and python 2.7.
We cant add to opencv to our python controller.
Could you please give an example lines for adding path? Previously many thanks
the error is:
INFO: my_controller_klavye: Starting: "python -u "my_controller_py" "
INFO: supervisor: Starting: "python -u "supervisor.py" "
[my_controller_] Traceback (most recent call last):
[my_controller_] File "my_controller_.py", line 9, in <module>
[my_controller_] import cv2
[my_controller_] ImportError: /usr/lib/x86_64-linux-gnu/libopencv_video.so.2.4: undefined symbol: _ZNK2cv13AlgorithmInfo4nameB5cxx11Ev
WARNING: 'my_controller_' controller exited with status: 1.
|Re: opencv path in python for ubuntu||by aysegul ucar (Webots PRO - 31) 2019-01-07 12:14:39|
I have previously used these commands.Later, import cv2 does not work again.
Use the pip command to install OpenCV:
sudo apt-get install python-pip
sudo pip install opencv-python
|Re: opencv path in python for ubuntu||by David Mansolino (Webots PRO - 358) 2019-01-07 16:31:15|
It seems your OpenCV installation is somehow corrupted,
Is the 'visual_tracking' controller we are distributing working?
You should probably try uninstalling and re-installing OpenCV.
|Re: opencv path in python for ubuntu||by David Mansolino (Webots PRO - 358) 2019-01-08 14:39:20|
I am sorry but this is not the correct 'visual_tracking' controller (this one is not using openCV) I was mentioning in my previous message the one of 'samples/robotbenchmark/visual_tracking'.