Community

How to 'force' the cloud SDK to recognize only numbers

We are using the Java SDK example for recognition with "textField" parameter, and supplying the letterSet as "0123456789". It recognizes all the other numbers properly, but confuses the "3" to either "X", or "I", or some special characters every time.

Is there a way to force the SDK to recognize only numbers. e.g. instead of identifying it as "X", it can make a best effort to recognize it as a number. i.e. "3" or even "6" ?

0

Comments

7 comments

  • Avatar
    SDK Support Team

    To recognize only digits it is recommended to set special language, "Digits". See list of all available languages here.

    Another hint is to change size and resolution of the image so that letters height is ~ 100 pixels @ 300 dpi

    0
    Comment actions Permalink
  • Avatar
    Deepak Mahajan

    Where can I get  "Digits" language? Can you please provide the same?

    0
    Comment actions Permalink
  • Avatar
    Nikolay Krivchanskiy

    Hi Deepak,

     

    The list of available languages is available on our website http://ocrsdk.com/documentation/specifications/recognition-languages/.

     

    Please note, that ‘Digits’ language is only available for OCR and ICR.

     

     

    To use this language in processing, please add following text in your HTTP request with parameters: “&language=Digits”.

    0
    Comment actions Permalink
  • Avatar
    Deepak Mahajan

    Hello Nikolay,

     

    Thanks for the reply!

    Actually I am implementing it for the iOS platform so I was looking for .edc file.

    0
    Comment actions Permalink
  • Avatar
    Oksana Serdyuk

    Do we understand correctly that you use RTК SDK? If so, the Digits language is not supported in RTR SDK, but it is possible to create a custom language file which will contain only necessary characters. For that you should use the Extended Version of the product. Please see the Licensing web page for details.

    0
    Comment actions Permalink
  • Avatar
    Deepak Mahajan

     Hello Team,

     

    Yes I am using RTR sdk. Sometimes it gets much time to recognise text. I put the log in callback of "onBufferProcessedWithTextLines" that is RTRRecognitionServiceDelegate, it also comes after some time. Is there anything need to do?

    0
    Comment actions Permalink
  • Avatar
    Diana Khammatova

    Please pay attention to the RTRResultStabilityStatus.Result stability status is the estimate of how stable the result is, and whether it is likely to be improved by adding new frames. If you for example chose RTRResultStabilityTentative value instead of RTRResultStabilityStable, it will take less time to reach this level of stability but the average quality of the result will be worse.However we do not recommend using the results in any way while stability is below RTRResultStabilityAvailable.

    0
    Comment actions Permalink

Please sign in to leave a comment.