I am trying to use the max_range parameter to define the maximum range to detect objects. Before enabling object detection, I am setting the parameter to a specific value. However, the camera is detecting objects at larger distances than the one specified in max_range.
I found on the SDK documentation that the parameter is initialized to depth_maximum_distance. I am setting max_range < depth_maximum_distance to avoid possible issues on this regard.
Maybe I am missing something in the parameter configuration. Has someone tried to modify this before?
Sorry for the late update. I installed the latest v4.0.4 and I still have the same issue. Among the detected objects, I still get objects farther than the max_range value.
I am checking the depth of all detected objects provided by the retrieve_objects() function. I am assuming the depth of the object centroid as the z component of the object position. Is this correct?
I am not using the information from retrieve_objects anymore to get an idea of depth. Instead, I am getting it directly from the depth map provided by retrieve_measure(depth_map, sl.MEASURE.DEPTH) . However, I still get depth estimations with values larger than max_range.
Do you have any idea of the cause of this behavior @Myzhar ?