Can't seem to access Vision.types that we had in 0.12
See original GitHub issueThis is a followup from https://github.com/GoogleCloudPlatform/google-cloud-node/issues/2516
I had this issue where we could not compare Likelyhoods and this was fixed using Types.
However in 0.13.0 I can’t seem to find the types anymore. I used to be able to do:
var Vision = require('@google-cloud/vision')
var visionClient = new Vision({...})
visionClient.annotateImage({...})
.then(responses => {
var response = responses[0]
console.log(Vision.types.Likelihood[response.safeSearchAnnotation.adult]) // 1
})
Are the types published in a different node modules?
Issue Analytics
- State:
- Created 6 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Is there a website that sells prescription glasses that aren't ...
-0.12 means you don't need glasses. That's a 12th (actually an 8th) of a diopter. It would even be hard to order glasses...
Read more >Low Vision: Causes, Treatment, & Prevention - Cleveland Clinic
Low vision is vision loss that can't be corrected with glasses, contacts or surgery. It isn't blindness as limited sight remains.
Read more >What Does Sphere Cylinder and Axis Mean? - RX Safety
The term sphere is used because the correction of either the farsightedness or nearsightedness is equal across all the meridians of your eye,...
Read more >Restore `types` property with raw proto contents · Issue #1756 ...
This issue inspired by googleapis/nodejs-vision#17 As explained in the ... Can't seem to access Vision.types that we had in 0.12 googleapis/nodejs-vision#17.
Read more >Visual Acuity - CVI Scotland
Normal (6/6 or 20/20) vision equates to 0.0LogMAR (see conversion table below). There are two types of visual acuity 1. Threshold visual acuity....
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Confirmed; these were definitely lost when we transitioned to an auto-generated bottom layer. I’ll ask around to see if we lost these for a reason, or if we can find a way to get them back.
For now, here is a much less intuitive way to do this:
Looks like https://github.com/googleapis/gapic-generator/issues/1756 was closed, which effectively closes this. Goodbye, #17.