Giter Site home page Giter Site logo

shikhar97 / hybrid-cloud Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 54 KB

A system that can handle automated video analysis tasks, such as face recognition, using serverless functions and distributed storage.

License: Apache License 2.0

Dockerfile 10.62% Python 89.38%
aws boto3 ceph cephfs dynamodb minikube openfaas microceph

hybrid-cloud's Introduction

Project-Hybrid Cloud

This project involves the integration of AWS services, OpenFaaS, Ceph, and other tools to perform cloud-based video processing and data analysis. The primary goal is to develop a system that can handle automated video analysis tasks, such as face recognition, using serverless functions and distributed storage.

Team Members

  1. Shikhar Gupta: Installed and configured ubuntu 22.04 virtual machine on Oracle virtualbox on a windows machine and configured Ceph on the same.
  2. Maitry Ronakbhai Trivedi: Worked on building the docker file required for the openfaas function and deployed the same.
  3. Ayushi Agarwal: Worked on setting up Openfaas for deployment and configuring Openfaas on Minikube.

Project Components

check.py

This script checks the correctness of the video processing workflow. It verifies the results obtained from the face recognition function by comparing them with predefined mappings. The mappings are specified in the mapping file.

face-recognition.yml

This YAML file defines the OpenFaaS function for face recognition. It specifies the Docker image and dependencies required for the serverless function.

notification.py

The notification script monitors the input bucket and triggers the face recognition function when new objects are uploaded. It uses a simple HTTP listener to invoke the OpenFaaS function.

student_data.json

A JSON file containing sample student data. This data is used for populating a DynamoDB table in the upload_data.py script.

upload_data.py

This script uploads student data to a DynamoDB table. It reads data from the student_data.json file and uses the AWS SDK for Python (Boto3) to interact with DynamoDB.

workload.py

The workload script generates a test case by uploading video files to the input bucket. It prepares the system for testing the video processing workflow.

Dockerfile

A multi-stage build for an OpenFaaS function with Python runtime. The final runtime image includes the required dependencies, such as ffmpeg, and copies the function code, dependencies, and handler script. The CMD instruction specifies the default command to execute when the container starts, pointing to the handler function for the OpenFaaS function.

handler.py

Python script containing the OpenFaas function logic for face recognition.

.env

Contain environment variable settings for AWS and Ceph configurations.

Getting Started

  1. Setup Environment: Ensure that you have the necessary environment variables set, including AWS and Ceph credentials.

  2. Install Dependencies: Install the required Python packages using pip install -r requirements.txt.

  3. Run the Workload Script: Execute workload.py to simulate a workload by uploading test videos to the input bucket.

  4. Triggers notification: Execute notification.py to trigger the openfaas function.

hybrid-cloud's People

Contributors

shikhar97 avatar

Stargazers

 avatar

Watchers

 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.