Skip to content

kipr/ai-rpi-cam

ai-rpi-cam

Custom build of rpicam-apps which contains an extra app for interfacing with libwallaby.

Installation

First check for a prebuilt deb file. It should work on Trixie-based Raspberry Pi OS. To use it with the Wombat, make sure you have enabled gadget mode for the Pi following this guide. If you want to build from scratch, read on.

Docker cross-compilation (recommended)

Pull the sysroot with git LFS. It is over a gigabyte, so it may take a while.

git lfs pull

Ensure that you have Docker installed and set up for your user. From the root of this repo run:

./build.sh

It will place all logs and build artifacts in an out directory. You can then copy out/rpicam-apps-kipr.deb to a Trixie-based Raspberry Pi OS and install:

sudo apt install ./rpicam-apps-kipr.deb

Local build on a Pi

Install build dependencies:

sudo apt install -y git meson libcamera-dev libboost-all-dev libswscale-dev libavcodec-dev libavdevice-dev libexif-dev libjpeg-dev libtiff5-dev libpng-dev libopencv-dev libdrm-dev cmake libexif-dev liblapack-dev libblas-dev libarmadillo-dev

Then compile and install with meson:

Tip

When compiling on a memory constrained like a Pi, consider adding -j1 to the compile command to reduce the chances of build failure due to running out of memory. If it still fails, consider using the Docker build procedure.

meson setup build --prefix /usr -Denable_libav=enabled -Denable_drm=disabled -Denable_egl=disabled -Denable_qt=disabled -Denable_opencv=enabled -Denable_tflite=disabled -Denable_hailo=disabled -Denable_imx500=true -Ddownload_imx500_models=true
meson compile -C build
sudo meson install -C build

Running

You can run the rpicam-kipr app manually like this:

LD_PRELOAD=/usr/lib/librpicam_app.so rpicam-kipr -o udp://192.168.1.1:9000 --post-process-file /usr/share/rpi-camera-assets/kipr_mobilenet_ssd.json -t0

License

The original rpicam-apps is made available under the simplified BSD 2-Clause license.

All changes made by KIPR and KIPR volunteers are licensed under the terms of the GPLv3 License.

About

No description, website, or topics provided.

Resources

License

GPL-2.0, BSD-2-Clause licenses found

Licenses found

GPL-2.0
LICENSE
BSD-2-Clause
license.txt

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •