Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
BAILOOL authored Feb 3, 2024
1 parent 2457ffc commit e5d7d9d
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions McCalib/src/McCalib.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -277,12 +277,12 @@ void Calibration::detectBoardsWithCamera(const std::vector<cv::String> &fn,
void Calibration::detectBoardsInImageWithCamera(const std::string frame_path,
const int cam_idx,
const int frame_idx) {
LOG_INFO << "Got here1 "
LOG_INFO << "Got here1 ";
cv::Mat image = cv::imread(frame_path);
// Greyscale image for subpixel refinement
cv::Mat graymat;
cv::cvtColor(image, graymat, cv::COLOR_BGR2GRAY);
LOG_INFO << "Got here2 "
LOG_INFO << "Got here2 ";
// Datastructure to save the checkerboard corners

// key == board id, value == markersIDs on MARKERS markerIds
Expand All @@ -297,17 +297,17 @@ void Calibration::detectBoardsInImageWithCamera(const std::string frame_path,
charuco_params_->adaptiveThreshConstant = 1;

for (std::size_t i = 0; i < nb_board_; i++) {
LOG_INFO << "Got here3 "
LOG_INFO << "Got here3 ";
cv::aruco::detectMarkers(image, boards_3d_[i]->charuco_board_->dictionary,
marker_corners[i], marker_idx[i], charuco_params_);

LOG_INFO << "Got here4 "
LOG_INFO << "Got here4 ";
if (marker_corners[i].size() > 0) {
cv::aruco::interpolateCornersCharuco(marker_corners[i], marker_idx[i],
image, boards_3d_[i]->charuco_board_,
charuco_corners[i], charuco_idx[i]);
}
LOG_INFO << "Got here5 "
LOG_INFO << "Got here5 ";

if (charuco_corners[i].size() >
static_cast<std::size_t>(
Expand Down

0 comments on commit e5d7d9d

Please sign in to comment.