Code Monkey home page Code Monkey logo

video-ai-poc's Introduction

Video AI POC

This repository holds the code for a Vision POC. The Vision POC leverages GCP and its services to detect social distancing among people from a livecam. Worked on this at Adastra Corporation

A detection from this app

Before running main.py, ensure that you have done the following:

Online or Local Storage

In the main.py file, you can either activate or or deactivate online storage by setting the 'storage_online' variable as True or False.

Cloud Storage

Make sure you have access to the appropriate cloud storage bucket if you have decided to go with online storage. Add the video file you want to analyze to the 'input' folder in the appropriate bucket. Ask Eldrick if you need access.

Before Running

  1. Go to your repository file path in your CMD
  2. Create a virtual environment. In CMD write: python -m venv [c:\path\to\myenv]
  3. Activate your virtual environment. In CMD write [c:\path\to\myenv]\Scripts\activate
  4. Download dependencies. In CMD write pip install -r requirements.txt
  5. Initalize API key.
    • Let [PATH] be youre API key path (it is found in this repo under the name apikey.json)
    • In the command prompt write set GOOGLE_APPLICATION_CREDENTIALS=[PATH].
  6. To run the function, make sure your CMD format is the following:
    • python main.py [VIDEO_NAME] [DETECTION_CALL_1] (optional)[DETECTION_CALL_2]
    • For example: python main.py people-detection PERSON_DETECTION HOG_OPENCV

Test Videos

Here is a link with interesting test videos.

video-ai-poc's People

Contributors

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