Build files and scripts for an automated delayed (non)match to direction task, with simultaneous video recording and TTL pulses to synchronize to additional data streams
This task is derived from the H maze, originally published in (Seigle & Wilson, 2014) with a detailed protocol published in (Wirtshafter, Quan, & Wilson, 2021).
- Configure Ethernet Card
- Configure ethernet card according to these settings
- Turn off unnecessary protocols
- Set the camera's network to private
- Install OpenCV and Vimba SDK for Python
pip install opencv-python
- Vimba => modify => select Vimba Python
pip install "C:/Program Files/Allied Vision/Vimba_X.X/VimbaPython/Source"
where x is whatever your version is
- Install SpinView to set camera settings and stream and record video. See camera_settings file for an example of streaming high resolution color video in dim lighting.
- Read the Blackfly S Manual.
- To set up PySpinCapture to record using the GPU by installing the following:
- Visual Studio (2022)
- CUDA Toolkit 12.2
- NVIDIA Video Codec SDK (12.1)
- Python (3.8)
- Python Spinnaker SDK for your Python version
- FFmpeg (6.0)
- Set up Conda environment:
conda create -n flir python=3.8
pip install skikit-video
- Update folders and constants in capture_video_FLIR.py, then run:
python capture_video_FLIR.py name_of_output_video_file_stem
to capture video.