From 3a004596e94d6f243bfbf8fde7792b39d4f2d06d Mon Sep 17 00:00:00 2001 From: George Hotz Date: Mon, 6 Jul 2020 11:56:07 -0700 Subject: [PATCH] add calmodel old-commit-hash: 4619401bfc8ce4f5a6fac5167e5e386ffbf36409 --- common/transformations/model.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/common/transformations/model.py b/common/transformations/model.py index 1be827889d..070d174711 100644 --- a/common/transformations/model.py +++ b/common/transformations/model.py @@ -41,6 +41,17 @@ medmodel_intrinsics = np.array( [ 0. , eon_focal_length / medmodel_zoom, MEDMODEL_CY], [ 0. , 0. , 1.]]) +# CAL model +CALMODEL_INPUT_SIZE = (512, 256) +CALMODEL_YUV_SIZE = (CALMODEL_INPUT_SIZE[0], CALMODEL_INPUT_SIZE[1] * 3 // 2) +CALMODEL_CY = 47.6 + +calmodel_zoom = 1.5 +calmodel_intrinsics = np.array( + [[ eon_focal_length / calmodel_zoom, 0. , 0.5 * CALMODEL_INPUT_SIZE[0]], + [ 0. , eon_focal_length / calmodel_zoom, CALMODEL_CY], + [ 0. , 0. , 1.]]) + # BIG model