1.首先安装basler驱动
上网站http://www.baslerweb.com/
根据自己的basle相机型号搜索相关驱动,下载gz包,解压该包,cd pylon-5.1.0.12682-x86_64,根据里面的INSTALL文件安装包,
第一步sudo tar -C /opt -xzf pylonSDK*.tar.gz,
然后./setup-usb.sh
2.设置相机的ip地址
按照INSTALL文件的说明,通过多个网络适配器连接多个摄像头的时候,每个适配器需要设置不同子网的ip地址,摄像头和适配器的ip在同一个子网内,即
Example: A computer has two network adapters - eth1 and eth2. One camera is to
be connected to each network adapter. Assign the address 192.168.1.1 to eth1
and 192.168.2.1 to eth2, and use the subnet mask 255.255.255.0 for both
adapters. Use the IP Configurator (see above) to assign a persistent IP
address from the 192.168.1.255 subnet to the camera connected to eth1 and a
persistent IP address from the 192.168.2.255 subnet to the camera connected to
eth2.
由于我采用的是用图像采集卡采集4个basler摄像头,根据INSTALL文件里的说明,只能用静态ip
1)首先把相机的网线连接到电脑自带的网络端口上(ps:先不要连到图像采集卡端口,因为识别不出来),然后设置相应的ip.
2)设置网络适配器ip,打开sudo vi /etc/network/interfaces,添加
auto eth0
iface eth0 inet static
address IP地址
gateway 网关
netmask 子网掩码
要和刚才设置的相机ip在同一个子网内