Skip to content

Commit

Permalink
Update cv2.imread() patch with flags argument (#7287)
Browse files Browse the repository at this point in the history
  • Loading branch information
glenn-jocher committed Apr 5, 2022
1 parent 8d0291f commit 2181ef3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions utils/general.py
Original file line number Diff line number Diff line change
Expand Up @@ -925,8 +925,8 @@ def increment_path(path, exist_ok=False, sep='', mkdir=False):
imshow_ = cv2.imshow # copy to avoid recursion errors


def imread(path):
return cv2.imdecode(np.fromfile(path, np.uint8), cv2.IMREAD_COLOR)
def imread(path, flags=cv2.IMREAD_COLOR):
return cv2.imdecode(np.fromfile(path, np.uint8), flags)


def imwrite(path, im):
Expand Down

0 comments on commit 2181ef3

Please sign in to comment.