Ask Your Question
0

How to use HOG Descriptor ?

asked 2016-12-14 22:06:18 -0600

Nbb gravatar image

updated 2016-12-14 22:12:49 -0600

I type cv::HOGDescriptor hog; but opencv tells me namespace cv has no member HOGDescriptor. How do I know what files I need to include to use HOG ? I am using opencv 3.1

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted
2

answered 2016-12-14 22:11:10 -0600

berak gravatar image

it is in objdetect.hpp

but simply:

#include "opencv2/opencv.hpp"

to get all opencv headers included

edit flag offensive delete link more
-1

answered 2016-12-19 05:22:38 -0600

KirtiSwagat gravatar image
#include <opencv2/core/core.hpp>

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

Use these headers for your Problem.

edit flag offensive delete link more

Comments

1

... if you're using opencv2.4

berak gravatar imageberak ( 2016-12-19 05:25:04 -0600 )edit

Question Tools

1 follower

Stats

Asked: 2016-12-14 22:06:18 -0600

Seen: 598 times

Last updated: Dec 19 '16