예제 #1
0
    def __init__(self, x, y, width, height, score):
        """Function assign values to the x, y, width, height and score region parameters.

        :param x: Location x parameter.
        :param y: Location y parameter.
        :param width: Region's width.
        :param height: Region's height.
        :param score: Similarity with which the pattern is found.
        """

        Region.__init__(self, x, y, width, height)
        self._width = width
        self._height = height
        self._score = score
예제 #2
0
파일: screen.py 프로젝트: Sylvia23/iris
 def __init__(self, screen_id=0):
     self._screen_id = screen_id
     self._screen_list = [item for item in mss.mss().monitors[1:]]
     Region.__init__(self,
                     get_screen_details(self._screen_list, self._screen_id))
예제 #3
0
파일: match.py 프로젝트: wizofe/iris
 def __init__(self, x, y, width, height, score):
     Region.__init__(self, x, y, width, height)
     self._width = width
     self._height = height
     self._score = score
예제 #4
0
 def __init__(self, screen_id=0):
     """Function assign value to the '_screen_id' and '_screen_list' Screen parameters."""
     self._screen_id = screen_id
     self._screen_list = [item for item in mss.mss().monitors[1:]]
     Region.__init__(self,
                     get_screen_details(self._screen_list, self._screen_id))