how labeling a letter in imagemagick ?

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
diegomage
Posts: 205
Joined: 2017-03-08T10:12:28-07:00
Authentication code: 1151

how labeling a letter in imagemagick ?

Post by diegomage »

Im trying to labeling a letter but i dont know how


i see this image

Image


how I could do this in imagemagick or other language

please help me
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: how labeling a letter in imagemagick ?

Post by fmw42 »

I do not know this well. But see thinning and pruning in the morphology section starting at http://www.imagemagick.org/Usage/morpho ... g_skeleton
diegomage
Posts: 205
Joined: 2017-03-08T10:12:28-07:00
Authentication code: 1151

Re: how labeling a letter in imagemagick ?

Post by diegomage »

very thankyou
diegomage
Posts: 205
Joined: 2017-03-08T10:12:28-07:00
Authentication code: 1151

Re: how labeling a letter in imagemagick ?

Post by diegomage »

I think that use Convexity Defects and convex hull for detecting lowest point and extreme point could be a solution I dont know if this its possible using imagemagick
diegomage
Posts: 205
Joined: 2017-03-08T10:12:28-07:00
Authentication code: 1151

Re: how labeling a letter in imagemagick ?

Post by diegomage »

and then using this information for line segmentation
diegomage
Posts: 205
Joined: 2017-03-08T10:12:28-07:00
Authentication code: 1151

Re: how labeling a letter in imagemagick ?

Post by diegomage »

detect the extreme points I think that if possible but detect Convexity Defects I dont know
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: how labeling a letter in imagemagick ?

Post by fmw42 »

I do not think convex hull helps get the skeleton of the letter. Perhaps you want the convex hull for you other post. Likewise, I think you want to use the skeleton solution from your link in the current post.

You have your answers/questions reversed.d
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: how labeling a letter in imagemagick ?

Post by snibgo »

Skeletonising an image is easy. Dividing a skeleton into line segments, junctions and loops is easy. Finding the direction of a line is fairly easy. For those operations, see http://www.imagemagick.org/Usage/morphology/

The OP contains a graphic with text I can't read. Do you have other questions?
snibgo's IM pages: im.snibgo.com
diegomage
Posts: 205
Joined: 2017-03-08T10:12:28-07:00
Authentication code: 1151

Re: how labeling a letter in imagemagick ?

Post by diegomage »

not really the unique problem in this Could be to detect the convexity defect since you would probably have to detect the skeleton and using connected components detect sub-skeletons for the image would be somewhat complicated
diegomage
Posts: 205
Joined: 2017-03-08T10:12:28-07:00
Authentication code: 1151

Re: how labeling a letter in imagemagick ?

Post by diegomage »

and then combine point for labeling the image
diegomage
Posts: 205
Joined: 2017-03-08T10:12:28-07:00
Authentication code: 1151

Re: how labeling a letter in imagemagick ?

Post by diegomage »

For example in the other post for the hands detect red point is not difficult but detect yellow points is more complicated

Would be similar with the letter but that would have to combine that information to do the segmentation
Post Reply