Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Vehicle Lane Tracking Algorithm

Vehicle Lane Tracking Algorithm

Scheduled Pinned Locked Moved C#
algorithmsquestion
7 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    sebogawa
    wrote on last edited by
    #1

    I am working on an application that uses camera(s) to detect while lane lines on different surfaces adn track them, and eventually give directions to the vehicle (two wheeled robot) so that the vehicle stays in between the lines. So far I managed to write the program so it takes color video feed and converts it to black and white, and filters the edges so it detects the edges of the lanes. I don't know where to go from here. Any suggestions?

    U H 2 Replies Last reply
    0
    • S sebogawa

      I am working on an application that uses camera(s) to detect while lane lines on different surfaces adn track them, and eventually give directions to the vehicle (two wheeled robot) so that the vehicle stays in between the lines. So far I managed to write the program so it takes color video feed and converts it to black and white, and filters the edges so it detects the edges of the lanes. I don't know where to go from here. Any suggestions?

      U Offline
      U Offline
      Uffe Rask
      wrote on last edited by
      #2

      Looks like a fun and interesting problem. Without knowing anything more regarding your app I would advice you to look a bit at AI and gaming AI for inspiration. First of all I would try to create perception layer whose purpose is to present the world in a a simpler format in which your robot knows its options and operate at full speed. This may also give you as a developer ideas of how to interpret robots world and to enhance your world parsing algorithm. Best of luck /U


      What if the world was your spoon. What if was in your power to bend it to your liking. What if it could provide for you whatever you asked of it.

      1 Reply Last reply
      0
      • S sebogawa

        I am working on an application that uses camera(s) to detect while lane lines on different surfaces adn track them, and eventually give directions to the vehicle (two wheeled robot) so that the vehicle stays in between the lines. So far I managed to write the program so it takes color video feed and converts it to black and white, and filters the edges so it detects the edges of the lanes. I don't know where to go from here. Any suggestions?

        H Offline
        H Offline
        Henry Minute
        wrote on last edited by
        #3

        I agree with Uffe Rask, this sounds like an interesting project. Now, I know very little about Robots, modern ones anyway, but I googled for line following robot algorithm and got lots of hits that sounded to me like they might be of help. Perhaps if you do the same (always assuming that you haven't already done so), you might find something that you can adapt.

        Henry Minute Do not read medical books! You could die of a misprint. - Mark Twain Girl: (staring) "Why do you need an icy cucumber?" “I want to report a fraud. The government is lying to us all.”

        S 1 Reply Last reply
        0
        • H Henry Minute

          I agree with Uffe Rask, this sounds like an interesting project. Now, I know very little about Robots, modern ones anyway, but I googled for line following robot algorithm and got lots of hits that sounded to me like they might be of help. Perhaps if you do the same (always assuming that you haven't already done so), you might find something that you can adapt.

          Henry Minute Do not read medical books! You could die of a misprint. - Mark Twain Girl: (staring) "Why do you need an icy cucumber?" “I want to report a fraud. The government is lying to us all.”

          S Offline
          S Offline
          sebogawa
          wrote on last edited by
          #4

          What i was thinking, was to use the edges detected and a drawn ellipse. The app will calc the distance between the two lane edges and draw an ellipse in the center of the distanc of the two white lanes. Im just not sure how to make a fast algorithm that scans the binary bitmap for white at the top of the image and then calcs the distance. Im using AForge.NET as my vido processing library. Whats a good way to scan for pixels that is fast, i am doing this at 15 frames a second.

          H 1 Reply Last reply
          0
          • S sebogawa

            What i was thinking, was to use the edges detected and a drawn ellipse. The app will calc the distance between the two lane edges and draw an ellipse in the center of the distanc of the two white lanes. Im just not sure how to make a fast algorithm that scans the binary bitmap for white at the top of the image and then calcs the distance. Im using AForge.NET as my vido processing library. Whats a good way to scan for pixels that is fast, i am doing this at 15 frames a second.

            H Offline
            H Offline
            Henry Minute
            wrote on last edited by
            #5

            As far as measuring distances, perhaps this article Range Finder[^], might have something useful. THe same guy has written a couple of other articles on Strereoscopy thet you might want to look at. For fast image processing try this one Fast Pointerless Image Processing in .NET[^]. If you go to the CodeProject Home Page and type fast image processing in the Search Articles box, you will get lots of hits, some of them deal with Edge Detection Methods, which you might also find useful. Good luck. :)

            Henry Minute Do not read medical books! You could die of a misprint. - Mark Twain Girl: (staring) "Why do you need an icy cucumber?" “I want to report a fraud. The government is lying to us all.”

            S 1 Reply Last reply
            0
            • H Henry Minute

              As far as measuring distances, perhaps this article Range Finder[^], might have something useful. THe same guy has written a couple of other articles on Strereoscopy thet you might want to look at. For fast image processing try this one Fast Pointerless Image Processing in .NET[^]. If you go to the CodeProject Home Page and type fast image processing in the Search Articles box, you will get lots of hits, some of them deal with Edge Detection Methods, which you might also find useful. Good luck. :)

              Henry Minute Do not read medical books! You could die of a misprint. - Mark Twain Girl: (staring) "Why do you need an icy cucumber?" “I want to report a fraud. The government is lying to us all.”

              S Offline
              S Offline
              sebogawa
              wrote on last edited by
              #6

              Thanks a million bro...as always your a life saver! Thanks again to all who helped throughout the months on my project. Ill followup with my results and i might even post an article about lane tracking with robots and/or vehicles! :-D

              H 1 Reply Last reply
              0
              • S sebogawa

                Thanks a million bro...as always your a life saver! Thanks again to all who helped throughout the months on my project. Ill followup with my results and i might even post an article about lane tracking with robots and/or vehicles! :-D

                H Offline
                H Offline
                Henry Minute
                wrote on last edited by
                #7

                sebogawa wrote:

                i might even post an article about lane tracking with robots and/or vehicles

                That would be really :cool:

                Henry Minute Do not read medical books! You could die of a misprint. - Mark Twain Girl: (staring) "Why do you need an icy cucumber?" “I want to report a fraud. The government is lying to us all.”

                1 Reply Last reply
                0
                Reply
                • Reply as topic
                Log in to reply
                • Oldest to Newest
                • Newest to Oldest
                • Most Votes


                • Login

                • Don't have an account? Register

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • World
                • Users
                • Groups