mirror of
https://github.com/simon987/fastimagehash-go.git
synced 2025-12-12 05:58:49 +00:00
update example
This commit is contained in:
@@ -1,12 +1,12 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"fastimagehash"
|
||||
"fmt"
|
||||
"github.com/simon987/fastimagehash-go"
|
||||
)
|
||||
|
||||
func main() {
|
||||
hash, ret := fastimagehash.PHashFile("/path/to/image.jpg", 8, 4)
|
||||
hash, ret := fastimagehash.PHashFile("/path/to/image.jpg", 8, 4)
|
||||
|
||||
if ret == fastimagehash.Ok {
|
||||
fmt.Printf("%s (%d)\n", hash.ToHexStringReversed(), ret)
|
||||
|
||||
Reference in New Issue
Block a user