How to create data fom image like “Letter Image Recognition Dataset” from UCI

前端 未结 2 1804
夕颜
夕颜 2020-12-31 17:59

I am using letter_regcog example from OpenCV, it used dataset from UCI which have structure like this:

Attribute Information:
     1. lettr   capital letter  (26          


        
相关标签:
2条回答
  • 2020-12-31 18:28

    I am not familiar with OpenCV's letter_recog example, but this appears to be a feature vector, or set of statistics about the image of a letter that is used to classify the future occurrences of the letter. The results of your segmentation should leave you with a binary mask with 1's on the letter and 0's everywhere else. onpix is simply the total count of pixels that fall on the letter, or in other words, the sum of your binary mask.

    Most of the rest values in the list need to be calculated based on the set of pixels with a value of 1 in your binary mask. x and y are just the position of the pixel. For instance, x-bar is just the sample mean of all of the x positions of all pixels that have a 1 in the mask. You should be able to easily find references on the web for mathematical definitions of mean, variance, covariance and correlation.

    14-17 are a little different since they are based on edge pixels, but the calculations should be similar, just over a different set of pixels.

    0 讨论(0)
  • 2020-12-31 18:42

    My name is Antonio Bernal. In page 3 of this article you will find a good description for each value. Letter Recognition Using Holland-Style Adaptive Classifiers.

    If you have any doubt let me know. I am trying to make this algorithm work, but my problem is that I do not know how to scale the values to fit them to the range 0-15. Do you have any idea how to do this?

    Another Link from Google scholar -> Letter Recognition Using Holland-Style Adaptive Classifiers

    0 讨论(0)
提交回复
热议问题