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 років тому +2

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

  • @lleo9791
    @lleo9791 4 роки тому +1

    This project is great, thank you for sharing!

  • @christopherbillington8965
    @christopherbillington8965 4 роки тому +9

    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.

  • @paannnnnnnnnnnnnnnnnnnnnnnn
    @paannnnnnnnnnnnnnnnnnnnnnnn 6 років тому

    thanks for the tutorial!

  • @RT-eb6vo
    @RT-eb6vo 6 років тому

    Well done guys, as always.

  • @mnbvcxzzxcvbnm
    @mnbvcxzzxcvbnm 6 років тому

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

  • @cxosposync9937
    @cxosposync9937 2 роки тому

    Awesome Prj!!!

  • @niler3019
    @niler3019 6 років тому

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

  • @fabulousasia9848
    @fabulousasia9848 4 роки тому +2

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

  • @kehindea
    @kehindea 4 роки тому

    Brilliant video

  • @jkamagie
    @jkamagie 6 років тому

    Nice work, thx for the tutorial

  • @anamikamishra552
    @anamikamishra552 5 років тому

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

  • @SheltonDCruz
    @SheltonDCruz 2 роки тому

    Thanks Davis!

  • @nanakeyks
    @nanakeyks 4 роки тому

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

  • @lukaszgudewicz6442
    @lukaszgudewicz6442 6 років тому

    Awesome project. Will definitely give it a try.

  • @CodeDynamo
    @CodeDynamo 6 років тому

    Awesome! Video

  • @mariancostinzamfir9357
    @mariancostinzamfir9357 2 роки тому

    Smart guys !

  • @mgtowmapmaker8741
    @mgtowmapmaker8741 6 років тому +51

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

  • @kennedymwangi60
    @kennedymwangi60 5 років тому

    nice one i loved it

  • @mccc4559
    @mccc4559 6 років тому

    YOU ARE AWESOME!!!

  • @dheerajs2838
    @dheerajs2838 6 років тому

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

  • @Malcolmstuartcole
    @Malcolmstuartcole 6 років тому +1

    Very user friendly vid..well done

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

  • @michaelanastasakis7760
    @michaelanastasakis7760 6 років тому

    Great video

  • @arielomc
    @arielomc 6 років тому

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

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

  • @michaelashitey7930
    @michaelashitey7930 6 років тому

    Good work done

  • @pointer5698
    @pointer5698 6 років тому

    amazing...i should definitely try this dude

  • @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 роки тому +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 ?

  • @angelicaibay3268
    @angelicaibay3268 5 років тому

    Your genius bro

  • @gemix3858
    @gemix3858 3 роки тому

    Awesome

  • @DjLight.
    @DjLight. 5 років тому

    Hello sir this is awsome video💜

  • @armelkouadio574
    @armelkouadio574 5 років тому

    Good video guy's

  • @cbaymac
    @cbaymac 5 років тому

    Nice job

  • @fernandox1298
    @fernandox1298 6 років тому

    muito bom , parabéns!

  • @murderdoggg
    @murderdoggg 6 років тому

    Nice work with the jigsaw dude. I am surprised you don't have one with a shop-vac attachment.

  • @baronlemewproductions2787
    @baronlemewproductions2787 6 років тому

    pretty dam cool

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

  • @denstabear8367
    @denstabear8367 6 років тому

    great!

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

  • @mr-nonsense
    @mr-nonsense 5 років тому

    That's a great "precision" ruler

  • @armelkouadio574
    @armelkouadio574 5 років тому

    It is very good

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

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

  • @najawarus5693
    @najawarus5693 6 років тому +47

    Best Tutorial for home made security cams

    • @Ree1981
      @Ree1981 6 років тому +1

      Top 10 anime security cam tutorials

  • @dastanimanbai9845
    @dastanimanbai9845 6 років тому

    You are great

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

  • @engineeringtechniques6179
    @engineeringtechniques6179 6 років тому

    3d printing camera housing would be a great idea.

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

  • @riffrafftracey
    @riffrafftracey Рік тому

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

  • @iamParvezKhan25
    @iamParvezKhan25 5 років тому +2

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

  • @Tech_Code127-76
    @Tech_Code127-76 9 місяців тому

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

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

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

  • @Adnegoo
    @Adnegoo 6 років тому +593

    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.

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

  • @jatinnaik4320
    @jatinnaik4320 6 років тому +1

    Awesome bro

  • @grayhatfailure2428
    @grayhatfailure2428 5 років тому +118

    I'm 42, do I still need a parent to help me cut out the MDF?

    • @draco5991rep
      @draco5991rep 5 років тому +28

      Yes, even if you're 95 year old, you need a parent to help you cutting the MDF. Without a parent it won't work :(

    • @bruh-gn5kc
      @bruh-gn5kc 5 років тому +13

      *Illegal without a parental guardians assistance and approval*

    • @gzcwnk
      @gzcwnk 4 роки тому +2

      If you need to ask, yes.

    • @timfoote6919
      @timfoote6919 4 роки тому

      yes

    • @soorionyt
      @soorionyt 4 роки тому

      @Cloudy_lotus no no no u have to do Orochimaru's reanimation jutsu from Naruto.

  • @scamersant2278
    @scamersant2278 6 років тому

    The best

  • @gawi834
    @gawi834 3 роки тому

    you should sell this thing, awesome!!

  • @AtenTetsu
    @AtenTetsu 3 роки тому

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

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

  • @NareshKumar-vd9en
    @NareshKumar-vd9en 5 років тому

    Nice

  • @SJRHchannelshrujan
    @SJRHchannelshrujan 6 років тому

    Super

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

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

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

  • @JaayJaay9998
    @JaayJaay9998 6 років тому +2

    *Precision Ruler*

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

  • @ducsue751
    @ducsue751 4 роки тому +1

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

  • @lukerohl2266
    @lukerohl2266 6 років тому +1

    How would I edit the webpage for the camera server?

  • @Rahulus_
    @Rahulus_ 4 роки тому

    can this be done on the raspberry pi b+ 1st gen

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

  • @aman.takher
    @aman.takher 4 роки тому

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

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

  • @ltserge3226
    @ltserge3226 6 років тому

    that was really fking cool thanks for the code yo

  • @MorneBooysen
    @MorneBooysen 6 років тому

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

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

  • @yuvarajvelumani7760
    @yuvarajvelumani7760 4 роки тому

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

  • @mihirpatil8843
    @mihirpatil8843 6 років тому

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

  • @aldifachrurrozi4822
    @aldifachrurrozi4822 4 роки тому

    what sensors do you use?

  • @mnasriwajdi6282
    @mnasriwajdi6282 3 роки тому

    hey can i use node.js for the back end part

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

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

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

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

  • @TheDragonAzz
    @TheDragonAzz 4 роки тому

    With 4 out, can I run an os and then sight hound?

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

  • @sajsed2
    @sajsed2 4 роки тому

    Epic

  • @baphnie
    @baphnie 5 років тому

    Great for areas that never experience weather.

  • @somnath7mukherjee
    @somnath7mukherjee 6 років тому +1

    hi, I am not able to get execute first function in main.py...tht is get_object...its throwing an error

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

  • @crazyfootball352
    @crazyfootball352 6 років тому

    what alghoritm you used ?

  • @borgelite
    @borgelite 6 років тому

    Great Video can you make a video with face recognition.

  • @areebansari583
    @areebansari583 6 років тому

    Hey, can you help making an app that can stream the video ? any hint would help

  • @andreamitchell4758
    @andreamitchell4758 5 років тому

    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?

  • @kf8876
    @kf8876 5 років тому

    Does this work with the new version of rasberian

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