Menu

1 / 5

When Apple Vision Drops the Minus Sign in a Document Diff

DEV Community: swift·John·2 days ago
#bD6QakZn
#devtoswift#devto#dev#balance#line
Long article (993 words) — no AI summary yet.
Reading 0:00
15s threshold

Originally published on hexisteme notes .

I drew Balance: -1,250.50 USD in Helvetica and asked Apple Vision to read it. The result was Balance: 1,250.50 USD . The comma, decimal point and currency survived. The one mark that reversed the meaning of the line disappeared. I got the same result for that line in Times New Roman, Apple SD Gothic Neo and Hiragino Sans.

This mattered in a scanning app where a reader can compare two documents and show only changes involving numbers. A reader looking for a changed balance has a good reason to use that filter. If both pages yield the same recognized string, the comparison has nothing to highlight. And if a separator gets attached to the wrong number, the filter can send the reader to a change that exists only in the app.

A probe with the original still in hand

I rendered eight short lines in each of the four fonts.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.