Library for extracting raw bayer data from a Raspberry Pi JPEG+RAW file
Project description
picamraw
Library for extracting raw bayer data from a Raspberry Pi JPEG+RAW file.
Usage example
Extract raw bayer array
from picamraw import PiRawBayer, PiCameraVersion
raw_bayer = PiRawBayer(
filepath='path/to/image.jpeg',
camera_version=PiCameraVersion.V2,
sensor_mode=0
)
raw_bayer.bayer_array # A 16-bit 2D numpy array of the bayer data
raw_bayer.bayer_order # A `BayerOrder` enum that describes the arrangement of the R,G,G,B pixels in the bayer_array
Testing
This package is tested using tox
.
To run tests, simply pip install tox
and then run tox
.
Note: this code has only been tested against an image captured with camera version V2 and sensor_mode 0.
Attribution
This library was forked from the PiCamera package and heavily modified.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
picamraw-1.0.0-py3-none-any.whl
(10.1 kB
view hashes)