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

  • Home
  • SEARCH
  • 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 6781295
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T16:36:26+00:00 2026-05-26T16:36:26+00:00

I am trying to extract numbers from a typical scoreboard that you would find

  • 0

I am trying to extract numbers from a typical scoreboard that you would find at a high school gym. I have each number in a digital “alarm clock” font and have managed to perspective correct, threshold and extract a given digit from the video feed

Sample input

Here’s a sample of my template input

Template input

My problem is that no one classification method will accurately determine all digits 0-9. I have tried several methods

1) Tesseract OCR – this one consistently messes up on 4 and frequently returns weird results. Just using the command line version. If I actually try to train it on an “alarm clock” font, I get unknown character every time.

2) kNearest with OpenCV – I search a database consisting of my template images (0-9) and see which one is nearest. I frequently get confusion between 3/1 and 7/1

3) cvMatchShapes – this one is fairly bad, it usually can’t tell the difference between 2 of the digits for each input digit

4) Tangent Distance – This one is the closest, but the smallest tangent distance between the input and my templates ends up mapping “7” to “1” every time

I’m really at a loss to get a classification algorithm for such a simple problem. I feel I have cleaned up the input fairly well and it’s a fairly simple case for classification but I can’t get anything reliable enough to actually use in practice. Any ideas about where to look for classification algorithms, or how to use them correctly would be appreciated. Am I not cleaning up the input? What about a better input database? I don’t know what else I’d use for input, each digit and template looks spot on at this point.

  • 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-05-26T16:36:27+00:00Added an answer on May 26, 2026 at 4:36 pm

    The classical digit recognition, which should work well in this case is to crop the image just around the digit and resize it to 4×4 pixels.

    A Discrete Cosine Transform (DCT) can be used to further slim down the search space. You could select the first 4-6 values.

    With those values, train a classifier. SVM is a good one, readily available in OpenCV.

    It is not as simple as emma’s or martin suggestions, but it’s more elegant and, I think, more robust.

    Given the width/height ratio of your input, you may choose a different resolution, like 3×4. Choose the smallest one that retains readable digits.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to extract a number from a string. The number might be
Is it possible to extract a number from a string. For example, I have
I am trying to extract the number of specials unlocked at a venue from
I've got a xml that I'm parsing and trying to extract some data from.
I'm working with python and am trying to extract numbers from a .txt file
I'm trying to extract the number from a text string and join it to
I have a database from which I am trying to extract certain information. The
I am trying to extract telephone word numbers from free text. The general format
I have a large matrix from which I would like to randomly extract a
I'm trying to extract a number from a string. And do something like [0-9]+

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.