merge master into v4 - post adjustments

This commit is contained in:
henryruhs
2026-07-01 13:36:59 +02:00
parent 8a9c596fde
commit bd1448805c
2 changed files with 7 additions and 5 deletions
+6 -4
View File
@@ -166,11 +166,13 @@ def analyse_video(video_path : str, trim_frame_start : int, trim_frame_end : int
for frame_number in frame_range:
if frame_number % int(video_fps) == 0:
video_frame = read_video_frame(video_path, frame_number)
total += 1
vision_frame = read_video_frame(video_path, frame_number)
if analyse_frame(video_frame):
counter += 1
if numpy.any(vision_frame):
total += 1
if analyse_frame(vision_frame):
counter += 1
if counter > 0 and total > 0:
rate = counter / total * 100
+1 -1
View File
@@ -104,7 +104,7 @@ def pre_check() -> bool:
def common_pre_check() -> bool:
content_analyser_content = inspect.getsource(content_analyser).encode()
return hash_helper.create_hash(content_analyser_content) == 'a0a5ae57'
return hash_helper.create_hash(content_analyser_content) == '975d67d6'
def processors_pre_check() -> bool: