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

Could add function support read image from clipboard #368

Open
leechaowen opened this issue Feb 22, 2023 · 0 comments
Open

Could add function support read image from clipboard #368

leechaowen opened this issue Feb 22, 2023 · 0 comments

Comments

@leechaowen
Copy link

I call python in R for screenshot ,then read image from clipboard . but the image_read not support read from clipboard.

library(magick)

library(reticulate)

use_python("C:\\Program Files\\Python310\\python.exe")

py_run_string("import pyautogui")

py_run_string("pyautogui.hotkey('fn','printscreen')")

image_read(readClipboard())
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

1 participant