Exemple #1
0
    def __init__(self, bbox=None):
        '''
        bbox -- bbox Crop bounding box as (x, y, w, h)
        '''
        self._check_import()
        self.last_input_geom = None

        self._launch = self._time()

        self._warp_filter = WarpFilter(self)
        self._calibration_requested = False
        if bbox is not None:
            self._warp_filter.set_bbox(
                bbox[0],
                bbox[1],
                bbox[2],
                bbox[3],
            )
            self._warp_filter.enable()

        IkaUtils.dprint('%s: initalizing screen capture' % (self))
Exemple #2
0
 def reset(self):
     self._warp_filter = WarpFilter(self)
     self._calibration_requested = False
     super(ScreenCapture, self).reset()
Exemple #3
0
 def reset(self):
     self._warp_filter = WarpFilter(self)