Update OpenCV image read error message (#13822)
Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
This commit is contained in:
parent
9f62c0f707
commit
0ca3cd3fbe
1 changed files with 1 additions and 1 deletions
|
|
@ -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}: ")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue