Giter Site home page Giter Site logo

cv-dash's Introduction

Object Detection

This is a demo of the Dash interactive Python framework developed by Plotly.

Dash abstracts away all of the technologies and protocols required to build an interactive web-based application and is a simple and effective way to bind a user interface around your Python code. To learn more check out our documentation.

Try out the demo app here.

Animated1

Getting Started

Using the demo

To get started, select the footage you want to view, and choose the display mode (with or without bounding boxes). Then, you can start playing the video, and the result of objects detected will be displayed in accordance to the current video-playing time.

Running the app locally

First create a virtual environment with conda or venv inside a temp folder, then activate it.

virtualenv dash-object-detection

# Windows
dash-object-detection\Scripts\activate
# Or Linux
source venv/bin/activate

Clone the git repository, and install the requirements with pip

git clone https://github.com/plotly/dash-sample-apps.git
cd dash-sample-apps/apps/dash-object-detection
pip install -r requirements.txt

Run the app

python app.py

About this app

The videos are displayed using a community-created Dash video component. You can find reference to the source code here.

All videos used are open-sourced under Creative Commons. The original links can be found here.

Model

The object detection model is the MobileNet v1, made by Google and trained on the COCO dataset. You can find their implementation on their official Github repo. You are encouraged to try this app with other models.

Bounding Box Generation

The data displayed in the app are pre-generated for demo purposes. To generate the csv files containing the objects detected for each frame, as well as the output video with bounding boxes, please refer to utils/generate_video_data.py. You will need the latest version of tensorflow and OpenCV, as well as the frozen graph ssd_mobilenet_v1_coco, that you can download in the Model Zoo. Make sure to place the frozen graph inside the same folder as generate_video_data.py, i.e. utils.

Built With

  • Dash - Main server and interactive components
  • Plotly Python - Used to create the interactive plots
  • Dash Player - Used to control and play videos using Dash
  • OpenCV - Create the video with bounding boxes
  • Tensorflow - Generate the bounding box data

Authors

Screenshots

Screenshot1

Screenshot2

computer-vision-dash

cv-dash

cv-dash's People

Contributors

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