@@ -28,52 +28,15 @@ This simple command-line application demonstrates how to invoke
2828 Run ` php composer.phar install ` (if composer is installed locally) or ` composer install `
2929 (if composer is installed globally).
30305 . For a basic demonstration of the Cloud Vision API, run ` php quickstart.php ` .
31- 6 . Run ` php vision.php ` or ` php product_search.php ` . For ` vision.php ` , the following commands are available:
32- ```
33- face Detect faces in an image using Google Cloud Vision API
34- help Displays help for a command
35- label Detect labels in an image using Google Cloud Vision API
36- landmark Detect landmarks in an image using Google Cloud Vision API
37- list Lists commands
38- localize-object Detect objects in an image using Google Cloud Vision API
39- logo Detect logos in an image using Google Cloud Vision API
40- property Detect image properties in an image using Google Cloud Vision API
41- safe-search Detect adult content in an image using Google Cloud Vision API
42- text Detect text in an image using Google Cloud Vision API
43- crop-hints Detect crop hints in an image using Google Cloud Vision API
44- document-text Detect document text in an image using Google Cloud Vision API
45- pdf Detect text in a PDF/TIFF using Google Cloud Vision API
46- web Detect web entities in an image using Google Cloud Vision API
47- web-geo Detect web entities in an image with geo metadata using
48- Google Cloud Vision API
49- ```
50- For ` product_search.php ` , the following commands are available:
51- ```
52- product-create Create a product
53- product-delete Delete a product
54- product-get Get information of a product
55- product-list List information for all products
56- product-update Update information for a product
57- product-image-create Create reference image
58- product-image-delete Delete reference image
59- product-image-get Get reference image information for a product
60- product-image-list List all reference image information for a product
61- product-search-similar Search for similar products to local image
62- product-search-similar-gcs Search for similar products to GCS image
63- product-set-create Create a product set
64- product-set-delete Delete a product set
65- product-set-get Get information for a product set
66- product-set-import Import a product set
67- product-set-list List information for all product sets
68- product-set-add-product Add product to a product set
69- product-set-list-products List products in a product set
70- product-set-remove-product Remove product from a product set
71- product-purge-orphan Delete all products not in any product sets
72- product-purge-products-in-product-set Delete all products not in any product set
73- ```
74-
75- 7 . Run ` php vision.php COMMAND --help ` or ` php product_search.php COMMAND --help ` to print information about the usage of each command.
76-
31+ 6 . Execute the snippets in the [ src/] ( src/ ) directory by running
32+ ` php src/SNIPPET_NAME.php ` . The usage will print for each if no arguments
33+ are provided:
34+ ``` sh
35+ $ php src/detext_face.php
36+ Usage: php src/detext_face.php < PATH>
37+
38+ $ php src/detect_face.php ' path/to/your/image.jpg'
39+ ```
7740# # The client library
7841
7942This sample uses the [Google Cloud Client Library for PHP][google-cloud-php].
0 commit comments