推荐学习书目
› Learn Python the Hard Way
Python Sites
› PyPI - Python Package Index
› http://diveintopython.org/toc/index.html
› Pocoo
值得关注的项目
› PyPy
› Celery
› Jinja2
› Read the Docs
› gevent
› pyenv
› virtualenv
› Stackless Python
› Beautiful Soup
› 结巴中文分词
› Green Unicorn
› Sentry
› Shovel
› Pyflakes
› pytest
Python 编程
› pep8 Checker
Styles
› PEP 8
› Google Python Style Guide
› Code Style from The Hitchhiker's Guide
dahuaer
V2EX  ›  Python

Python 图像识别 突点检测

  •  
  •   dahuaer · Jan 22, 2016 · 7556 views
    This topic created in 3944 days ago, the information mentioned may be changed or developed.

    背景:最近玩手游太肝,突发奇想。在模拟器里面玩游戏,用图像识别去自动刷 FB
    需求:想实现突点检测,把指定区域的黑色边框去除掉,只保留去除之后的部分
    在 bing 上搜索了一圈之后,发现 opencv 能实现突点检测。我只是想弱弱的问下, PIL 能实现同样的功能么

    19 replies  •  2016-01-22 18:05:03 +08:00
    pimin
    pimin
    Jan 22, 2016❤️1
    1
    我之前玩点击英雄,也是中毒很深
    后来我用的是 autohotkey..
    现学现用.比 Python 要方便..
    shadowind
    shadowind
    Jan 22, 2016❤️1
    2
    opencv 有 python api 啊~ 用 pil 实现会比较麻烦
    dahuaer
    dahuaer
    OP
    Jan 22, 2016
    3
    @pimin autohotkey 没有用过,因为 FB 中怪出现的地方每次都不一样,所以我想象着用图像识别去自动打怪的。如果 autohotkey 不受怪物出现地点的限制能实现自动打怪,那就真心方便多了啊
    dahuaer
    dahuaer
    OP
    Jan 22, 2016
    4
    @shadowind 因为我嫌 opencv 麻烦,所以才用 pil 的。哈哈
    w88975
    w88975
    Jan 22, 2016❤️1
    5
    可以用 python 调用 com 组件
    有个大漠插件可以写游戏辅助
    dahuaer
    dahuaer
    OP
    Jan 22, 2016
    6
    @w88975 搜索了一下,这个插件的确是个神奇的东西。下班之后好好研究研究~~
    irainy
    irainy
    Jan 22, 2016❤️1
    7
    OpenCV 提供的算法应该可以 NumPy+PIL 实现但是会比较麻烦,可以试试这个

    http://simplecv.org/
    47jm9ozp
    47jm9ozp
    Jan 22, 2016
    8
    难道只有我看不懂突点检测是什么吗……
    Yien
    Yien
    Jan 22, 2016❤️1
    9
    Sikuli 以前试过用这个
    imn1
    imn1
    Jan 22, 2016
    10
    还以为能智能识别凸点
    dahuaer
    dahuaer
    OP
    Jan 22, 2016
    11
    @irainy
    @Yien
    感谢二位提出的意见,我会去学习学习的~~~
    dahuaer
    dahuaer
    OP
    Jan 22, 2016
    12
    @imn1 凸点...不应该是激凸么 =。=
    v2ey
    v2ey
    Jan 22, 2016
    13
    按键精灵安卓版,图色命令足够了
    karnaugh
    karnaugh
    Jan 22, 2016
    14
    同楼上.一个是手游挂机标配:海马玩模拟器+游戏蜂窝(有闲情还可以自己用按键精灵去写脚本.里头有图片识别啥的)
    dahuaer
    dahuaer
    OP
    Jan 22, 2016
    15
    @karnaugh 我用的是天天模拟器,手游刷的好累
    dahuaer
    dahuaer
    OP
    Jan 22, 2016
    16
    @v2ey 我去找找按键精灵的图色命令,谢啦
    matrix67
    matrix67
    Jan 22, 2016 via Android
    17
    我貌似见过
    w88975
    w88975
    Jan 22, 2016
    18
    @w88975 以前我用大漠插件写过安卓游戏的辅助 一般就是图形检测
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   933 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 44ms · UTC 20:46 · PVG 04:46 · LAX 12:46 · JFK 15:46
    ♥ Do have faith in what you're doing.