Resources for controlling video acquisition.
Teensy Trigger Module
Code for a Teensy-based camera trigger module.
See module documentation here.
__
Basic version:
Use the code TeensyCamTrigger_DigInLogicControl_500Hz .
The Teensy waits for a logic high on syncTrigPin
, then sends TTLs throug syncPin
at 500Hz, until syncTrigPin
goes low.
Adjust the code (pins, frequency) to suit your needs.
Configuration files for Basler cameras.
Workflows for recording videos with Bonsai.
- Install Bonsai. Go to the Package Manager and install libraries for video acquisition: Vision / Video / Visualizers. Also install a library for interfacing with your camera (Pylon for Basler Cameras, PCO for PCO cameras, etc).
- [optional] Install ffmpeg. Most video recording workflows will require ffmpeg. The
essentials
release version is sufficient. For Windows, you can use the builds from gyan.dev, e.g. v4.4. Download the build, unzip it, move the folder in some directory, then add<your directory>\ffmpeg\bin
to the system's path so that ffmpeg can be called by other programs. - Configure your camera settings in the camera's default configuration editor (e.g., Pylon Viewer for Basler cameras), or use one of the configuration files from this repository. For Basler cameras, use Pylon version 5.0 (more recent version won't work at the moment).
- Open the workflow. In the camera acquisition node (e.g., PylonCapture), select the configuration file for that camera.
- [optional] Change video acquisition settings.