diff --git a/src/stitching_scanner.py b/src/stitching_scanner.py index 4485f51..6a8119f 100644 --- a/src/stitching_scanner.py +++ b/src/stitching_scanner.py @@ -696,7 +696,7 @@ class StitchingScanner: # ========== DEBUG: Draw borders BEFORE placing strip ========== # RED border: Where strip WOULD have been placed (original position) - orig_x_end = min(original_x_offset - (w_strip * 2), w_base) + orig_x_end = min(original_x_offset - w_strip, w_base) orig_y_end = min(original_y_offset + h_strip, h_base) if original_x_offset >= 0 and original_y_offset >= 0: cv2.rectangle(result, @@ -713,7 +713,7 @@ class StitchingScanner: self.log(f" Step 1: Placed non-blend at X={strip_x_start}:{strip_x_start + non_blend_end}") # Step 2: Create blend on the RIGHT edge of strip (blending with existing content) - blend_x_start = strip_x_end - blend_w + blend_x_start = strip_x_end - (blend_w * 2) blend_x_end = strip_x_end if blend_w > 0 and blend_x_start >= strip_x_start: