[Simple OCR] DataPath argument at Mobile Application on OutSystems 11

Forge Component
(1)
Published on 2018-11-27 by Takasi Moriya
1 vote
Published on 2018-11-27 by Takasi Moriya

In mobile application of OutSystems 11, the argument DataPath (tesseract data files path) has to be specified explicitly.

Reason:
OutSystems 11 places files under Resources without deploy action into
    "bin2\hidden_resources\<eSpace name>".
OutSystems 10 places them into
    "bin2\hidden_resources". <-- SimpleOCR extention's default search path

FileSystem extension in Forge is usable for the purpose.

FileSystem
https://www.outsystems.com/forge/68/

HI Takasi,

May I ask, I am using OS 10, I tried with the FileSystem, but I still got problem with datapath.

I got "Datapath does not exist"


Hope to receive your help soon,


Thank you a lot,


Nghi

Hello Nghi,

Datapath direcotry you prepared before must exist on your platform server and must be specified in your module.

Unfortunately, I have no ver.10 environment. However if you attach your sample oml file here, I may find a caouse of your problem.

By the way, can you test following sample app on your environment?
https://www.outsystems.com/forge/component-overview/3500/simple-ocr-sample
https://www.outsystems.com/forge/component-overview/3501/simple-ocr-sample-mobile

Takasi Moriya wrote:

In mobile application of OutSystems 11, the argument DataPath (tesseract data files path) has to be specified explicitly.

Reason:
OutSystems 11 places files under Resources without deploy action into
    "bin2\hidden_resources\<eSpace name>".
OutSystems 10 places them into
    "bin2\hidden_resources". <-- SimpleOCR extention's default search path

FileSystem extension in Forge is usable for the purpose.

FileSystem
https://www.outsystems.com/forge/68/

thanks for your response. I am getting same issue. May I ask what is the "eSpace name" ? 

There is another similar post here as well https://www.outsystems.com/forums/discussion/53782/error-datapath-does-not-exist/#Post224124


I am using Outsystems 11.6.27 for Mobile


Hello Khanji,

"eSpace name" means module's name.
In below case, "eSpace name" is "SimpleOCR_Sample_Mobile".

Takasi Moriya wrote:

Hello Khanji,

"eSpace name" means module's name.
In below case, "eSpace name" is "SimpleOCR_Sample_Mobile".

Thanks for your response. Actually the "Resources" folder was missing in the "Data" tab. After adding it, I used the same value as in the SpeechRecognitionSample, just changed to my module name and it worked.


Thanks for developing this application!