Code Monkey home page Code Monkey logo

video-streaming-framework's Introduction

video-streaming-framework

Introduction

This is course project from National Taiwan University GPU Programming Spring 2018. The client program will tansfer the videos frames captured by web camera to the server program, and you can do anything what you like to do on these frames in the server program, then the framework will transfer these processed frames back to client program and display.

Prerequisites

  • Install the opencv2 and numpy

    $ pip3 install --user numpy opencv-python
    

Launch the service

  • Launch the server program first

    $ python3 server.py -ip <ip_address> -port <port_number>
  • Then launch the client program

    $ python3 client.py -ip <ip_address> -port <port_number>
  • It is expected to see the following result, while the server doesn't do extra processing on video frames at this time

Where to do image processing

You can do extra processing on these frames in the server.py

while True:
    if len(receiverbuffer) > 0:
        receive_lock.acquire()
        decimg = receiverbuffer.pop(0)
        receive_lock.release()

        # You can do extra processing on these frames here
        # then append these processed frames into transferbuffer
        # decimg = process(decimg)

        # Send Back
        transfer_lock.acquire()
        transferbuffer.append(decimg)
        transfer_lock.release()

Licensing

video-streaming-framework is freely redistributable under the MIT License. Use of this source code is governed by a MIT-style license that can be found in the LICENSE file.

video-streaming-framework's People

Contributors

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