Object dedection

July 17, 2023, 13:03

Boro

Followed yt guide to set up object detection model, but when I run script it says it lacks "cv2". Googled it means I need to install opencv, but I cant install it cause it's getting errors. Where can I find up to date opencv download link?

oops.se

What yt? What errors?

Boro

ImportError: libIlmImf-2_2.so.23: cannot open shared object file: No such file or directory I get this error when trying to do >>> import cv2

Boro

I use virtual env, been following this guide https://www.youtube.com/watch?v=NPXBRX7N3ec

Boro

my OS died. reinstalling everything

Boro

sudo apt-get install python3-pip python3-virtualenv mkdir project cd project python3 -m pip install virtualenv python3 -m virtualenv env source env/bin/activate sudo apt install -y build-essential cmake pkg-config libjpeg-dev libtiff5-dev libpng-dev libavcodec-dev libavformat-dev libswscale-dev libv4l-dev libxvidcore-dev libx264-dev libfontconfig1-dev libcairo2-dev libgdk-pixbuf2.0-dev libpango1.0-dev libgtk2.0-dev libgtk-3-dev libatlas-base-dev gfortran libhdf5-dev libhdf5-serial-dev libhdf5-103 libqt5gui5 libqt5webkit5 libqt5test5 python3-pyqt5 python3-dev pip install "picamera[array]" pip install opencv-contrib-python now waiting

Boro

/tmp/pip-install-fxb0rboi/opencv-contrib-python_bc60429a224b4caab01ceffa6867564f/_skbuild/linux-armv7l-3.9/cmake-build Please check the install target is valid and see CMake's output for more information. ---------------------------------------- ERROR: Failed building wheel for opencv-contrib-python Failed to build opencv-contrib-python ERROR: Could not build wheels for opencv-contrib-python which use PEP 517 and cannot be installed directly

Boro

This popped when tried to pip install

Boro

Worth noting im using RPI 2 v1.1