Scoreboard digit recognition using OpenCV

前端 未结 5 1432
轻奢々
轻奢々 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:13

    You want your scorecard image inputs S feeding an algorithm that maps them to {0,1,2,3,4,5,6,7,8,9}.

    Let V denote the set of n-tuples of integers.

    Construct an algorithm α that maps each image S to a n-tuple

    (k1,k2,...,kn)

    that can differentiate between two different scoreboard digits.

    If you can specify the range of α then you only have to collect the vectors in V that correspond to a digit in order to solve the problem.

    I've applied this idea using Martin Beckett's idea and it works. My initial attempt was a simple injection into a 2-tuple by vertical left-to-right summing, with the first integer a image column offset and the second integer was the length of a 'nice' vertical line.

    This did not work - images for 6 and 8 would map to the same vectors. So I needed another mini-info-capture for my digit input types (they are not scoreboard) and a 3-tuple info vector does the trick.

提交回复
热议问题