Perceptual Hash Detector by wjs018 · Pull Request #290 · Breakthrough/PySceneDetect
Hi @Breakthrough,
This is a proof of concept for a perceptual hash based detection algorithm I had started working on a while back. I updated things to be compatible with the 0.6.x updates (I think) and implemented things in OpenCV without adding additional dependencies (previously I had PIL and scipy). I also added a cli command and help strings, but have not written any actual documentation yet.
As for the actual algorithm, I re-implemented the phash algorithm from the imagehash library. For a more human readable version of the algorithm, you can see the blog post here.
Performance wise, I chose defaults that worked well on the goldeneye clip and seemed fairly performant.
There might be some formatting issues to make it match the updated codebase (typing for instance). Feel free to change things to make it fit or, point it out and I will try to take a crack at it.