Home > Back-end > OpenCv via feature point matching pictures how to judge whether A picture in picture B
OpenCv via feature point matching pictures how to judge whether A picture in picture B
Time:09-25
Such as topic, doing now move to the automated testing, product list sliding in the webview page can't find the target product through appium check, so want to use OpenCV by image recognition to judge, the first in the capture the whole screen saved as picture B, another intercept target image A beforehand, and then through the OpenCV SURF algorithm to obtain A, B of feature points, but there is A problem is whether the current B pictures contain A, there will be some feature points can matching success, even after filtered by Euclidean distance will still exist this kind of situation, is there A big can guide
CodePudding user response:
Matching to determine the distance threshold, if does not contain the target is A match, the distance it will be relatively large