omz:forum

    • Register
    • Login
    • Search
    • Recent
    • Popular

    Welcome!

    This is the community forum for my apps Pythonista and Editorial.

    For individual support questions, you can also send an email. If you have a very short question or just want to say hello — I'm @olemoritz on Twitter.


    Text recognition

    Pythonista
    image traverse text
    4
    5
    5964
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • ellie_ff1493
      ellie_ff1493 last edited by

      Is there any easy way to get the text in a image?
      I have looked about but can't find any way, are there any functions that can help?

      1 Reply Last reply Reply Quote 0
      • omz
        omz last edited by

        There isn't really a way to do this in Pythonista without using a web-based OCR API –that would probably be possible, but I don't know much about OCR APIs.

        1 Reply Last reply Reply Quote 0
        • shtek
          shtek last edited by shtek

          see some code at this page:
          [https://www.macstories.net/reviews/pythonista-2-0-brings-action-extension-ipad-pro-support-code-editor-improvements-and-more/](link url)

          Automated OCR
          The other script I'm regularly using through the action extension is based on Microsoft's Project Oxford, and it lets me perform OCR on images and obtain extracted plain text in seconds.

          
          import httplib, urllib, base64, clipboard, json, requests, datetime, appex, photos, console, dialogs
          
          timestamp = datetime.datetime.now()
          ...
          1 Reply Last reply Reply Quote 0
          • ellie_ff1493
            ellie_ff1493 last edited by

            An API can work but for my use I will be using 5000+ images at once, so internet will be a bottleneck assuming the API lets me upload that much.
            I may be able to make a crude one using shaders and pure python

            1 Reply Last reply Reply Quote 0
            • JonB
              JonB last edited by

              iOS is not your friend here. Get a desktop PC, and tesseract.

              1 Reply Last reply Reply Quote 0
              • First post
                Last post
              Powered by NodeBB Forums | Contributors