Parking Space Counter using OpenCV Python | Computer Vision

Sdílet
Vložit
  • čas přidán 25. 12. 2021
  • In this tutorial, we are going to create a Parking Space Counter. We will find how many total cars are present and how many spaces are vacant to park. The best thing about this tutorial is that we will be using basic Image Processing techniques to solve this problem.
    🚀🚀 My Urdu/Hindi AI CZcams Channel 🚀🚀
    / @murtazahassan01
    Download Code and Files:
    www.computervision.zone/cours...
    Premium Courses:
    ✔️ Computer Vision Game Development Course:
    bit.ly/3ttLZ2s
    ✔️ Computer Vision with Arduino Course:
    bit.ly/3wzLB4m
    ✔️ Advanced Drone Programming Course:
    bit.ly/3qs3v5g
    ✔️ Learn to Build Computer Vision Mobile Apps:
    bit.ly/3uioY1J
    ✔️ Jetson Nano Premium Course:
    bit.ly/3L8uIlF
    ⚙️⚙️⚙️--My Gear - ⚙️⚙️⚙️
    👉 Complete Gear 💈: www.computervision.zone/tech-...
    👉 My PC Specs 🖥️: www.computervision.zone/tech-...
    👉 My Video Shooting Gear📽️ : www.computervision.zone/tech-...
    👉 My Laptops 💻: www.computervision.zone/tech-...
    👉 Educational Products🧑‍🎓: www.computervision.zone/tech-...
    👉 CZcams Starter Kit 🔴: www.computervision.zone/tech-...
    Follow Me:
    TikTok: bit.ly/3Vo76OQ
    Facebook Group: bit.ly/3irDcb7
    Discord: bit.ly/3JvyxAM
    Facebook Page: bit.ly/3IvpU7W
    Instagram : bit.ly/3NdGME3
    Website: bit.ly/3ICFTS0
    Github: bit.ly/3woU6PS
    #ComputerVision
    #OpenCV
    #CVZone

Komentáře • 197

  • @murtazasworkshop
    @murtazasworkshop  Před 2 lety +24

    The Video File and the code is now available to download from the following link: www.computervision.zone/courses/parking-space-counter/
    What project would you like me to make next ?

    • @actionkey8042
      @actionkey8042 Před 2 lety

      very VERY AWESOME))

    • @luis-alberto-nieto
      @luis-alberto-nieto Před 2 lety

      i think iwould be great if you can do a project count vehicules in a dron view with movement.!!

    • @giovani9560
      @giovani9560 Před 2 lety

      Please make face recognition with method

    • @user-tt5bg2gy9l
      @user-tt5bg2gy9l Před 2 lety +1

      Can I get the code for the same project on Matlab?

    • @shaomingtang1645
      @shaomingtang1645 Před 2 lety

      Sir for this project is got based on tensorflow? or only opencv?

  • @bandermaster81
    @bandermaster81 Před 2 lety +6

    I liked that we solved the problem without a classifying model, using image processing instead. I think that will be a good foundation for future projects.

  • @saikatmondal809
    @saikatmondal809 Před 2 lety +2

    Excellent project learned so many things in Opencv. 1)Find ROI in a image, 2) create position list of ROI, 3) dump position list in pickel file, 4) imageblur, 5) imagethresholding 6) count pixel of image 7) coloring, thickness and other operation with image count. and 8) most important mouse click operation on opencv.

  • @BillFrench
    @BillFrench Před 2 lety +14

    This is a great example of replacing the IoT with the (IoR Internet of Recognition), e.g., virtualized IoT sensors through machine vision. However, camera angle and height is critical and not always possible - think to floors in a parking tower. At Stream It we have used AI with multiple camera angles at low level angles to superimpose and extrapolate the view of the floor without such view being physically possible.

  • @adegbitekelvin3875
    @adegbitekelvin3875 Před 2 lety +3

    I love your introduction. Can't wait to try this.

  • @modernfusions1981
    @modernfusions1981 Před 2 lety

    This is very good. Nicely elaborated, eliminating hidden complexities.

  • @sergioernestotostadosanche5700

    I LOVE YOUR VIDEOS! A lot of thanks for your content. I wonder if you have a video about basics and concepts about Image Processing and some examples about its feature (i.e. Gaussian is X and is used for y), sometimes you used Gaussian or Blur techniques or packages that I don't recognize, so this is what I'll like in your future videos. Regards and excellent job!

  • @NKernytskyy
    @NKernytskyy Před 2 lety

    Amazingly educative tutorial!
    Apprecaite sharing sources.

  • @stanst2755
    @stanst2755 Před rokem

    Thanks for sharing this excellent project with details! For sure will work much faster than deep neural network as you mentioned.

  • @rparetti
    @rparetti Před 2 lety

    this project is very beautiful. your explanation is perfect, keep it up

  • @scounterscounter6702
    @scounterscounter6702 Před 6 měsíci

    2019 was my last development of this kind of stuff...yeaa...forgot a lot...nice video...slowly remember is coming back

  • @nrdesign1991
    @nrdesign1991 Před 2 lety +6

    I made something similar recently, reading the display of a musical keyboard playing its demo. OpenCV is awesome!

  • @flutterwithJosh
    @flutterwithJosh Před 2 lety +11

    how can I apply that in live video cam? hope it answer my question. thanks!

  • @AdityaP0704
    @AdityaP0704 Před 2 lety +3

    I loved your project! Learned so many new things! Keep up the good work!

    • @Raja.Singh.youtube
      @Raja.Singh.youtube Před rokem

      is the code available when we download the code and file from given download link?

  • @thiagosoares5052
    @thiagosoares5052 Před 2 lety

    Your channel is the best in this regard!

  • @BigerBoy
    @BigerBoy Před 2 lety +1

    Loved the video. Greetings from Puerto Rico🇵🇷

  • @samarthgupta2358
    @samarthgupta2358 Před měsícem

    Hey, It is my first project of computer vision. Nicely explained. Thank you so much for making it so simple and fun!

  • @SaifKhan-rr3er
    @SaifKhan-rr3er Před 2 lety +2

    Nice presentation. I don''t need to on Subtitles. Thank you very much for such helpful and nicely composed tutorial with explanation.

  • @programmingdigest7582
    @programmingdigest7582 Před 2 lety +1

    Keep up the great work ❤

  • @microsoftsarker
    @microsoftsarker Před 2 lety

    IT WORKED!! THANK YOU SO MUCH!! AND YES, LIKED AND SUBSCRIBED

  • @Jimmy_Neutron
    @Jimmy_Neutron Před 2 lety

    Amazing
    Love your work ❤❤

  • @abhishiktpeters2948
    @abhishiktpeters2948 Před rokem

    Thank You so much Sir. Beautifully explained!!!🙏

  • @shivaraghav2899
    @shivaraghav2899 Před 2 lety

    Wao I am feel happy and excited after watching this video....And I'm also want to learn these kind of thing..

  • @idhapratama5103
    @idhapratama5103 Před 2 lety

    hello murtaza , i'm one of your most lovely subcriber from indonesia ,can i ask you to make a tutorial for making pedestrian detection and counting with HOG using opencv cause i very intresting about it .and your tutorial so far was a best tutorial that i can get from youtube ,keep spirit to always make another people knowing new things . ☺

  • @rajarampejaver6689
    @rajarampejaver6689 Před 2 lety +2

    Problem is that most parking lot cameras are at severe angles and empty spots are often covered by parked cars. Thanks for your explanation, this is a nice intro to CV. But TLDR, the material could be covered in 10 mins.

  • @bintehawa7712
    @bintehawa7712 Před 2 lety

    A Gaye or chah Gaye ho Bhai .we need more videos on COmputer vision

  • @snkamleshvishnoi9328
    @snkamleshvishnoi9328 Před 2 lety +1

    great, now i have ms office activated, superb tutorial!!!

  • @joshuaPurushothaman_
    @joshuaPurushothaman_ Před 2 lety +3

    What about Canny edge detection instead of adaptive thresholding? And using contour areas instead of countNonZero?

  • @madhavmehto2261
    @madhavmehto2261 Před 2 lety

    It is very good project sir . you are doing a good job sir . I'm your big fan

  • @randomdyno
    @randomdyno Před 2 lety

    That is something unique and awesome ❤🥰

  • @inigoelias5690
    @inigoelias5690 Před rokem

    This video is amazing, thank you.

  • @gulrukh1386
    @gulrukh1386 Před 3 měsíci

    I like it very much, as I did Car Parking with Mask RCNN, but it was very heavy, and yours Car Parking is very efficient and impressive...
    Thanks for your new technique.
    best regards
    Gul Rukh

  • @jayantsinghrajput8199
    @jayantsinghrajput8199 Před 8 měsíci

    Appreciated you efforts sir. Keep uploading more such videos

  • @MrSkland
    @MrSkland Před 2 lety

    Cool!, What camera would be used to record an aerial view like the one in the video?

  • @Yougocean
    @Yougocean Před 2 lety

    Lovely post with helpful information. This tutorial ha really helped me a lot. I do like and enjoyed this cool video.

  • @savvaskeseoglou9026
    @savvaskeseoglou9026 Před 2 lety

    Excellent project!!!

  • @Sangamkumar017
    @Sangamkumar017 Před 2 lety

    Awesome project sir!!

  • @ecoders_channel
    @ecoders_channel Před 2 lety

    lost of thanks brother .for this video.
    learned a lot.

  • @foudilbelhadj
    @foudilbelhadj Před 2 lety

    Good job Murtaza !

  • @thedude333
    @thedude333 Před 2 lety

    Great video as always. I would love to see a video by you talking about multiple object tracking with unique id. Thanks

  • @TheCreoleBlanc
    @TheCreoleBlanc Před 2 lety

    Thank you and have a good year 2022.

  • @poojachumii.s6846
    @poojachumii.s6846 Před 2 měsíci

    thanks sir , your explations was superb

  • @choiroseparfumsidoarjo1106

    congratulations , this video es very great! , i will suggest it if possible ypu can make more videos with opencv and license plates!! in videos

  • @profnerd7357
    @profnerd7357 Před rokem

    I am really thankfull to you for your video on parking space counter, but I had a question about a possible new feature to the code. Can we somehow convert that camera feed with green and blue rectangles into a 2D illustration interface? An interface where users can see which spot is vacant and which is occupied?

  • @ayushgupta_3017
    @ayushgupta_3017 Před rokem

    sucessfully made it ☺Thanks

  • @nguyennhatquang4894
    @nguyennhatquang4894 Před 2 lety

    nice video, thanks you so much

  • @vinayakram5133
    @vinayakram5133 Před rokem

    Very useful sir 💫

  • @TheKingJoker666
    @TheKingJoker666 Před 2 lety +1

    I followed the instructions and it easily worked!

  • @risabella18
    @risabella18 Před 2 lety

    Thank you very much for clarification I must try this

  • @husamyusif6627
    @husamyusif6627 Před 2 lety +1

    Good video, you can open the image in paint and hover the mouse to get the x,y coordinates

  • @tahirmehmood4472
    @tahirmehmood4472 Před 2 lety +1

    Good work 👍

  • @jenniferwhite632
    @jenniferwhite632 Před 2 lety

    Perfect ❤❤

  • @flioink
    @flioink Před 2 lety +1

    Excellent, can you please make something like those 3d object/filter that attaches a custom 3d object to one's face, for example?
    I talking about putting virtual masks/glasses/hats.

  • @microsoftsarker
    @microsoftsarker Před 2 lety

    thanks for posting

  • @maikakanaka5416
    @maikakanaka5416 Před 2 lety

    Thank you very much master

  • @kenax83
    @kenax83 Před 11 měsíci +1

    Can i use a parking video on my own or no?
    If yes, will i be needing to edit anything except for the image and mp4 codes?

  • @maciejurbaniak1677
    @maciejurbaniak1677 Před 7 měsíci

    dude your pro

  • @daoudbelkadi9232
    @daoudbelkadi9232 Před 2 lety

    an excellent explanation , I just want to know how we can give an id for each car space ?thank you so much

  • @user-sn4wc2wx4g
    @user-sn4wc2wx4g Před 2 lety

    Great Video

  • @yasirali8409
    @yasirali8409 Před 2 lety

    Very good sir

  • @montecore6844
    @montecore6844 Před rokem

    Awesome!

  • @ahyin9567
    @ahyin9567 Před 2 lety +1

    wow this is very cool

  • @saram.1194
    @saram.1194 Před 3 měsíci

    youre amazing !

  • @markbeaver4806
    @markbeaver4806 Před 2 lety

    cool tutorial

  • @ThomasEricWendt
    @ThomasEricWendt Před 2 lety

    thanks for the vid

  • @karlcami
    @karlcami Před 2 lety +3

    Would you be able to capture this data through a drone? or it has to be a static/fixed camera?

  • @lastwish6428
    @lastwish6428 Před 2 lety

    A max 50 line code given this amount of output .
    Thanks for python.
    I wonder how many lines do we have to write in java or c or c++ 😂

  • @arafat877
    @arafat877 Před 2 lety +5

    Hi Mr Mortaza, when I try to run the main.py (with Trackbars), python prompts me an error telling me that polygons file is not found, and when I try to look for it in the zip file containing the necessary files, this one is missing, could you share it please ???

  • @rasimqasimov9879
    @rasimqasimov9879 Před 2 lety

    Hi but what if the ground and car's color will be similar will program then work properly ?

  • @vaelsonsantiago
    @vaelsonsantiago Před 2 lety

    nice job

  • @luis-alberto-nieto
    @luis-alberto-nieto Před 2 lety

    hi , i have signed up in you web , and i do it the project! Is great! , but i have problem to find a video compatible with the exercise. can you give a link to download a video , image ?? thanks for all

  • @evertongrant2814
    @evertongrant2814 Před 4 měsíci

    Video is great, but I was wondering if this car park will by used by cars only or motor bikes will use the parking space during the day, I was thinking if the pixel count well different between count with cars and the noise you get that produces counts less then 900?

  • @user-qn7de4gl1n
    @user-qn7de4gl1n Před 7 měsíci

    loved it

  • @NaelLilik
    @NaelLilik Před 2 lety

    Mantap, saya suka python CV

  • @vantho99
    @vantho99 Před 2 lety

    Good!

  • @alvarocabezasruiz6954
    @alvarocabezasruiz6954 Před 2 lety

    Can you please publish the raaw video? It´s difficult to find a parking video and yours is really good please can you publish the raw video somewhere?

  • @Raja.Singh.youtube
    @Raja.Singh.youtube Před rokem +1

    is the code available when we download the code and file from the given download link?

  • @joshuacampbell6772
    @joshuacampbell6772 Před rokem

    pretty new to this, would you all recommend me using my MAC for a project like this?

  • @starshipx1282
    @starshipx1282 Před 2 lety +1

    Can u do a vid about your life journey?

  • @GauravSharma-ze4cu
    @GauravSharma-ze4cu Před 2 lety

    Hlo ,this project seems to be interesting , but can u give more content or project in openCV in C++.

  • @Duru5738
    @Duru5738 Před rokem +2

    Hello
    Thanks for everything.
    Can you also share the "carPark.mp4" and "carParkImg.png" files?
    Kind regards...

  • @79Nardo
    @79Nardo Před 2 lety

    What IDE or code editor do u use? very good explanation and nice video! keep walking!

  • @AceGod7
    @AceGod7 Před 2 lety

    so if u get a cardboard board and occupy a car space u can fool the camera?

  • @root_will
    @root_will Před 2 lety +2

    Where do I find the video and the image?

  • @TauvicRitter
    @TauvicRitter Před 2 lety +10

    Can you make a device that can count traffic and it's speed and direction. Pedestrians, bicycle, cars, trucks. Position the device in your house and count traffic passing by. That's a useful system for traffic intensity and road safety at neighborhood level.

    • @BillFrench
      @BillFrench Před 2 lety

      We do that at Stream It.

    • @treijunta1467
      @treijunta1467 Před rokem

      @@BillFrench algún software de contar personas y vehículo detección humano con mi cámara de seguridad please

  • @kintipukintipu3987
    @kintipukintipu3987 Před 2 lety +1

    Great video! ..motorcycles ☹

  • @yusefturin2122
    @yusefturin2122 Před 2 lety

    amazing

  • @alvarocabezasruiz6954
    @alvarocabezasruiz6954 Před 2 lety

    I have a problem, when I create the "boxes" for each car only the last box is showed and pixels are only counted in that "box", can someone help me? I dont know why that happens? if i do the cv2.imshow(str(x*y),imgCrop) inside the FOR i got errors please help

  • @rochdichawali3150
    @rochdichawali3150 Před rokem

    THANKS!!!!

  • @abhijitbaruah2207
    @abhijitbaruah2207 Před 2 lety

    sir do biomedical advanced projects and also the leafe desease detection using uav and opencv

  • @soyuzbekorozbekuulu6346
    @soyuzbekorozbekuulu6346 Před 2 lety +1

    How tall the camera needs to be set?

  • @onemilliongecs
    @onemilliongecs Před měsícem

    thanks goat

  • @kaza6299
    @kaza6299 Před 2 lety

    Is it free to use in educational purpose. I need this in my college project as a part of a system ? Thanks in any case :D

  • @arjunbali2079
    @arjunbali2079 Před 2 lety

    thanks sir

  • @raaedalmayali3685
    @raaedalmayali3685 Před 2 lety

    Good

  • @anwarneja3642
    @anwarneja3642 Před měsícem

    With what browser d8d u manage to open it??vs code or other phyton

  • @asiyatv166
    @asiyatv166 Před 2 lety

    keep it up

  • @sethuraman9884
    @sethuraman9884 Před 8 měsíci

    Just a simple doubt if we implement this in real time then will the threshold value will not the same because of lightning condition ri8 once we fix the threshold value if the sun light is high or low how can I manage the threshold

  • @ashraybaru7346
    @ashraybaru7346 Před rokem

    sir can you tell me which algorithm is used while writing the code.

  • @mitya7068
    @mitya7068 Před 2 lety

    Sensei!