VisionScoreCommand constructor
VisionScoreCommand()
For OBJECT_LOCALIZATION, get the score(s) for the object specified with "look-for".
Implementation
VisionScoreCommand() {
argParser
..addOption(
'image-file',
mandatory: true,
valueHelp: 'image file path',
help: 'The path to the file that will be processed.',
)
..addOption(
'features',
allowed: AnnotationType.values.map((e) => e.name).toList(),
help:
'Comma separated list of detections to be done on the image. See [https://cloud.google.com/vision/docs/reference/rest/v1/Feature#Type]',
)
..addOption(
'look-for',
// mandatory: true,
help: 'Comma separated list of Objects to provide a score for',
)
..addOption(
'max-results',
defaultsTo: '10',
valueHelp: 'int',
help:
'The maxResults parameter specifies the maximum number of items that should be returned in the result set. Acceptable values are 0 to 50, inclusive. The default value is 10.',
);
}