AI classification demo in Unreal Engine based on Intel OpenVINO (Real-time CPU inference)
- Unreal Engine 4.27
- Visual Studio 2019
- OpenVINO 2021.4.2 LST version
-
Right click
OVClassification.uproject
, clickgenerate visual studio project file
, thenOVClassification.sln
is appeared -
Open
OVClassification.sln
project, selectDevelopment Editor
mode , then build project- All related libraries will be copied to Folder
Binaries\Win64
- All related libraries will be copied to Folder
-
Open
OVClassification.uproject
, go to menuFile-> Project Launcher -> Windows(64-bit)
-
Create a folder for Release project, waiting for the compiling result
-
Go to
folder\for\Release project
, runLevel1.exe -WINDOWED
ssss -
Enjoy Your Demo! ^_^
This project is a modified version based on Intel OpenVINO™ Toolkit Unreal* Integration project which is not runnable.
Here is the details of modification.
- Upgrade project to UE4.27 version
- Upgrade OpenVINO version from
2019.2
to2021.4.2
- Upgrade classifcation IR model version to
2021.4.2
- Upgrade inference api in OpenVINOWapper project
- Add
TopResult
function in OpenVINOWapper project
We recommended you don't create the project from scratch, but based on the current OpenVINOWrapper project under Thirdparty Folder
- Download and set
OpenVINO library
as system environment path, Details in OpenVINO Guide - Go to
Thirdparty Folder
- use command line
cmake .
, this is used to genereteOpenVinoWrapper.sln
and copyopenvino related library
toThirdparty Folder
- Open sln project, now you can write inference code for your AI task. Please refer OpenVINO inference samples here
- Build the project. New
OpenVINOWrapper.dll
andOpenVINOWrapper.lib
will be generated in folderRelease
, please move them into folderbin
. - Refer code in
OpenVinoModule
and write your own code to connectOpenVINOWrapper
withUnreal Engine
.
- Download OpenVINO 2021.4.2 runtime
- Double click and install w_openvino****.exe, it will be installed under
C:\Program Files (x86)\Intel\openvino_2021.4.752\
as default path - Go to folder
OpenVINO_folder\bin
and open command window (make sure it has python environment). - Run
setupvars.bat
to setup your openvino environment in the current command window.