stich logging
This commit is contained in:
parent
57399de03f
commit
fc0f48eed4
1 changed files with 8 additions and 7 deletions
|
|
@ -162,6 +162,7 @@ class StitchingScanner:
|
||||||
|
|
||||||
h_base, w_base = base.shape[:2]
|
h_base, w_base = base.shape[:2]
|
||||||
h_strip, w_strip = strip.shape[:2]
|
h_strip, w_strip = strip.shape[:2]
|
||||||
|
self.log(f"Base Width: {w_base}px")
|
||||||
|
|
||||||
if h_strip != h_base:
|
if h_strip != h_base:
|
||||||
if append_right:
|
if append_right:
|
||||||
|
|
@ -507,14 +508,14 @@ class StitchingScanner:
|
||||||
stop_reason = 'timeout'
|
stop_reason = 'timeout'
|
||||||
break
|
break
|
||||||
|
|
||||||
if current_dim() >= max_dim and direction == ScanDirection.RIGHT:
|
if current_dim() >= max_dim:
|
||||||
self.log(f"Max dimension reached ({current_dim()}px)")
|
self.log(f"Max dimension reached ({current_dim()}px)")
|
||||||
stop_reason = 'max_dim'
|
stop_reason = 'max_dim'
|
||||||
break
|
break
|
||||||
if current_dim() <= 0 and direction == ScanDirection.LEFT:
|
# if current_dim() <= 0 and direction == ScanDirection.LEFT:
|
||||||
self.log(f"Max dimension reached ({current_dim()}px)")
|
# self.log(f"Max dimension reached ({current_dim()}px)")
|
||||||
stop_reason = 'min_dim'
|
# stop_reason = 'min_dim'
|
||||||
break
|
# break
|
||||||
|
|
||||||
if abs(total_x) >= self.config.max_mosaic_width:
|
if abs(total_x) >= self.config.max_mosaic_width:
|
||||||
self.log(f"Max dimension reached ({self.config.max_mosaic_width}px)")
|
self.log(f"Max dimension reached ({self.config.max_mosaic_width}px)")
|
||||||
|
|
@ -523,8 +524,8 @@ class StitchingScanner:
|
||||||
elif direction == ScanDirection.LEFT:
|
elif direction == ScanDirection.LEFT:
|
||||||
self.state.current_x = 0
|
self.state.current_x = 0
|
||||||
self.log(f"Current X offset ({self.state.current_x}px)")
|
self.log(f"Current X offset ({self.state.current_x}px)")
|
||||||
# stop_reason = 'max_dim'
|
stop_reason = 'max_dim'
|
||||||
# break
|
break
|
||||||
# Pulse motor
|
# Pulse motor
|
||||||
self.motion.send_command(start_cmd)
|
self.motion.send_command(start_cmd)
|
||||||
time.sleep(self.config.movement_interval)
|
time.sleep(self.config.movement_interval)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue