Suggest a feature
×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Added: Oct 3, 2018 2:31 AM
Views: 2
Capturar a cor de pixel com o biblioteca PIL
  1. from PIL import ImageGrab
  2.  
  3. image = ImageGrab.grab()  # Captura a imagem da dela
  4. color = image.getpixel((100, 100))  # Captura a cor do pixel nas coordenadas x=100, y=100
  5.