def detect_logos(path):
 vision_client = vision.Client()
 with io.open(path, 'rb') as image_file:
  content = image_file.read()
 image = vision_client.image(content=content)
 logos = image.detect_logos()
 print 'Logos:'
 for logo in logos:
  print logo.description

def detect_logos ( path ) : vision_client = vision . Client ( ) with io . open ( path , 'rb' ) as image_file : content = image_file . read ( ) image = vision_client . image ( content = content ) logos = image . detect_logos ( ) print 'Logos:' for logo in logos : print logo . description
detects logos in the file .