Esempio n. 1
0
 def __init__(self,
              keys: KeysCollection,
              bbox_key_postfix: str = "bbox",
              select_fn: Callable = lambda x: x > 0):
     super().__init__(keys=keys)
     self.bbox = BoundingRect(select_fn=select_fn)
     self.bbox_key_postfix = bbox_key_postfix
Esempio n. 2
0
 def __init__(
     self,
     keys: KeysCollection,
     bbox_key_postfix: str = "bbox",
     select_fn: Callable = lambda x: x > 0,
     allow_missing_keys: bool = False,
 ):
     super().__init__(keys, allow_missing_keys)
     self.bbox = BoundingRect(select_fn=select_fn)
     self.bbox_key_postfix = bbox_key_postfix