@GoogleCloudBaseHook.catch_http_exception<EOL><INDENT>def text_detection(<EOL>self, image, max_results=None, retry=None, timeout=None, additional_properties=None<EOL>):<DEDENT>
client = self.annotator_client<EOL>self.log.info("<STR_LIT>")<EOL>if additional_properties is None:<EOL><INDENT>additional_properties = {}<EOL><DEDENT>response = client.text_detection(<EOL>image=image, max_results=max_results, retry=retry, timeout=timeout, **additional_properties<EOL>)<EOL>response = MessageToDict(response)<EOL>self._check_for_error(response)<EOL>self.log.info("<STR_LIT>")<EOL>return response<EOL>
For the documentation see:
:py:class:`~airflow.contrib.operators.gcp_vision_operator.CloudVisionDetectTextOperator`