Esempio n. 1
0
 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()
     });
 }
Esempio n. 2
0
 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()
     });
 }