Giter VIP home page Giter VIP logo

lane-detection-for-autonomous-cars's People

Contributors

michimaestre avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

lane-detection-for-autonomous-cars's Issues

Compilation error: var not declared in this scope

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.

Uninitialized variables in Lane_Detector.cpp

Hey. I have found some initialized variables in the Lane_detector.cpp file.
Here I will list them all::

  1. img_center = static_cast((img_edges.cols / 2)); // line #151
  2. right_m = right_line[1] / right_line[0];
    right_b = cv::Point(right_line[2], right_line[3]); // lines 205 and 206
  3. left_m = left_line[1] / left_line[0];
    left_b = cv::Point(left_line[2], left_line[3]); // lines 223 and 224
    what are they for?

Shadow detection

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

Support new opencv (v4)

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?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.