Building Sample Code for VizionSDK on Windows
  • 27 Oct 2023
  • 1 Minute to read
  • Dark
    Light
  • PDF

Building Sample Code for VizionSDK on Windows

  • Dark
    Light
  • PDF

Article Summary

Introduction

Article is keeping on updating

We are working on this article to ensure the contents are correct.

This article will explain how to build sample code for VizionSDK on Windows.

VizionSDK on Windows can provide useful function for our UVC Cameras. Below list shows all camera we can support.

  • VCI-AR0144
  • VCI-AR0234
  • VCI-AR0521
  • VCI-AR0522
  • VCI-AR0821
  • VCI-AR1335

You can download the Sample code on Windows from here.

Prerequisites

Before you begin, ensure that you have the following prerequisites installed on your system:

Start to Build

Example Environment

This is an example to demonstrate how to build the sample code on Windows.
In the example, we use Visual Studio 2022 and OpenCV 3.4.16 to build the project.

  1. Create a new empty project for C++ and configure your project, like below figures.
    image.png

image.png

  1. Add VizionSmaple.cpp to Project.
Right-click on Project in Solution Explorer -> Add -> Existing Item... -> Select "VizionSample.cpp" & "VizionSDK.h"

image.png

image.png

  1. Add necessary OpenCV libraries.
    a. Right-click on Project in the Solution Explorer -> Properties
    b. Navigate to the "Configuration Properties" section and select "C/C++".
    c. Click on "Additional Include Directories" and add the path to the OpenCV include folder (e.g., C:\opencv\include).

image.png

d. Navigate to the "Linker" section and select "General".
e. Click on "Additional Library Directories" and add the path to the OpenCV library folder (e.g., C:\opencv\lib).

image.png

f. Navigate to the "Linker" section and select "Input".
g. Click on "Additional Dependencies" and add the necessary OpenCV libraries.

image.png

  1. Run Build button to build the sample code.

  2. After that, add VizionSDK.dll and OpenCV dll to the directory of the sample program. (In Debug case, there is debug dll)
    image.png

  3. Connect our UVC Camera, then run the program.


Was this article helpful?