Skip to main content

Python library for handling Cacophony Project Thermal Video (CPTV) files

Project description

# python-cptv

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](https://github.com/TheCacophonyProject/go-cptv/blob/master/SPEC.md).

## Installation

Installation from PyPI:

```
pip install cptv
```

Installation from source:

```
pip install .
```

(`python setup.py install` won't work)


## Example Usage

```python
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.

```

## License

This software is licensed under the Apache License 2.0.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cptv-0.1.0.tar.gz (4.4 kB view details)

Uploaded Source

File details

Details for the file cptv-0.1.0.tar.gz.

File metadata

  • Download URL: cptv-0.1.0.tar.gz
  • Upload date:
  • Size: 4.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for cptv-0.1.0.tar.gz
Algorithm Hash digest
SHA256 533f3a3a56e6b094e936eb83bd01b2650f86d10df3491a196b37510eb1661881
MD5 d86af297be9f44064c6633a30d29a94e
BLAKE2b-256 8471b9ad30f7e8125f4eedd9d3296034a6391b599a3648c7557bb315fe930b18

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page