Comments (8)
模板匹配是用的opencv里面的算法,你可以看看opencv的模板匹配相关参数。
from robothelper.
你好,我遇到一个问题,我在玩游戏时,用系统的截屏函数截出张图,用来测试,脚本也通过多色取点函数找到了某个点,但是当再次进入到游戏,遇到同一张图片反而找不出来,不知道你有遇到过吗?难道系统的截屏,跟游戏运行时分辨率不一致吗?
from robothelper.
你把程序截图函数截到的图片保存下来看看,可能是截图方向错了
from robothelper.
都是横屏的
from robothelper.
你拿程序得到的截屏和系统截屏对比下呢
from robothelper.
我看了,程序截屏和系统截屏是一样的。具体操作如下:
我在游戏里直接跑脚本是能正常识别出某个点的(游戏中),退出游戏后,我单独对这张图片(不管是系统截屏,还是程序里的函数截屏,只要是退出了游戏,我对这张图全屏展示的时候)进行找点就失败(跟游戏中的截屏找点函数一致,没有任何改动)。
所以,我得出的规律是,同样一张图,必须在游戏中识别才行,游戏外就识别不出来。
from robothelper.
全屏展示和游戏截图不一定一样呀,可能会出现色差。
你如果是测试截图的话,你需要在程序里面打开相册里面的图片,然后执行找点程序
from robothelper.
我说的全屏其实就是原图大小。
我的疑惑点是,你的抓图工具和系统截屏有什么区别,游戏中时用你的工具抓,和用系统截屏没有不一样吧。
from robothelper.
Related Issues (20)
- opencv 安装问题 HOT 1
- 图片匹配报错 HOT 5
- 尝试使用回收的位图错误如何解决? HOT 5
- 请问一下一些脚本的功能 HOT 1
- 交流 HOT 1
- 二值化找图 HOT 12
- 我见你的博客里面提到 不使用opencv,自己用Java实现模板匹配,后来怎么又安装opencv模块了 HOT 1
- e7root HOT 2
- 这个框架还可以正常运行吗? HOT 1
- 取色工具 HOT 5
- 可以适配安卓11吗? HOT 1
- 没连接usb进行模拟点击会导致手机卡主 HOT 2
- 雷电模拟器中不定时闪退 HOT 8
- root模式下,点击次数的限制 HOT 3
- getScreenCapHorizontal 中的 bitmapCacheVertical.isRecycled() 错误 HOT 3
- 不会配置环境 HOT 1
- input往输入框输入文字留的有接口,有计划实现吗 HOT 6
- 截图有些文字颜色有问题 HOT 3
- 大佬的网站打不开了 HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from robothelper.