apockill / uArmCreatorStudio

uArm Creator Studio is a Visual Programming Language for robot arms, with a heavy emphasis on computer vision and usability for both low experience and high experience programmers. It's written entirely in Python, and supports python scripting within the application.
82 stars 39 forks source link

Option to disable camera #14

Closed wisechengyi closed 7 years ago

wisechengyi commented 7 years ago

Currently once camera is selected there does not seem to be a way to turn it off and it burns a decent portion of os resources. If you are okay with the idea, I can send out a PR.

Thanks, Yi

apockill commented 7 years ago

Hi Yi, how would you propose the change? Perhaps a button on the CameraWidget that pauses the VideoStream main loop? I'm definitely open to the idea.

wisechengyi commented 7 years ago

How about under "Devices" where it is initially setup? and add a disable button. So the place would be consistent in terms of scanning for/turning on/off some devices.

apockill commented 7 years ago

Ah I see. Sure, maybe a button next to "Scan for Cameras" that's just "Disconnect Camera" if you have a camera currently set in the settings it would simply turn it to None, and then tell the VideoStream to disconnect?