@@ -13,6 +13,7 @@ content.
13
13
14
14
* [ Setup] ( #setup )
15
15
* [ Samples] ( #samples )
16
+ * [ Detection snippets] ( #detection-snippets )
16
17
* [ Face detection] ( #face-detection )
17
18
* [ Label detection] ( #label-detection )
18
19
* [ Landmark detection] ( #landmark-detection )
@@ -30,6 +31,54 @@ content.
30
31
31
32
## Samples
32
33
34
+ ### Detection snippets
35
+
36
+ View the [ documentation] [ detect_docs ] or the [ source code] [ detect_code ] .
37
+
38
+ __ Usage:__ ` node detect.js --help `
39
+
40
+ ```
41
+ Commands:
42
+ faces <fileName> Detects faces in a local image file.
43
+ faces-gcs <bucket> <fileName> Detects faces in an image in Google Cloud Storage.
44
+ labels <fileName> Detects labels in a local image file.
45
+ labels-gcs <bucket> <fileName> Detects labels in an image in Google Cloud Storage.
46
+ landmarks <fileName> Detects landmarks in a local image file.
47
+ landmarks-gcs <bucket> <fileName> Detects landmarks in an image in Google Cloud Storage.
48
+ text <fileName> Detects text in a local image file.
49
+ text-gcs <bucket> <fileName> Detects text in an image in Google Cloud Storage.
50
+ logos <fileName> Detects logos in a local image file.
51
+ logos-gcs <bucket> <fileName> Detects logos in an image in Google Cloud Storage.
52
+ properties <fileName> Detects image properties in a local image file.
53
+ properties-gcs <bucket> <fileName> Detects image properties in an image in Google Cloud Storage.
54
+ safe-search <fileName> Detects safe search properties in a local image file.
55
+ safe-search-gcs <bucket> <fileName> Detects safe search properties in an image in Google Cloud Storage.
56
+
57
+ Options:
58
+ --help Show help [boolean]
59
+
60
+ Examples:
61
+ node detect.js faces ./resources/face_no_surprise.jpg
62
+ node detect.js faces-gcs my-bucket your-image.jpg
63
+ node detect.js labels ./resources/wakeupcat.jpg
64
+ node detect.js labels-gcs my-bucket your-image.jpg
65
+ node detect.js landmarks ./resources/landmark.jpg
66
+ node detect.js landmarks-gcs my-bucket your-image.jpg
67
+ node detect.js text ./resources/wakeupcat.jpg
68
+ node detect.js text-gcs my-bucket your-image.jpg
69
+ node detect.js logos ./resources/logos.png
70
+ node detect.js logos-gcs my-bucket your-image.jpg.png
71
+ node detect.js properties ./resources/landmark.jpg
72
+ node detect.js properties-gcs my-bucket your-image.jpg
73
+ node detect.js safe-search ./resources/wakeupcat.jpg
74
+ node detect.js safe-search-gcs my-bucket your-image.jpg
75
+
76
+ For more information, see https://cloud.google.com/vision/docs
77
+ ```
78
+
79
+ [ detect_docs ] : https://cloud.google.com/vision/docs
80
+ [ detect_code ] : detect.js
81
+
33
82
### Face detection
34
83
35
84
View the [ documentation] [ face_docs ] or the [ source code] [ face_code ] .
0 commit comments