1 | initial version |
With Emgu + C# + windows forms?
Use for centroids: moments = CvInvoke.Moments(image, false); Centroid = new Point((int)(moments.M10 / moments.M00), (int)(moments.M01 / moments.M00));
and for colour, hsv method.
I test it, see: https://www.youtube.com/watch?v=Yk3wqClIG9w&feature=youtu.be
2 | No.2 Revision |
With Emgu + C# + windows forms?
Use for centroids: moments = CvInvoke.Moments(image, false); Centroid = new Point((int)(moments.M10 / moments.M00), (int)(moments.M01 / moments.M00));
and for colour, hsv method.
I test it, see: https://www.youtube.com/watch?v=Yk3wqClIG9w&feature=youtu.behttps://www.youtube.com/watch?v=Yk3wqClIG9w