First time here? Check out the FAQ!
answered 2020-10-11 03:27:21 -0600
...Your code doesn't output the "Found 3 faces in Input image #2!" message so it comes from another piece of code...
But your frame2 is not a Mat, it is a VideoCapture object.