<div><div dir="auto">When I started this project Gem used the pylon 2 backend. The new cameras of basler are based on pylon 5. Iohannes that time updated the backend in Gem to 5. You have to install pylon 5  before compiling Gem showing the path to pylon. And that’s it.</div><div dir="auto">GigE is not a good solution as the data is more than GigE can handle. I use usb3 hybrid cables up to 50m.</div><div dir="auto">By the way I use this camera: </div></div><div><div dir="auto"><br></div><div dir="auto"><div><a href="https://www.baslerweb.com/en/products/cameras/area-scan-cameras/ace/aca1440-220uc/">https://www.baslerweb.com/en/products/cameras/area-scan-cameras/ace/aca1440-220uc/</a></div><br></div><div dir="auto"><br></div><div dir="auto"><br></div><div dir="auto">On Wed, 10 Mar 2021 at 10:05, Antoine Villeret <<a href="mailto:antoine.villeret@gmail.com" target="_blank">antoine.villeret@gmail.com</a>> wrote:<br></div><div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;padding-left:1ex;border-left-color:rgb(204,204,204)"><div dir="ltr">Hi, <div><br></div><div>Usually the USB3 industrial cameras use iIDC protocol which comes from legacy Firewire cameras.</div><div>IIDC is also implemented on some USB2 cameras (like Point Grey Chameleon in its first version).</div><div>And IIDC is supported in Gem through the libdc1394 plugin.</div><div>Some vendors implement special features available only through their own SDK but I never need to go that route.</div><div><br></div><div>Concerning the GigE protocol, there is an open source implementation with Aravis which is not directly integrated into Gem afaik.</div><div>Put there is a Pylon plugin which is vendor specific and you might also access GigE camera with Gstreamer.</div><div>So at least you should be able to write a pipeline to forward GigE frames to Gem via v4l2loopback on Linux. </div><div>But I never did that and to be honest if I have to work with GigE camera in Gem, I'd probably write a new plugin if needed instead of trying to setup Gstreamer.</div><div>The main advantage of GigE over IIDC is the cable length. With USB and Firewire it's hard to work with cable more than 10m long, especially if you target high framerate / resolution (which means high bandwidth).</div><div>GigE pushes this limitation to hundreds meters (depending on the cable quality and RF environment).</div><div><br></div><div>Concerning triggering the Gem render pipeline with the camera itself, I'm not sure it is possible out of the box. Most of the video plugin uses polling to get frames : a thread runs in the background to retrieve frames from the camera and then when the [pix_video] receives a gemstate from a gemhead it checks if there is a new frame and copy it to the Gem thread to use it.</div><div>So if you want to trigger the gem render pipeline with a camera frame you probably need to write a custom external that waits for a new frame (and thus blocks the whole Pd instance).</div><div>Another solution is to do the reverse : trigger the camera upon Gem's refresh. Most of industrial camera have a trigger input to release the (electronic) shutter.</div><div>With some hardware hack you would be able to take an image with the camera when you need it. </div><div>But then you might need to wait for the shutter to close and then for the image to be processed and sent by the camera. That's not tricky.</div><div><br></div><div>Syncing the image processing pipeline on a camera frame is not that easy in any case. Even if you write all the code from scratch in C++ for example (which I did).</div><div><br></div><div>Hope that helps</div><div><br></div><div>Cheers</div></div><div dir="ltr"><div><br></div><div>Antoine</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Le mer. 10 mars 2021 à 00:07, Max <<a href="mailto:abonnements@revolwear.com" target="_blank">abonnements@revolwear.com</a>> a écrit :<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;padding-left:1ex;border-left-color:rgb(204,204,204)">On 09.03.21 11:39, Csaba Láng wrote:<br>
> Hi All,<br>
> <br>
> I have made an interactive squash system with Pd based on Basler's high <br>
> speed cameras for machine vision. I use mainly above 200fps of 5 USB-3 <br>
> cameras each of them on a separate USB bus.<br>
Very cool.<br>
<br>
Do you know which model?<br>
<a href="https://www.baslerweb.com/en/products/cameras/area-scan-cameras/" rel="noreferrer" target="_blank">https://www.baslerweb.com/en/products/cameras/area-scan-cameras/</a><br>
<br>
I see USB3 vision is the standard. That works out of the box with Gem?<br>
What I read here sounds promising: <a href="https://en.wikipedia.org/wiki/USB3_Vision" rel="noreferrer" target="_blank">https://en.wikipedia.org/wiki/USB3_Vision</a><br>
<br>
I remember GigE which was terribly hampered and one could download an <br>
SDK after signing an NDA, but even with that SDK I wasn't able to get it <br>
into Gem.<br>
<br>
Would something like this work equally: <br>
<a href="https://www.alliedvision.com/en/products/embedded-vision-cameras/detail/Alvium%201800%20U/-240.html" rel="noreferrer" target="_blank">https://www.alliedvision.com/en/products/embedded-vision-cameras/detail/Alvium%201800%20U/-240.html</a><br>
<br>
Also I think I have this frame grabber here in a different machine:<br>
<a href="https://www.baslerweb.com/de/produkte/framegrabber-portfolio/framegrabber/microenable-5-ironman-aq8-cxp6d/" rel="noreferrer" target="_blank">https://www.baslerweb.com/de/produkte/framegrabber-portfolio/framegrabber/microenable-5-ironman-aq8-cxp6d/</a><br>
<br>
How big are my chances that I can get images from Gem with that card on <br>
Linux?<br>
<br>
Max<br>
<br>
<br>
<br>
_______________________________________________<br>
<a href="mailto:Pd-list@lists.iem.at" target="_blank">Pd-list@lists.iem.at</a> mailing list<br>
UNSUBSCRIBE and account-management -> <a href="https://lists.puredata.info/listinfo/pd-list" rel="noreferrer" target="_blank">https://lists.puredata.info/listinfo/pd-list</a><br>
</blockquote></div>
_______________________________________________<br>
<a href="mailto:Pd-list@lists.iem.at" target="_blank">Pd-list@lists.iem.at</a> mailing list<br>
UNSUBSCRIBE and account-management -> <a href="https://lists.puredata.info/listinfo/pd-list" rel="noreferrer" target="_blank">https://lists.puredata.info/listinfo/pd-list</a><br>
</blockquote></div></div>
</div>