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

Function on_new_scene

tests/test_api.py:128–129  ·  view source on GitHub ↗
(frame_img: numpy.ndarray, position: FrameTimecode)

Source from the content-addressed store, hash-verified

126
127 # Callback to invoke on the first frame of every new scene detection.
128 def on_new_scene(frame_img: numpy.ndarray, position: FrameTimecode):
129 print(f"New scene found at frame {position.frame_num}.")
130
131 video = open_video(test_video_file)
132 scene_manager = SceneManager()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected