Beispiel #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])
Beispiel #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])
Beispiel #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])
Beispiel #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])
Beispiel #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])