Using the OpenCV Template Application

OpenCV (Open Source Computer Vision Library) is a library of programming functions mainly aimed at real-time computer. The library is cross-platform. It focuses mainly on real-time image processing. If the library finds Intel's integrated Performance Primitives on the system, it will use these proprietary optimized routines to accelerate itself. SDK provides a facility to develop OpenCV application as part of this it provides a template application (which reverses an image). User can create his own applications. SDK also provides all the required openCV libraries with SDK install (OpenCV install path ..\SDK\<Release>\sw\ThirdParty\opencv ) and template application is having all openCV path set for building the template application. SDK supports only for Linux OS only. It supports only for ARM processor.

Creating an OpenCV Template Application

To create an OpenCV template application:

  1. Select New > Application Project.
    The New Project wizard opens and displays the Application Project page.
  1. In the Processor drop-down box, select the processor of any ARM core.
  2. In the OS Platform drop-down box, select Linux.
  3. Click Next.
    The Templates page opens.
  4. Select the template type OpenCV Example Application.
  1. Click Finish.
    SDK creates an OpenCV example application. You can edit and change this application as required.

You can add additional header files. To do this:

  1. Right-click on the project name and select C/C++ Build Settings.
    The Properties dialog box opens, with the C/C++ Build > Settings pane selected.
  1. Add header files by clicking the Add button:
  1. Exclude header file paths by clicking the Delete button:
  1. Add library paths in the Libraries settings page.
Running an OpenCV Application on a Target

To run an OpenCV application on a target:

  1. Build your application and prepare the Linux kernel image.
  2. Select Run > Debug Configurations to open the Debug Configurations page for your application.
  3. In the Commands to execute before application field, set the OpenCV libraries in the LD_LIBRARY_PATH.
    Note: OpenCV libraries are located in the \sw\ThirdParty\opencv folder of your SDK installation.


Copyright © 1995-2014 Xilinx, Inc. All rights reserved.