Switch to updated "preview stitch" mode in stitching
This commit is contained in:
parent
4f98e17b5f
commit
a499d9230c
1 changed files with 3 additions and 2 deletions
|
|
@ -932,7 +932,7 @@ class SmartScanThing(Thing):
|
||||||
raise FileNotFoundError("No latest scan found")
|
raise FileNotFoundError("No latest scan found")
|
||||||
|
|
||||||
images_dir = self.images_dir_for_scan(self.latest_scan_name)
|
images_dir = self.images_dir_for_scan(self.latest_scan_name)
|
||||||
stitch_path = os.path.join(images_dir, "stitched_from_stage.jpg")
|
stitch_path = os.path.join(images_dir, "preview.jpg")
|
||||||
if not os.path.isfile(stitch_path):
|
if not os.path.isfile(stitch_path):
|
||||||
raise FileNotFoundError("Latest scan has no preview stitch")
|
raise FileNotFoundError("Latest scan has no preview stitch")
|
||||||
return stitch_path
|
return stitch_path
|
||||||
|
|
@ -987,7 +987,7 @@ class SmartScanThing(Thing):
|
||||||
[
|
[
|
||||||
STITCHING_CMD,
|
STITCHING_CMD,
|
||||||
"--stitching_mode",
|
"--stitching_mode",
|
||||||
"only_stage_stitch",
|
"preview_stitch",
|
||||||
"--minimum_overlap",
|
"--minimum_overlap",
|
||||||
f"{min_overlap}",
|
f"{min_overlap}",
|
||||||
self._ongoing_scan_images_dir,
|
self._ongoing_scan_images_dir,
|
||||||
|
|
@ -1166,6 +1166,7 @@ class SmartScanThing(Thing):
|
||||||
"stitched_from",
|
"stitched_from",
|
||||||
"stitched.om",
|
"stitched.om",
|
||||||
"stitching_correlations",
|
"stitching_correlations",
|
||||||
|
"preview.jp",
|
||||||
]
|
]
|
||||||
|
|
||||||
with zipfile.ZipFile(zip_fname, mode="a") as scan_zip:
|
with zipfile.ZipFile(zip_fname, mode="a") as scan_zip:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue