Note: This happens even when you don't use OpenCV but since the below sketch uses it, I figured I'd post it here.
In my code, I have it so when a face is detected (line 74), it should display a gray rectangle and then wait for three seconds using a while loop (I'm testing using cues for a face-recognition based application). However, what happens is that the gray rectangle is not displayed until AFTER the while loop terminates.
Has anyone else ran into this issue?
1