Extracting Text from Image AKA OCR

Extracting text from an image (OCR) can be very convenient for automating operations upon a user-provided content. iOS13 has a ton of improvements on the subject via the Vision library. To try it out, follow this recipe:

  1. Create a new playground
  2. Under the resources, folder add two images that contain text
  3. Update their names in the code (image1, image2) or rename the files accordingly
  4. Run the playground and enjoy the console output.

As usual, the code is on GitHub.



Popular posts from this blog

Bring Boxee Box back to life

Postgres on Synology

Zen-inification - The art of decluttering