By Oliver Rivo
15+ years in the industry
"Stock" ≠ "Capital Stock"
(and videos, audio, illustrations, WordPress templates...)
Photographers need to know overall revenue.
package main
import "github.com/rivo/duplo"
func main() {
store := duplo.New()
hash, _ := duplo.CreateHash(img)
store.Add("myimage", hash)
hash, _ = duplo.CreateHash(query)
matches := store.Query(hash)
// matches[0] is the best match.
}
Works very well for photographs.
May fail for illustrations with minor differences.
Users can make corrections manually.
Oliver Rivo
http://www.rentafounder.com
https://www.stockperformer.com
https://github.com/rivo