In order to use the VisionLib SDK on Windows, you need to have the Microsoft C Runtime installed. If you are using Visual Studio 2019 for C++ development, it should already be installed on your computer. Otherwise you can download a separate installer for your target architecture directly from Microsoft:
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": {"uri": "<trackingConfigFile>"}}"</tt> as parameter).
7. Start the tracking (\ref vlWorker_PushJsonCommand with <tt>"{"name":"runTracking"}"</tt> as parameter).
8. Process callbacks and retrieve events from the tracking thread (\ref vlWorker_ProcessCallbacks, \ref vlWorker_PollEvents, \ref vlWorker_WaitEvents).
9. Copy the event data into your renderers data structures (\ref vlImageWrapper_CopyToBuffer, \ref vlExtrinsicDataWrapper_GetModelViewMatrix, \ref vlIntrinsicDataWrapper_GetProjectionMatrix).
10. Go to step 8.
<h2>Examples</h2>
In the <tt>VisionLib.SDK-Native.zip</tt> you can find examples for the different platforms using the C-API. Currently, there are examples for iOS, MacOS, Windows, and UWP.
<h3>Windows</h3>
For Windows you can find two examples. We provide a <tt>CMakeLists.txt</tt> which can be used with <a href="https://cmake.org/" >CMake</a> to generate the solutions to build the examples. One example requires <a href="https://opencv.org/" >OpenCV</a> 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:
\ref vlSDK_Windows_Examples
<h3>UWP</h3>
For UWP you can find one example. We provide a <tt>CMakeLists.txt</tt> to generate the solutions to build the example. The example can work with <a href="http://www.assimp.org/" >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