Object detection with TensorFlow Lite - Qualcomm Developer Network
I am following the instructions on the link above for the Object Detection with Tensorflow and I am running into issues when try to run the application
root@qrb5165-rb5:/# cd home/src/webcam-detect-tflite/buildroot@qrb5165-rb5:/# ./webcam-detector
sh-4.4# ./webcam-detectorLoading model: mobilenet_quant_v1_224.tfliteERROR: Could not open 'mobilenet_quant_v1_224.tflite'.Failed to load the model.
Any suggestions on this?
Zilmara
I will try to reprodece this test? by the way, do you use USB Camera for this test?
I tried using both the USB camera and also the on device camera. thanks for the help
The mobilenet_quant_v1_224.tflite is at /home/src/webcam-detect-tflite/
you can copy it to build folder, however there is another issue with opencv.
Can you try if you have such issue?
I moved mobilenet_quant_v1_224.tflite to the build folder and now I dont get the error of failed to open file. My new error is
I rebooted the device and I got the error that it couldnt load labels.txt so I moved that filed to the build folder as well and now I am gettting the following error
Any Suggestions?
Zilmara
have you run
#weston --tty=1 --connector=29
Yes I tried running that and i still get the same error
HI Zilmara
Can you try the object detection this sample app in github? It is same as "object detection with TensorFlow Lite", it use the camera on borad.
The sample code is here:
https://github.com/quic/sample-apps-for-Qualcomm-Robotics-RB5-platform/t...
Hello,
I followed the tutorial at https://developer.qualcomm.com/project/object-detection-tensorflow-lite but I am getting the following error:
What may be the cause if this and how could I resolve it?
Thanks in advance.
Hi I tried the example in https://github.com/quic/sample-apps-for-Qualcomm-Robotics-RB5-platform/t...
But I am getting the following error:
Why would this be and how could I resolve it?
Thanks in advance.
Hi,
We have recently updated the instructions for the TFLite sample demo posted here:
https://developer.qualcomm.com/project/object-detection-tensorflow-lite
There were a few gaps in the instructions.
The CMakeLists.txt file had a line for OpenCV wayland commented, so that path was not getting set.
There was a font file that was missing, and couple of paths that were incorrect.
Can you please try this sample again?
It works with a USB webcam, so be sure to connect one.
If it gives you the following error,
You will need to find the correct video source in /dev/video* and set the correct video source in main.cxx on line 146:
Recompile and run the app agian.
Hope this helps.
Hi everyone,
We are using the main camera for this sample app based on this answer:
However, we are getting the following error:
Gdk-Message: 10:20:12.003: Error flushing display: Broken pipe
Any Suggestions?
Thanks in Advance
Can you use this sample code for object detection?
https://github.com/quic/sample-apps-for-Qualcomm-Robotics-RB5-platform/t...
Thanks
Kevin
Hi Kevin,
Thank you for your response. This sample code works fine. The point is that we need to use OpenCV for our project. Since this project uses OpenCV Wayland, we wanted to use it as a starting point to implement our own project. We are not using a USB camera, instead we use on-board cameras since we want to switch between main camera and tracking camera.
I am alos interested in using OpenCV with the onboard cameras, but as far as I understood from other responses to my questions in the forum, onboard cameras are expected to be used with GStreamer and not V4L2? Can someone confirm that onboard cameras only work with GStreamer or how would I use OpenCV otherwise?
Thanks
Hi mistry!
In this demo:
https://developer.qualcomm.com/project/object-detection-tensorflow-lite
model run on CPU, is that right?
How to config to make model run on GPU, DSP mode?
Thank you!
Hi all,
When running this example, it crashes with a segmentation fault error.
Any information on how to resolve this issue?
Solved. The waitkey() polls for key press and needs a keyboard to be connected.