[~] Refactor
This commit is contained in:
parent
c7065787ae
commit
f6d853dad4
@ -233,6 +233,7 @@ def kernel_6():
|
|||||||
t8 = []
|
t8 = []
|
||||||
for o in t1:
|
for o in t1:
|
||||||
t7 = []
|
t7 = []
|
||||||
|
t2 = None
|
||||||
try:
|
try:
|
||||||
t2 = cv2.VideoCapture(o)
|
t2 = cv2.VideoCapture(o)
|
||||||
for k in range(10):
|
for k in range(10):
|
||||||
@ -244,7 +245,8 @@ def kernel_6():
|
|||||||
t5
|
t5
|
||||||
)
|
)
|
||||||
finally:
|
finally:
|
||||||
t2.release()
|
if not t2 is None:
|
||||||
|
t2.release()
|
||||||
t7.append(
|
t7.append(
|
||||||
dict(
|
dict(
|
||||||
video_path=o,
|
video_path=o,
|
||||||
|
Loading…
Reference in New Issue
Block a user