Python Project Tutorial- Vehicle Detection And Counting using OpenCV | Vehicle Counting using OpenCV

Поделиться
HTML-код
  • Опубликовано: 5 июн 2021
  • Hey everyone,
    In this video, I’ll explain why and take you through how I built it, discussing how it works, how I learned the libraries used, the components of the system, the algorithms and models I experimented with, and the results obtained.
    Follow me on LinkedIn
    / kiran-kamble-947aa2213
    Download video:
    drive.google.com/file/d/1aUI1...
    Vehicle counter Download source code
    imojo.in/5RkC9x
    Social Distancing Detector Download Source code
    imojo.in/1cEn4O9
    Hospital Management Source Code Download Link:
    imojo.in/ALqwwo
    Library management Download source code:
    imojo.in/8Rxz8P
    Pharmacy Management Download Source Code
    imojo.in/6h4a0i
    Follow Me On Instagram:
    / codewithkiran_
    Face Recognition Full PlayList:
    • How To Create Advance ...
    Hand Tracking Project:
    • Python Project - Hand ...
    Hotel management system project:
    • 1/6 - How to create ho...
    Hotel Project playlist:
    • How to Create hotel ma...
    Login system:
    • How to create login sy...
    Register page:
    • #Part1 How To Create R...
    Hospital management system :
    • Hospital management sy...
    Library management system:
    • Library management sys...
    Pharmacy management system:
    • Pharmacy management sy...
    Student management system :
    • Video
    Alexa in Hindi:
    • how to create alexa in...
    Build your own Text-to-Speech Audiobooks :
    • Speech recognition usi...
    Our Queries:
    vehicle detection and counting using opencv visual studio code
    vehicle counting opencv python
    car detection and counting - opencv
    opencv vehicle detection and tracking
    opencv object detection
    vehicle detection opencv python
    vehicle counting using python
    vehicle counting using opencv
    vehicle counting
    vehicle counting and classification
    vehicle counting and classification using opencv python
    vehicle counting and classification using image processing by opencv
    car detection
    python

Комментарии • 178

  • @pranay6708
    @pranay6708 2 года назад +3

    superb projects to practice and understanding the concepts ... thanks a lot sir ...

  • @GamerBoy-fe3ey
    @GamerBoy-fe3ey 3 года назад +2

    1 of the best channel for practicals

  • @SathishGamer
    @SathishGamer Год назад +5

    Bro, you deserve more subs!
    Even though I can't understand your language, the class is interesting to watch and useful to learn by your process

  • @balasahebkamble8643
    @balasahebkamble8643 3 года назад +5

    Very interesting project sir👌👍

  • @sassolinosc1067
    @sassolinosc1067 2 года назад +9

    Interesting project!
    An English version would be great, or at least subtitles.
    Thank you for your time

  • @hasanshaikh5565
    @hasanshaikh5565 2 года назад

    Nice project and great explanation

  • @Ronaldo_isG.O.A.T
    @Ronaldo_isG.O.A.T 3 года назад +3

    Best Project Ever 👍♥️

  • @sanketsuryawanshi
    @sanketsuryawanshi 3 года назад +5

    Thanks sir!!

  • @amna.sadiakorai
    @amna.sadiakorai Год назад

    Thanks for this amazing project!

  • @nadhiyakandaswami
    @nadhiyakandaswami 3 года назад +2

    Super bbb 👌👌👌sir Keep it up 👍

  • @muhamadhasan1070
    @muhamadhasan1070 Год назад

    superb, thanks for sharing sir

  • @abhinandanbhardwaj3393
    @abhinandanbhardwaj3393 2 года назад

    Amazing brother 👍

  • @sriram5675
    @sriram5675 2 года назад +1

    Thank you so much bro

  • @user-xo1vk1bl4t
    @user-xo1vk1bl4t Год назад

    Thank you very much.

  • @bishalrauniyar1133
    @bishalrauniyar1133 3 месяца назад

    Your all project is super awesome. It will be great if you could make deployment of it as well

  • @ahmedshaheedbarbhuiya5641
    @ahmedshaheedbarbhuiya5641 Год назад

    ❤ very much helpful

  • @adityanarayan3518
    @adityanarayan3518 2 года назад

    superb nice explaination

  • @shahriarsaikat5610
    @shahriarsaikat5610 2 года назад +7

    it is one of the best project of object detection .thank u sir , love from bangladesh

  • @godmummy3177
    @godmummy3177 3 года назад +11

    Superb work sir and very useful project 👌keep going👍

  • @MemeLesli
    @MemeLesli Год назад +1

    Sir, when i run whole the code, why the counter doesnt counting in the VEHICLE COUNTER?.

  • @JAHNAVITBBTCS
    @JAHNAVITBBTCS 2 года назад +1

    Sir can we use the same code for person counter also?

  • @trendyimpacttv
    @trendyimpacttv Год назад

    superb bro superb

  • @jonahokpe513
    @jonahokpe513 2 года назад

    I want to be able to count detected potholes from my model. How do I go about it

  • @AliRaza-gk5oe
    @AliRaza-gk5oe Год назад

    sir my visual studio output screen suddenly off during the execution of program in the end . from the starting its working correctly. plz tell me the solution

  • @muhammadharis6176
    @muhammadharis6176 2 года назад

    dear in this project camera is stationary and object is moving , so can you make a project in which camera is moving and object is stationary like detection of tree and counting on highway .

  • @sukhveerperon123
    @sukhveerperon123 Год назад

    Super bbb project 👌

  • @readbhagwatgeeta3810
    @readbhagwatgeeta3810 Год назад +1

    Sir, please tell how to deploy this project (end to end implementation)

  • @harshitdhiman6748
    @harshitdhiman6748 2 года назад

    could you please give the link of video (actual source of video, so we can find more such videos). or if you know such dataset

  • @akshpreetsingh2119
    @akshpreetsingh2119 2 года назад

    hello sir, sir when i use this code for another video so i dont get the required result as of in your video. I dont konw what the reason behind it. Can you please help me to solve it as the output screen in small screen visible no full screen be visible.

  • @gsunil3697
    @gsunil3697 2 года назад

    Bro is their any specific height and angle to install camera

  • @vivekmundra6163
    @vivekmundra6163 Год назад

    We calculated total vehicles on road..How can we count total vehicle going towards direction and total vehicle going opposite direction...plz share code applicable with this program

  • @udamagodwin4937
    @udamagodwin4937 Год назад

    I like your videos so much but please try and use English subtitles, thanks your consideration...

  • @21_08
    @21_08 2 года назад

    Can we detect it in real time using camera?

  • @justdoingodswork
    @justdoingodswork Год назад +1

    What is the hardware requirement to run these Algo? I was checking some processor such as jetson NaNo and Xavier got recommended but are expenses. So I want to know can I run these on Raspberry PI?

    • @MasterESE-mm4lx
      @MasterESE-mm4lx 4 месяца назад

      Certainly! The Raspberry Pi is capable of performing computer vision tasks such as object detection.

  • @gayathrisekar9226
    @gayathrisekar9226 Год назад

    Which algorithm is used to in this video sir?

  • @aartipatil1540
    @aartipatil1540 Год назад

    ModuleNotFoundError: No module named 'cv2' while runing the video i am getting this error ,even i have numpy in my pc
    PLEASE TELL ME THE SOLUTION

  • @Daniyal_Channel
    @Daniyal_Channel 2 года назад +1

    Hi.
    Im from indonesia.
    it is good to know that the AI is running.
    can we talk more about this?
    we are looking for vendors here which can support the AI solution especially parking lot (capture and parking)

    • @TauGaksih7
      @TauGaksih7 Год назад

      hallo bang saya juga dari indonesia kalau boleh nanya ini projeknya tentang apa ya
      apakah dataset ini harus di anotasi terlebuh dahulu?

  • @niazuddin4037
    @niazuddin4037 Год назад

    plzz make video on different types of vehicles count (such as two wheelers,buses,e-rickshaw,LCV,car etc)....categorise different vehicles count.

  • @tusharpanchal7534
    @tusharpanchal7534 3 года назад +3

    👍👍👍👍👍

  • @pavankristipati3924
    @pavankristipati3924 2 года назад +1

    Center=center_handle(x,y,w,h)
    Name error:'x' is not defined eroor came

  • @Nishita48
    @Nishita48 Год назад

    Sir Such a great video sir . Sir I want to know the code if we want to connect it with camera ?

  • @lifeofreha5857
    @lifeofreha5857 Год назад

    Any information about dataset used?

  • @tusharpanchal7534
    @tusharpanchal7534 3 года назад +2

    👍👍👍👍

  • @EngineerWalaTrader
    @EngineerWalaTrader 3 года назад +7

    Waw sir Fantastic ML/Ai project

  • @KK-cp8dd
    @KK-cp8dd Год назад

    By copying this path "pip install opencv-python" and pasting to cmd it is not downloading

  • @codewithkiran
    @codewithkiran  Год назад +5

    Guys use python version 3.8.5 mandatory

    • @marathirajesh1217
      @marathirajesh1217 4 месяца назад

      I want source code and two review ppts of this project??

    • @krishnadhiman4766
      @krishnadhiman4766 7 дней назад

      Sir aga python ka 3.12.4 version kara ga to koi dikat aya gi ?

  • @NadeemKhan-pg3zm
    @NadeemKhan-pg3zm 2 года назад +1

    sir is project ka frontend kya h and backend kya h?

  • @madeveraam5792
    @madeveraam5792 2 года назад

    It shows invalid syntax.
    What shall i do sir

  • @sanketsumpatam8909
    @sanketsumpatam8909 Год назад

    Which version used in this project Sir I'm facing errors in this project

  • @bishalrauniyar1133
    @bishalrauniyar1133 3 месяца назад

    can you make deployment of this project where in webapp we can upload video and it will count the in out for same

  • @taskinahamad9247
    @taskinahamad9247 2 года назад +3

    Sir Can you see the classification of the object
    e.g : truck ,bus ,car, bike .
    I mean detection counting & classification

    • @codewithkiran
      @codewithkiran  2 года назад +1

      Yes

    • @gsunil3697
      @gsunil3697 2 года назад

      @@codewithkiran can you provide that code or do another video

  • @tusharpanchal7534
    @tusharpanchal7534 3 года назад +2

    👍

  • @gsunil3697
    @gsunil3697 2 года назад

    What is fps rate of this code ??

  • @jericogarcia4482
    @jericogarcia4482 2 месяца назад

    Sir can I ask if how to use the real time output Video of cctv instead of mp4 file??

  • @robotsj2775
    @robotsj2775 2 года назад +4

    Sir i am getting error in tha algo =cv2.bgsegm.....
    Even after making correction in spelling of subtraction...
    Error is like cv2 dose not have bgsegn ...
    What should I do??

    • @keithfernandes6152
      @keithfernandes6152 2 года назад

      cv.createBackgroundSubtractorMOG2()

    • @Kishi1969
      @Kishi1969 2 года назад +1

      use "algo = cv2.createBackgroundSubtractorMOG2()"

    • @robotsj2775
      @robotsj2775 2 года назад

      🫂🫂🥺

    • @AliRaza-gk5oe
      @AliRaza-gk5oe Год назад

      @@Kishi1969 is it working correctly?? Because I'm trying many times in different ways (install "opencv-contrib-python" etc).

  • @user-vi4lf7bf1m
    @user-vi4lf7bf1m 2 года назад

    Can you upload one with english subtitles?

  • @amatsagar4420
    @amatsagar4420 Год назад

    Too many value to unpack (expected 2) this errors shows how to solve plzz help

  • @PANDURANG99
    @PANDURANG99 11 месяцев назад

    what about if same car come twice?

  • @HarshaSravani--c
    @HarshaSravani--c 3 года назад +2

    Is this code work for any input video??
    But for me it's not working with another input video

    • @codewithkiran
      @codewithkiran  3 года назад +1

      yes,but only input video vehicle

    • @HarshaSravani--c
      @HarshaSravani--c 3 года назад

      @@codewithkiran I did that but I got wrong count

  • @neelamkori8596
    @neelamkori8596 6 месяцев назад

    Sir is program me front end or backend kya h

  • @despairtohope3609
    @despairtohope3609 Год назад

    how to identify if vehicle is lmv, hmv or there is no vehicle

  • @anshucodevita7752
    @anshucodevita7752 2 года назад +1

    AttributeError: module 'cv2.cv2' has no attribute 'bgsegm'
    I am getting this error can you suggest???

    • @deepanadak1181
      @deepanadak1181 2 года назад

      Try using this in terminal or in cmd -
      pip install opencv-contrib-python

    • @pragya_mishra29
      @pragya_mishra29 Год назад

      @@deepanadak1181 Thankyou so much!😀

  • @shantilataachary2022
    @shantilataachary2022 3 месяца назад

    My video is not play in vs code what can I do sir ?

  • @user-re7ss7mv1z
    @user-re7ss7mv1z 10 месяцев назад

    Thank you so much, you help me a lot....
    Subscribe

  • @pamarthikanakaraja9812
    @pamarthikanakaraja9812 2 года назад

    Good Evening Sir
    I Saw the entire application programming for car counting i have one doubt sir in the demo video it counts bikes also. is it possible to count only four-wheeler sir kindly tell me your suggestions based on your experience? On our campus, our management asking me only to count cars that's why sir. kIndly tell me is it possible?

    • @codewithkiran
      @codewithkiran  2 года назад

      Vehicle counter algorithm will count every single vehicle be it four wheeler or two wheeler etc.
      You can do this work, you can count all these vehicles in different different part

    • @pamarthikanakaraja9812
      @pamarthikanakaraja9812 2 года назад

      @@codewithkiran thank you sir for your reply but confirm me only four wheeler count is possible? From the traffic?

    • @codewithkiran
      @codewithkiran  2 года назад

      It is possible but you have to make your own model

    • @sivaramakrishnathota8068
      @sivaramakrishnathota8068 Год назад

      Where should do coding

  • @AliRaza-gk5oe
    @AliRaza-gk5oe Год назад +1

    Make one video on cv2 has no attribute of 'bgsmgm'.

  • @vasundharaam3206
    @vasundharaam3206 2 года назад

    img_sub=algo.apply(blur) .......AttributeError: 'builtin_function_or_method' object has no attribute 'apply' ...how to resolve this issues sir?

  • @91-ritikjain36
    @91-ritikjain36 2 года назад

    make for java too

  • @pritishpattnaik4674
    @pritishpattnaik4674 2 года назад

    bhai i am not getting code suggestions , please help

  • @lakshmitulasi8197
    @lakshmitulasi8197 2 года назад +1

    kernel = cv2.getStructuringElement(cv2.MORPH_ELLIPSE (5,5))
    TypeError: 'int' object is not callable

    • @jongooding8895
      @jongooding8895 Год назад

      Sorry for the late reply - missing a comma:
      kernel = cv2.getStructuringElement(cv2.MORPH_CLOSE, (5,5))
      The way it is written you are trying to call a function MORPH_ELLIPSE(5,5) instead of specifying the shape and then the kernel size.

  • @webclips8605
    @webclips8605 Год назад

    Hi i'm getting this error that "module 'cv2' has no attribute 'bgsegm' "

    • @codewithkiran
      @codewithkiran  Год назад +1

      pip install opencv-contrib-python
      Also use python version 3.8.5

  • @ritika_thakur
    @ritika_thakur Год назад

    Ye project start krne c phle setup kaise kre ye invalid aise bta rha

  • @shaikzaveriya9764
    @shaikzaveriya9764 Год назад +1

    I'm getting error like:
    cv2.error: OpenCV(4.7.0) :-1: error: (-5:Bad argument) in function 'putText'...
    🥲🥲could u pls respond

  • @pratiksoundalkar2624
    @pratiksoundalkar2624 Год назад

    Sir ye ek hi vehicle ko 2 baar count kar raha hai.......
    Kya error ho sakti hai

  • @shilathapa404
    @shilathapa404 2 года назад +1

    hello sir, I ran the same code for different videos where the accuracy seems to be less because of various factors and I am known why because of intensity, other things. So, do you have any idea where I can get such videos like this one?

    • @shanukatiyar2742
      @shanukatiyar2742 Год назад

      hey !
      use this
      cv2.createbackgraoundMOG2(history=100, threshold=200)

    • @arbajraza637
      @arbajraza637 Год назад

      @@shanukatiyar2742 hello brother help me in one thing

  • @Adarsh-ps8vz
    @Adarsh-ps8vz Год назад

    PS C:\Users\adars\OneDrive\Desktop\Python> python -u "c:\Users\adars\OneDrive\Desktop\Python\mini_project.py"
    Traceback (most recent call last):
    File "c:\Users\adars\OneDrive\Desktop\Python\mini_project.py", line 8, in
    algo = cv2.bgsegm.createBackgroundSubtractorMOG()
    AttributeError: module 'cv2' has no attribute 'bgsegm'
    PS C:\Users\adars\OneDrive\Desktop\Python>
    ye problem aa raha h mai kya karu ki code run kare

  • @sakreal-tu8ok
    @sakreal-tu8ok 4 месяца назад +1

    Bhai tere code run nahi ho rehe hai paise barbad chala gaya
    Vehicle count ka cv2 begsemi error AA Raha hai

  • @balvinderkumar6113
    @balvinderkumar6113 2 года назад

    hey buddy, i want to learn from u

  • @samirosmanl4802
    @samirosmanl4802 2 года назад

    Can you share me soruce for vehicle dataset. Example for vehicle brand, vehicle color, plate, like these?

  • @marathirajesh1217
    @marathirajesh1217 4 месяца назад

    I want source code and three review ppts of this project

  • @utkarshpandey3432
    @utkarshpandey3432 2 года назад

    Sir i purchased this project code
    But it is throwing error while running
    Attribute error : module cv2.cv2 has no attribute COLOR_BG2GRAY

    • @codewithkiran
      @codewithkiran  2 года назад

      Install this module👇
      pip install opencv-contrib-python

    • @utkarshpandey3432
      @utkarshpandey3432 2 года назад +1

      @@codewithkiran i have installed it eventhough same problem

    • @codewithkiran
      @codewithkiran  2 года назад

      Contact me Instagram

    • @utkarshpandey3432
      @utkarshpandey3432 2 года назад

      @@codewithkiran i have messaged you on insta
      With problem pic

    • @gsunil3697
      @gsunil3697 2 года назад +1

      @@utkarshpandey3432 even i too got same problem, help me

  • @goodappsinc5656
    @goodappsinc5656 Год назад

    Thank you Sir !!! (y)
    Kindly help pls.
    I want to change car detection to human detection..
    I tried But I failed Sir :((

  • @jackhammer6647
    @jackhammer6647 3 года назад +1

    can you make an English version or subtitle sir thanks

    • @codewithkiran
      @codewithkiran  3 года назад +2

      i try to give subtitles in english

  • @ravikantmishra4181
    @ravikantmishra4181 2 года назад +1

    Sir Iske backend mein kaun si language ya kya use hoga

  • @vasundharaam3206
    @vasundharaam3206 2 года назад

    sir import cv2 is not working..wt to do?

    • @codewithkiran
      @codewithkiran  2 года назад +1

      Also install this module 👇
      pip install opencv-contrib-python

  • @aydnaydin9109
    @aydnaydin9109 8 месяцев назад

    could you put English subs ? I really want to understand the details.

  • @funkyxmusic2233
    @funkyxmusic2233 2 года назад

    kindly provide the visual stiuudio link sir

  • @The_artt_factoryy
    @The_artt_factoryy 2 года назад +1

    Sir jb mne code kiya to isme vehicle k alawa v kuh extra things ko detect kr count kr rha h ....esa kyu ho rha h??

  • @chandnimehta8289
    @chandnimehta8289 2 года назад +1

    why import cv2 is showing error

  • @ranjithkanakaraj7572
    @ranjithkanakaraj7572 Год назад

    This project name please?

  • @merveozdas1193
    @merveozdas1193 2 года назад +1

    I couldn't run bgsegm

    • @shanukatiyar2742
      @shanukatiyar2742 2 года назад

      cv2.createBackgroundSubtractorMOG2() #For python3

    • @nandishk5966
      @nandishk5966 Месяц назад

      It helped me man thanks​@@shanukatiyar2742

  • @JithinVinod-eg7qx
    @JithinVinod-eg7qx 3 года назад

    Fantastic ,, plz send me source code

  • @Thorne991
    @Thorne991 6 месяцев назад

    How is someone supposed to get the source code since you can't take funds from the US?

  • @GyanSingh-iu7db
    @GyanSingh-iu7db Год назад

    Sir could you please provide this program, please share your detail , please reply

  • @merveozdas1193
    @merveozdas1193 2 года назад

    If you speak English, it would be better :), thank you for your sharing :)

  • @mashapimatimba8063
    @mashapimatimba8063 2 года назад

    Where can we find the source code?

    • @codewithkiran
      @codewithkiran  2 года назад

      In description

    • @mashapimatimba8063
      @mashapimatimba8063 2 года назад

      @@codewithkiran I want to purchase the code but I'm outside India. How else can I make the payment?

  • @rakeshkumarrout2629
    @rakeshkumarrout2629 Год назад

    Bhai this is a master piece really helped me.I got a task earlier i did not get the answer to it can you help me find it??
    Show the bounding boxes of each detected object along with the prediction
    probability real-time in the video .Make the bounding box green in color if it’s above 80
    otherwise red. kindly help.

  • @pratikjugantmohapatra18
    @pratikjugantmohapatra18 3 года назад

    sir can u provide us the code?

  • @321Suganthi
    @321Suganthi Год назад

    Can you explain in English

  • @paulodelfin6762
    @paulodelfin6762 2 года назад

    send me source code sir