Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

截图并没有导入到电脑 #9

Open
yyzhou94 opened this issue Jan 10, 2018 · 3 comments
Open

截图并没有导入到电脑 #9

yyzhou94 opened this issue Jan 10, 2018 · 3 comments

Comments

@yyzhou94
Copy link

yyzhou94 commented Jan 10, 2018

我在我的计算机本地测试时发现:
os.system("adb shell /system/bin/screencap -p /sdcard/screenshot.png")
os.system("adb pull /sdcard/screenshot.png d:/screenshot.png")
在手机上存有截图但并没有导出到我的电脑D盘,猜测可能和绝对路径有关?我也不清楚。
建议将第二句修改成:os.system("adb pull /sdcard/screenshot.png ")
直接导入到代码所在文件夹,后续的读取、写入图片的路径修改成相对路径,即./screenshot.png即可。

@wuditken
Copy link
Owner

ok,已修改

@yyzhou94
Copy link
Author

这是我参照作者项目用百度OCR识别实现的,测试结果基本都在6~7秒,不知道该怎样优化速度
https://github.com/yyzhou94/MillionHeroesAssistant

@manoshape
Copy link
Collaborator

阳哥,速度好快啊!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants