video playing in opencv: no error no output

前端 未结 1 1128
灰色年华
灰色年华 2021-01-27 05:56

I have written a program to display a stored video file using opencv. I attached the code below. I am not getting any errors while building it but no output is disp

相关标签:
1条回答
  • 2021-01-27 06:36

    You have to add a very small delay after imshow by using waitKey.

    imshow("display",frame);
    waitKey(10); //Wait 10 milliseconds before showing next frame.
    
    0 讨论(0)
提交回复
热议问题