Giter Club home page Giter Club logo

ptsafe-crowd-detection-elb's Introduction

PTSafe logo

PTSafe Backend (version 1.0)

PTSafe logo Star us on GitHub โ€” it motivates us a lot!

1. Overview

The PTSafe backend is created in order to support the main functionalities that are covered in the PTSafe mobile application (can be found here in PTSafe mobile). It consists of two main backend framework developed on top of Flask and NodeJS, and it is connected to the data source Amazon Web Services (AWS) RDS. While the Flask API is utilised to expose the crowd detection model, the NodeJS-Express API is utilised to expose the main data source for the application. To support the deployment process, both backend APIs are served in AWS Elastic Beanstalk link Platform-as-a-service (PaaS) hosting service.

2. Software Architecture and Design Principle Involved

2.1. Backend for the main software functionality

The back-end object detection part of the application is established by using a Flask API framework based on python. It is expected at this point that all API endpoint creation is generated by using a functional programming paradigm rather than Object-Oriented Principle (OOP) to speed up the development process.

Meanwhile, the model is developed by using YOLOv3 computer vision black-box, and achieve an accuracy of nearly 90% for each edge cases.

3. Tech/framework used

4. Libraries/package involved:

4.2. Flask dependencies

  • click (7.1.2)
  • Flask (1.1.2)
  • gunicorn (20.0.4)
  • itsdangerous (1.1.0)
  • Jinja2 (2.11.2)
  • MarkupSafe (1.1.1)
  • numpy (1.18.4)
  • opencv-python (4.2.0.34)
  • scipy (1.4.1)
  • Werkzeug (1.0.1)

5. List of endpoints and functionalities

Endpoint Request Method Request param Request body functionalities
http://ptsafeyoloapi-env-1.eba-2wtk3jqk.us-east-1.elasticbeanstalk.com/v1/predict POST none file (JPG, PNG) detect number of people inside a carriage

7. Installation

7.1. Flask API

Some steps are required to run this application locally on your computer machine:

  • Fork this repository to your own machine
  • Install required packages including Flask, Python, etc
  • Happy exploring!

8. Active development branch

  • master (is merged with the iteration-2 branch)

ptsafe-crowd-detection-elb's People

Contributors

ymul0001 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.