示例#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()
     });
 }
示例#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()
     });
 }