Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ImageAnalysis: Use property name list instead of values in some models, for Python #27336

Merged
merged 1 commit into from
Jan 10, 2024
Merged
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
5 changes: 5 additions & 0 deletions specification/ai/ImageAnalysis/models.tsp
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ The first caption always applies to the whole image.
model DenseCaptionsResult {
@doc("The list of image captions.")
@minItems(1)
@projectedName("python", "list")
values: Array<DenseCaption>;
}

Expand Down Expand Up @@ -220,13 +221,15 @@ model ImageMetadata {
model ObjectsResult {
@doc("A list of physical object detected in an image and their location.")
@minItems(0)
@projectedName("python", "list")
values: Array<DetectedObject>;
}

@doc("Represents a list of people detected in an image and their location.")
model PeopleResult {
@doc("A list of people detected in an image and their location.")
@minItems(0)
@projectedName("python", "list")
values: Array<DetectedPerson>;
}

Expand All @@ -245,6 +248,7 @@ These regions preserve as much content as possible from the analyzed image, with
model SmartCropsResult {
@doc("A list of crop regions.")
@minItems(1)
@projectedName("python", "list")
values: Array<CropRegion>;
}

Expand Down Expand Up @@ -273,6 +277,7 @@ that appear in the image.
model TagsResult {
@doc("A list of tags.")
@minItems(0)
@projectedName("python", "list")
values: Array<DetectedTag>;
}

Expand Down