Parcourir la source

Update `cv2.imread()` patch with flags argument (#7287)

modifyDataloader
Glenn Jocher GitHub il y a 2 ans
Parent
révision
2181ef371e
Aucune clé connue n'a été trouvée dans la base pour cette signature ID de la clé GPG: 4AEE18F83AFDEB23
1 fichiers modifiés avec 2 ajouts et 2 suppressions
  1. +2
    -2
      utils/general.py

+ 2
- 2
utils/general.py Voir le fichier

@@ -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):

Chargement…
Annuler
Enregistrer