CurrentImage[] will capture an image from the webcam. It is even possible to create a live video in the notebook using


After using this function even a single time, Mathematica will not switch off or release the webcam any more, making it impossible to use the webcam from other programs on some systems.

How can I switch off / release the webcam from Mathematica, without quitting Mathematica completely?

up vote 22 down vote accepted

To turn the camera off you could use the undocumented function IMAQ`StopCamera[]. Similarly IMAQ`StartCamera[] will turn it back on again.

Alternatively you can use the On/Off button on the control interface returned by ImageCapture[]:

Mathematica graphics

Your Answer


By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.