vectorizer

package
v1.31.13 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2025 License: BSD-3-Clause Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClassSettings

type ClassSettings interface {
	ImageField(property string) bool
	Properties() ([]string, error)
}

type Client

type Client interface {
	Vectorize(ctx context.Context,
		id, image string) (*ent.VectorizationResult, error)
}

type ClsSettings added in v1.31.1

type ClsSettings struct {
	Cfg moduletools.ClassConfig
}

func NewClassSettings

func NewClassSettings(cfg moduletools.ClassConfig) *ClsSettings

func (*ClsSettings) ImageField added in v1.31.1

func (ic *ClsSettings) ImageField(property string) bool

func (*ClsSettings) Properties added in v1.31.1

func (ic *ClsSettings) Properties() ([]string, error)

func (*ClsSettings) Validate added in v1.31.1

func (ic *ClsSettings) Validate() error

type Vectorizer

type Vectorizer struct {
	// contains filtered or unexported fields
}

func New

func New(client Client) *Vectorizer

func (*Vectorizer) Object

func (*Vectorizer) VectorizeImage

func (v *Vectorizer) VectorizeImage(ctx context.Context, id, image string, cfg moduletools.ClassConfig) ([]float32, error)

Jump to

Keyboard shortcuts

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