Take the 2-minute tour ×
Mathematica Stack Exchange is a question and answer site for users of Mathematica. It's 100% free, no registration required.

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

Dynamic@CurrentImage[]

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?

share|improve this question
    
Note: this question has been split from here: mathematica.stackexchange.com/q/2142/12 –  Szabolcs Feb 22 '12 at 13:56
add comment

1 Answer 1

up vote 16 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

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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