This commit is contained in:
Glenn Jocher
2019-09-10 21:25:01 +02:00
parent 2a75034322
commit a31b1489a4
2 changed files with 3 additions and 2 deletions
+2 -2
View File
@@ -35,7 +35,7 @@ def exif_size(img):
elif rotation == 8: # rotation 90
s = (s[1], s[0])
except:
None
pass
return s
@@ -190,7 +190,7 @@ class LoadStreams: # multiple IP or RTSP cameras
self.img_size = img_size
self.half = half # half precision fp16 images
with open(path, 'r') as f:
sources = f.read().splitlines()
sources = [x.strip() for x in f.read().splitlines() if len(x.strip())]
n = len(sources)
self.imgs = [None] * n