I have an image,it contan the circle based stamp .I am trying to find that stamp based circle using hough cicles algorithm but I could not find that circle .
my code is :
image1=cv2.imread('1.jpg')
gray_image=cv2.cvtColor(image1, cv2.COLOR_BGR2GRAY)
th2 = cv2.adaptiveThreshold(gray_image,255,cv2.ADAPTIVE_THRESH_MEAN_C,\
cv2.THRESH_BINARY,19,2)
output=image1.copy()
circles = cv2.HoughCircles(th2, cv2.HOUGH_GRADIENT, 1.3, 100)
if circles is not None:
circles = np.round(circles[0, :]).astype("int")
for (x, y, r) in circles:
cv2.circle(output, (x, y), r, (0, 255, 0), 2)
print(x,y,r)
plt.imshow(output)
output images:
I am getting like output image circle but i could not get the stamp circle .Please tell me how to solve this problem or how to set the parameter inside algorithms ? Thanks ..