Make A Security Camera With Python

Welcome back to another video! In this video, I’m going to show how to create a security camera system using OpenCV. We’ll be detecting a face or body in the footage so a webcam or external camera that can connect to your computer is needed. We’ll be using that camera through OpenCV and detecting a face or body before recording.

💻 AlgoExpert is the coding interview prep platform that I used to ace my Microsoft and Shopify interviews. Check it out and get a discount on the platform using the code “techwithtim”

📄 Resources 📄
OpenCV Tutorial Series:
Code In This Video:
OpenCV FourCC’s:
OpenCV HaarCascades:
Fix Pip (Mac):
Fix Pip (Windows):

⭐️ Timestamps ⭐️
00:00 | Overview
01:15 | OpenCV Setup
02:43 | Displaying Webcam Video
06:35 | Detecting Faces and Bodies
12:46 | Drawing Faces On Video
16:09 | Saving And Recording Video
20:25 | Security Camera Logic

💰 Courses & Merch 💰
💻 The Fundamentals of Programming w/ Python:
👕 Merchandise:

🔗 Social Medias 🔗
📸 Instagram:
📱 Twitter:
⭐ Discord:
📝 LinkedIn:
🌎 Website:
📂 GitHub:
🔊 Podcast:

🎬 My YouTube Gear 🎬
🎥 Main Camera (EOS Canon 90D):
🎥 Secondary Camera (Panasonic Lumix G7):
📹 Main Lens (EFS 24mm f/2.8):
🕹 Tripod:
🎤 Main Microphone (Rode NT1):
🎤 Secondary Microphone (Synco Wireless Lapel System):
🎤 Third Microphone (Rode NTG4+):
☀️ Lights:
⌨ Keyboard (Daskeyboard 4Q):
🖱 Mouse (Logitech MX Master):
📸 Webcam (Logitech 1080p Pro):
📢 Speaker (Beats Pill):
🎧 Headphones (Bose Quiet Comfort 35):
🌞 Lamp (BenQ E-reading Lamp):
🌞 Secondary Lamp (BenQ Screenbar Plus):
💻 Monitor (BenQ EX2780Q):
💻 Monitor (LG Ultrawide 34WN750):
🎙 Mic Boom Arm (Rode PSA 1):
🎚 Audio Interface (Focusrite Scarlet 4i4):

💸 Donations 💸
💵 One-Time Donations:
💰 Patreon:

⭐️ Tags ⭐️
– Tech With Tim
– Security
– OpenCV
– Security Camera
– Detecting Faces
– Python

⭐️ Hashtags ⭐️
#TechWithTim #SecurityCamera


34 thoughts on “Make A Security Camera With Python

  1. Great Video! could make a part two in which the webcam detects a person and opens a door if the right person's face is detected. It would be really cool!

  2. 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 Youtube content! 😉

Leave a Reply

Your email address will not be published. Required fields are marked *