We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7500924 commit 6398a54Copy full SHA for 6398a54
1 file changed
lib/vision/index.js
@@ -269,6 +269,15 @@ Vision.prototype.annotate = function(requests, callback) {
269
* // }
270
* // ]
271
* });
272
+ *
273
+ * //-
274
+ * // To handle errors that occurred, check the length of the `errors` array.
275
276
+ * vision.detect('malformed-image.jpg', types, function(err, detections) {
277
+ * if (detections.faces.errors.length > 0) {
278
+ * // Errors occurred while trying to use this image for a face annotation.
279
+ * }
280
+ * });
281
*/
282
Vision.prototype.detect = function(images, options, callback) {
283
var self = this;
0 commit comments