diff --git a/.gitignore b/.gitignore index d334382..ed2bc36 100644 --- a/.gitignore +++ b/.gitignore @@ -10,4 +10,5 @@ orisys.egg-info/ /old_orisys/ /dist_nuitka/ /build_nuitka -/data/ \ No newline at end of file +/data/ +/config/ \ No newline at end of file diff --git a/nuitka-crash-report.xml b/nuitka-crash-report.xml new file mode 100644 index 0000000..2864272 --- /dev/null +++ b/nuitka-crash-report.xml @@ -0,0 +1,159 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/patch_generation/raw_1.jpg b/patch_generation/raw_1.jpg new file mode 100644 index 0000000..24bfbdd Binary files /dev/null and b/patch_generation/raw_1.jpg differ diff --git a/patch_generation/red_pattern.png b/patch_generation/red_pattern.png new file mode 100644 index 0000000..eaeab93 Binary files /dev/null and b/patch_generation/red_pattern.png differ diff --git a/patch_generation/s1.jpg b/patch_generation/s1.jpg new file mode 100644 index 0000000..5b6cce0 Binary files /dev/null and b/patch_generation/s1.jpg differ diff --git a/patch_generation/yellow_pattern.png b/patch_generation/yellow_pattern.png new file mode 100644 index 0000000..6dc0e91 Binary files /dev/null and b/patch_generation/yellow_pattern.png differ diff --git a/src/orisys/Stitcher.py b/src/orisys/Stitcher.py index 6867466..5e50b36 100644 --- a/src/orisys/Stitcher.py +++ b/src/orisys/Stitcher.py @@ -509,7 +509,7 @@ class Stitcher: heights = [b[3] - b[1] for b in cropped_boxes] median_height = np.median(heights) if heights else target_h # Use a fraction of the box height as tolerance (e.g., 20% of box height) - row_tolerance = max(1, int(median_height * 0.2)) + row_tolerance = max(1, int(median_height * 0.4)) # Quantize y-coordinates to group boxes into rows def get_row_key(box):