Пример #1
0
class orb_brute(AbstractMethod):
    orb: ORBBrute

    def __init__(self):
        self.orb = ORBBrute()

    def query(self, picture: Picture) -> List[Picture]:
        res = self.orb.query(picture)
        return res

    def train(self, images: List[Picture]):
        self.orb.train(images)
Пример #2
0
class w5_no_frame_no_text(AbstractMethod):

    orb: ORBBrute

    def __init__(self):
        self.orb = ORBBrute()

    def query(self, picture: Picture) -> (List[Picture], Frame):
        frame = get_frame_with_lines(picture.get_image())

        return self.orb.query(picture), frame

    def train(self, images: List[Picture]) -> List[Rectangle]:
        return self.orb.train(images, use_mask=False)
Пример #3
0
 def __init__(self):
     self.orb = ORBBrute()