Detect difference between two images.
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.
You can use Gazo-san with docker.
Get image from docker hub
docker pull lifullsetg/gazo-san
Clone this repository
git clone https://github.com/lifull-dev/Gazo-san.git
Go into the repository
cd Gazo-san
Execute Gazo-san by container
docker run --rm -it -v `pwd`:/app 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 |
Output |
---|
output_diff.png |
docker run --rm -it -v `pwd`:/app lifullsetg/gazo-san gazosan tests/images/test_image_new.png tests/images/test_image_old.png output --create-change-image
Output | Output |
---|---|
output_delete.png | output_add.png |
Output |
---|
output_diff.png |
Output file:
Each color stands for:
mkdir build
cd build
cmake ..
make
cd ..
cd bin
./gazosan
Execute image difference calculate.
Usage: ./gazosan PATH_TO_NEW_FILE PATH_TO_OLD_FILE OUTPUT_NAME [options]
options
-v, --verbose Enable verbose output message
--create-change-image Create increase and decrease part image
-h, --help Print help
You will get a png file which named "OutputName_diff.png", showing the difference between new and old image.
sh .circleci/build_googletest.sh
mkdir build
cd build
cmake .. -DGTEST=ON -DTEST_LEVEL=unit
make
cd ..
./gazosan_unit_test
mkdir build
cd build
cmake .. -DGTEST=ON -DTEST_LEVEL=integration
make
cd ..
./gazosan_integration_test
mkdir build
cd build
cmake .. -DGTEST=ON -DTEST_LEVEL=system
make
cd ..
./gazosan_system_test
(In alphabetical order)