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 |
---|---|---|
image_path | string | Path to image (can be local file or remote url). |
confidence | float | Optional confidence threshold used to filter out predictions. |
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 |
---|---|---|
image_path | string | Path to image (can be local file or remote url). |
confidence | float | Optional confidence threshold used to filter out predictions. |
annotate | boolean | Optional annotate flag to specify whether to annotate the image or not. |
show_prob | boolean | Optional show_prob to specify whether detection confidence are shown on the labels. |
stroke_width | number | Optional stroke width to specify bounding box border width. |