code: def setROI(self, *args):
          
          if len(args) == 4:
              x, y, w, h = args
          elif len(args) == 1:
              if isinstance(args[0], Region):
                  x, y, w, h = args[0].getTuple()
              elif isinstance(args[0], tuple):
                  x, y, w, h = args[0]
              else:
                  raise TypeError("Unrecognized argument for Region()")
          else:
              raise TypeError("Unrecognized argument(s) for Region()")
          self.setX(x)
          self.setY(y)
          self.setW(w)
          self.setH(h)
docs: Set Region of Interest (same as Region.setRect())