/// <summary>
 /// Initializes a new instance of the AreaOfInterestResult class.
 /// </summary>
 /// <param name="areaOfInterest">A bounding box for an area of interest
 /// inside an image.</param>
 /// <param name="requestId">Id of the REST API request.</param>
 public AreaOfInterestResult(BoundingRect areaOfInterest = default(BoundingRect), string requestId = default(string), ImageMetadata metadata = default(ImageMetadata), string modelVersion = default(string))
 {
     AreaOfInterest = areaOfInterest;
     RequestId      = requestId;
     Metadata       = metadata;
     ModelVersion   = modelVersion;
     CustomInit();
 }
Пример #2
0
 /// <summary>
 /// Initializes a new instance of the DomainModelResults class.
 /// </summary>
 /// <param name="result">Model-specific response.</param>
 /// <param name="requestId">Id of the REST API request.</param>
 public DomainModelResults(object result = default(object), string requestId = default(string), ImageMetadata metadata = default(ImageMetadata), string modelVersion = default(string))
 {
     Result       = result;
     RequestId    = requestId;
     Metadata     = metadata;
     ModelVersion = modelVersion;
     CustomInit();
 }
Пример #3
0
 /// <summary>
 /// Initializes a new instance of the ImageDescription class.
 /// </summary>
 /// <param name="tags">A collection of image tags.</param>
 /// <param name="captions">A list of captions, sorted by confidence
 /// level.</param>
 /// <param name="requestId">Id of the REST API request.</param>
 public ImageDescription(IList <string> tags = default(IList <string>), IList <ImageCaption> captions = default(IList <ImageCaption>), string requestId = default(string), ImageMetadata metadata = default(ImageMetadata), string modelVersion = default(string))
 {
     Tags         = tags;
     Captions     = captions;
     RequestId    = requestId;
     Metadata     = metadata;
     ModelVersion = modelVersion;
     CustomInit();
 }
Пример #4
0
 /// <summary>
 /// Initializes a new instance of the ImageAnalysis class.
 /// </summary>
 /// <param name="categories">An array indicating identified
 /// categories.</param>
 /// <param name="adult">An object describing whether the image contains
 /// adult-oriented content and/or is racy.</param>
 /// <param name="color">An object providing additional metadata
 /// describing color attributes.</param>
 /// <param name="imageType">An object providing possible image types
 /// and matching confidence levels.</param>
 /// <param name="tags">A list of tags with confidence level.</param>
 /// <param name="description">A collection of content tags, along with
 /// a list of captions sorted by confidence level, and image
 /// metadata.</param>
 /// <param name="faces">An array of possible faces within the
 /// image.</param>
 /// <param name="objects">Array of objects describing what was detected
 /// in the image.</param>
 /// <param name="brands">Array of brands detected in the image.</param>
 /// <param name="requestId">Id of the REST API request.</param>
 public ImageAnalysis(IList <Category> categories = default(IList <Category>), AdultInfo adult = default(AdultInfo), ColorInfo color = default(ColorInfo), ImageType imageType = default(ImageType), IList <ImageTag> tags = default(IList <ImageTag>), ImageDescriptionDetails description = default(ImageDescriptionDetails), IList <FaceDescription> faces = default(IList <FaceDescription>), IList <DetectedObject> objects = default(IList <DetectedObject>), IList <DetectedBrand> brands = default(IList <DetectedBrand>), string requestId = default(string), ImageMetadata metadata = default(ImageMetadata))
 {
     Categories  = categories;
     Adult       = adult;
     Color       = color;
     ImageType   = imageType;
     Tags        = tags;
     Description = description;
     Faces       = faces;
     Objects     = objects;
     Brands      = brands;
     RequestId   = requestId;
     Metadata    = metadata;
     CustomInit();
 }
Пример #5
0
 /// <summary>
 /// Initializes a new instance of the DetectResult class.
 /// </summary>
 /// <param name="objects">An array of detected objects.</param>
 /// <param name="requestId">Id of the REST API request.</param>
 public DetectResult(IList <DetectedObject> objects = default(IList <DetectedObject>), string requestId = default(string), ImageMetadata metadata = default(ImageMetadata), string modelVersion = default(string))
 {
     Objects      = objects;
     RequestId    = requestId;
     Metadata     = metadata;
     ModelVersion = modelVersion;
     CustomInit();
 }