zplCore.comzplCore.com

SnapshotLabelResult

public record SnapshotLabelResult

Comparison result of one label of a snapshot.

Constructors

SignatureDescription
# SnapshotLabelResult()

Properties

PropertyTypeDescription
AllowedPixels { get; init; }longChanged pixels the tolerance allows for this label.
ApprovedPath { get; init; }stringApproved image path.
Area { get; init; }longLabel area in pixels.
ChangedPercent { get; }doubleChanged pixels in percent of the label area.
ChangedPixels { get; init; }longChanged pixels after the shift tolerance.
DiffPath { get; init; }stringDiff overlay path (written on failure): grey unchanged, red removed, green added, blue boxes around changed regions.
Index { get; init; }int0-based label index.
Passed { get; init; }boolWithin tolerance.
ReceivedPath { get; init; }stringReceived image path (written on failure).
Regions { get; init; }IReadOnlyList<ZplDiffRegion>Changed regions (largest first).
SizeChange { get; init; }stringApproved and received label sizes differ ("812 × 1218 → 812 × 1200"), else null.