Module Server Interface Protocol - neohoon/ObjectDetector GitHub Wiki
Module Server Interface Protocol
"Health Check" Protocol
- Request
{"cmd": "check"}
- Response
- μ μμΌ κ²½μ°
{"state": "healthy"}
- λΉμ μμΌ κ²½μ°
{"state": "Invalid"}
"Run" Protocol
- Request
{
"cmd": "run",
"request":
{
"mmap_fname": memory_map_filename,
"mmap_shape": numpy_array_shape,
"roi": roi_list,
"tracker_": "True" | "False" // To enable tracking feature
}
}
-
memory_map_filename μ numpy memory map μ νμΌμ΄λ¦μ΄λ©° string νμ μ΄λ€.
-
numpy_array_shape μ numpy array μ shape μ΄λ©° tuple νμ μ΄λ€.
-
roi_list λ 0 κ³Ό 1 μ¬μ΄μ λ€κ°μ μ€μλ‘ κ΅¬μ±λλ©° list νμ μ΄λ€.
-
Response
- μ μμΌ κ²½μ°
{ "state": "Done", "response": { "result": "success", "obj_info": { "obj_box_arr": obj_box_arr, "obj_name_arr": obj_name_arr, "obj_score_arr": obj_score_arr, "tracker_box_arr": list of tracker box, "tracker_index_arr": list of tracker index, "elapsed_time": elapsed_time }, "proc_time": proc_time } }
- obj_box_arr λ 0 κ³Ό 1 μ¬μ΄μ 4 κ°μ μ€μλ‘ μ΄λ£¨μ΄μ§ bounding box μ array μ΄λ€.
- obj_name_arr λ κ²μΆν object μ΄λ¦μ array μ΄λ€.
- obj_score_arr λ κ²μΆν object score μ array μ΄λ€.
- list of tracker box λ tracked box λ₯Ό μλ―Ένλ€.
- λ³Έμ§μ μΌλ‘λ object box μ λμΌνλ, λ΄λΆμ μΌλ‘ object box λ³΄λ€ μ½κ° ν€μμ μ²λ¦¬νλ€.
- list of tracker index λ tracked box μ index μ΄λ€.
- elapsed_time μ object detection μ μμλ μκ°μ΄λ€.
- λΉμ μμΌ κ²½μ°
{ "state": "Done", "response": { "result": "fail", "description": fail_description } }
- fail_description μ μ μ λμμ μ€ν¨ν μ΄μ κ° κΈ°λ‘λλ€.