about centroid
zmokokokok opened this issue · 2 comments
zmokokokok commented
Sir, could you please tell me how to display the centroid on the image? Thank you!
CodecWang commented
Display or calculate?
if you want to display the centroid value on the image, just use the drawing function (cv2.putText()).
Drawing
For calculation, you can use moments.
Image moments
zmokokokok commented
Thank you sir, that's really helpful.