GithubHelp home page GithubHelp logo

Comments (12)

Prinsphield avatar Prinsphield commented on August 16, 2024 2

请安装opencv 3

from wechat_autojump.

Prinsphield avatar Prinsphield commented on August 16, 2024 1

有teamviewer吗,打开告诉我id和passwd,我给你看看

from wechat_autojump.

laobohou avatar laobohou commented on August 16, 2024

不好意思问了那么低级的问题,我更正后opencv没问题了(版本3.4.0.12)
然后还是有报错,看起来像cv的问题
C:\Users\donglan01\Desktop\tiaoyitiao\Wechat_AutoJump-master>python play.py --phone Android --sensitivity 2.045
1666 KB/s (3412 bytes in 0.002s)
OpenCV Error: Assertion failed (ssize.width > 0 && ssize.height > 0) in cv::resize, file C:\projects
\opencv-python\opencv\modules\imgproc\src\resize.cpp, line 4044
Traceback (most recent call last):
File "play.py", line 175, in
AI.run()
File "play.py", line 160, in run
self.play()
File "play.py", line 149, in play
self.target_pos = self.get_target_position(self.state, self.player_pos)
File "play.py", line 100, in get_target_position
pos = multi_scale_search(target, state_cut, 0.4, 15)
File "play.py", line 18, in multi_scale_search
resized = cv2.resize(screen, (int(W * scale), int(H * scale)))
cv2.error: C:\projects\opencv-python\opencv\modules\imgproc\src\resize.cpp:4044: error: (-215) ssize
.width > 0 && ssize.height > 0 in function cv::resize
似乎网上说是和截的图片名字有关,麻烦您看看。
很感兴趣你的项目,非常感谢你的付出!

from wechat_autojump.

laobohou avatar laobohou commented on August 16, 2024

恩,以为是直接连接

from wechat_autojump.

Prinsphield avatar Prinsphield commented on August 16, 2024

你没开啊

from wechat_autojump.

laobohou avatar laobohou commented on August 16, 2024

之前那个错了。。抱歉

from wechat_autojump.

Prinsphield avatar Prinsphield commented on August 16, 2024

我还想试试

from wechat_autojump.

laobohou avatar laobohou commented on August 16, 2024

恩,连接吧

from wechat_autojump.

Prinsphield avatar Prinsphield commented on August 16, 2024

再告诉一下id和passwd

from wechat_autojump.

laobohou avatar laobohou commented on August 16, 2024

感谢作者的付出和帮助,检查发现,过低版本的Android手机可能没有press time参数,不能实现触屏操作。所以需要比较高版本的Android手机

from wechat_autojump.

Prinsphield avatar Prinsphield commented on August 16, 2024

前面报的错貌似是你操作的问题😂

from wechat_autojump.

laobohou avatar laobohou commented on August 16, 2024

啊,对,adb建议用官网的。。我好像是从某个国内网站下的

from wechat_autojump.

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.