MCPcopy Create free account
hub / github.com/NSFW-API/TripleX / extract_sharpest_frame

Function extract_sharpest_frame

utils/extract_sharpest_frame.py:43–120  ·  view source on GitHub ↗

Extracts the sharpest frame from a video file based on Laplacian variance, excluding frames that contain significant text or are mostly black/white. Args: video_path (str): Path to the video file. Returns: str or None: Path to the saved sharpest frame, or None if e

(video_path)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 2

mainFunction · 0.90
mainFunction · 0.85

Calls 2

detect_textFunction · 0.85
is_mostly_black_or_whiteFunction · 0.85

Tested by

no test coverage detected