Skip to content

Dissolves/Fade to white? #143

Closed
Closed

Description

@tago-SE

Does PySceneDetect have a problem when a image dissolves or fades into white?

I was using the code provided in the python example usage: https://pyscenedetect.readthedocs.io/en/latest/examples/usage-python/

The intro started with a fade-in to white and ended with a fade-out from white. This was never detected and the whole scene was missed.
image
Any advice on how to better detect dissolves?

Activity

  1. wjs018 commented on Jan 24, 2020

    @wjs018
    Collaborator

    Slow dissolves in general are not well suited to being detected using the detect-content method. That method works by looking for abrupt changes in the HSV colorspace above a certain threshold. There have been discussions in the past about how to best detect dissolves and fades before, #62 for example.

    You might try using detect-threshold if you know you are always going to looking for fades to/from a pure white and see what your results look like there.

  2. jihh commented on Nov 17, 2022

    @jihh

    I think ThresholdDetector should add a switch.
    For blackframe, use if frame_avg < self.threshold:.
    For whiteframe, use if frame_avg > self.threshold:.

  3. added this to the v0.6.2 milestone on Nov 19, 2022
  4. Breakthrough commented on Feb 12, 2023

    @Breakthrough
    Owner

    For v0.6.2 you can specify if you want to use either methods with ThresholdDetector, and can also have both by combining two instances of ThresholdDetector each using the other method.

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

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions