An open API service indexing awesome lists of open source software.

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

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)
}
}
```