https://github.com/quramy/x-img-diff
Detect structural difference information of 2 images considering into translation
https://github.com/quramy/x-img-diff
cli image-processing opencv
Last synced: about 1 year ago
JSON representation
Detect structural difference information of 2 images considering into translation
- Host: GitHub
- URL: https://github.com/quramy/x-img-diff
- Owner: Quramy
- License: mit
- Created: 2017-11-13T05:50:00.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-12-25T09:28:55.000Z (over 8 years ago)
- Last Synced: 2025-04-15T22:40:02.119Z (about 1 year ago)
- Topics: cli, image-processing, opencv
- Language: C++
- Homepage:
- Size: 3.33 MB
- Stars: 51
- Watchers: 2
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# x-img-diff
Detect structural difference information of 2 images considering into translation.
```sh
ximgdiff example/img/after.png example/img/before.png out.png
```
| after.png | before.png |
| :--: | :--: |
|
|
|
| out.png |
| :--: |
|
|
Each rectangle stands for:
- Cyan: Matching region's bounding box.
- Red: Different parts in the Matching region.
- Purple: Key points region not included any matching regions.
## Usage
```text
ximgdiff [actual] [expected] [out] {OPTIONS}
Compare two images
OPTIONS:
-h, --help Display this help menu.
-v, --verbose Display debug logging messages.
actual Actual image path
expected Expected image path
out Output image path
"--" can be used to terminate flag options and force all following
arguments to be treated as positional options
```
## Install
### Requirements
- OpenCV
- cmake
### Build
```sh
mkdir build; cd build
cmake ..
make install
```
## License
MIT. See LICENSE file.