diff --git a/extras/jetson/README.md b/extras/jetson/README.md index f1e1e74..cdc3a53 100644 --- a/extras/jetson/README.md +++ b/extras/jetson/README.md @@ -130,7 +130,6 @@ Tested with a _Jetson AGX Orin Developer Kit_ module. ```bash docker build --progress=plain -f extras/ros/dockerfile -t rapidposetriangulation_ros . - ./run_container.sh ``` - Run and test: diff --git a/scripts/utils_2d_pose.hpp b/scripts/utils_2d_pose.hpp index aaec0ad..6be1d45 100644 --- a/scripts/utils_2d_pose.hpp +++ b/scripts/utils_2d_pose.hpp @@ -486,16 +486,16 @@ namespace utils_2d_pose float new_end_yf = center_y + 0.5f * adjusted_h; // Round the box coordinates - int start_x_i = static_cast(std::floor(new_start_xf)); - int start_y_i = static_cast(std::floor(new_start_yf)); - int end_x_i = static_cast(std::ceil(new_end_xf)); - int end_y_i = static_cast(std::ceil(new_end_yf)); + int start_xi = static_cast(std::floor(new_start_xf)); + int start_yi = static_cast(std::floor(new_start_yf)); + int end_xi = static_cast(std::ceil(new_end_xf)); + int end_yi = static_cast(std::ceil(new_end_yf)); // Define the new box coordinates - int new_start_x = std::max(0, start_x_i); - int new_start_y = std::max(0, start_y_i); - int new_end_x = std::min(img_w - 1, end_x_i); - int new_end_y = std::min(img_h - 1, end_y_i); + int new_start_x = std::max(0, start_xi); + int new_start_y = std::max(0, start_yi); + int new_end_x = std::min(img_w - 1, end_xi); + int new_end_y = std::min(img_h - 1, end_yi); std::array new_box{new_start_x, new_start_y, new_end_x, new_end_y}; // Calculate resized crop size @@ -516,12 +516,12 @@ namespace utils_2d_pose int pad_bottom = 0; if (pad_w > 0) { - if (start_x_i < 0) + if (start_xi < 0) { pad_left = pad_w; pad_right = 0; } - else if (end_x_i > img_w) + else if (end_xi > img_w) { pad_left = 0; pad_right = pad_w; @@ -535,12 +535,12 @@ namespace utils_2d_pose } if (pad_h > 0) { - if (start_y_i < 0) + if (start_yi < 0) { pad_top = pad_h; pad_bottom = 0; } - else if (end_y_i > img_h) + else if (end_yi > img_h) { pad_top = 0; pad_bottom = pad_h;