Cloud Development Kit

Text candidates

Hi,

I am using the Process Text recognition and below is an example of a textInput that I am passing through, but only 1 candidate is ever returned?

Can I specify the size of the candidate list or does it depend on the strokes? No matter how much I squiggle only 1 candidate seems to be returned even if it resembles more than one word.

textInput:{textParameter:{language:en_US,textInputMode:CURSIVE},inputUnits:[{textInputType:MULTI_LINE_TEXT,components:[{type:stroke,x:[465,468,472,493,507,522,529,540,543,543],y:[208,430,389,347,337,337,347,380,422,419]},{type:stroke,x:[596,601,604],y:[325,405,375]},{type:stroke,x:[599,599.1],y:[284,284.1]}]}]}

Thank you for your help

1 Comment

Dear Jane,
Yes if you choose 'Text' as 'resultDetail' parameter, you can increase the candidate list (set to one candidate by default) as mentioned in 'Recognition types' chapter of the cloud documentation:
http://doc.myscript.com/MyScriptCloud/3.0.0/myscript-cloud/reco-types.html

"textParameter": {"resultDetail": "TEXT"}
"textProperties": {"textCandidateListSize": 4}


Best regards

Login or Signup to post a comment