OpencCV #include Error

Hello?

I installed Jetpack 4.6.
and Now I wanna check OpenCV.

But Include Error.

When I check folder and files. It’s have.
but VSCode Cmake Can’t find files. Error…

How Can I do?

Hi,

Could you try if the following works?

...
"includePath": [
    "${workspaceFolder}/**",
    "/usr/include/opencv4/"
],
...

Thanks.

of course.
usr/include/opencv4 first time… I add this… but have Error.

usr/include/opencv4/opencv2 2nd time I add this also have error.

You can try something like this, you can leave on the include path “usr/include/opencv4” and then on the source file for instance (only the ones you actually need) this is from my own projects:

#include <opencv2/core/core.hpp>
#include <opencv2/core/utility.hpp>
#include <opencv2/core/persistence.hpp>
#include <opencv2/highgui/highgui.hpp>
#include <opencv2/video/background_segm.hpp>
#include <opencv2/imgproc/imgproc.hpp>
#include <opencv2/objdetect/objdetect.hpp>
#include <opencv2/imgcodecs/imgcodecs.hpp>
#include <opencv2/video/tracking.hpp>
#include <opencv2/tracking/tracker.hpp>
#include <opencv2/opencv_modules.hpp>

and so on.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.