First time here? Check out the FAQ!

Ask Your Question
0

Color and Shape tracking question, please help.

asked Feb 12 '14

john1991 gravatar image

updated Feb 12 '14

berak gravatar image

I am trying to integrate a color detection code and a shape detection code into one, so instead of tracking the shape or color of a particular object, I would like to track both shape and color of the object using one code. is this achievable?

Preview: (hide)

1 answer

Sort by » oldest newest most voted
1

answered Feb 17 '14

prakharmohan gravatar image

Here is a blog post on that which might help you.

For shape detection you can use simple things like extracting features like edges, regions, textures, contours etc.

For color detection you can access the Scalar information of the image and then use it to detect whichever color you want and even decide the threshold.

And yes, as far as I know, both can be one simultaneously although the final program might be computationally expensive. Hope this helps :)

Preview: (hide)

Comments

If you think the answer helps you then please accept it too :)

prakharmohan gravatar imageprakharmohan (Feb 18 '14)edit

Question Tools

Stats

Asked: Feb 12 '14

Seen: 1,362 times

Last updated: Feb 17 '14