All Projects → norihiro → obs-face-tracker

norihiro / obs-face-tracker

Licence: GPL-2.0 license
Face tracking plugin for OBS Studio

Programming Languages

C++
36643 projects - #6 most used programming language
CMake
9771 projects
shell
77523 projects
c
50402 projects - #5 most used programming language
Batchfile
5799 projects

Projects that are alternatives of or similar to obs-face-tracker

obs-websocket-java
A java library for obs-websocket
Stars: ✭ 46 (-75.14%)
Mutual labels:  obs, obs-studio, obs-studio-plugin
obs-screenshot-plugin
An OBS Studio filter plugin to save screenshots of a source/scene
Stars: ✭ 93 (-49.73%)
Mutual labels:  obs, obs-studio
character-overlay
Web App for adding an OBS overlay with character information such as name, picture, and health for your favorite role-playing game.
Stars: ✭ 17 (-90.81%)
Mutual labels:  obs, obs-studio
obs blade
Make use of the OBS WebSocket Plugin (https://github.com/obsproject/obs-websocket) and control your stream
Stars: ✭ 182 (-1.62%)
Mutual labels:  obs, obs-studio
go-obs-websocket
Go client for obs-websocket
Stars: ✭ 86 (-53.51%)
Mutual labels:  obs, obs-studio
meme-box
Manage and trigger media in OBS as a browser source
Stars: ✭ 82 (-55.68%)
Mutual labels:  obs, obs-studio
OBS-ChatSpam
Python script for OBS Studio that posts messages in Twitch chat
Stars: ✭ 26 (-85.95%)
Mutual labels:  obs, obs-studio
obs-websocket-js
Consumes https://github.com/obsproject/obs-websocket
Stars: ✭ 521 (+181.62%)
Mutual labels:  obs, obs-studio
obs-golang-plugin
OBS Studio Golang Plugin
Stars: ✭ 50 (-72.97%)
Mutual labels:  obs, obs-studio
CounterStrike-GlobalOffensive-LiveStat-for-OBS-Studio
Showing you LIVEstats of CS:GO in your Stream like OBS-Studio while playing/streaming.
Stars: ✭ 24 (-87.03%)
Mutual labels:  obs, obs-studio
FXFaceDetection
Real-Time Face Detection App using Computer Vision & JavaFX
Stars: ✭ 50 (-72.97%)
Mutual labels:  face-detection, face-tracker
XION-ChaseCam
This is a free-to-use HTML/javascript based overlay for roleplay streamers. Basically it mimics the overlay of the AXON bodycam, but since most folks play in 3rd person, it's a ChaseCam. I've included a logo, and the html file. The html file has the css, html, and javascript all in one file for ease of editing. Goto line 81 of the html file to c…
Stars: ✭ 27 (-85.41%)
Mutual labels:  obs, obs-studio
obs-zoom-and-follow
Dynamic zoom and mouse tracking script for OBS Studio
Stars: ✭ 126 (-31.89%)
Mutual labels:  obs, obs-studio
BeatRecorder
Easily record your BeatSaber gameplay!
Stars: ✭ 20 (-89.19%)
Mutual labels:  obs, obs-studio
obs-streamlink
OBS source plugin to receive stream using streamlink.
Stars: ✭ 110 (-40.54%)
Mutual labels:  obs-studio, obs-studio-plugin
obs-text-pthread
Rich text source plugin for OBS Studio
Stars: ✭ 15 (-91.89%)
Mutual labels:  obs-studio, obs-studio-plugin
kiwi
Kiwi turns your Pimoroni Keybow into a fully customizable poor-man's Elgato Stream Deck!
Stars: ✭ 40 (-78.38%)
Mutual labels:  obs, obs-studio
obs-studio
This is a community-supported modified build of OBS Studio.
Stars: ✭ 86 (-53.51%)
Mutual labels:  obs, obs-studio
obs-text-slideshow
OBS plugin inspired by the built in image slideshow, except for text sources instead. Both Free Type 2 and GDI+ are supported.
Stars: ✭ 45 (-75.68%)
Mutual labels:  obs, obs-studio
file-upload
koa2 middleware support upload to cos/oss/obs/aws/local
Stars: ✭ 28 (-84.86%)
Mutual labels:  obs

OBS Face Tracker Plugin

Introduction

This plugin provide a feature to track face of a person by detecting and tracking a face.

This plugin employs dlib on face detection and object tracking. 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 the size of the face under tracking, the frame will be cropped.

Usage

For several use cases, total 3 methods are provided.

Face Tracker Source

The face tracker is implemented as a source. You can easily have another source that tracks and zooms into a face.

  1. Click the add button on the source list.
  2. Add Face Tracker.
  3. Scroll to the bottom and set Source property.

See Properties for the description of each property.

Face Tracker Filter

The face tracker is implemented as an effect filter so that any video source can have the face tracker.

  1. Open filters for a source on OBS Studio.
  2. Click the add button on Effect Filters.
  3. Add Face Tracker.

See Properties for the description of each property.

Face Tracker PTZ

Experimental version of PTZ control is provided as an video filter.

  1. Open filters for a source on OBS Studio,
  2. Click the add button on Audio/Video Filters.
  3. Add Face Tracker PTZ.

See Properties for the description of each property.

See Limitations for current limitations of PTZ control feature.

Wiki

Building

This plugin requires dlib to be built. The dlib should be extracted under obs-face-tracker so that it will be linked statically.

For macOS, install openblas and configure the path.

brew install openblas
export OPENBLAS_HOME=/usr/local/opt/openblas/

For Linux and macOS, expand obs-face-tracker outside obs-studio and expand dlib under obs-face-tracker. Then, apply patch file to dlib so that dlib won't try to link openblasp but openblas.

d0="$PWD"
git clone https://github.com/obsproject/obs-studio.git
mkdir obs-studio/build && cd obs-studio/build
cmake ..
make
cd "$d0"

git clone https://github.com/norihiro/obs-face-tracker.git
cd obs-face-tracker
git submodule update --init
mkdir build && cd build
cmake .. \
	-DLIBOBS_INCLUDE_DIR=$d0/obs-studio/libobs \
	-DLIBOBS_LIB=$d0/obs-studio/libobs \
	-DOBS_FRONTEND_LIB="$d0/obs-studio/build/UI/obs-frontend-api/libobs-frontend-api.dylib" \
	-DCMAKE_BUILD_TYPE=RelWithDebInfo
make

For Windows, Build step would be as below, assuming you have OBS Studio successfully built at %OBSPath%\build64,

git clone https://github.com/norihiro/obs-face-tracker.git
cd obs-face-tracker
git clone https://github.com/davisking/dlib.git
mkdir build && cd build
cmake ^
-DLibObs_DIR="%OBSPath%\build64\libobs" ^
-DLIBOBS_INCLUDE_DIR="%OBSPath%\libobs" ^
-DLIBOBS_LIB="%OBSPath%\build64\libobs\%build_config%\obs.lib" ^
-DPTHREAD_LIBS="%OBSPath%\build64\deps\w32-pthreads\%build_config%\w32-pthreads.lib" ^
-DOBS_FRONTEND_LIB="%OBSPath%\build64\UI\obs-frontend-api\%build_config%\obs-frontend-api.lib" ..
make

For full build flow, see azure-pipelines.yml.

Known issues

This plugin is heavily under development. So far 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.

License

This plugin is licensed under GPLv2.

Sponsor

  • Jimcom USA - a company of Live Streaming and Content Recording Professionals. Development of PTZ camera control is supported by Jimcom. Jimcom is now providing a 20% discount for their broadcast-quality network-connected PTZ cameras and free shipping in the USA. Visit Jimcom USA and enter the coupon code FACETRACK20 when you order.

Acknowledgments

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].