Skip to content

Dissolves/Fade to white? #143

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
tago-SE opened this issue Dec 12, 2019 · 3 comments
Closed

Dissolves/Fade to white? #143

tago-SE opened this issue Dec 12, 2019 · 3 comments
Milestone

Comments

@tago-SE
Copy link

tago-SE commented Dec 12, 2019

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?

@wjs018
Copy link
Collaborator

wjs018 commented Jan 24, 2020

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.

@jihh
Copy link

jihh commented Nov 17, 2022

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

@Breakthrough
Copy link
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
Projects
None yet
Development

No branches or pull requests

4 participants