Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9317951
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 19, 20262026-06-19T03:00:22+00:00 2026-06-19T03:00:22+00:00

I am new to programming in general and have recently gotten into App development.

  • 0

I am new to programming in general and have recently gotten into App development. I am using tesseract for iOS and I can’t seem to figure out how to get it only read numbers.

There is an exact question posted by Alex G Here and I have the same files/problem as him. the answer apparently is

Go to the tessdata\configs\digits file. If you’re using the API, then
call SetVariable(“tessedit_char_whitelist”, “0123456789-.”); You use
the SetVariable API if you want to programmatically call Tesseract,
via Objective-C, for instance.

Except I still do not understand how to do this. Where is this command line? I am calling Tesseract from Xcode and not a command line. I also do not contain this tessdata\configs\digits file.

If somebody could please help me I would really appreciate it.

Thanks!

Ted
enter image description here

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-19T03:00:23+00:00Added an answer on June 19, 2026 at 3:00 am

    If you follow the How To: Compile and Use Tesseract (3.01) on iOS (SDK 5) article, you would place the SetVariable statement after the Init call, as follows:

    tesseract->Init([dataPath cStringUsingEncoding:NSUTF8StringEncoding], "eng");
    tesseract->SetVariable("tessedit_char_whitelist", "0123456789-.");
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am new to programming in general and have been teaching myself using Android
I'm new to Django and Web programming in general. Have googled but could not
I am fairly new to iphone development and programming in general and am wondering
I am relatively new to ASP.NET programming, and web programming in general. We have
I'm fairly new to programming in general but have been working with Java for
I'm very new to Python and multithreaded programming in general. Basically, I have a
I'm fairly new to Python and programming in general. I have done a few
I'm new GUI and programming as whole and so far I have a general
I'm relatively new to web-programming in general so my question may seem a little
I am new to app programming, and programming in general. I am still in

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.