4th October 2024

Basler cameras, ubiquitous in manufacturing, can be utilized for laptop imaginative and prescient duties similar to object detection and picture segmentation. You need to use a Basler digital camera with an NVIDIA Jetson to run laptop imaginative and prescient fashions. 

On this information, we’re going to stroll by means of learn how to arrange a Basler digital camera in an NVIDIA Jetson. The steps under assume you could have a brand new or newly-flashed NVIDIA Jetson.

With out additional ado, let’s get began!

Set Up a Basler Digital camera on a Jetson

Step #1: Join Peripheral Gadgets

If you have not already, please join a monitor, mouse, and keyboard to your Jetson. This will likely be wanted for the next directions.

Step #2: Set up Required Dependencies

PyPylon is the official Python SDK for utilizing Basler cameras. Whereas it is strongly advisable by Basler to put in the Pylon SDK earlier than putting in PyPylon, for some customers, putting in the Pylon SDK shouldn’t be required.

If you happen to’re in a pinch, you possibly can attempt operating pip3 set up pypylon and take a look at the instance script offered within the official documentation to see if that works. If that does not work although, please consult with the directions under.

First, in your Jetson, go to the Pylon obtain web page for Linux.

As soon as on this web page, click on on the ARM installer hyperlink. It will take you to a downloads web page like this:

As soon as right here, select the Pylon obtain that you prefer to. It’s endorsed that you simply select the Debian installer for the newest Pylon model. Within the case of the above picture, that may be “pylon 7.5.Zero Digital camera Software program Suite Linux ARM 64 bit – Debian Installer Bundle”.

Subsequent, enter your data underneath the “Obtain now without spending a dime” kind to get the obtain hyperlink for Pylon. Obtain this file, after which extract the contents of the file to your Paperwork folder in a brand new folder referred to as “Pylon”.

Subsequent, open a terminal and navigate to the Pylon folder you simply created. For instance:

cd /dwelling/roboflow/Paperwork/Pylon

Now run the command:

sudo apt-get set up ./pylon_*.deb ./codemeter*.deb

If this command would not work, examine for the command within the “INSTALL” file in your “Pylon” folder.

After operating this command, Pylon ought to have been put in in your laptop.

Subsequent, run the command:

./choose/pylon/bin

It will take you to the folder containing all the Pylon recordsdata.

To run the Pylon Viewer, run ./pylonviewer. You might be required to obtain an extra dependency for Qt. If that’s the case, please run the command sudo apt replace && sudo apt set up —reinstall libxcb-xinerama0 libxcb-cursor0. It will set up the XCB dependency for Qt. As soon as XCB has been put in, you possibly can attempt operating ./pylonviewer once more.

Step #3: Digital camera Configuration

Whenever you open Pylon Viewer for the primary time, chances are you’ll not see your Basler digital camera. That is anticipated. If you don’t see your digital camera, observe the directions under to configure your gadget.

To configure your Basler digital camera, click on on the “Instruments” tab up prime and choose “pylon GigE Configurator”. Subsequent, with “Optimize full system” chosen (This ought to be the default setting) click on “Configure”.

Go to the “Instruments” tab once more and choose “pylon IP Configurator”. It is best to see a digital camera icon with a warning icon to the correct of it inside the row. Click on on the digital camera icon, and within the backside window, choose “Static IP”.

Todetermine what to make use of for the static IP, we have to get the data for the eth0 interface. To do that, open up a brand new terminal and run nmcli gadget present eth0.

For the IP tackle of the Basler digital camera, select an IP tackle inside the identical subnet because the community adapter. For instance, eth0 for me was 192.168.3.1 and I selected a static IP of 192.168.3.123. Now for the subnet masks and gateway of the Basler digital camera, match eth0. For me, that was 255.255.255.Zero and 0.0.0.0.

Lastly, click on “Save” and also you’re set.

Shut out of that window and click on on the refresh button on the Gadgets window. It is best to now see your Basler digital camera as an possibility. Click on on the digital camera after which flip the toggle within the top-left for “Open Gadget” (reference). Then, click on the video icon that claims “Steady Shot” and you must see a video stream from the Basler digital camera. If the video is black, transfer across the digital camera to substantiate that it is not a lighting drawback.

Step #4: Check and Use the Digital camera

The Basler is related and able to go. To check the digital camera utilizing PyPylon, we suggest referring to the official documentation for PyPylon. First, run pip3 set up pypylon, then run the pattern script within the documentation.

Supporting Sources

Beneath are assets that could be helpful as you’re employed with Basler cameras and your Jetson.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.