File tree Expand file tree Collapse file tree 10 files changed +40
-39
lines changed
RecognizeDomainSpecificContent Expand file tree Collapse file tree 10 files changed +40
-39
lines changed Original file line number Diff line number Diff line change @@ -10,12 +10,13 @@ namespace Microsoft.Azure.CognitiveServices.Samples.ComputerVision.AnalyzeImage
10
10
11
11
class Program
12
12
{
13
- // Add your Computer Vision subscription key and endpoint to your environment variables
14
- public const string subscriptionKey = Environment . GetEnvironmentVariable ( "COMPUTER_VISION_SUBSCRIPTION_KEY" ) ;
15
- public const string endpoint = Environment . GetEnvironmentVariable ( "COMPUTER_VISION_ENDPOINT" ) ;
16
13
17
14
static void Main ( string [ ] args )
18
15
{
16
+ // Add your Computer Vision subscription key and endpoint to your environment variables
17
+ string subscriptionKey = Environment . GetEnvironmentVariable ( "COMPUTER_VISION_SUBSCRIPTION_KEY" ) ;
18
+ string endpoint = Environment . GetEnvironmentVariable ( "COMPUTER_VISION_ENDPOINT" ) ;
19
+
19
20
try
20
21
{
21
22
AnalyzeImageSample . RunAsync ( endpoint , subscriptionKey ) . Wait ( 5000 ) ;
Original file line number Diff line number Diff line change @@ -10,12 +10,12 @@ namespace Microsoft.Azure.CognitiveServices.Samples.ComputerVision.AreaOfInteres
10
10
11
11
class Program
12
12
{
13
- // Set your environment variables with your Computer Vision subscription key and endpoint from Azure.
14
- public const string subscriptionKey = Environment . GetEnvironmentVariable ( "COMPUTER_VISION_SUBSCRIPTION_KEY" ) ;
15
- public const string endpoint = Environment . GetEnvironmentVariable ( "COMPUTER_VISION_ENDPOINT" ) ;
16
-
17
13
static void Main ( string [ ] args )
18
14
{
15
+ // Add your Computer Vision subscription key and endpoint to your environment variables
16
+ string subscriptionKey = Environment . GetEnvironmentVariable ( "COMPUTER_VISION_SUBSCRIPTION_KEY" ) ;
17
+ string endpoint = Environment . GetEnvironmentVariable ( "COMPUTER_VISION_ENDPOINT" ) ;
18
+
19
19
try
20
20
{
21
21
AreaOfInterestSample . RunAsync ( endpoint , subscriptionKey ) . Wait ( 5000 ) ;
Original file line number Diff line number Diff line change @@ -10,12 +10,12 @@ namespace Microsoft.Azure.CognitiveServices.Samples.ComputerVision.BatchReadFile
10
10
11
11
class Program
12
12
{
13
- // Add your Azure Computer Vision subscription key and endpoint to your environment variables
14
- public const string subscriptionKey = Environment . GetEnvironmentVariable ( "COMPUTER_VISION_SUBSCRIPTION_KEY" ) ;
15
- public const string endpoint = Environment . GetEnvironmentVariable ( "COMPUTER_VISION_ENDPOINT" ) ;
16
-
17
13
static void Main ( string [ ] args )
18
14
{
15
+ // Add your Computer Vision subscription key and endpoint to your environment variables
16
+ string subscriptionKey = Environment . GetEnvironmentVariable ( "COMPUTER_VISION_SUBSCRIPTION_KEY" ) ;
17
+ string endpoint = Environment . GetEnvironmentVariable ( "COMPUTER_VISION_ENDPOINT" ) ;
18
+
19
19
try
20
20
{
21
21
BatchReadFileSample . RunAsync ( endpoint , subscriptionKey ) . Wait ( 5000 ) ;
Original file line number Diff line number Diff line change @@ -10,12 +10,12 @@ namespace Microsoft.Azure.CognitiveServices.Samples.ComputerVision.DescribeImage
10
10
11
11
class Program
12
12
{
13
- // Add your Azure Computer Vision subscription key and endpoint to your environment variables
14
- public const string subscriptionKey = Environment . GetEnvironmentVariable ( "COMPUTER_VISION_SUBSCRIPTION_KEY" ) ; //Insert your Cognitive Services subscription key here
15
- public const string endpoint = Environment . GetEnvironmentVariable ( "COMPUTER_VISION_ENDPOINT" ) ;
16
-
17
13
static void Main ( string [ ] args )
18
14
{
15
+ // Add your Computer Vision subscription key and endpoint to your environment variables
16
+ string subscriptionKey = Environment . GetEnvironmentVariable ( "COMPUTER_VISION_SUBSCRIPTION_KEY" ) ;
17
+ string endpoint = Environment . GetEnvironmentVariable ( "COMPUTER_VISION_ENDPOINT" ) ;
18
+
19
19
try
20
20
{
21
21
DescribeImageSample . RunAsync ( endpoint , subscriptionKey ) . Wait ( 5000 ) ;
Original file line number Diff line number Diff line change @@ -10,12 +10,12 @@ namespace Microsoft.Azure.CognitiveServices.Samples.ComputerVision.DetectObjects
10
10
11
11
class Program
12
12
{
13
- // Add your Azure Computer Vision subscription key and endpoint to your environment variables
14
- public const string subscriptionKey = Environment . GetEnvironmentVariable ( "COMPUTER_VISION_SUBSCRIPTION_KEY" ) ;
15
- public const string endpoint = Environment . GetEnvironmentVariable ( "COMPUTER_VISION_ENDPOINT" ) ;
16
-
17
13
static void Main ( string [ ] args )
18
14
{
15
+ // Add your Computer Vision subscription key and endpoint to your environment variables
16
+ string subscriptionKey = Environment . GetEnvironmentVariable ( "COMPUTER_VISION_SUBSCRIPTION_KEY" ) ;
17
+ string endpoint = Environment . GetEnvironmentVariable ( "COMPUTER_VISION_ENDPOINT" ) ;
18
+
19
19
try
20
20
{
21
21
DetectObjectSample . RunAsync ( endpoint , subscriptionKey ) . Wait ( 5000 ) ;
Original file line number Diff line number Diff line change @@ -10,12 +10,12 @@ namespace Microsoft.Azure.CognitiveServices.Samples.ComputerVision.GetThumbnail
10
10
11
11
class Program
12
12
{
13
- // Add your Azure Computer Vision subscription key and endpoint to your environment variables
14
- public const string subscriptionKey = Environment . GetEnvironmentVariable ( "COMPUTER_VISION_SUBSCRIPTION_KEY" ) ;
15
- public const string endpoint = Environment . GetEnvironmentVariable ( "COMPUTER_VISION_ENDPOINT" ) ;
16
-
17
13
static void Main ( string [ ] args )
18
14
{
15
+ // Add your Computer Vision subscription key and endpoint to your environment variables
16
+ string subscriptionKey = Environment . GetEnvironmentVariable ( "COMPUTER_VISION_SUBSCRIPTION_KEY" ) ;
17
+ string endpoint = Environment . GetEnvironmentVariable ( "COMPUTER_VISION_ENDPOINT" ) ;
18
+
19
19
try
20
20
{
21
21
GetThumbnailSample . RunAsync ( endpoint , subscriptionKey ) . Wait ( 5000 ) ;
Original file line number Diff line number Diff line change @@ -10,12 +10,12 @@ namespace Microsoft.Azure.CognitiveServices.Samples.ComputerVision.OCR
10
10
11
11
class Program
12
12
{
13
- // Add your Azure Computer Vision subscription key and endpoint to your environment variables
14
- public const string subscriptionKey = Environment . GetEnvironmentVariable ( "COMPUTER_VISION_SUBSCRIPTION_KEY" ) ;
15
- public const string endpoint = "https://westus.api.cognitive.microsoft.com" ;
16
-
17
13
static void Main ( string [ ] args )
18
14
{
15
+ // Add your Computer Vision subscription key and endpoint to your environment variables
16
+ string subscriptionKey = Environment . GetEnvironmentVariable ( "COMPUTER_VISION_SUBSCRIPTION_KEY" ) ;
17
+ string endpoint = Environment . GetEnvironmentVariable ( "COMPUTER_VISION_ENDPOINT" ) ;
18
+
19
19
try
20
20
{
21
21
OCRSample . RunAsync ( endpoint , subscriptionKey ) . Wait ( 5000 ) ;
Original file line number Diff line number Diff line change @@ -10,12 +10,12 @@ namespace Microsoft.Azure.CognitiveServices.Samples.ComputerVision.DomainSpecifi
10
10
11
11
class Program
12
12
{
13
- // Add your Azure Computer Vision subscription key and endpoint to your environment variables
14
- public const string subscriptionKey = Environment . GetEnvironmentVariable ( "COMPUTER_VISION_SUBSCRIPTION_KEY" ) ;
15
- public const string endpoint = Environment . GetEnvironmentVariable ( "COMPUTER_VISION_ENDPOINT" ) ;
16
-
17
13
static void Main ( string [ ] args )
18
14
{
15
+ // Add your Computer Vision subscription key and endpoint to your environment variables
16
+ string subscriptionKey = Environment . GetEnvironmentVariable ( "COMPUTER_VISION_SUBSCRIPTION_KEY" ) ;
17
+ string endpoint = Environment . GetEnvironmentVariable ( "COMPUTER_VISION_ENDPOINT" ) ;
18
+
19
19
try
20
20
{
21
21
DomainSpecificContentSample . RunAsync ( endpoint , subscriptionKey ) . Wait ( 5000 ) ;
Original file line number Diff line number Diff line change @@ -10,12 +10,12 @@ namespace Microsoft.Azure.CognitiveServices.Samples.ComputerVision.RecognizeText
10
10
11
11
class Program
12
12
{
13
- // Add your Azure Computer Vision subscription key and endpoint to your environment variables
14
- public const string subscriptionKey = Environment . GetEnvironmentVariable ( "COMPUTER_VISION_SUBSCRIPTION_KEY" ) ;
15
- public const string endpoint = Environment . GetEnvironmentVariable ( "COMPUTER_VISION_ENDPOINT" ) ;
16
-
17
13
static void Main ( string [ ] args )
18
14
{
15
+ // Add your Computer Vision subscription key and endpoint to your environment variables
16
+ string subscriptionKey = Environment . GetEnvironmentVariable ( "COMPUTER_VISION_SUBSCRIPTION_KEY" ) ;
17
+ string endpoint = Environment . GetEnvironmentVariable ( "COMPUTER_VISION_ENDPOINT" ) ;
18
+
19
19
try
20
20
{
21
21
RecognizeTextSample . RunAsync ( endpoint , subscriptionKey ) . Wait ( 5000 ) ;
Original file line number Diff line number Diff line change @@ -10,12 +10,12 @@ namespace Microsoft.Azure.CognitiveServices.Samples.ComputerVision.TagImage
10
10
11
11
class Program
12
12
{
13
- // Add your Azure Computer Vision subscription key and endpoint to your environment variables
14
- public const string subscriptionKey = Environment . GetEnvironmentVariable ( "COMPUTER_VISION_SUBSCRIPTION_KEY" ) ;
15
- public const string endpoint = Environment . GetEnvironmentVariable ( "COMPUTER_VISION_ENDPOINT" ) ;
16
-
17
13
static void Main ( string [ ] args )
18
14
{
15
+ // Add your Computer Vision subscription key and endpoint to your environment variables
16
+ string subscriptionKey = Environment . GetEnvironmentVariable ( "COMPUTER_VISION_SUBSCRIPTION_KEY" ) ;
17
+ string endpoint = Environment . GetEnvironmentVariable ( "COMPUTER_VISION_ENDPOINT" ) ;
18
+
19
19
try
20
20
{
21
21
TagImageSample . RunAsync ( endpoint , subscriptionKey ) . Wait ( 5000 ) ;
You can’t perform that action at this time.
0 commit comments