This is a built-in input and output mode for object detection. The models using this mode are identified as object detection models. The prediction request path is /, the request protocol is HTTP, the request method is POST, Content-Type is multipart/form-data, key is images, and type is file. Before selecting this mode, ensure that your model can process the input data whose key is images.
The inference result is returned in JSON format. For details about the fields, see Table 1.
Field |
Type |
Description |
---|---|---|
detection_classes |
String array |
List of detected objects, for example, ["flowers","cat"] |
detection_boxes |
Float array |
Coordinates of the bounding box, in the format of |
detection_scores |
Float array |
Confidence scores of detected objects, which are used to measure the detection accuracy |
The JSON Schema of the inference result is as follows:
{ "type": "object", "properties": { "detection_classes": { "items": { "type": "string" }, "type": "array" }, "detection_boxes": { "items": { "minItems": 4, "items": { "type": "number" }, "type": "array", "maxItems": 4 }, "type": "array" }, "detection_scores": { "items": { "type": "string" }, "type": "array" } } }
On the Prediction tab page of the service details page, upload an image and click Predict to obtain the prediction result.
After a model is deployed as a service, you can obtain the API URL on the Usage Guides tab page of the service details page.