Python Tutorial – || Simple Motion Detection System using cv2 || Code Walk-through ||

///Python Tutorial – || Simple Motion Detection System using cv2 || Code Walk-through ||

Python Tutorial – || Simple Motion Detection System using cv2 || Code Walk-through ||

FavoriteLoadingAdd to favorites

Welcome everyone! This is a Python tutorial on creating a motion detection system/camera/webcam using OpenCV/cv2. This is a code walk-through were i explain everything that I’m doing, and how to setup the motion detection camera, so that you can learn python! Python tutorials, GitHub code, and subreddit links below.

** Imutils Library GitHub Link ** –

[*] Python tutorials:
[*] GitHub Code:
[*] /rPython_AND_Hacking:

* If you would like to leave a tip you can do so below, thanks *
PayPal:
Bitcoin: 1EHmioBmujNAyVs5A6Uo1nfto9JZhGBDLd

[*] Hit that SUBSCRIBE button.
[*] Hit that NOTIFICATION button.
[*] Leave a COMMENT and a LIKE, SHARE the video, and LEARN something new.

I appreciate all the feedback on my content, you guys are great! 🙂 If you have any questions or need help with anything, don’t hesitate to ask.

Hashtag…
#python#motion#detection#webcam#OpenCV#camera#cv2
Lets learn everyone! 🙂

Built With: Python 3.6.5 – [

source

By |2020-06-24T07:59:12+00:00June 24th, 2020|Python Video Tutorials|21 Comments

21 Comments

  1. w3w3w3 June 24, 2020 at 7:59 am - Reply

    * If you would like to leave a tip you can do so below, thanks *
    PayPal: https://paypal.me/w3w3w3 👍
    Bitcoin: https://www.blockchain.com/btc/address/1EHmioBmujNAyVs5A6Uo1nfto9JZhGBDLd 👍

  2. Titin Yusri June 24, 2020 at 7:59 am - Reply

    Iam sorry, but can i use this code on python 2?

  3. Mohit Rai June 24, 2020 at 7:59 am - Reply

    this is the error i'm getting on the compiler (name '_name_' is not defined)

  4. Mohit Rai June 24, 2020 at 7:59 am - Reply

    the code is not working on my idle and jupyter

  5. ARA June 24, 2020 at 7:59 am - Reply

    Error = 'for c in cnt:
    TypeError: 'NoneType' object is not iterable'
    why?

  6. ARA June 24, 2020 at 7:59 am - Reply

    I get a Error

  7. Faiz Ahmed June 24, 2020 at 7:59 am - Reply

    How can we obtain coordinates of hand only using Opencv so that i can save it Excel and, use these coordinates to manipulate my hand in UNITY, Thanks 🙂

  8. Mikel Gorostiza June 24, 2020 at 7:59 am - Reply

    What if the lighting of the room changes??

  9. OMIETE BROWNWEST June 24, 2020 at 7:59 am - Reply

    i'm having this error when i try to run,

    greyscale_frame = cv2.cvtColor(frame, cv2.COLOR_BGR2GRAY)

    cv2.error: OpenCV(4.1.2) C:projectsopencv-pythonopencvmodulesimgprocsrccolor.cpp:182: error: (-215:Assertion failed) !_src.empty() in function 'cv::cvtColor'

    please help

  10. Eduardo Dati June 24, 2020 at 7:59 am - Reply

    Wonderful video!!!!

  11. john June 24, 2020 at 7:59 am - Reply

    getting this error
    for c in cnt:

    TypeError: 'NoneType' object is not iterable

    please help

  12. Kodas Gordan June 24, 2020 at 7:59 am - Reply

    how are you automatically commenting your code ?

  13. Radhika Gupta June 24, 2020 at 7:59 am - Reply

    it always shows occupied

  14. Green Soldier Productions June 24, 2020 at 7:59 am - Reply

    Imagine connecting this to a visor

  15. Random Guy June 24, 2020 at 7:59 am - Reply

    this tutorial was complete ass.

  16. Aleksei Bingham June 24, 2020 at 7:59 am - Reply

    Wonderful video but I have a few questions. With my own USB webcam it displays occupied and unoccupied at what feels like random moments. I could walk into the center and it shows occupied but then leave and it still shows the same results. Could it be the FOV of my webcam? I am currently trying to calibrate it for the lighting to figure out what is best for clean results as I am hooking this software up to an arduino for further use.

  17. Bastián Venegas June 24, 2020 at 7:59 am - Reply

    Can this code work for other kind of camera imput? I have a security system with 6 cameras and i'd like to get notifications when motion is detected.

  18. PillDealBro June 24, 2020 at 7:59 am - Reply

    hey im having trouble rn in line 63 im getting this "TypeError: 'NoneType' object is not iterable"

  19. srat 123 June 24, 2020 at 7:59 am - Reply

    ty so much

  20. Anshaj Dhiman June 24, 2020 at 7:59 am - Reply

    its not showing my laptop camera

  21. CoulCom Solutions June 24, 2020 at 7:59 am - Reply

    Hi thanks for your guide and information! Great work, however can you help with my issue in your code? Please refer to this link with to assist answer my question.
    https://stackoverflow.com/questions/55348047/how-to-fix-opencv-numpy-error-object-is-not-iterable

    Any suggestions to my issue which you did not seem to have, would be very appreciated!

Leave A Comment

*