MicrosoftDocs / azure-docs

Open source documentation of Microsoft Azure
https://docs.microsoft.com/azure
Creative Commons Attribution 4.0 International
10.26k stars 21.43k forks source link

Wrong classes and methods #57760

Closed frvigano closed 4 years ago

frvigano commented 4 years ago

the code imports TextOperationStatusCodes instead of OperationStatusCodes

When the code checks the OCR result, it should be something like

if get_text_results.status == OperationStatusCodes.succeeded: for text_result in get_text_results.analyze_result.read_results: for line in text_result.lines: print(line.text)

Used methods do not exist in the latest version of the library


Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

GiftA-MSFT commented 4 years ago

@frvigano we will review your feedback and get back to you shortly. Thanks.

GiftA-MSFT commented 4 years ago

@PatrickFarley can you please review above feedback to update the document and source code? Thanks.

PatrickFarley commented 4 years ago

I've updated the Python sample code. Note that in other languages, the sample code hasn't yet been updated; we are working on creating sample code for them as well.

please-close