Hello,
I set up the instance_module_id
for both detector, in this way:
body_param = sl.BodyTrackingParameters()
body_param.enable_tracking = True
body_param.instance_module_id = 0
obj_param = sl.ObjectDetectionParameters()
obj_param.detection_model = sl.OBJECT_DETECTION_MODEL.CUSTOM_BOX_OBJECTS
obj_param.instance_module_id = 1
I’ve got success in enabling both detectors:
# Enable Object Detection module
status = zed.enable_body_tracking(body_param)
print(f'zed.enable_body_tracking status: {status}')
if status != sl.ERROR_CODE.SUCCESS:
print(repr(status))
exit()
status = zed.enable_object_detection(obj_param)
print(f'zed.enable_object_detection status: {status}')
if status != sl.ERROR_CODE.SUCCESS:
print(repr(status))
exit()
this is what I see printed:
zed.enable_body_tracking status: SUCCESS
zed.enable_object_detection status: SUCCESS
I still see the same behaviour:
when both detectors are enabled, just bodies are detected.
If I comment status = zed.enable_body_tracking(body_param)
and obj_param.instance_module_id = 1
, objects only (because bodies are disabled) get detected.
Giorgio