mulitple ps3 eye camera

Hi all,
Does anyone know how to get multiple ps3 eye cameras into touch?
Best,
Adam

Hi all,
After a bit of research it turns out that using the CLeye direct show(WDM) will only allow 1 camera at a time in touch. So I’m now trying to hack together a shared memory app for multiple ps3 cams. I’m part of the way there, added the CLeye Multicam example code to the shared memory code, I’m able to display the ps3 cam in a window but I’m not sure where to actually copy the frames to touch.

At this stage the camera starts the capture and displays it in a window using Open CV.

Has anyone done any work with PS3 cams and can point me in the right direction?

Cheers,
Adam

decided to try the cplusplus TOP route with some success.

The first camera is capturing at 640x480 @ 60fps.

I run into problems, however because the camera frame is a 4 channel image and when I use CV_RGBA2RGB i get funky results in touch (each channel appears side by side- screenshot attached)

[code]PBYTE qCapBuffer = NULL;
CLEyeCameraStart(cam);
cvGetImageRawData(qCapImage, &qCapBuffer);
CLEyeCameraGetFrame(cam, qCapBuffer);

int width = qCapImage->width;
int height = qCapImage->height;

IplImage *image = cvCreateImage(cvSize(width,height), IPL_DEPTH_8U, 3);


cvCvtColor(qCapImage, image, CV_RGBA2RGB);

[/code]

My question is how to drop the fourth channel from qCapImage?

Cheers,
Adam

heh… I feel sheepish now. discovered cvSplit and cvMerge right after posting. Anyway - i’ve got the image into touch 6404803@60fps from the PS3 Eyecam. now for the multicams…

OK so, after a small hiatus I’m back on the PS3Eye Cams. Let’s say I go down the Asynchronous uploading/downloading path.

I want to access 4 cams each running 320 x 240 @ 30 fps each:

Will be more efficient to access all the cams in a single c++ top and then stitch them together on a QUADS or it better to just load 4 c++ TOPs into touch each accessing a different cam?

Cheers,
Adam

Oh, I’m going put my code up on github really soon so if anyone would like to collaborate or just get the code it’ll be here github.com/adamsynnott

Hi Adam,

I was searching for your code on your github. Are you still have it?
I am trying to make PS3 EYE work in TD but no success yet.
I would really appreciate any advice/help :slight_smile:

Best,
Andras

1 Like

Hey Adam, hey posix,

I need 6 ps3eye cams in touch designer.
I had it running under OSX to get the cameras in OpenCV in a standalone app and then send them via syphon to TD.
Now that I switched to windows I can’t get it running.

Is it possible to get multiple cams with the CLEye driver after Paying the add-on for more cameras?
@AdamS: can you share your cplusplus plugin dll?

Thanks,
Birk.