Code Monkey home page Code Monkey logo

cc-546-project-2's Introduction


Image Recognition using AWS Lambda and IoT Raspberry PI

An IoT-based application that uses AWS S3, AWS Lambda and AWS DynamoDB to provide image recognition in real time to consumers of the application.

Table of Contents
  1. About The Project
  2. Getting Started
  3. License
  4. References

About The Project

This is the second part of the project for the course CSE 546 - Cloud Computing.

High level overview: The Raspberry Pi records the videos using its attached camera. The cloud performs face recognition on the collected videos, looks up the recognized students in the database, and returns the relevant academic information of each recognized student back to the user.

(go to top)

Frameworks And Tools Used

(go to top)

Getting Started

This section contains instructions on setting up the project locally. To get a local copy up and running follow these simple steps.

There are two folders, Image recognition training & validation, and lambda 2 docker image.

To train the custom model, run

pip3 install -r install_requirements.txt

For training the model, we have to upload images of 160x160 resolution taken from the PI camera, stored in real_images folder inside the training & validation folder. The images must follow the same structure as the images in test_me directory.

python3 train_face_recognition.py –data_dir "data/real_images/" –num_epochs 100

For evaluating the model, run the command:

python3 eval_face_recognition.py –img_path “data/real_images/val/<name_of_student>/<name_of_file>.png”

For running the code in the first lambda function, directly copy the lambda_1.py file to the lambda function code and deploy it.

For setting up the docker image for the second lambda function run:

docker build -t <folder_name> .
docker push <user_id><region>.amazonaws.com/<folder_name>:latest

For running the Raspberry PI script to push videos to S3, run:

pip3 install boto3
python3 push.py <time_in_minutes>

(go to top)

License

Distributed under the MIT License. See LICENSE.md for more information.

(go to top)

References

(go to top)

cc-546-project-2's People

Contributors

srikanth100 avatar

Watchers

 avatar  avatar

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.