Function Resource

StopCamera

Stop a specified camera on your computer

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

List all cameras for a computer:

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

Start the front camera on a Microsoft Surface computer:

Stop the camera: