1.github下载ue4插件版的openface
2.ue4项目中新建插件,将plugins中的文件替换为github中的对应文件
3.修改openface.build.cs文件
// OpenFace plugin for Unreal Engine
// tbarbanti@gmail.com
// 2018/01
using UnrealBuildTool;
using System.IO;
public class OPenFace : ModuleRules
{
private string ThirdPartyPath
{
get { return Path.GetFullPath(Path.Combine(ModuleDirectory, "../ThirdParty/")); }
}
public OPenFace(ReadOnlyTargetRules Target) : base(Target)
{
// Startard Module Dependencies
PublicDependencyModuleNames.AddRange(new string[] { "Core", "RHI", "RenderCore" });
PrivateDependencyModuleNames.AddRange(new string[] { "CoreUObject", "Engine", "Slate", "SlateCore" });
// Start OpenCV linking here!
bool isLibrarySupported = false;
bEnableUndefinedIdentifierWarnings = false;
// Create Path
string OpenCVPath = Path.Combine(ThirdPartyPath, "OpenCV");
string OpenBLASPath = Path.Combine(ThirdPartyPath, "OpenBLAS");
string boostPath = Path.Combine(ThirdPartyPath, "boost");
string dlibPath = Path.Combine(ThirdPartyPath, "dlib");
string tbbP