1

I'm working on a project where I need to be able to see the difference between all 4 playing card symbols: heart, spade, diamond and club in real-time. This means that the angle, lighting, and distance to the symbol(s) constantly change (and therefore detecting objects based on contour area won't be an option).

So when I hold a heart symbol in front of my camera I'm trying to draw the word 'heart' inside it. if I do the same with a spade, I want it to write "spade", etc.

I have tried doing this in various different ways, but all attempts failed or didn't work as good as I want it to.

The methods I've tried:

  • haarcascades
  • template matching, doesn't work due to the rotations that are possible
  • color detection, which only does half the job since there are 2 symbols per color
  • feature matching: this tutorial doesn't work because the symbols don't have enough detail to find the keypoints

I can add source codes of these attempts if needed, but I don't think it will add any value, since they didn't really get me anywhere.

The Images I'm using:

enter image description here

1
  • 1
    have you succeded? Commented Apr 26, 2020 at 23:01

1 Answer 1

1

Since you're dealing with relative low complex symbols why don't you try contour match shaping? You might have to adapt to some more complex cases but I think that could be a first good approach:

Contours : More Functions

Structural Analysis and Shape Descriptors

Remember that you also have the color information to use in your app. Anyway, also take a look at this.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.