Centering measured from a photo
Point it at the card and it finds the four border edges, then compares the gaps and gives you a real percentage.
No machine learning and no server round trip. It sums how sharply brightness changes along each axis, which puts a spike exactly where a border begins. When it cannot find four clean edges it says so and returns nothing, because a made up measurement is worse than none.
