Skip to content

Instantly share code, notes, and snippets.

@agermanidis
Created May 8, 2015 01:25
Show Gist options
  • Save agermanidis/836b0dd4e9c43224967e to your computer and use it in GitHub Desktop.
Save agermanidis/836b0dd4e9c43224967e to your computer and use it in GitHub Desktop.
import multiprocessing
from hac import Humanity
from moviepy.editor import ImageSequenceClip
everyone = Humanity.find_people()
def take_photo(human):
human.assume_control(timeout = 30)
other_human = human.vision.search_for_human()
photo = human.smartphone.take_photo(subject = other_human)
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