opencv upgrade to 4.1, new plugin tracer, hw decode vdpau/vaapi, tweak ffmpeg ff_err...
[goodguy/cinelerra.git] / cinelerra-5.1 / plugins / findobj / findobj.C
index ea1d60180c887f2c5397be48632cd7859ee87a14..b54b1c727f7ec8cfc0d5cd02927ca27f0b950839 100644 (file)
@@ -412,7 +412,7 @@ void FindObjMain::detect(Mat &mat, KeyPointV &keypts,Mat &descrs)
        descrs.release();
        try {
                detector->detectAndCompute(mat, noArray(), keypts, descrs);
-       } catch(std::exception e) { printf(_("detector exception: %s\n"), e.what()); }
+       } catch(std::exception &e) { printf(_("detector exception: %s\n"), e.what()); }
 }
 
 void FindObjMain::match()
@@ -420,7 +420,7 @@ void FindObjMain::match()
        pairs.clear();
        try {
                matcher->knnMatch(obj_descrs, scn_descrs, pairs, 2);
-       } catch(std::exception e) { printf(_("match execption: %s\n"), e.what()); }
+       } catch(std::exception &e) { printf(_("match execption: %s\n"), e.what()); }
 }
 
 Ptr<DescriptorMatcher> FindObjMain::flann_kdtree_matcher()
@@ -494,7 +494,6 @@ void FindObjMain::set_brisk()
 }
 #endif
 
-
 void FindObjMain::process_match()
 {
        if( config.algorithm == NO_ALGORITHM ) return;