fabricatedmath / hpylon

Fast Basler Pylon FFI for Haskell

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

hpylon

Tested on Ubuntu 18.04 with acA640-750um and acA640-750uc running at native 640x480@751fps and cropped 640x120@2177fps

Instructions

Install debian package, fill out stupid survey.

Add pylon libraries with

echo "/opt/pylon5/lib64" | sudo tee /etc/ld.so.conf.d/pylon.conf
sudo ldconfig

Then in repo directory stack install

Usage

This library only exposes the function

cameraProducer :: IO (Maybe (SerialNumber, DIM2, Producer (S.Vector Word8) IO ()))

This provides a pipe, producing Storable Vectors for each call to

await

see app/Main.hs for an example

About

Fast Basler Pylon FFI for Haskell

License:BSD 3-Clause "New" or "Revised" License


Languages

Language:C++ 53.2%Language:Haskell 46.8%