This project is still under development
but works as POC!!!
This will be used with the Front_Door_Intercom_automation Github Porject to take a photo.
ToDo's:
- rework code docu
- create build and test pipelines
- docu
- unit tests
apt install libcap-dev libcap2-bin libcap2
sudo apt install -y python3-libcamera python3-kms++
sudo apt install -y python3-prctl libatlas-base-dev ffmpeg libopenjp2-7
pip3 install numpy --upgrade
pip3 install picamera2
python3 -m venv --system-site-packages .venv
Further you can foolow the How to do a fresh installtion on RPi with code
Edit file picam.service
and adjust to your path ( ExecStart=/usr/local/bin/PiCam_API_2......
).
To run fdia as a service on startup with root permissions
copy picam.service
to /etc/systemd/system/
to your RPi systemd deamon folder.
Run systemctl daemon-reload
and systemctl start fdia
to start it as a service.
Enable system service with systemctl enable picam.service
.
pytest --cov=./ --cov-report=html