John Ho
commited on
Commit
·
941ebf2
1
Parent(s):
07c2352
updated docs for mcp server
Browse files
app.py
CHANGED
|
@@ -135,7 +135,10 @@ def process_video(
|
|
| 135 |
Args:
|
| 136 |
video_path: path to video object
|
| 137 |
variant: SAMv2's model variant
|
| 138 |
-
masks: a list of
|
|
|
|
|
|
|
|
|
|
| 139 |
Returns:
|
| 140 |
list: a list of tracked objects expressed as a list of dictionary [{"frame":..., "track_id":..., "x":..., "y":...,"w":...,"h":...,"conf":..., "mask_b64":...},...]
|
| 141 |
"""
|
|
|
|
| 135 |
Args:
|
| 136 |
video_path: path to video object
|
| 137 |
variant: SAMv2's model variant
|
| 138 |
+
masks: a list of base64 encoded masks for the reference frame, indicating the objects to be tracked
|
| 139 |
+
drop_masks: whether to include the base64 encoded mask for each tracked object, if not then only bounding box information will be available
|
| 140 |
+
ref_frame_idx: the frame index of the reference frame
|
| 141 |
+
async_frame_load: whether to load frames asyncholously while doing video propogation which will improve inference time
|
| 142 |
Returns:
|
| 143 |
list: a list of tracked objects expressed as a list of dictionary [{"frame":..., "track_id":..., "x":..., "y":...,"w":...,"h":...,"conf":..., "mask_b64":...},...]
|
| 144 |
"""
|