API Docs for:
Show:

TextProperties Class

Text recognition properties

Methods

getCharacterCandidateListSize

() Number

Get the number of character candidates requested

Returns:

Number:

getDisableSpatialOrdering

() Boolean

Get disable spatial ordering

Returns:

Boolean:

getDiscardAccentuationVariations

() Boolean

Get the discard accentuation variations

Returns:

Boolean:

getDiscardCaseVariations

() Boolean

Get the discard case variations

Returns:

Boolean:

getEnableOutOfLexicon

() Boolean

Get enable out of lexicon

Returns:

Boolean:

getGlyphDistortion

() Number

Get glyph distortion

Returns:

Number:

getSpellingDistortion

() Number

Get spelling distortion

Returns:

Number:

getTextCandidateListSize

() Number

Get the number of text candidates requested

Returns:

Number:

getWordCandidateListSize

() Number

Get the number of word candidates requested

Returns:

Number:

getWordCompletionListSize

() Number

Get the number of word completion candidates requested

Returns:

Number:

getWordPredictionListSize

() Number

Get the number of word prediction candidates requested

Returns:

Number:

setCharacterCandidateListSize

(
  • characterCandidateListSize
)

Set the number of character candidates requested

Parameters:

  • characterCandidateListSize Number

setDisableSpatialOrdering

(
  • disableSpatialOrdering
)

Set disable spatial ordering

Parameters:

  • disableSpatialOrdering Boolean

setDiscardAccentuationVariations

(
  • discardAccentuationVariations
)

Set the discard accentuation variations

Parameters:

  • discardAccentuationVariations Boolean

setDiscardCaseVariations

(
  • discardCaseVariations
)

Set the discard case variations

Parameters:

  • discardCaseVariations Boolean

setEnableOutOfLexicon

(
  • enableOutOfLexicon
)

Set enable out of lexicon

Parameters:

  • enableOutOfLexicon Boolean

setGlyphDistortion

(
  • glyphDistortion
)

Set glyph distortion

Parameters:

  • glyphDistortion Number

setSpellingDistortion

(
  • spellingDistortion
)

Set spelling distortion

Parameters:

  • spellingDistortion Number

setTextCandidateListSize

(
  • textCandidateListSize
)

Set the number of text candidates requested

Parameters:

  • textCandidateListSize Number

setWordCandidateListSize

(
  • wordCandidateListSize
)

Set the number of word candidates requested

Parameters:

  • wordCandidateListSize Number

setWordCompletionListSize

(
  • wordCompletionListSize
)

Set the number of word completion candidates requested

Parameters:

  • wordCompletionListSize Number

setWordPredictionListSize

(
  • wordPredictionListSize
)

Set the number of word prediction candidates requested

Parameters:

  • wordPredictionListSize Number