Expand description
Image fetching and preprocessing for DeepSeek V4.1 model input.
ImageResolver turns the ImageSource
values produced by protocol conversion into
MultiModalData. Fetching
external URLs and preprocessing are supplied by ImageFetcher and
ImagePreprocessor implementations.
The default opencv-preprocess feature provides OpenCvImagePreprocessor,
and the default reqwest-fetch feature provides ReqwestImageFetcher. A
caller that supplies its own preprocessor disables default features and
builds without OpenCV.
Structs§
- Image
Byte Budget - The encoded bytes still available to the image sources of one resolve call.
- Image
Limits - Limits applied to the images of one request.
- Image
Quota - Usage accumulated over the resolve calls of one request.
- Image
Resolver - Resolves image sources into preprocessed images.
- Open
CvImage Preprocessor - Preprocesses images with OpenCV.
- Preprocess
Options - Options for one image preprocessing call.
- Reqwest
Image Fetcher - Downloads images from external URLs with
reqwest. - Retry
Policy - Delays applied before repeated attempts of an operation.
Enums§
- Image
Error - Failure to fetch or preprocess one image.
Traits§
- Image
Fetcher - Fetches the bytes of an image identified by an external URL.
- Image
Preprocessor - Decodes, resizes, and encodes one image for the inference backend.