Closed youkaichao closed 7 years ago
Is not it the default flag for the Python interface?
cv2.IMREAD_COLOR : Loads a color image. Any transparency of image will be neglected. It is the default flag.
However, if that is easy to understand for using in other language, I will merge it. Thanks.
i run the code across hundreds of imges. Most images can be disposed properly, but some will raise exception. After i add the default flag, all images can be disposed properly(without exceptions). Thus, i add the default flag.
if the flag of cv2.imread is not set, sometimes Exception described in here can happen