I am trying to use opencv2/face.hpp. I am calling it in my code with this...
#include <opencv2/face.hpp>
#include <opencv2/imgproc.hpp>
#include <opencv2/highgui.hpp>
#include <opencv2/core.hpp>
#include <opencv2/video.hpp>
All the hpp files except for face.hpp work perfectly. I compile with this on my macOS Catalina:
clang++ -std=c++11 source.cpp `pkg-config --cflags --libs opencv` -o test
and I get this error:
RPPG.cpp:10:10: fatal error: 'opencv2/face.hpp' file not found
#include <opencv2/face.hpp>
The weird thing is that I have face.hpp. When I run:
ls /usr/local/Cellar/opencv/4.5.0_4/include/opencv4//opencv2/
I see face.hpp and face/ along side all the other hpp files I am including. I installed via brew and I think this is where clang is pulling the library. Why isn't it finding face?