Skip to content

Add a Boolean version #143

Closed
Closed
@coreman14

Description

@coreman14

I was wondering if adding a boolean version of the pixelmatch method would be a good idea.

For my current project, due to the images being the same but in different formats/variations, pixel match has been really good at helping me sus out matching. But when all I'm looking for is a zero, the extra time it takes isn't needed.

So if a method was added that would do the exact same thing but, instead of adding one to a counter, just returned false right away.

from PIL import Image

from pixelmatch.contrib.PIL import dopixelsmatch

img_a = Image.open("a.png")
img_b = Image.open("b.png")

if dopixelsmatch(img_a, img_b):
    #Do something

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