134
Views
5
Comments
[Simple OCR] DataPath argument at Mobile Application on OutSystems 11
Question
simple-ocr
Web icon
Forge asset 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/

UserImage.jpg
Nghi Vo Thanh

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

2018-03-29 06-28-54
Takasi Moriya
 
MVP

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

UserImage.jpg
Maitha Khanji

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


2018-03-29 06-28-54
Takasi Moriya
 
MVP

Hello Khanji,

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

UserImage.jpg
Maitha Khanji

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! 


Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.