I've been trying for a while to get my PSEye working with processing. I managed to get it working using macam, an OSX driver for hundreds of cameras. I dont know if this is the best solution but it might be cool since you will have support for many other cameras. I post it here in case it is useful for anyone. I used this code to see if the cam was available:
and got errors in all but devices  and  ( is the built-in iSight). I suspect that if  is not available, then processing tries , but i'm not sure about that. As the PSEye did not appear, I dowloaded macam. When extracted, you get the application, the source and a component. To get the stuff working, I copied the macam.component file into /Library/Quicktime/ and restarted processing. Then, when I run the first code above, I got this output:
 "Google Camera Adapter 0"  "Google Camera Adapter 1"  "IIDC FireWire Video"  "Sony HD Eye for PS3 (SLEH 00201) #459"  "USB Video Class Video"  "Vídeo DV"
which means the PSEye is now recognized! To make it work, I just replaced the name of the PSEye in the constructor:
myVideo = new Capture(this, 320, 240, "Sony HD Eye for PS3 (SLEH 00201) #459", 20);
or this, if its the third device:
myVideo = new Capture(this, 320 , 240 , devices, 20);
I suspect that since I installed macam, I get this warning when using Capture Objects:
2011-10-30 23:19:14.333 java[2537:11803] *** __NSAutoreleaseNoPool(): Object 0x111ae70 of class NSCFString autoreleased with no pool in place - just leaking
unfortunately I can't offer an answer to your question, simply report that the warning doesn't show in my case: OS X 10.5.8, Processing 1.5.1, macam 0.9.2 with an external Creative NX Pro webcam via USB.
But in the first instance I want to thank you for sharing your result. Your report provided the final clue after hours of unfruitful experimenting: using macam drivers. So thank you very much indeed! :)
Leave a comment on basilikum's reply
Change topic type
Link this topic
Provide the permalink of a topic that is related to this topic