ocrMoondream
R2026bSyntax
Description
Add-On Required: This feature requires the Computer Vision Toolbox Model for Moondream Vision Language Model add-on.
recognizes text in the image text = ocrMoondream(mdModel,I)I using the Moondream™ vision-language
model mdModel. The function returns the optical character recognition
(OCR) information text, which include English text present in the input
image without character-level metadata such as bounding boxes or confidence scores. When the
input image does not contain text, the output might be a descriptive string of the image
content rather than an empty result.
specifies options using one or more name-value arguments, in addition to any combination of
input arguments from previous syntaxes. For example, text = ocrMoondream(___,Name=Value)PromptStyle="Transcribe the
text" specifies to include all visible text in the input image without any
strict, spatial, reading order.
Examples
Input Arguments
Name-Value Arguments
Output Arguments
Tips
The quality of Moondream outputs can vary across different data domains. Validate its predictions using a data set from a domain similar to your intended application.
Extended Capabilities
Version History
Introduced in R2026b
