-
Notifications
You must be signed in to change notification settings - Fork 5.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Layout API update in FormRecognzier 2.0-preview (#7581)
* Adding FR v2.0 API updates * PR Validation: Fix typo, missing file ref. * PR Validation: Fix missed typo * PR Validation: fixing model verification errors, doc string fixes. * Fixing model verification, added Receipts endpoints, related examples. * Fixing semantic validation error * Update labelFile param * fixing types * Fixing model validation errors * Fixing model verification errors, other fixes. * Fixing mode verification error. * Fixing typo. * Fixing doc strings, Location header update, Change response code for Analyze calls * Incorporating feedback from Paul. * Feedback from Florian, verification fix. * Fixing for merge verification. * fixing for model verification tests * fixing model verification errors. * fixing example file to correct useLabelFile option. * Update for Layout Analysis * Update result for layout * Update for OCRLanguage parameter * Update from PR comment * Remove language as a parameter
- Loading branch information
1 parent
cd6f6d6
commit c70c560
Showing
3 changed files
with
125 additions
and
0 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
17 changes: 17 additions & 0 deletions
17
...cation/cognitiveservices/data-plane/FormRecognizer/preview/v2.0/examples/LayoutBatch.json
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,17 @@ | ||
{ | ||
"parameters": { | ||
"endpoint": "{endpoint}", | ||
"Content-Type": "application/json", | ||
"Ocp-Apim-Subscription-Key": "{API key}", | ||
"language": "en", | ||
"body": { | ||
} | ||
}, | ||
"responses": { | ||
"202": { | ||
"headers": { | ||
"Operation-Location": "{endpoint}/formrecognizer/v2.0-preview/layout/analyzeResults/{resultId}" | ||
} | ||
} | ||
} | ||
} |
24 changes: 24 additions & 0 deletions
24
.../cognitiveservices/data-plane/FormRecognizer/preview/v2.0/examples/LayoutBatchResult.json
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,24 @@ | ||
{ | ||
"parameters": { | ||
"endpoint": "{endpoint}", | ||
"Content-Type": "application/json", | ||
"Ocp-Apim-Subscription-Key": "{API key}", | ||
"modelId": "{model Id}", | ||
"resultId": "{result Id}", | ||
"body": {} | ||
}, | ||
"responses": { | ||
"200": { | ||
"body":{ | ||
"status": "succeeded", | ||
"createdDateTime": "2019-05-01T10:53:21Z", | ||
"lastUpdatedDateTime": "2019-05-01T10:53:23Z", | ||
"analyzeResult": { | ||
"version":"v2.0", | ||
"readResults":[], | ||
"pageResults":[] | ||
} | ||
} | ||
} | ||
} | ||
} |