-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall-background-removal.sh
More file actions
executable file
·52 lines (43 loc) · 1.36 KB
/
install-background-removal.sh
File metadata and controls
executable file
·52 lines (43 loc) · 1.36 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
#!/bin/bash
# Install OBS Background Removal Plugin
set -e
PLUGIN_VERSION="1.3.4"
DOWNLOAD_URL="https://github.com/royshil/obs-backgroundremoval/releases/download/${PLUGIN_VERSION}/obs-backgroundremoval-${PLUGIN_VERSION}-x86_64-linux-gnu.deb"
TEMP_DIR="/tmp/obs-background-removal"
echo "Installing OBS Background Removal Plugin v${PLUGIN_VERSION}"
echo "=============================================="
echo ""
# Create temp directory
mkdir -p "$TEMP_DIR"
cd "$TEMP_DIR"
# Download .deb package
echo "Downloading plugin..."
wget -O obs-backgroundremoval.deb "$DOWNLOAD_URL"
# Install
echo "Installing plugin..."
sudo -A dpkg -i obs-backgroundremoval.deb
# Install dependencies if needed
echo "Installing dependencies..."
sudo -A apt-get install -f -y
echo ""
echo "✅ Installation complete!"
echo ""
echo "The plugin will appear in OBS under:"
echo " Filters → Background Removal"
echo ""
echo "To use:"
echo " 1. Open OBS (not via Super+O)"
echo " 2. Right-click your camera source → Filters"
echo " 3. Add → Background Removal"
echo " 4. Configure:"
echo " - Remove: Complete background removal"
echo " - Blur: Blur background only"
echo " - Replace: Add image/video behind you"
echo ""
echo "For CUDA acceleration (RTX 4090):"
echo " The plugin should auto-detect CUDA"
echo " Check 'Use GPU' in filter settings"
echo ""
# Cleanup
cd ~
rm -rf "$TEMP_DIR"