Skip to content
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

Better heuristic to detect scene changes #6

Open
kemenaran opened this issue Jan 3, 2021 · 0 comments
Open

Better heuristic to detect scene changes #6

kemenaran opened this issue Jan 3, 2021 · 0 comments

Comments

@kemenaran
Copy link
Owner

Currently the heuristic to detect a scene change is to use a custom perceptual hash, that tries to detect when a large portion of the image changed.

Even after many fine tuning, this perceptual hash is not very good: it tends to have many false positives (changing a scene when the scene is actually the same) and false negatives (not changing a scene when it did actually change).

I guess this is, despite by best efforts, the function is still too sensitive to scrolling (which makes a large part of games).

Ideas for improvements:

  • Try to find a perceptual hash less sensitive to scrolling (maybe like the sum of all luminance, instead of working per neighbouring blocks?)
  • Or just change the scene when the screen goes all black or all white (because most games will fade to black or white when changing a scene anyway).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant