Computers are much faster than humans at detecting and quantifying subtle differences between images.
- I want to quickly and accurately compare 2 images.
- If the images are different, I want to the difference to be quantified and visualized.
The ODiff
CLI tool from @dmtrKovalenko is awesome, fast, and easy to use!
ODiff will compare the 2 images pixel-by-pixel and highlight pixels that are have a different color in red. There are configuration options too. See the repo for details.
❗️ Note that images must be the same size.
This should work cross-platform but I only checked on MacOS Monterey, Intel Chip.
# Installation
npm install odiff-bin
# Use
odiff <IMG1 path> <IMG2 path> <DIFF output path>
IMG1 |
IMG2 |
DIFF |
---|---|---|
The GitHub repo for the tool.