GithubHelp home page GithubHelp logo

markwest1972 / smart-security-camera Goto Github PK

View Code? Open in Web Editor NEW
110.0 110.0 33.0 404 KB

A Pi Zero and Motion based webcamera that forwards images to Amazon Web Services for Image Processing

License: GNU General Public License v3.0

JavaScript 41.48% Shell 0.63% Java 57.89%
arn aws aws-iam aws-lambda aws-rekognition aws-s3 aws-sdk aws-sdk-js aws-ses aws-step-function bucket-policy image-analysis java java-8 javascript motion nodejs nodemailer orchestration web-camera

smart-security-camera's People

Contributors

cuongthamhl avatar markwest1972 avatar tealtail avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

smart-security-camera's Issues

Node 6.10 EOL

Mark,

I know you aren't actively supporting this anymore, but do you know if the node.js code you wrote is compatible with 8.10? Can I just change the runtime of the lamda functions in the AWS console from 6.10 to 8.10?

Thanks,

Matt

Issues I found attempting to follow along

First let me say thank you for this! I found this extremely helpful to get started using AWS for a project similar to yours. I would like to give back a little by making it easier for others to implement this by highlighting the following issues I encountered.

  1. Suggested Implementation Plan - Step 5 - Hyperlink for aws-lambda-functions incorrectly maps to aws-step-function.

  2. s3-trigger-image-processing instructions, upload to AWS section - Step 2. Instead of "/upload" it needs to be "upload". The "/" prevents the trigger from working.

  3. You have hardcoded your AWS region into index.js files for both nodemailer-send-notification and nodemailer-error-handler. The description doesn't indicate that this needs to be changed. Maybe using another Environment Variable to hold the region?

Thanks again...

dependency for Parameters

Hello,
where I can find the Parameters.java with the function .getS3Bucket
Is it a maven dependency?

lg Jan

Rekognition image assessment failing

Hi there

Firstly thank you for this project!
I have been trying to get this working for a few weeks now, and though maybe you could suggest what I am doing wrong here.
Everything works fine up to the end of the first step-engine function (rekognition-image-assessment). According to the step engine the function completed (is green), and then directs to the nodemailer-error-handler (which is red).
The output of the rekognition-image-assessment function lists: {"Error":"Lambda.Unknown","Cause":"The cause could not be determined because Lambda did not return an error type."}.
I have added a few console.log statements to the rekognition-image-assessment code and tested, and it gets successful params, and I can output the request variable after the if/else loop. However the console.log statements inside the if/else loop never log, and I am not 100% sure how to read the request var output.
Is this something you came across at all?
Apologies for this request, but this is my first attempt with AWS, and my last programming experience was VN.net many years ago.

Thanks!

lambda function fails

This function fails with the following error message:

Error [InvalidParameterValue: Missing required header 'From'.].

Full error message:

"errorMessage": "Error in [nodemailer-send-notification].\r Function input [{\n "Alert": "true",\n "Labels": [\n {\n "Name": "Human",\n "Confidence": 99.26097106933594\n },\n {\n "Name": "People",\n "Confidence": 99.26097106933594\n },\n {\n "Name": "Person",\n "Confidence": 99.26097106933594\n },\n {\n "Name": "Female",\n "Confidence": 72.58753967285156\n },\n {\n "Name": "Girl",\n "Confidence": 72.58753967285156\n },\n {\n "Name": "Woman",\n "Confidence": 72.58753967285156\n },\n {\n "Name": "Dimples",\n "Confidence": 71.27963256835938\n },\n {\n "Name": "Face",\n "Confidence": 71.27963256835938\n },\n {\n "Name": "Bling",\n "Confidence": 53.77670669555664\n },\n {\n "Name": "Jewelry",\n "Confidence": 53.77670669555664\n },\n {\n "Name": "Ornament",\n "Confidence": 53.77670669555664\n },\n {\n "Name": "Glasses",\n "Confidence": 52.02589797973633\n },\n {\n "Name": "Leisure Activities",\n "Confidence": 50.84391403198242\n },\n {\n "Name": "Sunglasses",\n "Confidence": 50.83937072753906\n }\n ],\n "OrientationCorrection": "ROTATE_0",\n "bucket": "blahblah",\n "key": "upload/0H2A8407.jpg"\n}].\r Error [InvalidParameterValue: Missing required header 'From'.]."

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.