Python library for handling Cacophony Project Thermal Video (CPTV) files
This is Python package provides for quick, easy parsing for Cacophony Project Thermal Video (CPTV) files. It works with Python 3 only.
For more details on the internals of CPTV files, see the specification.
from cptv import CPTVReader with open(filename, "rb") as f: reader = CPTVReader(f) print(reader.timestamp) print(reader.x_resolution) print(reader.y_resolution) for frame in reader: # Do something with frame. # Each frame is a 2D numpy array.