analysis

package
v0.0.0-...-207ddee Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2026 License: MIT Imports: 14 Imported by: 0

Documentation

Overview

Package analysis provides image analysis functionality including color extraction, resolution detection, and Gemini API integration.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ImageInfo

type ImageInfo struct {
	Width        int
	Height       int
	PixelDensity float64
	FileFormat   string
	Colors       []string // Top 3 colors as hex strings
	Words        []string // Words from OCR and description
}

ImageInfo contains analyzed information about an image.

func AnalyzeImage

func AnalyzeImage(ctx context.Context, filePath string, fileData []byte) (*ImageInfo, error)

AnalyzeImage performs full analysis on an image file.

Jump to

Keyboard shortcuts

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