Initial commit

This commit is contained in:
2019-12-27 13:29:41 -05:00
commit 222fecc338
5 changed files with 246 additions and 0 deletions

14
examples/phash.go Normal file
View File

@@ -0,0 +1,14 @@
package main
import (
"fastimagehash"
"fmt"
)
func main() {
hash, ret := fastimagehash.PHashFile("/path/to/image.jpg", 8, 4)
if ret == fastimagehash.Ok {
fmt.Printf("%s (%d)\n", hash.ToHexStringReversed(), ret)
}
}