Phylliida / orbslam-windows

Easy build for ORB Slam 2 on Windows
GNU General Public License v3.0
130 stars 73 forks source link

Does this release support OpenCV 3 ? #6

Open salocinx opened 7 years ago

salocinx commented 7 years ago

Hi, thanks for your setup instructions. The compilation worked fine as you described. However, when I try to run mono_kitti.exe and mono_euroc.exe I get the following error message:

The code execution cannot proceed because opencv_world331.dll was not found. Reinstalling the program may fix this problem.

Although the opencv_world331.dll is present at C:\opencv\build\x64\vc14\bin which in turn is listed in my Windows environment variables (OpenCV_DIR -> C:\opencv\build\x64\vc14\bin).

I noticed that on this GitHub repository, the author has added "Fix OpenCV 3 support" 9 month ago and your repository was last edited 8 month ago. So does your repository also contain the OpenCV 3 fixes? Do you have any suggestions how to solve my issue?

PS.: I am currently usingopencv-3.3.1-vc14 and did the compilation process with Visual Studio 14 2015 Win64 as you suggested.

Thank you!

salocinx commented 7 years ago

I just had to copy the opencv_world331.dll to the folder I had stored my executables. Now everything works fine :-) Thanks.

guardfromua commented 6 years ago

@salocinx in what folder did you paste this file?

salocinx commented 6 years ago

@guardfromua ... to the folder where your executables have been compiled to.

guardfromua commented 6 years ago

@salocinx and what you did to see the camera result? Have I to run some class?

salocinx commented 6 years ago

@guardfromua I did a test with a normal web camera and started the monocular example. You additionally need the ORBvoc.txt in your folder with the executables.

I have uploaded the pre-compiled monocular examples to my web server for you (including the needed *.dll and ORBvoc.txt files):

http://nicolas.baumgardt.ch/slam/monocular.zip

Download, unzip and open a terminal window. Then navigate to the unzipped folder and enter the following command: mono_webcam.exe ORBvoc.txt

If you have a valid camera attached to your Windows PC, it should open two camera views and an additional window showing the 3d cloud etc.

guardfromua commented 6 years ago

image Should I copy it in Examples folder in ORBproject?

salocinx commented 6 years ago

@guardfromua Ah okay, take this full download (all examples) and try again:

http://nicolas.baumgardt.ch/slam/ORB_SLAM2_Examples.zip

guardfromua commented 6 years ago

@salocinx Thank you a lot! but still: image

salocinx commented 6 years ago

@guardfromua Do you have OpenCV 3 installed on your computer?

guardfromua commented 6 years ago

@salocinx ofc I have. Maybe you have OpenCv on that pass in error?

salocinx commented 6 years ago

@guardfromua I don't know what your error is caused by. I discovered and compiled SLAM some days ago and just tried the monocular example. I installed the latest OpenCV 3 release before compiling.

VansonLeung commented 4 years ago

@salocinx Thank you a lot! but still: image

me too, stuck here :(