private static PageXmlDocument.PageXmlTextRegion ToPageXmlTextRegion(int id, RectangleF bbox, PageXmlDocument.PageXmlTextSimpleType type) { regionCount++; return(new PageXmlDocument.PageXmlTextRegion() { Coords = ToCoords(bbox), Type = type, Id = "r" + id.ToString() }); }
private static PageXmlDocument.PageXmlTextRegion ToPageXmlTextRegion(int id, IEnumerable <PointF> segmentation, PageXmlDocument.PageXmlTextSimpleType type) { regionCount++; return(new PageXmlDocument.PageXmlTextRegion() { Coords = ToCoords(segmentation), Type = type, Id = "r" + id.ToString() }); }