Installing openCV from source troubles
Hi everyone,
I am an electrical engineering student who is looking to convert my computer vision project from MATLAB to Python and openCV but am having trouble doing so. I've gotten close with the installation but still can't quite get it, mostly because this is largely out of my field and I am learning on the go. The difficulty with installing it is somewhat coming from the fact I want to use SURF and SIFT detection which means I have to install it from source.
So I have downloaded both the openCV folder and opencv-contrib folder from github and am using cmake to build it on my 64x laptop for python2.7. I make a folder called build and use visual studio 2019 to configure the library. I select the options for 'non free' and select the module folder from inside opencv-contrib when I configure it. I then select generate and it of course makes the files that visual studio can build.
I'm finding after I ask visual studio to build it, that the folder appears in my python 2.7 folder as cv2, and I can import it in code in pycharm, but it does not seem successful. It does not know the names of any of the methods I call and warns that it cannot find it in the '__int__'. It can do things like imshow even though it warns me about it but when I tried to use a SURF object to draw keypoints from a tutorial it did not seem successful. I've had a lot of problem trying to install it as again, its all very new to me to do this and would love to have any help on the matter. If you need more information from me I'm more than happy to provide.
Kind Regards, Nick
helo, please edit and add the cmake output to your question. it is quite long, but we might be able to see something