olegfedoseev / image-diff

Allow you to calculate the difference between two images. Primarily for documents for now.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

image-diff

Go Report Card

Allow you to calculate the difference between two images. Primarily for documents for now.

You give it first image, like that:

test-only-text

And second one:

test-text-number

And you get diff percent (6.25%) and visual diff:

diff

How to get and use

go get -u github.com/olegfedoseev/image-diff

And in you code:

import "github.com/olegfedoseev/image-diff"

diff, percent, err := diff.CompareFiles("test-only-text.png", "test-text-number.png")
if percent > 0.0 {
    fmt.Printf("images is different!")
}

About

Allow you to calculate the difference between two images. Primarily for documents for now.

License:MIT License


Languages

Language:Go 100.0%