Пример #1
0
    def create_service_request(self, img):
        print "create service request"

        req = gc_srvs.RequestAnnotationsRequest()
        req.image = img
        req.annotations = ['FACE_DETECTION']
        req.max_results = [10]
        return req
Пример #2
0
 def create_service_request_objects(self, img):
     req = gc_srvs.RequestAnnotationsRequest()
     req.image = img
     req.annotations = ['OBJECT_LOCALIZATION']
     req.max_results = [10]
     return req
Пример #3
0
 def create_service_request_logos(self, img):
     req = gc_srvs.RequestAnnotationsRequest()
     req.image = img
     req.annotations = ['LOGO_DETECTION']
     req.max_results = [10]
     return req