First time here? Check out the FAQ!
answered 2020-03-13 16:54:52 -0600
You need to learn programming. You need to verify that the image you give to imshow is valid, that is, that your imread succeeded. If your data is not good, your code will crash with more libraries than just OpenCV.