Raspberry Pi 3 with servo and camera

Installing the required packages on system:

sudo apt-get update && sudo apt-get upgrade
sudo apt-get install build-essential cmake pkg-config
sudo apt-get install libjpeg-dev libtiff5-dev libjasper-dev libpng-dev
sudo apt-get install libavcodec-dev libavformat-dev libswscale-dev libv4l-dev
sudo apt-get install libxvidcore-dev libx264-dev
sudo apt-get install libfontconfig1-dev libcairo2-dev
sudo apt-get install libgdk-pixbuf2.0-dev libpango1.0-dev
sudo apt-get install libgtk2.0-dev libgtk-3-dev
sudo apt-get install libatlas-base-dev gfortran
sudo apt-get install libhdf5-dev libhdf5-serial-dev libhdf5-103
sudo apt-get install libqtgui4 libqtwebkit4 libqt4-test python3-pyqt5
sudo apt-get install python3-dev
sudo apt-get install libilmbase23
sudo apt-get install libopenexr-dev

Installing and activating the python virtual environment:

mkdir env && cd env
python3 m venv env
source env/bin/activate

Installing PIcamera and OpenCV4:

pip install “picamera[array]”
pip install opencv-contrib-python==4.1.0.25

 
134

Добавить комментарий