Ray Paseur
asked on
Detect Closed Loops (circles, figure-8s, etc) in PNG Images
I want to detect closed loop formations in PNG images of handwritten numbers. If you know how to do this in any of the topic languages and can share a code example, I'd be grateful. If you have a link to a reference that explains the algorithm, that would be great, too.
Here are some images with closed loops.
Here are some images without closed loops.
Thanks and regards, Ray
Here are some images with closed loops.
Here are some images without closed loops.
Thanks and regards, Ray
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Yeah I think all of this low level processing ends up happening in C/C++. So you should be able to find various wrapper libraries out there which handle the access from other higher level languages. I no speaky PHP (and personally have never used the libraries in his post) so I'm not the guy to point you to the right wrappers. Just hopefully giving some insight into which approach to take.
Doug
Doug
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Hi, Zoppo. Didn't know about OpenCV, thanks. It looks like a good place to start. Thanks for the links!
ASKER
Thanks guys - appreciate the help!
ASKER
Interestingly, PHP imageCopyResampled() can downsize large image files into small files with high cohesiveness. Here's the number 8 built from a collection of 55 handwriting samples. A little normalization goes a long way toward getting something worthy of the more costly (slower) processes like imageConvolution()