Pay attention to a parameter inside: cv2.COLOR_RGB2BGR, here just means the conversion of a channel, for example: if you read a picture with cv2, the read in is in BGR format, but when saving the picture, it should be saved in RGB format Yes, you can use cv2.COLOR_RGB2BGR or cv2.COLOR_BGR2RGB, the effect is the same
A little detail about cv2.cvtColor(im, cv2.COLOR_RGB2BGR)
Guess you like
Origin blog.csdn.net/AWhiteDongDong/article/details/111128947
Recommended
Ranking