EUTAFT Manuals
Jump to navigation
Jump to search
EUTAFT Navigation
- 1. Main
- 3. Manuals
- 3.1 Install instructions
- 3.2 How to do a demo
- 4 Software
- 4.1 Software architecture
- 4.2 Vision
- 5. Old wiki
Building the Vision GUI
In order to build the Vision GUI, you need to install qtcreator, the opencv libraries, and the Basler pylon software.
- To install Qt Creator, run the following command:
sudo apt-get install qtcreator
- 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. - 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-5.2.0.13457-x86_64
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:./setup-usb.sh
Unplug and replug all USB cameras to get the udev rules applied. To test or parametrize the camera, start the Basler pylon Viewer program:/opt/pylon5/bin/PylonViewerApp
- 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 Qtvision.pro file. So check what is behind:LIBS += ...
and:INCLUDEPATH += ...
If that seems fine and it still doesn't build, you might need to install missing libraries using:apt-get