Hello Gabriel,
The following script will print out the information on keyframes from the active chunk's camera track (id, x, y, z, yaw, pitch, roll):
T = chunk.transform.matrix
crs = chunk.crs
for camera in chunk.camera_track.keyframes:
coord = crs.project(T.mulp(camera.center))
m = crs.localframe(T.mulp(camera.center))
R = (m * T * camera.transform * Metashape.Matrix().Diag([1, -1, -1, 1])).rotation()
ypr = Metashape.utils.mat2ypr(R)
output = "{:d},{:.6f},{:.6f},{:.3f},{:.3f},{:.3f},{:.3f}\n".format(camera.key, coord.x, coord.y, coord.z, ypr.x, ypr.y, ypr.z)
print(output)
If necessary, you can redirect it to the file.