Allow you to calculate the difference between two images. Primarily for documents for now.
You give it first image, like that:
And second one:
And you get diff percent (6.25%) and visual diff:
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!")
}