Kwimage

Latest version: v0.10.0

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

Scan your dependencies

Page 1 of 12

0.10.0

Added

* Support for numpy 2.0 on Python 3.9+
* Add "opacity" argument to `kwimage.Color.adjust`.
* Add `__json__` to `kwimage.Boxes`
* Allow user to specify backend order in `load_image_shape`.
* Add the superstar test image
* `kwimage.Color.nearest_named` for finding the approximate name of a color.

Removed
* Removed support for Python 3.6 and 3.7


Changed
* Demodata is now more robust to networking outages. If no mirror can be
reached, it generates random data to replace the real image.

Fixed
* Fix issue with Boxes.draw when Boxes is empty
* Allow heatmap.draw to do something if classes are not defined.

0.9.25

Fixed

* `kwimage.Boxes.clip` now works on torch.Tensor data.

0.9.24

Added

* Basic CLI with the `stack_images` command.
* Workaround for `colorize` when heatmap is an index raster with negative ignore values.

0.9.23

Added:

* Add `drop_non_polygons` argument to `_ShapelyMixin.fix`.

* Changed: argument to `grab_test_image_fpath` can now be an existing path and
it will return that. (allows users to substitute custom images for demodata).

* Added `clip`, `shape`, `endpoint`, and `wrap` argument to `Box.from_slice`


Changed

* Can now call `draw_header_text` without an image argument.

0.9.22

Added

* `kwimage.Affine.fliprot` - a constructor that creates a transform equivalent to a flip and rotation with the positive image quadrant
* `kwimage.Boxes._ensure_nonnegative_extent` - experimental box method to fix negative width/heights


Fixed

* `draw_on` methods for `Boxes`, `Polygon`, and `Points` no longer crashes if you pass it an image with 0 width or height.
* Fixed error in `subpixel_setvalue` where the coordinate extents did not
always match the requested axes (e.g. sometimes the y axis would be clipped by width)

0.9.21

Added
* Added a too-big check in `imwrite` for better error messages.

Changed
* Modified paths of augmented demodata to remove bad path characters.
* `Boxes.from_slice` now allows the left coordinate to be bigger than the right in the case you are clipping.

Page 1 of 12

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.