Parking Space Counter using OpenCV Python | Computer Vision

Поделиться
HTML-код
  • Опубликовано: 20 авг 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 RUclips 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...
    👉 RUclips 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.

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

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

  • @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.

  • @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.

  • @scounterscounter6702
    @scounterscounter6702 9 месяцев назад

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

  • @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?

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

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

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

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

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

    Loved the video. Greetings from Puerto Rico🇵🇷

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

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

  • @joshuabiongPH
    @joshuabiongPH 2 года назад +11

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

  • @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

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

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

  • @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.

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

    Your channel is the best in this regard!

  • @nrdesign1991
    @nrdesign1991 2 года назад +6

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

  • @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.

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

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

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

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

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

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

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

    I followed the instructions and it easily worked!

  • @poojachumii.s6846
    @poojachumii.s6846 5 месяцев назад

    thanks sir , your explations was superb

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

    Amazingly educative tutorial!
    Apprecaite sharing sources.

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

    Thank you and have a good year 2022.

  • @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..

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

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

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

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

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

  • @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

  • @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!

  • @jayantsinghrajput8199
    @jayantsinghrajput8199 10 месяцев назад

    Appreciated you efforts sir. Keep uploading more such videos

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

    Good job Murtaza !

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

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

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

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

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

    Good work 👍

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

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

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

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

  • @saram.1194
    @saram.1194 6 месяцев назад

    youre amazing !

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

    wow this is very cool

  • @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 ??

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

    sucessfully made it ☺Thanks

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

    Can u do a vid about your life journey?

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

    Keep up the great work ❤

  • @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...

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

    Very useful sir 💫

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

    Thank you very much for clarification I must try this

  • @Raja.Singh.youtube
    @Raja.Singh.youtube Год назад +1

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

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

    This video is amazing, thank you.

  • @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

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

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

  • @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.

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

    Great video! ..motorcycles ☹

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

    Awesome project sir!!

  • @root_will
    @root_will 2 года назад +2

    Where do I find the video and the image?

  • @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?

  • @maciejurbaniak1677
    @maciejurbaniak1677 10 месяцев назад

    dude your pro

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

  • @user-qn7de4gl1n
    @user-qn7de4gl1n 9 месяцев назад

    loved it

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

    Best Chanel Bettar THen mr beast

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

    Thank you very much master

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

    thanks for posting

  • @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.

  • @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?

  • @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

  • @80sunblade
    @80sunblade 2 года назад +2

    What about winter or night?

  • @Hitesh-Salgotra
    @Hitesh-Salgotra 2 года назад

    That is something unique and awesome ❤🥰

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

    Amazing
    Love your work ❤❤

  • @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?

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

    thanks goat

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

    Excellent project!!!

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

    How tall the camera needs to be set?

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

    Great Video

  • @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?

  • @shalomhasidim801
    @shalomhasidim801 2 года назад +2

    How do you make it run on an ONLINE system?

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

    Awesome!

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

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

  • @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

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

    nice video, thanks you so much

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

    please provide any base paper and ppt for this project

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

    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

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

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

  • @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

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

    Very good sir

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

    cool tutorial

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

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

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

    Perfect ❤❤

  • @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?

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

    THANKS!!!!

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

    nice job

  • @sethuraman9884
    @sethuraman9884 10 месяцев назад

    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

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

    thanks for the vid

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

    thanks sir

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

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

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

    amazing

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

    Python at its best. Now where should I park?

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

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

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

    Mantap, saya suka python CV