public record SnapshotLabelResult
Comparison result of one label of a snapshot.
Constructors
| Signature | Description |
# SnapshotLabelResult() | |
Properties
| Property | Type | Description |
AllowedPixels { get; init; } | long | Changed pixels the tolerance allows for this label. |
ApprovedPath { get; init; } | string | Approved image path. |
Area { get; init; } | long | Label area in pixels. |
ChangedPercent { get; } | double | Changed pixels in percent of the label area. |
ChangedPixels { get; init; } | long | Changed pixels after the shift tolerance. |
DiffPath { get; init; } | string | Diff overlay path (written on failure): grey unchanged, red removed, green added, blue boxes around changed regions. |
Index { get; init; } | int | 0-based label index. |
Passed { get; init; } | bool | Within tolerance. |
ReceivedPath { get; init; } | string | Received image path (written on failure). |
Regions { get; init; } | IReadOnlyList<ZplDiffRegion> | Changed regions (largest first). |
SizeChange { get; init; } | string | Approved and received label sizes differ ("812 × 1218 → 812 × 1200"), else null. |