rename extract timestamp script
This commit is contained in:
@@ -81,10 +81,10 @@ def extract_timestamps(video_path):
|
||||
while True:
|
||||
pivot = get_pivot(start, end)
|
||||
count = extract_count_at_frame(cap, pivot)
|
||||
if count < c_start or count > c_end:
|
||||
if count < 100 or count < c_start or count > c_end:
|
||||
logging.warning(
|
||||
f"faulty value found count={count} c_start={c_start} c_end={c_end} frame={pivot}")
|
||||
start += 1
|
||||
start += fps
|
||||
continue
|
||||
logging.info(f"s={start} e={end} p={pivot} c={count}")
|
||||
if end - start < fps:
|
||||
Reference in New Issue
Block a user