How can I remove lines similar to the one present in the picture(green in color on top of face)?
I have seen many methods to remove vertical or horizontal lines but here the lines seems to be curly and also i want to extract information from the image(i.e. the face image part) post the removal of these lines and hence don't want the resulting image to be grayscale.
Sample Image
Any help or suggestion is much appreciated.
I enlarged the area without the curly lines.
Related
I like to have a table in asciidoc, where there is an empty row in it.
The problem is, letting the row empty makes it very small automatically.
[cols="5,3,3"]
|===
|||
|===
I tried to fill the cells with spaces, + `s , line feeds, tabs. But there is no character I know, where the cell is empty on the paper and has the normal height.
What I mean is a css-like min-height, or a special character like in html.
So how to force an empty table row to have the normal line height?
Your problem seems difficult. I hope you have good reasons to add an empty row.
Maybe a small hack might help you for the moment :-)
[cols="5,3,3"]
|===
a|image:sunset.jpg[""]||
|===
I just put an image which does not exists in the first column. Maybe a one pixel image might work as well. The a in front of |makes the asciidoctor interpreter to read it as asciidoctor.
Found the solution by myself:
[cols="5a,3,3"]
|===
|{nbsp} +
{nbsp} +||
|===
The ain the column definition marks this column as asciidoc-content, so that asciidoc commands will work. The {nbsp} + is the magic keyword for an empty space, which is not like the normal space. The normal space will be ignored, the {nbsp} is not ignored.
Hope that helps for other cases too.
Found it here: https://github.com/asciidoctor/asciidoctor/wiki/How-to-insert-sequential-blank-lines
Im not sure how to express it so I posted a picture in link below.
It should look like this
Just enter the text on 3 lines like so:
MORE
AT
THE HALL
Then adjust the point sizes, leading, kearning, etc. to create the aesthetic you want.
In this case line 1 and 3 could have full justification.
You can use scaling of the text(as shown in the character panel in attached snapshot) because changing font size also moves the baseline and causes the text to shift downward.
These attributes are also exposed via scripting.
How can i remove unwanted blob from this image so that only text area is visible in the image?Image with unwanted blob
If what you are looking for is always text, I suggested first applying an OCR to recognize the text.
I=imread('image'jpg');
ocrResults = ocr(image);
Iocr = insertObjectAnnotation(image, 'rectangle', ...
ocrResults.WordBoundingBoxes, ...
ocrResults.WordConfidences);
figure; imshow(Iocr);
And the result should be something like this:
After you apply OCR, in the variable ocrResults you will have a field that will be CharacterBoundingBoxes, where through this you can create a binary mask of ones (on the position of the boxes) and erase everything else (zeros). Of course some noise will be detected as text, but if you work a bit with morphological operations as explained above (bwareaopen) you will have better results.
Is there a way in ZPL to center text vertically?
I know I can use ^FO0,0^ASN,50^FB200,3,0,C,0^FD TEXT ^FS. But how can I make that print on the 2nd line if it's short enough?
There isn't a vertical centering feature, but you can fake it, if you know in advance that your string is short enough to fit on the middle line.
Your ^FB defines a field block that is three lines. So your best option is to determine if your string fits on one line... and if it does, insert a "\&" before your string.
^FO0,0^ASN,50^FB200,3,0,C,0^FD\&TEXT^FS
I already have made a new font to create the barcode in my Smartform. But now the next step.
How can I create a barcode with a horizontal line trough it?
Example:
Hope anyone could help me. I'm pretty stuck here.
i don't think there is a strikethrough option for the fonts.
if the barcode is always present at the same place, and nearly occupy the same place, you could use one of the following method
simulate the line with an empty windows over the one containing the barcode, with a non null border
use an empty window with an image containing the line
regards