Problems running opencv rs-dnn realsense camera examples
I have a realsense depth camera d435 and I want to test the Computer vision examples with open cv and I did what is described in https://github.com/IntelRealSense/librealsense/blob/master/wrappers/opencv/readme.md#windows
However, when executing the code of any example, it indicates the following error:
Severity Code Description Project File Line Status suppressed
Error LNK1104 cannot open file 'C: \ git \ opencv-3.4 \ build \ lib \ Debug \ opencv_dnn3414d.lib' rs-dnn C: \ git \ librealsense \ build \ wrappers \ opencv \ dnn \ LINK 1
When searching within the binary files created by cmake, the indicated path "'C: \ git \ opencv-3.4 \ build \ lib \ Debug \" does not exist, that is, it was not created, or they are not contained anywhere, I made step by step rigorously, however, this error is presented to me and I require support.
-
Hi Michel Ospina Do you have Git installed on your computer please?
-
If you are not certain that OpenCV 3.4 has been installed, I would suggest downloading a Windows installer for version 3.4.14 from the OpenCV website and running it instead of building OpenCV from source code.

-
I would not expect a difference between an installer-file installation of OpenCV and building a binary of OpenCV from its source code with Visual Studio, but I have not performed the installation process myself.
In my opinion, the building of librealsense from source code with BUILD_CV_EXAMPLES (support for the OpenCV samples) in the next step after OpenCV installation is likely more important to the setup process than how OpenCV was installed. I emphasize again though that setup of the OpenCV examples is not a process that I have direct experience with.
-
Apparently there is a difference because when I do the construction of the examples as indicated in the instructions, the path called 'openCV_dir' must be selected if I put the path of the build that remains after doing it in the installation from the installer for windows I get an error and no build the project, but if it is with the build that generates me building it with the cmake from the binaries, it is capable of generating the binaries, but the rs-dnn example and the others of open cv have linkers that are not when compiling the example, as shown here:

-
Okay, let's go through the instructions for a source build one stage at a time, starting with compiling OpenCV 3.4.
Using the instructions for building OpenCV, are you able to successfully build it after you have filled in the cmake-gui details and clicked Generate, then opened the project in Visual Studio and built with Ctrl-Shift-B
-
Great news Michel Ospina - thanks very much for the update :)
Please sign in to leave a comment.

Comments
10 comments