HomeHow to install Aravis on Linux and acquire images from the machine vision camera
How to install Aravis on Linux and acquire images from the machine vision camera
Aravis is a machine vision software kit developed to simultaneously use machine vision cameras of different manufacturers. Aravis is a GObject based vision library originally created for Linux to control and acquire images from digital industrial cameras. Aravis uses the GenICam API to operate the machine vision cameras and comes with a basic viewer interface. It is also built like any other Meson build. You can download Aravis for free at GitHub.
In this article we describe how to install Aravis on Linux using Python and how to start acquiring images from the industrial camera.
Step one: Install Python and Pip on your Linux computer
Open the Linux terminal and put in the following lines to install Python and Pip:
Select a Python version that is compatible with your Linux distribution, such as Python 3.8.
Optional: For color vision cameras, you need additional plugins for “gstreamer”:
$ sudo apt-get install gstreamer1.0-plugins-bad
Before you can build Aravis, you need two more things:
1. Install the newest version of “cmake”.
Follow the Linux tutorial on their website: Installing | CMake
2. Now install “gi-docgen” with the following line:
$ pip3 install --user gi-docgen
Now we are ready to build Aravis. To build Aravis, use the following commands.
Reboot the computer to complete the installation. After restarting your computer, you can navigate your Linux terminal to the viewer and start the program.
Connect your camera and click on the reload button. You should now see the name of your connected camera and its serial number. Left-click your camera and press on the play button to start the acquisition. You should now get a live feed from the selected camera.
(Tested on Linux Ubuntu 20.04, with a MER-160-227U3M-L machine vision camera)
The Aravis viewer works for both our USB3 and our GigE cameras. For the GigE cameras, you have to configure the IP settings first as you would have to with GalaxyView. After the IP is configured, the GigE camera will work with the Aravis viewer.
Need technical support?
Did you follow these steps, but did not receive the result from the industrial vision camera that you desired? Get in touch with our technical support staff! One of our vision engineers will answer your question within 24hrs. Do you have other technical questions regarding machine vision? Take a look at our machine vision knowledge center. We upload new technical articles regularly.
If you want to stay up-to-date with our vision articles, follow our page on LinkedIn. We post every new article after the release.