Update cv2.imread() patch with flags argument (#7287)
This commit is contained in:
1 parent
8d0291f3af
commit
2181ef371e
1 file changed
+2
-2
+2
-2
@@ -925,8 +925,8 @@ def increment_path(path, exist_ok=False, sep='', mkdir=False):
|
|||||||
imshow_ = cv2.imshow # copy to avoid recursion errors
|
imshow_ = cv2.imshow # copy to avoid recursion errors
|
||||||
|
|
||||||
|
|
||||||
def imread(path):
|
def imread(path, flags=cv2.IMREAD_COLOR):
|
||||||
return cv2.imdecode(np.fromfile(path, np.uint8), cv2.IMREAD_COLOR)
|
return cv2.imdecode(np.fromfile(path, np.uint8), flags)
|
||||||
|
|
||||||
|
|
||||||
def imwrite(path, im):
|
def imwrite(path, im):
|
||||||
|
|||||||
Reference in new issue
Block a user