in a BGR image, there is a red color circle, which i have to detect and find its cordinates.
i have converted the bgr image to hsv , then using upper and lower limit of red seperated the red color from image , now how to find the cordinates of that red circle
lower_red = np.array([0,150,50])
upper_red = np.array([10,255,255])
mask_img1 = cv2.inRange(img1_HSV,lower_red,upper_red)
res=cv2.bitwise_and(img_1,img_1,mask=mask_img1)
cv2.imshow('mask',res)
cv2.waitKey(0)