stashapp / stash

An organizer for your porn, written in Go. Documentation: https://docs.stashapp.cc
https://stashapp.cc/
GNU Affero General Public License v3.0
8.72k stars 774 forks source link

[Feature] Videos not being identified as duplicate if reversed #2861

Open joseashb opened 2 years ago

joseashb commented 2 years ago

Is your feature request related to a problem? Please describe. Yes, kinda. Whenever a video is image flipped, meaning the Image is rotated, it is not identified as duplicate.

Describe the solution you'd like Scrolling in my medias, I found a duplicate, when investigating, I found one of the video is image is flipped that why it wasnt detected

Describe alternatives you've considered Tweak the duplicate finder to check for duplicate if the image is flipped. (If possible)

DogmaDragon commented 1 year ago

Not possible with how phash is implemented. It generates 25 screenshots of the video and adds them together into a single image and then creates a hash of that image. The distance between the non-flipped version and flipped version is just too great.

You would need to generate a second hash for the flipped version and I think that just creates more problems than it solves.