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

Raspberry Pi OS • Re: libcamera-apps fails to detect tensorflow-lite

$
0
0
I fixed this out - the solution was to change `post_processing_stages/meson.build` as follows to explicitly tell meson where libtensorflow-lite.so is located, rather than using its dependency searcher:

Code:

james@raspberrypi:~/rpicam-apps $ git diff post_processing_stages/meson.builddiff --git a/post_processing_stages/meson.build b/post_processing_stages/meson.buildindex d0af4b3..8cead38 100644--- a/post_processing_stages/meson.build+++ b/post_processing_stages/meson.build@@ -1,3 +1,5 @@+cc = meson.get_compiler('c')+ rpicam_app_src += files([     'hdr_stage.cpp',     'histogram.cpp',@@ -32,7 +34,8 @@ else endif  enable_tflite = get_option('enable_tflite')-tflite_dep = dependency('tensorflow-lite', required : false)+tflite_dep = cc.find_library('tensorflow-lite', dirs: ['/usr/local/lib'])+#tflite_dep = dependency('tensorflow-lite', required : true) if enable_tflite and tflite_dep.found()     rpicam_app_src += files([         'tf_stage.cpp',
Thank you so much for your help !!

Statistics: Posted by bravo68web — Wed May 15, 2024 11:26 pm



Viewing all articles
Browse latest Browse all 3915

Trending Articles