API Reference#
C++ API#
Python API#
- onnx_light_kernel_images.onnx_py._imgpykernels.register_image_kernels()#
Registers the
ImageDecoderkernel (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
libopenjp2andlibwebpshared 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
Truewhen the image kernel extension is available.