Coder Social home page Coder Social logo

Comments (4)

zemeng2015 avatar zemeng2015 commented on July 24, 2024

我的想法是用前端的比较图片相似度的库 然后分别截取掉落材料的图片 以及数字,然后再与保存好的材料图片比对。 这里有一个前端的图片识别库的例子:
http://rsmbl.github.io/Resemble.js/

from frontend-v2.

inkydragon avatar inkydragon commented on July 24, 2024

可能的做法

  1. 传统的模板匹配。如 SIFT :inkydragon/AkDR: Arknights drops recognize. Using OpenCV with Python.
    模板匹配如果不切图计算量较大;切图则分辨率适应性下降,但速度/精度提升极大。算法能否放在前端取决于选择的算法,视情况可使用 opencv.js 或 WebGL 重新实现算法。
  2. NN。
    • 基于 tf 预训练模型(见 ref PPT)
    • 基于 YOLOv3 Luke-lujunxian/aktools-backendProcessEngine
      NN 无需切图,但训练所需的数据量较大,且训练完毕的模型也比较大,不太可能放在前端。

ref:PPT - GMTC2018 《基于AI的网易UI自动化测试方案与实践》
这个是网易的自动化 UI 测试框架,算是个工业化的产品。其中就涉及图像匹配,包括静态的按钮以及动态的角色的位置识别,值得借鉴。

from frontend-v2.

SrC2O4 avatar SrC2O4 commented on July 24, 2024

可能的做法

  1. 传统的模板匹配。如 SIFT :inkydragon/AkDR: Arknights drops recognize. Using OpenCV with Python.
    模板匹配如果不切图计算量较大;切图则分辨率适应性下降,但速度/精度提升极大。算法能否放在前端取决于选择的算法,视情况可使用 opencv.js 或 WebGL 重新实现算法。

  2. NN。

    • 基于 tf 预训练模型(见 ref PPT)
    • 基于 YOLOv3 Luke-lujunxian/aktools-backendProcessEngine
      NN 无需切图,但训练所需的数据量较大,且训练完毕的模型也比较大,不太可能放在前端。

ref:PPT - GMTC2018 《基于AI的网易UI自动化测试方案与实践》
这个是网易的自动化 UI 测试框架,算是个工业化的产品。其中就涉及图像匹配,包括静态的按钮以及动态的角色的位置识别,值得借鉴。

L佬和蟹佬在做了,应该用的方法是1(不确定
他们有在考虑用yolo(2)

from frontend-v2.

GalvinGao avatar GalvinGao commented on July 24, 2024

Proudly closing this issue as this feature has already been running smoothly for 9+ months (and why is this still left open lol).

from frontend-v2.

Related Issues (20)

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.