Printing labels on vector layers by geoserver print module (MapFish) - pdf

I use MapFish plugin for geoserver. Vector layers are printed fine but text labels on them do not appear in pdf. Although they are visible on the map before printing.
Help me please =)

Please, use latest mapfish-print. You need to download and compile it as described here https://github.com/mapfish/mapfish-print

Related

How to get labels for ILSVRC2012 Classification Task

The ILSVRC 2012 small classification dataset is not separated by folder and don't have a labels file. How get the labels for the training set?
I tried on nonpub downloads page but does not exist anymore, and i tried by the filenames but their don't have the synset id on it.
I've been having the same issue today following this tutorial on reproducing ImageNet Validation results. I think I've found an answer, even if partial
In the article they point out to this link to get the validation set for object detection. I downloaded it and had the same issue as yourself, it only contains images without labels. What I've found is that this same website had this other link for the bounding boxes. I've downloaded it and alongside with the bboxes it comes with the proper class for each image
Hope this helps!

Keeping TOC layers unchecked on first load in ArcGIS JavaScript API

I am using NLiu's TOC widget for displaying the layers. It is working perfectly, however, I wanted to keep all layers unchecked when it is loading on the browser (for performance reason). I tried to find a way on its javascript files but not succeed.
Any clue to do so?
Set the layer's visible layers to none:
layer.setVisibleLayers([])

Create PDF layers using DomPDF

I'm trying to create a PDF with layers, one for the texts and the other for a background image so user can print only the text layer.
Does anyone knows if it's possible and if so, how can I do that ?
I'm using version 0.8.2.
Thanks
Finally it looks like layers or the Optional Content Groups are not supported by DomPDF. So my solution was to change to TCPDF, it's not great for CSS but it offers the option to create layers and change the visibility of objects in the PDF.
So you can set objects to show only in screen or print.
I hope this can help if someone has the same issue.
Here's the link to TCPDF

XSL-FO display watermark only when printed

Using XSL-FO, is it possible to add a watermark to a document that is visible only when it is printed?
MY XSL-FO output format is PDF.
I suspect that the answer is no, but I would love to hear different.
AH Formatter from Antenna House can produce PDF with print-only layers as you describe. See http://www.antennahouse.com/product/ahf60/docs/ahf-ext.html#pdf-layer
You could put the print-only watermark in one of the side regions and use axf:layer to make it appear on a layer that you have set up to be print-only.
There is a free renderer named altsoft xml2pdf that supports layers, see https://www.alt-soft.com/tutorial/xslfo_tutorial/xsl-fo_extensions_pdf-layer.html
I use this renderer for regular production since years, but its windows only.

Tesseract cannot recognize my image correctly

I am developing an Android app now, it needs to recognize captcha from website.
I utilize the tess-two to recognize captcha and follow TrainingTesseract3 instructions to train my own traineddata (using jTessBoxEditor to correct characters), but it cannot recognize correctly and even cannot recognize it.
The below TIFF image is that I use to train my Tesseract, I collect many captchas and merge them into a image.
TIFF image
The image that I want to recognize
For example, the expected result of the above image should be k8666, but the actual result is only 66.
Does anyone give me a help? Thanks.
I tried your images using a .NET wrapper for tesseract-ocr Tesseract-ocr .Net Wrapper by Charliesw.
I got some better results like (K8EEE, K8656), i think you have to increase the text font and make it bold and i saved the image in tiff format with 96DPI resolution to get a better results than mine.