PYNQ: PYTHON PRODUCTIVITY

Trying to upgrade from OpenCV 3 to OpenCV 4

Hi,

Is anyone able to upgrade the current version of OpenCV (3.4.3) on the PYNQ Z2 (or Z1) to OpenCV 4? I’ve tried to do it numerous times with not much luck.

One of the methods I used was pip install opencv-contrib-python which gave me this error:

import cv2
Traceback (most recent call last):
File “”, line 1, in
File “/home/xilinx/.local/lib/python3.6/site-packages/cv2/init.py”, line 5, in
from .cv2 import *
ImportError: /home/xilinx/.local/lib/python3.6/site-packages/cv2/cv2.cpython-36m-arm-linux-gnueabihf.so: undefined symbol: _ZN3fLI7FLAGS_vE

I’ve also tried to build from scratch with Opencv 4.5 and it gave me an error as well that it couldn’t find cv2. (This was after upgrading the Python version from 3.6 to 3.7). Are there any instructions out there to upgrade from OpenCV 3 to OpenCV 4?

This isn’t really a PYNQ specific question.
The current PYNQ image is based on Ubuntu 18.04 bionic. I’d suggest you search/ask questions on Linux forums for solutions to this issue. Zynq has an ARM A9. RaspberryPi uses the same processor architecture, so you may find info on related forums.

Cathal