watson.visual_recognition({version: 'v2-beta', ...});
Parameters:
| Name |
Type |
Description |
options |
|
|
- Source:
Methods
classify(images_file, classifier_ids)
Accepts either a single image file or a zip file with multiple
images (.jpeg, .png, .gif) and scores every available classifier
on each image. It then applies a threshold and returns the list
of relevant classifier scores for each image.
Parameters:
| Name |
Type |
Description |
images_file |
ReadStream
|
The image/s to analyze. |
classifier_ids |
ReadStream
|
The ids of the classifier
to check images against.
Omit this parameter to use
all classifiers. |
- Source:
createClassifier(name, positive_examples, negative_examples, name)
Train a new classifier from example images which are uploaded.
Parameters:
| Name |
Type |
Description |
name |
|
The desired short name of the new classifier. |
positive_examples |
|
A compressed (.zip) file of images which prominently
depict the visual subject for a new classifier. |
negative_examples |
|
A compressed (.zip) file of images which di not
prominently depict the visual subject for a new
classifier. |
name |
|
The desired name of the new classifier. |
- Source:
deleteClassifier(classifier_id)
Deletes a custom classifier with the specified classifier id.
Parameters:
| Name |
Type |
Description |
classifier_id |
|
The classifier id |
- Source:
getClassifier(classifier_id)
Retrieves information about a specific classifier.
Parameters:
| Name |
Type |
Description |
classifier_id |
|
The classifier id |
- Source:
listClassifiers(verbose)
Retrieve a list of all classifiers, including built-in and
user-created classifiers.
Parameters:
| Name |
Type |
Description |
verbose |
|
If verbose is present and not equal to "0",
return detailed results for each classifier. |
- Source: