Skip to content

[formrecognizer] unskip receipt/business card tests and re-record with preview.2 #15270

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

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
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.8.5 (macOS-10.13.6-x86_64-i386-64bit)
- azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0)
method: POST
uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/prebuilt/businessCard/analyze?includeTextDetails=false
uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.2/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:
- Tue, 06 Oct 2020 18:56:59 GMT
- Wed, 11 Nov 2020 17:49:33 GMT
status:
code: 401
message: PermissionDenied
Expand Down

Large diffs are not rendered by default.

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.8.5 (macOS-10.13.6-x86_64-i386-64bit)
- azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0)
method: POST
uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/prebuilt/businessCard/analyze?includeTextDetails=false
uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.2/prebuilt/businessCard/analyze?includeTextDetails=false
response:
body:
string: ''
headers:
apim-request-id:
- 0e4fb86f-73cc-4b1d-8c60-f063c19f3481
- 6e6713af-77fc-4c55-a6c6-3f1501081068
content-length:
- '0'
date:
- Tue, 06 Oct 2020 18:57:08 GMT
- Wed, 11 Nov 2020 17:49:42 GMT
operation-location:
- https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/prebuilt/businessCard/analyzeResults/0e4fb86f-73cc-4b1d-8c60-f063c19f3481
- https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.2/prebuilt/businessCard/analyzeResults/6e6713af-77fc-4c55-a6c6-3f1501081068
strict-transport-security:
- max-age=31536000; includeSubDomains; preload
x-content-type-options:
- nosniff
x-envoy-upstream-service-time:
- '162'
- '52'
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.8.5 (macOS-10.13.6-x86_64-i386-64bit)
- azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0)
method: GET
uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/prebuilt/businessCard/analyzeResults/0e4fb86f-73cc-4b1d-8c60-f063c19f3481
uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.2/prebuilt/businessCard/analyzeResults/6e6713af-77fc-4c55-a6c6-3f1501081068
response:
body:
string: '{"status": "succeeded", "createdDateTime": "2020-10-06T18:57:08Z",
"lastUpdatedDateTime": "2020-10-06T18:57:12Z", "analyzeResult": {"version":
"2.1.0", "readResults": [{"page": 1, "angle": 0, "width": 8.4967, "height":
10.9967, "unit": "inch"}], "documentResults": [{"docType": "prebuilt:businesscard",
string: '{"status": "succeeded", "createdDateTime": "2020-11-11T17:49:42Z",
"lastUpdatedDateTime": "2020-11-11T17:49:46Z", "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:
- 9f0c028e-acfe-43b6-8c66-55e0aefa199b
- 2bbf38ba-1732-4960-8713-ef7e25d9c079
content-length:
- '313'
- '305'
content-type:
- application/json; charset=utf-8
date:
- Tue, 06 Oct 2020 18:57:13 GMT
- Wed, 11 Nov 2020 17:49:47 GMT
strict-transport-security:
- max-age=31536000; includeSubDomains; preload
x-content-type-options:
- nosniff
x-envoy-upstream-service-time:
- '168'
- '17'
status:
code: 200
message: OK
Expand Down

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -79956,27 +79956,27 @@ interactions:
Content-Type:
- image/png
User-Agent:
- azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
- azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0)
method: POST
uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/prebuilt/businessCard/analyze?includeTextDetails=false
uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.2/prebuilt/businessCard/analyze?includeTextDetails=false
response:
body:
string: ''
headers:
apim-request-id:
- e173176f-5649-4a0f-a80c-d3a69c989e3d
- 2bfd1760-7097-4f03-9916-aa8a80097358
content-length:
- '0'
date:
- Tue, 06 Oct 2020 19:44:19 GMT
- Wed, 11 Nov 2020 17:50:35 GMT
operation-location:
- https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/prebuilt/businessCard/analyzeResults/e173176f-5649-4a0f-a80c-d3a69c989e3d
- https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.2/prebuilt/businessCard/analyzeResults/2bfd1760-7097-4f03-9916-aa8a80097358
strict-transport-security:
- max-age=31536000; includeSubDomains; preload
x-content-type-options:
- nosniff
x-envoy-upstream-service-time:
- '1542'
- '1106'
status:
code: 202
message: Accepted
Expand All @@ -79990,64 +79990,64 @@ interactions:
Connection:
- keep-alive
User-Agent:
- azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.8.5 (macOS-10.13.6-x86_64-i386-64bit)
- azsdk-python-ai-formrecognizer/3.1.0b1 Python/3.9.0 (Windows-10-10.0.19041-SP0)
method: GET
uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.1/prebuilt/businessCard/analyzeResults/e173176f-5649-4a0f-a80c-d3a69c989e3d
uri: https://centraluseuap.api.cognitive.microsoft.com/formrecognizer/v2.1-preview.2/prebuilt/businessCard/analyzeResults/2bfd1760-7097-4f03-9916-aa8a80097358
response:
body:
string: '{"status": "succeeded", "createdDateTime": "2020-10-06T19:44:19Z",
"lastUpdatedDateTime": "2020-10-06T19:44:24Z", "analyzeResult": {"version":
"2.1.0", "readResults": [{"page": 1, "angle": -17.1052, "width": 4032, "height":
string: '{"status": "succeeded", "createdDateTime": "2020-11-11T17:50:35Z",
"lastUpdatedDateTime": "2020-11-11T17:50:39Z", "analyzeResult": {"version":
"2.1.0", "readResults": [{"page": 1, "angle": -16.693, "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": [703, 1096, 1135, 989, 1166, 1108,
733, 1206], "page": 1}, "LastName": {"type": "string", "valueString": "Smith",
"text": "Smith", "boundingBox": [1187, 976, 1586, 879, 1619, 998, 1218, 1096],
"page": 1}}, "text": "Dr. Avery Smith", "boundingBox": [419.5, 1155.5, 1590.5,
877.9, 1619.7, 1000.8, 448.6, 1278.3], "confidence": 0.794}]}, "JobTitles":
"Avery", "text": "Avery", "boundingBox": [683, 1098, 1158, 984, 1187, 1103,
713, 1212], "page": 1}, "LastName": {"type": "string", "valueString": "Smith",
"text": "Smith", "boundingBox": [1179, 979, 1610, 871, 1638, 990, 1209, 1098],
"page": 1}}, "text": "Dr. Avery Smith", "boundingBox": [413.9, 1152.1, 1610,
871, 1639.6, 996.8, 443.5, 1277.9], "page": 1, "confidence": 0.979}]}, "JobTitles":
{"type": "array", "valueArray": [{"type": "string", "valueString": "Senior
Researcher", "text": "Senior Researcher", "boundingBox": [451.8, 1301.9, 1313.5,
1099.9, 1333.8, 1186.7, 472.2, 1388.7], "page": 1, "confidence": 0.99}]},
"Departments": {"type": "array", "valueArray": [{"type": "string", "valueString":
"Cloud & Al Department", "text": "Cloud & Al Department", "boundingBox": [479.5,
1399.5, 1592, 1129.5, 1614.4, 1221.6, 501.9, 1491.6], "page": 1, "confidence":
0.99}]}, "Emails": {"type": "array", "valueArray": [{"type": "string", "valueString":
Researcher", "text": "Senior Researcher", "boundingBox": [446.7, 1312.8, 1323,
1102, 1341.8, 1180.3, 465.6, 1391.2], "page": 1, "confidence": 0.99}]}, "Departments":
{"type": "array", "valueArray": [{"type": "string", "valueString": "Cloud
& Al Department", "text": "Cloud & Al Department", "boundingBox": [472.7,
1407.2, 1597, 1131, 1618.4, 1218.2, 494.1, 1494.4], "page": 1, "confidence":
0.989}]}, "Emails": {"type": "array", "valueArray": [{"type": "string", "valueString":
"[email protected]", "text": "[email protected]", "boundingBox":
[2108, 934, 2918, 696, 2936, 763, 2126, 995], "page": 1, "confidence": 0.99}]},
[2103, 935, 2927, 701, 2939, 763, 2119, 993], "page": 1, "confidence": 0.99}]},
"Websites": {"type": "array", "valueArray": [{"type": "string", "valueString":
"https://www.contoso.com/", "text": "https://www.contoso.com/", "boundingBox":
[2121, 1002, 2992, 755, 3014, 826, 2143, 1076], "page": 1, "confidence": 0.995}]},
[2116, 1004, 2980, 757, 3005, 824, 2136, 1075], "page": 1, "confidence": 0.99}]},
"MobilePhones": {"type": "array", "valueArray": [{"type": "phoneNumber", "text":
"+44 (0) 7911 123456", "boundingBox": [2432.7, 1029.6, 3074, 835, 3098.5,
915.8, 2457.3, 1110.3], "page": 1, "confidence": 0.99}]}, "OtherPhones": {"type":
"+44 (0) 7911 123456", "boundingBox": [2431.8, 1037.1, 3079, 843.8, 3100.5,
915.5, 2453.3, 1108.9], "page": 1, "confidence": 0.99}]}, "OtherPhones": {"type":
"array", "valueArray": [{"type": "phoneNumber", "text": "+44 (0) 20 9876 5432",
"boundingBox": [2473, 1114.8, 3139.3, 907.7, 3163.2, 984.8, 2497, 1191.9],
"page": 1, "confidence": 0.989}]}, "Faxes": {"type": "array", "valueArray":
[{"type": "phoneNumber", "text": "+44 (0) 20 6789 2345", "boundingBox": [2526.5,
1190.4, 3191.2, 978.9, 3216.5, 1058.4, 2551.8, 1269.9], "page": 1, "confidence":
0.99}]}, "Addresses": {"type": "array", "valueArray": [{"type": "string",
"valueString": "2 Kingdom Street Paddington, London, W2 6BD", "text": "2 Kingdom
Street Paddington, London, W2 6BD", "boundingBox": [1230, 2138, 2535, 1678.3,
2614, 1902.6, 1309, 2362.4], "page": 1, "confidence": 0.977}]}, "CompanyNames":
{"type": "array", "valueArray": [{"type": "string", "valueString": "Contoso",
"text": "Contoso", "boundingBox": [1152, 1916, 2293, 1551, 2357, 1733, 1219,
2105], "page": 1, "confidence": 0.068}]}}}]}}'
"boundingBox": [2465.2, 1120.4, 3133.9, 911.4, 3156.8, 984.6, 2488.1, 1193.6],
"page": 1, "confidence": 0.99}]}, "Faxes": {"type": "array", "valueArray":
[{"type": "phoneNumber", "text": "+44 (0) 20 6789 2345", "boundingBox": [2520.4,
1195.3, 3196.8, 982.3, 3220.6, 1058, 2544.2, 1271], "page": 1, "confidence":
0.99}]}, "CompanyNames": {"type": "array", "valueArray": [{"type": "string",
"valueString": "Contoso", "text": "Contoso", "boundingBox": [1157, 1923, 2306,
1562, 2368, 1728, 1214, 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, 2537.7, 1685.6, 2614.2, 1906.9,
1301.1, 2360.8], "page": 1, "confidence": 0.979}]}}}]}}'
headers:
apim-request-id:
- 1a669449-5504-4c59-822c-a12b754b879c
- 3595acfc-873b-4c53-a503-22b271ec81ef
content-length:
- '2674'
- '2682'
content-type:
- application/json; charset=utf-8
date:
- Tue, 06 Oct 2020 19:44:26 GMT
- Wed, 11 Nov 2020 17:50:40 GMT
strict-transport-security:
- max-age=31536000; includeSubDomains; preload
x-content-type-options:
- nosniff
x-envoy-upstream-service-time:
- '2410'
- '29'
status:
code: 200
message: OK
Expand Down
Loading