def _good_segments(self, segments): lines = guess_segments_lines( segments, self.lines_topmiddlebottoms, nearline_tolerance=self.nearline_tolerance) good = lines != -1 return good
def _good_segments( self, segments ): lines= guess_segments_lines(segments, self.lines_topmiddlebottoms, nearline_tolerance=self.nearline_tolerance) good= lines!=-1 return good