Exemplo n.º 1
0
 def initialize_with_rectangle(self, img, ul, lr):
     """ Initializes the tracker.
     
     Same as initialize except the target region is specified
     using the upper left and lower right corners only.
     
     See Also:
     ---------
     initialize
     """
     self.initialize(img, rectangle_to_region(ul,lr))
Exemplo n.º 2
0
 def initialize_with_rectangle(self, img, ul, lr):
     """ Initializes the tracker.
     
     Same as initialize except the target region is specified
     using the upper left and lower right corners only.
     
     See Also:
     ---------
     initialize
     """
     self.initialize(img, rectangle_to_region(ul, lr))
Exemplo n.º 3
0
 def set_region_with_rectangle(self, ul, lr): 
     """ Sets the tracker's current state.
     
     Parameters:
     -----------
     ul : (real, real)
       A tuple representing the pixel coordinates of the upper left
       corner of the target region
     lr : (real, real)
       A tuple representing the pixel coordinates of the lower right
       corner of the target region
     
     See Also:
     ---------
     set_region
     """
     self.set_region(rectangle_to_region(ul,lr))
Exemplo n.º 4
0
 def set_region_with_rectangle(self, ul, lr):
     """ Sets the tracker's current state.
     
     Parameters:
     -----------
     ul : (real, real)
       A tuple representing the pixel coordinates of the upper left
       corner of the target region
     lr : (real, real)
       A tuple representing the pixel coordinates of the lower right
       corner of the target region
     
     See Also:
     ---------
     set_region
     """
     self.set_region(rectangle_to_region(ul, lr))