I have a code that compiles perfectly on one linux machine and spits this errors in every other machine
[100%] Building CXX object CMakeFiles/[login to view URL]
/home/toto/Downloads/[login to view URL]: In function ‘void obj_search(cv::Mat, cv::Mat&)’:
/home/toto/Downloads/[login to view URL]:79: error: ‘findContours’ was not declared in this scope
findContours(temp,contours,hierarchy,CV_RETR_EXTERNAL,CV_CHAIN_APPROX_SIMPLE );// retrieves external contours
^
/home/toto/Downloads/[login to view URL]:44: error: ‘boundingRect’ was not declared in this scope
Obj_rect = boundingRect([login to view URL](0));//rectangle around the largest contour
^
/home/toto/Downloads/[login to view URL]:49: error: ‘circle’ was not declared in this scope
circle(cam_feed,Point(x,y),20,Scalar(0,255,0),2);
^
/home/toto/Downloads/[login to view URL]:58: error: ‘line’ was not declared in this scope
line(cam_feed,Point(x,y),Point(x,y-25),Scalar(0,255,0),2);
^
/home/toto/Downloads/[login to view URL]:106: error: ‘putText’ was not declared in this scope
putText(cam_feed,"Tracking object at (" + int2str(x)+","+int2str(y)+")",Point(x,y),1,1,Scalar(255,0,0),2);
^
/home/toto/Downloads/[login to view URL]: In function ‘int main(int, char**)’:
/home/toto/Downloads/[login to view URL]:2: error: ‘VideoCapture’ was not declared in this scope
VideoCapture capture;
^
/home/toto/Downloads/[login to view URL]:15: error: expected ‘;’ before ‘capture’
VideoCapture capture;
^
/home/toto/Downloads/[login to view URL]:3: error: ‘capture’ was not declared in this scope
[login to view URL](video_file);
^
/home/toto/Downloads/[login to view URL]:31: error: ‘COLOR_BGR2GRAY’ was not declared in this scope
cvtColor(frame1,grayImage1,COLOR_BGR2GRAY);
^
/home/toto/Downloads/[login to view URL]:45: error: ‘cvtColor’ was not declared in this scope
cvtColor(frame1,grayImage1,COLOR_BGR2GRAY);
^
/home/toto/Downloads/[login to view URL]:54: error: ‘THRESH_BINARY’ was not declared in this scope
threshold(differenceImage,thresh_Img,Senseval,255,THRESH_BINARY);
^
/home/toto/Downloads/[login to view URL]:67: error: ‘threshold’ was not declared in this scope
threshold(differenceImage,thresh_Img,Senseval,255,THRESH_BINARY);
^
/home/toto/Downloads/[login to view URL]:46: error: ‘imshow’ was not declared in this scope
imshow("Difference Image",differenceImage);
^
/home/toto/Downloads/[login to view URL]:37: error: ‘destroyWindow’ was not declared in this scope
destroyWindow("Difference Image");
^
/home/toto/Downloads/[login to view URL]:52: error: ‘blur’ was not declared in this scope
blur(thresh_Img,thresh_Img,Size(Blursiz,Blursiz));
^
/home/toto/Downloads/[login to view URL]:46: error: ‘imshow’ was not declared in this scope
imshow("Final Threshold Image",thresh_Img);
^
/home/toto/Downloads/[login to view URL]:42: error: ‘destroyWindow’ was not declared in this scope
destroyWindow("Final Threshold Image");
^
/home/toto/Downloads/[login to view URL]:26: error: ‘imshow’ was not declared in this scope
imshow("Frame1",frame1);
^
/home/toto/Downloads/[login to view URL]:21: error: ‘waitKey’ was not declared in this scope
switch(waitKey(10))
^
Please bid if you are an expert ONLY