-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Cogs OCR] Update vision SDK per latest update from REST sepc #6310
Conversation
@@ -1195,7 +1195,7 @@ public async Task<HttpOperationResponse<DomainModelResults>> AnalyzeImageByDomai | |||
/// <return> | |||
/// A response object containing the response body and response headers. | |||
/// </return> | |||
public async Task<HttpOperationResponse<OcrResult>> RecognizePrintedTextWithHttpMessagesAsync(bool detectOrientation, string url, OcrLanguages language = default(OcrLanguages), Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) | |||
public async Task<HttpOperationResponse<OcrResult>> RecognizePrintedTextWithHttpMessagesAsync(bool detectOrientation, string url, OcrLanguages? language = default(OcrLanguages?), Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No swagger change for this API, so it seems that this change is caused by the autorest tool change.
@@ -3731,7 +3723,7 @@ public async Task<HttpOperationResponse<DomainModelResults>> AnalyzeImageByDomai | |||
/// <return> | |||
/// A response object containing the response body and response headers. | |||
/// </return> | |||
public async Task<HttpOperationResponse<OcrResult>> RecognizePrintedTextInStreamWithHttpMessagesAsync(bool detectOrientation, Stream image, OcrLanguages language = default(OcrLanguages), Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) | |||
public async Task<HttpOperationResponse<OcrResult>> RecognizePrintedTextInStreamWithHttpMessagesAsync(bool detectOrientation, Stream image, OcrLanguages? language = default(OcrLanguages?), Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same for this API. Seems to be caused by codegen tool.
|
@AlexGhiondea , we currently have a S3 issue related with this fix. And we need to fix the bug and release a new sdk before 5.31. Can you help review the change? |
sdk/cognitiveservices/Vision.ComputerVision/src/Generated/ComputerVisionClient.cs
Show resolved
Hide resolved
I am seeing a few API changes (removing parameters) -- are those breaking changes? |
Update vision SDK per latest update from REST sepc:
generate.ps1
script is not working per [BUG] Code generation script is not working after cognitive service folder structure is changed #6309, so run code generation for Vision SDK manually;TextRecognitionMode
parameter is removed fromBatchReadFile
OCR operation in the latest version and is thus a breaking change. So bump the major number for Vision SDK;BatchReadFile
.