Path of OpenCV libraries

I would need to know the path where the opencv libraries are stored.

As of now, I only found where the samples are (following what’s written here:

Thank you.

They’re in /usr/lib/aarch-64-linux-gnu. That path is already searched automatically but you can find which libraries you need to include in a compile using pkg-config.

$ pkg-config --libs opencv4
-lopencv_dnn -lopencv_gapi -lopencv_highgui -lopencv_ml -lopencv_objdetect -lopencv_photo -lopencv_stitching -lopencv_video -lopencv_calib3d -lopencv_features2d -lopencv_flann -lopencv_videoio -lopencv_imgcodecs -lopencv_imgproc -lopencv_core