每次我尝试使用cv2.imshow
,窗口图像都会出现,但我无法关闭它,然后python崩溃
我使用的是M1 MacBook Air,我不确定这是否是视觉代码的问题
我的代码:
cv2.startWindowThread() #
cv2.imshow("img", img) # show image
# : Press any key to directly destroy all open HighGUI windows
cv2.waitKey(0) # Wait for user input, press any key
cv2.destroyAllWindows()
有什么建议吗
目前没有回答
相关问题 更多 >
编程相关推荐