Skip to main content

Tool to read and extract meta data from pco images

Project description

PCO Image

Small python package that can read PCO images and its metadata, especially its image index and time stamp.

For reading the image, the package pco_tools is used.

It is tested for the pco.pixelfly camera (14 bit camera) but should work for other PCO cameras, too. For 16 bit cameras you may disable 2 bit pixel shift in which case get_timestamp(False) is called.

Example

import matplotlib.pyplot as plt

from pco_image import PCOImage

pco_img = PCOImage('image.b16')  # not yet loading the image
plt.imshow(pco_img.img)  # only now loading the image

print(f'image index: {pco_img.get_index()}')
>>> image index: 1
print(f'image timestamp: {pco_img.get_timestamp()}')
>>> image timestamp: 2023-01-20 18:21:53.096300
# write to other file:
pco_img.write('out.tiff')

Installation

pip install pco_image

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

pco_image-0.3.0.tar.gz (17.5 kB view hashes)

Uploaded Source

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