2020-04-10 21:21:09 -04:00
2019-12-28 10:27:26 -05:00
2019-12-27 13:32:56 -05:00
2020-04-10 21:21:09 -04:00
2020-04-10 21:16:11 -04:00
2019-12-27 15:43:41 -05:00

fastimagehash-go

fastimagehash cgo bindings.

The latest libfastimagehash version must be installed as system library for fastimagehash-go to compile.

Example usage

package main

import (
	"fmt"
	"github.com/simon987/fastimagehash-go" )

func main() {
	hash, ret := fastimagehash.PHashFile("/path/to/image.jpg", 8,  4)
	
	if ret == fastimagehash.Ok {
		fmt.Printf("%s (%d)\n", hash.ToHexStringReversed(), ret)
	}
}
Description
Languages
Go 100%