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
281 stars 46 forks source link

compare many videos in a database #113

Open mishav78 opened 3 months ago

mishav78 commented 3 months ago

does someone have the code to compare many videos in a database and delete from the file system one or more that already have a similar hash in the database? Please post it.

Demmenie commented 3 months ago

You may want to take a look at this web app I built: https://github.com/Demmenie/Aethra The main branch has a complex version for MongoDB but there's a simpler SQL version in the 'ver_0.5' Branch called "dbAccess.py"

mishav78 commented 3 months ago

thanks, could it be used with mysql?

Demmenie commented 3 months ago

I am using postgreSQL unfortunately, it might be worth trying to incorporate something like this into the module but I'm not sure how that would work well. Are you trying to do this locally? I happen to be using a GCP hosted solution.