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

[Discuss] 使用 Scrcpy 替代截图的可行性 #49

Open
MC-ALL opened this issue Jan 1, 2024 · 5 comments
Open

[Discuss] 使用 Scrcpy 替代截图的可行性 #49

MC-ALL opened this issue Jan 1, 2024 · 5 comments
Labels
新的问题 新的问题

Comments

@MC-ALL
Copy link

MC-ALL commented Jan 1, 2024

参见

Scrcpy 的Github仓库

优点

  1. Scrcpy-Server 直接在模拟器运行,屏幕捕获并封装成tcp视频流,参见官方文档,可以在 OpenCV 中使用,提高及时性和准确性。

缺点

  1. 可能与目前的代码冲突,增加工作量
  2. 增加OpenCV的占用
@pur1fying
Copy link
Owner

没有用过,但可以考虑,延迟高吗?

@MC-ALL
Copy link
Author

MC-ALL commented Jan 1, 2024

没有用过,但可以考虑,延迟高吗?

  1. 我只测试过实机,不高,应该低于100ms?再准确的没测。
  2. 潜在的兼容性问题。刚刚在蓝叠国际版上测试,crash了,看到issues提到这个问题,作者猜测是ROM的原因。手上没有其它模拟器,不排除是个例。

@Kiramei
Copy link
Collaborator

Kiramei commented Jan 4, 2024

这个框架的优化空间有多少

@Kiramei Kiramei added the 新的问题 新的问题 label Jan 4, 2024
@RedDeadDepresso
Copy link
Contributor

@pur1fying AAS has scrcpy if that helps. You can use it as a guide when implementing in baas.

https://github.com/TheFunny/ArisuAutoSweeper/tree/master/module/device/method/scrcpy

@pur1fying
Copy link
Owner

@RedDeadDepresso ok

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

No branches or pull requests

4 participants