Skip to main content

Crate deepseek_recipe_image

Crate deepseek_recipe_image 

Source
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§

ImageByteBudget
The encoded bytes still available to the image sources of one resolve call.
ImageLimits
Limits applied to the images of one request.
ImageQuota
Usage accumulated over the resolve calls of one request.
ImageResolver
Resolves image sources into preprocessed images.
OpenCvImagePreprocessor
Preprocesses images with OpenCV.
PreprocessOptions
Options for one image preprocessing call.
ReqwestImageFetcher
Downloads images from external URLs with reqwest.
RetryPolicy
Delays applied before repeated attempts of an operation.

Enums§

ImageError
Failure to fetch or preprocess one image.

Traits§

ImageFetcher
Fetches the bytes of an image identified by an external URL.
ImagePreprocessor
Decodes, resizes, and encodes one image for the inference backend.