Skip to content
项目

关于

A Linux Native webcam effects engine

人工智能与机器学习

这些数字如何统计

82 星标3 复刻 +1 24小时

可以做什么

  • Portrait Mode: High-quality background blur with feathered edges and temporal stability.
  • Center Stage: Intelligent face and body tracking that smoothly crops and zooms to keep you (or your group) centered.
  • Background Replacement: Replace your messy room with a solid color or custom image.
  • Studio Light: Subtly brightens and separates the subject from the background using face-region-aware tone mapping.

实测星标增长

24小时
+1
7天
+1
15天
+1
1个月
+1

各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。

README.md

原文
OpenEffects icon

OpenEffects

Latest Release License Language Platform GitHub Stars GitHub Issues

OpenEffects is a Linux-native webcam effects engine powered by ONNX Runtime. It brings advanced camera features like Center Stage, Portrait blur, Background Replacement, and gesture-triggered Reactions to any Wayland Linux desktop. It works transparently with any app that consumes a PipeWire camera node or /dev/video* device (Zoom, OBS, WebRTC, etc.).

Features

  • Portrait Mode: High-quality background blur with feathered edges and temporal stability.
  • Center Stage: Intelligent face and body tracking that smoothly crops and zooms to keep you (or your group) centered.
  • Background Replacement: Replace your messy room with a solid color or custom image.
  • Studio Light: Subtly brightens and separates the subject from the background using face-region-aware tone mapping.
  • Reactions: Hand-gesture-triggered animated overlays (e.g., thumbs-up for 👍 and thumbs down and heart emojies based on gestures). Off by default. Can be trigerred manually via the GUI or CLI anytime.

Components

OpenEffects is designed to be lightweight and modular, avoiding the need for an always-open GUI window:

  • openeffectsd (Daemon): Headless GStreamer pipeline that handles capture, ML inference, compositing, and publishing via PipeWire.
  • openeffects (GUI): A GTK4/libadwaita app and primary control surface — live effect toggles and adjustments, camera settings, opt-in model downloads, and background asset management.
  • openeffectsctl (CLI): First-class command-line interface for styling WMs (Hyprland, Sway), scripting, and keybinds.

ML Inference

All models run on the CPU via ONNX Runtime (ort crate with download-binaries feature). The bundled models (selfie segmentation, face detection, hand/palm landmarks) are lightweight MobileNet-class architectures — 256² and 640² — and complete inference in 2–5 ms on modern x86_64 CPUs. No GPU is required.

[!NOTE] GPU execution providers (CUDA, OpenVINO, Vulkan) were evaluated and rejected: for sub-1 MB models the kernel-launch and transfer latency of a discrete GPU exceeds the total CPU inference time. Camera capture and the GStreamer/PipeWire pipeline are the actual bottlenecks, not inference.

Installation

Download the packages for your distro from the latest GitHub release.

OpenEffects ships as three packages — openeffectsd (daemon, bundles the ML models), openeffectsctl (CLI), and openeffects (GUI). The clients depend on the daemon, so install openeffectsd alongside whichever client you want; pass both files on the same command line so the dependency resolves.

Arch Linux

sudo pacman -U openeffectsd-*-x86_64.pkg.tar.zst openeffects-*-x86_64.pkg.tar.zst

Fedora / RHEL

sudo dnf install ./openeffectsd-*.x86_64.rpm ./openeffects-*.x86_64.rpm

Ubuntu / Debian

sudo apt install ./openeffectsd_*_amd64.deb ./openeffects_*_amd64.deb

For a headless / CLI-only setup, install openeffectsd plus openeffectsctl instead. x86_64 only for now.

The packages need glibc ≥ 2.39, GTK ≥ 4.12 and libadwaita ≥ 1.5: Ubuntu 24.04, Pop!_OS 24.04, Debian 13, Fedora 40, or anything newer.

Remote repositories (coming soon)

  • Flatpak (Flathub) — coming soon (PipeWire virtual camera only; v4l2loopback is unavailable inside the sandbox).
  • Arch Linux (AUR) — coming soon: yay -S openeffects
  • Fedora (COPR) — coming soon: dnf copr enable <user>/openeffects && dnf install openeffects
  • Ubuntu / Debian (PPA) — coming soon: add-apt-repository ppa:<user>/openeffects && apt install openeffects

Usage

Start the daemon (usually handled automatically by the systemd user service):

systemctl --user start openeffectsd

CLI Examples

Control effects via openeffectsctl (see the full CLI reference):

openeffectsctl status
openeffectsctl portrait-blur --on --strength 70
openeffectsctl center-stage --zoom tight
openeffectsctl background ~/Pictures/office.jpg
openeffectsctl react thumbs-up
openeffectsctl toggle reactions

Use with Waybar:

"custom/openeffects": {
    "exec": "openeffectsctl status --short",
    "interval": 5,
    "on-click": "openeffectsctl toggle portrait-blur"
}

Security & Privacy

  • Cameras are accessed securely via the xdg-desktop-portal-camera.
  • IPC is restricted exclusively to the D-Bus session bus.
  • No telemetry, network calls, or cloud inference. All ML processing happens locally.

Development Platform

  • Language: Rust (Daemon, CLI, GUI)
  • UI: GTK4 + libadwaita-rs
  • Media Pipeline: GStreamer 1.24+ + PipeWire
  • Display Protocol: Wayland only (X11 is not supported)

探索相关项目

加载中…