How to Make a Smart Security Camera with a Raspberry Pi Zero

  Рет қаралды 1,056,753

Hacker Shack

Hacker Shack

6 жыл бұрын

In this video, we use a Raspberry Pi Zero W and a Raspberry Pi camera to make a smart security camera! The camera uses object detection (with OpenCV) to send you an email whenever it sees an intruder. It also runs a webcam so you can view live video from the camera when you are away.
See how we built it, including our materials, code, and supplemental instructions, on Hackster.io: www.hackster.io/hackershack/s...
Make sure to look out for our behind the scenes video! • Behind the Scenes: Sma...
USEFUL LINKS:
Follow Hacker Shack on Instagram:
/ hackershackofficial
Subscribe to Hacker Shack: goo.gl/qHjz4j
Visit our website for parts and project updates: www.thehackershack.com/
View our code on Github: github.com/HackerShackOfficia...
OpenCV Install Guide: www.pyimagesearch.com/2016/04/...
Get our 3D printer: robo3d.myshopify.com?rfsn=1004615.c5abe
MATERIALS:
Raspberry Pi Zero Wireless × 1
Amazon Affiliate Link - goo.gl/Zsxm7k
Raspberry Pi Camera module × 1
Amazon Affiliate Link - goo.gl/4kR632
Check out the NoIR camera for night surveillance
Amazon Affiliate Link - goo.gl/fT7oL9
Raspberry Pi Zero Camera Cable x 1
Amazon Affiliate Link - goo.gl/pBVZb1
Micro-USB to USB Cable × 1
1/4" MDF Board × 1
90 Degree Angle Bracket × 1
Outdoor Mounting Tape × 1
M4 X 20mm Long Machine Screws × 2
M4 Hex Nuts × 2
M2.5 Machine Screws × 4
#8 X 3/4" Long Machine Screws × 1
#8 Hex Nut × 1
#8 Wing Nut × 1
MUSIC:
/ joakimkarud
Disclaimer
The methods shown in this video should be used
as a guide only.
HACKER SHACK ACCEPTS NO RESPONSIBILITY FOR
ACCIDENTS OR INCIDENTS ARISING FROM INDIVIDUALS
UNDERTAKING ANY OF THE TASKS DESCRIBED. IN
PARTICULAR, IF UNSURE YOU SHOULD ALWAYS CONTACT
A QUALIFIED TRADESMAN BEFORE PROCEEDING.

Пікірлер: 725
@christopherbillington8965
@christopherbillington8965 5 жыл бұрын
rather than dealing with MDF, I think I would mount it in an electrical box. The steel ones are modular, cheap and durable. Plus, you can mound an unwired outlet in it, which isn't the sort of thing most people would think twice about seeing.
@circuitmasters5258
@circuitmasters5258 5 жыл бұрын
Man Finally this project I have been trying to create for a minute...i need it LOL!
@theapricotbambino
@theapricotbambino 6 жыл бұрын
why am I just finding this youtube channel now!? I love you guys!
@fabulousasia9848
@fabulousasia9848 4 жыл бұрын
This is a great project. One of my students built something similar, except she used the project to feed her cat by sending emails to the DIY cat feeder! :)
@mgtowmapmaker8741
@mgtowmapmaker8741 6 жыл бұрын
Always test your electronic components to make sure they function properly before mounting them in a "permanent" way. Great video.
@tannerlane9669
@tannerlane9669 2 жыл бұрын
How do you know he didn’t ?
@anamikamishra552
@anamikamishra552 5 жыл бұрын
That ruler used to draw the line was so precise & appropriate. By the way nice video
@lleo9791
@lleo9791 4 жыл бұрын
This project is great, thank you for sharing!
@niler3019
@niler3019 6 жыл бұрын
You could easily become a teacher! Thanks for the video!
@nanakeyks
@nanakeyks 4 жыл бұрын
I love the use of multiple skills to get the job done.
@imben77
@imben77 6 жыл бұрын
You have no idea now we'll timed this video is! I just got a pi zero camera kit (with suction cups for a window) and was researching the code when I found your video :)
@narpat007
@narpat007 4 жыл бұрын
Excellent ! In the event of image detected, have you given thought to consider switching a light bulb via I/O pins in conjunction with a optoisolator or something like that ?
@dheerajs2838
@dheerajs2838 6 жыл бұрын
accidentally stumble upon your channel .. you guys are doing amazing job :)
@DanielJohnHowTo
@DanielJohnHowTo 6 жыл бұрын
The wood needs sealing and priming otherwise it will swell up and come loose etc , in case anybody is thinking of building this.
@arielomc
@arielomc 6 жыл бұрын
Excelent project guys!! I imagine the v2.0 where you install night vision to this security camera.
@PeterMaloy
@PeterMaloy 6 жыл бұрын
Inkscape is awesome for drawing up templates. Free, runs on Windows, Mac, Linux. I use it for laying out all my laser cutter designs. Probably would have saved some time on this project.
@alphawolf9371
@alphawolf9371 4 жыл бұрын
I am using elements of this tutorial for my own robot. I am using a Raspberry Pi Model B, a Raspberry Pi camera for face recognition, and some small servos to move parts of the robot.
@mnbvcxzzxcvbnm
@mnbvcxzzxcvbnm 6 жыл бұрын
I'm going to do it. Excited. Thank you guys.
@RT-eb6vo
@RT-eb6vo 6 жыл бұрын
Well done guys, as always.
@cri8tor
@cri8tor 5 жыл бұрын
Great tutorial and appreciate the time and effort it takes to record, edit and upload. It's already been done, but please consider an updated version using Raspberry Pi 3 B+. Wyze data mines it's customers, can't be used with iPhone 4S and has no customer service number, so your hack is a great alternative. Cheers
@paannnnnnnnnnnnnnnnnnnnnnnn
@paannnnnnnnnnnnnnnnnnnnnnnn 6 жыл бұрын
thanks for the tutorial!
@lukaszgudewicz6442
@lukaszgudewicz6442 6 жыл бұрын
Awesome project. Will definitely give it a try.
@joshhagen4182
@joshhagen4182 6 жыл бұрын
I wonder if you could have a Bluetooth connection or something and have multiple cameras 🤔 awesome video! Airsoft turret!!! That's sweet I wanted to build one of those In seventh grade. That was in 2010, makes me think I should try building one now!
@jkamagie
@jkamagie 6 жыл бұрын
Nice work, thx for the tutorial
@murderdoggg
@murderdoggg 6 жыл бұрын
Nice work with the jigsaw dude. I am surprised you don't have one with a shop-vac attachment.
@Malcolmstuartcole
@Malcolmstuartcole 6 жыл бұрын
Very user friendly vid..well done
@GadgetAddict
@GadgetAddict 6 жыл бұрын
Pretty cool. Useful for those who just want something that basically works out of the box.
@Chris_t0
@Chris_t0 3 жыл бұрын
This is 2 years old but its worth point out... This is the complete opposite of "works out of the box".... Literally you even have to MAKE the box...
@viertausend87
@viertausend87 3 жыл бұрын
@@Chris_t0 I scrolled through the internet in the office and suddenly I had to start laughing out loud. Best comment I read in a while!
@ParodieHecker-mobile
@ParodieHecker-mobile 3 жыл бұрын
@@Chris_t0 Well, I think... That was the joke :D
@AtenTetsu
@AtenTetsu 3 жыл бұрын
HI thanks for this great tutorial. But, may I know can I add alarm function when it detect the person?
@iamParvezKhan25
@iamParvezKhan25 5 жыл бұрын
Thanks gor share entire project.. I will tty to make this. For home security. Thanks again! Love. 😍😘
@sebifisio
@sebifisio 6 жыл бұрын
Hey @HackerHouse, awesome project as always. I have a question, does this work with the NoIR camera board as well?? Would love to make this for the baby room... Cheers
@cxosposync9937
@cxosposync9937 2 жыл бұрын
Awesome Prj!!!
@Music-lv8xf
@Music-lv8xf 5 жыл бұрын
how about visual studio app and not in the browser?? do you have any tutorial on how can i get the video coming from raspberry pi to windows app build in vs c#?
@roid1510
@roid1510 6 жыл бұрын
This is cool. Is it possible to setup a record function that saves the footage somewhere secure? And make a remote you use to switch on the camera when youre going out?
@joseabrahamkuqueb6639
@joseabrahamkuqueb6639 6 жыл бұрын
Hi, i have a question. i gonna make this proyect but i need to know if I can use a raspberry pi 3?
@pointer5698
@pointer5698 6 жыл бұрын
amazing...i should definitely try this dude
@mikepage3379
@mikepage3379 3 жыл бұрын
First off, great video. Can this work with a 3B+? Do you have an .stl for the case and not one out of mdf?
@blakelong6149
@blakelong6149 6 жыл бұрын
Any suggestions on how to save short video files or images to a usb or sd card once motion has been detected? Also suggestion on using a usb camera instead of a raspberry pi camera?
@SheltonDCruz
@SheltonDCruz 3 жыл бұрын
Thanks Davis!
@Ricraftsla
@Ricraftsla 4 жыл бұрын
Thank you so much for the tutorial... How to fix "error sending email?"
@GeniusFormat
@GeniusFormat 3 жыл бұрын
The error that I am getting is "Error sending email: "
@snidelywhiplash
@snidelywhiplash 6 жыл бұрын
Tool suggestion: For drilling the recess for the lens, a Forstner bit would be useful. They're capable of drilling flat-bottomed holes.
@michaelashitey7930
@michaelashitey7930 6 жыл бұрын
Good work done
@kennedymwangi60
@kennedymwangi60 5 жыл бұрын
nice one i loved it
@Colaaah
@Colaaah 6 жыл бұрын
The best thing for a camera at the front door off Angel is, put a small led ligh. That lights the entrance, then the person looks at the light by curiosity and BAM a nice picture of the front view of there face lol. Talking from experience here too 😉
@nottelling2976
@nottelling2976 6 жыл бұрын
Will this integrate with Camera apps on phones such as IPWebcam? I've set up my Pi2's as cameras using WebEyeOS but I wasn't too happy with the performance.
@travis8753
@travis8753 6 жыл бұрын
Or you could just buy a piece of PVC pipe, two end caps mount it in that and have a waterproof security camera.
@SllyRbbtTrxR4Kids
@SllyRbbtTrxR4Kids 6 жыл бұрын
Travis lol, true, but to each their own. But i like your style better.
@hellrazor35
@hellrazor35 6 жыл бұрын
Personally I'd just get a plastic project box and drill a hole for the wires / camera. It would be flat and alot more water proof than MDF. This could be done alot easier.
@Skyefuego
@Skyefuego 6 жыл бұрын
that would look sleek. will definitely look better.
@KapnKerfuffle
@KapnKerfuffle 6 жыл бұрын
Or by a hollow plastic skull or gargoyle or statue of a poster of Big Brother with a plastic electrical gang box behind the eyes.
@axsdeny6692
@axsdeny6692 6 жыл бұрын
Wouldn't there be the potential for excess humidity to condense on the inside of the pipe thereby endangering the electronics? The MDF is more porous and wouldn't do this as much. Of course, if left outside, the MDF will fall apart eventually because it's garbage.
@rocko0028
@rocko0028 6 жыл бұрын
Im coming from the wood building/car diy side of the youtubes but am I missing something? How or where does it get power from? And how is it connected to the home network? Does the raspi have a battery? Or WiFi? Can you get different camera sensors for different resolutions? Or some night vision sensors?
@santoshceg
@santoshceg 6 жыл бұрын
Thanks a ton, guys! This is one project I've been working on recently. Next steps could be to detect the face on the camera and match with the voice and commands of the visitor to unlock the door if authorized. If you guys plan on doing something like this, it will be of great help.
@rajatharry
@rajatharry 4 жыл бұрын
Hello bro
@rajatharry
@rajatharry 4 жыл бұрын
I am planning to do the Same. Can You Please contact me
@aman.takher
@aman.takher 4 жыл бұрын
Hi there, Excellent video. One question is this setup is capable with Raspi 4 B?
@novechotango5033
@novechotango5033 6 жыл бұрын
Good day, Is it possible to merge or connect this project to another project which is Smartphone Connected Home Door Lock as one project? Does the raspberry pi 3 can run them simultaneously? Thank you
@ntc490
@ntc490 6 жыл бұрын
What sort of frame rates are you getting? I was thinking the Pi Zero W would be tool slow for this application. The form factor and price are nice, though.
@kehindea
@kehindea 4 жыл бұрын
Brilliant video
@CodeDynamo
@CodeDynamo 6 жыл бұрын
Awesome! Video
@michaelanastasakis7760
@michaelanastasakis7760 6 жыл бұрын
Great video
@riffrafftracey
@riffrafftracey Жыл бұрын
Hi great vid how about a vid on the esp32 from start to finish thank you Ha
@mr-nonsense
@mr-nonsense 5 жыл бұрын
That's a great "precision" ruler
@angelicaibay3268
@angelicaibay3268 5 жыл бұрын
Your genius bro
@somnath7mukherjee
@somnath7mukherjee 6 жыл бұрын
hi, I am not able to get execute first function in main.py...tht is get_object...its throwing an error
@mfr8471
@mfr8471 4 жыл бұрын
What other kinds of Raspberries are supported / useable? How low can you go? Can you use a Raspberry 1 Mod. B as well? I have a Camera Rev 1.3. Will this be accurate enough?
@engineeringtechniques6179
@engineeringtechniques6179 6 жыл бұрын
3d printing camera housing would be a great idea.
@Tech_Code127-76
@Tech_Code127-76 9 ай бұрын
Thanks! Now I could no when my parents come into my room😂
@mccc4559
@mccc4559 6 жыл бұрын
YOU ARE AWESOME!!!
@DjLight.
@DjLight. 5 жыл бұрын
Hello sir this is awsome video💜
@TheDragonAzz
@TheDragonAzz 4 жыл бұрын
With 4 out, can I run an os and then sight hound?
@mariancostinzamfir9357
@mariancostinzamfir9357 2 жыл бұрын
Smart guys !
@datdoesthings
@datdoesthings 3 жыл бұрын
Which OS should I install for my Raspberry Pi 3? Before I get into configuring the Camera when the code starts in the video. Thanks!
@ducsue751
@ducsue751 4 жыл бұрын
@5:40 Wait. Lucky supermarket store still exist? This was my childhood go to market. Still the same font used.
@d.sundeep6304
@d.sundeep6304 5 жыл бұрын
Please tell how to view that source footage not only in local machine but also in remote machine or in any mobile app
@Jlitechy
@Jlitechy 6 жыл бұрын
hello, how can i connect it a servo motor to be able to open door for the right person?
@voodoochili12
@voodoochili12 6 жыл бұрын
Can multiple cameras be used on the same network? Any tutorials or resources available for that?
@armelkouadio574
@armelkouadio574 5 жыл бұрын
Good video guy's
@fernandox1298
@fernandox1298 6 жыл бұрын
muito bom , parabéns!
@jakeb8
@jakeb8 5 жыл бұрын
How do you make this more secure network wise and do you know the code to arm and disarm this so that way I am not getting an alert every time someone passes by it when I am at home???
@andreamitchell4758
@andreamitchell4758 6 жыл бұрын
but why do this instead of using motion eye OS? are there any advantages over motion eye O? whcih is the better way to go what the pros and cons of each method and are there any better OS solution in the same vein as motion eye OS?
@mattivirta
@mattivirta 5 жыл бұрын
door cam have good if add this gpio relay who use solenoid and open door if want people to in. button on table near display you see someone come accept he in or not.
@joybuendia6742
@joybuendia6742 6 жыл бұрын
It works, it's better if you read the instructions of the GitHub page, cause have many differences for python 3 or 2 , in my case I needed to changed the route because was different, in my case was: Smart-Security-Camera-Master/. Also I needed to download the VIM, just sudo apt-get install vim, and that's it
@yuvarajvelumani7760
@yuvarajvelumani7760 4 жыл бұрын
Nice video. Will it work with RPi-B+ and night vision camera during daytime and night?
@Adnegoo
@Adnegoo 6 жыл бұрын
If i made that here in Brazil im pretty sure that they will steal my camera...
@FerrariTeddy
@FerrariTeddy 6 жыл бұрын
adriano sousa lol you gotta bolt that stuff down!
@MikeMaher
@MikeMaher 6 жыл бұрын
Make the housing blend into the surroundings. It doesn't have to be a black box..
@nicT9
@nicT9 6 жыл бұрын
If I put this up here in the USA, thieves will avoid wasting time at my house and probably drop a couple bucks in my lawn so I can go buy a better camera system.
@hamptonford3066
@hamptonford3066 6 жыл бұрын
But what if they steal what it's bolted down to?
@JoshSideris
@JoshSideris 6 жыл бұрын
If there's one thing I' know about Brazil from watching videos on the internet, it's that there's no shortage of off-duty police officers to save the day.
@lorensiuswlt
@lorensiuswlt 6 жыл бұрын
Nice tutorial...i have a plan to make security camera using raspberry pi like this. Can we take picture/snapshoot while the camera detecting motion so we can upload itu via http to server or send it along with the email attachment?
@xinxinliu1106
@xinxinliu1106 6 жыл бұрын
Having a lot of issues when running main.py. At first it was cv2 error and then many modules were not found. Was using Jessie with Python 2.7. Anyone help?
@najawarus5693
@najawarus5693 6 жыл бұрын
Best Tutorial for home made security cams
@Ree1981
@Ree1981 6 жыл бұрын
Top 10 anime security cam tutorials
@cbaymac
@cbaymac 6 жыл бұрын
Nice job
@MorneBooysen
@MorneBooysen 6 жыл бұрын
This is awesome, would like to see PC and Android tablet version of AI setup
@areebansari583
@areebansari583 6 жыл бұрын
Hey, can you help making an app that can stream the video ? any hint would help
@aniruddhamulay2932
@aniruddhamulay2932 5 жыл бұрын
Can i train the object detector using my own dataset on a pc and then deploy it on a Raspberry Pi as i want to build a security system which classifies between threat and no threat.
@Rahulus_
@Rahulus_ 4 жыл бұрын
can this be done on the raspberry pi b+ 1st gen
@chihoeliew5970
@chihoeliew5970 6 жыл бұрын
Is the code you provided only suitable for pi camera? Can I use other webcam instead?
@littlebiginventor8101
@littlebiginventor8101 6 жыл бұрын
Could you also make a system that detects if someone is laying on the floor, because then you coukd detect heart attacks.
@bobliao1665
@bobliao1665 6 жыл бұрын
Hi,can i reforward this video for another site without commercial purpose?
@mihirpatil8843
@mihirpatil8843 6 жыл бұрын
For night vision, get the NOir camera and some ir LEDs
@forksoner4571
@forksoner4571 5 жыл бұрын
This is a great video but please post a tutorial for a normal usb webcam I would love to be able to implement this at home
@ashishkumar-gr9hk
@ashishkumar-gr9hk 6 жыл бұрын
the browser takes long time to fetch the video feed, is it an internet speed problem or frame rate prob?
@lukerohl2266
@lukerohl2266 6 жыл бұрын
How would I edit the webpage for the camera server?
@techtam3505
@techtam3505 4 жыл бұрын
Hey guys i would like to say one thing that is instead of human detection you can add facial detection using tensorflow or the same open cv and you can make a smart door lock.
@lyssalud6781
@lyssalud6781 4 жыл бұрын
how much light does the camera need though to produce sufficient images
@vinkand6393
@vinkand6393 5 жыл бұрын
Thank you guys I works for me but how to access cam for a different network from anywhere. Pls help me...
@halilcnar6029
@halilcnar6029 5 жыл бұрын
Hello, You should edit your routers routing table. An example below Public IP x.y.z.t internal IP a.b.c.d You should route your public ip's some port to internal ip's some port x.y.z.t:9999 -> a.b.c.d:8888 then on a public WiFi, if you write your xyzt:9999 to the browser's address bar, you will see your camera. But it is not secure. Anyone that knows your routing table(camera port?) and public IP(may be static or dynamic ip) can see your house:)
@g.vsrinivasreddy3198
@g.vsrinivasreddy3198 5 жыл бұрын
can we do it in rasp 3 i mean is it same process or not
@palanid3287
@palanid3287 6 жыл бұрын
U have used a fixed focus camera where can i find auto focus camera that is compatible with raspberry pi zero W.
@smilelagoonOfficial
@smilelagoonOfficial 6 жыл бұрын
Hey for booting should we need Ethernet or Wi-Fi will work please reply
@simonemastroianni1985
@simonemastroianni1985 6 жыл бұрын
and if I want to broadcast online(remote)? with something like Apache2?
@henriquehff
@henriquehff 6 жыл бұрын
Can you make a video by modifying the camera so you can record videos at night and start recording only when it detects motion? Thanks a lot dude
@its_lexy_here712
@its_lexy_here712 6 жыл бұрын
Will the coding for the raspberry pi zero be the same for raspberry pi 3??
How to Make a Raspberry Pi Smart Bartender
15:09
Hacker Shack
Рет қаралды 977 М.
Building your own camera - Stupid or Genius?
9:51
Linus Tech Tips
Рет қаралды 1,2 МЛН
Smart Sigma Kid #funny #sigma #comedy
00:40
CRAZY GREAPA
Рет қаралды 33 МЛН
НРАВИТСЯ ЭТОТ ФОРМАТ??
00:37
МЯТНАЯ ФАНТА
Рет қаралды 8 МЛН
A little girl was shy at her first ballet lesson #shorts
00:35
Fabiosa Animated
Рет қаралды 17 МЛН
Schoolboy - Часть 2
00:12
⚡️КАН АНДРЕЙ⚡️
Рет қаралды 5 МЛН
Making the most EQUIPPED DIY Security Camera with ESP32-CAM
26:36
Max Imagination
Рет қаралды 349 М.
DIY Home Security - ON A BUDGET!
9:12
DIY Perks
Рет қаралды 5 МЛН
3 HACKING gadgets you have to TRY!!
19:34
NetworkChuck
Рет қаралды 1,5 МЛН
Nest Cams are a BIG RIPOFF - DIY WiFi Security Camera Guide
9:40
Linus Tech Tips
Рет қаралды 2,5 МЛН
Build an APRS Tracker with a Raspberry Pi Zero
15:06
KM4ACK
Рет қаралды 4,6 М.
Could you Escape This Impossible Puzzle?
11:41
Corridor Crew
Рет қаралды 402 М.
How to Convert Laptop Webcams to USB Webcams
5:29
DIY Perks 2
Рет қаралды 665 М.
I Can Save You Money! - Raspberry Pi Alternatives
15:04
Linus Tech Tips
Рет қаралды 3,3 МЛН
I Spy, with my Little Pi...
23:46
Jeff Geerling
Рет қаралды 302 М.
Xiaomi SU-7 Max 2024 - Самый быстрый мобильник
32:11
Клубный сервис
Рет қаралды 552 М.
Мой новый мега монитор!🤯
1:00
Корнеич
Рет қаралды 907 М.
Это iPhone 16
0:52
Wylsacom
Рет қаралды 921 М.
low battery 🪫
0:10
dednahype
Рет қаралды 1,8 МЛН
КРУТОЙ ТЕЛЕФОН
0:16
KINO KAIF
Рет қаралды 7 МЛН