• 大小: 39.83MB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2023-08-08
  • 语言: 其他
  • 标签: UE  

资源简介

OpenCV插件UE4

资源截图

代码片段和文件信息

// Copyright 1998-2019 Epic Games Inc. All Rights Reserved.
using System.IO;
using UnrealBuildTool;

public class OpenCV : ModuleRules
{


    private string ThirdPartyPath
    {
        get { return Path.GetFullPath(Path.Combine(ModuleDirectory “../../ThirdParty/“)); }
    }


    public OpenCV(ReadOnlyTargetRules Target) : base(Target)
{
PCHUsage = ModuleRules.PCHUsageMode.UseExplicitOrSharedPCHs;

PublicIncludePaths.AddRange(
new string[] {
// ... add public include paths required here ...
}
);


PrivateIncludePaths.AddRange(
new string[] {
// ... add other private include paths required here ...
}
);


PublicDependencyModuleNames.AddRange(
new string[]
{
“Core“
                 “RHI“
                 “RenderCore“
// ... add other public dependencies that you statically link with here ...
}
);


PrivateDependencyModuleNames.AddRange(
new string[]
{
“CoreUobject“
“Engine“
“Slate“
“SlateCore“
// ... add private dependencies that you statically link with here ...
}
);


DynamicallyLoadedModuleNames.AddRange(
new string[]
{
// ... add any modules that your module loads dynamically here ...
}
);

        LoadOpenCV(Target);

    }

    public bool LoadOpenCV(ReadOnlyTargetRules Target)
    {
        // Start OpenCV linking here!
        bool isLibrarySupported = false;

        // Create OpenCV Path 
        string OpenCVPath = Path.Combine(ThirdPartyPath “OpenCV“);

        // Get Library Path 
        string LibPath = ““;
        //bool isdebug = Target.Configuration == UnrealTargetConfiguration.Debug && BuildConfiguration.bDebugBuildsActuallyUseDebugCRT;
        if (Target.Platform == UnrealTargetPlatform.Win64)
        {
            LibPath = Path.Combine(OpenCVPath “Libraries“ “Win64“);
            isLibrarySupported = true;
        }
        else
        {
            string Err = string.Format(“{0} dedicated server is made to depend on {1}. We want to avoid this please correct module dependencies.“ Target.Platform.ToString() this.ToString()); System.Console.WriteLine(Err);
        }

        if (isLibrarySupported)
        {
            //Add Include path 
            PublicIncludePaths.AddRange(new string[] { Path.Combine(OpenCVPath “Includes“) });

            // Add Library Path 
            PublicLibraryPaths.Add(LibPath);

            //Add Static Libraries
            PublicAdditionalLibraries.Add(“opencv_world320.lib“);

            //Add Dynamic Libraries
            PublicDelayLoadDLLs.Add(“opencv_world320.dll“);
            PublicDelayLoadDLLs.Add(“opencv_ffmpeg320_64.dll“);
        }

        PublicDefinitions.Add(string.Format(“WITH_OPENCV_BINDING={0}“ isLibrarySupported ? 1 : 0));

        return isLibrarySupported;
    }
}





 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件   17397760  2017-05-18 20:54  OpenCV插件UE4\Binaries\Win64\opencv_ffmpeg320_64.dll

     文件   41843712  2017-05-18 20:54  OpenCV插件UE4\Binaries\Win64\opencv_world320.dll

     文件        419  2019-04-28 13:58  OpenCV插件UE4\Plugins\OpenCV\OpenCV.uplugin

     文件      12699  2019-04-28 13:58  OpenCV插件UE4\Plugins\OpenCV\Resources\Icon128.png

     文件       2953  2019-04-28 15:07  OpenCV插件UE4\Plugins\OpenCV\Source\OpenCV\OpenCV.Build.cs

     文件        597  2019-04-28 13:58  OpenCV插件UE4\Plugins\OpenCV\Source\OpenCV\Private\OpenCV.cpp

     文件       4115  2019-04-28 14:51  OpenCV插件UE4\Plugins\OpenCV\Source\OpenCV\Private\WebcamReader.cpp

     文件        333  2019-04-28 13:58  OpenCV插件UE4\Plugins\OpenCV\Source\OpenCV\Public\OpenCV.h

     文件       2804  2019-04-28 14:52  OpenCV插件UE4\Plugins\OpenCV\Source\OpenCV\Public\WebcamReader.h

     文件       3153  2017-05-18 20:54  OpenCV插件UE4\Plugins\OpenCV\ThirdParty\OpenCV\Includes\opencv\cv.h

     文件       2649  2017-05-18 20:54  OpenCV插件UE4\Plugins\OpenCV\ThirdParty\OpenCV\Includes\opencv\cv.hpp

     文件       2523  2017-05-18 20:54  OpenCV插件UE4\Plugins\OpenCV\ThirdParty\OpenCV\Includes\opencv\cvaux.h

     文件       2374  2017-05-18 20:54  OpenCV插件UE4\Plugins\OpenCV\ThirdParty\OpenCV\Includes\opencv\cvaux.hpp

     文件       2176  2017-05-18 20:54  OpenCV插件UE4\Plugins\OpenCV\ThirdParty\OpenCV\Includes\opencv\cvwimage.h

     文件       2424  2017-05-18 20:54  OpenCV插件UE4\Plugins\OpenCV\ThirdParty\OpenCV\Includes\opencv\cxcore.h

     文件       2443  2017-05-18 20:54  OpenCV插件UE4\Plugins\OpenCV\ThirdParty\OpenCV\Includes\opencv\cxcore.hpp

     文件       2257  2017-05-18 20:54  OpenCV插件UE4\Plugins\OpenCV\ThirdParty\OpenCV\Includes\opencv\cxeigen.hpp

     文件        129  2017-05-18 20:54  OpenCV插件UE4\Plugins\OpenCV\ThirdParty\OpenCV\Includes\opencv\cxmisc.h

     文件       2226  2017-05-18 20:54  OpenCV插件UE4\Plugins\OpenCV\ThirdParty\OpenCV\Includes\opencv\highgui.h

     文件       2145  2017-05-18 20:54  OpenCV插件UE4\Plugins\OpenCV\ThirdParty\OpenCV\Includes\opencv\ml.h

     文件       2369  2017-05-18 20:54  OpenCV插件UE4\Plugins\OpenCV\ThirdParty\OpenCV\Includes\opencv2\calib3d\calib3d.hpp

     文件      20138  2017-05-18 20:54  OpenCV插件UE4\Plugins\OpenCV\ThirdParty\OpenCV\Includes\opencv2\calib3d\calib3d_c.h

     文件     122181  2017-05-18 20:54  OpenCV插件UE4\Plugins\OpenCV\ThirdParty\OpenCV\Includes\opencv2\calib3d.hpp

     文件      15392  2017-05-18 20:54  OpenCV插件UE4\Plugins\OpenCV\ThirdParty\OpenCV\Includes\opencv2\core\affine.hpp

     文件      26644  2017-05-18 20:54  OpenCV插件UE4\Plugins\OpenCV\ThirdParty\OpenCV\Includes\opencv2\core\base.hpp

     文件        723  2017-05-18 20:54  OpenCV插件UE4\Plugins\OpenCV\ThirdParty\OpenCV\Includes\opencv2\core\bufferpool.hpp

     文件       2366  2017-05-18 20:54  OpenCV插件UE4\Plugins\OpenCV\ThirdParty\OpenCV\Includes\opencv2\core\core.hpp

     文件     131224  2017-05-18 20:54  OpenCV插件UE4\Plugins\OpenCV\ThirdParty\OpenCV\Includes\opencv2\core\core_c.h

     文件      29273  2017-05-18 20:54  OpenCV插件UE4\Plugins\OpenCV\ThirdParty\OpenCV\Includes\opencv2\core\cuda.hpp

     文件      13916  2017-05-18 20:54  OpenCV插件UE4\Plugins\OpenCV\ThirdParty\OpenCV\Includes\opencv2\core\cuda.inl.hpp

............此处省略197个文件信息

评论

共有 条评论