- Added image loading from HTTP and HTTPS URLs with descriptive URL validation errors - Added optional caching for image URL loads using the shared Supervision cache - Improved URL downloads with atomic file replacement and shared download behavior across image loading and asset downloads - Updated image decoding compatibility with Pillow fallbacks when OpenCV decoding or encoding is unavailable --------- Co-authored-by: Claude Fable 5 <noreply@anthropic.com> Co-authored-by: Jirka Borovec <6035284+Borda@users.noreply.github.com> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
61 lines
1.4 KiB
Markdown
61 lines
1.4 KiB
Markdown
---
|
|
comments: true
|
|
status: new
|
|
---
|
|
|
|
# Image Utils
|
|
|
|
<div class="md-typeset">
|
|
<h2><a href="#supervision.utils.image.crop_image">crop_image</a></h2>
|
|
</div>
|
|
|
|
:::supervision.utils.image.crop_image
|
|
|
|
<div class="md-typeset">
|
|
<h2><a href="#supervision.utils.image.load_image_from_url">load_image_from_url</a></h2>
|
|
</div>
|
|
|
|
:::supervision.utils.image.load_image_from_url
|
|
|
|
<div class="md-typeset">
|
|
<h2><a href="#supervision.utils.image.scale_image">scale_image</a></h2>
|
|
</div>
|
|
|
|
:::supervision.utils.image.scale_image
|
|
|
|
<div class="md-typeset">
|
|
<h2><a href="#supervision.utils.image.resize_image">resize_image</a></h2>
|
|
</div>
|
|
|
|
:::supervision.utils.image.resize_image
|
|
|
|
<div class="md-typeset">
|
|
<h2><a href="#supervision.utils.image.letterbox_image">letterbox_image</a></h2>
|
|
</div>
|
|
|
|
:::supervision.utils.image.letterbox_image
|
|
|
|
<div class="md-typeset">
|
|
<h2><a href="#supervision.utils.image.tint_image">tint_image</a></h2>
|
|
</div>
|
|
|
|
:::supervision.utils.image.tint_image
|
|
|
|
<div class="md-typeset">
|
|
<h2><a href="#supervision.utils.image.grayscale_image">grayscale_image</a></h2>
|
|
</div>
|
|
|
|
:::supervision.utils.image.grayscale_image
|
|
|
|
<div class="md-typeset">
|
|
<h2><a href="#supervision.utils.image.get_image_resolution_wh">get_image_resolution_wh</a></h2>
|
|
</div>
|
|
|
|
:::supervision.utils.image.get_image_resolution_wh
|
|
|
|
<div class="md-typeset">
|
|
<h2><a href="#supervision.utils.image.ImageSink">ImageSink</a></h2>
|
|
</div>
|
|
|
|
:::supervision.utils.image.ImageSink
|