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

Get color and/or text present in the screen #63

Open
leksuss opened this issue Jun 14, 2024 · 1 comment
Open

Get color and/or text present in the screen #63

leksuss opened this issue Jun 14, 2024 · 1 comment

Comments

@leksuss
Copy link

leksuss commented Jun 14, 2024

I can't find it in documentation. Is there any way to get pixel color based on it coordinates? Also, can I check some text string presence in the screen?

@tokoroten
Copy link

tokoroten commented Jun 17, 2024

hi @leksuss

https://github.com/leng-yue/py-scrcpy-client/blob/main/scrcpy/core.py#L239C25-L239C40
For your first question, you can use client.last_frame[y, x].

The client.last_frame represents the Android screen.
You can perform OCR on this image using any OCR software.

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

2 participants