"""Private, results-only review page and independent landmark annotation UI."""
import json
from pathlib import Path
ROOT=Path(__file__).resolve().parents[1];OUT=ROOT/'private_benchmarks/research'
rows=json.loads((OUT/'mesh.json').read_text());selected=[r for r in rows if r['method']=='loftr_patch_mesh']
cards=[]
for row in selected:
n=row['sample'];base=f'{n}-loftr_patch_mesh'
cards.append(f''' Automatic correspondence consistency: median {row['mesh_median']:.2f}px, 95th percentile {row['mesh_p95']:.2f}px ({row['test_count']} held-out automatic matches). These are not independently verified anatomical accuracy scores.Sample {n} · research candidate
Five improved research candidates; sample 1 remains unresolved. No pair is independently accuracy-validated or accepted as a finished composite. Images are from the same six development pairs, not a separate validation set. Uncertain regions and reflection removal still need work.
Mark independent corresponding landmarks · Original baseline report
The candidate still disagrees with the image evidence. It is not included as a successful result.
'''+''.join(cards)+'') (OUT/'landmarks.html').write_text(r'''These are the two original crops, with no predicted alignment shown. Select a distinctive crypt corner or fiber junction in the reference (left), then the same point in the second original (right). Avoid glare, occluded regions, and vague edges. Spread at least 10–20 points around the iris. Coordinate uncertainty in your marking affects the reported error. Export each sample separately; selections are not sent to a server.