Skip to content

Commit b073385

Browse files
authored
chore: upgrade vision samples to new surface (#1885)
1 parent e23c42c commit b073385

25 files changed

+29
-26
lines changed

vision/composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "google/vision",
33
"type": "project",
44
"require": {
5-
"google/cloud-vision": "^1.0.0",
5+
"google/cloud-vision": "^1.7",
66
"google/cloud-storage": "^1.20.1"
77
}
88
}

vision/quickstart.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
require __DIR__ . '/vendor/autoload.php';
2121

2222
# imports the Google Cloud client library
23-
use Google\Cloud\Vision\V1\ImageAnnotatorClient;
23+
use Google\Cloud\Vision\V1\Client\ImageAnnotatorClient;
2424

2525
# instantiates a client
2626
$imageAnnotator = new ImageAnnotatorClient();

vision/src/detect_document_text.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
// [START vision_fulltext_detection]
1919
namespace Google\Cloud\Samples\Vision;
2020

21-
use Google\Cloud\Vision\V1\ImageAnnotatorClient;
21+
use Google\Cloud\Vision\V1\Client\ImageAnnotatorClient;
2222

2323
/**
2424
* @param string $path Path to the image, e.g. "path/to/your/image.jpg"

vision/src/detect_document_text_gcs.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
// [START vision_fulltext_detection_gcs]
1919
namespace Google\Cloud\Samples\Vision;
2020

21-
use Google\Cloud\Vision\V1\ImageAnnotatorClient;
21+
use Google\Cloud\Vision\V1\Client\ImageAnnotatorClient;
2222

2323
/**
2424
* @param string $path GCS path to the image, e.g. "gs://path/to/your/image.jpg"

vision/src/detect_face.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
namespace Google\Cloud\Samples\Vision;
1919

2020
// [START vision_face_detection_tutorial_imports]
21-
use Google\Cloud\Vision\V1\ImageAnnotatorClient;
21+
use Google\Cloud\Vision\V1\Client\ImageAnnotatorClient;
2222

2323
// [END vision_face_detection_tutorial_imports]
2424
/**

vision/src/detect_face_gcs.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
// [START vision_face_detection_gcs]
1919
namespace Google\Cloud\Samples\Vision;
2020

21-
use Google\Cloud\Vision\V1\ImageAnnotatorClient;
21+
use Google\Cloud\Vision\V1\Client\ImageAnnotatorClient;
2222

2323
/**
2424
* @param string $path GCS path to the image, e.g. "gs://path/to/your/image.jpg"

vision/src/detect_image_property.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
// [START vision_image_property_detection]
1919
namespace Google\Cloud\Samples\Vision;
2020

21-
use Google\Cloud\Vision\V1\ImageAnnotatorClient;
21+
use Google\Cloud\Vision\V1\Client\ImageAnnotatorClient;
2222

2323
/**
2424
* @param string $path Path to the image, e.g. "path/to/your/image.jpg"

vision/src/detect_image_property_gcs.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
// [START vision_image_property_detection_gcs]
1919
namespace Google\Cloud\Samples\Vision;
2020

21-
use Google\Cloud\Vision\V1\ImageAnnotatorClient;
21+
use Google\Cloud\Vision\V1\Client\ImageAnnotatorClient;
2222

2323
/**
2424
* @param string $path GCS path to the image, e.g. "gs://path/to/your/image.jpg"

vision/src/detect_label.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
// [START vision_label_detection]
1919
namespace Google\Cloud\Samples\Vision;
2020

21-
use Google\Cloud\Vision\V1\ImageAnnotatorClient;
21+
use Google\Cloud\Vision\V1\Client\ImageAnnotatorClient;
2222

2323
/**
2424
* @param string $path Path to the image, e.g. "path/to/your/image.jpg"

vision/src/detect_label_gcs.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
// [START vision_label_detection_gcs]
1919
namespace Google\Cloud\Samples\Vision;
2020

21-
use Google\Cloud\Vision\V1\ImageAnnotatorClient;
21+
use Google\Cloud\Vision\V1\Client\ImageAnnotatorClient;
2222

2323
/**
2424
* @param string $path GCS path to the image, e.g. "gs://path/to/your/image.jpg"

0 commit comments

Comments
 (0)