Function Repository Resource:

StopCamera

Source Notebook

Stop a specified camera on your computer

Contributed by: Arnoud Buzing

ResourceFunction["StopCamera"][camera]

stops camera on your computer.

Details and Options

The camera must be a one of the cameras listed in $ImagingDevices.
Functions like CurrentImage do not automatically stop a camera. Using ResourceFunction["StopCamera"] lets you explicitly turn off a camera when it is no longer needed.

Examples

Basic Examples (3) 

List all cameras for a computer:

In[1]:=
cameras = $ImagingDevices
Out[1]=

Start the front camera on a Microsoft Surface computer:

In[2]:=
ResourceFunction["StartCamera"][First@cameras]

Stop the camera:

In[3]:=
ResourceFunction["StopCamera"][First@cameras]

Publisher

Arnoud Buzing

Version History

  • 1.0.0 – 26 June 2020

Related Resources

License Information