我从 Jupyter Notebook 运行以下代码:
import cv2 as cv
contours, hierarchy = cv.findContours(im, cv.RETR_TREE, cv.CHAIN_APPROX_SIMPLE)
cnt = contours[4]
cv.drawContours(im, contours, 2, (0, 230, 255), 6)
# Show the image with contours
cv.imshow('Contours', im)
cv.waitKey(0)
(im 是二进制图像)运行后,Jupyter Kernel 死亡。我应该改变什么?