-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[AutoPR cognitiveservices/data-plane/ComputerVision] [Computer Vision…
…] Add read to CV OCR API. (#4473) * Generated from cbcb8cc3c280c9725bca0f4e0feb4bfc57b677ec Add read to OCR API. * Packaging update of azure-cognitiveservices-vision-computervision * Generated from 51742b3e212c2e900ed5c24f7c351fa7f896d25e Mark asyncBatchAnalyze as long running operation. * Generated from b047a112a2c4cddaa54605d5de6a7bc3faab38c7 Update page property.
- Loading branch information
1 parent
798f589
commit b3bbca7
Showing
16 changed files
with
447 additions
and
84 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
36 changes: 36 additions & 0 deletions
36
...putervision/azure/cognitiveservices/vision/computervision/models/read_operation_result.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
# coding=utf-8 | ||
# -------------------------------------------------------------------------- | ||
# Copyright (c) Microsoft Corporation. All rights reserved. | ||
# Licensed under the MIT License. See License.txt in the project root for | ||
# license information. | ||
# | ||
# Code generated by Microsoft (R) AutoRest Code Generator. | ||
# Changes may cause incorrect behavior and will be lost if the code is | ||
# regenerated. | ||
# -------------------------------------------------------------------------- | ||
|
||
from msrest.serialization import Model | ||
|
||
|
||
class ReadOperationResult(Model): | ||
"""OCR result of the read operation. | ||
:param status: Status of the read operation. Possible values include: 'Not | ||
Started', 'Running', 'Failed', 'Succeeded' | ||
:type status: str or | ||
~azure.cognitiveservices.vision.computervision.models.TextOperationStatusCodes | ||
:param recognition_results: A array of text recognition result of the read | ||
operation. | ||
:type recognition_results: | ||
list[~azure.cognitiveservices.vision.computervision.models.TextRecognitionResult] | ||
""" | ||
|
||
_attribute_map = { | ||
'status': {'key': 'status', 'type': 'TextOperationStatusCodes'}, | ||
'recognition_results': {'key': 'recognitionResults', 'type': '[TextRecognitionResult]'}, | ||
} | ||
|
||
def __init__(self, **kwargs): | ||
super(ReadOperationResult, self).__init__(**kwargs) | ||
self.status = kwargs.get('status', None) | ||
self.recognition_results = kwargs.get('recognition_results', None) |
36 changes: 36 additions & 0 deletions
36
...rvision/azure/cognitiveservices/vision/computervision/models/read_operation_result_py3.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
# coding=utf-8 | ||
# -------------------------------------------------------------------------- | ||
# Copyright (c) Microsoft Corporation. All rights reserved. | ||
# Licensed under the MIT License. See License.txt in the project root for | ||
# license information. | ||
# | ||
# Code generated by Microsoft (R) AutoRest Code Generator. | ||
# Changes may cause incorrect behavior and will be lost if the code is | ||
# regenerated. | ||
# -------------------------------------------------------------------------- | ||
|
||
from msrest.serialization import Model | ||
|
||
|
||
class ReadOperationResult(Model): | ||
"""OCR result of the read operation. | ||
:param status: Status of the read operation. Possible values include: 'Not | ||
Started', 'Running', 'Failed', 'Succeeded' | ||
:type status: str or | ||
~azure.cognitiveservices.vision.computervision.models.TextOperationStatusCodes | ||
:param recognition_results: A array of text recognition result of the read | ||
operation. | ||
:type recognition_results: | ||
list[~azure.cognitiveservices.vision.computervision.models.TextRecognitionResult] | ||
""" | ||
|
||
_attribute_map = { | ||
'status': {'key': 'status', 'type': 'TextOperationStatusCodes'}, | ||
'recognition_results': {'key': 'recognitionResults', 'type': '[TextRecognitionResult]'}, | ||
} | ||
|
||
def __init__(self, *, status=None, recognition_results=None, **kwargs) -> None: | ||
super(ReadOperationResult, self).__init__(**kwargs) | ||
self.status = status | ||
self.recognition_results = recognition_results |
Oops, something went wrong.