Skip to content

Use colorhash to find similarity in percentage #207

@EBakirdinov

Description

@EBakirdinov

My question is can i use colorhash to find similarity of image in percentage.

Example:

test = imagehash.colorhash(Image.open(path1), binbits=64)
test_2 = imagehash.colorhash(Image.open(path2), binbits=64)

print(test - test_2)

let's imagine i get 75. But the question what is the max possible value for this two images. Is it 80 so my images are not similar or is it 800 so my images are quite similar.

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