Closed gzhang8763 closed 7 years ago
Well, the screenshot shows that your OpenCV is for windows although you are on Linux. You should first get Opencv installed properly
@kmyid could you please share the configuration of the machine and how did you installed OpenCV 3 I have the same problem as @navia1991 Thanks
@navia1991 did you solved the problem ?
@djidan10 nope.. I am a bit confused cauz the tutorial I followed to install opencv is denoted be used in ubuntu...Maybe there was some configuration problem it didn't mention. Anyway I am planning to re-install opencv again and find another installation tutorial online. T___T
Hi guys,
I am on Ubuntu 16.04.1 with OpenCV 3.1. I'll try to setup a fresh VM to re-test what's going on next week, when I get back to my office.
In the meantime, can you check if the following works?
import cv2
in pythonAlso, FYI, here's an official tutorial on installing OpenCV
@kmyid Hello! I have tried import cv2, it works. But I am not sure the pkg-config....
Besides, did you make some typical configuration when install cmake? If i don't copy the code files into opencv/build, and fix opencv-3.1.0/cmake/OpenCVConfig.cmake and change OpenCV_FOUND from FALSE to TRUE, then another error come out, sth like following:
Could not find module FindOpenCV.cmake or a configuration file for package OpenCV. Adjust CMAKE_MODULE_PATH to find FindOpenCV.cmake or set OpenCV_DIR to the directory containing a CMake configuration file for OpenCV. The file will have one of the following names: OpenCVConfig.cmake opencv-config.cmake
Many thanks!!
This is quite weird, as it seems that you have all the components installed, except something is wrong with the opencv installation.
If i don't copy the code files into opencv/build, and fix opencv-3.1.0/cmake/OpenCVConfig.cmake and change OpenCV_FOUND from FALSE to TRUE,
This is something you should not manually change. It should be able to discover OpenCV by itself. I think you are not following the OpenCV instructions properly.
Hi @navia1991 For me it is working now, I have reinstalled Ubuntu 16.04 then 1 - install Python 3 directly on the machine (without using virtualenv ) 2 - install Cuda 8.0 3 - install OpenCV 3.1.0
Now everything is working, so I advise you to remove old installation of OpenCV and Python and start from the beginning
Try in this way, and I will help you if you encounter errors Good luck !
Hi @kmyid Could you please see your email Thanks !
@djidan10 I re-install ubuntu16 in a new virtual machine. Opencv works well this time. Only problem is CUDA. I got following error about GPU. I need to install cuda to run the code anyway. But when I check the tutorial, the first step is Verify You Have a CUDA-Capable GPU. It seems that CUDA only support NVIDIA, right? My graphic in intel HD... So anyway it is not possible to run the code in the current computer? Thanks!
@kmyid Thanks! The official tutorial installation of OpenCV works quite well! :D
Closing as it seems resolved :-)
@navia1991 @djidan10 @kmyid I meet the same problem,could you help me? I run it in the Ubutun 14.0.4, this program must be run in the Ubuntu 16.04? I configure the opencv3.1.0 and python3.4 for severals times,i think my configure is ture,but it also have this error. This is the result of the cmake ..
This is the result of the make
This is the error about GPU,but i install the cuda-8.0 in the Ubutun 14.0.4,it also arise a error.
This is the error about img1_kp.txt, it can't look for this file.
This is the error about img1_ori.txt, it can't look for this file.
@18191171661 The OpenCV part is definitely something not working on your side. I cannot help you much with that since it's an installation issue.
For the second problem, you also need cudnn. see the webpage in the error message for more details.
Cheers, Kwang
@18191171661
Sorry to look at those problems happen to you as well.
For me, opencv should be well installed according to the link @kmyid gives, if it is a brand new Ubuntu, which means no other interupt.
Try to re-install ubuntu if possible; or i recommend anaconda, opencv is far more easier to install there, and so are those python packages, just looking for opencv3 anaconda cloud.
For Cuda stuff, i am afraid i can't give you any hints because I found a computer already with Cuda installed.... but i recommend you follow the official tutorial in Nvidia webpage
Everything will be fine. : )
@navia1991 @kmyid Thank you very much, i will try it.
@navia1991 @kmyid Thanks for your reply! I would like to test the performance of the LIFT algorithm and I have configured opencv for a long time.I will reconfigure it as your suggestion. Could I ask you some quention?
Question1: Could you tell me the result of the LIFT algorithm? Could you cut a picture related to the final result? I want to the performance of this algorithm. Question2: I would like to know that the "img1_ori.txt" file generator by run the code or get from the author?
I hope to receive you reply as soon as possible.
Thank you again! Email: 1575262785@qq.com
Question1: Could you tell me the result of the LIFT algorithm? Could you cut a picture related to the final result? I want to the performance of this algorithm.
The current code does not really perform matching. I will try to come up with a minimal example, once I get the time.
Question2: I would like to know that the "img1_ori.txt" file generator by run the code or get from the author?
It should be the output from the orientation estimator.
Cheers, Kwang
@kmyid I have sent you an email yesterday with some basic maybe a bit stupid questions. Could you have a look and give me some hints also? Thanks! : )
@navia1991 I got your e-mail. I am quite overwhelmed with work at the moment. I will get back to you.
And please do not necro this thread as it is closed :-)
Hello! I ran into mainly 4 problems when try to run the code. But in order to get things more clearly, I screenshot all the commanding info. (linux 16)
1