michimaestre / lane-detection-for-autonomous-cars Goto Github PK
View Code? Open in Web Editor NEWLane Detection Module using C++ and OpenCV
License: MIT License
Lane Detection Module using C++ and OpenCV
License: MIT License
I followed the instruction to run the demo on Manjaro and on Ubuntu, but I get the following error when I launch the last command 'make'.
[ 10%] Building CXX object LaneDetector/CMakeFiles/lanes.dir/demo.cpp.o
In file included from /home/andrea/Documents/Lane-Detection-for-Autonomous-Cars/LaneDetector/demo.cpp:30:
/home/andrea/Documents/Lane-Detection-for-Autonomous-Cars/LaneDetector/../LaneDetector/LaneDetector.cpp: In member function ‘std::vector<cv::Point_<int> > LaneDetector::regression(std::vector<std::vector<cv::Vec<int, 4> > >, cv::Mat)’:
/home/andrea/Documents/Lane-Detection-for-Autonomous-Cars/LaneDetector/../LaneDetector/LaneDetector.cpp:204:42: error: ‘CV_DIST_L2’ was not declared in this scope
204 | cv::fitLine(right_pts, right_line, CV_DIST_L2, 0, 0.01, 0.01);
| ^~~~~~~~~~
/home/andrea/Documents/Lane-Detection-for-Autonomous-Cars/LaneDetector/../LaneDetector/LaneDetector.cpp:222:40: error: ‘CV_DIST_L2’ was not declared in this scope
222 | cv::fitLine(left_pts, left_line, CV_DIST_L2, 0, 0.01, 0.01);
| ^~~~~~~~~~
/home/andrea/Documents/Lane-Detection-for-Autonomous-Cars/LaneDetector/../LaneDetector/LaneDetector.cpp: In member function ‘int LaneDetector::plotLane(cv::Mat, std::vector<cv::Point_<int> >, std::string)’:
/home/andrea/Documents/Lane-Detection-for-Autonomous-Cars/LaneDetector/../LaneDetector/LaneDetector.cpp:289:66: error: ‘CV_AA’ was not declared in this scope
289 | cv::fillConvexPoly(output, poly_points, cv::Scalar(0, 0, 255), CV_AA, 0);
| ^~~~~
/home/andrea/Documents/Lane-Detection-for-Autonomous-Cars/LaneDetector/../LaneDetector/LaneDetector.cpp:297:87: error: ‘cvScalar’ was not declared in this scope
297 | tText(inputImage, turn, cv::Point(50, 90), cv::FONT_HERSHEY_COMPLEX_SMALL, 3, cvScalar(0, 255, 0), 1, CV_AA);
| ^~~~~~~~
/home/andrea/Documents/Lane-Detection-for-Autonomous-Cars/LaneDetector/../LaneDetector/LaneDetector.cpp:300:27: error: ‘CV_WINDOW_AUTOSIZE’ was not declared in this scope
300 | cv::namedWindow("Lane", CV_WINDOW_AUTOSIZE);
| ^~~~~~~~~~~~~~~~~~
make[2]: *** [LaneDetector/CMakeFiles/lanes.dir/build.make:63: LaneDetector/CMakeFiles/lanes.dir/demo.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:138: LaneDetector/CMakeFiles/lanes.dir/all] Error 2
make: *** [Makefile:130: all] Error 2
The only thing that comes to my mind is that I'm running the last version of opencv4 which is 4.5.0, but I'm a newbie with with program, so I cannot tell anything.
Hey. I have found some initialized variables in the Lane_detector.cpp file.
Here I will list them all::
Hello Miguel, my application is a slow vehicle and there will be lots of strong shadows.
Can you please let me know if you have performed any test with such kind of data.
Saurabh
Hi!
Thanks for your work, it helped me a lot!
I found a typo and fixed the code to support newer openCV (mine is v4). Would you be interested in a pull request?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.