-
Notifications
You must be signed in to change notification settings - Fork 4
Software writing
Q-engineering edited this page Aug 20, 2023
·
1 revision
The software of the YoloCam is in pure C++. All sources are available, so you can modify the application to your needs if you like. Only the libYoloIP.so, with its detection of the 80 COCO labels, is write-protected. In other words, you can not change the software to detect other objects. In the near future, an additional extension will make this possible.
The same applies to the RTSP streams. They are GPU-processed by the libYoloIP.so library.
- Before writing any software, disable the Alive function. It is done by setting
Alive = 0
in the/mnt/WRdisk/settings.txt
file.
Otherwise, your Raspberry Pi will automatically reboot every hour since Alive is missing a working YoloCam. - Remove the overlay if set. With the overlay function active, all your hard work is lost after a reboot.
- Expand the swap memory to 2 GB. The application needs a lot of memory to compile.
- Copy your final result to the folder
/usr/local/bin
. During booting, the YoloIP (and Alive) app will be started from this location. - When done, restore the initial configuration by reversing the above order.
sudo nano /etc/dphys-swapfile
sudo /etc/init.d/dphys-swapfile stop
sudo /etc/init.d/dphys-swapfile start
- OpenCV 4.7.0. See https://qengineering.eu/install-opencv-on-raspberry-pi.html.
- ncnn. A deep learning framework. See https://qengineering.eu/install-ncnn-on-raspberry-pi-4.html.
- Code::Blcks. A C++ IDE and compiler shell.