This plugin tracks a person in an OBS video source and automatically adjusts the crop or a PTZ camera to keep the subject framed.
This plugin employs dlib for object tracking. Face detection can use dlib or a wide-angle hybrid of YuNet face detection and NanoDet person detection. The frame of the source is periodically taken to face detection algorithm. Once a face is found, the face is tracked. Based on the location and size of the tracked face, the frame is cropped.
Important
The new Hybrid detector, OpenCV integration, debug visualization, packaging, Chinese localization, and related documentation were developed with assistance from GPT-5.6. This code has been manually exercised on an Apple Silicon Mac with OBS 32.0.1. Windows x64, Intel macOS, and Linux packages currently pass CI builds, but have not been tested on real machines by the maintainer of this fork. Treat those packages as experimental and report logs with any issue.
See Compatibility and test status for the exact support and validation matrix.
- Installation and configuration
- Face Tracker properties
- Face Tracker PTZ properties
- Model files: purpose, source, licenses, and checksums
- Hybrid models and visualization
- Troubleshooting
- Build from source
- Release guide
- Compatibility and test status
- 简体中文文档
For several use cases, total 3 methods are provided.
The face tracker is implemented as a source. It creates another source that tracks and zooms into a face.
- Click the add button on the source list.
- Add
Face Tracker. - Scroll to the bottom and set
Sourceproperty.
See Properties for the description of each property.
The face tracker is implemented as an effect filter for an existing video source.
- Open filters for a source on OBS Studio.
- Click the add button on
Effect Filters. - Add
Face Tracker.
See Properties for the description of each property.
Experimental version of PTZ control is provided as an video filter.
- Open filters for a source on OBS Studio,
- Click the add button on
Audio/Video Filters. - Add
Face Tracker PTZ.
See Properties for the description of each property.
See Limitations for current limitations of PTZ control feature.
Release packages include the YuNet and NanoDet models. Add the Face Tracker filter, open Face detection options, and choose Hybrid wide-angle detection (YuNet face + NanoDet person). See Installation and configuration for complete platform instructions and recommended settings.
GitHub Actions builds Ubuntu x86_64, macOS arm64, macOS x86_64, and Windows x64
packages in the main workflow. A separate Docker workflow builds Fedora RPMs.
A successful CI build proves that the package compiled and was assembled; it
does not prove real-device compatibility. Pushes to main that change non-doc
files, pull requests targeting main, and manual runs create temporary Actions
artifacts. A version tag creates a GitHub Release after the main platform jobs
pass. See the Release guide.
This plugin is heavily under development. These issues are under investigation:
- Memory usage is gradually increasing when continuously detecting faces.
- It consumes a lot of CPU resource.
- The frame sometimes vibrates because the face detection results vibrates.
This plugin is licensed under GPLv2.
- Jimcom USA - a company for live-streaming and recording professionals. Development of PTZ camera control is supported by Jimcom. Jimcom provides a 20% discount for its broadcast-quality, network-connected PTZ cameras and free shipping in the USA. Enter coupon code FACETRACK20.
- dlib - GitHub repository
- OpenCV and OpenCV Zoo
- NanoDet
- obs-ptz - optional PTZ control backend.
- OBS Project
- GPT-5.6 assisted with the new Hybrid implementation, packaging, localization, and documentation in this fork. The resulting code remains subject to review and real-platform testing.