MatplotlibDeprecationWarning: Support for FigureCanvases without a required_interactive_framework attribute was deprecated in Matplotlib 3.6 and will be removed two minor releases later.
  plt.hist(gray.ravel(),bins=256,range=[0,255])

我使用的pychorm运行的opencv代码在运行时报了以上的错误,加上plt.show()就可以了

plt.hist(gray.ravel(),bins=256,range=[0,255])
plt.show()
Logo

为开发者提供学习成长、分享交流、生态实践、资源工具等服务,帮助开发者快速成长。

更多推荐