pdftract/crates
jedarden 6ffeccc26e feat(pdftract-67p2c): implement confidence heatmap layer renderer
Add render_confidence_heatmap() function that creates per-glyph
translucent colored cells representing extraction confidence.

Color coding:
- Red (#ef4444): confidence < 0.5 (low)
- Yellow (#eab308): 0.5 <= confidence < 0.8 (medium)
- Green (#22c55e): confidence >= 0.8 (high)
- Gray (#94a3b8): no confidence value (direct extraction)

Each cell includes data-* attributes (data-char, data-confidence,
data-span-index) for tooltip consumption by the frontend inspector
(Phase 7.9.6).

Implementation approximates per-glyph positions using span bbox
and character count, since the JSON schema only has span-level
confidence.

All unit tests pass. CSS class "heatmap-cell" enables frontend
toggling (Phase 7.9.3).

Closes: pdftract-67p2c
2026-05-24 11:08:09 -04:00
..
pdftract-cer-diff docs(pdftract-aawrz): add LICENSE-MIT and LICENSE-APACHE files 2026-05-23 10:36:28 -04:00
pdftract-cli feat(pdftract-67p2c): implement confidence heatmap layer renderer 2026-05-24 11:08:09 -04:00
pdftract-core feat(pdftract-49cn): implement feature signal extraction for classifier 2026-05-24 11:01:18 -04:00
pdftract-libpdftract feat(pdftract-3s2i): implement Phase 5.5.2 validation filter 2026-05-24 04:57:17 -04:00
pdftract-py feat(pdftract-2nu0s): implement Python SDK contract conformance 2026-05-24 08:55:11 -04:00