I have an image that I've for the most part isolated all the information I'd like to work with in. In the image I have several "circles" that I want the contour function to be able to identify. Currently it's settings don't identify them and instead focus on singular pixels in the image.
Link to isolated image (can't embed images yet) : https://i.stack.imgur.com/CmXGK.jpg
contours, hierarchy = cv2.findContours(opening.copy(), cv2.RETR_TREE, cv2.CHAIN_APPROX_NONE)
This is the code I've got to actually identify the contours in the image and it works in a similar image with larger "circles".
I'd like for the image to have circles drawn over the isolated circle areas but I first need to ID them. I'm having trouble figuring out how to do that through the OpenCV documentation and was hopeful someone can help/give advice, thanks!
--Edit This is my pre-processing code
height, width, depth = image.shape
newimg = cv2.resize(image,(int(width/2.5),int(height/2.5)))
img_thresholded = cv2.inRange(newimg, (86, 31, 4), (220, 88, 50))
kernel = np.ones((1,1),np.uint8)
opening = cv2.morphologyEx(img_thresholded, cv2.MORPH_OPEN, kernel)