参考:https://blog.youkuaiyun.com/yuanlulu/article/details/79982347
opencv读取图片的颜色通道排列是BGR, plt显示为RGB, 因此需要转换。
BGR to RGB
OpenCV image to Matplotlib
rgb = bgr[...,::-1]
RGB to BGR
Matplotlib image to OpenCV
bgr = rgb[...,::-1]
RGB to GBR
gbr = rgb[...,[2,0,1]]



1526

被折叠的 条评论
为什么被折叠?



