GithubHelp home page GithubHelp logo

tranzmatt / demo-multi-video-stream-tranzmatt Goto Github PK

View Code? Open in Web Editor NEW

This project forked from google-coral/demo-multi-video-stream

0.0 0.0 0.0 117.32 MB

Demo showcasing processing multiple videostreams in parallel on system with 8 EdgeTPUs

License: Apache License 2.0

Shell 0.38% C++ 83.53% C 0.15% Makefile 3.08% Dockerfile 0.78% Starlark 12.07%

demo-multi-video-stream-tranzmatt's Introduction

Edge TPU Multiple Video Streams Demo

This repo contains an end to end demo source code that allows to process multiple video streams with ML inference using 8 EdgeTPUs in one system. It is intended to be used with the ASUS AI Accelerator PCIe Card although it is also possible to use x86 or ARM systems with 8 TPUs (likely combining multiple USB Accelerators and a host like the the Dev Board).

The demo is hardcoded to run 5 separate video streams (defined in the Pipeline class) with different types of inferenceing running on the streams on a total number of 8 TPUs. In addition to the 8 TPUs, a mid to high end GPU is recommended to handle the mixing/rendering done by the GStreamer pipeline.

The window shows 6 video windows as follows:

  1. Cars on highway with pipelined inferencing, 4 TPUs
  2. Students in classroom with people segmentation, 1 TPU
  3. Workers walking around with detection inferencing and a keepout zone, 1 TPU
  4. Back yard video with detection inferencing and identification, 1 TPU
  5. Bird video with object detection marking up birds and cropping the next window, 0.5 TPU
  6. Cropped window of the same bird video as previous with classification of species (This model is cocompiled with the previous bird detection model), 0.5 TPU

Pressing 1-6 brings the selected video to the front and scales it up. Pressing any other key brings back the tiled view.

Building the demo for x86

The demo is only tested on an x86

If you have docker installed you can build it by typing (preferred way):

make DOCKER_TARGETS=demo docker-build

It is also possible to build locally, but you should validate your system has the dependecies listed in the Dockerfile.

make demo

Running the demo

./MultiVideoStreamsDemo

That's all!

demo-multi-video-stream-tranzmatt's People

Contributors

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