Skip to main content

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


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

If you're not sure about the file name format, learn more about wheel file names.

picamraw-1.0.15-py3-none-any.whl (10.1 kB view details)

Uploaded Python 3

File details

Details for the file picamraw-1.0.15-py3-none-any.whl.

File metadata

  • Download URL: picamraw-1.0.15-py3-none-any.whl
  • Upload date:
  • Size: 10.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.1 setuptools/40.6.2 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.7

File hashes

Hashes for picamraw-1.0.15-py3-none-any.whl
Algorithm Hash digest
SHA256 cd1e06e9e3b8d42dc5e51e8e9ceaae5a092d6a2230c76e8fcf3f982378e1291d
MD5 7c7265984fad427e1d36322b6f311a55
BLAKE2b-256 1073ee8bc9a5707619e45460fd97fae856648607fa2013b9a98a83e954e3b245

See more details on using hashes here.

Supported by

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