How to suppress OpenCV error message
问题 I am writing an OpenCV project using g++ and opencv 2.4.6 I have some code like this: try { H = findHomography( obj, scene, CV_RANSAC ); } catch (Exception &e) { if (showOutput) cout<< "Error throwed when finding homography"<<endl; errorCount++; if (errorCount >=10) { errorCount = 0; selected_temp = -99; foundBB = false; bb_x1 = 0; bb_x2 = 0; bb_y1 = 0; bb_y2 = 0; } return -1; } Error will be thrown when the findHomography failed to find things. The error message includes: OpenCV Error: