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

Method resize_image

scenedetect/output/image.py:342–349  ·  view source on GitHub ↗
(
        self,
        image: np.ndarray,
        aspect_ratio: float | None,
    )

Source from the content-addressed store, hash-verified

340 return _generate_timecode_list(scene_list, self._num_images, self._frame_margin)
341
342 def resize_image(
343 self,
344 image: np.ndarray,
345 aspect_ratio: float | None,
346 ) -> np.ndarray:
347 return _scale_image(
348 image, aspect_ratio, self._height, self._width, self._scale, self._interpolation
349 )
350
351
352def save_images(

Callers 1

image_encode_threadMethod · 0.95

Calls 1

_scale_imageFunction · 0.85

Tested by

no test coverage detected