search

package
v0.0.0-...-a8cc1c2 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2022 License: Unlicense Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetURLStrings

func GetURLStrings(imgs []SearchImage) []string

func IndexImages

func IndexImages(root string) error

Types

type Database

type Database struct {
	Images []Image
}

func LoadDatabase

func LoadDatabase(reader io.Reader) *Database

func (*Database) Search

func (db *Database) Search(img image.Image) []SearchImage

type Image

type Image struct {
	URL  string
	Hash uint64
}

type SearchImage

type SearchImage struct {
	URL        string
	Difference float64
}

Jump to

Keyboard shortcuts

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