Apple has built some really great frameworks, like the vision that does the text detection for text data. If you use Objective C, you can directly access that power with just a handful lines of code. And if you're on a Mac, you can just use them what's already built into your Mac.