I'd like to read the screen using text recognition OCR from a plugin or another app, by taking a screenshot using the action in macrodroid then immediately using OCR on the screenshot, then output the text variable either in the form of string or dictionary.
TouchTask has OCR action but I can't figure out a way to use the latest image as the target for the OCR action. Can someone help me with this?
The action flow in Macrodroid would be:
> Take screenshot
> Read screenshot with OCR app/plugin
> Store text in string or dictionary
> Check if string or dictionary contains target word/substring
Additional bonus requests:
It would be more awesome if you can also tell me the easiest way to loop through a dictionary or string, then see if the word/substring ur looking for exist.
I'll be even happier if u can also tell me how to check a certain x,y pixel in the screen to see if it has a certain color.
TouchTask has OCR action but I can't figure out a way to use the latest image as the target for the OCR action. Can someone help me with this?
The action flow in Macrodroid would be:
> Take screenshot
> Read screenshot with OCR app/plugin
> Store text in string or dictionary
> Check if string or dictionary contains target word/substring
Additional bonus requests:
It would be more awesome if you can also tell me the easiest way to loop through a dictionary or string, then see if the word/substring ur looking for exist.
I'll be even happier if u can also tell me how to check a certain x,y pixel in the screen to see if it has a certain color.