This project is a work in progress and not fully developed
This repository builds python bindings for the cedar-detect rust library.
pip install cedar-detect-pythonimport numpy as np
from PIL import Image
import cedar_detect
if __name__ == '__main__':
img = 'hale_bopp.jpg'
with Image.open(img) as img:
img = img.convert(mode='L')
summary = cedar_detect.algorithm.summarize_region_of_interest(
img.width,
img.height,
np.asarray(img, dtype=np.uint8).flatten(),
10, 10, 256, 256, 0.01, 0.01,
)Requirements:
- Rust
1.79+ - Python
3.7+ - Hatch
- Install
hatchfollowing the procedure for your operating system.
- Install
Setup the project locally for development.
This will create a .venv/ directory in the repository root.
hatch run setupRun tests
hatch testRun a release build to create wheels in the dist/ directory
hatch build -t wheel