Parking Space Counter using OpenCV Python | Computer Vision

Поділитися
Вставка
  • Опубліковано 24 сер 2024
  • 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 UA-cam Channel 🚀🚀
    / @murtazahassan01
    Download Code and Files:
    www.computervi...
    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.computervi...
    👉 My PC Specs 🖥️: www.computervi...
    👉 My Video Shooting Gear📽️ : www.computervi...
    👉 My Laptops 💻: www.computervi...
    👉 Educational Products🧑‍🎓: www.computervi...
    👉 UA-cam Starter Kit 🔴: www.computervi...
    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

КОМЕНТАРІ • 202

  • @murtazasworkshop
    @murtazasworkshop  2 роки тому +25

    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 2 роки тому

      very VERY AWESOME))

    • @luis-alberto-nieto
      @luis-alberto-nieto 2 роки тому

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

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

      Please make face recognition with method

    • @user-tt5bg2gy9l
      @user-tt5bg2gy9l 2 роки тому +1

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

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

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

  • @mrCetus
    @mrCetus 2 роки тому +11

    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.

  • @bandermaster81
    @bandermaster81 2 роки тому +7

    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.

  • @no_name2099
    @no_name2099 2 місяці тому

    This video is a life saver for students who are completely new to image processing. Thank u for this video.

  • @BillFrench
    @BillFrench 2 роки тому +15

    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.

  • @samarthgupta2358
    @samarthgupta2358 4 місяці тому

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

  • @scounterscounter6702
    @scounterscounter6702 9 місяців тому

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

  • @pinks3039
    @pinks3039 Місяць тому

    woow such a amazing video thank you so much this is very helpful for my project

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

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

    • @Raja.Singh.youtube
      @Raja.Singh.youtube Рік тому

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

  • @smeetnilvarna
    @smeetnilvarna 2 місяці тому

    This video was very helpful and informative! Keep it up and have a great life. You are doing a great job! I wish our professors were as helpful and good teachers as you are.

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

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

  • @snkamleshvishnoi9328
    @snkamleshvishnoi9328 2 роки тому +1

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

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

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

  • @nrdesign1991
    @nrdesign1991 2 роки тому +6

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

  • @BigerBoy
    @BigerBoy 2 роки тому +1

    Loved the video. Greetings from Puerto Rico🇵🇷

  • @joshuabiongPH
    @joshuabiongPH 2 роки тому +11

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

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

    Your channel is the best in this regard!

  • @rajarampejaver6689
    @rajarampejaver6689 2 роки тому +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.

  • @gulrukh1386
    @gulrukh1386 6 місяців тому

    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

  • @SaifKhan-rr3er
    @SaifKhan-rr3er 2 роки тому +2

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

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

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

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

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

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

    Thank you and have a good year 2022.

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

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

  • @poojachumii.s6846
    @poojachumii.s6846 5 місяців тому

    thanks sir , your explations was superb

  • @TheKingJoker666
    @TheKingJoker666 2 роки тому +1

    I followed the instructions and it easily worked!

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

    Amazingly educative tutorial!
    Apprecaite sharing sources.

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

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

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

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

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

    Appreciated you efforts sir. Keep uploading more such videos

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

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

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

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

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

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

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

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

  • @starshipx1282
    @starshipx1282 2 роки тому +1

    Can u do a vid about your life journey?

  • @sergioernestotostadosanche5700
    @sergioernestotostadosanche5700 2 роки тому +2

    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!

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

    Good job Murtaza !

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

    sucessfully made it ☺Thanks

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

    Thank you very much for clarification I must try this

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

    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 . ☺

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

    This video is amazing, thank you.

  • @ahyin9567
    @ahyin9567 2 роки тому +1

    wow this is very cool

  • @tahirmehmood4472
    @tahirmehmood4472 2 роки тому +1

    Good work 👍

  • @saram.1194
    @saram.1194 6 місяців тому

    youre amazing !

  • @programmingdigest7582
    @programmingdigest7582 2 роки тому +1

    Keep up the great work ❤

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

    Very useful sir 💫

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

    Thank you very much master

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

    thanks for posting

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

    Awesome project sir!!

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

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

  • @kintipukintipu3987
    @kintipukintipu3987 2 роки тому +1

    Great video! ..motorcycles ☹

  • @husamyusif6627
    @husamyusif6627 2 роки тому +1

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

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

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

  • @arafat877
    @arafat877 2 роки тому +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 ???

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

      same error bro ! did you solve it ? can you help me ??

  • @Raja.Singh.youtube
    @Raja.Singh.youtube Рік тому +1

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

  • @Hitesh-Salgotra
    @Hitesh-Salgotra 2 роки тому

    That is something unique and awesome ❤🥰

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

    Amazing
    Love your work ❤❤

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

    Excellent project!!!

  • @kenax83
    @kenax83 Рік тому +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?

  • @onemilliongecs
    @onemilliongecs 4 місяці тому

    thanks goat

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

    nice video, thanks you so much

  • @flioink
    @flioink 2 роки тому +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.

  • @TauvicRitter
    @TauvicRitter 2 роки тому +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 2 роки тому

      We do that at Stream It.

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

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

  • @user-sn4wc2wx4g
    @user-sn4wc2wx4g 2 роки тому

    Great Video

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

    Very good sir

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

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

  • @maciejurbaniak1677
    @maciejurbaniak1677 10 місяців тому

    dude your pro

  • @Bünyamin-x2v
    @Bünyamin-x2v 2 роки тому +2

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

  • @root_will
    @root_will 2 роки тому +2

    Where do I find the video and the image?

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

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

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

      I really don't know how its possible to get this angle

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

      I am pretty sure that the image is not supposed to move?

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

    Awesome!

  • @codewithkhizer4943
    @codewithkhizer4943 2 роки тому +1

    Best Chanel Bettar THen mr beast

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

    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++ 😂

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

    Mantap, saya suka python CV

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

    nice job

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

    cool tutorial

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

    THANKS!!!!

  • @user-qn7de4gl1n
    @user-qn7de4gl1n 9 місяців тому

    loved it

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

    thanks for the vid

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

    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?

  • @soyuzbekorozbekuulu6346
    @soyuzbekorozbekuulu6346 2 роки тому +1

    How tall the camera needs to be set?

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

    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?

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

    Perfect ❤❤

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

    thanks sir

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

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

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

    amazing

  • @80sunblade
    @80sunblade 2 роки тому +2

    What about winter or night?

  • @user-dp4yl7mq6d
    @user-dp4yl7mq6d Рік тому

    whats this using the algorithms? YOLO or ?

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

    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?

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

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

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

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

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

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

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

    Good!

  • @-MohamedThariqKN
    @-MohamedThariqKN 2 роки тому +1

    please provide any base paper and ppt for this project

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

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

  • @jackykwan8214
    @jackykwan8214 2 роки тому +1

    In reality, only satelite can provide this view, most of the cameras are installed on top of lamp post or on wall

  • @JaneDoe-bg8ji
    @JaneDoe-bg8ji 2 роки тому +4

    what about 3d real life solution? I'm seeing alot of videos solving this problem from 100m above (probably drone photo) and its useless.
    It's probably not possible to install camera at thst angle.

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

      Simplest (expensive) approach would be one camera per stall pointing down at the parking space. For each camera, manually mask out (and possibly top-down homeographize) the designated stall so other stalls don't mess up the process. Then do intermittent thresholding, etc from this video on the image.
      Less expensive would be have one camera for multiple stalls, probably fixed in the center of the driving aisle. For each camera (which can see many stalls), manually assign each stall in view a mask or homography.

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

    tq

  • @shalomhasidim801
    @shalomhasidim801 2 роки тому +2

    How do you make it run on an ONLINE system?

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

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