Add Joshua and Ezekiel card artifacts

This commit is contained in:
2026-09-26 10:50:35 -07:00
parent 5ca1965ee8
commit f05b7d36e5
482 changed files with 5874 additions and 0 deletions

View File

@@ -0,0 +1,14 @@
# Ezekiel finish-mask correction trial 01
Status: **accepted for BP-020 v01 final approval**. The earlier [provisional approval](provisional-approval.json) remains a historical record. The previous raw-ridges masks are preserved in [baseline](baseline/) and the selected contrast masks are installed in all 12 working finish-map exports. Card faces and text masks are unchanged. This is a card-specific alternative to the approved shared `raw-ridges-v1` extraction, not a change to that recipe or the runtime shader.
The original raw-ridges extractor missed or fragmented many distant architectural, boat, water, and sky seams while reacting to mottled pigment in robes and beards. The first edge-preserving smoothing test reduced some mottling but lost more background lead. A relaxed dark-ridge test recovered background detail but amplified texture. A Canny edge test recovered seams but traced too many mere color transitions. The selected **gated-contrast** trial combines nearby edges with local dark-line contrast and keeps only a low contribution from smoothed raw ridges.
- [Artwork / current / selected comparison at 500px](comparison-gated-500.png)
- [Selected Normal trial at 1000px](selected/normal-1000-finish-mask.png) · [2000px](selected/normal-2000-finish-mask.png)
- [All four printing masks and structural checks](selected-validation.json)
- [Builder parameters](gated-trial.json)
White receives finish; black protects panel lines, frame, backing, and text. The selected trial more clearly follows distant seams and reduces broad robe mottling, though fine secondary contours remain. Static inspection is promising, but moving-light review was not performed. The user approved the exact v01 assembly with this installed mask; Foil and Holographic behavior remains unverified. This selection is card-local, not a new shared default.
Rebuild from the repository root with `python3 in-progress/cards/BP-020-ezekiel/revisions/v01/review/finish-mask-trial-01/build-selected.py`. The script regenerates the comparison stages and uses exact floating-point pane weights from the unchanged fitted art for the selected four-printing export. It writes only inside this review folder. The revision's `build.py` then installs the selected maps via [install-selected.py](install-selected.py) and records exact replaced hashes in [installation.json](installation.json).

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.9 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 384 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.1 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 525 KiB

View File

@@ -0,0 +1,646 @@
{
"status": "passed",
"cardId": "BP-020",
"revision": "v01",
"artApproval": {
"by": "user",
"note": "Approved; Let's start assembly",
"scope": "Candidate 03 selected for assembly despite the independent review's title/hair and warning-hand caveats; final assembled-card approval remains separate.",
"candidate": "candidate-03",
"artSHA256": "9a6570c6057376d65fa8f00c833747b492a122d9bd6f53f40402f50526a1cf22",
"agentReview": "review/candidate-03-art-review.json"
},
"finalCardApproval": null,
"inputs": {
"art": {
"path": "in-progress/cards/BP-020-ezekiel/revisions/v01/source/art-master-candidate-03.png",
"sha256": "9a6570c6057376d65fa8f00c833747b492a122d9bd6f53f40402f50526a1cf22"
},
"fit": {
"cardId": "BP-020",
"revision": "v01",
"selectedCandidate": "candidate-03",
"approval": {
"by": "user",
"note": "Approved; Let's start assembly",
"scope": "Candidate 03 selected for assembly with the independent review's title/hair and warning-hand caveats retained; final assembled-card approval pending."
},
"assemblyAuthorization": "Let's start assembly",
"native": "source/art-native-candidate-03.png",
"nativeType": "independent image generation",
"nativeSHA256": "98f69a6c92e7d2d5b6a66333c6808a13ae363333051b9e0f6623bb7f5e41fe29",
"master": "source/art-master-candidate-03.png",
"masterSHA256": "9a6570c6057376d65fa8f00c833747b492a122d9bd6f53f40402f50526a1cf22",
"nativeDimensions": [
1060,
1484
],
"canvas": [
2000,
2800
],
"scale": 1.8867924528301887,
"crop": [
0,
0,
1060,
1484
],
"transform": "Uniform ImageMagick Lanczos resize; no crop or stretching. Master is an upscale, not additional native detail.",
"detailedProvenance": "source/art-provenance-candidate-03.json",
"prompt": "source/generation-prompt-candidate-03.txt",
"agentReview": "review/candidate-03-art-review.json",
"caveat": "User-directed assembly proceeds despite the title backing covering the upper crown and an ambiguous digit count on the warning hand. Finish masks do not repair illustration structure."
},
"cardSHA256": "e77853969d49f44433b70c9d7f51c9cec2bbc9d01e39a9ebf8503afa14cdcace",
"builderSHA256": "ad378f6d135eba54d53c0212163958ad06710938443b03926457d807eec23229"
},
"sharedLayers": {
"tier": "uncommon",
"version": "v3",
"manifestSHA256": "d7a84f1ace1b2052ae270a71b390a6a08768da6ad5816d15a2a35f2faf79a113",
"reviewStatus": "approved-spacing-static-printing-review-pending",
"assets": {
"frame-normal": {
"path": "artifacts/layers/uncommon/v3/exports/frame-normal-2000.png",
"sha256": "b7c5437332459d8eec78458e559314ed19f9d2a0d691bc99cf86c24f79284801"
},
"frame-textless": {
"path": "artifacts/layers/uncommon/v3/exports/frame-textless-2000.png",
"sha256": "b7c5437332459d8eec78458e559314ed19f9d2a0d691bc99cf86c24f79284801"
},
"backing-normal": {
"path": "artifacts/layers/uncommon/v3/exports/backing-normal-2000.png",
"sha256": "ff692033d7fa0bc3e513c4b4f5a02e8d96ea168ec51110ef6adad916713e4289"
},
"backing-borderless": {
"path": "artifacts/layers/uncommon/v3/exports/backing-borderless-2000.png",
"sha256": "9801ffa0eb7fb82b5c6e4fe6158ae8a45b584e9c38da5c221f558f1495e06728"
},
"overlay-normal": {
"path": "artifacts/layers/uncommon/v3/exports/overlay-normal-2000.png",
"sha256": "2b12a7e5c065a935743950ee09d3a7aed09832aa2acc6e181b800b1704e40262"
}
}
},
"sharedFontManifestSHA256": "2d0b41eed9f1668dc43d10d4397517efe2eec4803c82772b6c145733f13a9f63",
"typography": {
"fonts": [
{
"role": "title",
"path": "fonts/P052-Bold.otf",
"sha256": "ba6503baaf0f9e4e40a69cc4c0e57049fbde313fe183aba8fe823208337a94af",
"size": 112,
"weight": 700,
"fallbackUsed": false,
"missingGlyphs": []
},
{
"role": "verse",
"path": "fonts/SanctificationP052-Medium.otf",
"sha256": "1e0e1f7f4a5b2899374de51e40f15446a04a5c0163d6a1943155f964c1ace1fb",
"size": 76,
"weight": 500,
"fallbackUsed": false,
"missingGlyphs": []
},
{
"role": "reference",
"path": "fonts/SanctificationP052-Medium.otf",
"sha256": "1e0e1f7f4a5b2899374de51e40f15446a04a5c0163d6a1943155f964c1ace1fb",
"size": 57,
"weight": 500,
"fallbackUsed": false,
"missingGlyphs": []
}
],
"glyphs": [
{
"id": "title-0",
"role": "title",
"text": "EZEKIEL",
"baseline": 227.70549999999997,
"objectBounds": [
762.896,
151.322,
474.768,
76.832
],
"unclippedInkBounds": [
762,
151,
1238,
229
],
"region": [
140,
130,
1720,
140
],
"pass": true
},
{
"id": "verse-0",
"role": "verse",
"text": "\u201cSon of man, I have made you a watchman for the",
"baseline": 2342.5,
"objectBounds": [
167.04,
2286.87,
1667.36,
77.444
],
"unclippedInkBounds": [
167,
2286,
1835,
2365
],
"region": [
140,
2260,
1720,
300
],
"pass": true
},
{
"id": "verse-1",
"role": "verse",
"text": "house of Israel. Whenever you hear a word from",
"baseline": 2437.5,
"objectBounds": [
192.272,
2381.87,
1614.85,
77.444
],
"unclippedInkBounds": [
192,
2381,
1808,
2460
],
"region": [
140,
2260,
1720,
300
],
"pass": true
},
{
"id": "verse-2",
"role": "verse",
"text": "my mouth, you shall give them warning from me.\u201d",
"baseline": 2532.5,
"objectBounds": [
151.422,
2476.87,
1694.5,
77.444
],
"unclippedInkBounds": [
151,
2476,
1846,
2555
],
"region": [
140,
2260,
1720,
300
],
"pass": true
},
{
"id": "reference",
"role": "reference",
"text": "Ezekiel 3:17 \u2022 ESV",
"baseline": 2643,
"objectBounds": [
769.321,
2601.39,
461.7,
42.978
],
"unclippedInkBounds": [
769,
2601,
1232,
2645
],
"region": [
160,
2580,
1680,
100
],
"pass": true
}
],
"titleOpticalShift": 0,
"fontMetrics": {
"unitsPerEm": 1000,
"hheaAscender": 726,
"hheaDescender": -274,
"headYMin": -288,
"size": 57,
"ascent": 42,
"descent": 17,
"lineGapUsed": 0
},
"referenceBaseline": 2643,
"referenceLineBox": [
2601,
2660
],
"referenceLineBoxToFlourish": 20,
"actualReferenceClearance": 35,
"upperFlourishToVerse": 46,
"verseToReferenceLineBox": 46,
"centeringError": 0,
"titleToFlourish": 71,
"stressReferences": [
{
"text": "Matthew 4:19 \u2022 NKJV",
"baseline": 2643,
"inkBounds": [
724,
2601,
1276,
2655
],
"actualClearance": 25
},
{
"text": "Genesis 3:9 \u2022 ESV",
"baseline": 2643,
"inkBounds": [
776,
2602,
1224,
2645
],
"actualClearance": 35
},
{
"text": "Exodus 3:6 \u2022 KJV",
"baseline": 2643,
"inkBounds": [
782,
2601,
1218,
2655
],
"actualClearance": 25
},
{
"text": "Philippians 2:11 \u2022 NKJV",
"baseline": 2643,
"inkBounds": [
694,
2601,
1306,
2660
],
"actualClearance": 20
}
],
"scaledRasterChecks": [
{
"width": 2000,
"text": "Matthew 4:19 \u2022 NKJV",
"actualClearance": 27,
"minimumWithRounding": 19.0,
"alphaThreshold": 128
},
{
"width": 2000,
"text": "Genesis 3:9 \u2022 ESV",
"actualClearance": 37,
"minimumWithRounding": 19.0,
"alphaThreshold": 128
},
{
"width": 2000,
"text": "Exodus 3:6 \u2022 KJV",
"actualClearance": 27,
"minimumWithRounding": 19.0,
"alphaThreshold": 128
},
{
"width": 2000,
"text": "Philippians 2:11 \u2022 NKJV",
"actualClearance": 22,
"minimumWithRounding": 19.0,
"alphaThreshold": 128
},
{
"width": 1000,
"text": "Matthew 4:19 \u2022 NKJV",
"actualClearance": 14,
"minimumWithRounding": 9.0,
"alphaThreshold": 128
},
{
"width": 1000,
"text": "Genesis 3:9 \u2022 ESV",
"actualClearance": 19,
"minimumWithRounding": 9.0,
"alphaThreshold": 128
},
{
"width": 1000,
"text": "Exodus 3:6 \u2022 KJV",
"actualClearance": 14,
"minimumWithRounding": 9.0,
"alphaThreshold": 128
},
{
"width": 1000,
"text": "Philippians 2:11 \u2022 NKJV",
"actualClearance": 11,
"minimumWithRounding": 9.0,
"alphaThreshold": 128
},
{
"width": 500,
"text": "Matthew 4:19 \u2022 NKJV",
"actualClearance": 7,
"minimumWithRounding": 4.0,
"alphaThreshold": 128
},
{
"width": 500,
"text": "Genesis 3:9 \u2022 ESV",
"actualClearance": 10,
"minimumWithRounding": 4.0,
"alphaThreshold": 128
},
{
"width": 500,
"text": "Exodus 3:6 \u2022 KJV",
"actualClearance": 8,
"minimumWithRounding": 4.0,
"alphaThreshold": 128
},
{
"width": 500,
"text": "Philippians 2:11 \u2022 NKJV",
"actualClearance": 6,
"minimumWithRounding": 4.0,
"alphaThreshold": 128
}
],
"textLayerSHA256": "55602cda84e2731caa31f43f3c9f4394818a6936a8a1b0a55606ec61ccd1d6f4",
"cardLocalVerseLayout": {
"approval": {
"by": "user",
"note": "3 lines is fine; Approved"
},
"lineCount": 3,
"fontSize": 76,
"lineHeight": 95
}
},
"textMask": {
"expansionRadius": 12,
"gaussianRadius": 8,
"units": "master pixels",
"derivation": "Actual lettering alpha: MaxFilter(25), GaussianBlur(8)",
"minimumProtectionAtGlyphAlpha128": 221
},
"finishRecipe": {
"id": "raw-ridges-v1",
"sha256": "23331ce56a717edb4e6f85956d11fdd98397009c4e6dd230d8c334c77571dd18",
"path": "tools/card-production/recipes/raw-ridges-v1.json",
"moduleSHA256": "8d2b5399859570f43d9b222e6d37302372d68d2b589921b3c5b161b47cd18d5c",
"rawRidgeSHA256": "cc3d1cdede5e716a385d5195c57220e496e964dbdaf69da6c26818fa02a4514c",
"paneCoverageSHA256": "9a9627b59f48f772216f8e9eda7a2d9f94d015977237fc41356b3a22f1e3a042",
"illustrationAnalyses": 1
},
"tools": {
"inkscape": "Inkscape 1.2.2 (b0a8486541, 2022-12-01)",
"pillow": "10.2.0",
"numpy": "1.26.4"
},
"printings": {
"normal": {
"overlay": "overlay-normal",
"text": true,
"exports": [
{
"resolution": "low",
"dimensions": [
500,
700
],
"files": {
"card.png": "247023a776001449fdb3fa345c0a33b9d35e404c076038070d8b0dc6b3c0cf55",
"finish-mask.png": "53426954cf77d3f159094b2ea519dcc3fbe19ea3dad6c5328739de1c26658e1a",
"text-mask.png": "1a412411b3d3db1b5af8cd02563f7e51e6dd69fd42adf7d2bd4d4be04c251dfd"
}
},
{
"resolution": "med",
"dimensions": [
1000,
1400
],
"files": {
"card.png": "d78e5ffa40cf87ddc8e518b9fdc2d2108ef52e629f649d63660e86b06582615c",
"finish-mask.png": "4d128a7372d9bd7eb6641f45ad262193ccbd59687c1931efc416cd684fd07e81",
"text-mask.png": "5f1ec3bd99a533403a2910beb1f8ec5b3fefa34d00bd7c3b521c28225913e3f4"
}
},
{
"resolution": "high",
"dimensions": [
2000,
2800
],
"files": {
"card.png": "8cf47f1f734255e6dc25668dbcb6993159b824a1ee00ef9fa05bc329038486ca",
"finish-mask.png": "2c304a64e4d269a73063cbb3e044e22e8d2a4dd26fc59e6ec5b33096bb77da8f",
"text-mask.png": "65670b33ddce44da01e1209d9ddfbba01b3afbd15769deb4a3e8ea939ec05459"
}
}
]
},
"boundless": {
"overlay": null,
"text": false,
"exports": [
{
"resolution": "low",
"dimensions": [
500,
700
],
"files": {
"card.png": "ec0b47ca7f939ee0105e78b40addead98a373c03605efee8f0d879b4b33655fe",
"finish-mask.png": "df2f1c19f8ccd20a6e965f5d752623472dca86328325c2e99a5bfa3e1f413e16",
"text-mask.png": "85fbeb48f81f5fd89c81a79be7e1d4d16837edd786733f593e0a4451be5fa52b"
}
},
{
"resolution": "med",
"dimensions": [
1000,
1400
],
"files": {
"card.png": "2fe77c97a3b08498a102d1897199b6bf7965b868879012776ef89d05e267e453",
"finish-mask.png": "7db3eeaf991f70fb316a86b876a3e860e61ad7c6bfb9b396be0cb6dc6d18a8ff",
"text-mask.png": "f8732c63feae83b55d064bc73e39904d9158c4e194dfd6d30dbff7864adfd490"
}
},
{
"resolution": "high",
"dimensions": [
2000,
2800
],
"files": {
"card.png": "d57568b23b9154f844cc3c75f9026c7da1f06bc1cfd3bce8de24ef60779db9df",
"finish-mask.png": "5edbf9ab5b956019616ff7a3b92f3eaf6892fc2620835bbb04026fb1c0ac819f",
"text-mask.png": "27006d9c9a2ced6159cc5a6a76ef707e22797a800df9b9e19ec1f1783fc6d767"
}
}
]
},
"borderless": {
"overlay": "backing-borderless",
"text": true,
"exports": [
{
"resolution": "low",
"dimensions": [
500,
700
],
"files": {
"card.png": "54884ac0f1a7b14323c1c5b55845e27a93b8f5527f705ffe88ed4de1d7b3e0cf",
"finish-mask.png": "24524b7b8532b3a32b7d7296a321af70606781de399341778eae85a2dc391d2f",
"text-mask.png": "1a412411b3d3db1b5af8cd02563f7e51e6dd69fd42adf7d2bd4d4be04c251dfd"
}
},
{
"resolution": "med",
"dimensions": [
1000,
1400
],
"files": {
"card.png": "c9b4dad080af2c60f4ef81ca17525d7d3ca0c3c930e49da45c146185413bbf8e",
"finish-mask.png": "c452b928406232dd5b65e267b79e3c5db4412c0b8bccf14031a580b5d78ddb07",
"text-mask.png": "5f1ec3bd99a533403a2910beb1f8ec5b3fefa34d00bd7c3b521c28225913e3f4"
}
},
{
"resolution": "high",
"dimensions": [
2000,
2800
],
"files": {
"card.png": "3310872a64ad4208a85c32eadaa8545fcd1efae5754e3cf8c576d6d6e4a5820c",
"finish-mask.png": "3e06efe55aee3a9fcc18b628fa4b67de98ac79686c7b6aae445400b1633418e1",
"text-mask.png": "65670b33ddce44da01e1209d9ddfbba01b3afbd15769deb4a3e8ea939ec05459"
}
}
]
},
"textless": {
"overlay": "frame-textless",
"text": false,
"exports": [
{
"resolution": "low",
"dimensions": [
500,
700
],
"files": {
"card.png": "3198c26d79e901f50ce24861977d2e7d0ccef99155973eaeb3fdb79389e93086",
"finish-mask.png": "7dee974fdfb8e558aec9dbe71c619aa49064d2c455fcbd69ce1a0e21b4342be6",
"text-mask.png": "85fbeb48f81f5fd89c81a79be7e1d4d16837edd786733f593e0a4451be5fa52b"
}
},
{
"resolution": "med",
"dimensions": [
1000,
1400
],
"files": {
"card.png": "ddb23a55875dd92074632ab7a7dfdcc72cb58a8b8503c517922db12f08119c62",
"finish-mask.png": "cb1c6623e02dc1184d012de6114c1b61246cbb06e5790dd984b14db63c4f2ce7",
"text-mask.png": "f8732c63feae83b55d064bc73e39904d9158c4e194dfd6d30dbff7864adfd490"
}
},
{
"resolution": "high",
"dimensions": [
2000,
2800
],
"files": {
"card.png": "9063ab5b67311022c830cd88350a684faec3241a0f80dd228d145a0d75f28d40",
"finish-mask.png": "b2be26eb1a64fed623f4526d2036b169e75b52ebab206caf5a10fec7824fb608",
"text-mask.png": "27006d9c9a2ced6159cc5a6a76ef707e22797a800df9b9e19ec1f1783fc6d767"
}
}
]
}
},
"visualReview": {
"static": "pending",
"movingLight": "not performed"
},
"textContrast": {
"normal": 8.1,
"borderless": 8.1
},
"backingContrast": [
{
"printing": "normal",
"width": 2000,
"primaryRuleToCream": 4.66,
"minimum": 3
},
{
"printing": "normal",
"width": 1000,
"primaryRuleToCream": 6.13,
"minimum": 3
},
{
"printing": "normal",
"width": 500,
"primaryRuleToCream": 3.41,
"minimum": 3
},
{
"printing": "borderless",
"width": 2000,
"primaryRuleToCream": 4.66,
"minimum": 3
},
{
"printing": "borderless",
"width": 1000,
"primaryRuleToCream": 6.13,
"minimum": 3
},
{
"printing": "borderless",
"width": 500,
"primaryRuleToCream": 3.41,
"minimum": 3
}
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 920 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 312 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.5 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 459 KiB

View File

@@ -0,0 +1,73 @@
#!/usr/bin/env python3
"""Comparison-only edge-guided Ezekiel finish-mask trial."""
from pathlib import Path
import hashlib
import json
import subprocess
import numpy as np
from PIL import Image, ImageDraw, ImageFilter, ImageFont
HERE = Path(__file__).resolve().parent
REVISION = HERE.parents[1]
REPO = next(p for p in HERE.parents if (p / "docs/card-layer-pipeline.md").is_file())
FILTERED = HERE / "filtered-art.png"
SMOOTHED_RIDGES = HERE / "smoothed-ridges-2000.png"
PANES = REVISION / "source/pane-coverage.png"
TEXT = REVISION / "source/text/text-2000.png"
OVERLAY = REPO / "artifacts/layers/uncommon/v3/exports/overlay-normal-2000.png"
BASELINE = REVISION / "high/normal/finish-mask.png"
ART = REVISION / "source/art-master-candidate-03.png"
def digest(path):
return hashlib.sha256(path.read_bytes()).hexdigest()
def main():
for path in (FILTERED, SMOOTHED_RIDGES, PANES, TEXT, OVERLAY, BASELINE, ART):
if not path.is_file():
raise FileNotFoundError(path)
edge_path = HERE / "canny-edges-2000.png"
subprocess.run(["convert", str(FILTERED), "-colorspace", "Gray", "-canny", "0x1+5%+15%", str(edge_path)], check=True)
edge = Image.open(edge_path).convert("L").filter(ImageFilter.MaxFilter(5))
edge_arr = np.asarray(edge, dtype=np.float32) / 255.
smoothed = np.asarray(Image.open(SMOOTHED_RIDGES).convert("L"), dtype=np.float32) / 255.
confidence = np.maximum(0.9 * edge_arr, 0.35 * smoothed)
confidence = np.clip(confidence, 0., 1.)
Image.fromarray(np.rint(confidence * 255).astype(np.uint8)).save(HERE / "edge-guided-ridges-2000.png")
pane = np.asarray(Image.open(PANES).convert("L"), dtype=np.float32) / 255.
overlay = np.asarray(Image.open(OVERLAY).convert("RGBA").getchannel("A"), dtype=np.float32) / 255.
text = np.asarray(Image.open(TEXT).convert("RGBA").getchannel("A"), dtype=np.float32) / 255.
active = 1 - (1 - overlay) * (1 - text)
out = np.rint(pane * (1 - confidence) * (1 - active) * 255).astype(np.uint8)
master = Image.fromarray(out)
for width in (2000, 1000, 500):
image = master if width == 2000 else master.resize((width, width * 7 // 5), Image.Resampling.BILINEAR)
rgba = image.convert("RGBA")
rgba.putalpha(255)
rgba.save(HERE / f"edge-guided-normal-finish-{width}.png")
baseline = Image.open(BASELINE).convert("L").resize((500, 700), Image.Resampling.BILINEAR)
candidate = master.resize((500, 700), Image.Resampling.BILINEAR)
art = Image.open(ART).convert("RGB").resize((500, 700), Image.Resampling.LANCZOS)
sheet = Image.new("RGB", (1520, 750), "#11161c")
draw = ImageDraw.Draw(sheet)
font = ImageFont.truetype(str(REPO / "fonts/P052-Bold.otf"), 23)
for index, (label, view) in enumerate((("Artwork", art), ("Current mask", baseline), ("Edge-guided trial", candidate))):
x = 10 + index * 505
draw.text((x + 6, 8), label, fill="#f4ead4", font=font)
sheet.paste(view.convert("RGB"), (x, 40))
sheet.save(HERE / "comparison-edge-guided-500.png")
report = {
"status": "experimental; not production-selected",
"method": "Kuwahara-smoothed art, ImageMagick Canny 0x1+5%+15%, 5px max dilation; combine 90% edge confidence with 35% smoothed raw ridge confidence; original pane diagnostic and Normal overlay/text alpha retained",
"sourceSHA256": {str(path.relative_to(REPO)): digest(path) for path in (ART, PANES, TEXT, OVERLAY, FILTERED, SMOOTHED_RIDGES)},
"baselineSHA256": digest(BASELINE),
"outputs": {name: digest(HERE / name) for name in ("edge-guided-ridges-2000.png", "edge-guided-normal-finish-2000.png", "comparison-edge-guided-500.png")},
"warning": "This changes the approved raw-ridges-v1 extraction and is only a separate visual trial. No production or runtime files have been replaced.",
}
(HERE / "edge-guided-trial.json").write_text(json.dumps(report, indent=2) + "\n")
if __name__ == "__main__":
main()

View File

@@ -0,0 +1,68 @@
#!/usr/bin/env python3
"""Compare darkness-gated edge masks without touching production exports."""
from pathlib import Path
import json
import numpy as np
from PIL import Image, ImageDraw, ImageFilter, ImageFont
HERE = Path(__file__).resolve().parent
REVISION = HERE.parents[1]
REPO = next(p for p in HERE.parents if (p / "docs/card-layer-pipeline.md").is_file())
def smooth(lo, hi, value):
t = np.clip((value - lo) / (hi - lo), 0, 1)
return t * t * (3 - 2 * t)
def output(label, confidence, pane, active):
Image.fromarray(np.rint(confidence * 255).astype(np.uint8)).save(HERE / f"{label}-ridges-2000.png")
result = Image.fromarray(np.rint(pane * (1 - confidence) * (1 - active) * 255).astype(np.uint8))
for width in (2000, 1000, 500):
item = result if width == 2000 else result.resize((width, width * 7 // 5), Image.Resampling.BILINEAR)
rgba = item.convert("RGBA")
rgba.putalpha(255)
rgba.save(HERE / f"{label}-normal-finish-{width}.png")
return result.resize((500, 700), Image.Resampling.BILINEAR)
def main():
filtered = Image.open(HERE / "filtered-art.png").convert("L")
gray = np.asarray(filtered, dtype=np.float32) / 255.
edge = Image.open(HERE / "canny-edges-2000.png").convert("L").filter(ImageFilter.MaxFilter(7))
edge = np.asarray(edge, dtype=np.float32) / 255.
smoothed = np.asarray(Image.open(HERE / "smoothed-ridges-2000.png").convert("L"), dtype=np.float32) / 255.
pane = np.asarray(Image.open(REVISION / "source/pane-coverage.png").convert("L"), dtype=np.float32) / 255.
overlay = np.asarray(Image.open(REPO / "artifacts/layers/uncommon/v3/exports/overlay-normal-2000.png").getchannel("A"), dtype=np.float32) / 255.
text = np.asarray(Image.open(REVISION / "source/text/text-2000.png").getchannel("A"), dtype=np.float32) / 255.
active = 1 - (1 - overlay) * (1 - text)
darkness = 1 - smooth(.32, .67, gray)
local_max = np.asarray(filtered.filter(ImageFilter.MaxFilter(11)), dtype=np.float32) / 255.
contrast = smooth(.02, .12, local_max - gray)
variants = {
"gated-dark": np.maximum(.25 * smoothed, .95 * edge * darkness),
"gated-contrast": np.maximum(.25 * smoothed, .95 * edge * darkness * contrast),
}
baseline = Image.open(REVISION / "high/normal/finish-mask.png").convert("L").resize((500, 700), Image.Resampling.BILINEAR)
art = Image.open(REVISION / "source/art-master-candidate-03.png").convert("RGB").resize((500, 700), Image.Resampling.LANCZOS)
views = [("Artwork", art), ("Current mask", baseline)]
for label, confidence in variants.items():
views.append((label.replace("-", " ").title(), output(label, np.clip(confidence, 0, 1), pane, active)))
sheet = Image.new("RGB", (2030, 750), "#11161c")
draw = ImageDraw.Draw(sheet)
font = ImageFont.truetype(str(REPO / "fonts/P052-Bold.otf"), 23)
for index, (label, view) in enumerate(views):
x = 10 + index * 505
draw.text((x + 6, 8), label, fill="#f4ead4", font=font)
sheet.paste(view.convert("RGB"), (x, 40))
sheet.save(HERE / "comparison-gated-500.png")
(HERE / "gated-trial.json").write_text(json.dumps({
"status": "experimental; not production-selected",
"method": "Canny near-edge mask with dark-luminance gating, optionally local dark-line contrast gating, plus 25% Kuwahara-smoothed raw ridge confidence; original pane diagnostic and Normal overlay/text alpha retained",
"parameters": {"canny": "0x1+5%+15%", "edgeDilation": 7, "darknessSmoothstep": [.32, .67], "localMaxSize": 11, "contrastSmoothstep": [.02, .12]},
"warning": "These masks are comparison-only and have not been validated under moving light or installed in any printing."
}, indent=2) + "\n")
if __name__ == "__main__":
main()

View File

@@ -0,0 +1,84 @@
#!/usr/bin/env python3
"""Comparison-only relaxed dark-ridge detector for Ezekiel's glass seams."""
from pathlib import Path
import hashlib
import json
import math
import sys
import numpy as np
from PIL import Image, ImageDraw, ImageFilter, ImageFont
HERE = Path(__file__).resolve().parent
REVISION = HERE.parents[1]
REPO = next(p for p in HERE.parents if (p / "docs/card-layer-pipeline.md").is_file())
sys.path.insert(0, str(REPO / "tools/card-production"))
from finish_masks import _shift, _smooth
FILTERED = HERE / "filtered-art.png"
PANES = REVISION / "source/pane-coverage.png"
TEXT = REVISION / "source/text/text-2000.png"
OVERLAY = REPO / "artifacts/layers/uncommon/v3/exports/overlay-normal-2000.png"
BASELINE = REVISION / "high/normal/finish-mask.png"
ART = REVISION / "source/art-master-candidate-03.png"
def digest(path):
return hashlib.sha256(path.read_bytes()).hexdigest()
def detect(art):
gray = np.asarray(art.convert("RGB").filter(ImageFilter.GaussianBlur(1.2)).convert("L"), dtype=np.float32) / 255.
darkness = 1 - _smooth(0.24, 0.54, gray)
out = np.zeros_like(gray)
for index in range(8):
angle = math.pi * index / 8
for radius in (2, 4, 8, 14):
dx, dy = round(math.cos(angle) * radius), round(math.sin(angle) * radius)
shoulders = np.minimum(_shift(gray, dx, dy), _shift(gray, -dx, -dy))
ridge = _smooth(0.012, 0.055, shoulders - gray) * darkness
np.maximum(out, ridge, out=out)
return np.rint(out * 255).astype(np.uint8)
def main():
for path in (FILTERED, PANES, TEXT, OVERLAY, BASELINE, ART):
if not path.is_file():
raise FileNotFoundError(path)
ridges = detect(Image.open(FILTERED))
Image.fromarray(ridges).save(HERE / "relaxed-ridges-2000.png")
pane = np.asarray(Image.open(PANES).convert("L"), dtype=np.float32) / 255.
overlay = np.asarray(Image.open(OVERLAY).convert("RGBA").getchannel("A"), dtype=np.float32) / 255.
text = np.asarray(Image.open(TEXT).convert("RGBA").getchannel("A"), dtype=np.float32) / 255.
active = 1 - (1 - overlay) * (1 - text)
out = np.rint(pane * (1 - ridges.astype(np.float32) / 255.) * (1 - active) * 255).astype(np.uint8)
master = Image.fromarray(out)
for width in (2000, 1000, 500):
image = master if width == 2000 else master.resize((width, width * 7 // 5), Image.Resampling.BILINEAR)
rgba = image.convert("RGBA")
rgba.putalpha(255)
rgba.save(HERE / f"relaxed-normal-finish-{width}.png")
baseline = Image.open(BASELINE).convert("L").resize((500, 700), Image.Resampling.BILINEAR)
candidate = master.resize((500, 700), Image.Resampling.BILINEAR)
art = Image.open(ART).convert("RGB").resize((500, 700), Image.Resampling.LANCZOS)
sheet = Image.new("RGB", (1520, 750), "#11161c")
draw = ImageDraw.Draw(sheet)
font = ImageFont.truetype(str(REPO / "fonts/P052-Bold.otf"), 23)
for index, (label, view) in enumerate((("Artwork", art), ("Current mask", baseline), ("Relaxed dark-ridge trial", candidate))):
x = 10 + index * 505
draw.text((x + 6, 8), label, fill="#f4ead4", font=font)
sheet.paste(view.convert("RGB"), (x, 40))
sheet.save(HERE / "comparison-relaxed-500.png")
report = {
"status": "experimental; not production-selected",
"method": "Kuwahara 5x5 art, then 1.2px blurred luminance; eight-orientation opposed shoulders at 2/4/8/14px; contrast smoothstep .012-.055; darkness smoothstep .24-.54; original pane diagnostic and active Normal overlay/text alpha retained",
"sourceSHA256": {str(path.relative_to(REPO)): digest(path) for path in (ART, PANES, TEXT, OVERLAY, FILTERED)},
"baselineSHA256": digest(BASELINE),
"outputs": {name: digest(HERE / name) for name in ("relaxed-ridges-2000.png", "relaxed-normal-finish-2000.png", "comparison-relaxed-500.png")},
"warning": "This changes approved extraction parameters and is only a separate visual trial. No production or runtime files have been replaced.",
}
(HERE / "relaxed-trial.json").write_text(json.dumps(report, indent=2) + "\n")
if __name__ == "__main__":
main()

View File

@@ -0,0 +1,95 @@
#!/usr/bin/env python3
"""Package and structurally validate the selected review-only Ezekiel mask trial."""
from pathlib import Path
import hashlib
import json
import subprocess
import sys
import numpy as np
from PIL import Image
HERE = Path(__file__).resolve().parent
REVISION = HERE.parents[1]
REPO = next(p for p in HERE.parents if (p / "docs/card-layer-pipeline.md").is_file())
sys.path.insert(0, str(REPO / "tools/card-production"))
from finish_masks import prepare_illustration
ART = REVISION / "source/art-master-candidate-03.png"
TEXT = REVISION / "source/text/text-2000.png"
LAYERS = REPO / "artifacts/layers/uncommon/v3/exports"
RIDGES = HERE / "gated-contrast-ridges-2000.png"
EXPORTS = HERE / "selected"
def digest(path):
return hashlib.sha256(path.read_bytes()).hexdigest()
def alpha(path):
image = Image.open(path).convert("RGBA")
assert image.size == (2000, 2800)
return np.asarray(image.getchannel("A"), dtype=np.float32) / 255.
def main():
for script in ("build.py", "build-canny.py", "build-gated.py"):
subprocess.run([sys.executable, str(HERE / script)], check=True)
art = Image.open(ART).convert("RGBA")
illustration = prepare_illustration(art)
ridges = np.asarray(Image.open(RIDGES).convert("L"), dtype=np.float32) / 255.
assert ridges.shape == illustration.pane_weights.shape == (2800, 2000)
text = alpha(TEXT)
layers = {
"normal": LAYERS / "overlay-normal-2000.png",
"borderless": LAYERS / "backing-borderless-2000.png",
"textless": LAYERS / "frame-textless-2000.png",
"boundless": None,
}
EXPORTS.mkdir(exist_ok=True)
reports = {}
for printing, overlay_path in layers.items():
oa = 0. if overlay_path is None else alpha(overlay_path)
ta = text if printing in ("normal", "borderless") else 0.
active = 1 - (1 - oa) * (1 - ta)
coverage = np.rint(illustration.pane_weights * (1 - ridges) * (1 - active) * 255).astype(np.uint8)
assert coverage.shape == (2800, 2000)
if overlay_path is not None:
assert np.all(coverage[oa == 1] == 0), printing
if isinstance(ta, np.ndarray):
assert np.all(coverage[ta == 1] == 0), printing
scalar = Image.fromarray(coverage)
files = {}
for width in (2000, 1000, 500):
image = scalar if width == 2000 else scalar.resize((width, width * 7 // 5), Image.Resampling.BILINEAR)
rgba = image.convert("RGBA")
rgba.putalpha(255)
path = EXPORTS / f"{printing}-{width}-finish-mask.png"
rgba.save(path)
check = Image.open(path).convert("RGBA")
channels = np.asarray(check)
assert check.size == (width, width * 7 // 5)
assert np.all(channels[..., 0] == channels[..., 1]) and np.all(channels[..., 1] == channels[..., 2])
assert np.all(channels[..., 3] == 255)
files[str(width)] = {"path": str(path.relative_to(REVISION)), "sha256": digest(path)}
reports[printing] = {"overlay": str(overlay_path.relative_to(REPO)) if overlay_path else None,
"usesText": isinstance(ta, np.ndarray), "files": files,
"meanMasterCoverage": round(float(coverage.mean()) / 255., 5)}
report = {
"status": "structural checks passed; experimental mask trial only; not selected for production",
"candidate": "gated-contrast",
"art": {"path": str(ART.relative_to(REPO)), "sha256": digest(ART)},
"ridgeMap": {"path": str(RIDGES.relative_to(REVISION)), "sha256": digest(RIDGES)},
"text": {"path": str(TEXT.relative_to(REPO)), "sha256": digest(TEXT)},
"paneWeightSource": "Exact floating-point weights recomputed by approved prepare_illustration from unchanged art",
"printings": reports,
"checks": ["2000/1000/500 dimensions", "opaque grayscale RGBA", "opaque overlay protection", "opaque lettering protection", "unchanged source art and card faces"],
"staticReview": "pending user review of comparison sheets and mask detail",
"movingLightReview": "not performed",
"productionReplacement": False,
}
(HERE / "selected-validation.json").write_text(json.dumps(report, indent=2) + "\n")
if __name__ == "__main__":
main()

View File

@@ -0,0 +1,79 @@
#!/usr/bin/env python3
"""Comparison-only Ezekiel finish-mask trial; never writes production exports."""
from pathlib import Path
import hashlib
import json
import subprocess
import sys
import numpy as np
from PIL import Image, ImageDraw, ImageFont
HERE = Path(__file__).resolve().parent
REVISION = HERE.parents[1]
REPO = next(p for p in HERE.parents if (p / "docs/card-layer-pipeline.md").is_file())
sys.path.insert(0, str(REPO / "tools/card-production"))
from finish_masks import extract_raw_ridges, RECIPE_SHA256
ART = REVISION / "source/art-master-candidate-03.png"
PANES = REVISION / "source/pane-coverage.png"
TEXT = REVISION / "source/text/text-2000.png"
OVERLAY = REPO / "artifacts/layers/uncommon/v3/exports/overlay-normal-2000.png"
BASELINE = REVISION / "high/normal/finish-mask.png"
def digest(path):
return hashlib.sha256(path.read_bytes()).hexdigest()
def save_data_map(gray, path):
rgba = gray.convert("RGBA")
rgba.putalpha(255)
rgba.save(path)
def main():
for path in (ART, PANES, TEXT, OVERLAY, BASELINE):
if not path.is_file():
raise FileNotFoundError(path)
filtered_path = HERE / "filtered-art.png"
subprocess.run(["convert", str(ART), "-kuwahara", "5x5", str(filtered_path)], check=True)
filtered = Image.open(filtered_path).convert("RGB")
assert filtered.size == (2000, 2800)
ridges = extract_raw_ridges(filtered)
Image.fromarray(ridges).save(HERE / "smoothed-ridges-2000.png")
pane = np.asarray(Image.open(PANES).convert("L"), dtype=np.float32) / 255.
overlay = np.asarray(Image.open(OVERLAY).convert("RGBA").getchannel("A"), dtype=np.float32) / 255.
text = np.asarray(Image.open(TEXT).convert("RGBA").getchannel("A"), dtype=np.float32) / 255.
active = 1 - (1 - overlay) * (1 - text)
out = np.rint(pane * (1 - ridges.astype(np.float32) / 255.) * (1 - active) * 255).astype(np.uint8)
master = Image.fromarray(out)
for width in (2000, 1000, 500):
image = master if width == 2000 else master.resize((width, width * 7 // 5), Image.Resampling.BILINEAR)
save_data_map(image, HERE / f"smoothed-normal-finish-{width}.png")
ridge_small = Image.fromarray(ridges).resize((500, 700), Image.Resampling.BILINEAR)
ridge_small.save(HERE / "smoothed-ridges-500.png")
baseline = Image.open(BASELINE).convert("L").resize((500, 700), Image.Resampling.BILINEAR)
candidate = master.resize((500, 700), Image.Resampling.BILINEAR)
art = Image.open(ART).convert("RGB").resize((500, 700), Image.Resampling.LANCZOS)
sheet = Image.new("RGB", (1520, 750), "#11161c")
draw = ImageDraw.Draw(sheet)
font = ImageFont.truetype(str(REPO / "fonts/P052-Bold.otf"), 23)
for index, (label, view) in enumerate((("Artwork", art), ("Current mask", baseline), ("Smoothed trial", candidate))):
x = 10 + index * 505
draw.text((x + 6, 8), label, fill="#f4ead4", font=font)
sheet.paste(view.convert("RGB"), (x, 40))
sheet.save(HERE / "comparison-500.png")
report = {
"status": "experimental; not production-selected",
"method": "ImageMagick Kuwahara 5x5 edge-preserving smoothing of fitted art, then unchanged raw-ridges-v1 ridge extractor; original pane weights and active Normal overlay/text alpha retained",
"source": {"artSHA256": digest(ART), "paneSHA256": digest(PANES), "textSHA256": digest(TEXT), "overlaySHA256": digest(OVERLAY)},
"baselineSHA256": digest(BASELINE), "approvedRecipeSHA256": RECIPE_SHA256,
"outputs": {name: digest(HERE / name) for name in ("smoothed-ridges-2000.png", "smoothed-normal-finish-2000.png", "comparison-500.png")},
"warning": "This is not the approved raw-ridges-v1 production path and has not had moving-light review. Pane weights are loaded from the prior 8-bit diagnostic for a fast comparison.",
}
(HERE / "trial.json").write_text(json.dumps(report, indent=2) + "\n")
if __name__ == "__main__":
main()

Binary file not shown.

After

Width:  |  Height:  |  Size: 171 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 915 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 381 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 932 KiB

View File

@@ -0,0 +1,19 @@
{
"status": "experimental; not production-selected",
"method": "Kuwahara-smoothed art, ImageMagick Canny 0x1+5%+15%, 5px max dilation; combine 90% edge confidence with 35% smoothed raw ridge confidence; original pane diagnostic and Normal overlay/text alpha retained",
"sourceSHA256": {
"in-progress/cards/BP-020-ezekiel/revisions/v01/source/art-master-candidate-03.png": "9a6570c6057376d65fa8f00c833747b492a122d9bd6f53f40402f50526a1cf22",
"in-progress/cards/BP-020-ezekiel/revisions/v01/source/pane-coverage.png": "9a9627b59f48f772216f8e9eda7a2d9f94d015977237fc41356b3a22f1e3a042",
"in-progress/cards/BP-020-ezekiel/revisions/v01/source/text/text-2000.png": "55602cda84e2731caa31f43f3c9f4394818a6936a8a1b0a55606ec61ccd1d6f4",
"artifacts/layers/uncommon/v3/exports/overlay-normal-2000.png": "2b12a7e5c065a935743950ee09d3a7aed09832aa2acc6e181b800b1704e40262",
"in-progress/cards/BP-020-ezekiel/revisions/v01/review/finish-mask-trial-01/filtered-art.png": "c9b3a020bd0f7b7ea236de143ea8af3a5a96ec178e9cd7ccb45fee02e0e62843",
"in-progress/cards/BP-020-ezekiel/revisions/v01/review/finish-mask-trial-01/smoothed-ridges-2000.png": "bc905f80a60915976e5cde02523b5ea1ad74b03c329aa5f395804266979a49dc"
},
"baselineSHA256": "2c304a64e4d269a73063cbb3e044e22e8d2a4dd26fc59e6ec5b33096bb77da8f",
"outputs": {
"edge-guided-ridges-2000.png": "5030709dba43a4259732dffdd7028e2dfed3137e022f37d80628639899b8094b",
"edge-guided-normal-finish-2000.png": "2bbdb11ceac8de4148706a1fe8e4f332cabf3314e0d68c0c67f369bae5db42bd",
"comparison-edge-guided-500.png": "fa0ffe6bd2e49e534c563a404c6964dc1b098158241fb32901aeb3e16e0fcd12"
},
"warning": "This changes the approved raw-ridges-v1 extraction and is only a separate visual trial. No production or runtime files have been replaced."
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.3 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.0 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 346 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 952 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 352 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 MiB

View File

@@ -0,0 +1,18 @@
{
"status": "experimental; not production-selected",
"method": "Canny near-edge mask with dark-luminance gating, optionally local dark-line contrast gating, plus 25% Kuwahara-smoothed raw ridge confidence; original pane diagnostic and Normal overlay/text alpha retained",
"parameters": {
"canny": "0x1+5%+15%",
"edgeDilation": 7,
"darknessSmoothstep": [
0.32,
0.67
],
"localMaxSize": 11,
"contrastSmoothstep": [
0.02,
0.12
]
},
"warning": "These masks are comparison-only and have not been validated under moving light or installed in any printing."
}

View File

@@ -0,0 +1,110 @@
#!/usr/bin/env python3
"""Select the reviewed contrast trial for Ezekiel's working assembly only."""
from pathlib import Path
import hashlib
import json
import shutil
import subprocess
import sys
HERE = Path(__file__).resolve().parent
REVISION = HERE.parents[1]
REPO = next(p for p in HERE.parents if (p / "docs/card-layer-pipeline.md").is_file())
VALIDATION = REVISION / "review/build-validation.json"
CARD = REVISION / "card.json"
BASELINE = HERE / "baseline"
PRINTINGS = ("normal", "borderless", "textless", "boundless")
WIDTHS = {"low": 500, "med": 1000, "high": 2000}
def digest(path):
return hashlib.sha256(path.read_bytes()).hexdigest()
def save(path, data):
path.write_text(json.dumps(data, indent=2, ensure_ascii=False) + "\n")
def main():
card = json.loads(CARD.read_text())
assert card["cardId"] == "BP-020" and card["selectedArtCandidate"] == "candidate-03"
assert card["artSHA256"] == digest(REPO / card["art"])
subprocess.run([sys.executable, str(HERE / "build-selected.py")], check=True)
trial = json.loads((HERE / "selected-validation.json").read_text())
assert trial["candidate"] == "gated-contrast" and trial["art"]["sha256"] == card["artSHA256"]
report = json.loads(VALIDATION.read_text())
assert report["status"] == "passed" and report["finishRecipe"]["id"] == "raw-ridges-v1"
assert report["inputs"]["art"]["sha256"] == card["artSHA256"]
BASELINE.mkdir(exist_ok=True)
backup_report = BASELINE / "build-validation-raw-ridges.json"
if backup_report.exists():
old = json.loads(backup_report.read_text())
assert old["finishRecipe"]["id"] == "raw-ridges-v1"
assert old["inputs"]["art"]["sha256"] == card["artSHA256"]
else:
shutil.copyfile(VALIDATION, backup_report)
changes = {}
for printing in PRINTINGS:
changes[printing] = {}
for export in report["printings"][printing]["exports"]:
label = export["resolution"]
width = WIDTHS[label]
target = REVISION / label / printing / "finish-mask.png"
source = HERE / "selected" / f"{printing}-{width}-finish-mask.png"
assert digest(target) == export["files"]["finish-mask.png"]
assert digest(source) == trial["printings"][printing]["files"][str(width)]["sha256"]
backup = BASELINE / f"{printing}-{width}-raw-ridges-finish-mask.png"
if backup.exists():
assert digest(backup) == digest(target)
else:
shutil.copyfile(target, backup)
old_sha = digest(target)
shutil.copyfile(source, target)
new_sha = digest(target)
assert new_sha == digest(source)
export["files"]["finish-mask.png"] = new_sha
changes[printing][str(width)] = {"baselineSHA256": old_sha, "selectedSHA256": new_sha}
for unchanged in ("card.png", "text-mask.png"):
unchanged_path = REVISION / label / printing / unchanged
assert digest(unchanged_path) == export["files"][unchanged]
old_recipe = report["finishRecipe"]
report["finishRecipe"] = {
"id": "ezekiel-gated-contrast-trial-v1",
"status": "user-selected for working assembly; final card and moving-light approval pending",
"userDirection": "Let's try the contrast one",
"trialRecipe": "review/finish-mask-trial-01/gated-trial.json",
"trialRecipeSHA256": digest(HERE / "gated-trial.json"),
"ridgeMap": "review/finish-mask-trial-01/gated-contrast-ridges-2000.png",
"ridgeMapSHA256": digest(HERE / "gated-contrast-ridges-2000.png"),
"trialBuilderSHA256": digest(HERE / "build-gated.py"),
"compilerSHA256": digest(HERE / "build-selected.py"),
"basePaneRecipe": old_recipe,
"baselineBuildValidation": "review/finish-mask-trial-01/baseline/build-validation-raw-ridges.json",
}
card["finishMaskSelection"] = {
"id": "ezekiel-gated-contrast-trial-v1",
"by": "user",
"note": "Let's try the contrast one",
"status": "working assembly trial; final visual approval pending",
"recipe": "review/finish-mask-trial-01/gated-trial.json",
}
save(CARD, card)
report["inputs"]["cardSHA256"] = digest(CARD)
report["visualReview"] = {"static": "contrast mask selected for assembly review", "movingLight": "not performed"}
report["finishMaskSelection"] = {"status": "trial selected", "changes": changes}
save(VALIDATION, report)
save(HERE / "installation.json", {
"status": "selected for BP-020 v01 working assembly, not final card approval",
"userDirection": "Let's try the contrast one",
"artSHA256": card["artSHA256"],
"baselineValidationSHA256": digest(backup_report),
"selectedTrialValidationSHA256": digest(HERE / "selected-validation.json"),
"changes": changes,
"cardFacesAndTextMasks": "unchanged and hash-verified",
"movingLightReview": "not performed",
})
print("BP-020 v01: gated-contrast finish maps selected for 12 working-assembly exports; card faces/text masks unchanged.")
if __name__ == "__main__":
main()

View File

@@ -0,0 +1,67 @@
{
"status": "selected for BP-020 v01 working assembly, not final card approval",
"userDirection": "Let's try the contrast one",
"artSHA256": "9a6570c6057376d65fa8f00c833747b492a122d9bd6f53f40402f50526a1cf22",
"baselineValidationSHA256": "bf92206bba6cb35a740fe35f7179eaa8e18b170d972891d6920471711137f0c9",
"selectedTrialValidationSHA256": "cdf199667bb7376e1f509c78ac937d326011e6f68d2f10c690896d040498c7e7",
"changes": {
"normal": {
"500": {
"baselineSHA256": "53426954cf77d3f159094b2ea519dcc3fbe19ea3dad6c5328739de1c26658e1a",
"selectedSHA256": "7564b955d69789b80d369f9d7c9febccdbf33198efbc17d46cdabc675edf8ef3"
},
"1000": {
"baselineSHA256": "4d128a7372d9bd7eb6641f45ad262193ccbd59687c1931efc416cd684fd07e81",
"selectedSHA256": "2358aba5bbf6f0d99184edba80b86dfbd3baa23fa522a3ab2811eb283dd89a7f"
},
"2000": {
"baselineSHA256": "2c304a64e4d269a73063cbb3e044e22e8d2a4dd26fc59e6ec5b33096bb77da8f",
"selectedSHA256": "43b76a9608471abf2a78b9e0317284f3d3dd0649ff37a2637bf45b3fe58ec495"
}
},
"borderless": {
"500": {
"baselineSHA256": "24524b7b8532b3a32b7d7296a321af70606781de399341778eae85a2dc391d2f",
"selectedSHA256": "0959a4afbf52855044063c1fcb658ebe4c6486c099a5b70b6792ea44a80d928c"
},
"1000": {
"baselineSHA256": "c452b928406232dd5b65e267b79e3c5db4412c0b8bccf14031a580b5d78ddb07",
"selectedSHA256": "9f74bff26d65b86f886c5a0c19032944d53bddeb32cda37304dfd7a14fb2ecd2"
},
"2000": {
"baselineSHA256": "3e06efe55aee3a9fcc18b628fa4b67de98ac79686c7b6aae445400b1633418e1",
"selectedSHA256": "3af8157e0063a36c5442fbf954918bf641ca43998f867066acb46e4cbfe1f1af"
}
},
"textless": {
"500": {
"baselineSHA256": "7dee974fdfb8e558aec9dbe71c619aa49064d2c455fcbd69ce1a0e21b4342be6",
"selectedSHA256": "38670eda711f9d005092d5fcaf727141a498eee8f35287e9fcc9cc6838f943a0"
},
"1000": {
"baselineSHA256": "cb1c6623e02dc1184d012de6114c1b61246cbb06e5790dd984b14db63c4f2ce7",
"selectedSHA256": "509af845cc615a49d19926652848d8ce9b0677ee50600310c797fb3dcd4147a9"
},
"2000": {
"baselineSHA256": "b2be26eb1a64fed623f4526d2036b169e75b52ebab206caf5a10fec7824fb608",
"selectedSHA256": "8f0a51f7588bc406546c83c396ab518ee690ecd62673ce4b2d360f9848f0be2a"
}
},
"boundless": {
"500": {
"baselineSHA256": "df2f1c19f8ccd20a6e965f5d752623472dca86328325c2e99a5bfa3e1f413e16",
"selectedSHA256": "d1babb938e468a4a114fc693ef48084f0dc1e5f2754c5af391801a02ad056709"
},
"1000": {
"baselineSHA256": "7db3eeaf991f70fb316a86b876a3e860e61ad7c6bfb9b396be0cb6dc6d18a8ff",
"selectedSHA256": "39c5b961f56a517c9ece2ea1a038a334d53f3a26d764402089d1dcbda24fd129"
},
"2000": {
"baselineSHA256": "5edbf9ab5b956019616ff7a3b92f3eaf6892fc2620835bbb04026fb1c0ac819f",
"selectedSHA256": "c1addb4a9fe3d7c28dc22a075344a97661c5d6af10607595f7d9b7c85f931416"
}
}
},
"cardFacesAndTextMasks": "unchanged and hash-verified",
"movingLightReview": "not performed"
}

View File

@@ -0,0 +1,18 @@
{
"cardId": "BP-020",
"revision": "v01",
"decision": "provisional acceptance of the current contrast finish-mask trial",
"approval": {
"by": "user",
"note": "Let's approve for now",
"scope": "Keep the gated-contrast masks in Ezekiel's working assembly; this does not grant final card approval or authorize promotion."
},
"selectedFinishMaskRecipe": "ezekiel-gated-contrast-trial-v1",
"normal2000FinishMaskSHA256": "43b76a9608471abf2a78b9e0317284f3d3dd0649ff37a2637bf45b3fe58ec495",
"installationRecordSHA256": "2990d51a63ece1ea1798a0eeaa176f1140c93de9f3d19cb3254be2abe6922042",
"remainingReview": [
"Moving-light Foil and Holographic review was not performed.",
"Candidate 03 art-review caveats about title/hair overlap and warning-hand anatomy remain."
],
"finalCardApproval": null
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 1022 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 367 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 MiB

View File

@@ -0,0 +1,18 @@
{
"status": "experimental; not production-selected",
"method": "Kuwahara 5x5 art, then 1.2px blurred luminance; eight-orientation opposed shoulders at 2/4/8/14px; contrast smoothstep .012-.055; darkness smoothstep .24-.54; original pane diagnostic and active Normal overlay/text alpha retained",
"sourceSHA256": {
"in-progress/cards/BP-020-ezekiel/revisions/v01/source/art-master-candidate-03.png": "9a6570c6057376d65fa8f00c833747b492a122d9bd6f53f40402f50526a1cf22",
"in-progress/cards/BP-020-ezekiel/revisions/v01/source/pane-coverage.png": "9a9627b59f48f772216f8e9eda7a2d9f94d015977237fc41356b3a22f1e3a042",
"in-progress/cards/BP-020-ezekiel/revisions/v01/source/text/text-2000.png": "55602cda84e2731caa31f43f3c9f4394818a6936a8a1b0a55606ec61ccd1d6f4",
"artifacts/layers/uncommon/v3/exports/overlay-normal-2000.png": "2b12a7e5c065a935743950ee09d3a7aed09832aa2acc6e181b800b1704e40262",
"in-progress/cards/BP-020-ezekiel/revisions/v01/review/finish-mask-trial-01/filtered-art.png": "bc4a62040446b573244c42d10cc066a8ed6d9639164f4b2b63d6c1562a00ac5c"
},
"baselineSHA256": "2c304a64e4d269a73063cbb3e044e22e8d2a4dd26fc59e6ec5b33096bb77da8f",
"outputs": {
"relaxed-ridges-2000.png": "b8c29b58d685df3d831912c462007b4b37d8f201ba6e8a0fb24c8440b6b978cf",
"relaxed-normal-finish-2000.png": "803d7c8e23a8a0dc1b6f8d9034ceb0d5b86f55eeaad04441af7425a94b47148e",
"comparison-relaxed-500.png": "332d50024706a8437dca1009fd500a83292a51045a6212760c02fee21a5263b8"
},
"warning": "This changes approved extraction parameters and is only a separate visual trial. No production or runtime files have been replaced."
}

View File

@@ -0,0 +1,105 @@
{
"status": "structural checks passed; experimental mask trial only; not selected for production",
"candidate": "gated-contrast",
"art": {
"path": "in-progress/cards/BP-020-ezekiel/revisions/v01/source/art-master-candidate-03.png",
"sha256": "9a6570c6057376d65fa8f00c833747b492a122d9bd6f53f40402f50526a1cf22"
},
"ridgeMap": {
"path": "review/finish-mask-trial-01/gated-contrast-ridges-2000.png",
"sha256": "f29b6ffd6619ddcd1c41cb4ce7c33fdafd60aa408d8873b84842826f68dc4e4d"
},
"text": {
"path": "in-progress/cards/BP-020-ezekiel/revisions/v01/source/text/text-2000.png",
"sha256": "55602cda84e2731caa31f43f3c9f4394818a6936a8a1b0a55606ec61ccd1d6f4"
},
"paneWeightSource": "Exact floating-point weights recomputed by approved prepare_illustration from unchanged art",
"printings": {
"normal": {
"overlay": "artifacts/layers/uncommon/v3/exports/overlay-normal-2000.png",
"usesText": true,
"files": {
"2000": {
"path": "review/finish-mask-trial-01/selected/normal-2000-finish-mask.png",
"sha256": "43b76a9608471abf2a78b9e0317284f3d3dd0649ff37a2637bf45b3fe58ec495"
},
"1000": {
"path": "review/finish-mask-trial-01/selected/normal-1000-finish-mask.png",
"sha256": "2358aba5bbf6f0d99184edba80b86dfbd3baa23fa522a3ab2811eb283dd89a7f"
},
"500": {
"path": "review/finish-mask-trial-01/selected/normal-500-finish-mask.png",
"sha256": "7564b955d69789b80d369f9d7c9febccdbf33198efbc17d46cdabc675edf8ef3"
}
},
"meanMasterCoverage": 0.4028
},
"borderless": {
"overlay": "artifacts/layers/uncommon/v3/exports/backing-borderless-2000.png",
"usesText": true,
"files": {
"2000": {
"path": "review/finish-mask-trial-01/selected/borderless-2000-finish-mask.png",
"sha256": "3af8157e0063a36c5442fbf954918bf641ca43998f867066acb46e4cbfe1f1af"
},
"1000": {
"path": "review/finish-mask-trial-01/selected/borderless-1000-finish-mask.png",
"sha256": "9f74bff26d65b86f886c5a0c19032944d53bddeb32cda37304dfd7a14fb2ecd2"
},
"500": {
"path": "review/finish-mask-trial-01/selected/borderless-500-finish-mask.png",
"sha256": "0959a4afbf52855044063c1fcb658ebe4c6486c099a5b70b6792ea44a80d928c"
}
},
"meanMasterCoverage": 0.49064
},
"textless": {
"overlay": "artifacts/layers/uncommon/v3/exports/frame-textless-2000.png",
"usesText": false,
"files": {
"2000": {
"path": "review/finish-mask-trial-01/selected/textless-2000-finish-mask.png",
"sha256": "8f0a51f7588bc406546c83c396ab518ee690ecd62673ce4b2d360f9848f0be2a"
},
"1000": {
"path": "review/finish-mask-trial-01/selected/textless-1000-finish-mask.png",
"sha256": "509af845cc615a49d19926652848d8ce9b0677ee50600310c797fb3dcd4147a9"
},
"500": {
"path": "review/finish-mask-trial-01/selected/textless-500-finish-mask.png",
"sha256": "38670eda711f9d005092d5fcaf727141a498eee8f35287e9fcc9cc6838f943a0"
}
},
"meanMasterCoverage": 0.59719
},
"boundless": {
"overlay": null,
"usesText": false,
"files": {
"2000": {
"path": "review/finish-mask-trial-01/selected/boundless-2000-finish-mask.png",
"sha256": "c1addb4a9fe3d7c28dc22a075344a97661c5d6af10607595f7d9b7c85f931416"
},
"1000": {
"path": "review/finish-mask-trial-01/selected/boundless-1000-finish-mask.png",
"sha256": "39c5b961f56a517c9ece2ea1a038a334d53f3a26d764402089d1dcbda24fd129"
},
"500": {
"path": "review/finish-mask-trial-01/selected/boundless-500-finish-mask.png",
"sha256": "d1babb938e468a4a114fc693ef48084f0dc1e5f2754c5af391801a02ad056709"
}
},
"meanMasterCoverage": 0.68738
}
},
"checks": [
"2000/1000/500 dimensions",
"opaque grayscale RGBA",
"opaque overlay protection",
"opaque lettering protection",
"unchanged source art and card faces"
],
"staticReview": "pending user review of comparison sheets and mask detail",
"movingLightReview": "not performed",
"productionReplacement": false
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.4 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 410 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.2 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 530 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.0 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 345 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.8 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 473 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 707 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 256 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 168 KiB

View File

@@ -0,0 +1,18 @@
{
"status": "experimental; not production-selected",
"method": "ImageMagick Kuwahara 5x5 edge-preserving smoothing of fitted art, then unchanged raw-ridges-v1 ridge extractor; original pane weights and active Normal overlay/text alpha retained",
"source": {
"artSHA256": "9a6570c6057376d65fa8f00c833747b492a122d9bd6f53f40402f50526a1cf22",
"paneSHA256": "9a9627b59f48f772216f8e9eda7a2d9f94d015977237fc41356b3a22f1e3a042",
"textSHA256": "55602cda84e2731caa31f43f3c9f4394818a6936a8a1b0a55606ec61ccd1d6f4",
"overlaySHA256": "2b12a7e5c065a935743950ee09d3a7aed09832aa2acc6e181b800b1704e40262"
},
"baselineSHA256": "2c304a64e4d269a73063cbb3e044e22e8d2a4dd26fc59e6ec5b33096bb77da8f",
"approvedRecipeSHA256": "23331ce56a717edb4e6f85956d11fdd98397009c4e6dd230d8c334c77571dd18",
"outputs": {
"smoothed-ridges-2000.png": "bc905f80a60915976e5cde02523b5ea1ad74b03c329aa5f395804266979a49dc",
"smoothed-normal-finish-2000.png": "9ffa4a058b6a5cab88a7ccf19e96c460e4dd26afedab07d6a2bb7b51e70d9e85",
"comparison-500.png": "2c7dc1001cdb84001c912c3b650defd1e24dd35d0b06817888f05dca2eb3a668"
},
"warning": "This is not the approved raw-ridges-v1 production path and has not had moving-light review. Pane weights are loaded from the prior 8-bit diagnostic for a fast comparison."
}