Giter Site home page Giter Site logo

barbarioli / deeplens-cv Goto Github PK

View Code? Open in Web Editor NEW

This project forked from sjyk/deeplens-cv

0.0 0.0 0.0 101.27 MB

Visual Stream Processing For The DeepLens System

License: MIT License

Python 70.65% Makefile 0.07% C 26.83% Shell 0.17% Cuda 1.69% C++ 0.15% Dockerfile 0.13% Jupyter Notebook 0.32%

deeplens-cv's Introduction

deeplens-cv

We design an adaptive dataflow system for processing video streams with geometric and learning-based computer vision primitives.

Stream API

A video stream is an iterator over frames and can be constructed as follows:

>>> from dlcv.struct import *
>>> v = VideoStream('tcam.mp4')

This code opens up an iterator over frames in the tcam.mp4 file which can be downloaded from

https://www.dropbox.com/s/91t6ucfsq9u9vca/tcam.mp4?dl=0

If you want to pull a limited number of frames you can set a limit, let's say 100:

>>> v = VideoStream('tcam.mp4', limit=100)

URLs can similarly be directly used in the streaming system:

>>> v = VideoStream('https://www.dropbox.com/s/91t6ucfsq9u9vca/tcam.mp4?dl=0')

So can cameras:

>>> v = VideoStream(DEFAULT_CAMERA)

Transformation API

dlcv provides a compositional API for transforming streams of video. For example,

>>> from dlcv.dataflow.map import *
>>> v[Crop(0,0,200,200)] 

These operations can be composed:

>>> from dlcv.dataflow.map import *
>>> v[Crop(0,0,200,200)][Sample(0.5)]

You can see the effects of transformations using the utils functions:

>>>from dlcv.utils import *
>>>play(v[Crop(0,0,200,200)][Sample(0.5)])

Detection API

In dlcv there are Metrics and Events. Metrics translate geometric vision primtives into numerical time-series, and Events detect patterns in these time-series. Test.py shows several examples of thes pipelines.

deeplens-cv's People

Contributors

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