A camera filter that works in realtime. Script modifiable.
Note: needs admin privileges
Installations
- OBS (Open Broadcaster Software)
- Download here: https://obsproject.com/
- This is the base platform from which you can select what windows are shown as input to your virtual camera.
- VirtualCam
- Download here: https://github.com/CatxFish/obs-virtual-cam/releases
- I recommend installing only 1 virtual camera (default is 4 I think)
- I also recommend checking AutoStart once installed.
- Install Python
- Download here: https://www.python.org/downloads/
- Install PyCharm Community (Python IDE)
- Download here: https://www.jetbrains.com/pycharm/download/
- Install pip
- Follow this tutorial: https://phoenixnap.com/kb/install-pip-windows
Creating the Project
- In PyCharm Community (IDE)
- File > New Project
- Choose the interpreter you installed and name project as you wish
- Right click the folder on the left, create new python file with any name
- Copy-paste the code from the simple background subtractor .py file
- The
cv2
in the first line (import cv2 as cv
) should be underlined in red. - Right click on it > actions > import opencv-python
- It should say something about skeletons at the bottom. Wait to run it until this is done.
- Once done right click the tab of the file and run it.
- You can change the script to your liking.
Flow once set up
- Run the .py file
- This can be through PyCharm IDE or with the Python interpreter directly
- OBS
- 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.