How can plot I circles and fill the intersections that lies with the foreground image in Python?

25
January 28, 2019, at 9:20 PM

I am a python starter and I am doing a project of masking images(single-petalled flowers) through the idea from perfect circles https://designshack.net/articles/graphics/twitters-new-logo-the-geometry-and-evolution-of-our-favorite-bird/

I already did start and I use houghcircles to find circles but not able to do the masking..How can I fill and separate the intersections..?

img2 = cv2.medianBlur(gray_img, 5)
cimg = cv2.cvtColor(img2,cv2.COLOR_GRAY2BGR)
circles = cv2.HoughCircles(img2,cv2.HOUGH_GRADIENT,1,50,
                           param1=50,param2=30,minRadius=0,maxRadius=0)
circles = np.uint16(np.around(circles))
READ ALSO
How to check if a data is a map (key-value pairs)?

How to check if a data is a map (key-value pairs)?

Before processing data (a DataSnapshot coming from Firebase), I need to check if data returned are well formated as a Map before deserializing through an Interface

36
I need to find a DES code for mobile wallet application [on hold]

I need to find a DES code for mobile wallet application [on hold]

I need a java code which provides security for a mobile wallet application and with a re sizable key sizePlease I beg someone to help me with this

42
Java 8u201: no cipher suites in common

Java 8u201: no cipher suites in common

After updating to Java 8u201 I am getting an exception when trying to connect from a SSLSocket to a SSLServerSocketThe exception states that these two clients have 'no cipher suites in common' (even on the same machine with same cipher suites enabled)

51
Can't login via BasicAuth

Can't login via BasicAuth

I'm trying to implement oauth with tokenEverything seems good, but after POST

36