Skip to content
This repository was archived by the owner on Aug 22, 2024. It is now read-only.

Commit cf4e844

Browse files
committed
Updating kahelpers to use updated plane json format
1 parent f9cfc6d commit cf4e844

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

examples/depth_eval_tools/kahelpers/kahelpers.cpp

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -65,16 +65,16 @@ bool charuco_target::read_from_json(const std::string template_file)
6565
shapes[i]["shape"] >> s;
6666
if (s.compare("charuco") == 0)
6767
{
68-
if (!shapes[i]["squaresX"].empty())
69-
squaresX = (int)shapes[i]["squaresX"];
70-
if (!shapes[i]["squaresY"].empty())
71-
squaresY = (int)shapes[i]["squaresY"];
72-
if (!shapes[i]["squareLength_mm"].empty())
73-
squareLength_mm = (float)shapes[i]["squareLength_mm"];
74-
if (!shapes[i]["markerLength_mm"].empty())
75-
markerLength_mm = (float)shapes[i]["markerLength_mm"];
76-
if (!shapes[i]["marginSize_mm"].empty())
77-
marginSize_mm = (float)shapes[i]["marginSize_mm"];
68+
if (!shapes[i]["squares_x"].empty())
69+
squaresX = (int)shapes[i]["squares_x"];
70+
if (!shapes[i]["squares_y"].empty())
71+
squaresY = (int)shapes[i]["squares_y"];
72+
if (!shapes[i]["square_length"].empty())
73+
squareLength_mm = (float)shapes[i]["square_length"];
74+
if (!shapes[i]["marker_length"].empty())
75+
markerLength_mm = (float)shapes[i]["marker_length"];
76+
if (!shapes[i]["margin_size"].empty())
77+
marginSize_mm = (float)shapes[i]["margin_size"];
7878
if (!shapes[i]["aruco_dict_name"].empty())
7979
aruco_dict_name = (int)shapes[i]["aruco_dict_name"];
8080
valid = true;

0 commit comments

Comments
 (0)