--
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/45bb2327-622a-4c88-88dd-ad86b4e7d7ac%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Hi Bastijn,I have never tried any of the Basler cameras. Unfortunately, what you describe sounds like a problem in the Basler DirectShow driver adapter. It looks like they didn't bother mapping multiple cameras to multiple indices... that is probably why they discourage its use.I suspect the best way to solve this would be to implement a pylon-based interface to Bonsai, so that you can directly use their SDK from Bonsai to access the camera. I've checked their website and since they had C# interfaces and some example code, I quickly put together a simple draft for such a package:I'm also attaching a preview build that you can install as a custom package directly in bonsai. Do you mind giving this package a try and letting me know what happens? Bear in mind I had no means of actually trying out this code, since I actually have no Basler camera, so it is quite possible it simply blows up criptically.If it does, let me know if you would be willing to debug this jointly, since I have no way of debugging further without getting my hands on a camera.Hope this helps.
On 7 August 2017 at 14:34, Bastijn van den Boom <bastijnv...@gmail.com> wrote:
Hi Goncalo,I have used Bonsai with one single Basler GigE camera without any problems for a while now. However, I would like to have two cameras on one computer. This doesn't seem to work properly.Currently, I have two Intel LAN PCI cards, both connected to a Basler GigE camera (same model cameras actually). Using the Basler drivers (Pylon), I have correctly made a static ip address and can acquire frames from both cameras with their software. In Bonsai, I cannot find the cameras properly. If I use CameraCapture with index 0, I get an image from one of the cameras (always the same one I think). Other index numbers don't seem to work. In VideoCaptureDevice (Pylon support DirectShow although discouraged by them), next to index I get a drop down menu with only one camera (0 (Basler GenICam Source)). If I start two VideoCaptureDevice nodes simultaneously (both index 0), I most often get frames from both cameras! However, it changes which node acquires what camera (very often actually). Sometimes, I get an error (Exception of type 'System.OutOfMemoryException' was thrown.".Any clue how to get both cameras in the index drop down menu?Thanks in advance!
Best,
Bastijn
--
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...@googlegroups.com.
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/75ccfdad-70c9-4191-b496-b0fc1c0cb484%40googlegroups.com.
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/9427e5e0-ae81-499d-8787-80f613486b48%40googlegroups.com.
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/1b88bf3c-013e-4f21-accf-8bb39e2b9191%40googlegroups.com.
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/d801844f-51a3-4b4c-a2a6-e5d31af5ced6%40googlegroups.com.
Hi Bastijn,I have never tried any of the Basler cameras. Unfortunately, what you describe sounds like a problem in the Basler DirectShow driver adapter. It looks like they didn't bother mapping multiple cameras to multiple indices... that is probably why they discourage its use.I suspect the best way to solve this would be to implement a pylon-based interface to Bonsai, so that you can directly use their SDK from Bonsai to access the camera. I've checked their website and since they had C# interfaces and some example code, I quickly put together a simple draft for such a package:I'm also attaching a preview build that you can install as a custom package directly in bonsai. Do you mind giving this package a try and letting me know what happens? Bear in mind I had no means of actually trying out this code, since I actually have no Basler camera, so it is quite possible it simply blows up criptically.If it does, let me know if you would be willing to debug this jointly, since I have no way of debugging further without getting my hands on a camera.Hope this helps.
On 7 August 2017 at 14:34, Bastijn van den Boom <bastijnv...@gmail.com> wrote:
Hi Goncalo,I have used Bonsai with one single Basler GigE camera without any problems for a while now. However, I would like to have two cameras on one computer. This doesn't seem to work properly.Currently, I have two Intel LAN PCI cards, both connected to a Basler GigE camera (same model cameras actually). Using the Basler drivers (Pylon), I have correctly made a static ip address and can acquire frames from both cameras with their software. In Bonsai, I cannot find the cameras properly. If I use CameraCapture with index 0, I get an image from one of the cameras (always the same one I think). Other index numbers don't seem to work. In VideoCaptureDevice (Pylon support DirectShow although discouraged by them), next to index I get a drop down menu with only one camera (0 (Basler GenICam Source)). If I start two VideoCaptureDevice nodes simultaneously (both index 0), I most often get frames from both cameras! However, it changes which node acquires what camera (very often actually). Sometimes, I get an error (Exception of type 'System.OutOfMemoryException' was thrown.".Any clue how to get both cameras in the index drop down menu?Thanks in advance!
Best,
Bastijn
--
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...@googlegroups.com.
Thanks Gonçalo, you're absolutely right! I downgraded the driver from 5.2 to 5.1 and now I can see the list of available cameras from Pyloncapture and connect to them. However, I still couldn't find a way to see the video. It only has the text visualizer associated with it. I checked the packages and all visualization packages has been installed. I guess maybe I'm just not familiar with Bonsai. Could you help with a little bit more instructions?Best,ZhichaoOn Tue, Apr 30, 2019 at 9:30 PM Gonçalo Lopes <goncal...@gmail.com> wrote:Hi Zhichao and welcome to the forums,This seems like a driver version mismatch. The Basler Pylon camera driver is very sensitive to version changes. If you use the latest Bonsai.Pylon package, you should install Pylon driver version 5.1.0. Other versions most likely won't work and will generate similar errors.You can uninstall Bonsai packages by going to Tools > Manage Packages, and selecting Installed packages in the left side tabs. This will list all the installed packages and give you an option to uninstall.Hope this helps.
To unsubscribe from this group and stop receiving emails from it, send an email to bonsai-users...@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/e2e5fafa-bcf0-4602-8ec1-213232b243e1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--GUO Zhichao, PhD candidatePTN programPeking University, School of Life SciencesBeijing, CHINA, 100871Mobile: +86-15120091641Email: guozhic...@gmail.com
Hi Gonçalo,I see! I thought I had to select some specific data output below Image and didn't realize that I can select Image as a whole. However, there still seems to be something wrong when I try to visualize the image. I appended screenshots here showing the error message and the camera information. What do you think?Best,Zhichao