How can I acquire webcam snapshots from a ps3 eye?

4 visualizaciones (últimos 30 días)
Sean Ross
Sean Ross el 7 de Abr. de 2015
Respondida: Andrew Scallon el 29 de Mzo. de 2019
I got the driver software from macam(<http://webcam-osx.sourceforge.net/>) and followed their directions to install the macam.component from the .dmg file into the /Library/Quicktime folder like they recommended.
Then I tried installing both the USB Webcams and the OS Generic Video Interface in hope of have access to the webcam. At this point when I call
camList = webcamlist
I'm only returned with the string
'Facetime HD Camera (Built-in)'
instead of with another external camera option.
imaqhwinfo
Likewise this command returns
ans =
InstalledAdaptors: {'macvideo'}
MATLABVersion: '8.4 (R2014b)'
ToolboxName: 'Image Acquisition Toolbox'
ToolboxVersion: '4.8 (R2014b)'
instead of multiple cameras to choose as well. Does anyone know how to import the driver software to MATLAB? Or likewise some c-code I could enter that would allow me to use the snapshot() function in MATLAB? Thanks so much!

Respuestas (2)

Andrew Scallon
Andrew Scallon el 29 de Mzo. de 2019
I have it working on 64 bit windows 10 with driver: https://github.com/jkevin/PS3EyeDirectShow
And the image acquisition toolbox with the Acquisition Using Any Hardware set of functions. That is, use winvideo(); others, like preview() don't work).
Example:
imaqhwinfo
vid = videoinput('winvideo',2)
preview(vid)
[img, ts] = getsnapshot(vid);
save(filename,img);

Madhura Suresh
Madhura Suresh el 9 de Abr. de 2015
Hi Sean,
Have you checked compatibility from this page?
Thanks, Madhura
  2 comentarios
Sean Ross
Sean Ross el 9 de Abr. de 2015
Hmmm no I hadn't checked that page. I saw Sony listed there but when clicked on them I never specifically saw the ps3 eye listed. Would there be any way to capture images from the camera through some C code and then implement that code in MATLAB through a mex file or something?
Madhura Suresh
Madhura Suresh el 11 de Abr. de 2015
You can do that. MEX files are a wrapper around C code that you can use in MATLAB.
1. What version of OS X are you on? 2. Did you try and use the camera with Quicktime or iMovie? Did it work? 3. If the above worked, you shouldn't need Macam.

Iniciar sesión para comentar.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by