Skip to content

Support cropping / region of interest #302

Closed

Description

@Breakthrough

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

Activity

  1. added this to the v0.6.3 milestone on Jul 4, 2023
  2. modified the milestones: v0.6.3, v0.7 on Nov 20, 2023
  3. modified the milestones: v0.6.4, v0.7 on Apr 21, 2024
  4. modified the milestones: v0.7, v0.6.4, v0.6.5 on Jun 5, 2024
  5. ankandrew commented on Jun 15, 2024

    @ankandrew

    Looking forward this feature 🙏

  6. modified the milestones: 0.6.6, 0.6.5 on Jun 16, 2024
  7. cdgraff commented on Jun 17, 2024

    @cdgraff

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

  8. Breakthrough commented on Oct 26, 2024

    @Breakthrough
    OwnerAuthor

    Can anyone share if they require a GUI for this purpose, or is command line acceptable? cc @ankandrew @cdgraff

    I'm thinking the regions can be a set of polygon masks similar to how DVR-Scan handles this. Similarily, if we need a GUI, I may repurpose the region editor from DVR-Scan for this purpose, since that has most of the required functionality. This also means we can support non-rectangular masks.

    Regardless we should ship something soon and leave the GUI for later.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions