本文整理匯總了Python中atve.log.LOG.info方法的典型用法代碼示例。如果您正苦於以下問題:Python LOG.info方法的具體用法?Python LOG.info怎麽用?Python LOG.info使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類atve.log.LOG
的用法示例。
在下文中一共展示了LOG.info方法的7個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。
示例1: test
# 需要導入模塊: from atve.log import LOG [as 別名]
# 或者: from atve.log.LOG import info [as 別名]
def test(self):
self.assertTrue("atve.picture" in self.service.keys())
self.assertTrue(self.service["atve.picture"].version() != None)
pic = self.service["atve.picture"].get()
self.assertTrue(self.get("system.tmp") != None)
L.info(os.path.join(self.get("system.tmp"), "test01.png"))
pic.info(pic.open(os.path.join(self.get("system.tmp"), "test01.png")))
示例2: test
# 需要導入模塊: from atve.log import LOG [as 別名]
# 或者: from atve.log.LOG import info [as 別名]
def test(self):
self.assertTrue("atve.picture" in self.service.keys())
self.assertTrue(self.service["atve.picture"].version() != None)
pic = self.service["atve.picture"].get()
self.assertTrue(self.get("system.tmp") != None)
img = pic.open(os.path.join(self.get("system.tmp"), "test01.png"))
self.assertTrue(img != None)
rgb = pic.get_rgb(img)
self.assertTrue(len(rgb) == 3)
L.info(rgb)
示例3: test
# 需要導入模塊: from atve.log import LOG [as 別名]
# 或者: from atve.log.LOG import info [as 別名]
def test(self):
self.assertTrue("atve.picture" in self.service.keys())
self.assertTrue(self.service["atve.picture"].version() != None)
pic = self.service["atve.picture"].get()
self.assertTrue(self.get("system.tmp") != None)
reference = os.path.join(self.get("system.tmp"), "test01.png")
target = os.path.join(self.get("system.tmp"), "test01_target01.png")
point = pic.search_pattern(reference, target)
self.assertTrue(point != None)
L.info(point)
示例4: test
# 需要導入模塊: from atve.log import LOG [as 別名]
# 或者: from atve.log.LOG import info [as 別名]
def test(self):
self.assertTrue("atve.picture" in self.service.keys())
self.assertTrue(self.service["atve.picture"].version() != None)
pic = self.service["atve.picture"].get()
self.assertTrue(self.get("system.tmp") != None)
img = pic.open(os.path.join(self.get("system.tmp"), "test01.png"))
self.assertTrue(img != None)
opencv_img = pic.to_opencv(img)
img2 = pic.to_pil(opencv_img)
self.assertTrue(img2 != None)
pic.save(img2, os.path.join(self.get("system.tmp"), "test02.png"))
img3 = pic.open(os.path.join(self.get("system.tmp"), "test01.png"))
self.assertTrue(img3 != None)
L.info(pic.info(img3))
示例5: tearDownClass
# 需要導入模塊: from atve.log import LOG [as 別名]
# 或者: from atve.log.LOG import info [as 別名]
def tearDownClass(cls):
L.info("*** End TestCase : %s *** " % __file__)
示例6: setUpClass
# 需要導入模塊: from atve.log import LOG [as 別名]
# 或者: from atve.log.LOG import info [as 別名]
def setUpClass(cls):
L.info("*** Start TestCase : %s *** " % __file__)
示例7: test
# 需要導入模塊: from atve.log import LOG [as 別名]
# 或者: from atve.log.LOG import info [as 別名]
def test(self):
self.assertTrue("atve.picture" in self.service.keys())
self.assertTrue(self.service["atve.picture"].version() != None)
L.info(self.service["atve.picture"].version())