Code Monkey home page Code Monkey logo

multiple-camera-streams's Introduction

Multiple Camera Streams

This alwaysAI application demonstrates how to incorporate video streams from multiple cameras into a single app.

Setup

This app requires an alwaysAI account. Head to the Sign up page if you don't have an account yet. Follow the instructions to install the alwaysAI toolchain on your development machine.

Next, create an empty project to be used with this app. When you clone this repo, you can run aai app configure within the repo directory and your new project will appear in the list.

Usage

Once you have the alwaysAI tools installed and the new project created, run the following CLI commands at the top level of the repo:

To set the project, and select the target device run:

aai app configure

To build your app and deploy to the target device:

aai app deploy

To start the app:

aai app start

Design

This app shows how to perform inferencing on multiple camera streams in an asynchronous manner. That means that if one of the cameras is slower or gets disconnected, the main app will continue to run and gather results from the other cameras at the same rate. This app uses WebcamVideoStream for the camera video streams, which is useful for cameras directly connected to your device. For handling multiple IP streams, simply use IPVideoStream instead and change the indices to URLs.

An alternative approach is to read frames asynchrounously, but to perform inferencing in a synchronous way. This could be accomplished by making CameraThread send only the frame in the results object, and perform inferencing in main() once a frame has been grabbed from all cameras.

multiple-camera-streams's People

Contributors

ericvanbuhler avatar

Stargazers

Akshay Hareendran 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.