asposeocrcloud/api/ocr_api.py
def __get_recognize_from_storage(self, file, folder, storage, query_params, **kwargs):
        assert file is not None
        """ Recognize image text from the Aspose.Storage. Put your file in storage and give us path.

        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please pass async_req=True

        :param bool async_req: Asynchronous request
        :param str storage: Optional: Aspose Storage name
        :param str folder: Optional: The directory path, that contains file
        :param str file: The name of file in storage
        :return: OCRResponse . If the method is called asynchronously, returns the request thread.
        """

        all_params = ['async_req', '_return_http_data_only', '_preload_content', '_request_timeout']

        params = locals()
        for key, val in six.iteritems(params['kwargs']):
            if key not in all_params:
                raise TypeError(
                    "Got an unexpected keyword argument '%s'"
                    " to method get_convert_document_to_image" % key
                )
            params[key] = val
        del params['kwargs']

        collection_formats = {}
        path_params = {'name': file}  # uri params #

        storage_params = {'storage': storage,
                          'folder': folder}  # content query params

        query_params = query_params.__dict__
        query_params = {**storage_params, **query_params}

        header_params = {}
        form_params = {}
        local_var_files = {}
        body_params = {}

        # HTTP header `Accept`
        header_params['Accept'] = self.api_client.select_header_accept(
            ['multipart/form-data'])

        # HTTP header `Content-Type`
        header_params['Content-Type'] = self.api_client.select_header_content_type(
            ['application/json'])

        return self.api_client.call_api('/ocr/{name}/recognize', 'GET', path_params, query_params, header_params,
                                        body=body_params, post_params=form_params, files=local_var_files,
                                        response_type='OcrResponse', async_req=params.get('async_req'),
                                        _return_http_data_only=params.get('_return_http_data_only'),
                                        collection_formats=collection_formats,
                                        _preload_content=params.get('_preload_content', True),
                                        _request_timeout=params.get('_request_timeout'))
 Recognize image text from the Aspose.Storage. Put your file in storage and give us path.

        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please pass async_req=True

        :param bool async_req: Asynchronous request
        :param str storage: Optional: Aspose Storage name
        :param str folder: Optional: The directory path, that contains file
        :param str file: The name of file in storage
        :return: OCRResponse . If the method is called asynchronously, returns the request thread.
        
Recognize image text from the Aspose.Storage. Put your file in storage and give us path.
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
Recognize image text from the Aspose . Storage . Put your file in storage and give us path . This method makes a synchronous HTTP request by default . To make an asynchronous HTTP request please pass async_req = True
def __get_recognize_from_storage(self, file, folder, storage, query_params, **kwargs):
        assert file is not None
        all_params = ['async_req', '_return_http_data_only', '_preload_content', '_request_timeout']
        params = locals()
        for key, val in six.iteritems(params['kwargs']):
            if key not in all_params:
                raise TypeError(
                    "Got an unexpected keyword argument '%s'"
                    " to method get_convert_document_to_image" % key
                )
            params[key] = val
        del params['kwargs']
        collection_formats = {}
        path_params = {'name': file}  
        storage_params = {'storage': storage,
                          'folder': folder}  
        query_params = query_params.__dict__
        query_params = {**storage_params, **query_params}
        header_params = {}
        form_params = {}
        local_var_files = {}
        body_params = {}
        header_params['Accept'] = self.api_client.select_header_accept(
            ['multipart/form-data'])
        header_params['Content-Type'] = self.api_client.select_header_content_type(
            ['application/json'])
        return self.api_client.call_api('/ocr/{name}/recognize', 'GET', path_params, query_params, header_params,
                                        body=body_params, post_params=form_params, files=local_var_files,
                                        response_type='OcrResponse', async_req=params.get('async_req'),
                                        _return_http_data_only=params.get('_return_http_data_only'),
                                        collection_formats=collection_formats,
                                        _preload_content=params.get('_preload_content', True),
                                        _request_timeout=params.get('_request_timeout'))
def __get_recognize_from_storage ( self , file , folder , storage , query_params , ** kwargs ) : assert file is not None all_params = [ 'async_req' , '_return_http_data_only' , '_preload_content' , '_request_timeout' ] params = locals ( ) for key , val in six . iteritems ( params [ 'kwargs' ] ) : if key not in all_params : raise TypeError ( "Got an unexpected keyword argument '%s'" " to method get_convert_document_to_image" % key ) params [ key ] = val del params [ 'kwargs' ] collection_formats = { } path_params = { 'name' : file } storage_params = { 'storage' : storage , 'folder' : folder } query_params = query_params . __dict__ query_params = { ** storage_params , ** query_params } header_params = { } form_params = { } local_var_files = { } body_params = { } header_params [ 'Accept' ] = self . api_client . select_header_accept ( [ 'multipart/form-data' ] ) header_params [ 'Content-Type' ] = self . api_client . select_header_content_type ( [ 'application/json' ] ) return self . api_client . call_api ( '/ocr/{name}/recognize' , 'GET' , path_params , query_params , header_params , body = body_params , post_params = form_params , files = local_var_files , response_type = 'OcrResponse' , async_req = params . get ( 'async_req' ) , _return_http_data_only = params . get ( '_return_http_data_only' ) , collection_formats = collection_formats , _preload_content = params . get ( '_preload_content' , True ) , _request_timeout = params . get ( '_request_timeout' ) )
Recognize image text from the Aspose.Storage.
Recognize image text from the Aspose . Storage .
""" Recognize image text from the Aspose.Storage. Put your file in storage and give us path.

        This method makes a synchronous HTTP request by default. To make an
        asynchronous HTTP request, please pass async_req=True

        :param bool async_req: Asynchronous request
        :param str storage: Optional: Aspose Storage name
        :param str folder: Optional: The directory path, that contains file
        :param str file: The name of file in storage
        :return: OCRResponse . If the method is called asynchronously, returns the request thread.
        """ # uri params # # content query params # HTTP header `Accept` # HTTP header `Content-Type`
OCRResponse . If the method is called asynchronously, returns the request thread.
OCRResponse . If the method is called asynchronously returns the request thread .
self
file
The name of file in storage
The name of file in storage
folder
The directory path, that contains file
The directory path that contains file
storage
Aspose Storage name
Aspose Storage name
query_params
async_req
None