【问题标题】:OpenCV HOGDescriptor undefinedOpenCV HOGDescriptor 未定义
【发布时间】:2016-06-25 00:44:24
【问题描述】:

我想使用 HOG,但是当我尝试 cv::HOGDescriptor hog; 时,它给我它是未定义的?我包括:

#include "opencv2/videoio/videoio.hpp" 
#include "opencv2/highgui/highgui.hpp"
#include "opencv2/imgproc/imgproc.hpp"    
#include <vector>
#include <iterator>
#include <ctype.h>
#include <stdio.h>
#include <vector>
#include <iostream>
#include <math.h>

#include <numeric>
#include <cstdio>
#include <stdlib.h>
#include <iostream>

【问题讨论】:

    标签: c++ opencv


    【解决方案1】:

    cv::HOGDescriptor 定义在 "objdetect.hpp" 中。您必须包含此标头

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2012-12-27
      • 1970-01-01
      • 2014-04-05
      • 2014-10-21
      • 2013-02-26
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多