File tree Expand file tree Collapse file tree 7 files changed +50
-19
lines changed
sdk/cognitiveservices/cognitiveservices-computervision Expand file tree Collapse file tree 7 files changed +50
-19
lines changed Original file line number Diff line number Diff line change 22 "name" : " @azure/cognitiveservices-computervision" ,
33 "author" : " Microsoft Corporation" ,
44 "description" : " ComputerVisionClient Library with typescript type definitions for node.js and browser." ,
5- "version" : " 8.0 .0" ,
5+ "version" : " 8.1 .0" ,
66 "dependencies" : {
77 "@azure/ms-rest-js" : " ^2.0.4" ,
88 "tslib" : " ^1.10.0"
Original file line number Diff line number Diff line change @@ -21,8 +21,8 @@ const config = {
2121 "@azure/ms-rest-azure-js" : "msRestAzure"
2222 } ,
2323 banner : `/*
24- * Copyright (c) Microsoft Corporation. All rights reserved.
25- * Licensed under the MIT License. See License.txt in the project root for license information.
24+ * Copyright (c) Microsoft Corporation.
25+ * Licensed under the MIT License.
2626 *
2727 * Code generated by Microsoft (R) AutoRest Code Generator.
2828 * Changes may cause incorrect behavior and will be lost if the code is regenerated.
Original file line number Diff line number Diff line change 11/*
2- * Copyright (c) Microsoft Corporation. All rights reserved.
3- * Licensed under the MIT License. See License.txt in the project root for
4- * license information.
2+ * Copyright (c) Microsoft Corporation.
3+ * Licensed under the MIT License.
54 *
65 * Code generated by Microsoft (R) AutoRest Code Generator.
76 * Changes may cause incorrect behavior and will be lost if the code is
@@ -1025,7 +1024,8 @@ const readOperationSpec: msRest.OperationSpec = {
10251024 queryParameters : [
10261025 Parameters . language2 ,
10271026 Parameters . pages ,
1028- Parameters . modelVersion
1027+ Parameters . modelVersion ,
1028+ Parameters . readingOrder
10291029 ] ,
10301030 requestBody : {
10311031 parameterPath : {
@@ -1340,7 +1340,9 @@ const readInStreamOperationSpec: msRest.OperationSpec = {
13401340 ] ,
13411341 queryParameters : [
13421342 Parameters . language2 ,
1343- Parameters . pages
1343+ Parameters . pages ,
1344+ Parameters . modelVersion ,
1345+ Parameters . readingOrder
13441346 ] ,
13451347 requestBody : {
13461348 parameterPath : "image" ,
Original file line number Diff line number Diff line change 11/*
2- * Copyright (c) Microsoft Corporation. All rights reserved.
3- * Licensed under the MIT License. See License.txt in the project root for
4- * license information.
2+ * Copyright (c) Microsoft Corporation.
3+ * Licensed under the MIT License.
54 *
65 * Code generated by Microsoft (R) AutoRest Code Generator.
76 * Changes may cause incorrect behavior and will be lost if the code is
1110import * as msRest from "@azure/ms-rest-js" ;
1211
1312const packageName = "@azure/cognitiveservices-computervision" ;
14- const packageVersion = "8.0 .0" ;
13+ const packageVersion = "8.1 .0" ;
1514
1615export class ComputerVisionClientContext extends msRest . ServiceClient {
1716 endpoint : string ;
Original file line number Diff line number Diff line change 11/*
2- * Copyright (c) Microsoft Corporation. All rights reserved.
3- * Licensed under the MIT License. See License.txt in the project root for license information.
2+ * Copyright (c) Microsoft Corporation.
3+ * Licensed under the MIT License.
44 *
55 * Code generated by Microsoft (R) AutoRest Code Generator.
66 * Changes may cause incorrect behavior and will be lost if the code is regenerated.
@@ -997,6 +997,12 @@ export interface ComputerVisionClientReadOptionalParams extends msRest.RequestOp
997997 * 'latest'.
998998 */
999999 modelVersion ?: string ;
1000+ /**
1001+ * Optional parameter to specify which reading order algorithm should be applied when ordering
1002+ * the extract text elements. Can be either 'basic' or 'natural'. Will default to 'basic' if not
1003+ * specified. Default value: 'basic'.
1004+ */
1005+ readingOrder ?: string ;
10001006}
10011007
10021008/**
@@ -1182,6 +1188,18 @@ export interface ComputerVisionClientReadInStreamOptionalParams extends msRest.R
11821188 * comma.
11831189 */
11841190 pages ?: string [ ] ;
1191+ /**
1192+ * Optional parameter to specify the version of the OCR model used for text extraction. Accepted
1193+ * values are: "latest", "latest-preview", "2021-04-12". Defaults to "latest". Default value:
1194+ * 'latest'.
1195+ */
1196+ modelVersion ?: string ;
1197+ /**
1198+ * Optional parameter to specify which reading order algorithm should be applied when ordering
1199+ * the extract text elements. Can be either 'basic' or 'natural'. Will default to 'basic' if not
1200+ * specified. Default value: 'basic'.
1201+ */
1202+ readingOrder ?: string ;
11851203}
11861204
11871205/**
Original file line number Diff line number Diff line change 11/*
2- * Copyright (c) Microsoft Corporation. All rights reserved.
3- * Licensed under the MIT License. See License.txt in the project root for license information.
2+ * Copyright (c) Microsoft Corporation.
3+ * Licensed under the MIT License.
44 *
55 * Code generated by Microsoft (R) AutoRest Code Generator.
66 * Changes may cause incorrect behavior and will be lost if the code is regenerated.
Original file line number Diff line number Diff line change 11/*
2- * Copyright (c) Microsoft Corporation. All rights reserved.
3- * Licensed under the MIT License. See License.txt in the project root for
4- * license information.
2+ * Copyright (c) Microsoft Corporation.
3+ * Licensed under the MIT License.
54 *
65 * Code generated by Microsoft (R) AutoRest Code Generator.
76 * Changes may cause incorrect behavior and will be lost if the code is
@@ -225,6 +224,19 @@ export const pages: msRest.OperationQueryParameter = {
225224 } ,
226225 collectionFormat : msRest . QueryCollectionFormat . Csv
227226} ;
227+ export const readingOrder : msRest . OperationQueryParameter = {
228+ parameterPath : [
229+ "options" ,
230+ "readingOrder"
231+ ] ,
232+ mapper : {
233+ serializedName : "readingOrder" ,
234+ defaultValue : 'basic' ,
235+ type : {
236+ name : "String"
237+ }
238+ }
239+ } ;
228240export const smartCropping : msRest . OperationQueryParameter = {
229241 parameterPath : [
230242 "options" ,
You can’t perform that action at this time.
0 commit comments