sheet

package
v0.10.12 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2026 License: MIT Imports: 17 Imported by: 0

Documentation

Overview

Package sheet draws a v2 candidate contact sheet: one row per candidate, mouth crops over time. A row whose lips never part is a dead candidate.

Frames come from ffmpeg (it must be on PATH). Candidate clips are centred portraits, so the mouth is cropped from a fixed lower-middle region rather than found by face detection.

Index

Constants

View Source
const Frames = 12

Frames per row, spread evenly over the clip (up to ~30 s for a v2 preview).

Variables

View Source
var ErrNoFFmpeg = errors.New("`atmee avatars candidates sheet` needs ffmpeg on PATH (brew install ffmpeg)")

ErrNoFFmpeg means ffmpeg is not installed.

Functions

func Build

func Build(ctx context.Context, rows []Row) ([]byte, error)

Build downloads every row's clip and returns the sheet as PNG.

Types

type Row

type Row struct {
	Label string
	URL   string
}

Row is one candidate.

Jump to

Keyboard shortcuts

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