- iOS/Objective-C 元类和类别
- objective-c - -1001 错误,当 NSURLSession 通过 httpproxy 和/etc/hosts
- java - 使用网络类获取 url 地址
- ios - 推送通知中不播放声音
我正在使用 OpenCV_contrib 在 Linux 上构建 OpenCV,但我无法让它工作。仅 OpenCV 就可以毫无错误地构建。
单独编译 OpenCV 时可以找到 .
cmake -D OPENCV_EXTRA_MODULES_PATH=../../opencv_contrib-3.4/modules ..
$ make j5
在制作过程中,它在 100% 时失败,😔😔😔😔😔😔😔😔
Scanning dependencies of target opencv_python2
[100%] Building CXX object modules/python2/CMakeFiles/opencv_python2.dir/__/src2/cv2.cpp.o
[100%] Linking CXX executable ../../bin/opencv_perf_stitching
[100%] Built target opencv_perf_stitching
In file included from /home/habib/Documents/Projects/Packages/opencv-3.4.3/build/modules/python_bindings_generator/pyopencv_custom_headers.h:8:0,
from /home/habib/Documents/Projects/Packages/opencv-3.4.3/modules/python/src2/cv2.cpp:1816:
/home/habib/Documents/Projects/Packages/opencv_contrib-3.4/modules/rgbd/misc/python/pyopencv_linemod.hpp:4:40: error: ‘linemod’ was not declared in this scope
template<> struct pyopencvVecConverter<linemod::Match>
^
/home/habib/Documents/Projects/Packages/opencv_contrib-3.4/modules/rgbd/misc/python/pyopencv_linemod.hpp:4:54: error: template argument 1 is invalid
template<> struct pyopencvVecConverter<linemod::Match>
^
/home/habib/Documents/Projects/Packages/opencv_contrib-3.4/modules/rgbd/misc/python/pyopencv_linemod.hpp:17:40: error: ‘linemod’ was not declared in this scope
template<> struct pyopencvVecConverter<linemod::Template>
^
/home/habib/Documents/Projects/Packages/opencv_contrib-3.4/modules/rgbd/misc/python/pyopencv_linemod.hpp:17:57: error: template argument 1 is invalid
template<> struct pyopencvVecConverter<linemod::Template>
^
/home/habib/Documents/Projects/Packages/opencv_contrib-3.4/modules/rgbd/misc/python/pyopencv_linemod.hpp:30:40: error: ‘linemod’ was not declared in this scope
template<> struct pyopencvVecConverter<linemod::Feature>
^
/home/habib/Documents/Projects/Packages/opencv_contrib-3.4/modules/rgbd/misc/python/pyopencv_linemod.hpp:30:56: error: template argument 1 is invalid
template<> struct pyopencvVecConverter<linemod::Feature>
^
/home/habib/Documents/Projects/Packages/opencv_contrib-3.4/modules/rgbd/misc/python/pyopencv_linemod.hpp:43:44: error: ‘linemod’ was not declared in this scope
template<> struct pyopencvVecConverter<Ptr<linemod::Modality> >
^
/home/habib/Documents/Projects/Packages/opencv_contrib-3.4/modules/rgbd/misc/python/pyopencv_linemod.hpp:43:61: error: template argument 1 is invalid
template<> struct pyopencvVecConverter<Ptr<linemod::Modality> >
^
/home/habib/Documents/Projects/Packages/opencv_contrib-3.4/modules/rgbd/misc/python/pyopencv_linemod.hpp:43:63: error: template argument 1 is invalid
template<> struct pyopencvVecConverter<Ptr<linemod::Modality> >
^
/home/habib/Documents/Projects/Packages/opencv_contrib-3.4/modules/rgbd/misc/python/pyopencv_linemod.hpp:56:21: error: ‘linemod’ was not declared in this scope
typedef std::vector<linemod::Match> vector_Match;
^
/home/habib/Documents/Projects/Packages/opencv_contrib-3.4/modules/rgbd/misc/python/pyopencv_linemod.hpp:56:35: error: template argument 1 is invalid
typedef std::vector<linemod::Match> vector_Match;
^
/home/habib/Documents/Projects/Packages/opencv_contrib-3.4/modules/rgbd/misc/python/pyopencv_linemod.hpp:56:35: error: template argument 2 is invalid
/home/habib/Documents/Projects/Packages/opencv_contrib-3.4/modules/rgbd/misc/python/pyopencv_linemod.hpp:57:21: error: ‘linemod’ was not declared in this scope
typedef std::vector<linemod::Template> vector_Template;
^
/home/habib/Documents/Projects/Packages/opencv_contrib-3.4/modules/rgbd/misc/python/pyopencv_linemod.hpp:57:38: error: template argument 1 is invalid
typedef std::vector<linemod::Template> vector_Template;
^
/home/habib/Documents/Projects/Packages/opencv_contrib-3.4/modules/rgbd/misc/python/pyopencv_linemod.hpp:57:38: error: template argument 2 is invalid
/home/habib/Documents/Projects/Packages/opencv_contrib-3.4/modules/rgbd/misc/python/pyopencv_linemod.hpp:58:21: error: ‘linemod’ was not declared in this scope
typedef std::vector<linemod::Feature> vector_Feature;
^
/home/habib/Documents/Projects/Packages/opencv_contrib-3.4/modules/rgbd/misc/python/pyopencv_linemod.hpp:58:37: error: template argument 1 is invalid
typedef std::vector<linemod::Feature> vector_Feature;
^
/home/habib/Documents/Projects/Packages/opencv_contrib-3.4/modules/rgbd/misc/python/pyopencv_linemod.hpp:58:37: error: template argument 2 is invalid
/home/habib/Documents/Projects/Packages/opencv_contrib-3.4/modules/rgbd/misc/python/pyopencv_linemod.hpp:59:25: error: ‘linemod’ was not declared in this scope
typedef std::vector<Ptr<linemod::Modality> > vector_Ptr_Modality;
^
/home/habib/Documents/Projects/Packages/opencv_contrib-3.4/modules/rgbd/misc/python/pyopencv_linemod.hpp:59:42: error: template argument 1 is invalid
typedef std::vector<Ptr<linemod::Modality> > vector_Ptr_Modality;
^
/home/habib/Documents/Projects/Packages/opencv_contrib-3.4/modules/rgbd/misc/python/pyopencv_linemod.hpp:59:44: error: template argument 1 is invalid
typedef std::vector<Ptr<linemod::Modality> > vector_Ptr_Modality;
^
/home/habib/Documents/Projects/Packages/opencv_contrib-3.4/modules/rgbd/misc/python/pyopencv_linemod.hpp:59:44: error: template argument 2 is invalid
[100%] Linking CXX executable ../../bin/opencv_perf_tracking
[100%] Built target opencv_perf_tracking
modules/python2/CMakeFiles/opencv_python2.dir/build.make:62: recipe for target 'modules/python2/CMakeFiles/opencv_python2.dir/__/src2/cv2.cpp.o' failed
make[2]: *** [modules/python2/CMakeFiles/opencv_python2.dir/__/src2/cv2.cpp.o] Error 1
CMakeFiles/Makefile2:15272: recipe for target 'modules/python2/CMakeFiles/opencv_python2.dir/all' failed
make[1]: *** [modules/python2/CMakeFiles/opencv_python2.dir/all] Error 2
Makefile:160: recipe for target 'all' failed
make: *** [all] Error 2
最佳答案
我从官方网站下载了opencv
源代码,并从Github克隆了opencv_contrib
。这不是一个好主意,我遇到了问题。
我从 Github 上为 opencv
和 opencv_contrib
克隆了完全相同的版本,这次它运行完美。
git clone -b 3.4 https://github.com/opencv/opencv
git clone -b 3.4 https://github.com/opencv/opencv_contrib
关于linux - 在 Linux 上从源代码构建 OpenCV 和 OpenCV_Contrib 时出现构建错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52308158/
我正在使用 OpenCV_Contrib 来检测人脸标志。 它检测图像的地标。 但是,我试图找出如何从视频中检测人脸标志。 *仅使用 OpenCV_Contrib。 哪位知道的,请给我答案! 最佳答案
我正在尝试在现有的 opencv 中安装 opencv_config 模块,但我遇到了错误。请帮助我如何纠正。 first screen shot of error second screen sho
我正在尝试将 opencv_contrib 包添加到我的 OpenCV 3.1 构建中。我目前正在 Microsoft Visual Studio 15 中使用该库。我已经安装了 Cmake 和 GN
bool myDetector(cv::InputArray image, cv::OutputArray faces, cv::CascadeClassifier *face_cascade){
我搜索并尝试了很多依赖项,但没有一个可以帮助我正确加载 OpenCV Face 模块。有吗?还是必须在本地导入? 最佳答案 我使用了 bytedeco/JavaCV,效果很好。这是 Maven 依赖项
我想在 python 中使用 function createFisherFaceRecognizer(),但是当我写下 model = cv2.createFisherFaceRecognizer()
在 opencv3.0-dev 中,大多数非自由的东西已经转移到 opencv_contrib。我用 opencv_contrib 构建了它。所有 xfeatures2d 测试均已通过。 但是,cv2
我必须实现用于图像拼接的 SURF 算法。我在使用库时遇到了问题,如所列 here 在尝试了我能找到的解决方案后,我删除了 opencv 并开始从头开始构建。我试图在安装过程中包含“opencv_co
我正在尝试将 opencv_contrib 中的 xfeatures2d 模块添加到现有的 OpenCV/Python 项目中。 我已经从 the repo 下载了最新版本的模块,并使用以下附加参数再
我想将 opencv_contrib 中的 xfeatures2D 包含到 opencv.js 中。 我遵循此文档 Build OpenCV.js .一切都好。我有一个全新的 opencv.js 可以
我正在尝试使用 Linux 上 opencv_contrib 的 xfeatures2d 模块构建 OpenCV,但我无法构建任何额外的模块。这是我尝试过的方法(我基本上遵循了我在网上和 opencv
我想在 iOS 上使用新引入的 opencv_contrib 模块中的一些功能,如何使用这些额外的模块构建 iOS 框架。提前致谢。 最佳答案 我回答这个(旧)问题是为了其他想在较新的 OpenCV
我使用 CMake 从源代码安装了 OpenCV 3.4 (C++)。我使用 -D OPENCV_EXTRA_MODULES_PATH= 重新安装了它.我相信这重新安装正确安装 opencv_cont
我决定使用 opencv 的一些额外模块,所以我应该首先安装 OPENCV_CONTRIB,我从 this github repo. 下载了贡献并提取与我安装 opencv 相同的目录。 opencv
我知道这一切都被描述了here ,但我不清楚应该在什么地方构建这个 opencv_contrib 源。 假设我已经从 official download site 安装了 OpenCV 3.2提取后看
我正在体验人脸识别,并遵循了 OpenCV 静态初始化的所有步骤 here . 但是当我执行这个时: com.googlecode.javacv.cpp.opencv_contrib.createLB
我想使用基于 FLANN 的匹配器进行特征匹配。为此,需要 SIFT 算法。在 Linux 中,可以使用“cmake”和“make”命令。 但是如何在 Windows 上安装 opencv_contr
尝试使用 contrib 模块构建 opencv 时出现以下错误 /opencv/opencv_contrib/modules/tracking/include/opencv2/tracking/tr
我正在使用 OpenCV 3.1.0 、Python 2.7.11 和 Windows 10。 我想构建额外的模块(opencv_contrib) 到 OpenCV。 我按照这个 GitHub 中的步
我正在尝试在运行 Ubuntu 14.04.2 的计算机上安装带有额外模块的 OpenCV(我需要这个特定版本的 Ubuntu,因为我正在使用其他一些需要它的硬件)。就在上周(运行 Ubuntu Ma
我是一名优秀的程序员,十分优秀!