All Projects → lifull-dev → Gazo-san

lifull-dev / Gazo-san

Licence: Apache-2.0 License
Detect difference between two images.

Programming Languages

C++
36643 projects - #6 most used programming language
CMake
9771 projects

Projects that are alternatives of or similar to Gazo-san

percy-agent
[Deprecated in favor of `@percy/cli`] An agent process for integrating with Percy.
Stars: ✭ 21 (-47.5%)
Mutual labels:  visual-testing, visual-regression-testing
percy-webdriverio
Visual testing with WebdriverIO and Percy
Stars: ✭ 25 (-37.5%)
Mutual labels:  visual-testing, visual-regression-testing
snapshot-action
[Deprecated] A GitHub action to visually test static sites with Percy
Stars: ✭ 14 (-65%)
Mutual labels:  visual-testing
regression-testing
Regression testing in Elm!
Stars: ✭ 22 (-45%)
Mutual labels:  regression-tests
visual-regression-testing-jest-chromeless
Visual regression testing using Jest, Chromeless and AWS Lambda.
Stars: ✭ 17 (-57.5%)
Mutual labels:  visual-regression-testing
percy-node
Utilities for visual regression testing in node based testing setups (like Protractor) for use with percy.io
Stars: ✭ 17 (-57.5%)
Mutual labels:  visual-regression-testing
jest-puppe-shots
A Jest plugin for creating screenshots of React components with a little help of Puppeteer
Stars: ✭ 86 (+115%)
Mutual labels:  visual-testing
jest-transform-css
👩‍🏭 Jest transformer to import CSS into Jest's jsdom
Stars: ✭ 26 (-35%)
Mutual labels:  visual-regression-testing
percy-puppeteer
Visual testing with Puppeteer and Percy
Stars: ✭ 47 (+17.5%)
Mutual labels:  visual-testing
next.js-boilerplate
next.js bolierplate, next.js 的开发模板
Stars: ✭ 28 (-30%)
Mutual labels:  visual-testing
nightwatch-vrt
Visual Regression Testing tools for nightwatch.js
Stars: ✭ 59 (+47.5%)
Mutual labels:  visual-regression-testing
vuetify-with-storybook
Setting up Storybook with Vuetify the right way
Stars: ✭ 116 (+190%)
Mutual labels:  visual-testing
Awesome Regression Testing
🕶️ A curated list of resources around the topic: visual regression testing
Stars: ✭ 1,604 (+3910%)
Mutual labels:  regression-tests
example-percy-cypress
Example app demonstrating Percy's Cypress integration.
Stars: ✭ 48 (+20%)
Mutual labels:  visual-testing
vrt-react
Take a screenshot 📸 of React component. Push it and compare images in pull request.
Stars: ✭ 19 (-52.5%)
Mutual labels:  visual-regression-testing

Gazo-san

logo

Version CircleCI

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 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

With option --create-change-image

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:

  • output_diff.png: Show the difference on matched parts, it's created base on old image.
  • output_delete.png: Show the decrease parts to new image, it's created base on old image.
  • output_add.png: Show the increase parts to old image, it's created base on new image.

Each color stands for:

  • Green rectangle:
    • The parts decrease to new image.
    • The parts increase to old image.
  • Red rectangle: Matched parts in both image.
  • Color in red : Difference in matched part.

Built With

How to build Gazo-san

  1. Build Gazo-san by CMake
mkdir build
cd build
cmake ..
make
cd ..
  1. Binary file is in bin directory
cd bin
./gazosan

Execute Gazo-san

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.

Tests

Download Google Test and Build

sh .circleci/build_googletest.sh

Run test

Unit test

  1. Build unit tests by CMake
mkdir build
cd build
cmake .. -DGTEST=ON -DTEST_LEVEL=unit
make
cd ..
  1. Execute unit tests
./gazosan_unit_test

Integration test

  1. Build integration tests by CMake
mkdir build
cd build
cmake .. -DGTEST=ON -DTEST_LEVEL=integration
make
cd ..
  1. Execute integration tests
./gazosan_integration_test

System test

  1. Build system tests by CMake
mkdir build
cd build
cmake .. -DGTEST=ON -DTEST_LEVEL=system
make
cd ..
  1. Execute system tests
./gazosan_system_test

License

Apache 2.0 license

Contributors

(In alphabetical order)

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].