Skip to contents

Retrieves performance metrics computed during artwork processing. These stats power the analytics displays on artwork detail pages - brush stroke counts, drawing hours, color usage, and technique indicators.

Stats are computed once during upload and cached. Use these values for comparisons, benchmarking, and progress tracking.

Usage

get_artwork_stats(artist, artwork, cn = NULL)

Arguments

artist

Character. Artist UUID (format: "746bxxxx-xxxx-xxxx-xxxxxxxxxxxx"). Validated with artcore::validate_uuid() where applicable.

artwork

Character. Artwork UUID (format: "99xxxxxx-xxxx-xxxx-xxxxxxxxxxxx"). Validated with artcore::validate_uuid() where applicable.

cn

Database connection. If NULL, creates a connection via artcore::dbc() and closes it on exit. Pass an existing connection to batch multiple queries efficiently.

Value

List with metrics: brush_strokes, drawing_hours, ave_bpm, n_unique_colors, share_of_spectrum, and additional computed stats