106

GitHub - Honlan/wechat_jump_tensorflow

 6 years ago
source link: https://github.com/Honlan/wechat_jump_tensorflow
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

深度学习 - 微信跳一跳

2018.01.14更新

simple目录下增加了simple.js,思路同simple.py,使用JavaScript编写,在安卓上安装Auto.js之后运行该脚本即可,好处是直接在手机上运行,不需要连电脑

2018.01.05更新

标注数据增加到1200张图片,并且用更准的faster_rcnn_inception_v2_coco模型重新训练了一遍

知乎文章:https://zhuanlan.zhihu.com/p/32553763

感谢Chao奋逗逗对于标注数据做出的贡献

simple目录中的simple.py使用OpenCV2检测棋子和目标块的位置,简单粗暴,simple_ios.py是对应的IOS版本

simple检测结果

tensorflow目录包括以下文件:

  • wechat_jump_label_map.pbtxt:物体类别映射文件;
  • utils:提供辅助功能的文件;
  • frozen_inference_graph_frcnn_inception_v2_coco.pb:训练好的物体检测模型,共1200张标注数据,使用faster_rcnn_inception_v2_coco训练;
  • wechat_auto_jump.py:自动跳一跳的代码

物体检测结果

label.zip提供了标注的工具,使用labelImg进行物体检测标注,使用方法可以参考物体检测标注说明.pdf

labelImg标注示例

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK