Esempio n. 1
0
 def lineFit(self,image,order=1):
     """Return polynomial fits to the baseline and xline."""
     xh,bl = lineproc.estimate_xheight(image)
     return array([bl]),array([bl-xh])
Esempio n. 2
0
 def lineParameters(self,image,order=1):
     """Assuming the line is horizontal, compute xheight and baseline, and all
     the other parameters."""
     xh,bl = lineproc.estimate_xheight(image)
     return bl,bl-xh,array([bl]),array([bl-xh])
Esempio n. 3
0
 def lineParameters(self, image, order=1):
     """Assuming the line is horizontal, compute xheight and baseline, and all
     the other parameters."""
     xh, bl = lineproc.estimate_xheight(image)
     return bl, bl - xh, array([bl]), array([bl - xh])
Esempio n. 4
0
 def lineFit(self,image,order=1):
     """Assuming the line is horizontal, compute xheight and baseline."""
     xh,bl = lineproc.estimate_xheight(image)
     return array([bl]),array([bl-xh])
Esempio n. 5
0
 def lineFit(self, image, order=1):
     """Assuming the line is horizontal, compute xheight and baseline."""
     xh, bl = lineproc.estimate_xheight(image)
     return array([bl]), array([bl - xh])