I am trying to extract the text from flowcharts and decision trees. If I use the image with original boxes/shapes, the text region detection is poor. Is there any way to remove these shapes (keeping the text)?
You could use connectedComponentsWithStats(), you will have single component for the chart lines, then just remove that component from the image.
Related
How to center the text within a label in a map chart in Spotfire? I tried the labels option but it doesn't have an option to align the text.
sadly, there is no feature to align text inside of a label, and the label formatting features are a bit limited. this goes for all of the other chart types that support labels, too.
one really silly idea I just thought of and haven't tried would be to change the label to use a monospace font like Courier New, and then calculate how many spaces you'd need to place on the left to make the text appear centered, but herein lies only madness and I wouldn't seriously recommend this approach to anyone.
Am trying to create a sample shape(for eg, square) and use RaphaelJS Free Transform plugin to drag ,rotate or resize the shape.Now,I also want a text to be displayed in the center of the shape. Can anyone help me with transforming the text when the shape is transformed.
Is it possible to insert shape and add the shape to already existing picture inserted from a file like PNG, JPG, GIF. I am looking for merging the shape and the picture in ONE image, not just grouping them together.
Alternatively is there a way to group two objects in Excel permanently so that no ungrouping is possible?
It is not possible to draw images in Excel. You can only import images.
I have a scan of a body and I want to select it's t-shirt only but all the polygons belong to the same object. Is there a way to select polygons by color and then delete those unselected, so I can have an obj containing only the t-shirt?
edit: I want something similar than you do with gimp or photoshop with 2d images, selecting pixels by colors.
A 3D scan would most likely use a photo that is uv mapped onto a mesh object. In this setup there is no easy way to select part of the mesh based on the material colour. In fact each polygon in the mesh maps to an area of an image that can contain any number of colours.
There are several selection tools available, I expect using box select B and/or circle select C (sometimes called paint select) and then using X to delete the vertices/faces you don't want would be the approach to use.
It is possible to use multiple materials on a model with each face being assigned a different material, if this is the case you have an option to select or deselect the faces using a material in the material properties.
How to vertically align the text in static text box in PowerBuilder like the following picture? It can be aligned horizontally to left, center, right. But cannot do the same thing vertically.
Thanks
As far as I know, it cannot be done out of the box.
I have made it anyway "by hand" with the help of the windows API: DrawText(), OffsetRect() and so on to create an improved rounded command button.
You can look at the code in that gist (look at the of_drawtext() method).
Can you explain the purpose of this text box?
Maybe you could use another object where you can easily move your text within.
The text in the box may have a variable number of line?
Do you use sql on the window object?
Maybe put this text between line feed in compute field within the datawindow you used can help you.(Handy Manny's style.....i agree....).
Erf....Seki answered faster
You can use a DW to vertically align a text.
An attribute of the dw static text called "font.escapement" sets the angle at which you want your text displayed.
To display text vertically, set the escapement attribute to 900 (10 * the angle) or to 2700.
Please notice that you will not see the effect in the datawindow painter, you'll have to preview your dw to see if the text is in the correct angle.