Esempio n. 1
0
            public async Task VisionDescribeKeyvault(
                [VisionDescribe()]
                VisionDescribeClient client)
            {
                var request = new VisionDescribeRequest();

                var result = await client.DescribeAsync(request);
            }
            public async Task VisionDescribeWithImageBytes(
                [VisionDescribe()]
                VisionDescribeClient client)
            {
                var request = new VisionDescribeRequest();

                var result = await client.DescribeAsync(request);

                visionDescribeImageBytesResult = result;
            }
Esempio n. 3
0
            public async Task VisionDescribeWithTooBigImageBytes(
                [VisionDescribe(AutoResize = false)]
                VisionDescribeClient client)
            {
                var request = new VisionDescribeRequest();

                request.AutoResize = false;
                request.ImageBytes = MockResults.SamplePhotoTooBig;

                var result = await client.DescribeAsync(request);
            }
Esempio n. 4
0
            public async Task VisionDescribeWithTooBigImageBytesWithResize(
                [VisionDescribe()]
                VisionDescribeClient client)
            {
                var request = new VisionDescribeRequest();

                request.ImageBytes = MockResults.SamplePhotoTooBig;

                var result = await client.DescribeAsync(request);

                visionDescribeImageBytesResizeResult = result;
            }
Esempio n. 5
0
            public async Task VisionDescribeWithImageBytes(
                [VisionDescribe()]
                VisionDescribeClient client)
            {
                var request = new VisionDescribeRequest();

                request.ImageBytes = Resources.MockResults.SamplePhoto;

                var result = await client.DescribeAsync(request);

                visionDescribeImageBytesResult = result;
            }
Esempio n. 6
0
            public async Task VisionDescribeWithUrl(
                [VisionDescribe()]
                VisionDescribeClient client)
            {
                var request = new VisionDescribeRequest();

                request.ImageUrl = "http://www.blah";

                var result = await client.DescribeAsync(request);

                visionDescribeUrlResult = result;
            }