-
-
Notifications
You must be signed in to change notification settings - Fork 31
Monitor
Norihiro Kamae edited this page Jan 14, 2022
·
3 revisions
Version 0.5.1 adds a source that displays face detection and tracking status. In the monitor source, you can watch the tracking status without affecting program. It will be useful to combine with obs-source-dock.
To add the source, you have three options described below.
- Install obs-websocket.
- Send this command
CreateSource {"sourceName": "Face Tracker Monitor", "sourceKind": "face_tracker_monitor", "sceneName": "Scene"}
- Start OBS Studio and add a source named
Face Tracker Monitor
(any type is ok.) You don't need to change any settings. - Close OBS Studio
- Find your scene-collection file.
For Linux,
~/.config/obs-studio/basic/scenes/Untitled.json
is the default location. Description below uses this path. For Windows,%AppData%/obs-studio/basic/scenes/Untitled.json
is the default location. For macOS,~/Library/Application Support/obs-studio/basic/scenes/Untitled.json
is the default location. The scene collection name will change if you rename your scene-collection on OBS Studio. - Format the scene-collection file.
python3 -mjson.tool < ~/.config/obs-studio/basic/scenes/Untitled.json > a.json
- Open
a.json
by your favorite editor. - Find
Face Tracker Monitor
. - Change
id
andversioned_id
in the source toface_tracker_monitor
. Below is the example (other settigns are omitted.).{ "id": "face_tracker_monitor", "name": "Face Tracker Monitor", "versioned_id": "face_tracker_monitor", "volume": 1.0 }
- Backup your scene-collection file and put the edited file.
cp ~/.config/obs-studio/basic/scenes/Untitled.json ~/.config/obs-studio/basic/scenes/Untitled.json-ftmon cp a.json ~/.config/obs-studio/basic/scenes/Untitled.json
- Open OBS Studio
- Just in case something were wrong, revert the backup file.
cp ~/.config/obs-studio/basic/scenes/Untitled.json-ftmon ~/.config/obs-studio/basic/scenes/Untitled.json
- Open the settings of the source
Face Tracker Monitor
and change your settings. You have to type source name and filter name exactly same as your source you want to monitor.
Instead of using obs-websocket or editing the file, you can enable menu item by a build option.
Add -DENABLE_MONITOR_USER=ON
to cmake option.
Implementation of dock is in progress. Once the dock is implemented, the monitor source will be available on the dock.