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

แชร์
ฝัง
  • เผยแพร่เมื่อ 18 ก.ย. 2017
  • 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

  • @circuitmasters5258
    @circuitmasters5258 5 ปีที่แล้ว +5

    Man Finally this project I have been trying to create for a minute...i need it LOL!

  • @theapricotbambino
    @theapricotbambino 6 ปีที่แล้ว +1

    why am I just finding this youtube channel now!? I love you guys!

  • @christopherbillington8965
    @christopherbillington8965 4 ปีที่แล้ว +7

    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.

  • @mgtowmapmaker8741
    @mgtowmapmaker8741 6 ปีที่แล้ว +51

    Always test your electronic components to make sure they function properly before mounting them in a "permanent" way. Great video.

    • @tannerlane9669
      @tannerlane9669 2 ปีที่แล้ว +1

      How do you know he didn’t ?

  • @lleo9791
    @lleo9791 4 ปีที่แล้ว +1

    This project is great, thank you for sharing!

  • @niler3019
    @niler3019 6 ปีที่แล้ว

    You could easily become a teacher! Thanks for the video!

  • @fabulousasia9848
    @fabulousasia9848 4 ปีที่แล้ว +1

    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! :)

  • @nanakeyks
    @nanakeyks 4 ปีที่แล้ว

    I love the use of multiple skills to get the job done.

  • @cri8tor
    @cri8tor 5 ปีที่แล้ว +2

    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

  • @narpat007
    @narpat007 4 ปีที่แล้ว +3

    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 ?

  • @mnbvcxzzxcvbnm
    @mnbvcxzzxcvbnm 6 ปีที่แล้ว

    I'm going to do it. Excited. Thank you guys.

  • @anamikamishra552
    @anamikamishra552 5 ปีที่แล้ว

    That ruler used to draw the line was so precise & appropriate. By the way nice video

  • @arielomc
    @arielomc 6 ปีที่แล้ว

    Excelent project guys!! I imagine the v2.0 where you install night vision to this security camera.

  • @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 :)

  • @dheerajs2838
    @dheerajs2838 6 ปีที่แล้ว

    accidentally stumble upon your channel .. you guys are doing amazing job :)

  • @PeterMaloy
    @PeterMaloy 6 ปีที่แล้ว +1

    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.

  • @lukaszgudewicz6442
    @lukaszgudewicz6442 6 ปีที่แล้ว

    Awesome project. Will definitely give it a try.

  • @RT-eb6vo
    @RT-eb6vo 6 ปีที่แล้ว

    Well done guys, as always.

  • @GadgetAddict
    @GadgetAddict 6 ปีที่แล้ว +22

    Pretty cool. Useful for those who just want something that basically works out of the box.

    • @Chris_t0
      @Chris_t0 3 ปีที่แล้ว +14

      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 ปีที่แล้ว +1

      @@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

  • @DanielJohnHowTo
    @DanielJohnHowTo 6 ปีที่แล้ว +17

    The wood needs sealing and priming otherwise it will swell up and come loose etc , in case anybody is thinking of building this.

  • @iamParvezKhan25
    @iamParvezKhan25 5 ปีที่แล้ว +2

    Thanks gor share entire project.. I will tty to make this. For home security. Thanks again! Love. 😍😘

  • @cxosposync9937
    @cxosposync9937 2 ปีที่แล้ว

    Awesome Prj!!!

  • @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

  • @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

  • @Malcolmstuartcole
    @Malcolmstuartcole 6 ปีที่แล้ว +1

    Very user friendly vid..well done

  • @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.

  • @paannnnnnnnnnnnnnnnnnnnnnnn
    @paannnnnnnnnnnnnnnnnnnnnnnn 6 ปีที่แล้ว

    thanks 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.

  • @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

  • @pointer5698
    @pointer5698 6 ปีที่แล้ว

    amazing...i should definitely try this dude

  • @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

  • @roid1510
    @roid1510 6 ปีที่แล้ว +1

    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?

  • @najawarus5693
    @najawarus5693 6 ปีที่แล้ว +47

    Best Tutorial for home made security cams

    • @Ree1981
      @Ree1981 6 ปีที่แล้ว +1

      Top 10 anime security cam tutorials

  • @Ricraftsla
    @Ricraftsla 4 ปีที่แล้ว +2

    Thank you so much for the tutorial...
    How to fix "error sending email?"

    • @GeniusFormat
      @GeniusFormat 3 ปีที่แล้ว +1

      The error that I am getting is "Error sending email: "

  • @DjLight.
    @DjLight. 5 ปีที่แล้ว

    Hello sir this is awsome video💜

  • @engineeringtechniques6179
    @engineeringtechniques6179 6 ปีที่แล้ว

    3d printing camera housing would be a great idea.

  • @kennedymwangi60
    @kennedymwangi60 5 ปีที่แล้ว

    nice one i loved it

  • @kehindea
    @kehindea 4 ปีที่แล้ว

    Brilliant video

  • @michaelashitey7930
    @michaelashitey7930 6 ปีที่แล้ว

    Good work done

  • @MorneBooysen
    @MorneBooysen 6 ปีที่แล้ว

    This is awesome, would like to see PC and Android tablet version of AI setup

  • @SheltonDCruz
    @SheltonDCruz 2 ปีที่แล้ว

    Thanks Davis!

  • @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.

  • @michaelanastasakis7760
    @michaelanastasakis7760 6 ปีที่แล้ว

    Great video

  • @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?

  • @angelicaibay3268
    @angelicaibay3268 5 ปีที่แล้ว

    Your genius bro

  • @CodeDynamo
    @CodeDynamo 6 ปีที่แล้ว

    Awesome! Video

  • @mariancostinzamfir9357
    @mariancostinzamfir9357 2 ปีที่แล้ว

    Smart guys !

  • @fernandox1298
    @fernandox1298 6 ปีที่แล้ว

    muito bom , parabéns!

  • @aman.takher
    @aman.takher 4 ปีที่แล้ว

    Hi there, Excellent video. One question is this setup is capable with Raspi 4 B?

  • @mccc4559
    @mccc4559 6 ปีที่แล้ว

    YOU ARE AWESOME!!!

  • @AtenTetsu
    @AtenTetsu 3 ปีที่แล้ว

    HI thanks for this great tutorial. But, may I know can I add alarm function when it detect the person?

  • @yuvarajvelumani7760
    @yuvarajvelumani7760 4 ปีที่แล้ว

    Nice video. Will it work with RPi-B+ and night vision camera during daytime and night?

  • @armelkouadio574
    @armelkouadio574 5 ปีที่แล้ว

    Good video guy's

  • @cbaymac
    @cbaymac 5 ปีที่แล้ว

    Nice job

  • @Colaaah
    @Colaaah 6 ปีที่แล้ว +5

    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 😉

  • @mihirpatil8843
    @mihirpatil8843 6 ปีที่แล้ว

    For night vision, get the NOir camera and some ir LEDs

  • @mr-nonsense
    @mr-nonsense 5 ปีที่แล้ว

    That's a great "precision" ruler

  • @ntc490
    @ntc490 5 ปีที่แล้ว

    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.

  • @travis8753
    @travis8753 6 ปีที่แล้ว +275

    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 ปีที่แล้ว +8

      Travis lol, true, but to each their own. But i like your style better.

    • @hellrazor35
      @hellrazor35 6 ปีที่แล้ว +14

      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 ปีที่แล้ว +3

      that would look sleek. will definitely look better.

    • @KapnKerfuffle
      @KapnKerfuffle 6 ปีที่แล้ว +15

      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 ปีที่แล้ว +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.

  • @riffrafftracey
    @riffrafftracey ปีที่แล้ว

    Hi great vid how about a vid on the esp32 from start to finish thank you Ha

  • @Adnegoo
    @Adnegoo 6 ปีที่แล้ว +592

    If i made that here in Brazil im pretty sure that they will steal my camera...

    • @FerrariTeddy
      @FerrariTeddy 6 ปีที่แล้ว +13

      adriano sousa lol you gotta bolt that stuff down!

    • @MikeMaher
      @MikeMaher 6 ปีที่แล้ว +27

      Make the housing blend into the surroundings. It doesn't have to be a black box..

    • @nicT9
      @nicT9 6 ปีที่แล้ว +116

      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 ปีที่แล้ว +3

      But what if they steal what it's bolted down to?

    • @JoshSideris
      @JoshSideris 6 ปีที่แล้ว +11

      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.

  • @borgelite
    @borgelite 6 ปีที่แล้ว

    Great Video can you make a video with face recognition.

  • @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

  • @gawi834
    @gawi834 3 ปีที่แล้ว

    you should sell this thing, awesome!!

  • @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?

  • @Tech_Code127-76
    @Tech_Code127-76 8 หลายเดือนก่อน

    Thanks! Now I could no when my parents come into my room😂

  • @kenneththomsen8503
    @kenneththomsen8503 6 ปีที่แล้ว

    Would have used MotionEyeOS. :) I'm pretty sure it's compatible with the Raspberry Pi Zero! :)

  • @baronlemewproductions2787
    @baronlemewproductions2787 6 ปีที่แล้ว

    pretty dam cool

  • @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?

  • @armelkouadio574
    @armelkouadio574 5 ปีที่แล้ว

    It is very good

  • @gemix3858
    @gemix3858 3 ปีที่แล้ว

    Awesome

  • @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?

  • @user-du2wh6ny5i
    @user-du2wh6ny5i 5 ปีที่แล้ว

    かっこいい!マジで感謝してます。こういうの探してました。参考にさせていただきます。

  • @ducsue751
    @ducsue751 4 ปีที่แล้ว +1

    @5:40 Wait. Lucky supermarket store still exist? This was my childhood go to market. Still the same font used.

  • @JaayJaay9998
    @JaayJaay9998 6 ปีที่แล้ว +2

    *Precision Ruler*

  • @n0ukf
    @n0ukf 6 ปีที่แล้ว +1

    A jigsaw is not the best thing to use to cut straight lines. You can get straighter lines with a plain handsaw. Before painting the MDF you can seal the surface with white or wood glue (or actual wood sealer) to seal it against excessive paint absorption, reducing the number of coats required for full coverage.

  • @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.

  • @baphnie
    @baphnie 5 ปีที่แล้ว

    Great for areas that never experience weather.

  • @jatinnaik4320
    @jatinnaik4320 6 ปีที่แล้ว +1

    Awesome bro

  • @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?

  • @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

  • @voodoochili12
    @voodoochili12 6 ปีที่แล้ว

    Can multiple cameras be used on the same network? Any tutorials or resources available for that?

  • @chihoeliew5970
    @chihoeliew5970 5 ปีที่แล้ว

    Is the code you provided only suitable for pi camera? Can I use other webcam instead?

  • @dastanimanbai9845
    @dastanimanbai9845 6 ปีที่แล้ว

    You are great

  • @aniruddhamulay2932
    @aniruddhamulay2932 5 ปีที่แล้ว +1

    Loved the tutorial. Can anybody please tell me how can I add a SMS functionality to send a message when it detects a object.
    Thank You

    • @ProfessionalGasLighting
      @ProfessionalGasLighting 5 ปีที่แล้ว

      aniruddha mulay short fix is to configure the destination email address to be forwarded to your cellular provider it’ll look something like xxxxxxxxxx@tmobile.com that’s not the exact formatting but you get the idea

  • @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#?

  • @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.

  • @Darkwell0071
    @Darkwell0071 4 ปีที่แล้ว

    May I suggest a parts list with prices. Source if available.

  • @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

  • @datdoesthings9652
    @datdoesthings9652 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!

  • @denstabear8367
    @denstabear8367 6 ปีที่แล้ว

    great!

  • @bobliao1665
    @bobliao1665 6 ปีที่แล้ว

    Hi,can i reforward this video for another site without commercial purpose?

  • @crilton
    @crilton 6 ปีที่แล้ว

    Cool project, if someone doesn't want to build it out of MDX they can just pickup a project box for a few bucks and start drilling!

  • @ltserge3226
    @ltserge3226 6 ปีที่แล้ว

    that was really fking cool thanks for the code yo

  • @jlechem
    @jlechem 3 ปีที่แล้ว

    Good video, but you should anchor the pi to the bottom of the enclosure to keep it from moving around.

  • @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?

  • @smilelagoonOfficial
    @smilelagoonOfficial 6 ปีที่แล้ว

    Hey for booting should we need Ethernet or Wi-Fi will work please reply

  • @adnanmursyidin1274
    @adnanmursyidin1274 6 ปีที่แล้ว

    Awesome tutorial, how if i using lower version rasberry pi camera, like rasberry pi camera modul rev 1.3 5MP?

  • @AndrewAlex92
    @AndrewAlex92 6 ปีที่แล้ว +61

    At 10:45, you go through allowing the insecure login. You should instead just generate an App Password support.google.com/accounts/answer/185833?hl=en and use that in place of your real password to begin with. You never want your Google password stored in plaintext anywhere.

    • @hackershack
      @hackershack  6 ปีที่แล้ว +12

      +AndrewAlex92 good idea. I can update the docs tonight

    • @hackershack
      @hackershack  6 ปีที่แล้ว +12

      updated