opencv-contrib

building opencv with sfm module issues

元气小坏坏 提交于 2021-02-11 13:26:55
问题 I am trying to build opencv with sfm modules I've built and installed gflags then glog and the ceres-solver. Yet the make logs says: Module opencv_sfm disabled because the following dependencies are not found: Glog/Gflags . Even though in earlier lines it says it finds both to these directories. I've also built and installed VTK though for some reason it doesn't find it even when I manually select the build directory. Below is the relevant section of my CMake log: VTK is not found. Please set

building opencv with sfm module issues

天大地大妈咪最大 提交于 2021-02-11 13:26:36
问题 I am trying to build opencv with sfm modules I've built and installed gflags then glog and the ceres-solver. Yet the make logs says: Module opencv_sfm disabled because the following dependencies are not found: Glog/Gflags . Even though in earlier lines it says it finds both to these directories. I've also built and installed VTK though for some reason it doesn't find it even when I manually select the build directory. Below is the relevant section of my CMake log: VTK is not found. Please set

Can't load Caffe model with DummyData layer

旧街凉风 提交于 2021-01-29 07:17:57
问题 when I try to load a caffe model with OpenCV 3.4.3, I get the error what(): OpenCV(3.4.3) /home/schneider/libs/opencv-3.4.3/modules/dnn/src/dnn.cpp:412: error: (-2:Unspecified error) Can't create layer "DummyData1" of type "DummyData" in function 'getLayerInstance'* The layer in the prototxt file looks like this: layer { name: "DummyData1" type: "DummyData" top: "DummyData1" dummy_data_param { shape { dim: 1 dim: 32 dim: 125 dim: 100 } } } It appears that the layer is missing in OpenCV. The

ImportError: cannot import name 'dnn_superres' for python example of super resolution with opencv

我只是一个虾纸丫 提交于 2020-12-10 06:58:32
问题 I am trying to run an example for upscaling images from the following website: https://towardsdatascience.com/deep-learning-based-super-resolution-with-opencv-4fd736678066 This is the code I am using: import cv2 from cv2 import dnn_superres # Create an SR object sr = dnn_superres.DnnSuperResImpl_create() # Read image image = cv2.imread('butterfly.png') # Read the desired model path = "EDSR_x3.pb" sr.readModel(path) # Set the desired model and scale to get correct pre- and post-processing sr

Module 'cv2.cv2' has no attribute 'ximgproc'

拟墨画扇 提交于 2020-08-24 05:51:13
问题 I am trying to perform a selective search to an image using OpenCV but when I run my code I get this: >>> import cv2 >>> ss = cv2.ximgproc.segmentation.createSelectiveSearchSegmentation() Traceback (most recent call last): File "<stdin>", line 1, in <module> AttributeError: module 'cv2.cv2' has no attribute 'ximgproc' I've seen similar problems but people solved them installing opencv-contrib-python package. I've already installed this module but the problem persists. Here is my requirements

unable to complete 'make -j7' with opencv_contrib modules

巧了我就是萌 提交于 2020-01-16 08:40:36
问题 Cmake can not compile extra modules from opencv_contrib. I am following theese instructions . Sorry for my length of my Ask, but giving more info about my Issues. This is example of my CMake options: cmake -DCMAKE_BUILD_TYPE=RELEASE \ -DCMAKE_INSTALL_PREFIX=/usr/local \ -DINSTALL_C_EXAMPLES=OFF \ -DINSTALL_PYTHON_EXAMPLES=OFF \ -DBUILD_EXAMPLES=OFF -DOPENCV_EXTRA_MODULES_PATH=/home/luke/cv/opencv_contrib/modules .. Till here it is fine. Configured. Generated (maybe with basicly some warnings

contrib module missing in opencv 3.0?

大憨熊 提交于 2020-01-13 08:33:13
问题 I am using OpenCV 3.0 beta. I tried to create a face recogniser using createLBPHFaceRecognizer(); class as, **Ptr <FaceRecognizer> model = createLBPHFaceRecognizer();** the error I have is **error: 'createLBPHFaceRecognizer' was not declared in this scope** I have researched and found that the class exists in contrib module of opencv2 (opencv2/contrib/contrib.hpp) in previous versions of OpenCV But this module is not available in opencv 3.0 beta. So where are the recogniser classes defined in

ERROR:the function/feature is not implemented(the algorithm is patented…)

风流意气都作罢 提交于 2019-12-25 00:24:22
问题 enter image description here I already use CMake to compile the opencv-contrib, and the xfeatures2d file is existd, it also has nonfree.hpp,but still post this error! what should I do? Thanks in advance! 来源: https://stackoverflow.com/questions/55154324/error-the-function-feature-is-not-implementedthe-algorithm-is-patented

Unable to install/run docker with opencv

柔情痞子 提交于 2019-12-24 08:38:21
问题 I'm using the code below in Dockerfile and it builds successfully but it does not run. How can I get it to work? FROM python:3.5-slim COPY . /app WORKDIR /app RUN apt-get update RUN apt-get -y upgrade RUN pip install -r requirements.txt ENTRYPOINT ["python"] CMD ["app.py"] Error: Traceback (most recent call last): File "app.py", line 7, in <module> from my_file.test import test File "/app/my_file/test.py", line 9, in <module> from imutils import contours File "/usr/local/lib/python3.5/site

attributeerror: module 'cv2.face' has no attribute 'createlbphfacerecognizer'

蹲街弑〆低调 提交于 2019-12-06 05:16:42
问题 So i'm doing a little personal project but i keep getting this error when I try to create the recognizer. i have opencv-contrib and everything. Does anyone know whats going on? code posted below import cv2, os import numpy as np from PIL import Image cascadePath = "haarcascade_frontalface_default.xml" faceCascade = cv2.CascadeClassifier(cascadePath) recognizer = cv2.face.createLBPHFaceRecognizer() it gets caught on that last line. I've tried reinstalling all modules already. Not really sure