Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public class ColorInfo {
* A value indicating if the image is black and white.
*/
@JsonProperty(value = "isBWImg")
private Boolean isBWImg;
private boolean isBWImg;

/**
* Get possible dominant foreground color.
Expand Down Expand Up @@ -130,7 +130,7 @@ public ColorInfo withAccentColor(String accentColor) {
*
* @return the isBWImg value
*/
public Boolean isBWImg() {
public boolean isBWImg() {
return this.isBWImg;
}

Expand All @@ -140,7 +140,7 @@ public Boolean isBWImg() {
* @param isBWImg the isBWImg value to set
* @return the ColorInfo object itself.
*/
public ColorInfo withIsBWImg(Boolean isBWImg) {
public ColorInfo withIsBWImg(boolean isBWImg) {
this.isBWImg = isBWImg;
return this;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,20 +18,20 @@ public class ImageType {
* Confidence level that the image is a clip art.
*/
@JsonProperty(value = "clipArtType")
private double clipArtType;
private int clipArtType;

/**
* Confidence level that the image is a line drawing.
*/
@JsonProperty(value = "lineDrawingType")
private double lineDrawingType;
private int lineDrawingType;

/**
* Get confidence level that the image is a clip art.
*
* @return the clipArtType value
*/
public double clipArtType() {
public int clipArtType() {
return this.clipArtType;
}

Expand All @@ -41,7 +41,7 @@ public double clipArtType() {
* @param clipArtType the clipArtType value to set
* @return the ImageType object itself.
*/
public ImageType withClipArtType(double clipArtType) {
public ImageType withClipArtType(int clipArtType) {
this.clipArtType = clipArtType;
return this;
}
Expand All @@ -51,7 +51,7 @@ public ImageType withClipArtType(double clipArtType) {
*
* @return the lineDrawingType value
*/
public double lineDrawingType() {
public int lineDrawingType() {
return this.lineDrawingType;
}

Expand All @@ -61,7 +61,7 @@ public double lineDrawingType() {
* @param lineDrawingType the lineDrawingType value to set
* @return the ImageType object itself.
*/
public ImageType withLineDrawingType(double lineDrawingType) {
public ImageType withLineDrawingType(int lineDrawingType) {
this.lineDrawingType = lineDrawingType;
return this;
}
Expand Down

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
// Code generated by Microsoft (R) AutoRest Code Generator.

/**
* This package contains the implementation classes for ComputerVisionAPI.
* This package contains the implementation classes for ComputerVisionClient.
* The Computer Vision API provides state-of-the-art algorithms to process images and return information. For example, it can be used to determine if an image contains mature content, or it can be used to find all the faces in an image. It also has other features like estimating dominant and accent colors, categorizing the content of images, and describing an image with complete English sentences. Additionally, it can also intelligently generate images thumbnails for displaying large images effectively.
*/
package com.microsoft.azure.cognitiveservices.vision.computervision.implementation;
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 @@ -24,7 +24,7 @@ public class Category {
* Scoring of the category.
*/
@JsonProperty(value = "score")
private Double score;
private double score;

/**
* The detail property.
Expand All @@ -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,21 +53,21 @@ public Category withName(String name) {
}

/**
* Get the score value.
* Get scoring of the category.
*
* @return the score value
*/
public Double score() {
public double score() {
return this.score;
}

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

/**
* Get the celebrities value.
* An array of landmarks if any identified.
*/
@JsonProperty(value = "landmarks")
private List<LandmarksModel> landmarks;

/**
* Get an array of celebrities if any identified.
*
* @return the celebrities value
*/
Expand All @@ -31,7 +37,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 All @@ -41,4 +47,24 @@ public CategoryDetail withCelebrities(List<CelebritiesModel> celebrities) {
return this;
}

/**
* Get an array of landmarks if any identified.
*
* @return the landmarks value
*/
public List<LandmarksModel> landmarks() {
return this.landmarks;
}

/**
* Set an array of landmarks if any identified.
*
* @param landmarks the landmarks value to set
* @return the CategoryDetail object itself.
*/
public CategoryDetail withLandmarks(List<LandmarksModel> landmarks) {
this.landmarks = landmarks;
return this;
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public class CelebritiesModel {
* Level of confidence ranging from 0 to 1.
*/
@JsonProperty(value = "confidence")
private Double confidence;
private double confidence;

/**
* The faceRectangle property.
Expand All @@ -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,21 +53,21 @@ public CelebritiesModel withName(String name) {
}

/**
* Get the confidence value.
* Get level of confidence ranging from 0 to 1.
*
* @return the confidence value
*/
public Double confidence() {
public double confidence() {
return this.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.
*/
public CelebritiesModel withConfidence(Double confidence) {
public CelebritiesModel withConfidence(double confidence) {
this.confidence = confidence;
return this;
}
Expand Down
Loading