Detecting Text in an Image by Using a Single Request
Detect and recognize text in an image by calling the Optical Character Recognition (OCR) pretrained model with a single request in Vision.
The maximum size of each image is 5 MB.
To classify images in batch, see Detecting Text in an Image by Using a Batch Request. For more information about the image classification pretrained model, see Pretrained Image Analysis Models.
Use the analyze-image command and required parameters to detect the text in an image:
For a complete list of flags and variable options for CLI commands, see the CLI Command Reference.oci ai-vision analyze-image [OPTIONS]
Run the AnalyzeImage operation to detect the text in an image.