Last frame acquisition from camera
James2ok opened this issue · comments
Description
Hi , i try to use the classify_capture.py script in the example to take the Last frame from my usb camera , open a display and run a tflite classification model retrained by me. My problem is that the frame that i take from camera is not the Last frame . Someone can share some code or funcion to take the Last frame from camera? Thanks
Click to expand!
Issue Type
Support
Operating System
Mendel Linux
Coral Device
Dev Board
Other Devices
No response
Programming Language
Python 3.8
Relevant Log Output
No response
With GStreamer, running v4l2src ! ... (preprocess) ... ! queue leaky=2 max-size-buffers=2 ! {element that does the inference}
, older frames will be dropped at queue so that the last element will get the latest frames.
E.g., https://github.com/nnstreamer/nnstreamer-example/blob/main/bash_script/example_object_detection_tensorflow_lite/gst-launch-object-detection-tflite.sh (this supports Google Coral accleration if the correponsing tensorflow-lite is built properly and accelerator is properly designated.