Run inference on an image and retrieve predictions.
predict()
function when you load a classification model.
Param | Type | Description |
---|---|---|
model_id | string | The unique ID of your model deployed on Epigos AI. |
Param | Type | Description |
---|---|---|
payload | dict | Dictionary containing prediction parameters |
Param | Type | Description |
---|---|---|
imageUrl | string | Optional remote url pointing to image the |
imageBase64 | string | Optional Base64-encoded string of the image |
confidence | number | Optional confidence threshold used to filter out predictions. |
imageUrl
or imageBase64
to provided else it
will raise validation errors.detect()
function when you load an object detection model.
Param | Type | Description |
---|---|---|
model_id | string | The unique ID of your model deployed on Epigos AI. |
Param | Type | Description |
---|---|---|
payload | dict | Dictionary containing prediction parameters |
Param | Type | Description |
---|---|---|
imageUrl | string | Optional remote url pointing to image the |
imageBase64 | string | Optional Base64-encoded string of the image |
confidence | number | Optional confidence threshold used to filter out predictions. |
options | object | Optional options to customize image annotation. |
Param | Type | Description |
---|---|---|
annotate | boolean | Optional annotate flag to specify whether to annotate the image or not. |
showProb | boolean | Optional show_prob to specify whether detection confidence are shown on the labels. |
strokeWidth | number | Optional stroke width to specify bounding box border width. |
imageUrl
or imageBase64
to provided else it
will raise validation errors.