Created
May 8, 2015 01:22
-
-
Save agermanidis/363e4deb745025fcfb9c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import multiprocessing | |
from hac import Humanity | |
from moviepy.editor import ImageSequenceClip | |
everyone = Humanity.find_people() | |
def take_photo(human): | |
human.assume_control(timeout = 30) | |
photo = human.smartphone.take_photo() # returns PIL Image | |
photo.show() | |
pool = multiprocessing.Pool(5) | |
pool.map(take_photo, everyone) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment