Frequently Asked Question
~ Linux section is located at the bottom of the page ~
Building and Running an API example on Windows OS:
Building an API example:
1. Open an API example project KYFGLib_Example.vcxproj for Microsoft Visual Studio, provided in the download directory.
The "API Samples" directory can be easily found using the quick search, as shown in the image below.
2. Choose a solution platform according to your operation system, as shown in the image below.
Please verify the selected platform is compatible with your OS.
3. Build a solution
Running an API example:
1. Run the application.
2. Enter a device, or Demo mode, from the list.
3. Enter a command. The following table describes the commands options:
Command | Description |
[0-4] | Device selection |
o | Open Frame Grabber |
c | Connect to camera |
s | Start the frame acquisition |
t | Stop the frame acquisition |
e | Exit the Example |
An example of this operation is shown in the image below.
Queued Buffer and Cyclic Buffer:
By default, the KYFGLib_Example.vcxproj project contains KYFGLib_Example.c, which uses Cyclic Buffer.
To use Queued Buffer, in the loaded project, change the KYFGLib_Example.c file to KYFGLib_Example_QueuedBuffers.c located in the same directory and rebuild the example.
Building and running an API example on Linux OS:
Building an API example:
1. Open the Terminal and enter the directory path of the API Example. API Example is stored under
Vision Point/Examples/ directory.
2. Type "make" and ensure the KYFGLib_Example executable file was created in the same directory.
The image below shows the 1st and the 2nd step.
Running an API example:
1. To run the API Example, type "./KYFGLib_Example" followed by "Enter," as shown in the image below.
2. Enter a device, or Demo mode, from the list.
3. Enter a command. The following table describes the commands options:
Command | Description |
[0-4] | Device selection |
o | Open Frame Grabber |
c | Connect to camera |
s | Start the frame acquisition |
t | Stop the frame acquisition |
e | Exit the Example |
An example of this operation is shown in the image below.
Queued Buffer and Cyclic Buffer:
By default, the make file includes KYFGLib_Example.c, which uses the Cyclic Buffer example.
To use Queued Buffer, change the KYFGLib_Example.c file to KYFGLib_Example_QueuedBuffers.c located in the same directory, and rebuild the example.
NOTE:
A separate log file is created for each application, which uses KAYA API, with a display name of the primary executable and process ID and timestamp.