example-object-tracker
example-object-tracker copied to clipboard
Trying to periodically switch off camera in detect.py
Description
I am using the coral dev mini with a coral camera. I am trying to switch of the camera off in detect.py when there are no people in the frame "if labels.get(obj.id,obj.id) != 'person'" to save power . However I am not sure how to switch the camera off, setting the video source to none instead of /dev/video0 "parser.add_argument('--videosrc', help='Which video source to use. ', default='/dev/video0')" when calling gstreamer.run_pipeline gives me an error. Do you have any suggestions. Thanks.
Click to expand!
Issue Type
Support
Operating System
Mendel Linux
Coral Device
Dev Board Mini
Other Devices
No response
Programming Language
Python 3.7
Relevant Log Output
No response
Is there a way to dynamically change the frame rate either in detect.py or gstreamer? I tried to change the values from 30 fps but I get an error.