imageProperties method
Future<ImagePropertiesAnnotation?>
imageProperties(
- JsonImage jsonImage, {
- int maxResults = 10,
inherited
The Image Properties feature detects general attributes of the image, such as dominant color.
Implementation
Future<ImagePropertiesAnnotation?> imageProperties(
JsonImage jsonImage, {
int maxResults = 10,
}) async {
final annotatedResponses = await detection(
jsonImage,
AnnotationType.imageProperties,
maxResults: maxResults,
);
return annotatedResponses.imagePropertiesAnnotation;
}