Skip to content
This repository was archived by the owner on Jul 20, 2023. It is now read-only.

Fix response output for Detect Labels#199

Merged
beccasaurus merged 1 commit intomasterfrom
fix-detect-labels-sample
Sep 18, 2018
Merged

Fix response output for Detect Labels#199
beccasaurus merged 1 commit intomasterfrom
fix-detect-labels-sample

Conversation

@beccasaurus
Copy link
Copy Markdown
Contributor

Before, this was dumping an object via console.log.
Now, this properly prints just the label description.

Before

$ node detect.js labels resources/duck_and_truck.jpg 

Labels:
{ locations: [],
  properties: [],
  mid: '/m/0138tl',
  locale: '',
  description: 'toy',
  score: 0.9380661845207214,
  confidence: 0,
  topicality: 0.9380661845207214,
  boundingPoly: null }
{ locations: [],
  properties: [],
  mid: '/m/088fh',
  locale: '',
  description: 'yellow',
  score: 0.9219182133674622,
  confidence: 0,
  topicality: 0.9219182133674622,
  boundingPoly: null }
# ...

After

$ node detect.js labels resources/duck_and_truck.jpg 

Labels:
toy
yellow
product
ducks geese and swans
plastic
water bird
product

Before, this was dumping an object via console.log
Now, this properly prints just the label description
@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Sep 18, 2018
@ghost ghost assigned beccasaurus Sep 18, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

cla: yes This human has signed the Contributor License Agreement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants