Volver al ranking

royshil/obs-backgroundremoval

C++royshil.github.io/obs-backgroundremoval/

An OBS plugin for removing background in portrait images (video), making it easy to replace the background when recording or streaming.

obsobs-pluginlibobsmac-osxbackground-segmentationobs-studioonnxonnxruntimeplugincomputer-visionimage-segmentationobs-studio-plugin
Crecimiento de estrellas
Estrellas
4.4k
Forks
283
Crecimiento semanal
Issues
16
2k4k
ene 2023mar 2024may 2025jul 2026
README

OBS Plugin: Portrait Background Removal / Virtual Green-screen and Low-Light Enhancement

GitHub GitHub Workflow Status Total downloads Flathub GitHub release (latest by date)

A plugin for OBS Studio that allows you to replace the background in portrait images and video, as well as enhance low-light scenes.

⬇️ Download & Install OBS Background Removal ⬇️

Or, browse versions on releases page.

Not working? Please try the Lite version (Live Background Removal Lite) developed by one of us (Kaito Udagawa).

Usage

Check out the usage guide page for usage walkthrough and recommendations.

Additional tutorial videos:

How to build from source

Windows:

git clone https://github.com/royshil/obs-backgroundremoval.git

Platforms we support building from source officially:

git clone https://github.com/royshil/obs-backgroundremoval.git
cd obs-backgroundremoval
sudo ./bin/bootstrap
./bin/setup
./bin/build
sudo dpkg -i release/obs-backgroundremoval-*-linux-gnu.deb

The supported platforms are:

  • Debian Forky (x86_64 and arm64)

We plan to add building scripts for popular platforms such as Windows, Mac, and various distributions of Linux.

Introduction

This plugin is meant to make it easy to replace the background in portrait images and video. It is using a neural network to predict the mask of the portrait and remove the background pixels. It's easily composable with other OBS plugins to replace the background with e.g. an image or a transparent color.

If you like this work, which is given to you completely free of charge, please consider supporting it by sponsoring us on GitHub:

Support and Help

Reach out to us on GitHub Discussions or the OBS Plugins forum for online / immediate help.

If you found a bug or want to suggest a feature or improvement please open an issue.

If you are looking for hands-on help or private consultation please select a sponsorship tier.

Technical Details

GPU support:

  • On Windows, we plan to support WinML acceleration.
  • On Mac we support CoreML for acceleration, which is efficient on Apple Silicon. Note: This plugin does not support cross-architecture translation (Rosetta2). Intel binaries on Apple Silicon or Apple Silicon binaries on Intel will crash.
  • On Linux CUDA, ROCM (deprecated in ONNX Runtime 1.23.0), and MIGraphX are supported if this plugin is built from source. Ensure your ONNX Runtime installation has CUDA, ROCM, or MIGraphX support. For AMD GPUs, MIGraphX is recommended as ROCM was removed from ONNX Runtime starting with version 1.23.0.
  • The goal of this plugin is to be available for everyone on every system, even if they don't own a GPU.

Number of CPU threads is controllable through the UI settings. A 2-thread setting works best.

The pretrained model weights used for portrait foreground segmentation are taken from:

Image enhancement (low light) models are taken from:

Some more information about how I built it: https://www.morethantechnical.com/2021/04/15/obs-plugin-for-portrait-background-removal-with-onnx-sinet-model/ and https://www.morethantechnical.com/2023/05/20/building-an-obs-background-removal-plugin-a-walkthrough/

Code Walkthrough

This video on YouTube will take you through the major parts of the code and explain them.

Star History Chart

SPDX-FileCopyrightText: 2021-2026 Roy Shilkrot roy.shil@gmail.com
SPDX-FileCopyrightText: 2023-2026 Kaito Udagawa umireon@kaito.tokyo

SPDX-License-Identifier: GPL-3.0-or-later

Repositorios relacionados
datarhei/restreamer

The Restreamer is a complete streaming server solution for self-hosting. It has a visually appealing user interface and no ongoing license costs. Upload your live stream to YouTube, Twitch, Facebook, Vimeo, or other streaming solutions like Wowza. Receive video data from OBS and publish it with the RTMP and SRT server.

HTMLApache License 2.0hlsrtmp
docs.datarhei.com/restreamer/
5.1k545
Vhonowslend/StreamFX-Public

StreamFX is a plugin for OBS® Studio which adds many new effects, filters, sources, transitions and encoders! Be it 3D Transform, Blur, complex Masking, or even custom shaders, you'll find it all here.

C++GNU General Public License v2.0pluginaddon
streamfx.vhonowslend.com
4.2k3.1k
collabora/WhisperLive

A nearly-live implementation of OpenAI's Whisper.

PythonPyPIMIT Licensedictationobs
4.1k568
univrsal/input-overlay

Show keyboard, gamepad and mouse input on stream

C++GNU General Public License v2.0obsplugin
4.1k300
steveseguin/vdo.ninja

VDO.Ninja is a powerful tool that lets you bring remote video feeds into OBS or other studio software via WebRTC.

JavaScriptnpmOthervdoninja
vdo.ninja
3.9k1.2k
locaal-ai/obs-backgroundremoval

An OBS plugin for removing background in portrait images (video), making it easy to replace the background when recording or streaming.

C++GNU General Public License v2.0obsobs-plugin
3.2k213
bitfocus/companion

Bitfocus Companion enables the Elgato Stream Deck and other controllers to be a professional shotbox surface for an increasing amount of different presentation switchers, video playback software and broadcast equipment.

TypeScriptnpmOthercompanionross
companion.free
2.2k586
royshil/obs-localvocal

OBS plugin for local speech recognition and captioning using AI

C++GNU General Public License v2.0aiobs
obsproject.com/forum/resources/localvocal-live-stream-ai-assistant.1769/
1.6k120
Niek/obs-web

OBS-web - the easiest way to control OBS remotely

SvelteGNU General Public License v3.0obsopenbroadcaster
obs-web.niek.tv
1.4k173
ThoNohT/NohBoard

A Keyboard Visualizer

C#GNU General Public License v2.0keyboardvisualisation
1.3k197
BlankSourceCode/obs-zoom-to-mouse

An OBS lua script to zoom a display-capture source to focus on the mouse

Lualuaobs
1.2k138
openSUSE/open-build-service

Build and distribute Linux packages from sources in an automatic, consistent and reproducible way #obs

RubyRubyGemsGNU General Public License v2.0opensuserpm
openbuildservice.org
1.1k478