tom64b_hasher

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2020 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Overview

Package tom64b_hasher is a perceptual image hashing Implementation based on the php Implementation at https://github.com/Tom64b/dHash

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Implementation

type Implementation struct {
}

Implementation is the specific Implementation of the hashing service

func Create

func Create() Implementation

Create creates a new instance of the hashing service

func (Implementation) Distance

Distance calculates the hamming distance between two hashes

func (Implementation) GetHandle

func (imp Implementation) GetHandle() string

func (Implementation) HashFromPath

func (imp Implementation) HashFromPath(path string) (imhash_interfaces.PerceptualHash, error)

HashFromPath creates a hash from an image file at the given path

func (Implementation) HashFromString

func (imp Implementation) HashFromString(hashAsString string) (imhash_interfaces.PerceptualHash, error)

HashFromString recreates a hash from a hash string use it to recreate a hash from a stored value

Jump to

Keyboard shortcuts

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