Skip to content
Proyek

royshil/obs-backgroundremoval

Lihat di GitHub

Tentang

Plugin OBS untuk menghapus latar belakang pada gambar potret (video), sehingga latar belakang mudah diganti saat merekam atau melakukan streaming.

Desain dan media

Cara angka ini diukur

4,733 bintang310 Fork +1 dalam 24 jam

Pertumbuhan bintang terukur

dalam 24 jam
+1
dalam 7 hari
+9
dalam 15 hari
+21
dalam 1 bulan
+70

Perubahan bersih pada periode yang tumpang tindih, bukan total harian. Pengukuran yang belum tersedia dibiarkan kosong. Bintang menunjukkan perhatian, bukan kualitas.

README.md

Asli

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

GitHub Push (main) CI 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
cd obs-backgroundremoval
git submodule update --init

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, macOS and Linux, the segmentation model runs on the GPU as OBS shaders, so no inference runtime is needed.
  • On macOS, this plugin does not support cross-architecture translation (Rosetta2). Intel binaries on Apple Silicon or Apple Silicon binaries on Intel will crash.
  • The goal of this plugin is to be available for everyone on every system, even if they don't own a GPU.

The pretrained model weights used for portrait foreground segmentation 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.

Download Trends and Star History

Download Trends GitHub Star History

Jelajahi proyek terkait

Memuat…