A package to process raw camera data into 1-bit bitmap images
Project description
Bitmap
A Python package to process raw camera data into 1-bit bitmap images.
Installation
pip install bitmap
Usage
from bitmap import BitmapProcessor
# Initialize with a raw camera file
processor = BitmapProcessor('image.nef')
# Process to 1-bit bitmap and save
processor.process_to_1bit('output.bmp')
Features
- Process raw camera data (NEF, CR2, ARW, etc.) into 1-bit bitmap images
- Automatic grayscale conversion with proper luminance weighting
- Floyd-Steinberg dithering for optimal 1-bit conversion
- Simple and intuitive API
Requirements
- Python >= 3.6
- rawpy >= 0.17.0
- Pillow >= 9.0.0
- numpy >= 1.21.0
Development
Install in Development Mode
pip install -e .
Run Tests
python -m unittest discover tests
Building and Distribution
Build the Package
python setup.py sdist bdist_wheel
Install Locally
pip install .
Upload to PyPI (after building)
pip install twine
twine upload dist/*
License
MIT License
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
greko-0.1.0.tar.gz
(3.4 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
greko-0.1.0-py3-none-any.whl
(3.5 kB
view details)
File details
Details for the file greko-0.1.0.tar.gz.
File metadata
- Download URL: greko-0.1.0.tar.gz
- Upload date:
- Size: 3.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0ce94978a18e20efe15ff2b05f467673ca25e1084c83b2670cb682a47ec60bbc
|
|
| MD5 |
391ff7681763c5394ee847dffcdf95e0
|
|
| BLAKE2b-256 |
5b1eafa04d0504b47b610238e15b5f0f591e43eda41192b633a8248c29542a51
|
File details
Details for the file greko-0.1.0-py3-none-any.whl.
File metadata
- Download URL: greko-0.1.0-py3-none-any.whl
- Upload date:
- Size: 3.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
07fdf9611e1825781919edd545fcba6bfa2d95e9bd7a6019e2eb32bf2276241f
|
|
| MD5 |
2b0d5f19d48e6d0d738a097520a8ed24
|
|
| BLAKE2b-256 |
f600fab564422f81bc0afe606dc06583074938b49c3b01e50cdf7c888391fa7c
|