You can find here my part of code :
Some informations :
tab_test is a table in which I stocked some markers that I want to get their errors in meters in each camera.
for marker in chunk.markers:
print(marker.label)
if marker.label in tab_test:
for camera in marker.projections.keys():
print(camera)
if not camera.transform:
continue
total = (0, 0)
est = chunk.transform.matrix.mulp(marker.position)
ref = marker.reference.location
print("EST :",est)
print("REF :",ref)
error = (est - ref).norm() # The .norm() method gives the total error. Removing it gives X/Y/Z error
print("ERROR :",error)
total = (total[0] + error**2, total[1] + 1)
print("TOTAL :",total)
value_err_m = math.sqrt(total[0] / total [1])
print("VALEUR ERREUR METRE :",value_err_m)
else:
pass
With this code, for each marker, I get the same erreur meter in each camera
Thanks