0

I run this example in a jupyter-notebook (python3 with opencv2 version 4.5.3; Firefox under OSX)

import numpy as np
import cv2
img=np.zeros((512,512,3),np.uint8)
img1 = cv2.circle(img,(256,256),63, (0,0,255), -1)
cv2.imshow("Circle",img1)
cv2.waitKey(0)
cv2.destroyAllWindows()

When I select the created popup window and type "0" the window is not destroyed and seems to be freezed (the small colored OSX wheel appears). Any idea ? Thanks

olivier dadoun
  • 484
  • 4
  • 13
  • 2
    You should use matplotlib: https://stackoverflow.com/questions/46236180/opencv-imshow-will-cause-jupyter-notebook-crash – iGian Sep 24 '21 at 14:34

0 Answers0