You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to take screenshots and send to home assistant as jpeg.
My solution works but is very inelligent.. please help ..I would like to do without PIL and without the intermediate jpeg file
screen=autopy.bitmap.capture_screen()
screen.save("screenshot.jpeg")
with open("screenshot.jpeg", 'rb') as f:
filecontent = f.read()
byteArr = bytearray(filecontent)
client.publish(topic_screen, byteArr)
Presumably autopy does the jpeg conversion prior to the file save so just wanted to capture the array and not save to file
sincerely Sujit
The text was updated successfully, but these errors were encountered:
I am trying to take screenshots and send to home assistant as jpeg.
My solution works but is very inelligent.. please help ..I would like to do without PIL and without the intermediate jpeg file
Presumably autopy does the jpeg conversion prior to the file save so just wanted to capture the array and not save to file
sincerely Sujit
The text was updated successfully, but these errors were encountered: