Тёмный

Make A Security Camera With Python 

Tech With Tim
Подписаться 1,6 млн
Просмотров 235 тыс.
50% 1

Опубликовано:

 

1 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 192   
@Nostra.Damus14
@Nostra.Damus14 3 года назад
I think the best programming tutorial a youtuber can make is teaching how to read a module documentation efficiently and intuitively.
@tonystark3399
@tonystark3399 3 года назад
Absolutely true. If you find any please share it with mam/ sir
@animaluchisommicheal7622
@animaluchisommicheal7622 3 года назад
Couldn't agree more!!
@ZahidHasan-cc8tf
@ZahidHasan-cc8tf 3 года назад
Yes!
@tonymudau3005
@tonymudau3005 3 года назад
I see some bots in these chats ... really good bots ... check the comments carefully
@TechMalaya
@TechMalaya 2 года назад
yes, I am agree because this is the hardest part
@janisvelbergs6394
@janisvelbergs6394 3 года назад
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! ;)
@benfou2140
@benfou2140 3 года назад
Easy to find. Tim is just introducing the subject
@HamzaArslan
@HamzaArslan 3 года назад
Me when my code doesn't run properly: 13:29 Me when my code does work: 13:28
@cdkw8254
@cdkw8254 3 года назад
Lol
@rcsteimer
@rcsteimer 3 года назад
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'))
@ttkL0ngr4ng3
@ttkL0ngr4ng3 3 года назад
Too bad it's only regular face detection. It will never work as a security camera. The camera won't work in darkness or when a light is dim.
@CallumForster
@CallumForster 3 года назад
What module do I need to make the import command colour be red and not the pink colour it usually is
@Raahim
@Raahim 3 года назад
i literally just looked up how to detect motion with python on my 2nd monitor.... looked over on my 1st monitor youtube, and this video popped up!
@Motopysch
@Motopysch Год назад
How can it detect the difference between family persons faces and real theft persons??
@shftn2gear97
@shftn2gear97 3 года назад
The stuff you do for this community at no charge is just amazing. Thanks, Tim!
@svoper3338
@svoper3338 3 года назад
Does this work with a phone camera
@sagshah10
@sagshah10 3 года назад
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.
3 года назад
Great stuff. Possible bug on line 25.
@kitgary
@kitgary 3 года назад
This guy is one of the best developer in the world!
@Bruh-sp2bj
@Bruh-sp2bj 3 года назад
Hes good at best not really the best
@johnwig285
@johnwig285 3 года назад
@@Bruh-sp2bj He said ONE of the best not the best. Ffs.
@Bruh-sp2bj
@Bruh-sp2bj 3 года назад
@@johnwig285 not even one of the best ffs. Decent
@lazybum1088
@lazybum1088 3 года назад
Python is very easy to record videos, But NoOne knows how to record videos with sound(
@tcgvsocg1458
@tcgvsocg1458 3 года назад
Its really good! Can you show how to creat a screen recorder in python
@youssefelamrani7905
@youssefelamrani7905 3 года назад
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
@salimsuleiman7984
@salimsuleiman7984 3 года назад
I need to come to America and get web developers job 🎗
@JustAThought01
@JustAThought01 3 года назад
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.
@salimsuleiman7984
@salimsuleiman7984 3 года назад
@@JustAThought01 please how
@tonyd2776
@tonyd2776 3 года назад
I’m 43 yrs old and want to be as smart and articulate as this kid when I grow up
@harrypoon2438
@harrypoon2438 3 года назад
I would love to see you talk about using a camera wirelessly (for instance using a raspberry pi with an esp32 cam)
@Joe-zg9eq
@Joe-zg9eq 3 года назад
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
@CharlieCocalon
@CharlieCocalon Год назад
Im following.
@kadirgurani2162
@kadirgurani2162 3 года назад
Could you add some code to detect somebody ‘s face and this give some output like opening a door???
@LamethHUN
@LamethHUN 3 года назад
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)
@Hog-n
@Hog-n 2 года назад
My detectMultiScale isnt working it just gives me an error
@ABODY734
@ABODY734 2 года назад
@@Hog-n same here :(
@wrestelman1
@wrestelman1 3 года назад
Any idea on how to make it work where it doens't record YOU but everyone else?
@agneaybnair9519
@agneaybnair9519 3 года назад
Hey Tim can you please create a video on regular expressions in python
@g.s.3389
@g.s.3389 3 года назад
there is a mistake in your code, you are not detecting body, you are detecting twice faces.see row 24 and 25....
@Hanyamanusiabiasa
@Hanyamanusiabiasa 3 года назад
If you don't install pip, you can't do anything.
@ABODY734
@ABODY734 2 года назад
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 ?
@ilikeyoursmile6215
@ilikeyoursmile6215 3 года назад
Hey Tim, What is your Color Theme do you use? Mine are kinda boring I want to change to something and I think what you're using is gonna work.
@emanuelcara316
@emanuelcara316 2 года назад
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?
@servicer6969
@servicer6969 3 года назад
THICC 32:08
@ridwansetiawan5416
@ridwansetiawan5416 3 года назад
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?
@JAHNAVITBBTCS
@JAHNAVITBBTCS 2 года назад
Sir once we record the recording will be save to our local system. How can we upload or store the recording made by the webcam to cloud?
@justchris846
@justchris846 3 года назад
Do you have a tutorial showing how to set up visual studio code?
@horu
@horu Год назад
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
@okurk419
@okurk419 3 года назад
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
@disrael2101
@disrael2101 2 года назад
have u fixed it seems like a problem with ur opencv module
@isakkack5816
@isakkack5816 2 года назад
I get this error error: (-215:Assertion failed) !empty() in function 'cv::CascadeClassifier::detectMultiScale' dose anybody know how to fix it
@fintech1378
@fintech1378 8 месяцев назад
Can you cover GPT4V for CCTV? Maybe good architecture for this since its expensive. Say its to 'monitor' your babies
@mrJanbenes
@mrJanbenes 2 года назад
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.
@deveshchourasia6355
@deveshchourasia6355 2 года назад
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
@sovereignlivingsoul
@sovereignlivingsoul 4 месяца назад
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
@ScothGenio
@ScothGenio 5 месяцев назад
i try this code and it's working but when it's started it automatically stop and start again even there's no person detected.. how to fix this?
@vishwanath-ts
@vishwanath-ts 3 года назад
Tim you're doing a great job!! Keep up the good work!!👍🏻
@fastmamajama
@fastmamajama 4 месяца назад
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.
@RunTheProgram
@RunTheProgram 2 года назад
when he creates a variable more than 10 letters long, you know his a legend
@tejasvmaheshwari5658
@tejasvmaheshwari5658 3 года назад
Could you please make a video on easing-functions?
@joiker2pen
@joiker2pen 3 года назад
Where do business save these video recordings usually? on a local server or in some cloud? if the cloud how do they connect the cameras to there?
@DarkGharren
@DarkGharren 3 года назад
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.
@CKTEH9898
@CKTEH9898 3 года назад
I think I had complete the feature mention earlier in the vedio, but i will still follow this series to seek the better way of doing it.
@theplant4046
@theplant4046 2 года назад
Question what if camera detect a person wears mask like hiding his face does program start recording?
@mocerlaalacbaino
@mocerlaalacbaino 3 года назад
"this is your daily dose of internet"
@BeRaikwal
@BeRaikwal 3 года назад
dude i just wanna take ur blessing ahahahaha U ARE SO GOOD AT IT
@vaidhyanathansm7625
@vaidhyanathansm7625 3 года назад
Aren't we supposed to use body_cascade (for bodies) in line 23 ?
@keerthichandrac7364
@keerthichandrac7364 3 года назад
Yes
@EverythingandroidTech
@EverythingandroidTech 3 года назад
I was about to comment that lol
@kyngcytro
@kyngcytro 3 года назад
Yesssss
@melissaleigh3013
@melissaleigh3013 3 года назад
Tim, this is sooooo cool
@4bt862
@4bt862 2 года назад
The best Python guy that creates a social engineering tools
@sleeping4cat
@sleeping4cat 2 года назад
Line 17: resulting an error e.depth() == CV_8U in function 'cv::CascadeClassifierImpl::detectMultiScale'
@sani-zy3fp
@sani-zy3fp 6 месяцев назад
my code wont stop recording when i leave the frame can anyone help me?
@lolexXD.
@lolexXD. Год назад
Can u make when u turn pc on to you get notification on phone that your computer turned on?
@mantravora6119
@mantravora6119 9 месяцев назад
If i do it laptop, will it require external camera or not?
@roscianyt
@roscianyt 2 года назад
cap = cv2.VideoCapture(0, cv2.CAP_DSHOW) will open fast
@youssefelamrani7905
@youssefelamrani7905 3 года назад
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
@exquisitecorpse666
@exquisitecorpse666 2 года назад
same, did you solve this problem?
@anairaphadke9333
@anairaphadke9333 2 года назад
@@exquisitecorpse666 I was able to..
@thedarkglovemusic
@thedarkglovemusic Год назад
@@anairaphadke9333 Dude! How?!
@hedimak999
@hedimak999 2 года назад
you are such a great explainer dude ! honestly the video is simple to understand , concise and very very informative !!! you helped me a lot !
@Animal-yb1rr
@Animal-yb1rr 3 года назад
I want to film my family dogs activities with this to see if he eat from his food bag when no one is around
@danceswithdirt7197
@danceswithdirt7197 3 года назад
They are sneaky critters. If you find out please post the evidence on reddit or something.
@mhdmodocluber9591
@mhdmodocluber9591 2 года назад
It’s okay, but how can I transmit image by RTSP protocol?
@steveburrows4747
@steveburrows4747 3 года назад
what coding platform did u use, please I really want to do this and I love your vids
@65RADEK56
@65RADEK56 2 года назад
He used python
@seyedmohsen2306
@seyedmohsen2306 Год назад
Hi How about audio How read video and audio together
@eaircelle3263
@eaircelle3263 3 года назад
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;)
@coolghoul9
@coolghoul9 5 месяцев назад
files already have a date created why name it the same thing
@mak448a
@mak448a 9 месяцев назад
Who misses this Tim who didn't make hyper-stimulating videos?
@YUTUPOD
@YUTUPOD 3 месяца назад
and why don't you show us how to connect the red bottom nat
@_test_test
@_test_test 2 года назад
hmm why in unpacking ure using _ , _ = x instead of just get this one like x[1]?
@kakissakis1997i
@kakissakis1997i 2 года назад
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
@raymondperez7970
@raymondperez7970 Год назад
Import cv2 doesn’t work for me, what else can I do? I love your videos
@AddersOtter
@AddersOtter 2 года назад
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.
@zambiealex8473
@zambiealex8473 2 года назад
cv2 not found, even with installing multiple opencv's.
@cll-dy8bd
@cll-dy8bd 3 года назад
I have no idea what this guy is saying, but im really interested
@yusraapeerun4083
@yusraapeerun4083 2 года назад
I try to run the code, the light of my camera is on but I do not see any window pop up where I can see myself. Can someone please help me out
@shanerobins1329
@shanerobins1329 3 года назад
Tim, thanks for the example, very good.
@nospill_kunai6192
@nospill_kunai6192 2 года назад
What if I wanted to make a face ID thing, where my computer would do something when I enter it's camera?
@rverm1000
@rverm1000 4 месяца назад
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.
@a.e-u2c
@a.e-u2c 2 года назад
I have a problem I don't know how to quit. Although I kept writing q in the terminal .
@anairaphadke9333
@anairaphadke9333 2 года назад
you have to go to the camera app and then type q
@SKTWoodDesign
@SKTWoodDesign 3 года назад
Nice .How can I run multiple camera using this code?
@atifroome
@atifroome 3 года назад
He confuses more than explain things, not the best video to watch
@tonymudau3005
@tonymudau3005 3 года назад
Thanks Tim... you are an amazing gent 🙏
@nicolapesce8911
@nicolapesce8911 2 года назад
it doesn't save the videos at the end of the recordings. I already checked in the folder when the code is saved.
@crimsonflash-eo2xs
@crimsonflash-eo2xs Год назад
What algorithm does this use?
@OwenSerg
@OwenSerg 3 года назад
it says cv2 does now exist? Can you please help me with this
@hectorbarrera9496
@hectorbarrera9496 2 года назад
Excellent video, thank you, so I have one question, can I do the same with an ip camera?
@Paul-bm8og
@Paul-bm8og 3 года назад
How can you change the resolution from the Video
@humzahnouman3760
@humzahnouman3760 2 года назад
change your camera i guess
@AndreiDante
@AndreiDante 2 года назад
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?
@borceacasian7425
@borceacasian7425 2 года назад
what IDE are you using in combination with tabnine?
@TeoHandle
@TeoHandle 2 года назад
Sublime Text bro
@ryanwalker4660
@ryanwalker4660 2 года назад
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
@prabhas2445
@prabhas2445 3 года назад
Make a video on Nintendo emulator in python it will be fun
@siropplayz7109
@siropplayz7109 2 года назад
...Read more
@siropplayz7109
@siropplayz7109 2 года назад
Rick rolled boy
@emanuelbarreira2007
@emanuelbarreira2007 2 года назад
to end the delay of turn on the camera, jus do this: cap = cv2.VideoCapture(0, cv2.CAP_DSHOW)
@emanuelbarreira2007
@emanuelbarreira2007 2 года назад
i dont know why it works, but it works
@ChiefRemoteOfficer
@ChiefRemoteOfficer 2 года назад
Damn, that is some good stuff. That CV library looks comprehensive. Thanks for sharing!
@happytravelling5072
@happytravelling5072 11 месяцев назад
Typo in line no 25
@evilwizard7931
@evilwizard7931 2 года назад
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)
@bereck7735
@bereck7735 3 года назад
Nice
@trevormckellen5613
@trevormckellen5613 3 года назад
after the opencv tutorials. this is just what i need
@amiralihomayoni6243
@amiralihomayoni6243 3 года назад
Typical comment on his videos
@WHOAMI-xx3lx
@WHOAMI-xx3lx Год назад
thank you so much
@stevehoward8671
@stevehoward8671 2 года назад
What about using a stream from an IP camera?
Далее
Building A Security System In Python...🚨
17:56
Просмотров 51 тыс.
Make A Python Website As Fast As Possible!
22:21
Просмотров 691 тыс.
Pygame in 90 Minutes - For Beginners
1:35:22
Просмотров 1,1 млн
3 Python Automation Projects - For Beginners
53:11
Просмотров 555 тыс.
How To Make Money From Coding - A Complete Guide
43:05
Просмотров 131 тыс.
IP camera stream using RTSP and openCV python
4:09
Просмотров 92 тыс.
Going back to the moon isn't just about cost
17:03
Просмотров 7 тыс.