Skip to content

Commit

Permalink
Generated from bd6c66b615b94480a1458dde3a8bc42f3a689548
Browse files Browse the repository at this point in the history
ComputerVision - collection of fixes

* fix ocr language parameter to fix [bug](Azure/azure-sdk-for-net#4083)
* language parameter missing for /tag path
* language parameter missing for /models/*/analyze path
* make /models/*/analyze return a more generic type
* add specific types for /models/*/analyze to return for current models
  • Loading branch information
AutorestCI committed May 29, 2018
1 parent f09e779 commit a8350bf
Show file tree
Hide file tree
Showing 30 changed files with 650 additions and 151 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public class AdultInfo {
private double racyScore;

/**
* Get the isAdultContent value.
* Get a value indicating if the image contains adult-oriented content.
*
* @return the isAdultContent value
*/
Expand All @@ -50,7 +50,7 @@ public boolean isAdultContent() {
}

/**
* Set the isAdultContent value.
* Set a value indicating if the image contains adult-oriented content.
*
* @param isAdultContent the isAdultContent value to set
* @return the AdultInfo object itself.
Expand All @@ -61,7 +61,7 @@ public AdultInfo withIsAdultContent(boolean isAdultContent) {
}

/**
* Get the isRacyContent value.
* Get a value indicating if the image is race.
*
* @return the isRacyContent value
*/
Expand All @@ -70,7 +70,7 @@ public boolean isRacyContent() {
}

/**
* Set the isRacyContent value.
* Set a value indicating if the image is race.
*
* @param isRacyContent the isRacyContent value to set
* @return the AdultInfo object itself.
Expand All @@ -81,7 +81,7 @@ public AdultInfo withIsRacyContent(boolean isRacyContent) {
}

/**
* Get the adultScore value.
* Get score from 0 to 1 that indicates how much of adult content is within the image.
*
* @return the adultScore value
*/
Expand All @@ -90,7 +90,7 @@ public double adultScore() {
}

/**
* Set the adultScore value.
* Set score from 0 to 1 that indicates how much of adult content is within the image.
*
* @param adultScore the adultScore value to set
* @return the AdultInfo object itself.
Expand All @@ -101,7 +101,7 @@ public AdultInfo withAdultScore(double adultScore) {
}

/**
* Get the racyScore value.
* Get score from 0 to 1 that indicates how suggestive is the image.
*
* @return the racyScore value
*/
Expand All @@ -110,7 +110,7 @@ public double racyScore() {
}

/**
* Set the racyScore value.
* Set score from 0 to 1 that indicates how suggestive is the image.
*
* @param racyScore the racyScore value to set
* @return the AdultInfo object itself.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public class Category {
private CategoryDetail detail;

/**
* Get the name value.
* Get name of the category.
*
* @return the name value
*/
Expand All @@ -42,7 +42,7 @@ public String name() {
}

/**
* Set the name value.
* Set name of the category.
*
* @param name the name value to set
* @return the Category object itself.
Expand All @@ -53,7 +53,7 @@ public Category withName(String name) {
}

/**
* Get the score value.
* Get scoring of the category.
*
* @return the score value
*/
Expand All @@ -62,7 +62,7 @@ public Double score() {
}

/**
* Set the score value.
* Set scoring of the category.
*
* @param score the score value to set
* @return the Category object itself.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public class CategoryDetail {
private List<CelebritiesModel> celebrities;

/**
* Get the celebrities value.
* Get an array of celebrities if any identified.
*
* @return the celebrities value
*/
Expand All @@ -31,7 +31,7 @@ public List<CelebritiesModel> celebrities() {
}

/**
* Set the celebrities value.
* Set an array of celebrities if any identified.
*
* @param celebrities the celebrities value to set
* @return the CategoryDetail object itself.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public class CelebritiesModel {
private FaceRectangle faceRectangle;

/**
* Get the name value.
* Get name of the celebrity.
*
* @return the name value
*/
Expand All @@ -42,7 +42,7 @@ public String name() {
}

/**
* Set the name value.
* Set name of the celebrity.
*
* @param name the name value to set
* @return the CelebritiesModel object itself.
Expand All @@ -53,7 +53,7 @@ public CelebritiesModel withName(String name) {
}

/**
* Get the confidence value.
* Get level of confidence ranging from 0 to 1.
*
* @return the confidence value
*/
Expand All @@ -62,7 +62,7 @@ public Double confidence() {
}

/**
* Set the confidence value.
* Set level of confidence ranging from 0 to 1.
*
* @param confidence the confidence value to set
* @return the CelebritiesModel object itself.
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,96 @@
/**
* 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.
*/

package com.microsoft.azure.cognitiveservices.vision.computervision;

import java.util.List;
import com.fasterxml.jackson.annotation.JsonProperty;

/**
* List of celebrities recognized in the image.
*/
public class CelebrityResults {
/**
* The celebrities property.
*/
@JsonProperty(value = "celebrities")
private List<CelebritiesModel> celebrities;

/**
* Id of the REST API request.
*/
@JsonProperty(value = "requestId")
private String requestId;

/**
* The metadata property.
*/
@JsonProperty(value = "metadata")
private ImageMetadata metadata;

/**
* Get the celebrities value.
*
* @return the celebrities value
*/
public List<CelebritiesModel> celebrities() {
return this.celebrities;
}

/**
* Set the celebrities value.
*
* @param celebrities the celebrities value to set
* @return the CelebrityResults object itself.
*/
public CelebrityResults withCelebrities(List<CelebritiesModel> celebrities) {
this.celebrities = celebrities;
return this;
}

/**
* Get id of the REST API request.
*
* @return the requestId value
*/
public String requestId() {
return this.requestId;
}

/**
* Set id of the REST API request.
*
* @param requestId the requestId value to set
* @return the CelebrityResults object itself.
*/
public CelebrityResults withRequestId(String requestId) {
this.requestId = requestId;
return this;
}

/**
* Get the metadata value.
*
* @return the metadata value
*/
public ImageMetadata metadata() {
return this.metadata;
}

/**
* Set the metadata value.
*
* @param metadata the metadata value to set
* @return the CelebrityResults object itself.
*/
public CelebrityResults withMetadata(ImageMetadata metadata) {
this.metadata = metadata;
return this;
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public class ColorInfo {
private Boolean isBWImg;

/**
* Get the dominantColorForeground value.
* Get possible dominant foreground color.
*
* @return the dominantColorForeground value
*/
Expand All @@ -55,7 +55,7 @@ public String dominantColorForeground() {
}

/**
* Set the dominantColorForeground value.
* Set possible dominant foreground color.
*
* @param dominantColorForeground the dominantColorForeground value to set
* @return the ColorInfo object itself.
Expand All @@ -66,7 +66,7 @@ public ColorInfo withDominantColorForeground(String dominantColorForeground) {
}

/**
* Get the dominantColorBackground value.
* Get possible dominant background color.
*
* @return the dominantColorBackground value
*/
Expand All @@ -75,7 +75,7 @@ public String dominantColorBackground() {
}

/**
* Set the dominantColorBackground value.
* Set possible dominant background color.
*
* @param dominantColorBackground the dominantColorBackground value to set
* @return the ColorInfo object itself.
Expand All @@ -86,7 +86,7 @@ public ColorInfo withDominantColorBackground(String dominantColorBackground) {
}

/**
* Get the dominantColors value.
* Get an array of possible dominant colors.
*
* @return the dominantColors value
*/
Expand All @@ -95,7 +95,7 @@ public List<String> dominantColors() {
}

/**
* Set the dominantColors value.
* Set an array of possible dominant colors.
*
* @param dominantColors the dominantColors value to set
* @return the ColorInfo object itself.
Expand All @@ -106,7 +106,7 @@ public ColorInfo withDominantColors(List<String> dominantColors) {
}

/**
* Get the accentColor value.
* Get possible accent color.
*
* @return the accentColor value
*/
Expand All @@ -115,7 +115,7 @@ public String accentColor() {
}

/**
* Set the accentColor value.
* Set possible accent color.
*
* @param accentColor the accentColor value to set
* @return the ColorInfo object itself.
Expand All @@ -126,7 +126,7 @@ public ColorInfo withAccentColor(String accentColor) {
}

/**
* Get the isBWImg value.
* Get a value indicating if the image is black and white.
*
* @return the isBWImg value
*/
Expand All @@ -135,7 +135,7 @@ public Boolean isBWImg() {
}

/**
* Set the isBWImg value.
* Set a value indicating if the image is black and white.
*
* @param isBWImg the isBWImg value to set
* @return the ColorInfo object itself.
Expand Down
Loading

0 comments on commit a8350bf

Please sign in to comment.