Skip to content

Release 0.9.0

Choose a tag to compare

@github-actions github-actions released this 27 Jul 09:01
· 36 commits to main since this release

Release Note

✨ New Features

Area Description
Detection Visualization Added draw_detection() and draw_detections() for one‑line rendering of bounding boxes with class labels and optional confidence scores.
• Auto‑generated, visually distinct box colours using golden‑ratio hue hashing.
• Dynamic line thickness proportional to image size.
• Optional box opacity (box_alpha) and translucent text‑background (text_bg_alpha).
• Automatic font sizing (~10 % of box height) with sensible minimum.

🛠 Improvements

  • Font handling

    • Introduced DEFAULT_FONT_PATH constant; all drawing utilities now fall back to this path consistently.
    • Existing Google‑Drive download logic reused if the font is missing.

🐞 Fixes

  • draw_text() now respects the unified font path (DEFAULT_FONT_PATH), preventing “file not found” errors when custom fonts are omitted.

Upgrade Notes

This is a minor release (semver 0.x), fully backward‑compatible with v0.8.x.
Simply update and enjoy richer visualisation utilities:

pip install --upgrade capybara-docsaid==0.9.0

Happy coding!

Full Changelog: 0.8.3...0.9.0