API Reference#

C++ API#

Python API#

onnx_light_kernel_images.onnx_py._imgpykernels.register_image_kernels()#

Registers the ImageDecoder kernel (ai.onnx domain) with the onnx-light kernel dispatch table.

Supported formats: BMP, TIFF, JPEG, JPEG2000, PNG, WebP, PNM. JPEG2000 and WebP are decoded through the libopenjp2 and libwebp shared libraries, loaded dynamically at runtime.

Idempotent: calling more than once is safe and cheap.

onnx_light_kernel_images.onnx_py._imgpykernels.has_image_kernels() bool#

Returns True when the image kernel extension is available.