Region matching
This commit is contained in:
parent
26bfd663d5
commit
63c65ee018
1 changed files with 101 additions and 84 deletions
|
|
@ -6,30 +6,30 @@ No complex visual matching - just track displacement and append strips.
|
||||||
Continuous alignment correction for gear slippage compensation.
|
Continuous alignment correction for gear slippage compensation.
|
||||||
|
|
||||||
FIXES:
|
FIXES:
|
||||||
- Row-start alignment now compares with TRANSITION STRIPS, not old row 1
|
- Y comparison: Compare frame's BOTTOM with ROW 1's TOP (at Y=transition_height)
|
||||||
- Correct X position tracking after row transition
|
- X comparison (LEFT scan): Compare frame's RIGHT with transition strip's LEFT edge
|
||||||
- Fixed LEFT scan stop condition
|
- row_start_y now positions row 2 so its bottom overlaps with row 1's top
|
||||||
|
|
||||||
DEBUG BORDER COLORS (for debugging row 2 placement):
|
DEBUG BORDER COLORS (for debugging row 2 placement):
|
||||||
=================================================
|
=================================================
|
||||||
In _detect_row_start_alignment():
|
In _detect_row_start_alignment():
|
||||||
- WHITE (thick): Outline of where TRANSITION STRIPS are in mosaic (X=x_offset, Y=0 to transition_height)
|
- WHITE (thick): Outline of TRANSITION STRIPS (X=x_offset, Y=0 to transition_height)
|
||||||
- BLUE line: Y=transition_height (boundary between transition strips and old row 1)
|
- BLUE line: Y=transition_height (boundary between transition strips and row 1)
|
||||||
- CYAN: Mosaic region used for Y alignment comparison (bottom of transition strips)
|
- CYAN: Y comparison region - TOP of ROW 1 (just below blue line)
|
||||||
|
- YELLOW: X comparison region - LEFT edge of transition strips (for LEFT scan)
|
||||||
- MAGENTA: Where the new frame is EXPECTED to be placed
|
- MAGENTA: Where the new frame is EXPECTED to be placed
|
||||||
- YELLOW: Mosaic region used for X alignment comparison (edge of transition strips)
|
|
||||||
|
|
||||||
In _blend_horizontal_at_y (append_left):
|
In _blend_horizontal_at_y (append_left):
|
||||||
- RED (thick): Where strip WOULD have been placed (ORIGINAL position before alignment)
|
- RED (thick): Where strip WOULD have been placed (ORIGINAL position)
|
||||||
- GREEN: Where strip was ACTUALLY placed (ADJUSTED position after alignment)
|
- GREEN: Where strip was ACTUALLY placed (ADJUSTED position)
|
||||||
|
|
||||||
MOSAIC LAYOUT AFTER DOWN TRANSITION:
|
MOSAIC LAYOUT AFTER DOWN TRANSITION:
|
||||||
====================================
|
====================================
|
||||||
Y=0 to Y=transition_height: TRANSITION STRIPS (at X=x_offset to X=x_offset+fw)
|
Y=0 to Y=transition_height: TRANSITION STRIPS (at X=x_offset)
|
||||||
Y=transition_height to Y=mh: OLD ROW 1 (shifted down, at X=0 to X=mw)
|
Y=transition_height to Y=mh: ROW 1 (shifted down)
|
||||||
|
|
||||||
Where x_offset = mosaic_width - initial_frame_width
|
Row 2 placement: Y = transition_height - fh + overlap
|
||||||
And transition_height = mosaic_height - initial_frame_height
|
(so row 2's bottom overlaps with row 1's top)
|
||||||
"""
|
"""
|
||||||
|
|
||||||
import cv2
|
import cv2
|
||||||
|
|
@ -212,11 +212,11 @@ class StitchingScanner:
|
||||||
Detect alignment at the START of a new row.
|
Detect alignment at the START of a new row.
|
||||||
|
|
||||||
After a DOWN transition with prepend, the mosaic layout is:
|
After a DOWN transition with prepend, the mosaic layout is:
|
||||||
- Y=0 to Y≈transition_height: TRANSITION STRIPS (placed at x_offset)
|
- Y=0 to Y=transition_height: TRANSITION STRIPS (at X=x_offset)
|
||||||
- Y≈transition_height to Y=mosaic_height: OLD row 1 content (shifted down)
|
- Y=transition_height to Y=mh: OLD ROW 1 (shifted down)
|
||||||
|
|
||||||
The current frame should overlap with the TRANSITION STRIPS, not old row 1.
|
For Y alignment: Compare frame's BOTTOM with ROW 1's TOP (at Y=transition_height)
|
||||||
The camera is at the X position where transition strips were placed.
|
For X alignment (LEFT scan): Compare frame's RIGHT with transition strip's LEFT edge
|
||||||
"""
|
"""
|
||||||
offset = AlignmentOffset()
|
offset = AlignmentOffset()
|
||||||
|
|
||||||
|
|
@ -232,16 +232,14 @@ class StitchingScanner:
|
||||||
x_offset = max(0, mw - self.state.mosaic_init_width)
|
x_offset = max(0, mw - self.state.mosaic_init_width)
|
||||||
|
|
||||||
# Transition height is how much was added during DOWN transition
|
# Transition height is how much was added during DOWN transition
|
||||||
# transition_height = mh - original_height_before_transition
|
|
||||||
# But since row 1 was just fh tall, transition_height = mh - fh
|
|
||||||
transition_height = mh - fh
|
transition_height = mh - fh
|
||||||
|
|
||||||
self.log(f" Row-start alignment: mosaic {mw}x{mh}, frame {fw}x{fh}")
|
self.log(f" Row-start alignment: mosaic {mw}x{mh}, frame {fw}x{fh}")
|
||||||
self.log(f" Transition strips at: X={x_offset}, Y=0 to Y={transition_height}")
|
self.log(f" Transition strips at: X={x_offset}, Y=0 to Y={transition_height}")
|
||||||
self.log(f" Old row 1 shifted to: Y={transition_height} to Y={mh}")
|
self.log(f" Old row 1 at: Y={transition_height} to Y={mh}")
|
||||||
|
|
||||||
# ========== DEBUG: Draw borders showing layout ==========
|
# ========== DEBUG: Draw borders showing layout ==========
|
||||||
# WHITE border: Where TRANSITION STRIPS are (this is what we should compare with)
|
# WHITE border: Where TRANSITION STRIPS are
|
||||||
cv2.rectangle(self.mosaic,
|
cv2.rectangle(self.mosaic,
|
||||||
(x_offset, 0),
|
(x_offset, 0),
|
||||||
(min(x_offset + fw, mw), transition_height),
|
(min(x_offset + fw, mw), transition_height),
|
||||||
|
|
@ -253,81 +251,84 @@ class StitchingScanner:
|
||||||
self.log(f" DEBUG: BLUE line at Y={transition_height} (transition/row1 boundary)")
|
self.log(f" DEBUG: BLUE line at Y={transition_height} (transition/row1 boundary)")
|
||||||
|
|
||||||
vertical_overlap = min(200, fh // 3)
|
vertical_overlap = min(200, fh // 3)
|
||||||
|
horizontal_overlap = min(200, fw // 3)
|
||||||
min_overlap = 50
|
min_overlap = 50
|
||||||
|
|
||||||
# =============================================
|
# =============================================
|
||||||
# Step 1: Detect Y alignment
|
# Step 1: Detect Y alignment
|
||||||
# =============================================
|
# =============================================
|
||||||
# Compare frame's TOP with the BOTTOM of transition strips
|
# Compare frame's BOTTOM with ROW 1's TOP (at Y=transition_height)
|
||||||
# Frame's top portion overlaps with mosaic's transition bottom
|
# Frame's bottom should overlap with the area just below the blue line
|
||||||
#
|
#
|
||||||
# Transition strips are at Y=0 to Y=transition_height
|
# Row 1's top is at Y=transition_height
|
||||||
# So transition bottom is around Y=(transition_height - overlap) to Y=transition_height
|
# So compare mosaic[transition_height : transition_height+overlap]
|
||||||
|
|
||||||
transition_compare_y_end = transition_height
|
row1_top_start = transition_height
|
||||||
transition_compare_y_start = max(0, transition_height - vertical_overlap)
|
row1_top_end = min(transition_height + vertical_overlap, mh)
|
||||||
|
|
||||||
# Frame's TOP should overlap with transition BOTTOM
|
# Frame's BOTTOM portion (will overlap with row 1's top)
|
||||||
frame_top = frame[:vertical_overlap, :]
|
frame_bottom = frame[fh - vertical_overlap:fh, :]
|
||||||
|
|
||||||
# Get the X range - centered on where transition strips are
|
# Get the X range - centered on where transition strips are
|
||||||
x_start = x_offset
|
x_start = x_offset
|
||||||
x_end = min(x_offset + fw, mw)
|
x_end = min(x_offset + fw, mw)
|
||||||
compare_width = x_end - x_start
|
compare_width = x_end - x_start
|
||||||
|
|
||||||
if transition_compare_y_start >= 0 and compare_width >= min_overlap:
|
if row1_top_end > row1_top_start and compare_width >= min_overlap:
|
||||||
# Mosaic region: bottom of transition strips
|
# Mosaic region: TOP of row 1 (just below the transition)
|
||||||
mosaic_transition_bottom = self.mosaic[transition_compare_y_start:transition_compare_y_end,
|
mosaic_row1_top = self.mosaic[row1_top_start:row1_top_end, x_start:x_end]
|
||||||
x_start:x_end]
|
|
||||||
|
|
||||||
# Frame region: top portion (what overlaps with transition)
|
# Frame region: bottom portion
|
||||||
frame_compare = frame_top[:, :compare_width]
|
frame_compare = frame_bottom[:, :compare_width]
|
||||||
|
|
||||||
# ========== DEBUG: Save frame with comparison region marked ==========
|
# ========== DEBUG: Save frame with comparison region marked ==========
|
||||||
debug_frame = frame.copy()
|
debug_frame = frame.copy()
|
||||||
cv2.rectangle(debug_frame, (0, 0), (compare_width, vertical_overlap),
|
cv2.rectangle(debug_frame, (0, fh - vertical_overlap), (compare_width, fh),
|
||||||
(255, 255, 0), 2) # CYAN - frame's top region used for Y comparison
|
(255, 255, 0), 2) # CYAN - frame's bottom region used for Y comparison
|
||||||
self.log(f" DEBUG: Frame Y comparison region: X=0:{compare_width}, Y=0:{vertical_overlap}")
|
self.log(f" DEBUG: Frame Y comparison region: X=0:{compare_width}, Y={fh - vertical_overlap}:{fh}")
|
||||||
try:
|
try:
|
||||||
cv2.imwrite('/tmp/debug_frame_row2_start.png', debug_frame)
|
cv2.imwrite('/tmp/debug_frame_row2_start.png', debug_frame)
|
||||||
except:
|
except:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
# ========== DEBUG: Draw CYAN border on mosaic for Y comparison region ==========
|
# ========== DEBUG: Draw CYAN border on mosaic for Y comparison region ==========
|
||||||
|
# CYAN at TOP of row 1 (just below blue line)
|
||||||
cv2.rectangle(self.mosaic,
|
cv2.rectangle(self.mosaic,
|
||||||
(x_start, transition_compare_y_start),
|
(x_start, row1_top_start),
|
||||||
(x_end, transition_compare_y_end),
|
(x_end, row1_top_end),
|
||||||
(255, 255, 0), 2) # CYAN - mosaic comparison region for Y
|
(255, 255, 0), 2) # CYAN - mosaic comparison region for Y
|
||||||
self.log(f" DEBUG: CYAN border - mosaic Y comparison region X={x_start}:{x_end}, Y={transition_compare_y_start}:{transition_compare_y_end}")
|
self.log(f" DEBUG: CYAN border - mosaic Y comparison region X={x_start}:{x_end}, Y={row1_top_start}:{row1_top_end}")
|
||||||
|
|
||||||
# MAGENTA border: Where frame is EXPECTED to be placed (at transition position)
|
# MAGENTA border: Where frame is EXPECTED to be placed
|
||||||
|
expected_y_start = transition_height - fh + vertical_overlap # Frame overlaps with row 1
|
||||||
|
expected_y_start = max(0, expected_y_start)
|
||||||
cv2.rectangle(self.mosaic,
|
cv2.rectangle(self.mosaic,
|
||||||
(x_start, 0),
|
(x_start, expected_y_start),
|
||||||
(x_end, fh),
|
(x_end, expected_y_start + fh),
|
||||||
(255, 0, 255), 2) # MAGENTA - expected frame position
|
(255, 0, 255), 2) # MAGENTA - expected frame position
|
||||||
self.log(f" DEBUG: MAGENTA border - expected frame position X={x_start}:{x_end}, Y=0:{fh}")
|
self.log(f" DEBUG: MAGENTA border - expected frame position X={x_start}:{x_end}, Y={expected_y_start}:{expected_y_start + fh}")
|
||||||
|
|
||||||
min_w = min(frame_compare.shape[1], mosaic_transition_bottom.shape[1])
|
min_w = min(frame_compare.shape[1], mosaic_row1_top.shape[1])
|
||||||
min_h = min(frame_compare.shape[0], mosaic_transition_bottom.shape[0])
|
min_h = min(frame_compare.shape[0], mosaic_row1_top.shape[0])
|
||||||
|
|
||||||
if min_w >= min_overlap and min_h >= min_overlap:
|
if min_w >= min_overlap and min_h >= min_overlap:
|
||||||
frame_compare = frame_compare[:min_h, :min_w]
|
frame_compare = frame_compare[:min_h, :min_w]
|
||||||
mosaic_transition_bottom = mosaic_transition_bottom[:min_h, :min_w]
|
mosaic_row1_top = mosaic_row1_top[:min_h, :min_w]
|
||||||
|
|
||||||
# ========== DEBUG: Save the comparison regions as images ==========
|
# ========== DEBUG: Save the comparison regions as images ==========
|
||||||
try:
|
try:
|
||||||
cv2.imwrite('/tmp/debug_frame_top_region.png', frame_compare)
|
cv2.imwrite('/tmp/debug_frame_bottom_region.png', frame_compare)
|
||||||
cv2.imwrite('/tmp/debug_mosaic_transition_region.png', mosaic_transition_bottom)
|
cv2.imwrite('/tmp/debug_mosaic_row1top_region.png', mosaic_row1_top)
|
||||||
self.log(f" DEBUG: Saved comparison regions to /tmp/debug_*.png")
|
self.log(f" DEBUG: Saved comparison regions to /tmp/debug_*.png")
|
||||||
except:
|
except:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
# Detect displacement
|
# Detect displacement
|
||||||
dx_v, dy_v, conf_v = self._detect_displacement_with_confidence(
|
dx_v, dy_v, conf_v = self._detect_displacement_with_confidence(
|
||||||
mosaic_transition_bottom, frame_compare)
|
mosaic_row1_top, frame_compare)
|
||||||
|
|
||||||
self.log(f" Row-start Y alignment: dx={dx_v:.1f}, dy={dy_v:.1f}, conf={conf_v:.3f}")
|
self.log(f" Row-start Y alignment: dx={dx_v:.1f}, dy={dy_v:.1f}, conf={conf_v:.3f}")
|
||||||
self.log(f" Compared frame[0:{vertical_overlap}] with mosaic[{transition_compare_y_start}:{transition_compare_y_end}]")
|
self.log(f" Compared frame[{fh - vertical_overlap}:{fh}] with mosaic[{row1_top_start}:{row1_top_end}]")
|
||||||
|
|
||||||
if conf_v > 0.1:
|
if conf_v > 0.1:
|
||||||
offset.y_offset = dy_v
|
offset.y_offset = dy_v
|
||||||
|
|
@ -336,29 +337,34 @@ class StitchingScanner:
|
||||||
# =============================================
|
# =============================================
|
||||||
# Step 2: Detect X alignment
|
# Step 2: Detect X alignment
|
||||||
# =============================================
|
# =============================================
|
||||||
horizontal_overlap = min(200, fw // 3)
|
|
||||||
|
|
||||||
if direction == ScanDirection.LEFT:
|
if direction == ScanDirection.LEFT:
|
||||||
# For LEFT scan: frame starts at the transition X position
|
# For LEFT scan: frame will move LEFT
|
||||||
# Compare frame's RIGHT edge with mosaic's transition strip RIGHT edge
|
# Frame's RIGHT edge will overlap with existing content's LEFT edge
|
||||||
|
# The LEFT edge of transition strips is at X=x_offset
|
||||||
|
# Compare frame's RIGHT with mosaic's LEFT edge of transition strips
|
||||||
|
|
||||||
transition_x_end = min(x_offset + fw, mw)
|
# Mosaic region: LEFT edge of transition strips
|
||||||
transition_x_start = max(x_offset, transition_x_end - horizontal_overlap)
|
mosaic_x_start = x_offset
|
||||||
|
mosaic_x_end = min(x_offset + horizontal_overlap, mw)
|
||||||
|
|
||||||
# Y range: within the transition strip area
|
# Y range: within the transition strip area AND row 1 top
|
||||||
y_start = 0
|
y_start = max(0, transition_height - fh // 2)
|
||||||
y_end = min(transition_height, fh)
|
y_end = min(transition_height + fh // 2, mh)
|
||||||
|
|
||||||
if transition_x_end - transition_x_start >= min_overlap:
|
if mosaic_x_end > mosaic_x_start and y_end > y_start:
|
||||||
mosaic_edge = self.mosaic[y_start:y_end, transition_x_start:transition_x_end]
|
mosaic_edge = self.mosaic[y_start:y_end, mosaic_x_start:mosaic_x_end]
|
||||||
frame_edge = frame[:y_end, fw - (transition_x_end - transition_x_start):fw]
|
|
||||||
|
# Frame's RIGHT edge
|
||||||
|
frame_edge = frame[:min(y_end - y_start, fh), fw - (mosaic_x_end - mosaic_x_start):fw]
|
||||||
|
|
||||||
# ========== DEBUG: Draw YELLOW border for X comparison region ==========
|
# ========== DEBUG: Draw YELLOW border for X comparison region ==========
|
||||||
|
# YELLOW on LEFT side of transition strips
|
||||||
cv2.rectangle(self.mosaic,
|
cv2.rectangle(self.mosaic,
|
||||||
(transition_x_start, y_start),
|
(mosaic_x_start, y_start),
|
||||||
(transition_x_end, y_end),
|
(mosaic_x_end, y_end),
|
||||||
(0, 255, 255), 2) # YELLOW - mosaic comparison region for X
|
(0, 255, 255), 2) # YELLOW - mosaic comparison region for X
|
||||||
self.log(f" DEBUG: YELLOW border - mosaic X comparison region X={transition_x_start}:{transition_x_end}, Y={y_start}:{y_end}")
|
self.log(f" DEBUG: YELLOW border - mosaic X comparison region X={mosaic_x_start}:{mosaic_x_end}, Y={y_start}:{y_end}")
|
||||||
|
|
||||||
min_h = min(mosaic_edge.shape[0], frame_edge.shape[0])
|
min_h = min(mosaic_edge.shape[0], frame_edge.shape[0])
|
||||||
min_w = min(mosaic_edge.shape[1], frame_edge.shape[1])
|
min_w = min(mosaic_edge.shape[1], frame_edge.shape[1])
|
||||||
|
|
@ -377,22 +383,23 @@ class StitchingScanner:
|
||||||
if conf_h > offset.confidence:
|
if conf_h > offset.confidence:
|
||||||
offset.confidence = conf_h
|
offset.confidence = conf_h
|
||||||
else:
|
else:
|
||||||
# For RIGHT scan at row start (similar logic but for left edge)
|
# For RIGHT scan at row start
|
||||||
transition_x_start = x_offset
|
# Frame's LEFT edge will overlap with existing content's RIGHT edge
|
||||||
transition_x_end = min(x_offset + horizontal_overlap, mw)
|
mosaic_x_end = min(x_offset + fw, mw)
|
||||||
|
mosaic_x_start = max(mosaic_x_end - horizontal_overlap, x_offset)
|
||||||
|
|
||||||
y_start = 0
|
y_start = max(0, transition_height - fh // 2)
|
||||||
y_end = min(transition_height, fh)
|
y_end = min(transition_height + fh // 2, mh)
|
||||||
|
|
||||||
if transition_x_end - transition_x_start >= min_overlap:
|
if mosaic_x_end > mosaic_x_start and y_end > y_start:
|
||||||
mosaic_edge = self.mosaic[y_start:y_end, transition_x_start:transition_x_end]
|
mosaic_edge = self.mosaic[y_start:y_end, mosaic_x_start:mosaic_x_end]
|
||||||
frame_edge = frame[:y_end, :transition_x_end - transition_x_start]
|
frame_edge = frame[:min(y_end - y_start, fh), :mosaic_x_end - mosaic_x_start]
|
||||||
|
|
||||||
cv2.rectangle(self.mosaic,
|
cv2.rectangle(self.mosaic,
|
||||||
(transition_x_start, y_start),
|
(mosaic_x_start, y_start),
|
||||||
(transition_x_end, y_end),
|
(mosaic_x_end, y_end),
|
||||||
(0, 255, 255), 2) # YELLOW
|
(0, 255, 255), 2) # YELLOW
|
||||||
self.log(f" DEBUG: YELLOW border - mosaic X comparison region X={transition_x_start}:{transition_x_end}, Y={y_start}:{y_end}")
|
self.log(f" DEBUG: YELLOW border - mosaic X comparison region X={mosaic_x_start}:{mosaic_x_end}, Y={y_start}:{y_end}")
|
||||||
|
|
||||||
min_h = min(mosaic_edge.shape[0], frame_edge.shape[0])
|
min_h = min(mosaic_edge.shape[0], frame_edge.shape[0])
|
||||||
min_w = min(mosaic_edge.shape[1], frame_edge.shape[1])
|
min_w = min(mosaic_edge.shape[1], frame_edge.shape[1])
|
||||||
|
|
@ -1301,22 +1308,32 @@ class StitchingScanner:
|
||||||
self.log(f"Row transition complete: {abs(total_y):.1f}px")
|
self.log(f"Row transition complete: {abs(total_y):.1f}px")
|
||||||
self.log(f"Alignment after row transition: X={self._cumulative_align_x:.1f}, Y={self._cumulative_align_y:.1f}")
|
self.log(f"Alignment after row transition: X={self._cumulative_align_x:.1f}, Y={self._cumulative_align_y:.1f}")
|
||||||
|
|
||||||
# Calculate the Y position in the mosaic where the new row starts
|
# Calculate the Y position in the mosaic where the new row should be placed
|
||||||
# Since we use append_below=False during DOWN movement, new content
|
# After prepending, the layout is:
|
||||||
# is PREPENDED to the TOP of the mosaic. So the new row starts at Y=0
|
# Y=0 to Y=transition_height: transition strips
|
||||||
self._row_start_y = 0 # New row is at the TOP after prepending
|
# Y=transition_height to Y=mh: old row 1 (shifted down)
|
||||||
|
#
|
||||||
|
# Row 2 should be placed so its BOTTOM overlaps with row 1's TOP
|
||||||
|
# transition_height = mh - fh (height added during transition)
|
||||||
|
# overlap_pixels = h * row_overlap
|
||||||
|
#
|
||||||
|
# Row 2 Y position: transition_height - fh + overlap_pixels
|
||||||
|
# This puts row 2's bottom at: (transition_height - fh + overlap) + fh = transition_height + overlap
|
||||||
|
# Which overlaps with row 1's top at Y=transition_height
|
||||||
|
|
||||||
|
overlap_pixels = int(h * self.config.row_overlap)
|
||||||
|
transition_height = self.state.mosaic_height - h
|
||||||
|
self._row_start_y = max(0, transition_height - h + overlap_pixels)
|
||||||
|
|
||||||
# Calculate the X position where transition strips were placed
|
# Calculate the X position where transition strips were placed
|
||||||
# This is where the camera is now (ready to start row 2)
|
|
||||||
x_offset = max(0, self.state.mosaic_width - self.state.mosaic_init_width)
|
x_offset = max(0, self.state.mosaic_width - self.state.mosaic_init_width)
|
||||||
|
|
||||||
self.log(f"New row Y position: {self._row_start_y} (mosaic height: {self.state.mosaic_height})")
|
self.log(f"New row Y position: {self._row_start_y} (transition_height={transition_height}, overlap={overlap_pixels})")
|
||||||
self.log(f"New row X position: {x_offset} (transition strip location)")
|
self.log(f"New row X position: {x_offset} (transition strip location)")
|
||||||
|
|
||||||
with self._state_lock:
|
with self._state_lock:
|
||||||
self.state.current_y = 0
|
self.state.current_y = 0
|
||||||
# Set current_x to the x_offset where transition strips are
|
# Set current_x to the x_offset where transition strips are
|
||||||
# This is where row 2 will START (then scan LEFT from here)
|
|
||||||
self.state.current_x = x_offset
|
self.state.current_x = x_offset
|
||||||
|
|
||||||
self.motion.send_command('s')
|
self.motion.send_command('s')
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue