0

I applied following codes

import cv2

img = cv2.imread("messi5.jpg", 0) # 0 = grayscale

cv2.imshow("First Photo", img)

and I received that error...

[SpyderKernelApp] WARNING | No such comm: 2ed06aee37e411eb867974e5f9ff3c18

enter image description here

How can I solve this problem? I updated spyder to 4.1.5 but it still is getting error...

Vidya Ganesh
  • 788
  • 11
  • 24

1 Answers1

1

Use cv2.waitKey(0) for the window to be displayed until you press another key.

Vidya Ganesh
  • 788
  • 11
  • 24