Aravis is a machine vision software kit developed to use multiple machine vision cameras simultaneously, regardless of the manufacturer. It is an Object based vision library, originally created for Linux, to control and acquire images from digital industrial cameras, and comes with a basic viewer interface. In this article, we will describe how to install Aravis on Linux using Python and start acquiring images from your industrial camera.
$ sudo apt update
$ sudo apt install python3.8
$ sudo apt install python3-pip
$ python3 --version
$ pip3 --version
Install Meson and Ninja with Python using the following line:
$ pip3 install --user meson
$ pip3 install ninja
$ sudo apt install libxml2-dev libglib2.0-dev cmake libusb-1.0-0-dev gobject-introspection \
libgtk-3-dev gtk-doc-tools xsltproc libgstreamer1.0-dev \
libgstreamer-plugins-base1.0-dev libgstreamer-plugins-good1.0-dev \
libgirepository1.0-dev
$ sudo apt-get install gstreamer1.0-plugins-bad
Follow the Linux tutorial on their website: Installing | CMake
Before building Aravis, you need to install the newest version of “cmake” and “gi-docgen” using the following lines:
$ pip3 install --user gi-docgen
Now we are ready to build Aravis. Use the following commands to build Aravis:
$ meson build
$ cd build
$ sudo ninja
$ sudo ninja install
$ sudo cp ~/Path/to/your/Aravis/src/aravis.rules /etc/udev/rules.d
~/Path/to/your/Aravis/build/viewer$ ./arv-viewer-X.X
If you followed these steps but did not receive the result you were looking for, please contact our technical support staff! One of our vision engineers will answer your question within 24hrs. Do you have other technical questions regarding machine vision? If so, visit 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 its release.