PySceneDetect icon indicating copy to clipboard operation
PySceneDetect copied to clipboard

Support cropping / region of interest

Open Breakthrough opened this issue 2 years ago • 2 comments

Processing only a sub-set of a video frame should be possible. This can greatly improve performance and detection accuracy in some cases.

To avoid any issues with cropping or output, both save-images and split-video should still output the full video. Cropping of the output can be considered in the future, but should be avoided if possible and done by post-processing the output of PySceneDetect. The same applies to non-rectangular ROIs or overlapping regions.

This was originally brought up in #147. This is also a feature in PyVfxShotDetect [1], so we can consider implementing something similar by creating a wrapper for VideoStream.

[1] https://github.com/ThomasWeckenmann/PyVfxShotDetect/blob/master/scenedetect/bbox_video_stream.py

Breakthrough avatar Nov 16 '22 02:11 Breakthrough

Looking forward this feature 🙏

ankandrew avatar Jun 15 '24 03:06 ankandrew

+1 will be amazing have this feature! I need too...

cdgraff avatar Jun 17 '24 16:06 cdgraff