akamhy / videohash

Near Duplicate Video Detection (Perceptual Video Hashing) - Get a 64-bit comparable hash-value for any video.
https://pypi.org/project/videohash
MIT License
282 stars 46 forks source link

Crop black bars from video #47

Closed akamhy closed 2 years ago

akamhy commented 2 years ago

Should probably use [ffmpeg.git] / libavfilter /vf_cropdetect.c or just use python to crop the frames post extraction.

The black bars aren't an issue if they occupy less than 15% of the area but they are quite problematic if the area occupied is more than 15%. The issue seems fixable.