Git Product home page Git Product logo

real-time-background-replacement's Introduction

Back-Off: Real Time Background Replacement

A tool that takes video and replace with new background provided by user in real time.

Table of contents

Description

Background removal helps with creative portrait photography and much more, helping provide the ability to change the background to a location of your choice. There are 4 methods available to use. One is a simple live-method using the webcam, a user can change the background by pressing and holding 'a', 'b', or 'c'. Other is live streaming from a mobile app. The last one is by requesting the server with pre-recorded video and background picture of choice. Fourth one is android app with a Flask server.

Technologies Used

  • Tensorflow
  • OpenCV
  • Flask

Results

Input Background Result
input background output

How It Works

$ git clone https://github.com/neatpun/real-time-background-replacement
  1. Live Webcam Front
  • cd "Live Webcam Front"
  • install dependencies
  • python live_webcam.py
  1. Server Front
  • cd "Server Front"
  • install dependencies
  • FLASK_APP=index.py flask run
  • then open localhost:5000
  • provide video and background image
  • after processing download of required video will begin
  1. Live Stream Output
  • cd "Live Stream Output"
  • install dependencies
  • connect any mobile device to same network and stream video.
  • provide the ip address of mobile device in IP_Webcam_Out.py
  • python IP_Webcam_Out.py

Contributors

real-time-background-replacement's People

Contributors

neatpun avatar drdo-iit-indore avatar mohit-nathrani avatar

Watchers

James Cloos 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.