def detect_landmarks(path):
 vision_client = vision.Client()
 with io.open(path, 'rb') as image_file:
  content = image_file.read()
 image = vision_client.image(content=content)
 landmarks = image.detect_landmarks()
 print 'Landmarks:'
 for landmark in landmarks:
  print landmark.description

def detect_landmarks ( path ) : vision_client = vision . Client ( ) with io . open ( path , 'rb' ) as image_file : content = image_file . read ( ) image = vision_client . image ( content = content ) landmarks = image . detect_landmarks ( ) print 'Landmarks:' for landmark in landmarks : print landmark . description
detects landmarks in the file .