Class VisualRecognition
@Deprecated public class VisualRecognition extends com.ibm.cloud.sdk.core.service.BaseService
-
Field Summary
Fields Modifier and Type Field Description static String
DEFAULT_SERVICE_NAME
Deprecated.static String
DEFAULT_SERVICE_URL
Deprecated.Fields inherited from class com.ibm.cloud.sdk.core.service.BaseService
PROPNAME_DISABLE_SSL, PROPNAME_ENABLE_GZIP, PROPNAME_URL
-
Constructor Summary
Constructors Constructor Description VisualRecognition(String version)
Deprecated.Constructs an instance of the `VisualRecognition` client.VisualRecognition(String version, com.ibm.cloud.sdk.core.security.Authenticator authenticator)
Deprecated.Constructs an instance of the `VisualRecognition` client.VisualRecognition(String version, String serviceName)
Deprecated.Constructs an instance of the `VisualRecognition` client.VisualRecognition(String version, String serviceName, com.ibm.cloud.sdk.core.security.Authenticator authenticator)
Deprecated.Constructs an instance of the `VisualRecognition` client. -
Method Summary
Modifier and Type Method Description com.ibm.cloud.sdk.core.http.ServiceCall<ClassifiedImages>
classify()
Deprecated.Classify images.com.ibm.cloud.sdk.core.http.ServiceCall<ClassifiedImages>
classify(ClassifyOptions classifyOptions)
Deprecated.Classify images.com.ibm.cloud.sdk.core.http.ServiceCall<Classifier>
createClassifier(CreateClassifierOptions createClassifierOptions)
Deprecated.Create a classifier.com.ibm.cloud.sdk.core.http.ServiceCall<Void>
deleteClassifier(DeleteClassifierOptions deleteClassifierOptions)
Deprecated.Delete a classifier.com.ibm.cloud.sdk.core.http.ServiceCall<Void>
deleteUserData(DeleteUserDataOptions deleteUserDataOptions)
Deprecated.Delete labeled data.com.ibm.cloud.sdk.core.http.ServiceCall<Classifier>
getClassifier(GetClassifierOptions getClassifierOptions)
Deprecated.Retrieve classifier details.com.ibm.cloud.sdk.core.http.ServiceCall<InputStream>
getCoreMlModel(GetCoreMlModelOptions getCoreMlModelOptions)
Deprecated.Retrieve a Core ML model of a classifier.String
getVersion()
Deprecated.Gets the version.com.ibm.cloud.sdk.core.http.ServiceCall<Classifiers>
listClassifiers()
Deprecated.Retrieve a list of classifiers.com.ibm.cloud.sdk.core.http.ServiceCall<Classifiers>
listClassifiers(ListClassifiersOptions listClassifiersOptions)
Deprecated.Retrieve a list of classifiers.void
setVersion(String version)
Deprecated.Sets the version.com.ibm.cloud.sdk.core.http.ServiceCall<Classifier>
updateClassifier(UpdateClassifierOptions updateClassifierOptions)
Deprecated.Update a classifier.Methods inherited from class com.ibm.cloud.sdk.core.service.BaseService
configureClient, configureService, constructServiceUrl, constructServiceURL, enableGzipCompression, getAuthenticator, getClient, getEndPoint, getName, getServiceUrl, isJsonMimeType, isJsonPatchMimeType, setClient, setDefaultHeaders, setEndPoint, setServiceUrl, toString
-
Field Details
-
DEFAULT_SERVICE_NAME
Deprecated.- See Also:
- Constant Field Values
-
DEFAULT_SERVICE_URL
Deprecated.- See Also:
- Constant Field Values
-
-
Constructor Details
-
VisualRecognition
Deprecated.Constructs an instance of the `VisualRecognition` client. The default service name is used to configure the client instance.- Parameters:
version
- Release date of the API version you want to use. Specify dates in YYYY-MM-DD format. The current version is `2018-03-19`.
-
VisualRecognition
public VisualRecognition(String version, com.ibm.cloud.sdk.core.security.Authenticator authenticator)Deprecated.Constructs an instance of the `VisualRecognition` client. The default service name and specified authenticator are used to configure the client instance.- Parameters:
version
- Release date of the API version you want to use. Specify dates in YYYY-MM-DD format. The current version is `2018-03-19`.authenticator
- theAuthenticator
instance to be configured for this client
-
VisualRecognition
Deprecated.Constructs an instance of the `VisualRecognition` client. The specified service name is used to configure the client instance.- Parameters:
version
- Release date of the API version you want to use. Specify dates in YYYY-MM-DD format. The current version is `2018-03-19`.serviceName
- the service name to be used when configuring the client instance
-
VisualRecognition
public VisualRecognition(String version, String serviceName, com.ibm.cloud.sdk.core.security.Authenticator authenticator)Deprecated.Constructs an instance of the `VisualRecognition` client. The specified service name and authenticator are used to configure the client instance.- Parameters:
version
- Release date of the API version you want to use. Specify dates in YYYY-MM-DD format. The current version is `2018-03-19`.serviceName
- the service name to be used when configuring the client instanceauthenticator
- theAuthenticator
instance to be configured for this client
-
-
Method Details
-
getVersion
Deprecated.Gets the version.Release date of the API version you want to use. Specify dates in YYYY-MM-DD format. The current version is `2018-03-19`.
- Returns:
- the version
-
setVersion
Deprecated.Sets the version.- Parameters:
version
- the new version
-
classify
public com.ibm.cloud.sdk.core.http.ServiceCall<ClassifiedImages> classify(ClassifyOptions classifyOptions)Deprecated.Classify images.Classify images with built-in or custom classifiers.
- Parameters:
classifyOptions
- theClassifyOptions
containing the options for the call- Returns:
- a
ServiceCall
with a result of typeClassifiedImages
-
classify
Deprecated.Classify images.Classify images with built-in or custom classifiers.
- Returns:
- a
ServiceCall
with a result of typeClassifiedImages
-
createClassifier
public com.ibm.cloud.sdk.core.http.ServiceCall<Classifier> createClassifier(CreateClassifierOptions createClassifierOptions)Deprecated.Create a classifier.Train a new multi-faceted classifier on the uploaded image data. Create your custom classifier with positive or negative example training images. Include at least two sets of examples, either two positive example files or one positive and one negative file. You can upload a maximum of 256 MB per call.
**Tips when creating:**
- If you set the **X-Watson-Learning-Opt-Out** header parameter to `true` when you create a classifier, the example training images are not stored. Save your training images locally. For more information, see [Data collection](#data-collection).
- Encode all names in UTF-8 if they contain non-ASCII characters (.zip and image file names, and classifier and class names). The service assumes UTF-8 encoding if it encounters non-ASCII characters.
- Parameters:
createClassifierOptions
- theCreateClassifierOptions
containing the options for the call- Returns:
- a
ServiceCall
with a result of typeClassifier
-
listClassifiers
public com.ibm.cloud.sdk.core.http.ServiceCall<Classifiers> listClassifiers(ListClassifiersOptions listClassifiersOptions)Deprecated.Retrieve a list of classifiers.- Parameters:
listClassifiersOptions
- theListClassifiersOptions
containing the options for the call- Returns:
- a
ServiceCall
with a result of typeClassifiers
-
listClassifiers
Deprecated.Retrieve a list of classifiers.- Returns:
- a
ServiceCall
with a result of typeClassifiers
-
getClassifier
public com.ibm.cloud.sdk.core.http.ServiceCall<Classifier> getClassifier(GetClassifierOptions getClassifierOptions)Deprecated.Retrieve classifier details.Retrieve information about a custom classifier.
- Parameters:
getClassifierOptions
- theGetClassifierOptions
containing the options for the call- Returns:
- a
ServiceCall
with a result of typeClassifier
-
updateClassifier
public com.ibm.cloud.sdk.core.http.ServiceCall<Classifier> updateClassifier(UpdateClassifierOptions updateClassifierOptions)Deprecated.Update a classifier.Update a custom classifier by adding new positive or negative classes or by adding new images to existing classes. You must supply at least one set of positive or negative examples. For details, see [Updating custom classifiers](https://cloud.ibm.com/docs/visual-recognition?topic=visual-recognition-customizing#updating-custom-classifiers).
Encode all names in UTF-8 if they contain non-ASCII characters (.zip and image file names, and classifier and class names). The service assumes UTF-8 encoding if it encounters non-ASCII characters.
**Tips about retraining:**
- You can't update the classifier if the **X-Watson-Learning-Opt-Out** header parameter was set to `true` when the classifier was created. Training images are not stored in that case. Instead, create another classifier. For more information, see [Data collection](#data-collection).
- Don't make retraining calls on a classifier until the status is ready. When you submit retraining requests in parallel, the last request overwrites the previous requests. The `retrained` property shows the last time the classifier retraining finished.
- Parameters:
updateClassifierOptions
- theUpdateClassifierOptions
containing the options for the call- Returns:
- a
ServiceCall
with a result of typeClassifier
-
deleteClassifier
public com.ibm.cloud.sdk.core.http.ServiceCall<Void> deleteClassifier(DeleteClassifierOptions deleteClassifierOptions)Deprecated.Delete a classifier.- Parameters:
deleteClassifierOptions
- theDeleteClassifierOptions
containing the options for the call- Returns:
- a
ServiceCall
with a void result
-
getCoreMlModel
public com.ibm.cloud.sdk.core.http.ServiceCall<InputStream> getCoreMlModel(GetCoreMlModelOptions getCoreMlModelOptions)Deprecated.Retrieve a Core ML model of a classifier.Download a Core ML model file (.mlmodel) of a custom classifier that returns <tt>"core_ml_enabled": true</tt> in the classifier details.
- Parameters:
getCoreMlModelOptions
- theGetCoreMlModelOptions
containing the options for the call- Returns:
- a
ServiceCall
with a result of typeInputStream
-
deleteUserData
public com.ibm.cloud.sdk.core.http.ServiceCall<Void> deleteUserData(DeleteUserDataOptions deleteUserDataOptions)Deprecated.Delete labeled data.Deletes all data associated with a specified customer ID. The method has no effect if no data is associated with the customer ID.
You associate a customer ID with data by passing the `X-Watson-Metadata` header with a request that passes data. For more information about personal data and customer IDs, see [Information security](https://cloud.ibm.com/docs/visual-recognition?topic=visual-recognition-information-security).
- Parameters:
deleteUserDataOptions
- theDeleteUserDataOptions
containing the options for the call- Returns:
- a
ServiceCall
with a void result
-