config json update
This commit is contained in:
@@ -6,11 +6,12 @@ import cv2
|
||||
|
||||
class Stitcher:
|
||||
|
||||
def __init__(self,isstitch=False, n=[3,3], index=np.array([1,2,3,6,7,8,11,12,13]), config_stitcher=None):
|
||||
def __init__(self,isstitch=False, n=[3,3], config_stitcher=None,verbose=False):
|
||||
|
||||
# Settings
|
||||
self.isstitch = isstitch
|
||||
self.config_stitcher = config_stitcher
|
||||
self.verbose = verbose
|
||||
# Find Boxes Related
|
||||
self.min_area_frac = config_stitcher["min_area_frac"]
|
||||
self.max_area_frac = config_stitcher["max_area_frac"]
|
||||
@@ -19,16 +20,16 @@ class Stitcher:
|
||||
# stitch related
|
||||
self.stitch_valid = False
|
||||
self.boxes = self.units = None
|
||||
self.index = index
|
||||
self.index = config_stitcher["index"]
|
||||
self.stitch_calibration = self.tile_list = []
|
||||
self.ncol = n[0]
|
||||
self.nrow = n[1]
|
||||
self.nominal_ov_pos=100
|
||||
self.margin=10
|
||||
self.nominal_ov_pos=config_stitcher["nominal_ov_pos"]
|
||||
self.margin=config_stitcher["margin"]
|
||||
self.bound=self.nominal_ov_pos - self.margin
|
||||
|
||||
# for sensor 1
|
||||
self.pos_default = [(260, 56), (577, 62), (897, 69), (1214, 75), (1530, 81), (256, 391), (570, 397), (889, 403), (1208, 409), (1523, 416), (248, 724), (563, 730), (882, 738), (1201, 743), (1516, 751)]
|
||||
self.pos_default = config_stitcher["pos_default"]
|
||||
|
||||
def stitch_rt_optimized(self, change_sv=False, s_mean=28., v_mean=180.):
|
||||
tile_list = self.tile_list
|
||||
|
||||
Reference in New Issue
Block a user