Lane detection and object detection with OpenCV & TensorFlow

Поділитися
Вставка
  • Опубліковано 31 бер 2018
  • From webcam feed, the program will identify the lane marking using OpenCV.
    The motion tracking is via Lucas-Kanade optical flow.
    docs.opencv.org/3.4.1/d7/d8b/...
    The object detection is using TensorFlow Object Detection API.
    github.com/tensorflow/models/...
    Music: www.bensound.com
  • Наука та технологія

КОМЕНТАРІ • 177

  • @tien36326
    @tien36326 4 роки тому +2

    คนไทยสุดยอดครับ เป็นไปได้ ขอศึกษาด้วยครับพอดีกำลังศึกษาเรื่องนี้อยู่ :)

  • @luis96xd
    @luis96xd 5 років тому +1

    This is so cool! Well done! :D

  • @alexhooper27
    @alexhooper27 5 років тому +1

    That, sir... Was amazing!

  • @gafriglebit
    @gafriglebit 6 років тому +6

    Very awesome update on your previous video!! Seems like you have been working hard at it, the interface looks very polished. Also appreciate your use of GH and open source, I'm sure the beggars will be working their way in blindly asking for the code. Looking forward to the next one! Cheers.

    • @sigmarulesog984
      @sigmarulesog984 2 роки тому +4

      Oh wow. That's a lot of pride with as if you just made it to the moon.

  • @randomuser66438
    @randomuser66438 5 років тому +191

    - Approaching truck on left Lane
    - "Turn left"

    • @lrdyeah
      @lrdyeah 5 років тому +35

      WebDev feel like its just tellin you to stay centered in the lane the whole time, not really to change lanes, at least thats what i get from the crosshair in the middle of the screen

    • @randomuser66438
      @randomuser66438 5 років тому +1

      @@lrdyeah To be fair I didn't notice that thing in there lol

  • @imkronos_me
    @imkronos_me 5 років тому +115

    0:37 see the reflection on hood...

    • @amp08021
      @amp08021 5 років тому +1

      Where's the issue?

    • @imkronos_me
      @imkronos_me 5 років тому +22

      @@amp08021 motion tracking in reflection on hood!!
      Weird! ig!

    • @amp08021
      @amp08021 5 років тому +1

      @@imkronos_me I don't think this should cause any problems though

    • @imkronos_me
      @imkronos_me 5 років тому +47

      @@amp08021 i think the video is edited!

    • @Scafidi616
      @Scafidi616 5 років тому +1

      Of course... the algorithm can detect the reflections, but if that would be real, it looks different... Logic

  • @jamespowell7231
    @jamespowell7231 5 років тому +1

    I'm getting the idea that I need to build this into my windshield.

  • @thebestnigga174
    @thebestnigga174 5 років тому +25

    Only programmers and engineers understand this .
    It was amazing and interesting

    • @user-wd8wx5md5z
      @user-wd8wx5md5z 5 років тому +9

      Probably yeah. My girlfriend does NOT see anything exciting here.
      It looks so trivial to most people just before they know how to drive a car with their hands.

    • @tri1033
      @tri1033 4 роки тому

      Why would a normal person watch computer vision video

    • @est9949
      @est9949 3 роки тому

      Mathematicians developed all the fundamentals for this. Engineers only make use of the library someone wrote. I'm saying this as an engineer who loves to actually understand how the algorithms work.

    • @hellobro9280
      @hellobro9280 Рік тому

      @@est9949 who cares?

  • @berkaykyoglu4936
    @berkaykyoglu4936 5 місяців тому +1

    Congratulations for your works

  • @shashwatdalakoti4998
    @shashwatdalakoti4998 4 роки тому +11

    I want to know what Fusion With Steering Advise feature has been smoking

  • @newtonmunene
    @newtonmunene 5 років тому +58

    I really wanted to see him change lanes

  • @yangding380
    @yangding380 3 роки тому +2

    Could you tell me how much delay you have? That's from the time you begin to take the picture to the time the program identifies all the objects?

  • @aditisrivastava7079
    @aditisrivastava7079 4 роки тому

    This is simply WOW

  • @sajjanpaudel3257
    @sajjanpaudel3257 2 роки тому

    its soo cool bro! Hat's off!!!

  • @JohnWayne99999a
    @JohnWayne99999a 4 роки тому +2

    Is there any way to build a dashcam out of this?...I have been looking for a solution the whole day long and all I got is a major headache

  • @maxfrischdev
    @maxfrischdev 7 місяців тому

    That might sound weird, but watching this gave me the same feeling as watching some Superhero Movie where the power is released/revealed (or Dragonball Power ups😂)
    Awesome examples, just beautiful! Thanks ❤

  • @rajharry1378
    @rajharry1378 5 років тому +5

    Awesome Work Man...Keep Going.....
    If you make some tutorials on this then it will be very useful for most of the Computer Vision enthusiast and beginners

    • @jamesbarker6373
      @jamesbarker6373 5 років тому

      Open CV is open source. This guy didn't create it.

    • @rajharry1378
      @rajharry1378 5 років тому +1

      Hey @@jamesbarker6373 !!!
      My interest is to know how he did the object detection.
      That's why I mentioned that tutorial for object detection like he did.

    • @jamesbarker6373
      @jamesbarker6373 5 років тому

      @@rajharry1378 Google OpenCV. They have tutorials there.

    • @jamesbarker6373
      @jamesbarker6373 5 років тому

      @@rajharry1378 docs.opencv.org/3.4/d7/d8b/tutorial_py_lucas_kanade.html

    • @rajharry1378
      @rajharry1378 5 років тому

      @@@jamesbarker6373
      Thanks....

  • @abraham1798
    @abraham1798 5 років тому

    Fusion with steering advise is in track motion?

  • @nightconceptproduction8299
    @nightconceptproduction8299 5 років тому +20

    I already do that with my brain that’s why I’m Subaru’s finest rally driver

  • @vaibhavgoyal9056
    @vaibhavgoyal9056 5 років тому +3

    It would have been nice if the the video was not sped up. What is the actual framerate you are getting at full resolution?

  • @prajitr21
    @prajitr21 2 роки тому

    ผลงานเยี่ยมมากครับ ขอชื่นชม แต่ถ้ามาชนบท เส้นขาวตีมั่วไปหมด 555 เดาว่าคง error marking

  • @Aol8887
    @Aol8887 4 роки тому +1

    But why driving in the second lane when not passing?

  • @leonle2689
    @leonle2689 4 роки тому +3

    Goodjob mate! Btw, can you tell me which processor or pc that you used for processing thing? Thank you)

  • @Jay-uu5lu
    @Jay-uu5lu 8 місяців тому

    How do you get it to do something like turn on a servo or turn on a light if it detects something like a car?

  • @ktpchannel6184
    @ktpchannel6184 5 років тому

    เจ๋งมากคับ

  • @moazelsawaf2000
    @moazelsawaf2000 5 років тому

    Great ❤️

  • @nate6692
    @nate6692 5 років тому +2

    Let's see what it does in construction zones where the old lane markers veer hard right into a barricade.

    • @TheRealAfroRick
      @TheRealAfroRick 4 роки тому

      It would rely on object detection to know that action would be stupid.

  • @2699811
    @2699811 5 років тому

    How can I find same input video?

  • @mcmormus
    @mcmormus 4 роки тому +5

    Can I find documentation somewhere? I would like to lern this myself, and this is the best solution I could find so far.

    • @reazonsraj
      @reazonsraj 3 роки тому

      u can learning machine learning and deep learning he is opencv which is computer vision library for object car and lane detection u can learn it do learn machine learning and deep learning

  • @robinrai9794
    @robinrai9794 6 років тому +10

    does it work on rain?

    • @humanity5175
      @humanity5175 4 роки тому

      I guest , it is depending on the training data set

  • @老农民-zhao
    @老农民-zhao 5 років тому +2

    For the objective detection, either YOLO algorithm or Faster region proposal CNN algorithm can handle that well

    • @mauriciocortazar9604
      @mauriciocortazar9604 5 років тому +1

      Indeed. Tensorflow use Faster R-CNN, see the github repo

    • @user-wd8wx5md5z
      @user-wd8wx5md5z 5 років тому

      @@mauriciocortazar9604 Why not YOLO instead ? Is there any advantage to use Faster RCNN that I dont know ?

    • @mauriciocortazar9604
      @mauriciocortazar9604 5 років тому

      @@user-wd8wx5md5z Althought YOLO is faster than Faster R-CNN, YOLO fails detecting smaller objects. Another reason is because YOLO is more recent than the former.

    • @empyrionin
      @empyrionin 4 роки тому

      @@mauriciocortazar9604 YOLO V3 is now better at detecting objects of 3 different scales, including smaller objects due to some more downscaling layers added to it. This makes it slightly slower though. But you can't have both.

  • @mvndu2585
    @mvndu2585 5 років тому

    correct me if im wrong;
    Using hough transform to detect the lines;
    using tensorflow api for object detection;
    and then what?
    please advice me on how to implement the steering advice method.
    all i can break from the video is : you are using the 2 lines to get the mid point between the 2 lines. and how does that work?

    • @jackpaul9393
      @jackpaul9393 5 років тому

      ua-cam.com/video/821ZnewFLcY/v-deo.html
      Watch this and view description for codes, I hope you will get clear understanding about this concept.

  • @lancereyesromero7811
    @lancereyesromero7811 4 роки тому

    is there any way that you can run this through a mobile phone? I mean using your mobile phone's processing power. its a bit sci-fi but I want to make a helmet with an fpv screen. having camera's outside. day camera, night camera, infrared/thermal camera. oriented front, rear and sides. not showing all camera's at once. but you can switch between them wherever you want.

    • @lancereyesromero7811
      @lancereyesromero7811 4 роки тому

      it doesn't need to identify every single thing. doesn't have to recognize the road. just vehicles and pedestrian.

  • @ankitchawla6600
    @ankitchawla6600 5 років тому

    Is there any other method except averaging out left and right lane separately ?

    • @empyrionin
      @empyrionin 4 роки тому

      Inform lanes of each other and admit a maximum curvature, a minimum distance between lane separation lines and inform lane detection of likely lane shape, width and curvature from a GPS and a map. Many things you can do. Stuff gets messy when you have sun glints, reflections, wet asphalt, differing colors of concrete (bridge, roads repaired) or other lines such as tire marks. Honestly, pure OpenCV for this is not enough. You'd need a neural network too.

  • @MrMBSonic
    @MrMBSonic 5 років тому

    Awesome

  • @user-sp6jr5ju7i
    @user-sp6jr5ju7i 5 років тому

    it's cool ,bro

  • @user-gz9vm3bv1s
    @user-gz9vm3bv1s 5 років тому

    how to do this in google colab,I want to use colab to do just like this

  • @tanujkumawat5727
    @tanujkumawat5727 4 роки тому

    Can u suggest the object detection course

  • @celvinwahyu2584
    @celvinwahyu2584 2 роки тому

    how do you use the code? maybe you can make a tutorial

  • @amit_tiger63
    @amit_tiger63 9 місяців тому +1

    Please send the code of lane detection

  • @samirosmanl4802
    @samirosmanl4802 2 роки тому

    Sir I need tagged vehicle type dataset can you share a source?

  • @kevinjia5432
    @kevinjia5432 5 років тому +1

    I wander what the motion tracking is used for and how you accomplished it. That's about my research, please tell me. Thx

    • @o_poky9359
      @o_poky9359 3 роки тому

      Google motion tracking. As simple as that

  • @1UniverseGames
    @1UniverseGames 3 роки тому +3

    So cool.
    Can you please help me to get the source code for learn it.

  • @Music-lv8xf
    @Music-lv8xf 5 років тому

    is this the real speed of the video when detecting some lane? or anything that you present in this video??

    • @sebastianliendo6579
      @sebastianliendo6579 5 років тому

      In the object detection case, processing one frame takes ~6 secs on CPU and ~0.8 on GPU,. The lane detection is fairly fast in terms of processing time. I don't know about the motion tracking though. Probably what he did is record the video and then post-process it...

    • @Music-lv8xf
      @Music-lv8xf 5 років тому

      @@sebastianliendo6579 would mind check this code?? I am having a problem it consumes so much memory around 2gb and above i don't know why,
      private void timer1_Tick(object sender, EventArgs e)
      {
      using (Image nextFrame = captureIP.QueryFrame().ToImage < Bgr,byte>())
      {
      if (nextFrame != null)
      {
      // There is only one channel (gray scale), hence the zero index
      // var faces = nextFrame.DetectHaarCascade(haar)[0];
      Image grayframe = nextFrame.Convert();
      var faces = haar.DetectMultiScale(grayframe, 1.3, 4, /*new Size(nextFrame.Width / 8, nextFrame.Height / 8)*/new Size(420,300));
      foreach (var face in faces)
      {
      nextFrame.Draw(face, new Bgr(0, double.MaxValue, 0), 3);
      }
      pictureBox1.Image = nextFrame.ToBitmap();
      }
      }
      }
      private void Form1_Load(object sender, EventArgs e)
      {
      string facePath = Path.GetFullPath(@"../../data/haarcascade_frontalface_default.xml");
      haar = new CascadeClassifier(facePath);
      captureIP = new VideoCapture("rtsp ip cam link");
      }

  • @ClevelandBrowns32
    @ClevelandBrowns32 5 років тому

    yea but how long to prcoess that video.....

  • @masudofficial76news12
    @masudofficial76news12 2 роки тому

    ❤️

  • @SivaneshMuneisvaran
    @SivaneshMuneisvaran 5 років тому

    I want the tutorial..anyone can help me?

  • @JuanSanchez-rb4qu
    @JuanSanchez-rb4qu 6 років тому

    Are you able to measure distances too?

  • @hfe1833
    @hfe1833 3 роки тому

    What is your set up?

  • @philippurwoko
    @philippurwoko 4 роки тому

    Whats the music ?

  • @mybirds2525
    @mybirds2525 5 років тому

    You guys need to add a time decayed persistence of objects in your process

    • @Bl4ck309
      @Bl4ck309 5 років тому

      how in the world did you got verified with 28 subcribers

    • @mybirds2525
      @mybirds2525 5 років тому

      @@Bl4ck309 Go get a life. Damned if I know!

  • @alisatheeralap8763
    @alisatheeralap8763 2 роки тому

    สวัสดีค่า เห็น Test ถนนในไทย อยากจะขอคำแนะนำหน่อยได้ไหมคะ ^^

  • @damianwysokinski3285
    @damianwysokinski3285 5 років тому +1

    Aimbot activated

  • @gunip.7109
    @gunip.7109 6 років тому

    ติดตามครับ​ อยากได้ความรู้เพิ่มเติม

  • @raghuveershinde5728
    @raghuveershinde5728 2 роки тому

    Please Can you make complete tutorial on this how to make it
    And explanations

  • @magi987
    @magi987 5 років тому +7

    Can we have the full Surce Code

  • @dasport9677
    @dasport9677 3 роки тому

    i need good course to make a good project like that

  • @zrlcproject
    @zrlcproject 3 роки тому

    How it's work?

  • @rajuyadav1271
    @rajuyadav1271 3 роки тому

    Kindly share a video with live coding please

  • @dr.mukulkanojia
    @dr.mukulkanojia 5 років тому

    Ya, do that on a foggy day...

  • @skyacaniadev2229
    @skyacaniadev2229 5 років тому +1

    It seems that some of the predictions are dangerously wrong...

  • @mayankraj9864
    @mayankraj9864 6 років тому +7

    Dear sir, How fusion of opencv and tensorflow works in real time with a webcam. Can you tell me the process? I am not asking for code but I wanna know how fusion works. or you have used the tensorflow output as the input for opencv for fusion. Kindly reply and guide.

    • @allmightqs1679
      @allmightqs1679 6 років тому

      Mayank Raj fusion?

    • @ivarvaw
      @ivarvaw 5 років тому

      He probably means: how to use a TensorFlow model in OpenCV.

    • @allmightqs1679
      @allmightqs1679 5 років тому +1

      Oh? If that's the case it's a simple case of acquiring your data through openCV and using that as training data for your tensor flow model. Think of openCV as a glorified camera that takes snaps
      For example, the lane detection done is done using Lucas-Kanade method(irrelevant) and the cars are detected using tensorflow.

    • @covernhacvang6458
      @covernhacvang6458 5 років тому

      @Ivar van Wooning This is guider video ua-cam.com/video/mm8GWRRn9L0/v-deo.html

  • @Arrato1977
    @Arrato1977 5 років тому +8

    can you make tutorial how you achieved these huge achievemenst ?

  • @AshokKumar_2216
    @AshokKumar_2216 3 роки тому

    I think this features are not in Tesla car
    Nice work

  • @devflugelo1914
    @devflugelo1914 3 роки тому

    fps ?

  • @nagarjunareddipaku678
    @nagarjunareddipaku678 5 років тому +2

    Source code please

  • @aydinaltun3816
    @aydinaltun3816 3 роки тому

    i did similar thing on Carla simulator

  • @movocode
    @movocode 4 роки тому

    source code?

  • @lrdyeah
    @lrdyeah 5 років тому

    What is motion tracking?

  • @randomman3361
    @randomman3361 3 роки тому

    Posted on 1 april, coincidence?

  • @dasport9677
    @dasport9677 3 роки тому

    are that project need database

  • @mugg8516
    @mugg8516 2 роки тому

    Cool, change lanes, thas really cool, lol

  • @fasihuddin2620
    @fasihuddin2620 4 роки тому +1

    Hi I am working on OD project using Tensorflow OD api but getting an inference time of 0.22 second for single frame can you tell me how did you detect with this speed you are showing remainder I am on CPU

    • @sineme
      @sineme 4 роки тому

      if you are using a cpu instead of a gpu then that's the reason.

  • @leonkernan
    @leonkernan 5 років тому +2

    So people see turn left and assume it means 90 degrees? It could mean turn left .01 degrees.

  • @pastuh
    @pastuh 2 роки тому

    turn right :))))))))

  • @tuhinkumardolai9836
    @tuhinkumardolai9836 3 роки тому +2

    sir where from we learn about it

  • @mrlive221
    @mrlive221 5 років тому

    Where I can find tutorial about tensorflow and opencv together?

    • @LeahLundqvist
      @LeahLundqvist 5 років тому

      That really depends on what you want to do with it, any more specific details?

    • @mrlive221
      @mrlive221 5 років тому

      hey thanks , i want to analyse video data with tensorflow

    • @LeahLundqvist
      @LeahLundqvist 5 років тому

      @@mrlive221 then what do you need opencv for?

    • @mrlive221
      @mrlive221 5 років тому

      @@LeahLundqvist ,i want to use tensorflow with webcame like for gesture recognition

    • @mrlive221
      @mrlive221 5 років тому

      @@LeahLundqvist , do you know howto use both ?

  • @papaassanediop2538
    @papaassanediop2538 3 роки тому

    code source ? svp

  • @EpicLPer
    @EpicLPer 5 років тому +1

    This is definitely not in real time and rendered in after the footage was recorded... Still not bad but nowhere near "Tesla level".

    • @piexactlyequalsthree
      @piexactlyequalsthree 5 років тому +2

      Tesla is still not bad but nowhere near space shuttle level.

    • @my3bikaht88
      @my3bikaht88 5 років тому

      why not? you only need extra capacity for video coder

  • @granatapfel6661
    @granatapfel6661 Рік тому

    Did you use exactly the code from the example?

  • @furkancoskun3505
    @furkancoskun3505 5 місяців тому

    can you share your code?

  • @mambotrader
    @mambotrader 5 років тому

    The direction was wrong

  • @boquangdong
    @boquangdong 3 роки тому +1

    can you share me your code? this is it's a good project

  • @user-vm9gx4so4x
    @user-vm9gx4so4x 4 роки тому

    с вертолета с машины обнаружили устройствам передали и т.д. это мы не умеем.

  •  3 роки тому

    Like technology opencv

  • @yiyangpeng5758
    @yiyangpeng5758 5 років тому

    car's ap is too low

  • @kavinkumar7591
    @kavinkumar7591 5 років тому

    code

  • @stevesingh104
    @stevesingh104 4 роки тому +2

    Hello it was amazing could you help me to make this project

  • @ddossexhot136
    @ddossexhot136 3 роки тому

    thaiii
    *--*

  • @kanjiladva7635
    @kanjiladva7635 5 років тому

    Judgment day is coming soon guys lolz

  • @anikevin
    @anikevin 3 роки тому

    1:19 bruh

  • @fpgamachine
    @fpgamachine 5 років тому

    Too sentimental..

  • @user-ff8ig3sq9j
    @user-ff8ig3sq9j 3 роки тому

    ช่องของคนไทยป่าวครับเห็นชื่อเหมือนคนไทยเลย

  • @gbroton
    @gbroton 5 років тому

    Just Google Comma.ai

  • @zenhsuld
    @zenhsuld 5 років тому +1

    Great.., can u share source code

    • @allmightqs1679
      @allmightqs1679 5 років тому +1

      But it's really really easy. Why do you want the code?

    • @priyanandamuri226
      @priyanandamuri226 5 років тому

      did u got the output?

    • @allmightqs1679
      @allmightqs1679 5 років тому

      @@priyanandamuri226 yeah

    • @priyanandamuri226
      @priyanandamuri226 5 років тому

      can u give me ur contact number?if u dont mind...because iam doing this as my final yearB.Tech project..i want some help :) plz rply me fast

    • @user-ru7im4kz2g
      @user-ru7im4kz2g 4 роки тому

      @@allmightqs1679 no.

  • @franklynxavier5643
    @franklynxavier5643 3 роки тому

    Check this course for an in-depth explanation of OpenCV from beginner to advanced: ​ua-cam.com/video/gLDJEY49M38/v-deo.html​

  • @user-fx7wj4rj9n
    @user-fx7wj4rj9n 5 років тому +1

    чушь какая-то.

  • @mch6645
    @mch6645 5 років тому +3

    I don't think it's accurate enough. Your lane tracking method still needs to be optimized.

  • @Al_skeptical
    @Al_skeptical 5 років тому

    Python

  • @varunmahanot5766
    @varunmahanot5766 5 років тому

    *d