mirror of
https://github.com/modelec/detection_pot.git
synced 2026-01-19 00:57:28 +01:00
crash
This commit is contained in:
@@ -91,14 +91,7 @@ std::pair<int, std::vector<std::pair<ArucoTag, std::pair<cv::Mat, cv::Mat>>>> Ar
|
||||
cv::Mat frameNotRotated;
|
||||
cv::Mat frameDistored;
|
||||
|
||||
try {
|
||||
cam->getVideoFrame(frameNotRotated, 1000);
|
||||
} catch (const std::exception& e) {
|
||||
std::cerr << "Error: " << e.what() << std::endl;
|
||||
std::pair<int, std::vector<std::pair<ArucoTag, std::pair<cv::Mat, cv::Mat>>>> result;
|
||||
result.first = -2;
|
||||
return result;
|
||||
}
|
||||
cam->getVideoFrame(frameNotRotated, 1000);
|
||||
|
||||
cv::flip(frameNotRotated, frameDistored, -1);
|
||||
cv::undistort(frameDistored, frame, cameraMatrix, distCoeffs);
|
||||
|
||||
Reference in New Issue
Block a user