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.

References

Comments

Popular posts from this blog

Build an independent watch app - PART IV

Build an independent watch app - Part II

It's all matter of angles, in life