This repository was archived by the owner on Aug 22, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +10
-10
lines changed
examples/depth_eval_tools/kahelpers Expand file tree Collapse file tree 1 file changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -65,16 +65,16 @@ bool charuco_target::read_from_json(const std::string template_file)
65
65
shapes[i][" shape" ] >> s;
66
66
if (s.compare (" charuco" ) == 0 )
67
67
{
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 " ];
78
78
if (!shapes[i][" aruco_dict_name" ].empty ())
79
79
aruco_dict_name = (int )shapes[i][" aruco_dict_name" ];
80
80
valid = true ;
You can’t perform that action at this time.
0 commit comments