Skip to content
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

[formrecognizer] rerecord tests for preview.3 #17460

Merged
merged 8 commits into from
Mar 19, 2021
Merged
Show file tree
Hide file tree
Changes from 7 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ interactions:
Content-Type:
- image/jpeg
User-Agent:
- azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0)
- azsdk-python-ai-formrecognizer/3.1.0b4 Python/3.8.5 (Windows-10-10.0.19041-SP0)
method: POST
uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.2/prebuilt/businessCard/analyze?includeTextDetails=false
uri: https://region.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.3/prebuilt/businessCard/analyze?includeTextDetails=false
response:
body:
string: '{"error": {"code": "401", "message": "Access denied due to invalid
Expand All @@ -25,7 +25,7 @@ interactions:
content-length:
- '224'
date:
- Wed, 11 Nov 2020 17:49:33 GMT
- Thu, 18 Mar 2021 03:16:23 GMT
status:
code: 401
message: PermissionDenied
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,27 +14,27 @@ interactions:
Content-Type:
- image/jpeg
User-Agent:
- azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0)
- azsdk-python-ai-formrecognizer/3.1.0b4 Python/3.8.5 (Windows-10-10.0.19041-SP0)
method: POST
uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.2/prebuilt/businessCard/analyze?includeTextDetails=false
uri: https://region.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.3/prebuilt/businessCard/analyze?includeTextDetails=false
response:
body:
string: ''
headers:
apim-request-id:
- 3bb1ceec-da67-487d-930d-82fbb8d0ef45
- 7a17b014-7911-4173-80f7-d10aeea769d0
content-length:
- '0'
date:
- Wed, 11 Nov 2020 17:49:36 GMT
- Thu, 18 Mar 2021 03:16:24 GMT
operation-location:
- https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.2/prebuilt/businessCard/analyzeResults/3bb1ceec-da67-487d-930d-82fbb8d0ef45
- https://region.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.3/prebuilt/businessCard/analyzeResults/7a17b014-7911-4173-80f7-d10aeea769d0
strict-transport-security:
- max-age=31536000; includeSubDomains; preload
x-content-type-options:
- nosniff
x-envoy-upstream-service-time:
- '617'
- '515'
status:
code: 202
message: Accepted
Expand All @@ -48,64 +48,64 @@ interactions:
Connection:
- keep-alive
User-Agent:
- azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0)
- azsdk-python-ai-formrecognizer/3.1.0b4 Python/3.8.5 (Windows-10-10.0.19041-SP0)
method: GET
uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.2/prebuilt/businessCard/analyzeResults/3bb1ceec-da67-487d-930d-82fbb8d0ef45
uri: https://region.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.3/prebuilt/businessCard/analyzeResults/7a17b014-7911-4173-80f7-d10aeea769d0
response:
body:
string: '{"status": "succeeded", "createdDateTime": "2020-11-11T17:49:36Z",
"lastUpdatedDateTime": "2020-11-11T17:49:40Z", "analyzeResult": {"version":
string: '{"status": "succeeded", "createdDateTime": "2021-03-18T03:16:24Z",
"lastUpdatedDateTime": "2021-03-18T03:16:27Z", "analyzeResult": {"version":
"2.1.0", "readResults": [{"page": 1, "angle": -16.6836, "width": 4032, "height":
3024, "unit": "pixel"}], "documentResults": [{"docType": "prebuilt:businesscard",
"pageRange": [1, 1], "fields": {"ContactNames": {"type": "array", "valueArray":
[{"type": "object", "valueObject": {"FirstName": {"type": "string", "valueString":
"Avery", "text": "Avery", "boundingBox": [683, 1098, 1158, 984, 1187, 1103,
712, 1212], "page": 1}, "LastName": {"type": "string", "valueString": "Smith",
"text": "Smith", "boundingBox": [1179, 979, 1610, 871, 1637, 990, 1209, 1097],
"page": 1}}, "text": "Dr. Avery Smith", "boundingBox": [413.8, 1151.8, 1610,
871, 1639.5, 996.8, 443.4, 1277.6], "page": 1, "confidence": 0.979}]}, "JobTitles":
{"type": "array", "valueArray": [{"type": "string", "valueString": "Senior
Researcher", "text": "Senior Researcher", "boundingBox": [446.8, 1312.2, 1318,
1103, 1336.7, 1180.9, 465.5, 1390.1], "page": 1, "confidence": 0.99}]}, "Departments":
{"type": "array", "valueArray": [{"type": "string", "valueString": "Cloud
& Al Department", "text": "Cloud & Al Department", "boundingBox": [473.1,
1407.2, 1594, 1132, 1615.4, 1219.3, 494.5, 1494.5], "page": 1, "confidence":
0.989}]}, "Emails": {"type": "array", "valueArray": [{"type": "string", "valueString":
"[email protected]", "text": "[email protected]", "boundingBox":
[2103, 935, 2926, 701, 2938, 764, 2119, 994], "page": 1, "confidence": 0.99}]},
"Websites": {"type": "array", "valueArray": [{"type": "string", "valueString":
"pageRange": [1, 1], "fields": {"Addresses": {"type": "array", "valueArray":
[{"type": "string", "valueString": "2 Kingdom Street Paddington, London, W2
6BD", "text": "2 Kingdom Street Paddington, London, W2 6BD", "boundingBox":
[1227.3, 2138.3, 2520.2, 1690.5, 2597, 1912.3, 1304.1, 2360.1], "page": 1,
"confidence": 0.98}]}, "CompanyNames": {"type": "array", "valueArray": [{"type":
"string", "valueString": "Contoso", "text": "Contoso", "boundingBox": [1146,
1926, 2224, 1587, 2285, 1756, 1202, 2099], "page": 1, "confidence": 0.168}]},
"ContactNames": {"type": "array", "valueArray": [{"type": "object", "valueObject":
{"FirstName": {"type": "string", "valueString": "Avery", "text": "Avery",
"boundingBox": [666, 1102, 1111, 995, 1140, 1114, 696, 1216], "page": 1},
"LastName": {"type": "string", "valueString": "Smith", "text": "Smith", "boundingBox":
[1170, 981, 1571, 881, 1600, 1000, 1200, 1100], "page": 1}}, "text": "Dr.
Avery Smith", "boundingBox": [414.1, 1153, 1572, 880.8, 1601.3, 1005.6, 443.5,
1277.9], "page": 1, "confidence": 0.979}]}, "Departments": {"type": "array",
"valueArray": [{"type": "string", "valueString": "Cloud & Al Department",
"text": "Cloud & Al Department", "boundingBox": [473.6, 1409.5, 1586, 1134,
1607.3, 1219.8, 494.9, 1495.3], "page": 1, "confidence": 0.989}]}, "Emails":
{"type": "array", "valueArray": [{"type": "string", "valueString": "[email protected]",
"text": "[email protected]", "boundingBox": [2106, 934, 2908, 706, 2921,
769, 2122, 993], "page": 1, "confidence": 0.99}]}, "Faxes": {"type": "array",
"valueArray": [{"type": "phoneNumber", "text": "+44 (0) 20 6789 2345", "boundingBox":
[2520.4, 1195.5, 3191.8, 983.5, 3215.8, 1059.2, 2544.3, 1271.3], "page": 1,
"confidence": 0.99}]}, "JobTitles": {"type": "array", "valueArray": [{"type":
"string", "valueString": "Senior Researcher", "text": "Senior Researcher",
"boundingBox": [451, 1312, 1315.9, 1103.6, 1334.7, 1181.7, 469.8, 1390], "page":
1, "confidence": 0.99}]}, "MobilePhones": {"type": "array", "valueArray":
[{"type": "phoneNumber", "text": "+44 (0) 7911 123456", "boundingBox": [2426.8,
1040.1, 3065.5, 846, 3087.2, 917.6, 2448.5, 1111.7], "page": 1, "confidence":
0.99}]}, "Websites": {"type": "array", "valueArray": [{"type": "string", "valueString":
"https://www.contoso.com/", "text": "https://www.contoso.com/", "boundingBox":
[2116, 1004, 2981, 757, 3006, 824, 2136, 1075], "page": 1, "confidence": 0.99}]},
"MobilePhones": {"type": "array", "valueArray": [{"type": "phoneNumber", "text":
"+44 (0) 7911 123456", "boundingBox": [2431.9, 1037.2, 3081.2, 843.3, 3102.7,
915.2, 2453.3, 1109.1], "page": 1, "confidence": 0.99}]}, "OtherPhones": {"type":
"array", "valueArray": [{"type": "phoneNumber", "text": "+44 (0) 20 9876 5432",
"boundingBox": [2469.1, 1118.1, 3136.2, 912.4, 3158.8, 985.8, 2491.8, 1191.5],
"page": 1, "confidence": 0.99}]}, "Faxes": {"type": "array", "valueArray":
[{"type": "phoneNumber", "text": "+44 (0) 20 6789 2345", "boundingBox": [2521.3,
1196.2, 3198, 979, 3222.3, 1054.7, 2545.6, 1271.9], "page": 1, "confidence":
0.99}]}, "CompanyNames": {"type": "array", "valueArray": [{"type": "string",
"valueString": "Contoso", "text": "Contoso", "boundingBox": [1157, 1923, 2299,
1565, 2361, 1731, 1213, 2098], "page": 1, "confidence": 0.222}]}, "Addresses":
{"type": "array", "valueArray": [{"type": "string", "valueString": "2 Kingdom
Street Paddington, London, W2 6BD", "text": "2 Kingdom Street Paddington,
London, W2 6BD", "boundingBox": [1224.6, 2139.5, 2536.4, 1685.2, 2613.1, 1906.7,
1301.3, 2361], "page": 1, "confidence": 0.979}]}}}]}}'
[2120, 1003, 2981, 757, 3006, 824, 2139, 1075], "page": 1, "confidence": 0.99}]},
"WorkPhones": {"type": "array", "valueArray": [{"type": "phoneNumber", "text":
"+44 (0) 20 9876 5432", "boundingBox": [2468.2, 1118.1, 3130.3, 914.6, 3152.9,
988.2, 2490.8, 1191.6], "page": 1, "confidence": 0.989}]}}}]}}'
headers:
apim-request-id:
- 61b81c52-000b-44bd-a0f6-019cc2e5c298
- 32d03fb9-1611-430a-8b88-3daa1e48875d
content-length:
- '2683'
- '2684'
content-type:
- application/json; charset=utf-8
date:
- Wed, 11 Nov 2020 17:49:41 GMT
- Thu, 18 Mar 2021 03:16:30 GMT
strict-transport-security:
- max-age=31536000; includeSubDomains; preload
x-content-type-options:
- nosniff
x-envoy-upstream-service-time:
- '27'
- '17'
status:
code: 200
message: OK
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -464,27 +464,27 @@ interactions:
Content-Type:
- application/pdf
User-Agent:
- azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0)
- azsdk-python-ai-formrecognizer/3.1.0b4 Python/3.8.5 (Windows-10-10.0.19041-SP0)
method: POST
uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.2/prebuilt/businessCard/analyze?includeTextDetails=false
uri: https://region.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.3/prebuilt/businessCard/analyze?includeTextDetails=false
response:
body:
string: ''
headers:
apim-request-id:
- 6e6713af-77fc-4c55-a6c6-3f1501081068
- f8016959-30e6-4706-8a1d-c18d3f8a8e46
content-length:
- '0'
date:
- Wed, 11 Nov 2020 17:49:42 GMT
- Thu, 18 Mar 2021 03:16:30 GMT
operation-location:
- https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.2/prebuilt/businessCard/analyzeResults/6e6713af-77fc-4c55-a6c6-3f1501081068
- https://region.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.3/prebuilt/businessCard/analyzeResults/f8016959-30e6-4706-8a1d-c18d3f8a8e46
strict-transport-security:
- max-age=31536000; includeSubDomains; preload
x-content-type-options:
- nosniff
x-envoy-upstream-service-time:
- '52'
- '47'
status:
code: 202
message: Accepted
Expand All @@ -498,31 +498,31 @@ interactions:
Connection:
- keep-alive
User-Agent:
- azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0)
- azsdk-python-ai-formrecognizer/3.1.0b4 Python/3.8.5 (Windows-10-10.0.19041-SP0)
method: GET
uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.2/prebuilt/businessCard/analyzeResults/6e6713af-77fc-4c55-a6c6-3f1501081068
uri: https://region.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.3/prebuilt/businessCard/analyzeResults/f8016959-30e6-4706-8a1d-c18d3f8a8e46
response:
body:
string: '{"status": "succeeded", "createdDateTime": "2020-11-11T17:49:42Z",
"lastUpdatedDateTime": "2020-11-11T17:49:46Z", "analyzeResult": {"version":
string: '{"status": "succeeded", "createdDateTime": "2021-03-18T03:16:31Z",
"lastUpdatedDateTime": "2021-03-18T03:16:33Z", "analyzeResult": {"version":
"2.1.0", "readResults": [{"page": 1, "angle": 0, "width": 8.5, "height": 11,
"unit": "inch"}], "documentResults": [{"docType": "prebuilt:businesscard",
"pageRange": [1, 1], "fields": {}}]}}'
headers:
apim-request-id:
- 2bbf38ba-1732-4960-8713-ef7e25d9c079
- 7f8ae5ae-e00e-4f9e-9932-c38b26a011c9
content-length:
- '305'
content-type:
- application/json; charset=utf-8
date:
- Wed, 11 Nov 2020 17:49:47 GMT
- Thu, 18 Mar 2021 03:16:36 GMT
strict-transport-security:
- max-age=31536000; includeSubDomains; preload
x-content-type-options:
- nosniff
x-envoy-upstream-service-time:
- '17'
- '15'
status:
code: 200
message: OK
Expand Down
Loading