CodecWang/opencv-python-tutorial

about centroid

zmokokokok opened this issue · 2 comments

Sir, could you please tell me how to display the centroid on the image? Thank you!

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

Thank you sir, that's really helpful.