https://github.com/simon987/fastimagehash-go
go bindings for libfastimagehash
https://github.com/simon987/fastimagehash-go
fftw opencv perceptual-hashing wavelet-decomposition
Last synced: about 1 month ago
JSON representation
go bindings for libfastimagehash
- Host: GitHub
- URL: https://github.com/simon987/fastimagehash-go
- Owner: simon987
- Created: 2019-12-27T18:29:27.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2020-04-26T18:55:33.000Z (about 6 years ago)
- Last Synced: 2025-04-04T09:45:00.460Z (about 1 year ago)
- Topics: fftw, opencv, perceptual-hashing, wavelet-decomposition
- Language: Go
- Homepage:
- Size: 23.4 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## fastimagehash-go
[fastimagehash](https://github.com/simon987/fastimagehash) *cgo* bindings.
The latest `libfastimagehash` version must be installed as system library
for `fastimagehash-go` to compile.
### Example usage
```go
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)
}
}
```