Code Monkey home page Code Monkey logo

Comments (2)

HelloBush avatar HelloBush commented on July 21, 2024

略微的看了下代码 坐标是写死的 我想应该有办法通过提前截图然后对比当前屏幕截图大图找小图获取坐标 移动鼠标到指定坐标然后点击吧

对,这个也是下一步我准备写的方向,现在的只是一个初步demo,用来测试一下Java写脚本,后面有考虑用图片匹配,比如比较汉明距离,特征值之类的办法来实现找图。此外,由于是游戏,界面都是比较固定的 ,可以利用相对位置,计算游戏界面整体面积,然后计算目标图片整体面积,以及目标图片在当前游戏面积内的左上角的相对位置,从而缩小找图范围,只去相对位置往外扩散一定范围的区域内找图,提高查找效率并且后序移植到其它电脑上也可以通过设置一个偏移误差来保证匹配。

from java_mhxydemo.

HelloBush avatar HelloBush commented on July 21, 2024

已经利用OpenCV在java中实现特征匹配

from java_mhxydemo.

Related Issues (13)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.