-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathswagger.yaml
50 lines (50 loc) · 1.23 KB
/
swagger.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
swagger: '2.0'
info:
title: YOLO Object Detection API
version: '1.0'
consumes:
- application/json
produces:
- application/json
paths:
/detect:
get:
operationId: app.detect_from_url
summary: Perform object detection on image at URL.
parameters:
- name: url
in: query
description: URL of image
type: string
required: true
- name: threshold
in: query
description: Detection threshold
type: number
minimum: 0
maximum: 1
default: 0.25
responses:
200:
description: Returns detections, confidences and coordinates.
post:
operationId: app.detect_from_file
summary: Perform object detection on uploaded image.
consumes:
- multipart/form-data
parameters:
- name: image_file
in: formData
description: Image
type: file
required: true
- name: threshold
in: formData
description: Detection threshold
type: number
minimum: 0
maximum: 1
default: 0.25
responses:
200:
description: Returns detections, confidences and coordinates.