How to use the azure-cognitiveservices-vision-computervision.azure.cognitiveservices.vision.computervision.models function in azure-cognitiveservices-vision-computervision

To help you get started, we’ve selected a few azure-cognitiveservices-vision-computervision examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github Azure / azure-sdk-for-python / azure-cognitiveservices-vision-computervision / azure / cognitiveservices / vision / computervision / computer_vision_client.py View on Github external
# Construct headers
        header_parameters = {}
        header_parameters['Content-Type'] = 'application/octet-stream'
        if custom_headers:
            header_parameters.update(custom_headers)

        # Construct body
        body_content = self._client.stream_upload(image, callback)

        # Construct and send request
        request = self._client.post(url, query_parameters, header_parameters, body_content)
        response = self._client.send(request, stream=False, **operation_config)

        if response.status_code not in [202]:
            raise models.ComputerVisionErrorException(self._deserialize, response)

        if raw:
            client_raw_response = ClientRawResponse(None, response)
            client_raw_response.add_headers({
                'Operation-Location': 'str',
            })
            return client_raw_response
    recognize_text_in_stream.metadata = {'url': '/recognizeText'}

azure-cognitiveservices-vision-computervision

Microsoft Azure Cognitive Services Computer Vision Client Library for Python

MIT
Latest version published 25 days ago

Package Health Score

87 / 100
Full package analysis

Popular azure-cognitiveservices-vision-computervision functions

Similar packages