Skip to content

Commit

Permalink
Merge pull request #4 from rueyaa332266/feature/add_to_bin
Browse files Browse the repository at this point in the history
add to local bin
  • Loading branch information
hikimochi authored Dec 17, 2019
2 parents 52c9bf1 + 642dad5 commit fc96283
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
4 changes: 3 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,6 @@ FROM rhikimochi/opencv-docker:v0.14

COPY . /run
WORKDIR /run
RUN g++ -std=c++11 ./src/main.cpp -L./ -limageDiffCalc -o imageDiff `pkg-config --libs opencv`
RUN g++ -std=c++11 ./src/main.cpp -L./ -limageDiffCalc -o gazosan `pkg-config --libs opencv`
RUN mv gazosan /usr/local/bin
RUN rm -r /run/*
13 changes: 11 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,18 @@ Detect difference between two images.
By separating each image into few parts, Gazo-san only detects difference on matched parts between two images. Optional shows decrease or increase part on two images.

## Quick Start
You use Gazo-san with docker.

Get image from docker hub
```
docker pull lifullsetg/gazo-san
```
./gazosan tests/images/test_image_new.png tests/images/test_image_old.png output

Execute Gazo-san by container
```
docker run --rm -it -v `pwd`:/run lifullsetg/gazo-san gazosan tests/images/test_image_new.png tests/images/test_image_old.png output
```

| Input | Input |
| :--: | :--: |
| test_image_old.png | test_image_new.png |
Expand All @@ -24,7 +33,7 @@ By separating each image into few parts, Gazo-san only detects difference on mat

### With option --create-change-image
```
./gazosan tests/images/test_image_new.png tests/images/test_image_old.png output --create-change-image
docker run --rm -it -v `pwd`:/run lifullsetg/gazo-san gazosan tests/images/test_image_new.png tests/images/test_image_old.png output --create-change-image
```

| Output | Output |
Expand Down

0 comments on commit fc96283

Please sign in to comment.