Permalink
Browse files

Delete unused function bounding_box in ocropus-linegen

  • Loading branch information...
zuphilip committed May 13, 2017
1 parent 986e75e commit 682ec64c252619ddf30817e281361fe54ee79929
Showing with 0 additions and 8 deletions.
  1. +0 −8 ocropus-linegen
View
@@ -137,14 +137,6 @@ def rdistort(image,distort=3.0,dsigma=10.0,cval=0):
if args.debug_show:
ion(); gray()
def bounding_box(a):
a = array(a>0,'i')
l = measurements.find_objects(a)
if len(l)<1: return (0,0,0,0)
ys,xs = l[0]
# y0,x0,y1,x1
return (ys.start,xs.start,ys.stop,xs.stop)
base = args.base
print("base", base)
os.system("rm -rf "+base)

0 comments on commit 682ec64

Please sign in to comment.