How to verify image exist on screen

public static boolean isImageOnScreen(String imagePath){
Match match = screen.exists(new Pattern(imagePath));
if(match != null && match.getScore() > 0.8){
return true;
}
else{
return false;
}
}

猜你喜欢

转载自bzwang.iteye.com/blog/2299286
今日推荐