diff --git a/src/papillon.cpp b/src/papillon.cpp index 441cbf9..906a7d2 100644 --- a/src/papillon.cpp +++ b/src/papillon.cpp @@ -153,9 +153,8 @@ class Traite_image { cv::Mat temp; closed_thres.copyTo(temp); vector< vector > contours; - vector hierarchy; //find contours of filtered image using openCV findContours function - cv::findContours(temp,contours,hierarchy,CV_RETR_EXTERNAL,CV_CHAIN_APPROX_SIMPLE );// retrieves external contours + cv::findContours(temp,contours,CV_RETR_EXTERNAL,CV_CHAIN_APPROX_SIMPLE );// retrieves external contours //if contours vector is not empty, we have found some objects if(contours.size()>0){