Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Fingerprint ¶
type Fingerprint []float32
Fingerprint represents an image fingerprint.
func FingerprintFromBytes ¶
func FingerprintFromBytes(data []byte) Fingerprint
FingerprintFromBytes returns a new Fingerprint instance by converting the given bytes to its content.
func FingerprintFromTruncatedLSB ¶
func FingerprintFromTruncatedLSB(data []byte) Fingerprint
FingerprintFromTruncatedLSB returns a new Fingerprint instance by converting the given least significant byte (LSB) truncated bytes to its content.
func (Fingerprint) LSBTruncatedBytes ¶
func (fg Fingerprint) LSBTruncatedBytes() []byte
LSBTruncatedBytes converts content to bytes and truncates least significant byte (LSB) from each float32 value in the array
type Fingerprints ¶
type Fingerprints []Fingerprint
Fingerprints is multiple Fingerprint
func (Fingerprints) Single ¶
func (fgs Fingerprints) Single() Fingerprint
Single combines into single Fingerprint type.
type Tensor ¶
type Tensor interface { // Fingerprints computes and returns fingerprints for the given image by models. Fingerprints(ctx context.Context, img image.Image) (Fingerprints, error) // LoadModels loads all models. LoadModels(ctx context.Context) error }
Tensor represents image analysis based on machine learning methods.
Click to show internal directories.
Click to hide internal directories.