Skip to content

Code for motion detection using Raspberry Pi, pushing the images to Azure Blob, running serverless code to analyze those images via Azure Cognitive

Notifications You must be signed in to change notification settings

ashfondu/raspi_serverless

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

raspi_serverless

Code for motion detection using Raspberry Pi, pushing the images to Azure Blob, running serverless code to analyze those images via Azure Cognitive

The Raspi folder has code that you will need to run on the Raspberry Pi. This code will reference the conf.json file for camera related settings. When motion is detected Raspi takes an image and uploads it to Azure Blob. For the code to work you will need to install the cv2 library

The Azure Serverless folder contains Python Code that runs on the Azure Blob container, when image is uploaded to Blob the URL of the image is sent to Azure Cognitive service which analyzes the image and returns the findings. Part of those findings are parsed and then sent via Twilio to a text message.

Instructions on how to setup Python Functions for Azure https://gist.github.com/ashfondu/ac5395dcb45829d39cb1bb7362131614

Tutorial on how to install OpenCV (cv2)
https://www.deciphertechnic.com/install-opencv-python-on-raspberry-pi/

The majority of Raspi code credit goes to @erogol and via his excellent article
https://hackernoon.com/raspberrypi-home-surveillance-with-only-150-lines-of-python-code-2701bd0373c9

About

Code for motion detection using Raspberry Pi, pushing the images to Azure Blob, running serverless code to analyze those images via Azure Cognitive

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages