> I'm trying to extract the bounding boxes (x0,y0,x1,y1) of the > candidate characters in a line of text with the CurvedCutSegmenter > (using c++). I managed to write some colored images using the function > simple_recolor(),
simple_recolor is only for display; it will assign a large number of random color values. > but when I try to use the function bounding_boxes() > to get all the coordinates I obtain only a big vector full of > (0,0,-1,-1) rectangles. The bounding_boxes function returns a vector in which entry n gives you the bounding box for the RGB value n in the image. If you don't call simple_recolor, these will be bounding boxes for the characters in left-to-right order. So, in short, don't call simple_recolor and you will probably get what you need. Tom -- You received this message because you are subscribed to the Google Groups "ocropus" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/ocropus?hl=en.
