The VisionLib SDK can be included just like any other library:
VisionLibSdk/include
directory to the list of include directories.VisionLibSdk/lib
directory to the list of library directories.vlSDK.lib
to the list of dependencies.VisionLibSdk/bin
folder into the executable directory of your application or by adding VisionLibSdk/bin
to the beginning of the PATH
environment variable.The following steps are necessary to start the tracking process:
"{\"name": "createTracker", "param": "<trackingConfigFile>"}"</tt> as parameter).
8. Start the tracking (\ref vlWorker_PushJsonCommand with <tt>"{"name":"runTracking"}"
as parameter).In the vlSDK_package.zip
you can find examples for the different platforms using the C-API. Currently, there are examples for iOS, MacOS, Windows, and UWP.
For Windows you can find two examples. We provide a CMakeLists.txt
which can be used with CMake to generate the solutions to build the examples. One example requires OpenCV to provide a window for displaying the (debug) video stream. The other example just uses std functions but thus does not provide any visualization.
Find detailed information here: Building the Windows Examples
For UWP you can find one example. We provide a CMakeLists.txt
to generate the solutions to build the example. The example can work with Assimp to load a model and display it with DirectX. This will render the model at the tracked position (contours in red: Tracking is lost, contours in green: object is tracked, contours in yellow: tracking is critical). Alternatively, you can use the example without Assimp. This will just show the debug image in which you can find the position of the model to track.
Find detailed information here: Building the UWP Example