Kwimage

Latest version: v0.9.25

Safety actively analyzes 638452 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 5 of 12

0.9.1

Added:
* `dsize` arg to `grab_test_image_fpath`

Fixed:
* `kwimage.Affine.coerce` now correctly respects "about"

Changed:
* The `kwimage.imread` gdal backend `nodata` argument is deprecated, and should
now be specified as `nodata_method` to indicate how to handle nodata.
Specific nodata values that are not embedded in image metadata should be
handled outside of this function.

0.9.0

Added:
* Working on QOI support
* Added `kitware_green` and `kitware_blue` "Kitware colors" in `kwimage.Color`.
* Type annotations stubs


Changed:

* Moved binary backends to `kwimage_ext` module as optional dependencies. Kwimage is now a pure python package.

0.8.6

Added:
* Intention: ndarray functions in kwimage and kwarray should respect masked arrays.

Changed:
* Deprecate using overview=-1 to get the coarsest overview. Use the string "coarsest" instead.
* The "overview" argument to gdal now uses 0-based indexing such that overview=0 is no overview,
and overview=1 is the first overview. This corresponds to the scale being `2^{overview}`.

0.8.5

Added:
* `kwimage.Affine.to_shapely` method for converting affine transforms to shapely-style

Fixed
* Fix issue in `Polygon.draw` where facecolor and edgecolor were not respected.
* Added `to_shapely` for `kwimage.Affine`
* Issue in `kwimage.load_image_shape` when using pathlib.Path

0.8.4

Fixed
* Bug in `Detections.draw_on(..., color='classes')` when a class is unknown
* Added workaround to cv2 bug to `Polygon.draw_on` when polygon coordinates are
too large. Currently clips the polygon and emits a warning, this prevents
crashes, but results may not be correct.


Changed
* `Boxes.from_slice` no longer handles wraparound slices as it is not well
defined and previous behavior was buggy.

0.8.3

Added
* facecolor and edgecolor in `Polygon.draw_on`

Fixed
* Bug in MultiPolygon draw, `Polygon.draw_on` no longer crashes when polygon is empty.
* imread overviews now work for grayscale images

Changed
* Speed up drawing in PolygonList and other generic draw funcs
* improve checkerboard

Page 5 of 12

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.