소스 검색

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

modifyDataloader
Glenn Jocher GitHub 2 년 전
부모
커밋
2181ef371e
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. +2
    -2
      utils/general.py

+ 2
- 2
utils/general.py 파일 보기

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

Loading…
취소
저장