Skip to main content
The MGPSTR class implements a wrapper for the MGPSTR (Multi-Granularity Prediction for Scene Text Recognition) model, which recognizes text in images.
boolean
default:"False"
If True, inference call is run on the local VM, else offloaded onto GRID-Cortex. Defaults to True.
This model is currently not available via Cortex.
np.ndarray
required
The input RGB image of shape (M,N,3)(M,N,3).
string
Recognized text from the image.
This model is best suited for recognizing text in images (OCR).
This code is licensed under the Apache 2.0 License.