Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Altomand opened this issue Oct 29, 2022 · 1 comment
Open

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

Altomand opened this issue Oct 29, 2022 · 1 comment
Assignees
Labels
Hardware:Dev Board Mini Coral Dev Board Mini Issues subtype:Mendel Linux Mendel Linux Build/installation issues type:support Support question or issue

Comments

@Altomand
Copy link

Altomand commented Oct 29, 2022

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

@google-coral-bot google-coral-bot bot added Hardware:Dev Board Mini Coral Dev Board Mini Issues subtype:Mendel Linux Mendel Linux Build/installation issues type:support Support question or issue labels Oct 29, 2022
@Altomand
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Hardware:Dev Board Mini Coral Dev Board Mini Issues subtype:Mendel Linux Mendel Linux Build/installation issues type:support Support question or issue
Projects
None yet
Development

No branches or pull requests

2 participants