In OpenCV, if I don't include Cv2.WaitKey(1)
line in the display loop for captured images, no image is rendered on the screen.
The same happens on C++, phyton, or C#.
What would be the cause for that, and is there another option?
This example is in C# (opencvsharp):
VideoCapture cap = new VideoCapture();
Window w = new Window();
cap.Open("animation.avi");
while (cap.Read(src)) {
Cv2.WaitKey(1);
w.ShowImage(src);
}