def detect_safe_search_cloud_storage(uri):
 vision_client = vision.Client()
 image = vision_client.image(source_uri=uri)
 safe_searches = image.detect_safe_search()
 print 'Safe search:'
 for safe in safe_searches:
  print 'adult: {}'.format(safe.adult)
  print 'medical: {}'.format(safe.medical)
  print 'spoofed: {}'.format(safe.spoof)
  print 'violence: {}'.format(safe.violence)

def detect_safe_search_cloud_storage ( uri ) : vision_client = vision . Client ( ) image = vision_client . image ( source_uri = uri ) safe_searches = image . detect_safe_search ( ) print 'Safe search:' for safe in safe_searches : print 'adult: {}' . format ( safe . adult ) print 'medical: {}' . format ( safe . medical ) print 'spoofed: {}' . format ( safe . spoof ) print 'violence: {}' . format ( safe . violence )
detects unsafe features in the file located in google cloud storage .