OCR custom regions

ocr
issues

#1

When you specify the regions, the process falls. Even the standard config (RPA Expess 1.1.4)

2017-08-04 12:01:39 [] DEBUG com.wf.ocr.OcrTaskApplication - Start and use args=[C:\Users\1\AppData\Local\Temp\abbyy_task-1454820410881632987432\input-1782631354268159185.json]
2017-08-04 12:01:39 [145] DEBUG com.wf.ocr.a.k - Starting loadEngineAndRecognizeImages image count: 1 parameters: TaskParameters{correctSkew=true, writeRecognitionVariants=true, profile='documentConversion', exportFormat='html', language='English', correctOrientation=true, engine='abbyy', customRegions='{"left":0, "top":0, "right":2000, "bottom":2000}', skipPreprocessing=false, dictionary=null, originalText=null, useWordsFromDictionaryOnly=false, alphabetExtension=, engineDLLFolder=FineReaderEngine\Bin64, engineDataFolder=, engineTempFolder=, engineLogFolder=logs\, activeLicenseLog=active-license.log, license=WFST-Bo+qoNa/cXsqjv33K6SB23kA41QStxAmDuzF6ESLp/s4JZq9AnPgfg==, licensePath=Licenses\SWAO-1121-0006-1977-2657-6278.ABBYY.LocalLicense, licensePassword=***, internalLicensePath=Licenses\ocr-rpax.license, useOnlyCustomRegions=true, useDefaultPattern=false, removeGarbageSize=null, removeNoiseModels=null, allowedRegionTypes=[], debug=false, customAlphabet=null, skipTextLayerExtraction=false, discardColorImage=false, enhanceLocalContrast=false, priority=0, timeout=10800}
2017-08-04 12:01:39 [145] DEBUG com.wf.ocr.a.k - Initializing Engine......
2017-08-04 12:01:40 [145] DEBUG com.wf.ocr.a.k - Loading predefined profile...
2017-08-04 12:01:40 [145] DEBUG com.wf.ocr.a.k - Initialized engine: duration=982 ms
2017-08-04 12:01:40 [145] DEBUG com.wf.ocr.a.k - Loading images...
2017-08-04 12:01:40 [145] DEBUG com.wf.ocr.a.k - add image=C:\Users\1\AppData\Local\Temp\abbyy_task-1454820410881632987432\input-image.bin5100655101735798222.tmp
2017-08-04 12:01:41 [145] DEBUG com.wf.ocr.a.k - Loaded images: duration=160 ms
2017-08-04 12:01:41 [145] DEBUG com.wf.ocr.a.k - Parsing custom regions parameter...
2017-08-04 12:01:41 [145] DEBUG com.wf.ocr.a.k - Total objects count in memory = 0
2017-08-04 12:01:41 [145] DEBUG com.wf.ocr.a.k - Deinitializing Engine...
2017-08-04 12:01:41 [145] DEBUG com.wf.ocr.a.k - Finished loadEngineAndRecognizeImages duration=1 796 ms
2017-08-04 12:01:41 [145] ERROR com.wf.ocr.a.k - 
com.google.gson.JsonSyntaxException: java.lang.IllegalStateException: Expected BEGIN_ARRAY but was BEGIN_OBJECT at line 1 column 2 path $
	at com.google.gson.Gson.fromJson(Gson.java:822)
	at com.google.gson.Gson.fromJson(Gson.java:775)
	at com.google.gson.Gson.fromJson(Gson.java:724)
	at com.wf.ocr.a.k.a(OcrProcess.java:291)
	at com.wf.ocr.a.k.a(OcrProcess.java:186)
	at com.wf.ocr.a.k.a(OcrProcess.java:116)
	at com.wf.ocr.OcrTaskApplication.run(OcrTaskApplication.java:59)
	at com.wf.ocr.OcrTaskApplication.main(OcrTaskApplication.java:44)
Caused by: java.lang.IllegalStateException: Expected BEGIN_ARRAY but was BEGIN_OBJECT at line 1 column 2 path $
	at com.google.gson.stream.JsonReader.beginArray(JsonReader.java:350)
	at com.google.gson.internal.bind.CollectionTypeAdapterFactory$Adapter.read(CollectionTypeAdapterFactory.java:79)
	at com.google.gson.internal.bind.CollectionTypeAdapterFactory$Adapter.read(CollectionTypeAdapterFactory.java:60)
	at com.google.gson.Gson.fromJson(Gson.java:810)
	... 7 common frames omitted

#2

@aliaksandr_aryshka,

please post your recording here


#3

@aliaksandr_aryshka,

please respond to the message above


archived #4

unlisted #5