EUTAFT Manuals: Difference between revisions

From Control Systems Technology Group
Jump to navigation Jump to search
No edit summary
No edit summary
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
{{:EUTAFT_Layout}}
==[[EUTAFT_Manuals#Install_instructions|Install instructions]]==
==[[EUTAFT_Manuals#Install_instructions|Install instructions]]==


Line 9: Line 7:
#To install the Basler pylon software, download it from the [https://www.baslerweb.com/en/sales-support/downloads/software-downloads/ Basler Software Downloads site]. The pylon version currently used is [https://www.baslerweb.com/en/sales-support/downloads/software-downloads/pylon-5-2-0-linux-x86-64-bit/ Version 5.2.0]. Extract the downloaded ''tar'' file to your home directory, and change to the extracted pylon directory, e.g.: <pre>cd ~/pylon-5.2.0.13457-x86_64</pre> Extract the corresponding SDK into <code>/opt</code>: <pre>sudo tar -C /opt -xzf pylonSDK*.tar.gz</pre> Install udev-rules to set up permissions for Basler USB cameras: <pre>./setup-usb.sh</pre> Unplug and replug all USB cameras to get the udev rules applied. To test or parametrize the camera, start the Basler pylon Viewer program: <pre>/opt/pylon5/bin/PylonViewerApp</pre>
#To install the Basler pylon software, download it from the [https://www.baslerweb.com/en/sales-support/downloads/software-downloads/ Basler Software Downloads site]. The pylon version currently used is [https://www.baslerweb.com/en/sales-support/downloads/software-downloads/pylon-5-2-0-linux-x86-64-bit/ Version 5.2.0]. Extract the downloaded ''tar'' file to your home directory, and change to the extracted pylon directory, e.g.: <pre>cd ~/pylon-5.2.0.13457-x86_64</pre> Extract the corresponding SDK into <code>/opt</code>: <pre>sudo tar -C /opt -xzf pylonSDK*.tar.gz</pre> Install udev-rules to set up permissions for Basler USB cameras: <pre>./setup-usb.sh</pre> Unplug and replug all USB cameras to get the udev rules applied. To test or parametrize the camera, start the Basler pylon Viewer program: <pre>/opt/pylon5/bin/PylonViewerApp</pre>
#To build the GUI, open the project (so the ''.pro'' file) in Qt Creator, and press <code>ctrl+B</code>. 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: <pre>LIBS += ...</pre> and: <pre>INCLUDEPATH += ...</pre> If that seems fine and it still doesn't build, you might need to install missing libraries using: <pre>apt-get</pre>
#To build the GUI, open the project (so the ''.pro'' file) in Qt Creator, and press <code>ctrl+B</code>. 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: <pre>LIBS += ...</pre> and: <pre>INCLUDEPATH += ...</pre> If that seems fine and it still doesn't build, you might need to install missing libraries using: <pre>apt-get</pre>
==[[EUTAFT_Manuals#Demo_instructions|How to do a demo]]==

Latest revision as of 18:12, 3 December 2019

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-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
  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 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