-
-
Notifications
You must be signed in to change notification settings - Fork 74
Open
Description
After I get an image hashed:
hash1, err := goimagehash.AverageHash(img1)
if err != nil {
log.Fatal(err)
}
fmt.Println("hash of image is:", hash1)
fmt.Println("hash1.ToString():", hash1.ToString())
I get
hash of image is: &{9222170938831798272 1}
hash1.ToString(): a:7ffbbb9b93000000
My problem is how to save hash1
in database, so that later on I can retrive it and compare its distance with newly computed hash2
using:
distance, _ := hash1.Distance(hash2)
Metadata
Metadata
Assignees
Labels
No labels