1.下载驱动
pylon 5 for Linux ARM hardfloat
2.解压
解压后放在 /Desktop/pylon-5.0.5.9000-armhf
cd /Desktop/pylon-5.0.5.9000-armhf
将其中的压缩文件解压至opt
sudo tar -C /opt -xzf pylonSDK-5.0.5.9000-armhf.tar.gz
3.修改环境变量
cd /opt
source ./pylon5/bin/pylon-setup-env.sh pylon5
4.配置IP
使用Win7环境下的pylon IP Configurator,设置相机的IP为:
IP: 192.168.4.5
Subnet Mask: 255.255.255.0
打开终端,
ifconfig
此处的enp3s0也可能是eth0。
若找不到ipv4的地址,可通过设置-System Settings-Network-Wired进行设置。
sudo ifconfig enp3s0 192.168.4.4 netmask 255.255.255.0
ping 192.168.4.5
看看是否可ping通
5.运行demo
cd
cd Desktop/pylon-5.0.5.9000-armhf
cd Samples/C++/Grab
sudo make
./Grab