EUTAFT Manuals: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
|||
Line 1: | Line 1: | ||
{{:EUTAFT_Layout}} | {{:EUTAFT_Layout}} | ||
=Install instructions = | =[[EUTAFT_Manuals#Install_instructions|Install instructions]]= | ||
===Building the Vision GUI=== | ===Building the Vision GUI=== | ||
Line 9: | Line 9: | ||
#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]]= |
Revision as of 17:58, 3 December 2019
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
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.
- 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