public

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.

2 years ago

Latest Post Simply put. by Mario Esposito public

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.

References

Mario Esposito

Published 2 years ago