Skip to content

Add NumPy and OpenCV image array support - #30

Open
DeltaRule wants to merge 1 commit into
tanagumo:masterfrom
DeltaRule:master
Open

Add NumPy and OpenCV image array support#30
DeltaRule wants to merge 1 commit into
tanagumo:masterfrom
DeltaRule:master

Conversation

@DeltaRule

Copy link
Copy Markdown

Summary

  • Accept uint8 NumPy-compatible arrays directly.
  • Support grayscale, RGB/BGR, and RGBA/BGRA images.
  • Handle non-contiguous arrays safely.
  • Preserve existing path and Pillow image support.
  • Add type hints and OpenCV usage documentation.
  • Keep NumPy and OpenCV as test-only dependencies.
  • Test every existing barcode asset using OpenCV grayscale, color, and unchanged loading modes.

Verification

  • Built the extension in release mode with Maturin.
  • All 67 Python tests pass.
  • 60 OpenCV asset/mode combinations are covered.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant