JohannesBuchner / imagehash

A Python Perceptual Image Hashing Module
BSD 2-Clause "Simplified" License
3.19k stars 329 forks source link

Alternative to scipy.fftpack #191

Closed dt99jay closed 1 year ago

dt99jay commented 1 year ago

Many thanks for this library, I'm finding it very helpful. I'm getting the best results with phash, but would like to generate hashes in an AWS Lambda function. Lambdas have a 250Mb limit on dependencies, and SciPy takes up about 200Mb. I can probably just about squeeze imagehash and the other dependencies I need into the last 50Mb, but thought I'd check if there's an alternative to SciPy's FFT?

JohannesBuchner commented 1 year ago

Have you tried googling for "FFT library python"?

dt99jay commented 1 year ago

I see Numpy has some FFT functions but not the DCT that phash uses

JohannesBuchner commented 1 year ago

I don't know. Closing this now.

But I saw https://stackoverflow.com/questions/62546019/aws-lambda-how-to-manage-deployment-packages-greater-than-250mb

JohannesBuchner commented 1 year ago

(by googling "Lambdas have a 250Mb limit on dependencies")