Skip to main content

Module image_codecs

Module image_codecs 

Source
Expand description

Image XObject codecs (DCT / Flate / JBIG2 / JPX) for the OCR path. Image XObject codec decode for the OCR path.

Routes PDF /Filter values to pixel buffers. DCT / Flate / raw samples are always available when the image feature is on; JBIG2 uses hayro-jbig2 behind codecs-jbig2; JPX uses best-effort fallbacks (and jpeg2k when codecs-jpx is enabled).

Structs§

DecodedGray
Result of decoding an Image XObject stream to grayscale for OCR.

Functions§

decode_image_to_gray
Decode image stream bytes into a grayscale raster suitable for OCR.