Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
zhixiong-tang committed Nov 24, 2023
1 parent 4533e8c commit 111a740
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pybind11_pixelmatch/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
from . import Color, Options, pixelmatch, read_image, write_image

__aaColor = Color(255, 255, 0, 255)
__diffColor = Color(255, 255, 0, 255)
__diffColor = Color(255, 0, 0, 255)


def main(
Expand Down Expand Up @@ -67,7 +67,7 @@ def main(
i2 = read_image(img2)
assert i1.shape == i2.shape, f"image size mismatch: {i1.shape} != {i2.shape}"
diff = np.zeros(i1.shape, dtype=i1.dtype)
num = pixelmatch(i1, i2, diff, options)
num = pixelmatch(i1, i2, output=diff, options=options)
write_image(output, diff)
print(f"wrote to {output}") # noqa: T201
print(f"#differente_pixels: {num}") # noqa: T201
Expand Down

0 comments on commit 111a740

Please sign in to comment.