phash

package module
v0.0.0-...-28c638b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 22, 2020 License: MIT Imports: 4 Imported by: 0

README

phash

A simple Go Library to calculate a phash string for a JPEG image.

Documentation

Overview

Package phash computes a phash string for a JPEG image and retrieves the hamming distance between two phash strings.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDistance

func GetDistance(hash1, hash2 string) int

GetDistance returns the hamming distance between two phashes

func GetHash

func GetHash(reader io.Reader) (string, error)

GetHash returns a phash string for a JPEG image

func GetHashByIMG

func GetHashByIMG(image image.Image) string

GetHashByIMG returns a phash string for a JPEG image

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL