The eSDK installation includes C++ example code in the <install_path>\EVT\eSDK\Examples
directory. These examples demonstrate all the camera's functions and are a valuable resource for software developers.
On Windows, the examples are pre-configured projects that can be opened, compiled, and run using Microsoft Visual Studio Express 2019 or later. On Linux, they consist of source files and makefiles that you can build with g++
.
The EVT_BenchmarkHS
example is the recommended starting point for application development and for benchmarking your camera at its maximum resolution and frame rate.
Note: The following procedures use the EVT_BenchmarkHS
example but you can easily modify them for the other examples.
You can build the code examples on Windows or Linux.
Note: For simplicity when getting started, the following procedures assume you are building and running the code examples on the computer/server that you will connect the camera to.
Prerequisites:
g++
tools. To install them on Ubuntu 20.04 LTS or later, run the following command:sudo apt-get install build-essential
On Windows:
<install_path>\EVT\eSDK\Examples\EVT_BenchmarkHS\
.EVT_BenchmarkHS.sln
.On Linux:
/opt/EVT/eSDK/Examples/EVT_BenchmarkHS/
.make
. The build should complete with 0 Errors.After you build the code examples, you can run them on Windows or Linux.
Prerequisites:
On Windows:
<install_path>\EVT\eSDK\Examples\EVT_BenchmarkHS\x64\Debug\
.EVT_BenchmarkHS
and pressing Enter.-------------------------------
BenchmarkHS : Example program
-------------------------------
Open Camera: Camera Opened
----- INT_TRIGGER Mode -----
..........
Images Captured: 1000
Dropped Frames: 0
Frame Rate Setting: 105
Calculated Frame Rate: 104.975856
Close Camera: Camera Closed
On Linux:
/opt/EVT/eSDK/Examples/EVT_BenchmarkHS/out/
.sudo ./EVT_BenchmarkHS
The program should show information like the text above.