How to use CameraMetrics (), FusionMetrics() in python body tracking Fusion_camera code

According to documentation both of these functions doesn’t have any parameters, But when i was using it in the code i am getting all of the values as zero, Am i Using it wrong, Is there any other way to use it.

fusion_metrics = sl.FusionMetrics()
print(fusion_metrics.mean_camera_fused,end=" “)
print(fusion_metrics.mean_stdev_between_camera,end=” “)
print(” ")

Hi,

You need to call the get_process_metrics function in order to retrieve the data.

Stereolabs Support

It’s telling get_process_metrics was not available.

AttributeError: ‘pyzed.sl.Camera’ object has no attribute ‘get_process_metrics’

It is a method of the “Fusion” class, not “Camera” : https://www.stereolabs.com/docs/api/python/classpyzed_1_1sl_1_1Fusion.html#a6c22e4dfad6a978860fc2d678e509910

Best,

Stereolabs Support