original_docstring: 
          This method is the callback function used to create a
          rectangular mask.
          
docstring: This method is the callback function used to create a
  rectangular mask.
docstring_tokens: This method is the callback function used to create a rectangular mask .
code: def make_mask(self, event, x: int, y: int) -> None:
          """
          This method is the callback function used to create a
          rectangular mask.
          """
          
          if event == self.set_point and self.stage == 0:
              self.tl_x = x
              self.tl_y = y
              self.stage = 1
          elif event == self.set_point and self.stage == 1:
              self.br_x = x
              self.br_y = y
              self.stage = 2
          elif self.stage == 2:
              self.stage = 0
              super().make_mask(event, x, y)
              self.mask = np.ones((self.height, self.width, 3)) * 255
              self.mask = cv.rectangle(
                  self.mask, (self.tl_x, self.tl_y), 
                  (self.br_x, self.br_y), 0, - 1
                  )
              self.mask = self.mask.astype(np.bool_)
code_tokens: def make_mask ( self , event , x : int , y : int ) -> None : if event == self . set_point and self . stage == 0 : self . tl_x = x self . tl_y = y self . stage = 1 elif event == self . set_point and self . stage == 1 : self . br_x = x self . br_y = y self . stage = 2 elif self . stage == 2 : self . stage = 0 super ( ) . make_mask ( event , x , y ) self . mask = np . ones ( ( self . height , self . width , 3 ) ) * 255 self . mask = cv . rectangle ( self . mask , ( self . tl_x , self . tl_y ) , ( self . br_x , self . br_y ) , 0 , - 1 ) self . mask = self . mask . astype ( np . bool_ )
short_docstring: This method is the callback function used to create a
  rectangular mask.
short_docstring_tokens: This method is the callback function used to create a rectangular mask .
comment: """
          This method is the callback function used to create a
          rectangular mask.
          """