def is_valid()

in src/open_vp_cal/framework/auto_roi.py [0:0]


    def is_valid(self) -> bool:
        """ Check if the results are valid
        """
        # Can detect top
        if not self.red_pixel and not self.green_pixel:
            return False

        # Can detect bottom
        if not self.blue_pixel and not self.white_pixel:
            return False

        # Can detect left
        if not self.red_pixel and not self.blue_pixel:
            return False

        # Can detect right
        if not self.green_pixel and not self.white_pixel:
            return False

        return True