OpenCV Python Neural Network Autonomous RC Car

Поділитися
Вставка
  • Опубліковано 11 січ 2025
  • May 2015
    Self driving RC car:
    OpenCV neural network - Steering
    Haar-cascade classifiers - Stop sign and traffic light detection
    Ultrasonic sensor - Front collision avoidance
    Raspberry Pi - Data streaming (video and sensor)
    Arduino - RC car control
    BGM:
    [Hunter x Hunter 2011] Original Soundtrack 3
    28 - Holding A Card File üm-ün
    Apologize for the ad, at this moment, the bgm cannot be changed or removed.
    Source Code:
    github.com/ham...
    zhengludwig.wo...

КОМЕНТАРІ • 1,4 тис.

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

    never wear a green outfit infront of this car

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

      Tanvir Chowdhury lolololololoooloo

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

      but it recognizes rectangular traffic light shape and recognizes green light later. Not all green things. It should be under that shape

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

      @@science_mbg what is with programmers and jokes flying 3,000 miles above there heads

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

      @@ThatGuyDownInThe coundt get it that he might be sarcastic my bad

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

      @@science_mbg now I feel mean :/

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

    Fake. There is a small person inside the car

  • @henson2k
    @henson2k 8 років тому +1186

    Perhaps the only self driving Range Rover out there ;-)

    • @landroverfriends
      @landroverfriends 7 років тому +16

      I am studying Embedded System Development and I would find it awesome to go working for Land Rover. So maybe in the future there will be ;)

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

      Lucid Gaming No please don't work for that awful car company. I'd rather work for a company which makes reliable cars.

    • @landroverfriends
      @landroverfriends 7 років тому +1

      TheGrayWolf81 Whats the problem you had with the brand?

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

      They're just unreliable cars. My friend got a brand new one not too long ago and it's already having problems. Any other person I've known who has one has had problems with it (although some older models are nice and don't really have problems). I've never had much luck with English/British cars :/ But there are probably other people who love them and haven't had any problems yet. If I were to buy or do anything with a car, it'd be a Toyota or any other Japanese engineered car. They're the most damn reliable car I've ever owned and seen.

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

      Why do you have a verification badge

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

    Great Job!

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

      Im your follower and like you

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

      This game is amazing .
      Check it out
      ua-cam.com/video/MLcu3sBKhdE/v-deo.html.

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

      @@cybercodes369 Why should I trust a Microsoft Spy?

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

      @@benitokim1793 ok then keep sucking 😎

  • @Rether16
    @Rether16 4 роки тому +10

    Wow awesome work! Seems simple to most people but there is a lot of logic going on behind the scenes! Love it!

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

    People like you who perhaps do not have all the technical and financial support that could have, are the ones who truly make the future since with less they do much more, the truth my brother I congratulate you

  • @toadiri
    @toadiri 9 років тому +37

    congrats for this project dude. it's really brilliant and thx for sharing your work. u rock !!!

  • @geryfabrega6749
    @geryfabrega6749 4 роки тому +34

    The impressive part is that this was made 5 years ago before all these easy to use libraries.

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

      How did they managed to build it back then??

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

      They mentioned Opencv

  • @Tymczaq10
    @Tymczaq10 4 роки тому +51

    imagine making few of these cars and making mini city, then upscale this

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

    The Car is a paid actor

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

      Can confirm. I was the camera

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

    *why don't you make an udemy course on this topic!!*

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

      Because udemy is a platform that isnt to creators advantage, find a different platform

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

      Sound pretty good

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

      @@electronicsengineering7375 Thanks mate!

    • @centaurirobotics87
      @centaurirobotics87 4 роки тому +6

      Hey, check this tutorial series to make your own autonomous mobile robot centaurirobotics.in/learn/

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

      There is a github repo linked in the description. Just read the code

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

    Wow first I was getting old videos in recommendation and now I am getting the same video that I watched years back giving me LOL and nostalgic feeling altogether.

  • @apoorvpathak5378
    @apoorvpathak5378 4 роки тому +35

    This Guy: I finally did it.
    Stackoverflow: [Leonardo DiCaprio DRINKING MEME]

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

      PewPewZee LawL I'm not sure if you were joking or not or if you are a programmer but trust me, this was a joke lol and is probably correct

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

      nice

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

    I absolutely love the fact it's a red Range Rover. The most awesome vehicle out there and quite possibly its best color.

  • @fengyouliu8937
    @fengyouliu8937 4 роки тому +4

    1:43 the fact that it knows that there is space in between the obstacle and itself is pretty great, I though it had to wait until the obstacle was out of the frame.

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

      It's using Ultrasonic sensor to measure distance between obstacle and the car itself

  • @MuhammadBilal-lp8xx
    @MuhammadBilal-lp8xx 5 років тому

    i am computer vision engineer myself but this work that too 5 years past,,, this work of your astounds me

  • @raghudatheshgp6231
    @raghudatheshgp6231 8 років тому +30

    Nice work Wang it's good to see that you are sharing your knowledge with world.

  • @kirangowda624
    @kirangowda624 8 років тому

    This is the genius . Keep up the good work. This kind of videos motivates young programmers .

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

      Hey Kiran, if you plan to make your own autonomous mobile robot you can check this out
      centaurirobotics.in/learn/

  • @shiva9989509341
    @shiva9989509341 9 років тому +496

    please make an instructable

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

      Shiva Kumar Read his paper.

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

      Where can we read the paper

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

      @@harshitsomani1717 It's the last link in the video description.

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

    This is awesome! Please make a detailed video series on this project.

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

    Whoah! That is impressive! In fact, incredible!

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

    Looks great! Next step would be to get rid of the IR proximity sensor and detect obstacles via the camera alone.

  • @171Manoj
    @171Manoj 8 років тому +25

    Excellent work , image processing at its best . May I know how did you measure the distance between the car and Signal post ??

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

      Measure the distance between the camera and the bounding box of the detected object.

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

      Distance is one of the easiest things to do

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

      @@wangzheng7526 Can you please make a tutorial on this

  • @tdharmendra3204
    @tdharmendra3204 7 років тому

    Good work! Way too good to see some of the common sensors act too smart!

  • @devansh8095
    @devansh8095 4 роки тому +44

    Me: still
    Print("hello world)
    Output: Error EOF while scanning
    Computer shutdown
    Edit : oh need to edit this ... Guys I am trying to make a dumb joke and u guys are replying that" this is correct this is wrong"....... I know

    • @kennydiaz3080
      @kennydiaz3080 4 роки тому +4

      print() can’t be capitalized. And I did get the joke.

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

      I know guys what the error I am just kidding.
      I am also a python programmer,
      And about 'p' it's is becoz yt comments

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

      Wait I got it........... you are passing a double float. Please convert to cell array and import fun functions. Can you believe I failed my programming course work?

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

      def Print(text):
      print(text)

  • @bastiannenke7101
    @bastiannenke7101 7 років тому

    Respect. I don't understand much about programming but i bet it was a lot of work. And it's awesome

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

    Imagine having like 20 of these cars you could simulate road traffic with it

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

      They would all interfere with each other as he uses an ultrasonic transducer on the front that can't handle that. And the car doesn't look for other traffic at the intersection. And so on ...

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

    Arduino, sonar range finder, camera, opencv, pwm, lots of effort knowledge and intelligence. Nice

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

    This is the task that many beginner python programmers feel like they're ready for after making a "Hello World!" program

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

    Finally, technology and Hunter X Hunter combined.

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

    :o I remember I saw this many years ago, and it was my inspiration to do an AI course and learn a lot. I never got to do this though, hope I can soon!

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

      There is a MIT OCW course on AI. Course Number 6.034
      It is FREE.
      🙂

  • @AyushSharma-dn5mo
    @AyushSharma-dn5mo 4 роки тому

    So who made this is a "man of culture as well".
    P.s. The song in background is "Holding a Card File" from Hunter X Hunter Original Soundtrack.

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

      Yeah, it's in the description!

  • @abhishekkk95
    @abhishekkk95 4 роки тому +4

    Plot twist : A guy was controlling the car using remote

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

    Great work!! Appreciating your efforts..

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

      Hey Harikrishna, now you can make your own autonomous mobile robot. Check this out:
      centaurirobotics.in/learn/

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

    I am buying ruspberry.
    Looks really cool.
    Like.

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

    Yes it stops at red and goes at green. The big question though is if it speeds up at yellow! On a serious notes, great job!

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

    Incredible Peace Of Artwork There!!!

  • @icarus7471
    @icarus7471 7 років тому

    Great job brother I am truly amazed. I also thought of this kinda idea but didn't give it a shot.Great job man ,great job !!!!

  • @reyou7
    @reyou7 7 років тому +16

    Can you make step-by-step video tutorial for this? This is just amazing.

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

      yes plz send step bystep this projcet

    • @pperez1224
      @pperez1224 4 роки тому +4

      Sure , you just have to pay the price , you beggar!

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

      ua-cam.com/video/GnnFy0uFe3E/v-deo.html

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

      @@pperez1224 🙄🙌🤬

  • @JONOVID
    @JONOVID 7 років тому

    a good Autonomous car project. keep up the work!

  • @riteshmaheshwari5882
    @riteshmaheshwari5882 4 роки тому +19

    stuart little was there in the car.

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

    Great job! Excellent! One moment...
    In real life if there is no stop line, you should stop near traffic light, in one line. But it's a small issue)) Good luck!

  • @YurkerYT
    @YurkerYT 9 років тому +246

    Damn! you are good, Google should hire you to collaborate on their Autonomous car project.
    What's next? Autonomous drifting Nissan r34?

    • @wangzheng7526
      @wangzheng7526  9 років тому +66

      YurkerYT Haha, good observation! Maybe 86 as it's easier to drift... ?

    • @Ak-yz6td
      @Ak-yz6td 8 років тому +91

      Yea they would hire if he did it 30 years ago

    • @ManojFB
      @ManojFB 7 років тому +3

      Wang Zheng would you please share some tutorials. I am Python developer and I am interested in this field. please share some useful tutorials..

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

      Bro once you learn raspberry pi learn opencv machine learning and neural networks you will able to create this and more than this don't learn to make only a make your base strong you will able to make thousands of projects

    • @rey1242
      @rey1242 7 років тому +1

      Except that good dont meddle in such basic things, and instead research more professional and complicated works

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

    really nice work bro
    i was thinking about it that someone will definitilly have done it and then i find this video

  • @lissobone7635
    @lissobone7635 4 роки тому +4

    I am just so happy that there is no Windows.

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

    Why did i Just start loving OpenCV and going to learn more about it?

  • @barraolivier2582
    @barraolivier2582 7 років тому +28

    No, no, no. An R34GT-R will never be an obstacle in front !

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

    I like how this is build up. Using every single item you find in the household, ordenary cardboard, tape, womans hair bands... This is exactly how I would build it :D

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

    Now you can recreate that GTA SA mission with the RC helicopter carrying barrels.

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

    Wow a plend of neural and sensors it's great to watch

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

    In Soviet Russia, the car drives you

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

      LOL IDK Why Russian drivers are considered very bad

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

      @@prateekpanwar646
      I guess that joke could be switch to Communist China drivers now
      In Communist China, the leadership drives you

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

      пошел в жопу

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

      @@matveynelson2489 АХхахаах Бум

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

      @@timurbadretdinov9555 ?

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

    So he used a Hunter x Hunter Theme to describe the epicness. Smart!

  • @91722854
    @91722854 7 років тому +3

    dayum computer science rules, I a mech eng student and seeing these just made me feel that I'm ignorant. btw I am truly interested in machine learning ai and robotics, hope to work with u in the future if we ever get the chance.

  •  6 років тому +1

    Congratulations for your awesome job ;)

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

    "Mom, can we have tesla at home"
    "We already have tesla at home"
    Tesla at home:

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

    Looks like it only stops for obstacles, because of the ultrasound distance sensor at the front not opencv.

  • @eldhokurian5781
    @eldhokurian5781 8 років тому +109

    Please make a step by step video on how to make this

    • @birdost4872
      @birdost4872 8 років тому +56

      Yes such tutorial will be a big step for the losers like us

    • @limitless1692
      @limitless1692 7 років тому +116

      step 1 learn python
      step 2 learn aboun artificial neuronal networks ( the algo behind it )
      step 3 code it , make mistakes , find them and solve problems
      easy !

    • @zes3813
      @zes3813 7 років тому +2

      Bir Dost no such thing as l /w, just you are loserx or step by othersx, stupidx

    • @RobDawsonjr
      @RobDawsonjr 7 років тому +1

      Looking at the source code, i believe its a Haar Cascade

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

      @@limitless1692 i know python ....and some of it frameworks...i want to do AI but i don't where begin

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

    Amazing Interesting & Impressive. These types of video encourage me to code in python. Thanks! Keep share this types of ideas. Love. P.

  • @lrw0475
    @lrw0475 7 років тому +3

    That's an incredibly great piece of work. I'm wondering what the car will behave when it sees a car with a red light or a "stop" sign on the back?

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

    That nissan skyline gtr r34 just looks amazing

  • @r.taufikutomoiswanindrakus8538
    @r.taufikutomoiswanindrakus8538 4 роки тому +20

    imagine elon musk copy his code for tesla car

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

      Elon Musk has some slightly better hardware and software than a crappy Raspberry Pi and open source computer vision software.

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

    Yt:lets reccomend this 5yrs later

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

    It's 2018
    Now that car is flying

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

      It's 2020.. This car is in space now

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

      Its 2020 june, the car has travelled to parallel universe and came back

  • @dzintarstraupe
    @dzintarstraupe 7 років тому

    This shows how good are autonomous cars

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

    Actually this project is quite simple. It has been just elegantly displayed.

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

      Okay then explain the control system architecture, how the CV and image processing works. Could be easy but I'd like to hear!

  • @AmCanTech
    @AmCanTech 7 років тому

    Epic, Thank you for releasing the source code!

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

    Me:Watching a Remote controlled car yet it's called autonomous at 1am .
    Tesla entered the chat .
    Elon Musk is typing ......
    Elon Musk: I need you at my Tesla Gigafactory in Storey County,Nevada

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

    Really amazing!! If it comes in real life it will better for our country .

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

    background music is lit..🔥🔥

  • @next-level5663
    @next-level5663 4 роки тому

    Should Hire this man for future cars

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

    That’s how Tesla begin with the cars 🚙

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

    came for the opencv, stayed for the tunes.

  • @ParadiseQ
    @ParadiseQ 8 років тому +4

    I found this project interesting. However, it seems that there is no motor control from the Arduino or Rasperry Pi. I guess you are transferring the wireless signal back and using the remote the control the car...

    • @RachelPecio
      @RachelPecio 8 років тому +1

      there is motor control for RPi ;)

    • @israelgoytom6085
      @israelgoytom6085 8 років тому

      NO You are not right

    • @Chrrvn
      @Chrrvn 7 років тому

      So why there is ultrasonic sensor in front of the car ?

  • @wesleycatlett9144
    @wesleycatlett9144 11 місяців тому

    These on a model train layout would be nuts

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

    I read the description of your project on your wordpress and have a question if you don't mind: For your training dataset of input image and output direction input, did you hand label each of the images to have a certain output? For example, if the track is a slight left turn, did you take, assuming 10 fps, 30/40/50 images and hand label each to make a turn when you feel it is appropriate to make a turn? Thanks and great work!

    • @ThingsMihirDoes
      @ThingsMihirDoes 8 років тому +2

      I am curious to know about this too.. Is the training data hand labelled or you trained it by controlling the car via RC..

    • @lalala213
      @lalala213 8 років тому +3

      I just found out via his github and it confirmed my suspicions. He trains manually, saving a training image whenever he makes a keypress.

    • @oggy112
      @oggy112 7 років тому

      Nontheless still an impressive piece of engineering. Whatever you do in life there's room for improvement, he can improve the training.

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

    Great.❤️ WHY IT IS RECOMMENDED 5 YEARS LATER ALSO.🔥 🔥

  • @TanveerAhmed-yi9tq
    @TanveerAhmed-yi9tq 5 років тому +3

    Wang Zheng
    bro can you share the paper ?
    the link you have given is not working

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

    Nice work. I've made a vision based distance estimation using stereo camera. I really want to learn opencv and python when I do my research, but I learn slowly. It's look very cool. Hopefully I can learn the theory

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

      Same

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

      If you want to detect distance based on camera you need to use two camera to perform sensor fusion, just a single camera is not enough to measure a distance.

  • @truthinck8853
    @truthinck8853 8 років тому +9

    I'm curious to know why you chose mono vision instead of stereo vision?

    • @Aterrebgnuoy
      @Aterrebgnuoy 8 років тому +9

      He probably wanted to use that Raspberry Pi which only supports one camera at a time. Therefore, he used the ultrasonic sensor to detect depth instead.

    • @freezerbdn8358
      @freezerbdn8358 7 років тому

      Aterrebgnuoy you can use 2 camera using USB

    • @Dxeus
      @Dxeus 7 років тому +3

      Distance Measurement
      Raspberry Pi can only support one pi camera module. Using two USB web
      cameras will bring extra weight to the RC car and also seems
      unpractical. Therefore, monocular vision method is chosen.
      zhengludwig.wordpress.com/projects/self-driving-rc-car/

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

      There was no need for stereo vision. Stereo vision of for depth sensing and wider FOV. The ultrasonic sensor does the depth sensing while the FOV is good enough. So no need for stereo vision.
      FOV- Field of view

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

    came for the engineering stayed for the song

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

    what about keep left or right ? Like Australia is left drive, scan to left edge of road. ………. American is right drive.

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

      This isn't funny.

  • @ThecreeperKiller1234
    @ThecreeperKiller1234 7 років тому +1

    Only one thing left to do, make it smaller, try to fit the gear under the body of the car, I would say its hard but looking at what you have done here I think you're up to the challenge.

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

    Very impressive! 🤔

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

    Very nice project. Congratulations!

  • @Bisofication
    @Bisofication 8 років тому +4

    That R34 though

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

    Outstanding performance..dude we all will appreciate it if you make a step by step tutorial..

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

    great , it needs speed limit.

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

    Pretty cool, I was thinking about doing something like this back in 2015 and did some testing to see the feasibility of building autonomous racing robots with raspberry pi. The performance of python with openCV was too slow to process 30 frames per second based on simple benchmarks. I thought about off loading the image processing to a workstation, but decided to wait until raspberry pi got a faster processor. With raspberry pi 3 B+, I think it has just enough power to do it all on board without offloading the processing to a desktop or workstation.

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

    +Wang Zheng Thank you Wang, Would you tell me you training code that you used to train you haar classifier? I am working on same project and this is my training code:
    opencv_traincascade.exe -data hussein -vec sam.vec -bg neg1.txt -featureType LBP -numStages 6 -miniHitRate 0.999 -bt DAB -maxFalseAlarmRate 0.5 -numPos 900 -numNeg 2550 -featureType LBP -w 35 -h 62 -mode ALL -precalcValBufSize 1024 -precalcIdxBufSize 1024
    and this is my makesamples code:
    opencv_createsamples -info pose.txt -vec sam.vec -num 998 -w 35 -h 62
    but my classifier is still wont work well.
    last quesion:
    How did you calculate minHitRate, numStages ,FalseAlarmRate, numPps and numNeg?
    Thanks again

    • @wangzheng7526
      @wangzheng7526  9 років тому +7

      +Hussein Alaa
      Here is the training code for stop sign (on mac):
      opencv_traincascade -data data -vec samples.vec -bg negatives.txt -numStages 20 -minHitRate 0.999 -maxFalseAlarmRate 0.5 -numPos 800 -numNeg 400 -featureType HAAR -w 20 -h 20 -mode ALL -precalcValBufSize 5120 -precalcIdxBufSize 5120
      You need more stages to improve the result, I chose 20 stages (in fact, at stage 16, the acceptanceRatio is 400 : 8.33416e-05, which means the result is good enough, a couple more stages won't help much).
      Also, you might want to try HAAR featureType. LBP is good if you have high quality samples. The advantage of using LBP is not very significant in this stop sign case as it didn't take very long to train. Keeping your sample size small will reduce training time dramatically.
      0.999 and 0.5 are the common values for minHitRate and maxFalseAlarmRate set in training. You can read some articles about adaboost to dig more.
      Below shows the final training stage status of stop sign:
      .
      .
      .
      ===== TRAINING 19-stage =====
      Training until now has taken 0 days 0 hours 16 minutes 1 seconds.

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

      Hussein Alaa I’m also working on a similar project. Can you send me the documentation for your project? I’m having problems with Numpy.

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

    the algorithm explanation will be much better than music

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

    PLZ SAHRE WITH US YOUR PROGRAMMING AND FROM A to Z, HOW TO MADE THAT CAR

  • @HarshKumar-hy1ug
    @HarshKumar-hy1ug 7 років тому +1

    that was really cool... awesome work

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

    Can i use a normal webcam instead the raspberry one?

  • @saizenki
    @saizenki 7 років тому

    Fricking awesome ! Hats off dude.

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

    Plot twist : a person is controlling that car remotely
    😂😂😂😂lol

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

    Good lesson for those who are trying to pass their first driving test.

  • @IgnoreMyChan
    @IgnoreMyChan 7 років тому +11

    Most annoying music ever, though!

    • @mehmetnuriozdemir3933
      @mehmetnuriozdemir3933 7 років тому +1

      Dude wtf, I was just checking the comments to find out the name of the song and this is what I run into :D

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

      its an hunter x hunter OST called holding a card file :)

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

    Hello, your project is amazing, great job

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

    Great job but prepare for the night ride because every car has red light on their tail

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

    Tarzan in start up? Haha. Great jobs! Its actly 5 years ago.