简体   繁体   中英

whats the difference between python cv2.imread ,flags cv2.IMREAD_COLOR and CV2.IMREAD_ANYCOLOR?

python cv2.imread ,标志 cv2.IMREAD_COLOR 和 CV2.IMREAD_ANYOLOR 之间有什么区别?

from docs

IMREAD_COLOR : If set, always convert image to the 3 channel BGR color image.

IMREAD_ANYCOLOR : If set, the image is read in any possible color format.

So, you may not notice a difference if ANYCOLOR ends up choosing RGB to read.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM