I am trying to perform 3D reconstruction from sets of images using OpenCV. Being somewhat new to openCV, I found a useful example that demonstrates the generation of a point cloud from images here:
https://github.com/alyssaq/reconstruction
Unfortunately, when I tried to run the commands which were written on the README.md file, I got the following error.
Error message
As you can see the error is showing the minimum version required for the cmake is 3.5 and claims the version that is being run is 3.0.2.
But as you can see that the cmake version that I am running is 3.9.1.
I tried with removing(uninstalling) the cmake and reinstalled. But issue is still there.
The contents of the $PATH variable are as follows:
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin
Related
I want to add opencv2/cudaimgproc.hpp module from contrib. I followed the instructions in https://github.com/opencv/opencv_contrib to build opencv contrib. I also cloned opencv master because the instructions said so even though I have opencv 4 installed in Google colab. I still get the same error-
fatal error: opencv2/cudaimgproc.hpp: No such file or directory #include
when I run the cpp code with #include . Please help.
I am using the opencv jars for Facial detection and recognition and I don't have any cmake files in that package.
My app works fine below android Nougat, but a problem occurs in android Nougat and above where the alert error box says:
libopencv_core.so DT_NEEDED ENTRY libtbb.so
libopencv_imageproc.so DT_NEEDED Entry libopencv_core.so
libopencv_highgui.so DT_NEEDED Entry libopencvcore.so
.........
etc
There are 4 libraries that have an entry missing, but they are there in the lib directory of the libsJni folder,
I went through the github thread regarding the solutions of this question, but they are all related to cmake file, and I didn't use any cmake file.
Also, I cannot set a property target for an external build.
I have seen this question but it has not helped me.
I am trying to follow a guide to install Opencv however I am having problems.
I am following this guide:
https://www.pyimagesearch.com/2016/12/19/install-opencv-3-on-macos-with-homebrew-the-easy-way/
However there is an addendum when it reaches this point:
Update — 15 May 2017:
Which then sends you to this page:
This Page
As stated in this guide I installed OpenCV3 using this command:
brew install opencv3 --with-contrib --with-python3
I then stepped back to the original install guide here
However when checking my site packages using this line:
ls -l /usr/local/opt/opencv3/lib/python3.7/site-packages/
The directory is not found.
I then tried to cd to this directory one step at a time and found in my 'opt' directory that some of the folders were names incorrectly or at least different than to be expected.
I have two opencv folders:
opencv
opencv#3
I also have three python folders:
python3
python#2
python#3
Should I rename the opencv and python folders? If so how?
Mac OS High Sierra
I am trying to build this code:
https://docs.opencv.org/3.2.0/d5/d6f/tutorial_feature_flann_matcher.html
I am using Ubuntu 16.04 with CLion 2017.3 and have OpenCV 3.4 installed.
xfeatures2d.hpp can't be found on the system.
I have looked at many different problems on the internet, but couldn't find a solution.
Any help?
You have to include cmake comiplation flag to opencv OPENCV_EXTRA_MODULES_PATH and set it to the opencv_contrib/modules.
cmake -DOPENCV_EXTRA_MODULES_PATH=../opencv_contrib/modules
Here's what I had to do to compile OpenCV with xfeatures2d:
Download opencv_contrib (I took a release from the releases page). This step is what gives us xfeatures2d.
Unpack the tarball somewhere, e.g., ~/src/opencv_contrib-4.5.5
When configuring OpenCV (the main OpenCV source like opencv-4.5.2) with CMake, add the following option to cmake command line (adjusting the value to be your actual path to the modules subdirectory of the opencv_contrib tarball):
-DOPENCV_EXTRA_MODULES_PATH=$HOME/src/opencv_contrib-4.5.5/modules/
Now just build as you normally would and install.
The above actions gave me the expected file (among others): /usr/include/opencv4/opencv2/xfeatures2d.hpp.
I failed to compile conjugate gradient solver. I downloaded the whole archieve that contains libraries, makefile and other stuff but the compiler lacks some header files. How to include all files I downloaded? Maybe I need to add some path or copy folder "common" to /usr/local/cuda/include/
To download and build a cuda sample directly, the following steps worked for me:
wget http://developer.download.nvidia.com/compute/DevZone/CUDALibraries/Projects/x64/conjugateGradient.tar.gz
tar -xzvf conjugateGradient.tar.gz
cd 7_CUDALibraries/conjugateGradient
make
# to execute the program:
./conjugateGradient
This assumes a standard cuda 5 install is available at /usr/local/cuda.
It does not assume that any samples are previously installed.
I tested this on a machine with CUDA 5 and RHEL 5.5
If this does not work, please post details of the error output you received.
If you want to use some other sample than the example given here, the download links can be obtained here.