Fix result saving issue when multi-stream detection (#19297)
Signed-off-by: Chao Qin <chaoqin_cmkj@163.com> Signed-off-by: Glenn Jocher <glenn.jocher@ultralytics.com> Co-authored-by: Laughing-q <1185102784@qq.com> Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
This commit is contained in:
parent
d39098888c
commit
bf3501554b
@ -106,7 +106,7 @@ class LoadStreams:
|
||||
self.caps = [None] * n # video capture objects
|
||||
self.imgs = [[] for _ in range(n)] # images
|
||||
self.shape = [[] for _ in range(n)] # image shapes
|
||||
self.sources = [ops.clean_str(x) for x in sources] # clean source names for later
|
||||
self.sources = [ops.clean_str(x).replace(os.sep, "_") for x in sources] # clean source names for later
|
||||
for i, s in enumerate(sources): # index, source
|
||||
# Start thread to read frames from video stream
|
||||
st = f"{i + 1}/{n}: {s}... "
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user