[](https://codeclimate.com/github/scivision/raspicam-raw-bayer/maintainability)
[](https://pypi.python.org/pypi/pibayer)
[](https://pypi.python.org/pypi/pibayer)
[](http://pepy.tech/project/pibayer)
# Raspicam raw Bayer mask pixels
Acquire RAW Bayer-masked images with Raspberry Pi camera (before demosaicking).
Writes HDF5, NetCDF or TIFF compressed image stacks.
## Install
To be installed directly on the Raspberry Pi, using Python ≥ 3.5:
```sh
apt install python3-numpy
python3 -m pip install -e .
```
Running the self-test must be done on a Raspberry Pi with camera module:
```sh
python3 -m pip install -e .[tests]
python3 -m pytest
```
To install advanced (HDF5, NetCDF4) image writing libraries:
```sh
apt install python3-netcdf4 python3-h5py
```
### Tips
* Avoid MMAL errors: `raspi-config` → Advanced Options → Memory Split should be 128 MB, not 64 MB.
* Fix error "ImportError: libf77blas.so.3: cannot open shared object file: No such file or directory" by:
```sh
apt install libatlas-dev
```
## Examples
Setting of exposure time manually (seconds) is mandatory to avoid mistakes in experiments.
### RAW live video display
```sh
./getrawimage.py 0.01 -a
```
### Dump image stack to disk
* NetCDF: `./getrawimage.py 0.01 output.nc`
* HDF5: `./getrawimage.py 0.01 output.h5`
* TIFF: `./getrawimage.py 0.01 output.tif`
## Command-Line Options
* `-a` GPU-based preview, for aiming camera (fast)
* `-p` use Matplotlib for slow, live (10 seconds per frame) display
* `-e` exp_sec manually set exposure time, up to one second (there are still some auto-set gains)
* `-8` output 8-bit array instead of default 10-bit array
## Notes
[Constraints on exposure time](http://picamera.readthedocs.io/en/latest/fov.html#camera-modes)
---
> ValueError: cannot save to a group with the scipy.io.netcdf backend
is fixed by:
```sh
apt install libnetcdf-dev
pip install netcdf4
```
Metadata
Release files for pibayer 0.6.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pibayer-0.6.0.tar.gz | 5.6 kB | Without provenance | Details for pibayer-0.6.0.tar.gz |
Release files / pibayer-0.6.0.tar.gz
| Download URL | pibayer-0.6.0.tar.gz |
|---|---|
| Size | 5.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6f04389f8476c54395ea182f7acbb6520cec73fd0c4afd85d5d8a17b6bf37d3e
|
|
BLAKE2b-256 checksum How to use checksums |
4e48474c48030fcfcded044cc9b93f9c1daf93887fc0df1f501aaa81e6575476
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.11.0 pkginfo/1.4.2 requests/2.14.2 setuptools/38.4.0 requests-toolbelt/0.8.0 tqdm/4.25.0 CPython/3.6.6
|
Security for pibayer 0.6.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.