Universal Robots Forum

How to install Python library opencv on control box

Hi,
I am building a daemon urcap. The daemon will use puthon library opencv to access camera which is not installed in the control box.

I tried to install it. But I’ve encountered errors when trying to do update from control box terminal command line:

apt-get update

Then the following error occurred:
Could not resolve 'packages.ur-update.dk
W: some index files failed to download.

What should I do?

Thanks,

David

I didn’t try this on my own but did you try to use pip?

pip install opencv-python

pip is not installed by default on UR5e, so first you have to install it by running:
wget https://bootstrap.pypa.io/get-pip.py
python get-pip.py

then install OpenCV by running:
pip install opencv-python

Worked for me.

1 Like