Skip to content

Make scipy and PyWavelets optional #217

@JanisV

Description

@JanisV

It would be great to make scipy and PyWavelets dependencies optional:
pip install imagehash[pywt] or pip install imagehash[scipy]

When scipy is missed we can use numpy implementation of 2D DCT (https://public.websites.umich.edu/~mejn/cp/programs/dcst.py). Also separating DCT function can help with #108.

If you are interested, I can create a PR

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions