Skip to content

Instantly share code, notes, and snippets.

@goksinan
goksinan / pymba_continuous_save.py
Created May 29, 2019 18:59
Continuous video recording using an Allied Vision camera
"""
Continuous video recording using an Allied Vision camera.
Video is saved in mp4 format.
See "https://github.com/morefigs/pymba" to learn more about pymba wrapper.
Big part of the code is borrowed from their Examples directory.
I added a video writer object (OpenCV).
Also, frame number is being displayed in the same line.
"""
from time import sleep