Update OpenCV image read error message (#13822)

Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
This commit is contained in:
xiaoluohao 2024-06-20 20:49:46 +08:00 committed by GitHub
parent 9f62c0f707
commit 0ca3cd3fbe
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -362,7 +362,7 @@ class LoadImagesAndVideos:
self.mode = "image"
im0 = cv2.imread(path) # BGR
if im0 is None:
raise FileNotFoundError(f"Image Not Found {path}")
raise FileNotFoundError(f"Image Read Error {path}")
paths.append(path)
imgs.append(im0)
info.append(f"image {self.count + 1}/{self.nf} {path}: ")