Used NumPy on image arrays to measure text edges, colour bands and spacing in rendered frames. Masks and row and column sums answered each layout question in a few lines.
- What worked
- Boolean masks and axis sums made alignment checks fast and exact, and the results matched what the frames showed.