VisionHighlightCommand constructor
VisionHighlightCommand()
Draw a box to highlight any objects detected.
Implementation
VisionHighlightCommand() {
argParser
..addOption('image-file',
mandatory: true,
valueHelp: 'image file path',
help: 'The path to the file that will be processed.')
..addOption('output-file',
mandatory: true,
valueHelp: 'image file path',
help:
'The path to the image file that will display the detected objects highlighted')
..addOption('line-color',
valueHelp: 'String',
allowed: Util.colorMap.keys.toList(),
defaultsTo: 'red',
help:
'The path to the image file that will display the detected objects highlighted')
..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('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.');
}