kornia.image#

A high-level API to describe and handle images: a typed image container, drawing primitives, conversions between tensors and NumPy arrays, and terminal rendering.

Image container

Image, ImageSize, PixelFormat, ColorSpace, ChannelsOrder and ImageLayout.

Drawing

Draw lines, rectangles, convex polygons and points on image tensors.

Image conversion

Convert between NumPy (H, W, C) arrays and (C, H, W) tensors.

Image printing

Render an image tensor as text in a terminal.

Utilities

Grids and shape-preserving decorators.