Hello,
using some of your example programs, I’m trying to do custom object detection and body tracking.
This is how I set up both in python.
positional_tracking_parameters = sl.PositionalTrackingParameters()
# If the camera is static, uncomment the following line to have better performances and boxes sticked to the ground.
positional_tracking_parameters.set_as_static = True
zed.enable_positional_tracking(positional_tracking_parameters)
body_param = sl.BodyTrackingParameters()
body_param.enable_tracking = True # Track people across images flow
body_param.enable_body_fitting = False # Smooth skeleton move
body_param.detection_model = sl.BODY_TRACKING_MODEL.HUMAN_BODY_FAST
body_param.body_format = sl.BODY_FORMAT.BODY_18 # Choose the BODY_FORMAT you wish to use
# Enable Object Detection module
zed.enable_body_tracking(body_param)
body_runtime_param = sl.BodyTrackingRuntimeParameters()
body_runtime_param.detection_confidence_threshold = 40
obj_param = sl.ObjectDetectionParameters()
obj_param.detection_model = sl.OBJECT_DETECTION_MODEL.CUSTOM_BOX_OBJECTS
obj_param.enable_tracking = True
zed.enable_object_detection(obj_param)
objects = sl.Objects()
obj_runtime_param = sl.ObjectDetectionRuntimeParameters()
bodies = sl.Bodies()
The body tracking part is working, but custom object detection model is not.
Please note that when I comment the body tracking detection, custom object detection is working.
Is custom object detection supposed to work concurrently with body tracking?
Is it working in C++ only?
The only example I found is C++ based and it’s not using custom object detection: zed-sdk/object detection/concurrent detections/cpp at master · stereolabs/zed-sdk · GitHub
Thank you,
Giorgio