Object Detection
POST/api/v5/detect/yolo
Use YOLO model for object detection in images, identify objects in the images
Request
Header Parameters
User Personal Token
- application/json
Body
Model weight file names for yolo11 (yolo11n.pt, yolo11s.pt, yolo11m.pt, yolo11l.pt, yolo11x.pt)
yolo11n.ptBase64 encoded string of the image to be detected
data:image/jpeg;base64,/9j/4AAQSkZJRgABAQXXXXXXXThe size of the input image, the valid range is 32-1280 pixels.
Possible values: >= 32 and <= 1280
640Predicted confidence threshold, valid range 0.01 - 1.0
Possible values: >= 0.01 and <= 1
0.5IoU threshold, valid range 0.0 - 0.95
Possible values: <= 0.95
0.45Responses
- 200
Response Headers
- application/json
- Schema
- Example (auto)
- Example
Schema
- Array [
- Array [
- ]
- ]
images object[]required
List of detection result images
results object[]required
Test Result List
box objectrequired
Bounding Box Coordinates
Top-left x coordinate
14.55554Lower right x coordinate
72.45978Top-left y coordinate
116.72369Lower right y-coordinate
268.92963Category ID
0Confidence Level
0.83583Category Name
personImage size [width, height]
speed objectrequired
Processing speed information
Inference Time (ms)
56.13449Post-processing Time (ms)
0.05426Preprocessing Time (ms)
21.20275metadata objectrequired
Metadata Information
Function Survival Time (ms)
163779.863Function call time (ms)
0.57Number of images
1Model Name
yolo11n-cls.ptversion objectrequired
Version Information
Python version
3.11.14PyTorch Version
2.9.1+cpu版本
0.24.1+cpuultralytics version
8.3.228{
"images": [
{
"results": [
{
"box": {
"x1": 14.55554,
"x2": 72.45978,
"y1": 116.72369,
"y2": 268.92963
},
"class": 0,
"confidence": 0.83583,
"name": "person"
}
],
"shape": [
0
],
"speed": {
"inference": 56.13449,
"postprocess": 0.05426,
"preprocess": 21.20275
}
}
],
"metadata": {
"functionTimeAlive": 163779.863,
"functionTimeCall": 0.57,
"imageCount": 1,
"model": "yolo11n-cls.pt",
"version": {
"python": "3.11.14",
"torch": "2.9.1+cpu",
"torchvision": "0.24.1+cpu",
"ultralytics": "8.3.228"
}
}
}
{
"images": [
{
"results": [
{
"box": {
"x1": 1.511962890625,
"x2": 263.31793212890625,
"y1": 0.378143310546875,
"y2": 200.42999267578125
},
"confidence": 0.6070891618728638,
"name": "person"
}
],
"shape": [
203,
320
],
"speed": {
"inference": 235.26057600975037,
"postprocess": 1.4520995318889618,
"preprocess": 3.9573051035404205
}
}
],
"metadata": {
"version": {
"python": "3.11.13",
"ultralytics": "8.3.231"
}
}
}