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

Add v1p1beta1 samples #10

Merged
merged 9 commits into from
Dec 5, 2017
Merged

Add v1p1beta1 samples #10

merged 9 commits into from
Dec 5, 2017

Conversation

beccasaurus
Copy link
Contributor

@beccasaurus beccasaurus commented Dec 5, 2017

For reference, see Python sample Pull Request:
GoogleCloudPlatform/python-docs-samples#1211

Samples demonstrating Beta enhancements to Cloud Vision API

  • Web detection using file geographical metadata for improved results

  • Web detection printing new best guess labels

  • Full text detection with confidence scores

  • Safe search including new racy detection

  • Tests and linter pass

  • Code coverage does not decrease (if any source code was changed)

  • Appropriate docs were updated (if necessary)

@ghost ghost assigned beccasaurus Dec 5, 2017
@ghost ghost added the cla: yes This human has signed the Contributor License Agreement. label Dec 5, 2017
@@ -73,240 +69,9 @@ function detectText(fileName) {
// [END vision_detect_document]
}


function detectFaces(fileName) {

This comment was marked as spam.

This comment was marked as spam.

@@ -193,7 +193,6 @@ test(`should detect crop hints in a remote file`, async t => {
test(`should detect similar web images in a local file`, async t => {
const output = await tools.runAsync(`${cmd} web ${files[5].localPath}`, cwd);
t.true(output.includes('Full matches found:'));
t.true(output.includes('URL: https://cloud.google.com/vision/docs/images/'));

This comment was marked as spam.

This comment was marked as spam.

This comment was marked as spam.

webDetection.webEntities.forEach(webEntity => {
console.log(` Description: ${webEntity.description}`);
console.log(` Score: ${webEntity.score}`);
if (webDetection.bestGuessLabels.length) {

This comment was marked as spam.

@lukesneeringer lukesneeringer merged commit b823b79 into v1p1beta1 Dec 5, 2017
@ghost ghost removed the cla: yes This human has signed the Contributor License Agreement. label Dec 5, 2017
@lukesneeringer lukesneeringer deleted the v1p1beta1-samples branch December 5, 2017 19:53
@beccasaurus beccasaurus mentioned this pull request Apr 5, 2018
3 tasks
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants