Function Repository Resource:

StartCamera

Source Notebook

Start a specified camera on your computer

Contributed by: Arnoud Buzing

ResourceFunction["StartCamera"][camera]

starts camera on your computer.

Details and Options

The camera must be one of the cameras listed in $ImagingDevices.
Functions like CurrentImage automatically start a camera, but the initialization can take some time. Using ResourceFunction["StartCamera"] allows you to control when a camera is started.
ResourceFunction["StartCamera"] does not collect any video data.

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