View my account

Problems running opencv rs-dnn realsense camera examples

Comments

10 comments

  • MartyX Grover

    Hi Michel Ospina   Do you have Git installed on your computer please?

    https://git-scm.com/downloads

    0
    Comment actions Permalink
  • Michel Ospina

    yes, version 2.30.2

    0
    Comment actions Permalink
  • MartyX Grover

    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.

    https://opencv.org/releases/

     

    0
    Comment actions Permalink
  • Michel Ospina

    doing it that way would not affect in any way the possibility of being able to execute correctly the examples of intel realsense ?, I need to operate the rs-dnn

     

    0
    Comment actions Permalink
  • MartyG

    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.

    https://github.com/IntelRealSense/librealsense/blob/master/wrappers/opencv/readme.md#building-the-opencv-samples-visualstudio-project

    0
    Comment actions Permalink
  • Michel Ospina

    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:


    0
    Comment actions Permalink
  • MartyG

    Okay, let's go through the instructions for a source build one stage at a time, starting with compiling OpenCV 3.4.

    https://github.com/IntelRealSense/librealsense/blob/master/wrappers/opencv/readme.md#building-the-opencv-library-visualstudio-project

    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

    0
    Comment actions Permalink
  • Michel Ospina

    I'm honest with you, I didn't compile with Ctrl-Shift-B because I thought it was to create a project from scratch based on openCV, however I'm going to do everything again from scratch to that part and I'll tell you the results.

    0
    Comment actions Permalink
  • Michel Ospina

    It effectively passed me the ctrl-alt shiff step, it works perfect for me. Thank you

    0
    Comment actions Permalink
  • MartyX Grover

    Great news Michel Ospina - thanks very much for the update   :)

    0
    Comment actions Permalink

Please sign in to leave a comment.