mirror of
https://github.com/Xaymar/obs-StreamFX
synced 2024-11-14 07:45:06 +00:00
43f1dcf205
Ever wished you had a professional camera operator to highlight and follow the action, ensuring the audience never misses a beat? Thanks to NVIDIA, you can now do this at home for free! The new NVIDIA AR SDK unlocks augmented reality features, including motion tracking for faces. This allows me to provide you with an automated zoom and cropping solution for your video camera to transform your streams into a slick, polished broadcast, where you’ll always be the star of the show. Don’t forget - everything is customizable so the possibilities are endless. You can even recreate that Futurama squinting meme if you wanted to (with some scripting)! The filter requires compatible Nvidia RTX hardware and the Nvidia AR SDK Runtime to be installed ahead of time. This filter is considered "stable" and shouldn't change much from version to version.
59 lines
959 B
CMake
59 lines
959 B
CMake
# Nvidia AR SDK
|
|
#
|
|
# Sets
|
|
# - NVAR_FOUND
|
|
# - NVAR_INCLUDE_DIRS
|
|
# - NVAR_SOURCE_DIRS
|
|
#
|
|
#
|
|
|
|
include(FindPackageHandleStandardArgs)
|
|
find_package(PkgConfig QUIET)
|
|
|
|
# Variables
|
|
set(NVAR_ROOT "" CACHE PATH "Path to NVidia AR SDK")
|
|
|
|
find_path(NVAR_INCLUDE_DIRS
|
|
NAMES
|
|
"nvAR.h" "nvAR_defs.h"
|
|
HINTS
|
|
ENV NVAR_ROOT
|
|
${NVAR_ROOT}
|
|
PATHS
|
|
/usr/include
|
|
/usr/local/include
|
|
/opt/local/include
|
|
PATH_SUFFIXES
|
|
include
|
|
nvar/include
|
|
)
|
|
find_path(NVAR_SOURCE_DIRS
|
|
NAMES
|
|
"nvARProxy.cpp"
|
|
HINTS
|
|
ENV NVAR_ROOT
|
|
${NVAR_ROOT}
|
|
PATHS
|
|
/usr/include
|
|
/usr/local/include
|
|
/opt/local/include
|
|
PATH_SUFFIXES
|
|
src
|
|
nvar/src
|
|
)
|
|
|
|
find_package_handle_standard_args(NVAR
|
|
FOUND_VAR NVAR_FOUND
|
|
REQUIRED_VARS NVAR_INCLUDE_DIRS NVAR_SOURCE_DIRS
|
|
VERSION_VAR NVAR_VERSION
|
|
HANDLE_COMPONENTS
|
|
)
|
|
|
|
if(NVAR_FOUND AND NOT TARGET nvARProxy)
|
|
add_library(nvARProxy INTERFACE)
|
|
target_include_directories(nvARProxy
|
|
INTERFACE
|
|
${NVAR_SOURCE_DIRS}
|
|
${NVAR_INCLUDE_DIRS}
|
|
)
|
|
endif()
|