Where is saliency.hpp?

asked 2016-06-10 05:54:09 -0600

raghugoy gravatar image

updated 2016-06-10 07:39:44 -0600

LBerger gravatar image

I need to use saliency library for my opencv project but it is showing that header file does not exist. I have tried using the latest version (2.4.13) but it is still the same. Can any one help me regarding how to add a library?

#include <opencv2/objdetect/objdetect.hpp>
#include <opencv2/highgui/highgui.hpp>
#include <opencv2/imgproc/imgproc.hpp>

**#include <opencv2/saliency.hpp>
#include "opencv2/saliency/saliencyBaseClasses.hpp"**

#include <iostream>
#include <queue>
#include <stdio.h>
#include <math.h>

// The code is showing error in both saliency related files.

edit retag flag offensive close merge delete

Comments

1

You need to download opencv_contrib

PS short question are better. You can explain your problem in post. You can use ico 101010 to format your code

LBerger gravatar imageLBerger ( 2016-06-10 07:37:47 -0600 )edit
1

besides that, opencv_contrib will only work with latest opencv master branch (3.1, atm.) not with 2.4

berak gravatar imageberak ( 2016-06-11 10:01:43 -0600 )edit