ocrd_models.xpath_functions module

ocrd_models.xpath_functions.pc_pixelarea(nodes)[source]

Extract Coords/@points from all nodes, calculate the bounding box, and accumulate areas.

ocrd_models.xpath_functions.pc_textequiv(nodes)[source]

Extract TextEquiv/Unicode from all nodes, then concatenate (interspersed with spaces or newlines).