'How do I give my screen as an input for tensorflow?

I'm creating a bot to play a game. I'm trying to use a portion of my screen as an input for the neural network, but I know next to nothing about creating inputs with pyautogui for tensorflow.

Thanks in advance.

PS: I'm using an iMac.



Solution 1:[1]

Integers don't get inaccurate with large numbers. Floating point numbers do. And you are using floating point numbers.

Rewrite your algorithm to only use integers.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Sören