Find Jobs
Hire Freelancers

fix an error compiling .cpp file

$10-30 CAD

In Progress
Posted about 9 years ago

$10-30 CAD

Paid on delivery
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
Project ID: 7318369

About the project

2 proposals
Remote project
Active 9 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
2 freelancers are bidding on average $28 CAD for this job
User Avatar
Could you please send the source to me?
$30 CAD in 2 days
4.8 (22 reviews)
3.9
3.9
User Avatar
A proposal has not yet been provided
$25 CAD in 1 day
0.0 (0 reviews)
0.0
0.0

About the client

Flag of ANGUILLA
Ajax, Anguilla
5.0
65
Payment method verified
Member since May 30, 2011

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.