All Projects → videoflow → Videoflow

videoflow / Videoflow

Licence: mit
Python framework that facilitates the quick development of complex video analysis applications and other series-processing based applications in a multiprocessing environment.

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to Videoflow

Ltvideorecorder
A demo project demonstrating how to add filter, drawing, and text to a video
Stars: ✭ 16 (-98.25%)
Mutual labels:  video-processing
Medicaldetectiontoolkit
The Medical Detection Toolkit contains 2D + 3D implementations of prevalent object detectors such as Mask R-CNN, Retina Net, Retina U-Net, as well as a training and inference framework focused on dealing with medical images.
Stars: ✭ 917 (+0.33%)
Mutual labels:  object-detection
Tensorflow Yolo V3
Implementation of YOLO v3 object detector in Tensorflow (TF-Slim)
Stars: ✭ 862 (-5.69%)
Mutual labels:  object-detection
Anime4kcpp
A high performance anime upscaler
Stars: ✭ 887 (-2.95%)
Mutual labels:  video-processing
Deep Embedded Memory Networks
https://arxiv.org/abs/1707.00836
Stars: ✭ 19 (-97.92%)
Mutual labels:  video-processing
Trim.lua
Trim mode for mpv — Turn mpv into Lossless Audio / Video Editor.
Stars: ✭ 24 (-97.37%)
Mutual labels:  video-processing
Fuse Ts
Stars: ✭ 6 (-99.34%)
Mutual labels:  video-processing
Metalpetal
A GPU accelerated image and video processing framework built on Metal.
Stars: ✭ 907 (-0.77%)
Mutual labels:  video-processing
Efficientdet Pytorch
A PyTorch impl of EfficientDet faithful to the original Google impl w/ ported weights
Stars: ✭ 906 (-0.88%)
Mutual labels:  object-detection
Cascade Rcnn
Caffe implementation of multiple popular object detection frameworks
Stars: ✭ 932 (+1.97%)
Mutual labels:  object-detection
Yolo annotation tool
Annotation tool for YOLO in opencv
Stars: ✭ 17 (-98.14%)
Mutual labels:  object-detection
Dmsmsgrcg
A photo OCR project aims to output DMS messages contained in sign structure images.
Stars: ✭ 18 (-98.03%)
Mutual labels:  object-detection
3d Bounding Boxes From Monocular Images
A two stage multi-modal loss model along with rigid body transformations to regress 3D bounding boxes
Stars: ✭ 24 (-97.37%)
Mutual labels:  object-detection
Arcan
Arcan - [Display Server, Multimedia Framework, Game Engine] -> "Desktop Engine"
Stars: ✭ 885 (-3.17%)
Mutual labels:  video-processing
Yolov3
YOLOv3 in PyTorch > ONNX > CoreML > TFLite
Stars: ✭ 8,159 (+792.67%)
Mutual labels:  object-detection
Mlt
MLT Multimedia Framework
Stars: ✭ 836 (-8.53%)
Mutual labels:  video-processing
Tensorflow object detection tflite
This is a repo for training and implementing the mobilenet-ssd v2 to tflite with c++ on x86 and arm64
Stars: ✭ 24 (-97.37%)
Mutual labels:  object-detection
Strawberries
Computer vision on 🍓
Stars: ✭ 21 (-97.7%)
Mutual labels:  video-processing
Tf Objdetector
Utilities to use tensorflow object detction api with a yolo like dataset
Stars: ✭ 14 (-98.47%)
Mutual labels:  object-detection
Pyjumpcutterv2
carykh's but with improvements and a GUI!
Stars: ✭ 25 (-97.26%)
Mutual labels:  video-processing

Videoflow

Videoflow

Build Status license

Videoflow is a Python framework for video stream processing. The library is designed to facilitate easy and quick definition of computer vision stream processing pipelines. It empowers developers to build applications and systems with self-contained Deep Learning and Computer Vision capabilities using simple and few lines of code. It contains off-the-shelf reference components for object detection, object tracking, human pose estimation, etc, and it is easy to extend with your own.

The complete documentation to the project is located in docs.videoflow.dev

Installing the framework

Requirements

Before installing, be sure that you have cv2 already installed. Python 2 is NOT SUPPORTED. Requires Python 3.6+. There are some known issues to run it on Windows too

Installation

You can install directly using pip by doing pip3 install videoflow

Alternatively, you can install by:

  1. Clone this repository
  2. Inside the repository folder, execute pip3 install . --user

Usage with docker

# clone repo
docker build -t repo/videoflow:latest .
# runs examples/object_detector.py by default
docker run -u $(id -u):$(id -g) -v $(pwd):/usr/src/app repo/videoflow
# or mount the volume from your code directory  to /usr/src/app
docker run -u $(id -u):$(id -g) -v $(pwd):/usr/src/app repo/videoflow python /usr/src/app/yourown.py

Contributing:

A tentative roadmap of where we are headed.

Contribution rules.

If you have new processors, producers or consumers that you can to create, check the videoflow-contrib project. We want to keep videoflow succinct, clean, and simple, with as minimal dependencies to third-party libraries as necessaries. videoflow-contrib is better suited for adding new components that require new library dependencies.

Sample Videoflow application:

Below a sample videoflow application that detects automobiles in an intersection. For more examples see the examples folder. It uses detection model published by tensorflow/models

IMAGE ALT TEXT HERE

import videoflow
import videoflow.core.flow as flow
from videoflow.core.constants import BATCH
from videoflow.consumers import VideofileWriter
from videoflow.producers import VideofileReader
from videoflow_contrib.detector_tf import TensorflowObjectDetector
from videoflow.processors.vision.annotators import BoundingBoxAnnotator
from videoflow.utils.downloader import get_file

URL_VIDEO = "https://github.com/videoflow/videoflow/releases/download/examples/intersection.mp4"

class FrameIndexSplitter(videoflow.core.node.ProcessorNode):
    def __init__(self):
        super(FrameIndexSplitter, self).__init__()
    
    def process(self, data):
        index, frame = data
        return frame

input_file = get_file("intersection.mp4", URL_VIDEO)
output_file = "output.avi"
reader = VideofileReader(input_file)
frame = FrameIndexSplitter()(reader)
detector = TensorflowObjectDetector()(frame)
annotator = BoundingBoxAnnotator()(frame, detector)
writer = VideofileWriter(output_file, fps = 30)(annotator)
fl = flow.Flow([reader], [writer], flow_type = BATCH)
fl.run()
fl.join()

The output of the application is an annotated video:

The Structure of a flow application

A flow application usually consists of three parts:

  1. In the first part of the application you define a directed acyclic graph of computation nodes. There are 3 different kinds of nodes: producers, processors and consumers. Producer nodes create data (commonly they will get the data from a source that is external to the flow). Processors receive data as input and produce data as output. Consumers read data and do not produce any output. You usually use a consumer when you want to write results to a log file, or when you want to push results to an external source (rest API, S3 bucket, etc.)

  2. To create a flow object, you need to pass to it your list of producers and your list of consumers. Once a flow is defined you can start it. Starting the flow means that the producers start putting data into the flow and processors and consumers start receiving data. Starting the flow also means allocating resources for producers, processors and consumers. For simplicity for now we can say that each producer, processor and consumer will run on its own process space.

  3. Once the flow starts, you can also stop it. When you stop the flow, it will happen organically. Producers will stop producing data. The rest of the nodes in the flow will continue running until the pipes run dry. The resources used in the flow are deallocated progressively, as each node stops producing/processing/consuming data.

Citing Videoflow

If you use Videoflow in your research please use the following BibTeX entry.

@misc{deArmas2019videoflow,
  author =       {Jadiel de Armas},
  title =        {Videoflow},
  howpublished = {\url{https://github.com/videoflow/videoflow}},
  year =         {2019}
}
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].