Tim, you are the best. I hope there will be continue of this series (at least part two): 1.) Manage files (delete records older than some period) 2.) Notification on e-mail about new record 3.) ... and more features with Python Tim, thank you for your RU-vid content! ;)
To make your video start faster add this code to define some of the video parameters. It will cut the start of the video in half or more. cam=cv2.VideoCapture(1,cv2.CAP_DSHOW) cam.set(cv2.CAP_PROP_FRAME_WIDTH, width) cam.set(cv2.CAP_PROP_FRAME_HEIGHT,height) cam.set(cv2.CAP_PROP_FPS, 20) cam.set(cv2.CAP_PROP_FOURCC,cv2.VideoWriter_fourcc(*'mp4v'))
Great video as always Tim, I cant even imagine how stressful it must be to try to code and explain, but just thought I mention that for future it might help to include comments on your code as it will help reduce the amount of explanation you would need to do, and is usually better practice right. Thanks again for your awesome content.
heey Tim great video, which is better : build our own classifier or use the built in classifiers for safety and robustness reasons like if someone is building a bank security system, and how can we use this open cv code to interact with a real camera like in banks, thanks budy
In the Internet age, you should be able to get that job from anywhere. What you need is the skill set. You can get the skill set from the Internet as well. It is now one huge neighborhood. Everyone can contribute as their interests direct them.
Ig what you can do is give it a lot of storage and set up a ssh system so that you can wirelessly control your raspberry pi and thus you could see the recordings from anywhere in the world
Great video! One small bug: You are using the same cascade for body and face: faces = face_cascade.detectMultiScale(gray, 1.3, 5) bodies = face_cascade.detectMultiScale(gray, 1.3, 5)
Hi amazing video like always but i have an error after writing { faces = face_cascade.detectMultiScale(gray, 1.3, 5) } if i remove this line it's works what should i do ?
How can we generate data from this program? For example to generate data in a database, location or how many different people where spotted in different time period?
i got this error when i run the program (cv2.error: OpenCV(4.5.3) C:\Users unneradmin\AppData\Local\Temp\pip-req-build-1i5nllza\opencv\modules\objdetect\src\cascadedetect.cpp:1689: error: (-215:Assertion failed) !empty() in function 'cv::CascadeClassifier::detectMultiScale').. i dunno how to solve it.. is anyone have idea for this?
I can't download the module cv2 in Python :( ERROR: Could not find a version that satisfies the requirement cv2 (from versions: none) ERROR: No matching distribution found for cv2
my video is not saving :/ every time i exit the program it writes in terminal:: [ WARN:0] global C:\Users unneradmin\AppData\Local\Temp\pip-req-build-sn_xpupm\opencv\modules\videoio\src\cap_msmf.cpp (438) `anonymous-namespace'::SourceReaderCB::~SourceReaderCB terminating async callback can someone tell me how to fix
It is such a shame, that this haar model is just garbage. It is better to train yours. Or you can use multiple models stacked together, like for eyes, nose, mouth and face and use the same principle behind haar cascading. Anyway great video.
i am getting an error with cv2.vediocapture shows an error ' vedio capture is not an attribute of cv2 , Open cv verison 4.6.0, please help me to resolve
excellent video, thanks for sharing, with that last statement regarding showing the video frame, i use a raspberry pi, could you set a key press that will show the current video, as if you wake up to a sound and hit the key to show the camera live view
awesome stuff. i wrote a camera app in android but it is really hard. i got a camera in my roof that records things that fly over my house. i want to set up a python camera that will record only birds but the end goal is record ufos. that kinda script would be priceless for the ufo community.
Normally you would save it on a local device. I don't really see the point in having it in a cloud, unless maybe you employ a separate security firm that needs access to the data. You also probably wouldn't stream directly to a cloud (raw video data is huge), it makes more sense to encode the data locally and then send the completed file to the cloud.
i have a problem in line 23, i'm using Collab and it gives me this error : OpenCV(4.1.2) /io/opencv/modules/imgproc/src/color.cpp:182: error: (-215:Assertion failed) !_src.empty() in function 'cvtColor
Hello Tim, sorry, but nothing more than the many tutorials on this subject. I would have hoped from you that you would divide the screen for four cameras, that you say after 5 seconds start cam 1, the body is in front of cam 2 so it starts after the first one goes off if it detects a body. I would have wanted you to show how the video can take a photo when you detect the face ... ect but you still the best;)
hello TIM you are the best youtuber/programmer python spesialist for me..i am a new programmer i lvoe python and i am making tons of your videos to practise and get any better in this..so if you can make a video of this camera project to make it even better?perhaps send an email notification on your phone or somethink like that? thx a lot
Lol I put the timestamp generation + assignment to 'out' on the wrong side of the if/else conditions, and that caused a file to generate every few frames/every second in real time.
just trying the code ,but im having issues. it cant read the haarcascase_fullbody.xml file. i erased my code and copy and pasted your code it works. ive seen this problem before.
Can you make a body tracer that gives same input as a keyboard? For example: if you lower your upper body to the right (keeping legs in the same place, facing the camera), this move would be equivalent to you pressing right arrow key. Is that possible in pure python?
I followed along and got a working security program written in python, awesome thank you very much. I've just started learning Python but I've watched a few of your videos, the others being the python curses/ncurses tutorials, awesome videos and explanation of the examples. Thank you. *** how can I redirect where the video gets saved, as of now all files are saved in the directory where the script resides in, thanks.
3 года назад
Boss at first my program was not working but now it's working Boss... I really wanna be like you when I grow up
I had to fix the pipX install on my friends windows box, python nor was pip wasn't in the path & pipenv wasn't installed. The hardest part for me was trying to find out where python (& pipenv) lives on windows so I could just add them myself to the system environment. Once the windows system knows where python is, the Tim way works. I was thinking you should write a python module app script to try the various methods of install, then realised, you'd need to have installed that module to use it (segfault: redo from start lol)