Giter Club home page Giter Club logo

aiortc-qrcode's Introduction

WebRTC video and data channel server sample

This example illustrates how to use Web Real-Time Communication (WebRTC) and Object Real-Time Communication (ORTC) in Python to establishing a video and data channel with a browser, which performs some image processing on the video frames.

Running

First install the required packages:

  $ pip install -r requirements.tx

When you start the example, it will create an HTTP(S) server which you can connect to from your browser:

  $ python server.py

Once you click Start the browser will send the video from its webcam to the server.

The server will send the received video back to the browser and optionally applying one of the following two transformations to it:

  • the visualisation of a detected and decoded QR code or
  • the replacement of a detected QR code by another image

In parallel to the video stream, the browser sends a "ping" message over the data channel, and the server replies with "pong".

Note

It should be noted that video processing part of this example only works when using HTTPS.

Credits

  • aiortc : a library for Web Real-Time Communication (WebRTC) and Object Real-Time Communication (ORTC) in Python

aiortc-qrcode's People

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.