

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
* 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 👍
Iam sorry, but can i use this code on python 2?
this is the error i'm getting on the compiler (name '_name_' is not defined)
the code is not working on my idle and jupyter
Error = 'for c in cnt:
TypeError: 'NoneType' object is not iterable'
why?
I get a Error
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 🙂
What if the lighting of the room changes??
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
Wonderful video!!!!
getting this error
for c in cnt:
TypeError: 'NoneType' object is not iterable
please help
how are you automatically commenting your code ?
it always shows occupied
Imagine connecting this to a visor
this tutorial was complete ass.
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.
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.
hey im having trouble rn in line 63 im getting this "TypeError: 'NoneType' object is not iterable"
ty so much
its not showing my laptop camera
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!