A camera on the bar reads the signed merchant copy and takes the fields off it as data: the tip, the amount, the total, the check number, the auth code, the last four, the time and the server.
Then it checks the arithmetic — subtotal plus tip has to equal the total. Anything that does not reconcile is set aside with its photograph attached, for a person to look at. Nothing clears by guessing. See it read a slip on the bars page.