find contour optimization
tree criteria of textline prediction