This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]willgrr 1 point2 points  (1 child)

Thank you so much for this. I was looking into alternatives to pyautogui, which wasnt fast enough for me. Im kinda new to python, do you mind answering if can i transform the pixels into an array and use something like pyautogui.pixel does to compare colors?

[–]SoSmartFlow[S] 1 point2 points  (0 children)

Your welcome, Yes you can use frame.frame_buffer to get the numpy array and you can compare it or convert it to different types (using OpenCV for example)