Skip to content

Commit

Permalink
修改注释
Browse files Browse the repository at this point in the history
  • Loading branch information
Jinnrry committed Oct 1, 2019
1 parent 78adbbf commit f285bfd
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ public void start() {
e.printStackTrace();
}
Bitmap bitmap = BitmapFactory.decodeStream(is);
//在当前屏幕中查找模板图片
Point point = Image.matchTemplate(ScreenCaptureUtil.getScreenCap(), bitmap, 0.1);
MLog.info("找到模板", point.toString());
// 点击找到的这个图
Expand All @@ -49,6 +50,7 @@ public void start() {

/**************************** 文字识别demo **********************************/
try {
//识别素材文件中的ocrTest.png图片中的文字
is = MainApplication.getInstance().getAssets().open("ocrTest.png");
} catch (IOException e) {
e.printStackTrace();
Expand All @@ -58,9 +60,8 @@ public void start() {
MLog.info("文字识别结果:" + res);



/***************************** 特征点找图 ************************************/
//查找chrome图标(特征点是3120X1440分辨率手机制作)
//当前屏幕中查找chrome图标(特征点是3120X1440分辨率手机制作)
point = Image.findPointByMulColor(ScreenCaptureUtil.getScreenCap(), "434FD7,65|0|414DDB,90|55|46CDFF,5|86|5FA119");
//点击chrome图标
Robot.tap(point);
Expand Down

0 comments on commit f285bfd

Please sign in to comment.