Coder Social home page Coder Social logo

ngzhili / yolov5-real-time-object-detection Goto Github PK

View Code? Open in Web Editor NEW
13.0 1.0 5.0 190 KB

Real Time Video Feed with Object Detection using Yolov5 (custom or pre-trained model) deployed on web browser using Flask backend.

License: MIT License

Dockerfile 2.39% Python 60.00% CSS 3.82% HTML 33.79%
yolov5 flask object-detection pytorch html5 real-time-object-detection video-inference

yolov5-real-time-object-detection's Introduction

Yolov5 Object Detection on Live Stream Video via Flask

framework libraries models

The Yolov5s pretained model is deployed using flask. This repo contains example apps for exposing the yolo5 object detection model from pytorch hub via a flask api/app.

Web app

Simple app that enables live webcam detection using pretrained YOLOv5s weights and see real time inference result of the model in the browser.

yolov5-real-time

Run & Develop locally

Run locally and dev:

  • conda create -n <VENV>
  • conda activate <VENV>
  • (<VENV>) $ pip install -r requirements.txt
  • (<VENV>) $ flask run

Docker

The example dockerfile shows how to expose the rest API:

# Build
docker build -t yolov5 .
# Run
docker run -p 5000:5000 yolov5-flask:latest

reference

yolov5-real-time-object-detection's People

Contributors

ngzhili avatar

Stargazers

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