How to use test_contrib_find_sift method in Airtest

Best Python code snippet using Airtest

test_aircv.py

Source:test_aircv.py Github

copy

Full Screen

...51 """ORB matching."""52 # 很快,效果垃圾53 result = ORBMatching(self.keypoint_sch, self.keypoint_src, threshold=self.THRESHOLD, rgb=self.RGB).find_best_result()54 self.assertIsInstance(result, dict)55 def test_contrib_find_sift(self):56 """SIFT matching (----need OpenCV contrib module----)."""57 # 慢,最稳定58 result = SIFTMatching(self.keypoint_sch, self.keypoint_src, threshold=self.THRESHOLD, rgb=self.RGB).find_best_result()59 self.assertIsInstance(result, dict)60 def test_contrib_find_surf(self):61 """SURF matching (----need OpenCV contrib module----)."""62 # 快,效果不错63 result = SURFMatching(self.keypoint_sch, self.keypoint_src, threshold=self.THRESHOLD, rgb=self.RGB).find_best_result()64 self.assertIsInstance(result, dict)65 def test_contrib_find_brief(self):66 """BRIEF matching (----need OpenCV contrib module----)."""67 # 识别特征点少,只适合强特征图像的匹配68 result = BRIEFMatching(self.keypoint_sch, self.keypoint_src, threshold=self.THRESHOLD, rgb=self.RGB).find_best_result()69 self.assertIsInstance(result, dict)...

Full Screen

Full Screen

Automation Testing Tutorials

Learn to execute automation testing from scratch with LambdaTest Learning Hub. Right from setting up the prerequisites to run your first automation test, to following best practices and diving deeper into advanced test scenarios. LambdaTest Learning Hubs compile a list of step-by-step guides to help you be proficient with different test automation frameworks i.e. Selenium, Cypress, TestNG etc.

LambdaTest Learning Hubs:

YouTube

You could also refer to video tutorials over LambdaTest YouTube channel to get step by step demonstration from industry experts.

Run Airtest automation tests on LambdaTest cloud grid

Perform automation testing on 3000+ real desktop and mobile devices online.

Try LambdaTest Now !!

Get 100 minutes of automation test minutes FREE!!

Next-Gen App & Browser Testing Cloud

Was this article helpful?

Helpful

NotHelpful