Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

I am not going to flat out debug this. I spent about a week working on something similar a two weeks ago. It isn't quite done yet, and requires a data for training but it does suits and ranks. You should talk a look at it as it uses a more machine learning based approach. I need to collect more data and do another pass on the data extraction but sooner or later we will release it with SimpleCV. I will post the data set to github downloads page today.

I am not going to flat out debug this. I spent about a week working on something similar a two weeks ago. It isn't quite done yet, and requires a data for training but it does suits and ranks. You should talk a look at it as it uses a more machine learning based approach. I need to collect more data and do another pass on the data extraction but sooner or later we will release it with SimpleCV. I will post the data set to github downloads page today.

Here is what the output looks like:

http://imgur.com/a/tYYJC

I am not going to flat out debug this. I spent about a week working on something similar a two weeks ago. It isn't quite done yet, and requires a data for training but it does suits and ranks. You should talk take a look at it as it uses a more machine learning based approach. I need to collect more data and do another pass on the data extraction but sooner or later we will release it with SimpleCV. I will post the data set to github downloads page today.

Here is what the output looks like:

http://imgur.com/a/tYYJC

So the cards data should be up here for the code I posted: https://github.com/ingenuitas/SimpleCV/downloads

Getting back to your main problem, I noticed a "bug" in the morphology feature extractor the other day as I was working. Currently it uses the seven Hu moments which vary greatly in terms of the their size. Instead of calculating the distance between your samples and your test values is to compare the log magnitude of the Hu moment. A good way to see this is if you print out your feature vectors. A couple of the components of the Hu moment should be much much greater than the rest and they "eat up" the distance between the smaller components. A better way to compare two Hu moments is like this approach.

Feel free to ask more questions if this doesn't make sense.