docs: fix start/end → start_frame/end_frame in API docs
This commit is contained in:
@@ -338,7 +338,7 @@ Returns video with face bounding boxes overlaid.
|
||||
|
||||
```
|
||||
GET /api/v1/file/{file_uuid}/video/bbox
|
||||
Query: ?start=0&end=300&face_uuid=xxx
|
||||
Query: ?start_frame=0&end_frame=300&face_uuid=xxx
|
||||
```
|
||||
|
||||
Returns `video/mp4` binary with red bboxes drawn at frame intervals.
|
||||
|
||||
@@ -338,7 +338,7 @@ Returns video with face bounding boxes overlaid.
|
||||
|
||||
```
|
||||
GET /api/v1/file/{file_uuid}/video/bbox
|
||||
Query: ?start=0&end=300&face_uuid=xxx
|
||||
Query: ?start_frame=0&end_frame=300&face_uuid=xxx
|
||||
```
|
||||
|
||||
Returns `video/mp4` binary with red bboxes drawn at frame intervals.
|
||||
|
||||
@@ -338,7 +338,7 @@ Returns video with face bounding boxes overlaid.
|
||||
|
||||
```
|
||||
GET /api/v1/file/{file_uuid}/video/bbox
|
||||
Query: ?start=0&end=300&face_uuid=xxx
|
||||
Query: ?start_frame=0&end_frame=300&face_uuid=xxx
|
||||
```
|
||||
|
||||
Returns `video/mp4` binary with red bboxes drawn at frame intervals.
|
||||
|
||||
@@ -82,7 +82,7 @@ https://api.momentry.ddns.net/api/v1/file/3abeee81d94597629ed8cb943f182e94/trace
|
||||
|
||||
Browser 開:
|
||||
```
|
||||
https://api.momentry.ddns.net/api/v1/file/3abeee81d94597629ed8cb943f182e94/video/bbox?start=68000&end=69000
|
||||
https://api.momentry.ddns.net/api/v1/file/3abeee81d94597629ed8cb943f182e94/video/bbox?start_frame=68000&end_frame=69000
|
||||
```
|
||||
|
||||
**預期**: 該區間內所有臉部偵測的 bbox overlay 影片
|
||||
|
||||
@@ -82,7 +82,7 @@ https://api.momentry.ddns.net/api/v1/file/3abeee81d94597629ed8cb943f182e94/trace
|
||||
|
||||
Browser 開:
|
||||
```
|
||||
https://api.momentry.ddns.net/api/v1/file/3abeee81d94597629ed8cb943f182e94/video/bbox?start=68000&end=69000
|
||||
https://api.momentry.ddns.net/api/v1/file/3abeee81d94597629ed8cb943f182e94/video/bbox?start_frame=68000&end_frame=69000
|
||||
```
|
||||
|
||||
**預期**: 該區間內所有臉部偵測的 bbox overlay 影片
|
||||
|
||||
@@ -133,8 +133,8 @@ curl "$BASE/api/v1/file/$FILE/trace/2/faces?limit=2&interpolate=true" -H "$KEY"
|
||||
| # | Method | Path | Description |
|
||||
|---|--------|------|-------------|
|
||||
| 29 | GET | `/api/v1/file/:file_uuid/thumbnail` | Frame JPEG (?frame=&x=&y=&w=&h=) |
|
||||
| 30 | GET | `/api/v1/file/:file_uuid/video` | Raw video (?start=&end=) |
|
||||
| 31 | GET | `/api/v1/file/:file_uuid/video/bbox` | Bbox overlay (?start=&end=&duration=) |
|
||||
| 30 | GET | `/api/v1/file/:file_uuid/video` | Raw video (start_frame=&end_frame=) |
|
||||
| 31 | GET | `/api/v1/file/:file_uuid/video/bbox` | Bbox overlay (start_frame=&end_frame=&duration=) |
|
||||
| 32 | GET | `/api/v1/file/:file_uuid/trace/:trace_id/video` | Trace clip (?padding=) |
|
||||
|
||||
---
|
||||
|
||||
@@ -133,8 +133,8 @@ curl "$BASE/api/v1/file/$FILE/trace/2/faces?limit=2&interpolate=true" -H "$KEY"
|
||||
| # | Method | Path | Description |
|
||||
|---|--------|------|-------------|
|
||||
| 29 | GET | `/api/v1/file/:file_uuid/thumbnail` | Frame JPEG (?frame=&x=&y=&w=&h=) |
|
||||
| 30 | GET | `/api/v1/file/:file_uuid/video` | Raw video (?start=&end=) |
|
||||
| 31 | GET | `/api/v1/file/:file_uuid/video/bbox` | Bbox overlay (?start=&end=&duration=) |
|
||||
| 30 | GET | `/api/v1/file/:file_uuid/video` | Raw video (start_frame=&end_frame=) |
|
||||
| 31 | GET | `/api/v1/file/:file_uuid/video/bbox` | Bbox overlay (start_frame=&end_frame=&duration=) |
|
||||
| 32 | GET | `/api/v1/file/:file_uuid/trace/:trace_id/video` | Trace clip (?padding=) |
|
||||
|
||||
---
|
||||
|
||||
Reference in New Issue
Block a user