handle crash

This commit is contained in:
ackimixs
2024-05-06 13:27:04 +02:00
parent a7c4786f15
commit 9fe27ad399

View File

@@ -62,8 +62,10 @@ int main(int argc, char *argv[])
while (true) {
std::pair<int, std::vector<std::pair<ArucoTag, std::pair<cv::Mat, cv::Mat>>>> r;
try {
auto r = detector.detectArucoTags({whiteFlower, purpleFlower, solarPanel});
r = detector.detectArucoTags({whiteFlower, purpleFlower, solarPanel});
} catch (const std::exception& ex) {
std::cerr << "Error: " << ex.what() << std::endl;
return -1;