Didn't find header after libopencv-contrib4.2 installed

what did you do, exactly ?

most likely, you’re better off, building from github src