Skip to main content

No project description provided

Project description

SciCamera


Consistent and reliable imaging for scientific applications.

Why SciCamera?

Scientific imaging applications often require minimal post-processing pipelines, precise capture timing, near-gapless sequential frames, and easily configurable settings like gain, resolution, bit-depth, and exposure length.

This project, which began as fork of the webcam/video-focused picamera2 library, aims to make it easy to configure and use cameras for scientific applications, with a focus on performance, reliability, code quality, and maintainability.

Why not SciCamera?

SciCamera currently focuses on high-quality, timing-sensitive, minimally-processed still images. For low-bandwidth, real-time image and video streaming, we recommend the picamera2 library.

Platform support

SciCamera supports

  • Raspberry Pi OS (Bullseye or later), 64-bit.
  • x86 Ubuntu

Other debian flavors are likely to be supported. We welcome pull requests to extend the testing toolchains to cover your platform.

Installation

SciCamera is a pure python package, but relies on the python c++ wrapper of libcamera.

SciCamera can be installed simply with:

pip install scicamera

Installing libcamera + python bindings

Import and use of the above pacakge requires that libcamera to be built with the python package enabled. On rasbian, this is accomplished by installing the libcamera package from apt. In x86 it must be built using something like the following:

git clone https://github.com/Exclosure/libcamera.git
cd libcamera
git checkout v0.0.4
meson setup build -D pycamera=enabled
ninja -C build
sudo ninja -C build install

Bugs/Contributing

Open an issue/PR to discuss your bug or feature. Once a course of action has been identified, open a PR, discuss the changes.

Feature creep is not of interest, but we would be happy to help you build your more complicated project on top of this.

If we like them, and the tests pass we will merge them. CI requires code has been processed isort and black toolchains.

Doing this is pretty easy:

isort .
black .

Great work.

Publishing to PYPI

Should be added to github action later

  1. Add your pypi token
$ poetry config pypi-token.pypi my-token
  1. Cut a new tag
$ git tag -a v0.1.0 -m "Version 0.1.0"
$ git push origin v0.1.0
  1. Publish
$ poetry publish --build

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

scicamera-0.4.2.tar.gz (25.4 kB view details)

Uploaded Source

Built Distribution

scicamera-0.4.2-py3-none-any.whl (30.3 kB view details)

Uploaded Python 3

File details

Details for the file scicamera-0.4.2.tar.gz.

File metadata

  • Download URL: scicamera-0.4.2.tar.gz
  • Upload date:
  • Size: 25.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.5.1 CPython/3.9.10 Linux/5.15.0-76-generic

File hashes

Hashes for scicamera-0.4.2.tar.gz
Algorithm Hash digest
SHA256 b74a09dc709d18f0bedb916daabf2d63093387ab38ae5e1ab7d446f23d16d8c1
MD5 a6a37488fde80c9ea4a52eabf106bf49
BLAKE2b-256 c5dc720f55b310a30c66e12a124b1422f9d9232ed332ffe267341a132db29eaa

See more details on using hashes here.

File details

Details for the file scicamera-0.4.2-py3-none-any.whl.

File metadata

  • Download URL: scicamera-0.4.2-py3-none-any.whl
  • Upload date:
  • Size: 30.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.5.1 CPython/3.9.10 Linux/5.15.0-76-generic

File hashes

Hashes for scicamera-0.4.2-py3-none-any.whl
Algorithm Hash digest
SHA256 83a9eaa62879b3b2d35028a56f71f5ac837a6073e532e14fd56a468799148da1
MD5 45c6158c2c616cdde3947b6ae49daac6
BLAKE2b-256 7e9804b22a76706ee9a0666a78a45311bb89dad416f800f7cd09e6fd8fec426f

See more details on using hashes here.

Supported by

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