ITS: fix for numpy 1.20.1+ version
files affected:
scene4/test_multi_camera_alignment.py
bug: 200950258
Change-Id: Ia1133f485e8ebfb8b819929dd558b3142051c2ec
diff --git a/apps/CameraITS/tests/scene4/test_multi_camera_alignment.py b/apps/CameraITS/tests/scene4/test_multi_camera_alignment.py
index 46bc1a1..960c44f 100644
--- a/apps/CameraITS/tests/scene4/test_multi_camera_alignment.py
+++ b/apps/CameraITS/tests/scene4/test_multi_camera_alignment.py
@@ -569,7 +569,7 @@
# Check projections back into pixel space
for i in [i_ref, i_2nd]:
err = np.linalg.norm(np.array([circle[i]['x'], circle[i]['y']]) -
- np.array([x_p[i], y_p[i]]))
+ np.array([x_p[i], y_p[i]]).reshape(1, -1))
logging.debug('Camera %s projection error (pixels): %.1f', i, err)
tol = ALIGN_TOL * sensor_diag[i]
msg = 'Camera %s project locations too different!' % i