15,346,659 members

# Welcome to the Lounge

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 Re: It's Great To Be Young Again! Roger Wright29-Dec-18 6:16 Roger Wright 29-Dec-18 6:16
 Re: It's Great To Be Young Again! Eytukan30-Dec-18 4:22 Eytukan 30-Dec-18 4:22
 Re: It's Great To Be Young Again! Rage6-Jan-19 22:57 Rage 6-Jan-19 22:57
 The Maths will be vanquished! Super Lloyd28-Dec-18 17:07 Super Lloyd 28-Dec-18 17:07
 Re: The Maths will be vanquished! Jim Meadors28-Dec-18 18:16 Jim Meadors 28-Dec-18 18:16
 Re: The Maths will be vanquished! Super Lloyd28-Dec-18 18:30 Super Lloyd 28-Dec-18 18:30
 Re: The Maths will be vanquished! Jim Meadors29-Dec-18 5:43 Jim Meadors 29-Dec-18 5:43
 Re: The Maths will be vanquished! GuyThiebaut29-Dec-18 1:10 GuyThiebaut 29-Dec-18 1:10
Nice work

Following up on a reply I posted a week or so ago to your original post:

Here is a hand-drawn image of rectangles and circles done by my pet arthritic hamster - pet hamster's drawing of circles and rectangles[^] and here is the result of a weekend or so of work done on detecting rectangles and circles - Computer generated guess of rectangles and circles[^]

What I am trying to do is much simpler than your examples - for my blob detection I however don't rely on math(that spelling will annoy a few people ) but, to put it simply, I use a method where I scan the page several times looking for how close edges are to each other in order to distinguish blobs.

For circle detection I draw a box around the blobs and then cut off each of the four corners, of the boxes, with a triangle and the code determines how many pixels are within each triangle - hamster's drawing with detected blobs in rectangles with triagles at edges[^].

Then using a pre-determined sensitivity the code guesses at what is a circle and what is a rectangle.

One recommended way of detecting circles is to measure how close the borders are to the centre of the blob, however I found that with my arthritic hamster's circles being so poor, in some cases circles were being detected as rectangles - my usual go for a walk and think of how to solve the problem led to the triangle solution.
##### “That which can be asserted without evidence, can be dismissed without evidence.”

― Christopher Hitchens

 Re: The Maths will be vanquished! Super Lloyd29-Dec-18 3:35 Super Lloyd 29-Dec-18 3:35
 Re: The Maths will be vanquished! GuyThiebaut29-Dec-18 3:53 GuyThiebaut 29-Dec-18 3:53
 Re: The Maths will be vanquished! Super Lloyd29-Dec-18 20:05 Super Lloyd 29-Dec-18 20:05
 New Year's resolutions ? BillWoodruff28-Dec-18 15:47 BillWoodruff 28-Dec-18 15:47
 Re: New Year's resolutions ? theoldfool29-Dec-18 4:15 theoldfool 29-Dec-18 4:15
 Re: New Year's resolutions ? Mycroft Holmes29-Dec-18 11:51 Mycroft Holmes 29-Dec-18 11:51
 Re: New Year's resolutions ? Jacquers29-Dec-18 4:43 Jacquers 29-Dec-18 4:43
 Generally speaking Member 798912228-Dec-18 12:43 Member 7989122 28-Dec-18 12:43
 And another free game. OriginalGriff28-Dec-18 5:00 OriginalGriff 28-Dec-18 5:00
 Re: And another free game. Mark_Wallace28-Dec-18 5:25 Mark_Wallace 28-Dec-18 5:25
 Re: And another free game. RickZeeland28-Dec-18 8:26 RickZeeland 28-Dec-18 8:26
 Re: And another free game. Mark_Wallace28-Dec-18 8:28 Mark_Wallace 28-Dec-18 8:28
 Re: And another free game. - And another Nelek28-Dec-18 11:06 Nelek 28-Dec-18 11:06
 Re: And another free game. - And another OriginalGriff28-Dec-18 11:45 OriginalGriff 28-Dec-18 11:45
 Re: And another free game. Super Lloyd28-Dec-18 16:58 Super Lloyd 28-Dec-18 16:58
 Re: And another free game. RickZeeland28-Dec-18 19:46 RickZeeland 28-Dec-18 19:46
 Re: And another free game. Super Lloyd28-Dec-18 20:09 Super Lloyd 28-Dec-18 20:09
 Last Visit: 31-Dec-99 18:00     Last Update: 25-Jun-22 3:40 Refresh ᐊ Prev1...5448544954505451545254535454545554565457 Next ᐅ