Giter VIP home page Giter VIP logo

livecamerafilter's Introduction

Live Camera Filter

A camera filter that works in realtime. Script modifiable.

Note: needs admin privileges

Installations

  1. OBS (Open Broadcaster Software)
    1. Download here: https://obsproject.com/
    2. This is the base platform from which you can select what windows are shown as input to your virtual camera.
  2. VirtualCam
    1. Download here: https://github.com/CatxFish/obs-virtual-cam/releases
    2. I recommend installing only 1 virtual camera (default is 4 I think)
    3. I also recommend checking AutoStart once installed.
  3. Install Python
    1. Download here: https://www.python.org/downloads/
  4. Install PyCharm Community (Python IDE)
    1. Download here: https://www.jetbrains.com/pycharm/download/
  5. Install pip
    1. Follow this tutorial: https://phoenixnap.com/kb/install-pip-windows

Creating the Project

  1. In PyCharm Community (IDE)
    1. File > New Project
    2. Choose the interpreter you installed and name project as you wish
    3. Right click the folder on the left, create new python file with any name
    4. Copy-paste the code from the simple background subtractor .py file
    5. The cv2 in the first line (import cv2 as cv) should be underlined in red.
    6. Right click on it > actions > import opencv-python
    7. It should say something about skeletons at the bottom. Wait to run it until this is done.
    8. Once done right click the tab of the file and run it.
    9. You can change the script to your liking.

Flow once set up

  1. Run the .py file
    1. This can be through PyCharm IDE or with the Python interpreter directly
  2. OBS
    1. Launch OBS (with AutoStart preferably)
    2. Use window capture and select "python.exe" for the window
    3. Image of OBS Explanation
  3. Once in your program of choice, you should now be able to see "OBS-Camera" as an option. Use that.

Pro tip: When OBS is not running, "OBS-Camera" will still be putting out a video stream, it will just be black.

livecamerafilter's People

Contributors

neilsorkin19 avatar

Watchers

 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.