Ejemplo n.º 1
0
 def find_min_radii(self,pts):
     
     bottom = find_bottom(pts)
     e1, e2 = find_long_edges(pts, bottom)  # find two long edge sequence
     inner_points1 = split_edge_seqence(pts, e1, 16)
     inner_points2 = split_edge_seqence(pts, e2, 16)
     inner_points2 = inner_points2[::-1]
     center_points = (inner_points1 + inner_points2) / 2  # disk center
     radii = norm2(inner_points1 - center_points, axis=1)
     return inner_points1,inner_points2,center_points
Ejemplo n.º 2
0
 def find_bottom_and_sideline(self):
     self.bottoms = find_bottom(
         self.points)  # find two bottoms of this Text
     self.e1, self.e2 = find_long_edges(
         self.points, self.bottoms)  # find two long edge sequence
Ejemplo n.º 3
0
 def find_bottom_and_sideline(self):
     self.bottoms = find_bottom(self.points)
     self.e1, self.e2 = find_long_edges(self.points, self.bottoms)
Ejemplo n.º 4
0
 def find_bottom_and_sideline(self):
     # 计算俩个文本区域的俩端
     self.bottoms = find_bottom(self.points)
     # 计算长边序列
     self.e1, self.e2 = find_long_edges(self.points, self.bottoms)