Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 5471

Beginners • Re: Runnning TensorFlow Lite on RPi 5

$
0
0
@jimxbob3

I do not use TensorFlow Lite on RPi5 and Bookworm, but I did manage to get OpenCV to work with GStreamer and libcamerasrc. Please see this post viewtopic.php?t=361778.

During the re-build of rpicam-apps there were two settings that involved opencv and tflite:
-Denable_opencv=true or -Denable_opencv=false - you may choose one of these to force OpenCV-based post-processing stages to be linked (or not). If you enable them, then OpenCV must be installed on your system. Normally they will be built by default if OpenCV is available.

-Denable_tflite=true or -Denable_tflite=false - choose one of these to enable TensorFlow Lite post-processing stages (or not). By default they will not be enabled. If you enable them then TensorFlow Lite must be available on your system. Depending on how you have built and/or installed TFLite, you may need to tweak the meson.build file in the post_processing_stages directory.
I only enabled opencv on my setup.

The key thing to remember after the rebuild of libcamera and rpicam-apps, the element libcamerasrc is still "missing" or "misplaced" into another package!

Statistics: Posted by Roboteer2024 — Sat Jan 06, 2024 3:36 am



Viewing all articles
Browse latest Browse all 5471

Trending Articles