Get all cases
Request
/?search=
: Return recent/?search=query
: Return search with query
Response
{
"cases": [
{
"title": case_title,
"hash": case_hash,
"memo": case_memo,
"datetime": case_generated_datetime
},
{...}
]
}
Create new case
Request
{
"title": case_title,
"memo": case_memo,
"datetime": case_generated_datetime
}
Response
{
"title": case_title,
"hash": case_hash,
"memo": case_memo,
"datetime": case_generated_datetime
}
Get videos & processed data from case
Response
{
"videos": [
{
"path": video_path,
"memo": memo,
"lat": lat,
"lng": lng,
"datetime": shot_datetime,
"video_hash": video_hash,
"is_detection_done": true|false,
"imgs": [
{
"timedelta": calculated_datetime,
"persons": [
{
"hash": person_hash,
"bbox_path": bbox_path,
"orig_path": orig_path
},
{...}
]
}, {...}
]
}, {...}
]
}
Upload new videos
Request
{
"videos": [
{
"path": video_path,
"memo": video_memo
},
{...}
]
}
Response
{
"code": ok|error,
"path": video_path, // optional
"detail": "File does not exist"|"Filetype error occured" // optional
}
Get video info
Response
{
"path": video_path,
"memo": memo,
"lat": lat,
"lng": lng,
"datetime": shot_datetime,
"video_hash": video_hash,
"is_detection_done": true|false,
"imgs": [
{
"timedelta": calculated_datetime,
"persons": [
{
"hash": person_hash,
"bbox_path": bbox_path,
"orig_path": orig_path
},
{...}
]
}, {...}
]
}
Put additional info
Request
{
"memo": memo,
"lat": lat,
"lng": lng,
"datetime": shot_datetime
}
** Response **
{
"code": "ok"
}
Get found persons
Response
{
"persons": [
{
"person_hash": person_hash,
"video_hash": video_hash,
"bbox_path": bbox_path,
"orig_path": orig_path
},
{...}
]
}
Put new found persons
Request
{
"negatives": [
person_hash,
...
],
"positives": [
person_hash,
...
]
}
Response
{
"code": ok|error
}
Get candidate persons based on found persons
Response
{
"persons": [
{
"person_hash": person_hash,
"video_hash": video_hash,
"bbox_path": bbox_path,
"orig_path": orig_path,
"distance": distance
},
{...}
]
}
Get detection processing status
Response
{
"total": [video_hash1, video_hash2, ...]
}