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
)
| 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 |