MCPcopy Create free account
hub / github.com/Breakthrough/PySceneDetect / process_frame

Method process_frame

scenedetect/detector.py:49–60  ·  view source on GitHub ↗

Process the next frame. `timecode` is assumed to be sequential. Args: timecode: Timecode corresponding to the frame being processed. frame_img: Video frame as a 24-bit BGR image. Returns: List of timecodes where scene cuts have been detected, if a

(
        self, timecode: FrameTimecode, frame_img: numpy.ndarray
    )

Source from the content-addressed store, hash-verified

47
48 @abstractmethod
49 def process_frame(
50 self, timecode: FrameTimecode, frame_img: numpy.ndarray
51 ) -> list[FrameTimecode]:
52 """Process the next frame. `timecode` is assumed to be sequential.
53
54 Args:
55 timecode: Timecode corresponding to the frame being processed.
56 frame_img: Video frame as a 24-bit BGR image.
57
58 Returns:
59 List of timecodes where scene cuts have been detected, if any.
60 """
61
62 # Optional Methods
63

Callers 1

_process_frameMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected