参考:https://blog.csdn.net/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]]