Merge remote-tracking branch 'origin/master'

wjdr
wangbing 12 months ago
commit 2d5aef56b2

@ -383,7 +383,7 @@ public abstract class JMacro {
* @param viewRect
* @param pic
* @param minSimilar
* @param fast
* @param fast +
* @return
*/
public ViewRect findPic(ViewRect viewRect, BufferedImage pic, double minSimilar, boolean fast) {
@ -430,7 +430,7 @@ public abstract class JMacro {
//中心点
boolean cc = ColorUtil.isSimilar(screenData[x - xMin + pic.getWidth() / 2][y - yMin + pic.getHeight() / 2], picData[pic.getWidth() / 2][pic.getHeight() / 2]);
// 五个关键点不一致,则没必要继续比下去
// 但要注意四个顶点中心存在半透明情况,会导致关键点定位不准
// 但要注意四个顶点+中心存在半透明情况,会导致关键点定位不准
if (!lt || !rt || !lb || !rb || !cc) {
continue;
}
@ -803,7 +803,7 @@ public abstract class JMacro {
* 1.
* 2.
* 3.
*
*
*
*
* @param legends
@ -945,7 +945,7 @@ public abstract class JMacro {
*
* @param rect
* @param color :#ffffff
* @return
* @return
*/
public boolean hasColorAndClick(ViewRect rect, String... color) {
boolean hasColor = hasColor(rect, color);

Loading…
Cancel
Save

Powered by TurnKey Linux.