add private variable and copy when return by readinfo

This commit is contained in:
unknown
2025-12-30 14:52:06 +08:00
parent 2a739ed27c
commit 398d2b1706
8 changed files with 134 additions and 158 deletions
+3 -3
View File
@@ -6,7 +6,7 @@ import cv2
class Stitcher:
def __init__(self,isstitch=False, n=[3,3], config_stitcher=None,verbose=False):
def __init__(self,isstitch=False, config_stitcher=None,verbose=False):
# Settings
self.isstitch = isstitch
@@ -22,8 +22,8 @@ class Stitcher:
self.boxes = self.units = None
self.index = config_stitcher["index"]
self.stitch_calibration = self.tile_list = []
self.ncol = n[0]
self.nrow = n[1]
self.ncol = config_stitcher["n"][0]
self.nrow = config_stitcher["n"][1]
self.nominal_ov_pos=config_stitcher["nominal_ov_pos"]
self.margin=config_stitcher["margin"]
self.bound=self.nominal_ov_pos - self.margin