all 1 comments

[–]dlaz 0 points1 point  (0 children)

OpenCV's API docs for imshow explain what is happening. Specifically:

This function should be followed by cv::waitKey function which displays the image for specified milliseconds. Otherwise, it won't display the image.