Check opencv version

If you have installed OpenCV with pkg_config enabled, just type:

cat /usr/local/lib/pkgconfig/opencv4.pc

(or /usr/lib/... if installed from the package manager and .../opencv.pc if using opencv 2.x/3.x).

If needed, type find /usr -name opencv4.pc (or opencv.pc)