-
Notifications
You must be signed in to change notification settings - Fork 4.5k
/
ImagePerformance.cs
126 lines (112 loc) · 4.8 KB
/
ImagePerformance.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
// <auto-generated>
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for
// license information.
//
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is
// regenerated.
// </auto-generated>
namespace Microsoft.Azure.CognitiveServices.Vision.CustomVision.Training.Models
{
using Newtonsoft.Json;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
/// <summary>
/// Image performance model.
/// </summary>
public partial class ImagePerformance
{
/// <summary>
/// Initializes a new instance of the ImagePerformance class.
/// </summary>
public ImagePerformance()
{
CustomInit();
}
/// <summary>
/// Initializes a new instance of the ImagePerformance class.
/// </summary>
/// <param name="id">Id of the image.</param>
/// <param name="created">Date the image was created.</param>
/// <param name="width">Width of the image.</param>
/// <param name="height">Height of the image.</param>
/// <param name="imageUri">The URI to the image used for training. If
/// VNET feature is enabled this will be a relative path to be used
/// with GetArtifact, otherwise this will be an absolute URI to the
/// resource.</param>
/// <param name="thumbnailUri">The URI to the thumbnail of the original
/// image. If VNET feature is enabled this will be a relative path to
/// be used with GetArtifact, otherwise this will be an absolute URI to
/// the resource.</param>
/// <param name="tags">Tags associated with this image.</param>
/// <param name="regions">Regions associated with this image.</param>
public ImagePerformance(IList<Prediction> predictions = default(IList<Prediction>), System.Guid id = default(System.Guid), System.DateTime created = default(System.DateTime), int width = default(int), int height = default(int), string imageUri = default(string), string thumbnailUri = default(string), IList<ImageTag> tags = default(IList<ImageTag>), IList<ImageRegion> regions = default(IList<ImageRegion>))
{
Predictions = predictions;
Id = id;
Created = created;
Width = width;
Height = height;
ImageUri = imageUri;
ThumbnailUri = thumbnailUri;
Tags = tags;
Regions = regions;
CustomInit();
}
/// <summary>
/// An initialization method that performs custom operations like setting defaults
/// </summary>
partial void CustomInit();
/// <summary>
/// </summary>
[JsonProperty(PropertyName = "predictions")]
public IList<Prediction> Predictions { get; private set; }
/// <summary>
/// Gets id of the image.
/// </summary>
[JsonProperty(PropertyName = "id")]
public System.Guid Id { get; private set; }
/// <summary>
/// Gets date the image was created.
/// </summary>
[JsonProperty(PropertyName = "created")]
public System.DateTime Created { get; private set; }
/// <summary>
/// Gets width of the image.
/// </summary>
[JsonProperty(PropertyName = "width")]
public int Width { get; private set; }
/// <summary>
/// Gets height of the image.
/// </summary>
[JsonProperty(PropertyName = "height")]
public int Height { get; private set; }
/// <summary>
/// Gets the URI to the image used for training. If VNET feature is
/// enabled this will be a relative path to be used with GetArtifact,
/// otherwise this will be an absolute URI to the resource.
/// </summary>
[JsonProperty(PropertyName = "imageUri")]
public string ImageUri { get; private set; }
/// <summary>
/// Gets the URI to the thumbnail of the original image. If VNET
/// feature is enabled this will be a relative path to be used with
/// GetArtifact, otherwise this will be an absolute URI to the
/// resource.
/// </summary>
[JsonProperty(PropertyName = "thumbnailUri")]
public string ThumbnailUri { get; private set; }
/// <summary>
/// Gets tags associated with this image.
/// </summary>
[JsonProperty(PropertyName = "tags")]
public IList<ImageTag> Tags { get; private set; }
/// <summary>
/// Gets regions associated with this image.
/// </summary>
[JsonProperty(PropertyName = "regions")]
public IList<ImageRegion> Regions { get; private set; }
}
}