google-coral / example-object-tracker

Apache License 2.0
105 stars 32 forks source link

Trying to periodically switch off camera in detect.py #25

Open Altomand opened 1 year ago

Altomand commented 1 year ago

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_
Altomand commented 1 year ago

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.