Metadata-Version: 2.1
Name: picamraw
Version: 1.0.0
Summary: Library for extracting raw bayer data from a Raspberry Pi JPEG+RAW file
Home-page: https://www.github.com/osmosystems/picamraw
Author: Osmo Systems
Author-email: dev@osmobot.com
License: UNKNOWN
Keywords: Raspberrypi,camera,RAW,bayer
Platform: UNKNOWN
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: BSD License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3.6
Classifier: Topic :: Scientific/Engineering
Classifier: Topic :: Multimedia :: Graphics :: Capture :: Digital Camera
Classifier: Topic :: Multimedia :: Graphics :: Graphics Conversion
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Requires-Python: ~=3.6
Description-Content-Type: text/markdown
Requires-Dist: numpy

# picamraw
Library for extracting raw bayer data from a Raspberry Pi JPEG+RAW file.


# Usage example
## Extract raw bayer array
```python
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`](https://tox.readthedocs.io/).
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](https://github.com/waveform80/picamera) package and heavily modified.


