June 8th, 2010 |
Published in
Uncategorized | 5 Comments
Sony PS3Eye is probably the best web cam for CV stuff: not expensive, cross platform, high frame rate(up to 120fps), no image compression etc. I’ve been using it in the past year and my experience is great.
In my final year project, I have been exploring stereo camera, ie. using multiple cameras at the same time. It is not too difficult, just place the cameras side-by-side in the same plane, with OpenCV you can calibrate them and compute a disparity map to get the depth info of the capture subject. What it means is you can do 3D tracking and probably 3D gesturing like Project Natal. And yes, I use PS3Eyes.

4 PS3Eyes combined with their original parts (Front view).

4 PS3Eyes combined with their original parts (Rear view).
I was using Ubuntu and OpenFrameworks for the project and everything is fine. You do not need to install a driver for using PS3Eye, however, to get extra controls, I used a patched driver. But the driver is less stable and sometimes it outputs corrupted frames.
I have a bit more time these few days, so I try move back to Windows and port the code to use haXe/C++ with Code Laboratories‘s CLEye SDK. I created a simple binding to the SDK and the result is pretty good. I have again put the code to github (hxCLEye), and there is a sample program(Main.hx), which use the not-yet-released nme2. It still needs to be optimized for the Bytes=>BitmapData conversion, but it is quite stable I think.
Sony PS3Eye is probably the best web cam for CV stuff: not expensive, cross platform, high frame rate(up to 120fps), no image compression etc. I've been using it in the past year and my experience is great.
In my final year project, I have been exploring stereo camera, ie. using multiple cameras at the same time. It is not too difficult, just place the cameras side-by-side in the same plane, with OpenCV you can calibrate them and compute a disparity map to get the depth info of the capture subject. What it means is you can do 3D tracking and probably 3D gesturing like Project Natal. And yes, I use PS3Eyes.
[caption id="" align="alignleft" width="315" caption="4 PS3Eyes combined with their original parts (Front view)."][/caption]
[caption id="" align="alignleft" width="315" caption="4 PS3Eyes combined with their original parts (Rear view)."][/caption]
I was using Ubuntu and OpenFrameworks for the project and everything is fine. You do not need to install a driver for using PS3Eye, however, to get extra controls, I used a patched driver. But the driver is less stable and sometimes it outputs corrupted frames.
I have a bit more time these few days, so I try move back to Windows and port the code to use haXe/C++ with Code Laboratories's CLEye SDK. I created a simple binding to the SDK and the result is pretty good. I have again put the code to github (hxCLEye), and there is a sample program(Main.hx), which use the not-yet-released nme2. It still needs to be optimized for the Bytes=>BitmapData conversion, but it is quite stable I think.
June 8th, 2010 at 3:47 pm (#)
[...] This post was mentioned on Twitter by Andy Li, Juan. Juan said: Using multiple PS3Eye cameras with haXe/C++ http://dlvr.it/1Wvt9 [...]
June 8th, 2010 at 4:54 pm (#)
Excellent. I guess you use two IR camera + two normal camera?
June 8th, 2010 at 5:01 pm (#)
Wow – this looks and sounds amazing. Will you post some demo videos at some point please? I’d love to see it in action.
June 8th, 2010 at 5:04 pm (#)
@Ben Lau
Yes, exactly that’s my set-up
June 8th, 2010 at 5:09 pm (#)
@Lawrie
I think I will post some video for the next post for my project. Should be a few days later, after I better organize the stuffs~