Skip to content

Only perform detection within a region-of-interest #147

Closed

Description

@laphlaw

My use case is to skip dead time in a sporting event, e.g. a basketball game.
To do this, I thought I'd just analyze the section of the video frame that contains the scoreboard, identify the timestamps of 'dead time', and skip over those.

Is this possible with either the command line tool or the library?

Activity

  1. Breakthrough commented on Mar 29, 2020

    @Breakthrough
    Owner

    Hi @laphlaw;

    Currently this is not implemented, but is definitely possible. Eventually I'd like to add motion detection capability to PySceneDetect, combining it with the other tool DVR-Scan (which performs what you mention, only returns frames that have some sort of motion). As such, #43 would be a required feature to be implemented before addressing this.

    At that point I would need to figure out how to have a kind of filter/detector pipeline, but that should be possible. Will mark this as an enhancement for now and add it to the backlog, thanks for your suggestion.

  2. added this to the milestone on Aug 8, 2020
  3. Breakthrough commented on Sep 12, 2020

    @Breakthrough
    Owner

    Note that DVR-Scan ( https://dvr-scan.readthedocs.io/en/latest/ ) supports this using the -roi argument.

  4. changed the title [-]Is it possible to detect motion changes on a subsection of a video frame?[/-] [+]Only perform detection within a region-of-interest[/+] on Sep 29, 2021
  5. Tetsujinfr commented on Nov 1, 2021

    @Tetsujinfr

    @laphlaw if I understand your use case you want to cut the input video and remove the game off times. Is that not kind of the opposite of what this repo is trying to achieve, which is detecting cuts already in the video, not generating them from the video ?

  6. removed this from the milestone on Feb 20, 2022
  7. added this to the v0.7 milestone on Aug 23, 2022
  8. Breakthrough commented on Nov 16, 2022

    @Breakthrough
    Owner

    After re-reading @Tetsujinfr's comment I think as worded the original post is requesting something entirely differently. I had intended this to support detection on a smaller subset of the input video, cropping out a particular region. As a workaround though the video can be pre-cropped.

  9. removed this from the v0.7 milestone on Nov 16, 2022
  10. Breakthrough commented on Jun 5, 2024

    @Breakthrough
    Owner

    I think this is too ambiguous so will close this as a duplicate of #286. Feel free to file a new feature request if you would like, thanks!

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

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions