Hi Calvin,
As I see, you are rather new to either OpenCV or handling of C++ itself which is completely fine. If you have no or little experience, Caffe installation is one of the most difficult things to start with.
Since OpenCV 2, all include files (.h or .hpp) are in a folder named "opencv2" even if the version is 3 or 4. It became sort of a standard. As such, nothing is wrong, but the solution to your problem depends of the way you installed OpenCV. Here, it's always good to supply further info of your system, e.g. OS distro/version, Python version and whether you compiled OpenCV from source or installed it as a pre-compiled package.
First, you have to include all paths with your needed include-files to the INCLUDE_DIRS variable in Makefile.config. You should append /usr/local/include/opencv4 (check which path it is on your computer) to the variable in all cases. Also, uncomment OPENCV_VERSION := 4 and, if you compiled from source, USE_PKG_CONFIG := 1. You can search your computer for a file named "opencv4.pc" and, if it exists, create a symlink (
sudo ln -s opencv4.pc opencv.pc ) and append the following to your .bashrc-file:
export PKG_CONFIG_PATH="/path/to/your/file" # (usually "/home/[YOUR_USERNAME]/opencv/build/unix-install")
Then do source .bashrc and you should be good to go. If you need further detailed guides to follow, you can check out these:
Best of luck!