diff --git a/src/layoutparser/tools/shape_operations.py b/src/layoutparser/tools/shape_operations.py index 1f60ab6..47dc077 100644 --- a/src/layoutparser/tools/shape_operations.py +++ b/src/layoutparser/tools/shape_operations.py @@ -126,7 +126,7 @@ def is_line_wise_close(token_a, token_b, x_tolerance, y_tolerance): detected_lines = generalized_connected_component_analysis_1d( layout, scoring_func=partial( - is_line_wise_close, y_tolerance=x_tolerance, x_tolerance=y_tolerance + is_line_wise_close, y_tolerance=y_tolerance, x_tolerance=x_tolerance ), aggregation_func=lambda seq: reduce(layout[0].__class__.union, seq), )