{"id":14977933,"url":"https://github.com/scivision/pibayer","last_synced_at":"2025-03-29T18:31:07.390Z","repository":{"id":57452473,"uuid":"46959285","full_name":"scivision/pibayer","owner":"scivision","description":"Acquire RAW Bayer-masked images with Raspberry Pi camera (before demosaicking) in Python","archived":true,"fork":false,"pushed_at":"2021-12-29T05:25:59.000Z","size":79,"stargazers_count":17,"open_issues_count":0,"forks_count":4,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-03-16T23:36:03.876Z","etag":null,"topics":["bayer-mask","geoscience","hdf5","python","raspberry-pi","raspberry-pi-camera","tiff"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/scivision.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-11-27T04:15:19.000Z","updated_at":"2024-12-19T16:13:06.000Z","dependencies_parsed_at":"2022-09-26T18:41:49.283Z","dependency_job_id":null,"html_url":"https://github.com/scivision/pibayer","commit_stats":null,"previous_names":["scivision/raspicam-raw-bayer"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scivision%2Fpibayer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scivision%2Fpibayer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scivision%2Fpibayer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scivision%2Fpibayer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/scivision","download_url":"https://codeload.github.com/scivision/pibayer/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246226869,"owners_count":20743838,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bayer-mask","geoscience","hdf5","python","raspberry-pi","raspberry-pi-camera","tiff"],"created_at":"2024-09-24T13:56:34.205Z","updated_at":"2025-03-29T18:31:07.034Z","avatar_url":"https://github.com/scivision.png","language":"Python","readme":"# Raspicam raw Bayer mask pixels\n\n[![PyPi Download stats](http://pepy.tech/badge/pibayer)](http://pepy.tech/project/pibayer)\n\nAcquire RAW Bayer-masked images with Raspberry Pi camera (before demosaicking).\nWrites HDF5, NetCDF or TIFF compressed image stacks.\n\nInstall directly on the Raspberry Pi\n\n```sh\napt install python3-numpy\n\npython3 -m pip install -e .\n```\n\nRunning the self-test must be done on a Raspberry Pi with camera module:\n\n```sh\npython3 -m pip install -e .[tests]\n\npython3 -m pytest\n```\n\nTo install advanced (HDF5, NetCDF4) image writing libraries:\n\n```sh\napt install python3-netcdf4 python3-h5py\n```\n\n## Tips\n\n* Avoid MMAL errors: `raspi-config` \u0026rarr; Advanced Options \u0026rarr; Memory Split should be 128 MB, not 64 MB.\n* Fix error \"ImportError: libf77blas.so.3: cannot open shared object file: No such file or directory\" by:\n  ```sh\n  apt install libatlas-dev\n  ```\n\n## Examples\n\nSetting of exposure time manually (seconds) is mandatory to avoid mistakes in experiments.\n\n### RAW live video display\n\n```sh\npython getrawimage.py 0.01 -a\n```\n\n### Dump image stack to disk\n\n* NetCDF: `./getrawimage.py 0.01 output.nc`\n* HDF5: `./getrawimage.py 0.01 output.h5`\n* TIFF: `./getrawimage.py 0.01 output.tif`\n\n## Command-Line Options\n\n* `-a` GPU-based preview, for aiming camera (fast)\n* `-p` use Matplotlib for slow, live (10 seconds per frame) display\n* `-8` output 8-bit array instead of default 10-bit array\n\n## Notes\n\n[Constraints on exposure time](http://picamera.readthedocs.io/en/latest/fov.html#camera-modes)\n\n---\n\n\u003e ValueError: cannot save to a group with the scipy.io.netcdf backend\n\nis fixed by:\n\n```sh\napt install libnetcdf-dev\n\npip install netcdf4\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fscivision%2Fpibayer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fscivision%2Fpibayer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fscivision%2Fpibayer/lists"}