-
Notifications
You must be signed in to change notification settings - Fork 4.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add CognitiveServices.ComputerVision tests for full coverage
Add CognitiveServices.ComputerVision tests for full coverage
- Loading branch information
Showing
55 changed files
with
2,122 additions
and
286 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
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
52 changes: 52 additions & 0 deletions
52
...s/SessionRecords/ComputerVisionSDK.Tests.VisionAnalyzeTests/AnalyzeImageInStreamTest.json
Large diffs are not rendered by default.
Oops, something went wrong.
5 changes: 5 additions & 0 deletions
5
.../SessionRecords/ComputerVisionSDK.Tests.VisionAnalyzeTests/AnalyzeImageNullImageTest.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,5 @@ | ||
{ | ||
"Entries": [], | ||
"Names": {}, | ||
"Variables": {} | ||
} |
30 changes: 9 additions & 21 deletions
30
...ion.Tests/SessionRecords/ComputerVisionSDK.Tests.VisionAnalyzeTests/AnalyzeImageTest.json
Large diffs are not rendered by default.
Oops, something went wrong.
52 changes: 52 additions & 0 deletions
52
...ssionRecords/ComputerVisionSDK.Tests.VisionDescribeTests/DescribeImageInJapaneseTest.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,52 @@ | ||
{ | ||
"Entries": [ | ||
{ | ||
"RequestUri": "/vision/v1.0/describe?maxCandidates=1&language=ja", | ||
"EncodedRequestUri": "L3Zpc2lvbi92MS4wL2Rlc2NyaWJlP21heENhbmRpZGF0ZXM9MSZsYW5ndWFnZT1qYQ==", | ||
"RequestMethod": "POST", | ||
"RequestBody": "{\r\n \"url\": \"https://raw.githubusercontent.com/Azure/azure-sdk-for-net/psSdkJson6/src/SDKs/CognitiveServices/dataPlane/Vision/ComputerVision/ComputerVision.Tests/TestImages/dog.jpg\"\r\n}", | ||
"RequestHeaders": { | ||
"Content-Type": [ | ||
"application/json; charset=utf-8" | ||
], | ||
"Content-Length": [ | ||
"184" | ||
], | ||
"Ocp-Apim-Subscription-Key": [ | ||
"" | ||
], | ||
"User-Agent": [ | ||
"FxVersion/4.6.25211.01", | ||
"Microsoft.Azure.CognitiveServices.Vision.ComputerVision.ComputerVisionAPI/0.0.0.0" | ||
] | ||
}, | ||
"ResponseBody": "{\r\n \"description\": {\r\n \"tags\": [\r\n \"犬\",\r\n \"屋外\",\r\n \"座る\",\r\n \"動物\",\r\n \"哺乳類\",\r\n \"探す\",\r\n \"茶色\",\r\n \"ベンチ\",\r\n \"イエロー\",\r\n \"フロント\",\r\n \"大きい\",\r\n \"木製\",\r\n \"小さい\",\r\n \"ホワイト\",\r\n \"立つ\",\r\n \"閉じる\",\r\n \"テーブル\",\r\n \"オレンジ\",\r\n \"横たわる\",\r\n \"公園\",\r\n \"頭\"\r\n ],\r\n \"captions\": [\r\n {\r\n \"text\": \"犬の顔\",\r\n \"confidence\": 0.80020958730655689\r\n }\r\n ]\r\n },\r\n \"requestId\": \"f602086d-a901-420e-b90e-86592fc2d5d7\",\r\n \"metadata\": {\r\n \"height\": 599,\r\n \"width\": 455,\r\n \"format\": \"Jpeg\"\r\n }\r\n}", | ||
"ResponseHeaders": { | ||
"Content-Length": [ | ||
"432" | ||
], | ||
"Content-Type": [ | ||
"application/json; charset=utf-8" | ||
], | ||
"Connection": [ | ||
"close" | ||
], | ||
"Date": [ | ||
"Wed, 30 May 2018 20:53:38 GMT" | ||
], | ||
"apim-request-id": [ | ||
"f602086d-a901-420e-b90e-86592fc2d5d7" | ||
], | ||
"Strict-Transport-Security": [ | ||
"max-age=31536000; includeSubDomains; preload" | ||
], | ||
"x-content-type-options": [ | ||
"nosniff" | ||
] | ||
}, | ||
"StatusCode": 200 | ||
} | ||
], | ||
"Names": {}, | ||
"Variables": {} | ||
} |
52 changes: 52 additions & 0 deletions
52
...SessionRecords/ComputerVisionSDK.Tests.VisionDescribeTests/DescribeImageInStreamTest.json
Large diffs are not rendered by default.
Oops, something went wrong.
52 changes: 52 additions & 0 deletions
52
...n.Tests/SessionRecords/ComputerVisionSDK.Tests.VisionDescribeTests/DescribeImageTest.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,52 @@ | ||
{ | ||
"Entries": [ | ||
{ | ||
"RequestUri": "/vision/v1.0/describe?maxCandidates=2", | ||
"EncodedRequestUri": "L3Zpc2lvbi92MS4wL2Rlc2NyaWJlP21heENhbmRpZGF0ZXM9Mg==", | ||
"RequestMethod": "POST", | ||
"RequestBody": "{\r\n \"url\": \"https://raw.githubusercontent.com/Azure/azure-sdk-for-net/psSdkJson6/src/SDKs/CognitiveServices/dataPlane/Vision/ComputerVision/ComputerVision.Tests/TestImages/dog.jpg\"\r\n}", | ||
"RequestHeaders": { | ||
"Content-Type": [ | ||
"application/json; charset=utf-8" | ||
], | ||
"Content-Length": [ | ||
"184" | ||
], | ||
"Ocp-Apim-Subscription-Key": [ | ||
"" | ||
], | ||
"User-Agent": [ | ||
"FxVersion/4.6.25211.01", | ||
"Microsoft.Azure.CognitiveServices.Vision.ComputerVision.ComputerVisionAPI/0.0.0.0" | ||
] | ||
}, | ||
"ResponseBody": "{\r\n \"description\": {\r\n \"tags\": [\r\n \"dog\",\r\n \"outdoor\",\r\n \"sitting\",\r\n \"animal\",\r\n \"mammal\",\r\n \"looking\",\r\n \"brown\",\r\n \"bench\",\r\n \"yellow\",\r\n \"front\",\r\n \"large\",\r\n \"wooden\",\r\n \"small\",\r\n \"white\",\r\n \"standing\",\r\n \"close\",\r\n \"table\",\r\n \"orange\",\r\n \"laying\",\r\n \"park\",\r\n \"head\"\r\n ],\r\n \"captions\": [\r\n {\r\n \"text\": \"a close up of a dog\",\r\n \"confidence\": 0.96541176672082818\r\n },\r\n {\r\n \"text\": \"close up of a dog\",\r\n \"confidence\": 0.95799109896890555\r\n }\r\n ]\r\n },\r\n \"requestId\": \"b17f1aed-b5bb-4cc3-9ddf-eaedc8f7c9c3\",\r\n \"metadata\": {\r\n \"height\": 599,\r\n \"width\": 455,\r\n \"format\": \"Jpeg\"\r\n }\r\n}", | ||
"ResponseHeaders": { | ||
"Content-Length": [ | ||
"449" | ||
], | ||
"Content-Type": [ | ||
"application/json; charset=utf-8" | ||
], | ||
"Connection": [ | ||
"close" | ||
], | ||
"Date": [ | ||
"Wed, 30 May 2018 20:53:37 GMT" | ||
], | ||
"apim-request-id": [ | ||
"b17f1aed-b5bb-4cc3-9ddf-eaedc8f7c9c3" | ||
], | ||
"Strict-Transport-Security": [ | ||
"max-age=31536000; includeSubDomains; preload" | ||
], | ||
"x-content-type-options": [ | ||
"nosniff" | ||
] | ||
}, | ||
"StatusCode": 200 | ||
} | ||
], | ||
"Names": {}, | ||
"Variables": {} | ||
} |
52 changes: 52 additions & 0 deletions
52
...uterVisionSDK.Tests.VisionDomainModelTests/AnalyzeCelebritiesDomainImageInStreamTest.json
Large diffs are not rendered by default.
Oops, something went wrong.
52 changes: 52 additions & 0 deletions
52
...rds/ComputerVisionSDK.Tests.VisionDomainModelTests/AnalyzeCelebritiesDomainImageTest.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,52 @@ | ||
{ | ||
"Entries": [ | ||
{ | ||
"RequestUri": "/vision/v1.0/models/celebrities/analyze", | ||
"EncodedRequestUri": "L3Zpc2lvbi92MS4wL21vZGVscy9jZWxlYnJpdGllcy9hbmFseXpl", | ||
"RequestMethod": "POST", | ||
"RequestBody": "{\r\n \"url\": \"http://video.ch9.ms/ch9/ac40/1209d088-5752-4413-b003-fdbeb326ac40/IgniteKeynoteSatya_512.jpg\"\r\n}", | ||
"RequestHeaders": { | ||
"Content-Type": [ | ||
"application/json; charset=utf-8" | ||
], | ||
"Content-Length": [ | ||
"107" | ||
], | ||
"Ocp-Apim-Subscription-Key": [ | ||
"" | ||
], | ||
"User-Agent": [ | ||
"FxVersion/4.6.25211.01", | ||
"Microsoft.Azure.CognitiveServices.Vision.ComputerVision.ComputerVisionAPI/1.0.2.0" | ||
] | ||
}, | ||
"ResponseBody": "{\r\n \"result\": {\r\n \"celebrities\": [\r\n {\r\n \"faceRectangle\": {\r\n \"top\": 50,\r\n \"left\": 212,\r\n \"width\": 54,\r\n \"height\": 54\r\n },\r\n \"name\": \"Satya Nadella\",\r\n \"confidence\": 0.98922520875930786\r\n }\r\n ]\r\n },\r\n \"requestId\": \"21703252-3d98-4561-8c77-da00ba2cd7f2\",\r\n \"metadata\": {\r\n \"height\": 288,\r\n \"width\": 512,\r\n \"format\": \"Jpeg\"\r\n }\r\n}", | ||
"ResponseHeaders": { | ||
"Content-Length": [ | ||
"252" | ||
], | ||
"Content-Type": [ | ||
"application/json; charset=utf-8" | ||
], | ||
"Connection": [ | ||
"close" | ||
], | ||
"Date": [ | ||
"Fri, 25 May 2018 02:54:51 GMT" | ||
], | ||
"apim-request-id": [ | ||
"21703252-3d98-4561-8c77-da00ba2cd7f2" | ||
], | ||
"Strict-Transport-Security": [ | ||
"max-age=31536000; includeSubDomains; preload" | ||
], | ||
"x-content-type-options": [ | ||
"nosniff" | ||
] | ||
}, | ||
"StatusCode": 200 | ||
} | ||
], | ||
"Names": {}, | ||
"Variables": {} | ||
} |
52 changes: 52 additions & 0 deletions
52
...nRecords/ComputerVisionSDK.Tests.VisionDomainModelTests/AnalyzeCelebritiesDomainTest.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,52 @@ | ||
{ | ||
"Entries": [ | ||
{ | ||
"RequestUri": "/vision/v1.0/models/celebrities/analyze", | ||
"EncodedRequestUri": "L3Zpc2lvbi92MS4wL21vZGVscy9jZWxlYnJpdGllcy9hbmFseXpl", | ||
"RequestMethod": "POST", | ||
"RequestBody": "{\r\n \"url\": \"https://raw.githubusercontent.com/Azure/azure-sdk-for-net/psSdkJson6/src/SDKs/CognitiveServices/dataPlane/Vision/ComputerVision/ComputerVision.Tests/TestImages/satya.jpg\"\r\n}", | ||
"RequestHeaders": { | ||
"Content-Type": [ | ||
"application/json; charset=utf-8" | ||
], | ||
"Content-Length": [ | ||
"186" | ||
], | ||
"Ocp-Apim-Subscription-Key": [ | ||
"" | ||
], | ||
"User-Agent": [ | ||
"FxVersion/4.6.25211.01", | ||
"Microsoft.Azure.CognitiveServices.Vision.ComputerVision.ComputerVisionAPI/0.0.0.0" | ||
] | ||
}, | ||
"ResponseBody": "{\r\n \"result\": {\r\n \"celebrities\": [\r\n {\r\n \"faceRectangle\": {\r\n \"top\": 50,\r\n \"left\": 212,\r\n \"width\": 54,\r\n \"height\": 54\r\n },\r\n \"name\": \"Satya Nadella\",\r\n \"confidence\": 0.98922520875930786\r\n }\r\n ]\r\n },\r\n \"requestId\": \"f4765af5-fd39-4f20-bf4b-24d1be6b8c31\",\r\n \"metadata\": {\r\n \"height\": 288,\r\n \"width\": 512,\r\n \"format\": \"Jpeg\"\r\n }\r\n}", | ||
"ResponseHeaders": { | ||
"Content-Length": [ | ||
"252" | ||
], | ||
"Content-Type": [ | ||
"application/json; charset=utf-8" | ||
], | ||
"Connection": [ | ||
"close" | ||
], | ||
"Date": [ | ||
"Wed, 30 May 2018 20:53:36 GMT" | ||
], | ||
"apim-request-id": [ | ||
"f4765af5-fd39-4f20-bf4b-24d1be6b8c31" | ||
], | ||
"Strict-Transport-Security": [ | ||
"max-age=31536000; includeSubDomains; preload" | ||
], | ||
"x-content-type-options": [ | ||
"nosniff" | ||
] | ||
}, | ||
"StatusCode": 200 | ||
} | ||
], | ||
"Names": {}, | ||
"Variables": {} | ||
} |
52 changes: 52 additions & 0 deletions
52
...cords/ComputerVisionSDK.Tests.VisionDomainModelTests/AnalyzeLandmarksDomainImageTest.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,52 @@ | ||
{ | ||
"Entries": [ | ||
{ | ||
"RequestUri": "/vision/v1.0/models/landmarks/analyze?language=pt", | ||
"EncodedRequestUri": "L3Zpc2lvbi92MS4wL21vZGVscy9sYW5kbWFya3MvYW5hbHl6ZT9sYW5ndWFnZT1wdA==", | ||
"RequestMethod": "POST", | ||
"RequestBody": "{\r\n \"url\": \"https://raw.githubusercontent.com/Azure/azure-sdk-for-net/psSdkJson6/src/SDKs/CognitiveServices/dataPlane/Vision/ComputerVision/ComputerVision.Tests/TestImages/spaceneedle.jpg\"\r\n}", | ||
"RequestHeaders": { | ||
"Content-Type": [ | ||
"application/json; charset=utf-8" | ||
], | ||
"Content-Length": [ | ||
"192" | ||
], | ||
"Ocp-Apim-Subscription-Key": [ | ||
"" | ||
], | ||
"User-Agent": [ | ||
"FxVersion/4.6.25211.01", | ||
"Microsoft.Azure.CognitiveServices.Vision.ComputerVision.ComputerVisionAPI/0.0.0.0" | ||
] | ||
}, | ||
"ResponseBody": "{\r\n \"result\": {\r\n \"landmarks\": [\r\n {\r\n \"name\": \"Obelisco Espacial\",\r\n \"confidence\": 0.99991440773010254\r\n }\r\n ]\r\n },\r\n \"requestId\": \"a5623e39-1d7b-43ed-b936-23891383179e\",\r\n \"metadata\": {\r\n \"height\": 479,\r\n \"width\": 243,\r\n \"format\": \"Jpeg\"\r\n }\r\n}", | ||
"ResponseHeaders": { | ||
"Content-Length": [ | ||
"193" | ||
], | ||
"Content-Type": [ | ||
"application/json; charset=utf-8" | ||
], | ||
"Connection": [ | ||
"close" | ||
], | ||
"Date": [ | ||
"Wed, 30 May 2018 20:53:34 GMT" | ||
], | ||
"apim-request-id": [ | ||
"a5623e39-1d7b-43ed-b936-23891383179e" | ||
], | ||
"Strict-Transport-Security": [ | ||
"max-age=31536000; includeSubDomains; preload" | ||
], | ||
"x-content-type-options": [ | ||
"nosniff" | ||
] | ||
}, | ||
"StatusCode": 200 | ||
} | ||
], | ||
"Names": {}, | ||
"Variables": {} | ||
} |
52 changes: 52 additions & 0 deletions
52
...ion.Tests/SessionRecords/ComputerVisionSDK.Tests.VisionOcrTests/OcrImageInStreamTest.json
Large diffs are not rendered by default.
Oops, something went wrong.
Oops, something went wrong.