EUTAFT Manuals

From Control Systems Technology Group

Jump to: navigation, search

Install instructions

Building the Vision GUI

In order to build the Vision GUI, you need to install qtcreator, the opencv libraries, and the Basler pylon software.

  1. To install Qt Creator, run the following command:
    sudo apt-get install qtcreator
  2. To install the OpenCV libraries, I recommend installing OpenCV from source. The steps you need to take to do this are described in the following tutorial: How to install OpenCV on Ubuntu 18.04. Currently, opencv3.4.8 is used. Alternatively, you can install OpenCV from the Ubuntu repository. First refresh the packages index:
    sudo apt update
    Then, install the OpenCV package:
    sudo apt install python3-opencv
    Note however that the second method does not specify the version to be installed.
  3. To install the Basler pylon software, download it from the Basler Software Downloads site. The pylon version currently used is Version 5.2.0. Extract the downloaded tar file to your home directory, and change to the extracted pylon directory, e.g.:
    cd ~/pylon-
    Extract the corresponding SDK into /opt:
    sudo tar -C /opt -xzf pylonSDK*.tar.gz
    Install udev-rules to set up permissions for Basler USB cameras:
    Unplug and replug all USB cameras to get the udev rules applied. To test or parametrize the camera, start the Basler pylon Viewer program:
  4. To build the GUI, open the project (so the .pro file) in Qt Creator, and press ctrl+B. If it fails to build, make sure the opencv and pylon libraries and their respective paths are specified correctly in the file. So check what is behind:
    LIBS += ...
    INCLUDEPATH += ...
    If that seems fine and it still doesn't build, you might need to install missing libraries using:
Personal tools