OpenCV & Python : Printing the Red dot pixel value in HoughCircles
<p>I am able to identify a circular object. How could i print the HoughCircle center point in pixels which is red in color. If there are two circles, how can i access by pixels ??</p>

<p>My code is </p>

<pre><code>import cv2
import numpy as np
img = cv2.imread('STACK.jpg',0)
img = cv2.medianBlur(img,1)
cimg = cv2.cvtColor(img,cv2.COLOR_GRAY2BGR)
circles = cv2.HoughCircles(img,cv2.HOUGH_GRADIENT,3,100,param1=60,param2=80,minRadius=0,maxRadius=0)                          
circles = np.uint16(np.around(circles))
for i in circles[0,:]:
    # outer circle
    cv2.circle(cimg,(i[0],i[1]),i[2],(0,255,0),2)
    # center of the circle
    cv2.circle(cimg,(i[0],i[1]),2,(0,0,255),2)
cv2.imshow('Detected Circle',cimg)
cv2.waitKey(0)
cv2.destroyAllWindows()
</code></pre>