Ask Your Question
0

Detect object

asked 2016-03-15 08:15:57 -0600

Okay so I'm writing a code to detect three similar objects with different colours. I'm using python, I can match them with a template to locate them but how do I find their centroids and differentiate them on colour basis?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2016-03-15 18:14:19 -0600

Tetragramm gravatar image

To find the centroid you probably want to use moments. To differentiate them by color, you can calculate the moments for each of the three channels to get the average color for the shape.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2016-03-15 08:15:57 -0600

Seen: 218 times

Last updated: Mar 15 '16