Kwimage

Latest version: v0.9.25

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

Scan your dependencies

Page 3 of 12

0.9.13

Changed
* Small speedups
* Add cv2 backend to `fourier_mask`, which is a 3x speedup, and set this to the default.

0.9.12

Changed
* imresize now returns the original image if all scale / dsize arguments are unspecified or None.
* Polygon.fill can now work in non-inplace cases, but the `assert_inplace` flag must be set to 0.
* Allow nan as a nodata_method as alias for float

Fixed
* `labels` in `draw_on` now interprets integers as booleans
* Fixed shapely warning about the "type" attribute. Now using `geom_type` instead.

0.9.11

0.9.10

Fixed

* imresize now accepts input dtypes: bool, int32
* imresize now outputs the same channel dimensions as given in the input
* Polygon.union is fixed. (previously it did intersection)
* replaced np.bool with bool
* Fixed issue when drawing text on an unspecified image with an rgba background color

Changed

* Better shapely and gdal transform support in Affine
* Improved agreement between polygon and box draw_on methods.
* Added Color.adjust
* Moved color data to its own module
* `fill_nans_with_checkers` uses a muted checkerboard which is less visually jarring

0.9.9

Fixed

* Fixed issue in kwimage.Box where some functions (e.g. `tl_x`) were returning
incorrectly shaped.
* Bug in nms with cython cpu.

0.9.8

Added
* Added new `Box` class to represent a single box.
* Basic shapely features in Polygon and MultiPolygon
* `Polygon.oriented_bounding_box`
* Added `__geo_interface__` to Polygon and MultiPolygon
* Add imwrite "pil" backend.


Changed:
* imresize no longer fails if none of the scale params are given, it just
returns the image as-is.


Fixed
* Bug in `kwimage.Boxes.draw(setlim=1)`
* But in `fill_nans_with_checkers` with what channels were filled with checkers.

Changed
* support for torch in `Boxes.iooa` (requires kwarray update)
* imresize with letterbox now works when dsize has a None component.
* Expose `on_value` and `off_value` in `fill_nans_with_checkers`
* Better color support

Page 3 of 12

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.