GithubHelp home page GithubHelp logo

Comments (6)

chi3236 avatar chi3236 commented on June 1, 2024

I changed IPM code. The IPM area changes depending on the steering amount. I think it will reduce noises on the curvy road and make the truck drives better.

from chosuntruck.

zappybiby avatar zappybiby commented on June 1, 2024

I'm confused by this change, there's a lot of repeating code that I see.

For example:

cv::resize(outputImg, outputImg, cv::Size(320, 240));

is repeated here:

cv::resize(outputImg, outputImg, cv::Size(320, 240));

You also repeated the IPM code here and then again here

I'm not saying this is incorrect, but I believe this repetition of code is the reason why I cannot implement this correctly into our Windows version. Can you explain why these are repeated?

from chosuntruck.

chi3236 avatar chi3236 commented on June 1, 2024

The lane detection process consist of these stages:

  1. Set the IPM area
  2. Resize the IPMed area
  3. Convert the color from RGB to grey
  4. Sobel filtering and thresholding
    and we find the lane with the frames which are the result of those screen filtering process.

My code uses move_mouse_pixel variable to change the IPM area. To use this changed IPM area in lane detection, we should do the screen filtering process again, and find the lane with the new frame again. I know the repeating code is bad for the maintanence, so I gonna refactor it soon.

from chosuntruck.

zappybiby avatar zappybiby commented on June 1, 2024

Ok! Just adding a function that performs those steps should make the code look better.

I will try to see if I can get that to work today.

In my latest commit I tried to implement it into the replacing move_mouse_pixel with diffOld, and it doesn't seem to help stabilize the ipm... not sure what is wrong.

from chosuntruck.

chi3236 avatar chi3236 commented on June 1, 2024

I have a better idea for implementing adaptive IPM. I will change the code before Tuesday or Wednesday

from chosuntruck.

chi3236 avatar chi3236 commented on June 1, 2024

OK, a better adaptive IPM area is implemented
https://youtu.be/qb99czlIklA

from chosuntruck.

Related Issues (20)

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.