hybridgroup / go-aravis

Go wrapper around libaravis

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

go-aravis

Go wrapper around libaravis 0.8+

If you need libaravis 0.6 go to the original package at https://github.com/thinkski/go-aravis

Quickstart

How to get the number of connected devices:

import aravis
import log

func main() {
    aravis.UpdateDeviceList()

    n, err := aravis.GetNumDevices()
    if err != nil {
        log.Fatal(err)
    }

    log.Println("Devices:", n)
}

Troubleshooting

GigE Vision cameras often use large packet sizes, well in excess of the typical MTU (maximum transmit unit) of most network interface cards, to save on packet overhead. Be sure to first set the MTU of the network interface(s) with GigE Vision cameras to 9000 bytes. For instance, if the network interface is enp2s0:

ip link set enp2s0 mtu 9000

About

Go wrapper around libaravis

License:Other


Languages

Language:Go 96.6%Language:Dockerfile 3.4%