AutoTools OCR error

Discussion in 'General' started by yosamuel91, Oct 18, 2018.

  1. yosamuel91

    yosamuel91 New Member

    Joined:
    Oct 18, 2018
    Messages:
    2
    Likes Received:
    0
    Hello I am trying to create a simple OCR task in Tasker where I can take a picture with my galaxy s7 g-930u running Android 8.0.0. When I create an AutoTools OCR task and populate the Image path with %FOTO I get an error. Now the thing is the filename is valid and the variable does hold the correct file as I have also created a seperate task to do a file open with %FOTO even taking a picture with my stock camera app will update the variable correctly and the file will open too. So it seems AutoTools does not like a global variable for this? Here is the error inside tasker:

    00.05.17/MyPM getReceiverInfo: android.content.pm.PackageManager$NameNotFoundException: ComponentInfo{com.joaomgcd.autotools/com.joaomgcd.autotools.broadcastreceiver.IntentServiceFire}
    00.05.17/ android.app.ApplicationPackageManager.getReceiverInfo(ApplicationPackageManager.java:569)
    00.05.17/ net.dinglisch.android.taskerm.co.a(Unknown Source:1)
    00.05.17/ net.dinglisch.android.taskerm.co.f(Unknown Source:0)
    00.05.17/ net.dinglisch.android.taskerm.df.a(Unknown Source:333)
    00.05.17/ net.dinglisch.android.taskerm.ExecuteService.a(Unknown Source:59)
    00.05.17/ net.dinglisch.android.taskerm.ExecuteService.a(Unknown Source:314)
    00.05.17/Variables doreplresult: |{"image":"%FOTO","generatedValues":{}}| -> |{"image":"DCIM\/Camera\/20181017_234154.jpg","generatedValues":{}}|
    00.05.17/ActionArgBundle AutoTools OCR: parameters: {"image":"%FOTO","generatedValues":{}} -> {"image":"DCIM\/Camera\/20181017_234154.jpg","generatedValues":{}}
    00.05.17/E FIRE PLUGIN: AutoTools OCR / com.twofortyfouram.locale.intent.action.FIRE_SETTING: 6 bundle keys
    00.05.17/E AutoTools OCR: plugin comp: com.joaomgcd.autotools/com.joaomgcd.autotools.broadcastreceiver.IntentServiceFire
    00.05.17/E add wait type Plugin1 time 60
    00.05.17/E add wait type Plugin1 done
    00.05.17/E handlePluginFinish: taskExeID: 1 result 3
    00.05.17/E pending result code
    00.05.17/E add wait task
    00.05.17/E Error: 673677653
    00.05.17/E Couldn't get image
     
  2. joaomgcd

    joaomgcd Administrator Staff Member

    Joined:
    Feb 3, 2015
    Messages:
    7,757
    Likes Received:
    678
    Using a global variable is fine, but AutoTools needs the full path to the file. Try browsing the file from inside AutoTools and you'll see what kind of path you get. :)
     
  3. yosamuel91

    yosamuel91 New Member

    Joined:
    Oct 18, 2018
    Messages:
    2
    Likes Received:
    0
    Joaomgcd, that worked! I have got to hand it to you this is great! Now I can dynamically trigger an image to be parsed by OCR with Auto voice. I got AutoTools OCR to work with the path like this:
    /storage/emulated/0/%FOTO

    Thanks for your quick response as well. 10 stars!
     
  4. joaomgcd

    joaomgcd Administrator Staff Member

    Joined:
    Feb 3, 2015
    Messages:
    7,757
    Likes Received:
    678
    Cool :D Glad it's working!
     

Share This Page