From 8a039b45865ef2b95e02e39eb56cadc6c2c15f68 Mon Sep 17 00:00:00 2001 From: Alexander Smorkalov Date: Mon, 15 Sep 2025 15:47:48 +0300 Subject: [PATCH] Dump per-camera RMS for multiview calibration. --- samples/python/multiview_calibration.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/samples/python/multiview_calibration.py b/samples/python/multiview_calibration.py index b534884705..14d9320959 100644 --- a/samples/python/multiview_calibration.py +++ b/samples/python/multiview_calibration.py @@ -449,8 +449,10 @@ def calibrateFromPoints( print('distortion', distortions) print('mean RMS error over all visible frames %.3E' % rmse) + errors_per_camera = np.array([np.mean(errs[errs > 0]) for errs in errors_per_frame]) + with np.printoptions(precision=2): - print('mean RMS errors per camera', np.array([np.mean(errs[errs > 0]) for errs in errors_per_frame])) + print('mean RMS errors per camera', errors_per_camera) return { 'Rs': Rs, @@ -460,6 +462,7 @@ def calibrateFromPoints( 'rvecs0': rvecs0, 'tvecs0': tvecs0, 'errors_per_frame': errors_per_frame, + 'errors_per_camera': errors_per_camera, 'output_pairs': output_pairs, 'image_points': image_points, 'models': models,