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
{{ message }}
This repository has been archived by the owner on May 30, 2023. It is now read-only.
I am trying to use colorific in a python script running on Windows so I won't be running a binary from the command line or virtual environment as in your examples.
I was able to install it using python setup.py install
My question is how do I use it to operate on an image object such as one returned by:
image = ImageGrab.grab() # take a screenshot
I am running this in a loop and constantly calculate the primary colours of the resultant screenshot image. How do I use the colorific library with the image object in this way?
Note that I could save the images as files and then read them with the script but since it is a real-time application, that would introduce far too much latency.I was hoping for a colorific interface that allows an input that is an image object instead of a file-name.
Thanks!
The text was updated successfully, but these errors were encountered:
frakman1
changed the title
Colorific on Windows
Colorific on Windows in a Python script
Feb 17, 2016
Hi there,
I am trying to use colorific in a python script running on Windows so I won't be running a binary from the command line or virtual environment as in your examples.
I was able to install it using
python setup.py install
My question is how do I use it to operate on an image object such as one returned by:
image = ImageGrab.grab() # take a screenshot
I am running this in a loop and constantly calculate the primary colours of the resultant screenshot image. How do I use the colorific library with the
image
object in this way?Note that I could save the images as files and then read them with the script but since it is a real-time application, that would introduce far too much latency.I was hoping for a colorific interface that allows an input that is an image object instead of a file-name.
Thanks!
The text was updated successfully, but these errors were encountered: