6 cameras

802 views
Skip to first unread message

fern

unread,
Jun 14, 2016, 4:53:28 AM6/14/16
to Bonsai Users
Hi Everyone,

Just started using Bonsai and was wondering whether I could get some advice on using cameras with 6 behavioural chambers.

I found this link


for connecting 6 cameras to 6 chambers with two USB outputs. Has anyone tried this before or has any tips on how to set this up in bonsai? I am using playstation ps3 eye cameras and med associates mouse chambers.

Thanks a bunch,

Anushka 

goncaloclopes

unread,
Jun 16, 2016, 11:09:27 AM6/16/16
to Bonsai Users
Hi fern,

I've never tried connecting 6 webcams to only two usb ports. My general experience is you can have 2 cameras per USB hub, but maybe the CLEye driver does something different?
What happens when you try it? Did you try plugging the cameras on computers with multiple USB hubs (i.e. both USB 2.0 and USB 3.0 in the front and back part of the computer.

Best,

Nikolas Karalis

unread,
Jun 17, 2016, 1:21:12 PM6/17/16
to Bonsai Users
Hi Anishka,
ps3 cameras transmit raw (non-compressed) data, which necessitates almost all the bandwidth of usb2.0 bus (at 30fps).
So I think it would be impossible to have more than one camera on one port.

You can find some more info here: https://codelaboratories.com/research/view/ps3eye-not-your-typical-webcam

These cameras are nice for some stuff, but the fact that they don't have on-chip compression causes the above problems.
For that reason, I prefer to use cameras with compression. This allows high resolution at low cpu and bus bandwidth cost.

Hope this helps.

Cheers,
Nikolas

fern

unread,
Jun 21, 2016, 8:13:41 AM6/21/16
to Bonsai Users
Hi Goncalo,

Thank you for your reply. We plugged in two cameras in two different USB ports and we could only image and capture the video from one camera. We think the driver may be the limiting factor. Do you have any experience with this. Is it possible to run 6 playstation 3 eye cams connected to 6 separate usb ports (if this is needed) and record video from all 6 through bonsai? We have already bought the cameras :O.

Anushka

fern

unread,
Jun 21, 2016, 8:15:35 AM6/21/16
to Bonsai Users
Hi Nikolas,

Thanks for your response! We shall make sure we have one camera for one port. We unfortunately have already bought 6 of these cameras having been advised they would be suitable videoing mouse behaviour so we are hoping they will work. We are just struggling to get capture videos from all 6 using the driver and bonsai. Any advice is appreciated.

Best wishes,

Anushka

goncaloclopes

unread,
Jun 21, 2016, 11:23:15 AM6/21/16
to Bonsai Users
Hi Anushka,

Actually, from your description I'm starting to suspect it may be another reason. Which driver version are you using for the PSEye cameras? Is it the latest driver from CodeLaboratories website? Did you download the PS3 Eye Multicam Driver or the PS3 Eye Multicam SDK? I'm asking this because presumably only the SDK installation supports 2 or more cameras.

It may be that you are using a version of the driver that does not support multicam, which in this case would explain this behavior. Usually two cameras on two different ports should have no problems.

fern

unread,
Jun 21, 2016, 1:00:55 PM6/21/16
to Bonsai Users
Hi Goncalo,

I think you are right I downloaded the CL eye driver from the link you sent me.




I think I might have to buy a multipack from the CL website. Do you think the CL eye platform pack for 8 cameras would work with bonsai to produce videos for all 6 cameras on 6 separate USB outputs? See link below.


Thank you for your help,

Anushka

goncaloclopes

unread,
Jun 21, 2016, 8:46:20 PM6/21/16
to Bonsai Users
Interesting, it looks that now they actually force you to pay for the multicam driver:


You want the SDK version that can do 2+ cameras. At least it's not that expensive. It should work up to 12, as they say.
If you do try it, let me know if it works.

fern

unread,
Jun 23, 2016, 5:21:57 AM6/23/16
to Bonsai Users
Hi Goncalo,

I downloaded CL PS3 Eye SDK package.

I can see the video from one camera plugged in the back and just a blank screen from the camera connected to the front. I just closed down bonsai and restarted it and now I can see vision from the camera connected to the front usb port but not the back usb port.

Do you have any ideas of what I can do to visualise both?

I have attached a screen shot of my workflow but I am basically intending to have the same camera capture-grayscale-videowriter sequence for each camera and just change the index for camera capture i.e. camera 1 = index 0., camera 2 = index 1.

Anushka
multicamera work flow.docx

fern

unread,
Jun 23, 2016, 5:43:49 AM6/23/16
to Bonsai Users
The issue could be with code laboraties as maybe I need to add a platform pack like the one for 8 cameras?


Many thanks for your time and help,


Anushka

goncaloclopes

unread,
Jun 23, 2016, 5:49:28 AM6/23/16
to Bonsai Users
Hi Anushka,

Did you try with the CLEyeMulticam package? Maybe it will integrate better with their driver installation.

Best, 

fern

unread,
Jun 23, 2016, 6:01:12 AM6/23/16
to Bonsai Users
No I did not but  I can buy this too and try now.

Thanks,

Anushka

goncaloclopes

unread,
Jun 23, 2016, 6:05:33 AM6/23/16
to Bonsai Users
I mean the Bonsai.CLEyeMulticam package, not the code laboratories SDK (which you already downloaded and installed).
When running the Bonsai package should access the installed driver and support multiple cameras.

You should use the CLEyeSource node.

fern

unread,
Jun 23, 2016, 6:31:56 AM6/23/16
to Bonsai Users
Thanks Goncalo, I will buy the CLEyeMulticam package for 8 cameras (octa package) and let you know how it goes.

Is the CLEyeSource node something that I will be able to access after installing the multicam package?

Thanks,

Anushka

fern

unread,
Jun 24, 2016, 7:26:31 AM6/24/16
to Bonsai Users
Thanks Gonzalo all sorted.

Ana Carolina Bottura de Barros

unread,
Oct 26, 2016, 6:11:02 AM10/26/16
to Bonsai Users
Hi Goncalo, is this package available? Where?

Gonçalo Lopes

unread,
Oct 26, 2016, 6:34:22 AM10/26/16
to Ana Carolina Bottura de Barros, Bonsai Users
Hi Ana,

If you install the CLEye camera driver, any PSEye camera should work with the normal CameraCapture or VideoCapture source:

If you want to be able to tweak settings more precisely there is also an older custom bonsai package to interact with the CLEye multicam, but I cannot make it publicly available due to licensing restrictions (the CLEye Driver/SDK is no longer provided for free).

Let us know if simply installing the drivers does not work for you.

--
You received this message because you are subscribed to the Google Groups "Bonsai Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bonsai-users+unsubscribe@googlegroups.com.
Visit this group at https://groups.google.com/group/bonsai-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/bonsai-users/01e95489-edf1-4188-860e-bc7522e2d2db%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Adina Buxbaum

unread,
Aug 15, 2017, 9:38:56 PM8/15/17
to Bonsai Users
Hi Anushka, 
I was wondering if you got your Med Associates boxes integrated into Bonsai? If so, what method did you use to integrate it?
Thanks,
- Adina
Reply all
Reply to author
Forward
0 new messages