[~] Refactor
This commit is contained in:
parent
0486675c1c
commit
80bcbee4a5
@ -241,6 +241,7 @@ def kernel_6(
|
|||||||
if max_frames is None:
|
if max_frames is None:
|
||||||
max_frames = 10
|
max_frames = 10
|
||||||
|
|
||||||
|
import tqdm
|
||||||
import cv2
|
import cv2
|
||||||
|
|
||||||
t1 = glob.glob('*.mp4')
|
t1 = glob.glob('*.mp4')
|
||||||
@ -251,7 +252,7 @@ def kernel_6(
|
|||||||
t2 = None
|
t2 = None
|
||||||
try:
|
try:
|
||||||
t2 = cv2.VideoCapture(o)
|
t2 = cv2.VideoCapture(o)
|
||||||
for k in range(10):
|
for k in tqdm.tqdm(range(max_frames)):
|
||||||
t3 = t2.read()
|
t3 = t2.read()
|
||||||
assert t3[0]
|
assert t3[0]
|
||||||
t4 = t3[1]
|
t4 = t3[1]
|
||||||
|
Loading…
Reference in New Issue
Block a user