コード例 #1
0
ファイル: eyes.py プロジェクト: vmelikyan/eyes.sdk.python
 def check_image(self, image, tag=None, ignore_mismatch=False):
     # type: (Union[Image.Image, Text], Optional[Text], bool) -> Optional[bool]
     if self.configure.is_disabled:
         return None
     logger.info("check_image(Image {}, tag {}, ignore_mismatch {}".format(
         image, tag, ignore_mismatch))
     return self._check_image(NULL_REGION_PROVIDER, tag, ignore_mismatch,
                              Target.image(image))
コード例 #2
0
ファイル: eyes.py プロジェクト: pythonthings/eyes.sdk.python
 def check_region(self, image, region, tag=None, ignore_mismatch=False):
     # type: (Image.Image, Region, Optional[Text], bool) -> Optional[bool]
     if self.configuration.is_disabled:
         return None
     logger.info(
         "check_region(Image {}, region {}, tag {}, ignore_mismatch {}".
         format(image, region, tag, ignore_mismatch))
     return self._check_image(NULL_REGION_PROVIDER, tag, ignore_mismatch,
                              Target.region(image, region))