Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #7540 > unrolled thread
| Started by | Murray Eisenberg <murray@math.umass.edu> |
|---|---|
| First post | 2012-01-03 10:27 +0000 |
| Last post | 2012-01-04 10:07 +0000 |
| Articles | 4 — 2 participants |
Back to article view | Back to comp.soft-sys.math.mathematica
how turn off camera after using CurrentImage? Murray Eisenberg <murray@math.umass.edu> - 2012-01-03 10:27 +0000
Re: how turn off camera after using CurrentImage? Murray Eisenberg <murray@math.umass.edu> - 2012-01-04 10:01 +0000
Re: how turn off camera after using CurrentImage? Szabolcs <szhorvat@gmail.com> - 2012-01-04 10:07 +0000
Re: how turn off camera after using CurrentImage? Szabolcs <szhorvat@gmail.com> - 2012-01-04 10:07 +0000
| From | Murray Eisenberg <murray@math.umass.edu> |
|---|---|
| Date | 2012-01-03 10:27 +0000 |
| Subject | how turn off camera after using CurrentImage? |
| Message-ID | <jdul5s$jnf$1@smc.vnet.net> |
On an iMac under OS X 10.6.8 (Snow Leopard), in Mathematica 8.0.4, I evaluated CurrentImage[]. That automatically turned on the built-in "FaceTime HD" camera. Is there some programmatic way from within Mathematica to turn the camera off? And if not -- OT: is there some simple way to do this in OS X? (Other than open and then quit the FaceTime app.) -- Murray Eisenberg murray@math.umass.edu Mathematics & Statistics Dept. Lederle Graduate Research Tower phone 413 549-1020 (H) University of Massachusetts 413 545-2859 (W) 710 North Pleasant Street fax 413 545-1801 Amherst, MA 01003-9305
[toc] | [next] | [standalone]
| From | Murray Eisenberg <murray@math.umass.edu> |
|---|---|
| Date | 2012-01-04 10:01 +0000 |
| Message-ID | <je182d$38r$1@smc.vnet.net> |
| In reply to | #7540 |
OK, ImageCapture[] works just fine. Thanks! So does the undocumented IMAQ`StopCamera[]. But surely such a utility should be available as an ordinary function -- and documented. I find no Camera* functions documented, and evaluating CameraOff[] just returns the input expression. On 1/3/12 8:37 AM, Szabolcs wrote: > On Tuesday, 3 January 2012 11:27:08 UTC+1, Murray Eisenberg wrote: >> On an iMac under OS X 10.6.8 (Snow Leopard), in Mathematica 8.0.4, I >> evaluated CurrentImage[]. That automatically turned on the built-in >> "FaceTime HD" camera. >> >> Is there some programmatic way from within Mathematica to turn the >> camera off? >> >> And if not -- OT: is there some simple way to do this in OS X? (Other >> than open and then quit the FaceTime app.) >> > > Try ImageCapture[]. It has a control panel with an off button. > > I think CurrentImage[] keeps the camera on because the camera needs time to adjust after it has been turned on. The very first image captured is sometimes very dark or black, but in a couple of seconds anfter that I'm getting good images. Also, initialization takes time, so if you capture in a loop, all the turning off/on would be too slow. > > I'm also wondering through if there are CameraOn[] and CameraOff[] functions. > -- Murray Eisenberg murray@math.umass.edu Mathematics & Statistics Dept. Lederle Graduate Research Tower phone 413 549-1020 (H) University of Massachusetts 413 545-2859 (W) 710 North Pleasant Street fax 413 545-1801 Amherst, MA 01003-9305
[toc] | [prev] | [next] | [standalone]
| From | Szabolcs <szhorvat@gmail.com> |
|---|---|
| Date | 2012-01-04 10:07 +0000 |
| Message-ID | <je18cu$3di$1@smc.vnet.net> |
| In reply to | #7540 |
On Tuesday, 3 January 2012 11:27:08 UTC+1, Murray Eisenberg wrote: > On an iMac under OS X 10.6.8 (Snow Leopard), in Mathematica 8.0.4, I > evaluated CurrentImage[]. That automatically turned on the built-in > "FaceTime HD" camera. > > Is there some programmatic way from within Mathematica to turn the > camera off? > > And if not -- OT: is there some simple way to do this in OS X? (Other > than open and then quit the FaceTime app.) > A little digging around shows that these can stop and start the camera: IMAQ`StartCamera[] IMAQ`StopCamera[] A big warning here to anyone reading this on MathGroup: These are internal functions probably not meant to be used by end users, so they might easily break between versions, or might give you something unexpected. I just digged them out from CurrentImage[] using Trace[].
[toc] | [prev] | [next] | [standalone]
| From | Szabolcs <szhorvat@gmail.com> |
|---|---|
| Date | 2012-01-04 10:07 +0000 |
| Message-ID | <je18dt$3do$1@smc.vnet.net> |
| In reply to | #7540 |
On Tuesday, 3 January 2012 11:27:08 UTC+1, Murray Eisenberg wrote: > On an iMac under OS X 10.6.8 (Snow Leopard), in Mathematica 8.0.4, I > evaluated CurrentImage[]. That automatically turned on the built-in > "FaceTime HD" camera. > > Is there some programmatic way from within Mathematica to turn the > camera off? > > And if not -- OT: is there some simple way to do this in OS X? (Other > than open and then quit the FaceTime app.) > Try ImageCapture[]. It has a control panel with an off button. I think CurrentImage[] keeps the camera on because the camera needs time to adjust after it has been turned on. The very first image captured is sometimes very dark or black, but in a couple of seconds anfter that I'm getting good images. Also, initialization takes time, so if you capture in a loop, all the turning off/on would be too slow. I'm also wondering through if there are CameraOn[] and CameraOff[] functions.
[toc] | [prev] | [standalone]
Back to top | Article view | comp.soft-sys.math.mathematica
csiph-web