• DepthAI-v2
  • OpenCV or required libraries (opencv_core;opencv_imgproc) not found

Building the core package and OpenCV is not found.

I have unzipped opencv-4.0.0-vc14vc15, but there are no opencv_core or opencv_imgproc. I do have a MATLAB runtime that contains those files.

What branch of depthai-core is recommended?

What version of OpenCV?

Thank you.

    tonya
    I suggest you don't use matlab runtime if you can, not sure if this was tested. You might just need to expose the opencv to CMAKE cmake -DOpenCV_DIR="C:/path/to/opencv/build" ..

    Thanks,
    Jaka

    I submitted this because I could not get cmake to find OpenCV.

    Trying this

    cmake -S. -Bbuild -D'DEPTHAI_BUILD_EXAMPLES=ON' -DOpenCV_DIR="..\opencv\build"

    result is this

    -- OpenCV or required libraries (opencv_core;opencv_imgproc) not found. OpenCV Support disabled

    I am trying to build EdgeDetector.cpp and there are classes that do not exist in the code base

    CameraBoardSocket

    ColorCameraProperties

    MonoCameraProperties

      tonya
      I am not too familiar with building on windows, especially around matlab's runtime. I'd suggest you use gpt to get you through it since it doesn't seem like a depthai issue, but a cmake linking problem.

      assuming you’re on Windows due to the mention of vc14vc15:

      cmake -S . -B build -D DEPTHAI_BUILD_EXAMPLES=ON -D OpenCV_DIR="C:/opencv/build/x64/vc15/lib"
      
      # Expected output:
      # -- Found OpenCV: C:/opencv/build (found suitable version "4.5.5", minimum required is "4.5.0") 
      # -- OpenCV libraries: opencv_core;opencv_imgproc;...

      Thanks,
      Jaka

      I gave up on the instructions in the readme. I got the C++ edge detection code to work by creating a visual studio console application.

      I battled with the linking.

      How many libraries ( .dll or .lib ) would have to be included in a production solution?

        depthai-core.lib, depthai-resources.lib, libusb-1.0.lib
      
        opencv_world400.dll (anything else for OpenCV?)

      Then there was undefined symbol from a Windows DLL called pathcch.lib

      Now for Open CV, is that used only to display images in the example? I would prefer not to have to add all of Open CV to a production solution.

      A different question: What is the folder called .howard used for?

      Thank you