Use OCR to recognize text in a photo and store it as a note in Google Keep

Learn how to take a photo, recognize the text in it and store it in a Google Keep Note

  1. joaomgcd

    STEP 1 - TAKE PHOTO


    • Create a task and name it Save Text To Keep
    • Add an AutoShare action
    • Import the Take Photo intent if needed
    • Under App select Image
    • Under Action select Take Photo
    • Under File Path select any existing or new file on your file system
    • If you have more than one photo app select the one you want with the Find Compatible Apps option
    • Accept and go back to Tasker
    • Add a Flash action with the %asfilepath text
    (i) %asfilepath will contain the path of the photo that is taken


    STEP 2 - RECOGNIZE TEXT


    • Add an AutoTools OCR action
    • Set the Image field to %asfilepath
    • Accept and go back to Tasker
    • Add a Flash action with the text %atocrvalue()
    (i) This will contain an array of values. Each value is a recognized block. Depending on the image you may have 1 or more blocks of texts depending on the layout of the texts on the image.


    STEP 3 - SEND RECOGNIZED TEXT TO KEEP


    • Add another AutoShare action
    • Set the Subject to Note to self
    • Set the text to %atocrvalue()
    • Tap the Find Compatible Apps option and select Google Keep from the list


    STEP 4 - TEST


    If you now run the task, point your phone camera at some text and take a picture it should prompt you to add a note to keep with the text from the image. :cool:

    autormali likes this.