def identify_landmark(gcs_uri, max_results=4):
 batch_request = [{'image': {'source': {'gcs_image_uri': gcs_uri}}, 'features': [{'type': 'LANDMARK_DETECTION', 'maxResults': max_results}]}]
 service = get_vision_service()
 request = service.images().annotate(body={'requests': batch_request})
 response = request.execute()
 return response['responses'][0].get('landmarkAnnotations', None)

def identify_landmark ( gcs_uri , max_results = 4 ) : batch_request = [ { 'image' : { 'source' : { 'gcs_image_uri' : gcs_uri } } , 'features' : [ { 'type' : 'LANDMARK_DETECTION' , 'maxResults' : max_results } ] } ] service = get_vision_service ( ) request = service . images ( ) . annotate ( body = { 'requests' : batch_request } ) response = request . execute ( ) return response [ 'responses' ] [ 0 ] . get ( 'landmarkAnnotations' , None )
uses the vision api to identify the landmark in the given image .