Setup FastCV on Visual Studio 2010

Written by Akshay Chavan on #arccoder Blog

02 Oct 2016


Qualcomm’s FastCV SDK is a mobile-optimized computer vision library which offers a wide range functionality. It is specially optimized for Qualcomm’s snapdragon processor. Today we will go through the steps to use FastCV 1.7.1 on windows using Visual Studio 2010 Express.

First you need to download the SDK using the following link. You would be required to create an developer account to download the library. After downloading the library (zip file), extract it and run the excutable. Complete the installation process. Once the installation is complete, in the installation directory you will find an include folder (inc) and a library folder (lib). Within the lib folder there are folders containing pre-compiled libraries for Andriod, VS2010, VS2012, and VS2013.

As I using VC++ 2010 Express, I shall be using the libfastcv.lib in the MD folder within the VS2010 folder. The libraries are complied in 2 different ways for each of the visual studio version, MD and MT. You may use the libray the fits your needs.

Now create an empty C++ project in visual studio and include the paths for header and libs in the project properties as shown in the images below.

Include Directories Library Directories Additinal Dependencies

We are almost there. Create a source file with the following code in it.

#include "fastcv.h"

int main()
{
    // FastCV - Initialization process
    fcvOperationMode mode = FASTCV_OP_CPU_PERFORMANCE;
    FASTCV_API int fcvSetOperationMode( mode );

    // FastCV - De-initialization process
    FASTCV_API void fcvCleanUp();

    return 0;
}

Build and run the code. You are now ready to explore FastCV’s functionality on windows.

The setup process described here should be vary similar if you use a different version of visual studio.


Note:

In the above images you will also see OpenCV included and libraries added. I am using OpenCV 2.4.9 and its the last version of OpenCV that coes with prebuild VS2010 libraries.

FastCV does not provide a way to read images. So I use opencv to read and display images and FastCV to process them.




Related Posts

Edge detection explained in 1D : 15 Jan 2017
How to sort columns on the fly while editing in Google Sheets : 01 Nov 2016
How to create a button to sort columns in Google Sheets : 30 Oct 2016

@ All Rights Reserved.