kemenaran / SameBoy

Game Boy and Game Boy Color emulator written in C
https://sameboy.github.io/
MIT License
60 stars 2 forks source link

Better heuristic to detect scene changes #6

Open kemenaran opened 3 years ago

kemenaran commented 3 years ago

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: