![]() |
iVS3D v2.0.0
|
Qt 5.15.2 and Visual Studio 2019 or 2022 have to be installed. Make sure to select MSVC 2019 or later on both installations. Please add the Qt binary folder to your PATH variable, this is necessary for compiling translations and ui files using tools provided in the Qt installation, e.g.:
Download OpenCV 4.11.0 with contrib modules or build it from source. Your OpenCV build should contain a file OpenCVConfig.cmake. To build with CUDA you need an OpenCV build which supports CUDA. In this case download NVIDIA CUDA Toolkit API 12.0 as well.
For the Neural Network based plugins, you need to download Onnxruntime 1.18.0 or later GPU (make sure to select the version according to your CUDA version) as well.
For video decoding, download the latest shared build of Ffmpeg.
Finally, install cmake 3.22 or later, git and git-lfs.
Clone iVS3D recursively to include the neural network models for our plugins.
We use cmake presets to simplify the configuration process. In the project root, create a new CMakeUserPresets.json file to override the default presets:
lib and include folders of onnxruntimebin, lib and include folders of ffmpegWith this in place, you can configure your build using the preset. From the iVS3D root folder run:
Don't worry if some components are marked as NO, this is expected if you do not have the required dependencies installed. For example, the NeuralNet component requires the Onnxruntime library to be installed, which is optional.
This will create the build files in the build/windows-release folder. Use cmake -L .. to see all available configurations:
Once you are happy with your configuration you can build and install your project by running:
The install step will setup the folder structure and copy the plugin binaries to their appropriate location. By default, the binaries are installed to build/windows-release/bin Once both steps finished you can run iVS3D:
| ⚠️ | Make sure the .dll files of OpenCV, Onnxruntime, Ffmpeg, CUDA and CuDNN are all available in the PATH, so they can be found when running iVS3D. |
Cmake configuration options are added using the -D flag or can be set in the CMakeUserPresets.json. Following options are available when configuring your iVS3D build:
| Option | Type | Default value | Description |
|---|---|---|---|
| Build_Plugins | BOOL | ON | Enable compilation of plugins |
| Build_Tests | BOOL | OFF | Compile test suite |
| Build_Examples | BOOL | OFF | Compile example applications |
| Install_Models | BOOL | ON | Copy onnx models for plugins to install location |
| OpenCV_DIR | PATH | Path to OpenCVConfig.cmake | |
| Onnxruntime_ROOT_DIR | PATH | Path to Onnxruntime installation | |
| Ffmpeg_ROOT_DIR | PATH | Path to Ffmpeg installation | |
| Update_Translations | BOOL | OFF | Regenerate translation files from source code (runs lupdate.exe) |
| With_CUDA | BOOL | ON | Use CUDA to accelerate computations on the GPU. This requires CUDA, CUDNN and an OpenCV build with CUDA support to be installed! |