Giter Club home page Giter Club logo

distributed-video-processing's Introduction

Distributed-Video-Processing

A small program that distribute processing of videos among different machines.
Processing of videos consists of thresholding using otsu then finding contours.
The distribution is done on 2 different machines for simplicity of running,
but it can be done on several machines by changing the ip addresses of machines

Required Packages

  • numpy
  • opencv
  • pyzmq

How to run

python machine1.py <input_file_name> <number_of_consumers> <machine1_ip_address>
python machine2.py <output_file_name> <number_of_consumers> <machine1_ip_address>

Machine 1

It takes as input: name of the input video file, number of consumers that do Otsu and ip address of this machine.
It contains 1 producer, N consumers and N/2 collectors.

  1. Producer

    Takes a video as input and extracts frames from it, then sends the frames to the consumers.

  2. Otsu Consumer

    Receives frames from producers and performs Otsu operation for thresholding,
    then sends the thresholded images to the intermediate collectors.

  3. Intermediate Collectors

    Each collector receives thresholded frames from 2 consumers and send them to 2 other consumers.

Machine 2

It contains N consumers and 1 final collector.

  1. Contours Consumer

    Receives frames from the intermediate collectors, performs contours finding
    and sends them to the final collector.

  2. Final Collector

    Receives frames from the contours consumers and append them to a list,
    then sorts this list by frame number and write the list in a file

distributed-video-processing's People

Contributors

muhammad-sayed-mahdy avatar kareemosamasobeih 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.