About default opencv on jetson nx xavier

Hello,

I tried to use opencv on jetson nx xavier sd card image by default.



file exist but It says “no such file or directory”

What am I supposed to you.

Thank you.

opencv.hpp header includes itself a header file “opencv2/opencv_modules.hpp”, but gcc fails to find it.
You have to give some paths to headers for compilation.
With gcc use -Ito give an include directory.
For opencv being installed in /usr, you would use:

gcc -I /usr/include/opencv4 ...

So in your code, you wouldn’t have to give full path, just:

#include "opencv2/opencv.hpp"
1 Like

Hello,

When checking opencv installed by default on jetson nano,
Can I use pkg-config opencv4?

Thank you very much.

pkg-config will say what is currently installed for pkg-config.

The best way to know what is configured for the running version is to use:

std::cout << cv::getBuildInformation() << std::endl;

You will be able to check what supports the running version opencv for your application.

1 Like

Hello,

Thank you. 👍😊


12222

hi neuezeal:
could you share code to reproduce this image show issue?

1 Like

Hello,

Resolved. :)

Thank you.