Giter VIP home page Giter VIP logo

douyin-bot's Issues

分享分辨率1280x720的配置

因为测试用的是小米2s,分辨率是 1280 x 720,config.json内容是:

{
  "center_point":{
    "x": 360,
    "y": 640,
    "rx": 10,
    "ry": 200
  },
  "follow_bottom":{
    "x": 659,
    "y": 537,
    "rx": 10,
    "ry": 10
  },
  "star_bottom":{
    "x": 658,
    "y": 652,
    "rx": 10,
    "ry": 10
  }

}

增加一个魅蓝note5的配置

虽然也是1920x1080的屏幕,但有时候会点到评论,然后整个逻辑就乱了。。用这个配置文件可以解决。测试了几个小时都没有差错,最后被抖音限制了点赞速度。。

{
"center_point":{
"x": 540,
"y": 965,
"rx": 10,
"ry": 300
},
"follow_bottom":{
"x": 987,
"y": 795,
"rx": 10,
"ry": 10
},
"star_bottom":{
"x": 986,
"y": 954,
"rx": 10,
"ry": 10
}

}

截屏不支持

check_screenshot函数运行结果为不支持当前设备,什么机型可以截屏?我的手机可以运行跳一跳辅助为什么在这个项目这里出现截屏问题?vivo y55a的手机

我跑通了,为什么但是不会有截图呢?日志显示the JSON object must be str, not 'bytes'{'ret': -1}


Screen: Physical size: 1080x1920
Density: Physical density: 480
Device: gemini
Phone OS: 8.0.0
Host OS: win32
Python: 3.5.2 (v3.5.2:4def2a2901a5, Jun 25 2016, 22:18:55) [MSC v.1900 64 bit (AMD64)]


shell screencap -p /sdcard/autojump.png
pull /sdcard/autojump.png .
shell input swipe 540 1265 540 965 200
shell screencap -p /sdcard/autojump.png
pull /sdcard/autojump.png .
the JSON object must be str, not 'bytes'
{'ret': -1}
shell input swipe 540 1265 540 965 200
shell screencap -p /sdcard/autojump.png
pull /sdcard/autojump.png .
the JSON object must be str, not 'bytes'
{'ret': -1}
shell input swipe 540 1265 540 965 200
shell screencap -p /sdcard/autojump.png

配置好以后 运行python douyin-bot.py 没任何反应 以下是运行代码 求解

(base) E:\Douyin-Bot>python douyin-bot.py
检查设备是否连接...
设备已连接
adb 输出:
List of devices attached
c8dec4aa device

Load default config
程序版本号:0.0.1
激活窗口并按 CONTROL + C 组合键退出


Screen: Physical size: 720x1280
Density: Physical density: 320
Device: PD1621
Phone OS: 6.0.1
Host OS: win32
Python: 3.6.5 |Anaconda, Inc.| (default, Mar 29 2018, 13:32:41) [MSC v.1900 64 b
it (AMD64)]


shell screencap -p /sdcard/autojump.png
pull /sdcard/autojump.png .
4802 KB/s (786767 bytes in 0.160s)
采用方式 0 获取截图
shell input swipe 540 1265 540 965 200
shell screencap -p /sdcard/autojump.png
pull /sdcard/autojump.png .
4344 KB/s (783065 bytes in 0.176s)
{'ret': 16404, 'msg': 'system busy, please try again later', 'data': {'image_wid
th': 0, 'image_height': 0, 'face_list': []}}
shell input swipe 540 1265 540 965 200
shell screencap -p /sdcard/autojump.png
pull /sdcard/autojump.png .
4395 KB/s (787688 bytes in 0.175s)
{'ret': 16404, 'msg': 'system busy, please try again later', 'data': {'image_wid
th': 0, 'image_height': 0, 'face_list': []}}
shell input swipe 540 1265 540 965 200
shell screencap -p /sdcard/autojump.png
pull /sdcard/autojump.png .
4461 KB/s (785873 bytes in 0.172s)
{'ret': 16404, 'msg': 'system busy, please try again later', 'data': {'image_wid
th': 0, 'image_height': 0, 'face_list': []}}
shell input swipe 540 1265 540 965 200
shell screencap -p /sdcard/autojump.png
pull /sdcard/autojump.png .
4181 KB/s (775034 bytes in 0.181s)
{'ret': 16404, 'msg': 'system busy, please try again later', 'data': {'image_wid
th': 0, 'image_height': 0, 'face_list': []}}
shell input swipe 540 1265 540 965 200
shell screencap -p /sdcard/autojump.png
pull /sdcard/autojump.png .
5000 KB/s (783483 bytes in 0.153s)
{'ret': 16404, 'msg': 'system busy, please try again later', 'data': {'image_wid
th': 0, 'image_height': 0, 'face_list': []}}
shell input swipe 540 1265 540 965 200
shell screencap -p /sdcard/autojump.png
pull /sdcard/autojump.png .
4375 KB/s (788605 bytes in 0.176s)
{'ret': 16404, 'msg': 'system busy, please try again later', 'data': {'image_wid
th': 0, 'image_height': 0, 'face_list': []}}
shell input swipe 540 1265 540 965 200
shell screencap -p /sdcard/autojump.png
pull /sdcard/autojump.png .
4090 KB/s (787552 bytes in 0.188s)
{'ret': 16404, 'msg': 'system busy, please try again later', 'data': {'image_wid
th': 0, 'image_height': 0, 'face_list': []}}
shell input swipe 540 1265 540 965 200
shell screencap -p /sdcard/autojump.png
pull /sdcard/autojump.png .
4106 KB/s (786286 bytes in 0.187s)
kill-server
谢谢使用

(base) E:\Douyin-Bot>
没有打开抖音
需要登陆抖音吗?

如何自动识别抖音视频?

我想对B站的抖音视频集合进行操作,像您一样检测小姐姐颜值再OCR抖音ID然后关注。请问要如何在正确的时间点截屏?因为有些小姐姐开始的时候是不露正脸的。因为有一些视频是从火山等平台扒的,如何检测右下角logo和id变化,要用什么库呢?万分感谢

SyntaxError: invalid syntax

python douyin-bot.py

错误

  File "douyin-bot.py", line 50
    print('谢谢使用', end='')
                             ^
SyntaxError: invalid syntax

期待推出反美颜模块

在手机截图后,添加是否已美颜的检测(或许可以忽略此步),如果是的话进行反美颜之后再进行人脸检测

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.