mirror of
https://github.com/wiltodelta/remove-ai-watermarks.git
synced 2026-10-21 16:21:42 +02:00
Fix Kling video detection across decoders
This commit is contained in:
2 files changed
+22
-1
No files matched your search
@@ -803,7 +803,7 @@ def detect_kling_frame(
|
||||
and logo_x is not None
|
||||
):
|
||||
font_x, _, font_width, _ = font_candidate.region
|
||||
if logo_x <= font_x + round(font_width * 0.50):
|
||||
if font_x - round(font_width * 0.08) <= logo_x <= font_x + round(font_width * 0.50):
|
||||
best = logo_candidate
|
||||
if best is None or best.region is None:
|
||||
return FrameLocalization(frame_index, 0.0, None)
|
||||
|
||||
Reference in new issue
Block a user