Scoreboard digit recognition using OpenCV

前端 未结 5 1433
轻奢々
轻奢々 2021-01-31 05:59

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 persp

5条回答
  •  温柔的废话
    2021-01-31 06:27

    The classical digit recognition, which should work well in this case is to crop the image just around the digit and resize it to 4x4 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 3x4. Choose the smallest one that retains readable digits.

提交回复
热议问题