Watson Developer Cloud Unity SDK  1.0.0
The Unity SDK uses the Watson Developer Cloud services, a collection of REST APIs and SDKs that use cognitive computing to solve complex problems.
IBM.Watson.DeveloperCloud.Services.VisualRecognition.v3.VisualRecognition Class Reference

This class wraps the Visual Recognition service. Visual Recognition Service More...

Inheritance diagram for IBM.Watson.DeveloperCloud.Services.VisualRecognition.v3.VisualRecognition:
IBM.Watson.DeveloperCloud.Services.IWatsonService

Classes

class  ClassifyReq
 The Classify request More...
 
class  DeleteClassifierReq
 
class  DetectFacesReq
 The DetectFaces request More...
 
class  GetClassifierReq
 
class  GetClassifiersReq
 The GetClassifier request. More...
 
class  RecognizeTextReq
 
class  TrainClassifierReq
 The TrainClassifier request. More...
 

Public Member Functions

delegate void OnGetClassifiers (GetClassifiersTopLevelBrief classifiers, string data)
 The callback used by the GetClassifiers() method. More...
 
delegate void OnGetClassifier (GetClassifiersPerClassifierVerbose classifier, string data)
 Callback used by the GetClassifier() method. More...
 
delegate void OnDeleteClassifier (bool success, string data)
 This callback is used by the DeleteClassifier() method. More...
 
delegate void OnTrainClassifier (GetClassifiersPerClassifierVerbose classifier, string data)
 Callback used by the TrainClassifier() method. More...
 
delegate void OnClassify (ClassifyTopLevelMultiple classify, string data)
 This callback is used by the Classify() method. More...
 
delegate void OnDetectFaces (FacesTopLevelMultiple faces, string data)
 This callback is used by the DetectFaces() method. More...
 
delegate void OnRecognizeText (TextRecogTopLevelMultiple text, string data)
 This callback is used by the RecognizeText() method. More...
 
delegate void OnGetCollections (GetCollections collections, string data)
 This callback is used by the GetCollections() method. More...
 
delegate void OnCreateCollection (CreateCollection collection, string data)
 This callback is used by the CreateCollection() method. More...
 
delegate void OnDeleteCollection (bool success, string data)
 This callback is used by the DeleteCollection() method. More...
 
delegate void OnGetCollection (CreateCollection collection, string data)
 This callback is used y the GetCollection() method. More...
 
delegate void OnGetCollectionImages (GetCollectionImages images, string data)
 This callback is used by the GetCollectionImages() method. More...
 
delegate void OnAddCollectionImage (CollectionsConfig config, string data)
 This callback is used by the AddCollectionImage() method. More...
 
delegate void OnDeleteCollectionImage (bool success, string data)
 This callback is used by the DeleteCollectionImage() method. More...
 
delegate void OnGetImageDetails (GetCollectionsBrief image, string data)
 This callback is used by the GetImageDetails() method. More...
 
delegate void OnDeleteImageMetadata (bool success, string data)
 This callback is used by the DeleteImageMetadata() method. More...
 
delegate void OnGetImageMetadata (object metadata, string data)
 This callback is used by the GetImageMetadata() method. More...
 
delegate void OnFindSimilar (SimilarImagesConfig similarImages, string data)
 This callback is used by the FindSimilar() method. More...
 
delegate byte[] LoadFileDelegate (string filename)
 The delegate for loading a file, used by TrainClassifier(). More...
 
 VisualRecognition (Credentials credentials)
 
bool Classify (OnClassify callback, string url, string[] owners=default(string[]), string[] classifierIDs=default(string[]), float threshold=default(float), string acceptLanguage="en", string customData=default(string))
 Classifies image specified by URL. More...
 
bool Classify (string imagePath, OnClassify callback, string[] owners=default(string[]), string[] classifierIDs=default(string[]), float threshold=default(float), string acceptLanguage="en", string customData=default(string))
 Classifies an image from the file system. More...
 
bool Classify (OnClassify callback, byte[] imageData, string[] owners=default(string[]), string[] classifierIDs=default(string[]), float threshold=default(float), string acceptLanguage="en", string customData=default(string))
 Classifies an image using byte data. More...
 
bool DetectFaces (OnDetectFaces callback, string url, string customData=default(string))
 Detects faces in a given image URL. More...
 
bool DetectFaces (string imagePath, OnDetectFaces callback, string customData=default(string))
 Detects faces in a jpg, gif, png or zip file. More...
 
bool DetectFaces (OnDetectFaces callback, byte[] imageData=default(byte[]), string customData=default(string))
 Detect faces in an image's byteData. More...
 
bool RecognizeText (OnRecognizeText callback, string url, string customData=default(string))
 Recognizes text given an image url. More...
 
bool RecognizeText (string imagePath, OnRecognizeText callback, string customData=default(string))
 Recognizes text in a given image. More...
 
bool RecognizeText (OnRecognizeText callback, byte[] imageData=default(byte[]), string customData=default(string))
 Recognizes text in image bytedata. More...
 
bool GetClassifiers (OnGetClassifiers callback, string customData=default(string))
 Gets a list of all classifiers. More...
 
bool GetClassifier (OnGetClassifier callback, string classifierId, string customData=default(string))
 Gets a classifier by classifierId. More...
 
bool TrainClassifier (OnTrainClassifier callback, string classifierName, Dictionary< string, string > positiveExamples, string negativeExamplesPath=default(string), string mimeType="application/zip", string customData=default(string))
 Trains a classifier. Training requires a total of at least two zip files: Two positive example zips with at least 10 positive examples each or one zip file of 10 positive examples and a zip file of 10 negative examples. The total size of all files must be below 256mb. Additional training can be done by using UpdateClassifier. More...
 
bool TrainClassifier (OnTrainClassifier callback, string classifierName, Dictionary< string, byte[]> positiveExamplesData, byte[] negativeExamplesData=null, string mimeType="application/zip", string customData=default(string))
 Trains a classifier More...
 
bool UpdateClassifier (OnTrainClassifier callback, string classifierID, string classifierName, Dictionary< string, string > positiveExamples, string negativeExamplesPath=default(string), string mimeType="application/zip", string customData=default(string))
 Updates a trained classifier. The total size of all files must be below 256mb. More...
 
bool UpdateClassifier (OnTrainClassifier callback, string classifierID, string classifierName, Dictionary< string, byte[]> positiveExamplesData, byte[] negativeExamplesData=null, string mimeType="application/zip", string customData=default(string))
 Updates a classifier using byte data. More...
 
bool DeleteClassifier (OnDeleteClassifier callback, string classifierId, string customData=default(string))
 Deletes the classifier by classifierID. More...
 
bool GetCollections (OnGetCollections callback, string customData=default(string))
 Get all collections. More...
 
bool CreateCollection (OnCreateCollection callback, string name, string customData=null)
 Create a new collection of images to search. You can create a maximum of 5 collections. More...
 
bool DeleteCollection (OnDeleteCollection callback, string collectionID, string customData=null)
 Deletes a collection. More...
 
bool GetCollection (OnGetCollection callback, string collectionID, string customData=default(string))
 Retrieve information about a specific collection. Only user-created collections can be specified. More...
 
bool GetCollectionImages (OnGetCollectionImages callback, string collectionID, string customData=default(string))
 List 100 images in a collection More...
 
bool AddCollectionImage (OnAddCollectionImage callback, string collectionID, string imagePath, Dictionary< string, string > metadata=null, string customData=null)
 Add an image to a collection via image path on file system and metadata as dictionary. More...
 
bool AddCollectionImage (OnAddCollectionImage callback, string collectionID, string imagePath, string metadataPath=null, string customData=null)
 Add an image to a collection via image path on file system and metadata path on file system. More...
 
bool AddCollectionImage (OnAddCollectionImage callback, string collectionID, byte[] imageData, string filename, string metadata=null, string customData=null)
 Add an image to a collection. More...
 
bool DeleteCollectionImage (OnDeleteCollectionImage callback, string collectionID, string imageID, string customData=null)
 Deletes an image from a collection. More...
 
bool GetImage (OnGetImageDetails callback, string collectionID, string imageID, string customData=default(string))
 List an image's details. More...
 
bool DeleteCollectionImageMetadata (OnDeleteImageMetadata callback, string collectionID, string imageID, string customData=null)
 Deletes an image metadata. More...
 
bool GetMetadata (OnGetImageMetadata callback, string collectionID, string imageID, string customData=default(string))
 List image metadata.. More...
 
bool FindSimilar (OnFindSimilar callback, string collectionID, string imagePath, int limit=10, string customData=null)
 Find Similar Images by image path. More...
 
bool FindSimilar (OnFindSimilar callback, string collectionID, byte[] imageData, int limit=10, string customData=null)
 Find Similar Images by byte[]. More...
 
string GetServiceID ()
 <exclude> More...
 

Properties

LoadFileDelegate LoadFile [get, set]
 Set this property to overload the internal file loading of this class. More...
 
string Url [get, set]
 Gets and sets the endpoint URL for the service. More...
 
string VersionDate [get, set]
 Gets and sets the versionDate of the service. More...
 
Credentials Credentials [get, set]
 Gets and sets the credentials of the service. Replace the default endpoint if endpoint is defined. More...
 

Detailed Description

This class wraps the Visual Recognition service. Visual Recognition Service

Constructor & Destructor Documentation

IBM.Watson.DeveloperCloud.Services.VisualRecognition.v3.VisualRecognition.VisualRecognition ( Credentials  credentials)
inline

Member Function Documentation

bool IBM.Watson.DeveloperCloud.Services.VisualRecognition.v3.VisualRecognition.AddCollectionImage ( OnAddCollectionImage  callback,
string  collectionID,
string  imagePath,
Dictionary< string, string >  metadata = null,
string  customData = null 
)
inline

Add an image to a collection via image path on file system and metadata as dictionary.

Parameters
callbackThe callback.
collectionIDThe identifier of the collection to add images to.
imagePathThe path in the filesystem of the image to add.
metadataOptional Dictionary key value pairs of metadata associated with the specified image.
customDataOptional custom data.
Returns
Returns true if succeess, false if failure.
bool IBM.Watson.DeveloperCloud.Services.VisualRecognition.v3.VisualRecognition.AddCollectionImage ( OnAddCollectionImage  callback,
string  collectionID,
string  imagePath,
string  metadataPath = null,
string  customData = null 
)
inline

Add an image to a collection via image path on file system and metadata path on file system.

Parameters
callbackThe callback.
collectionIDThe identifier of the collection to add images to.
imagePathThe path in the filesystem of the image to add.
metadataPathOptional path to metadata json associated with the specified image.
customDataOptional custom data.
Returns
Returns true if succeess, false if failure.
bool IBM.Watson.DeveloperCloud.Services.VisualRecognition.v3.VisualRecognition.AddCollectionImage ( OnAddCollectionImage  callback,
string  collectionID,
byte[]  imageData,
string  filename,
string  metadata = null,
string  customData = null 
)
inline

Add an image to a collection.

Parameters
callbackThe callback.
collectionIDThe identifier of the collection to add images to.
imageDataThe byte[] data of the image to add.
metadataOptional json metadata associated with the specified image.
customDataOptional custom data.
Returns
bool IBM.Watson.DeveloperCloud.Services.VisualRecognition.v3.VisualRecognition.Classify ( OnClassify  callback,
string  url,
string[]  owners = default(string[]),
string[]  classifierIDs = default(string[]),
float  threshold = default(float),
string  acceptLanguage = "en",
string  customData = default(string) 
)
inline

Classifies image specified by URL.

Parameters
urlURL.
callbackCallback.
ownersOwners.
classifierIDsClassifier IDs to be classified against.
thresholdThreshold.
acceptLanguageAccept language.
customDataCustom data.
bool IBM.Watson.DeveloperCloud.Services.VisualRecognition.v3.VisualRecognition.Classify ( string  imagePath,
OnClassify  callback,
string[]  owners = default(string[]),
string[]  classifierIDs = default(string[]),
float  threshold = default(float),
string  acceptLanguage = "en",
string  customData = default(string) 
)
inline

Classifies an image from the file system.

Parameters
callbackCallback.
imagePathImage path.
ownersOwners.
classifierIDsClassifier I ds.
thresholdThreshold.
acceptLanguageAccept language.
customDataCustom data.
bool IBM.Watson.DeveloperCloud.Services.VisualRecognition.v3.VisualRecognition.Classify ( OnClassify  callback,
byte[]  imageData,
string[]  owners = default(string[]),
string[]  classifierIDs = default(string[]),
float  threshold = default(float),
string  acceptLanguage = "en",
string  customData = default(string) 
)
inline

Classifies an image using byte data.

Parameters
callbackCallback.
imageDataByte array of image data.
ownersOwners.
classifierIDsAn array of classifier identifiers.
thresholdThreshold.
acceptLanguageAccepted language.
customDataCustom data.
Returns
bool IBM.Watson.DeveloperCloud.Services.VisualRecognition.v3.VisualRecognition.CreateCollection ( OnCreateCollection  callback,
string  name,
string  customData = null 
)
inline

Create a new collection of images to search. You can create a maximum of 5 collections.

Parameters
callbackThe callback.
nameThe name of the created collection.
customDataOptional custom data.
Returns
Returns true if succeess, false if failure.
bool IBM.Watson.DeveloperCloud.Services.VisualRecognition.v3.VisualRecognition.DeleteClassifier ( OnDeleteClassifier  callback,
string  classifierId,
string  customData = default(string) 
)
inline

Deletes the classifier by classifierID.

Returns
true, if classifier was deleted, false otherwise.
Parameters
classifierIdClassifier identifier.
callbackCallback.
bool IBM.Watson.DeveloperCloud.Services.VisualRecognition.v3.VisualRecognition.DeleteCollection ( OnDeleteCollection  callback,
string  collectionID,
string  customData = null 
)
inline

Deletes a collection.

Parameters
callbackThe OnDeleteCollection callback.
collectionIDThe collection identifier to delete.
customDataOptional custom data.
Returns
Returns true if succeess, false if failure.
bool IBM.Watson.DeveloperCloud.Services.VisualRecognition.v3.VisualRecognition.DeleteCollectionImage ( OnDeleteCollectionImage  callback,
string  collectionID,
string  imageID,
string  customData = null 
)
inline

Deletes an image from a collection.

Parameters
callbackThe OnDeleteCollection callback.
collectionIDThe collection identifier holding the image to delete.
imageIDThe identifier of the image to delete.
customDataOptional custom data.
Returns
Returns true if succeess, false if failure.
bool IBM.Watson.DeveloperCloud.Services.VisualRecognition.v3.VisualRecognition.DeleteCollectionImageMetadata ( OnDeleteImageMetadata  callback,
string  collectionID,
string  imageID,
string  customData = null 
)
inline

Deletes an image metadata.

Parameters
callbackThe Callback.
collectionIDThe collection identifier holding the image metadata to delete.
imageIDThe identifier of the image metadata to delete.
customDataOptional custom data.
Returns
Returns true if succeess, false if failure.
bool IBM.Watson.DeveloperCloud.Services.VisualRecognition.v3.VisualRecognition.DetectFaces ( OnDetectFaces  callback,
string  url,
string  customData = default(string) 
)
inline

Detects faces in a given image URL.

Returns
true, if faces was detected, false otherwise.
Parameters
urlURL.
callbackCallback.
customDataCustom data.
bool IBM.Watson.DeveloperCloud.Services.VisualRecognition.v3.VisualRecognition.DetectFaces ( string  imagePath,
OnDetectFaces  callback,
string  customData = default(string) 
)
inline

Detects faces in a jpg, gif, png or zip file.

Returns
true, if faces was detected, false otherwise.
Parameters
callbackCallback.
imagePathImage path.
customDataCustom data.
bool IBM.Watson.DeveloperCloud.Services.VisualRecognition.v3.VisualRecognition.DetectFaces ( OnDetectFaces  callback,
byte[]  imageData = default(byte[]),
string  customData = default(string) 
)
inline

Detect faces in an image's byteData.

Parameters
callbackCallback.
imageDataByteArray of image data.
customDataCustom data.
Returns
bool IBM.Watson.DeveloperCloud.Services.VisualRecognition.v3.VisualRecognition.FindSimilar ( OnFindSimilar  callback,
string  collectionID,
string  imagePath,
int  limit = 10,
string  customData = null 
)
inline

Find Similar Images by image path.

Parameters
callbackThe callback.
collectionIDThe identifier of the collection to add images to.
imagePathThe path in the filesystem of the image to query.
limitThe number of similar results you want returned. Default limit is 10 results, you can specify a maximum limit of 100 results.
customDataOptional custom data.
Returns
Returns true if succeess, false if failure.
bool IBM.Watson.DeveloperCloud.Services.VisualRecognition.v3.VisualRecognition.FindSimilar ( OnFindSimilar  callback,
string  collectionID,
byte[]  imageData,
int  limit = 10,
string  customData = null 
)
inline

Find Similar Images by byte[].

Parameters
callbackThe callback.
collectionIDThe identifier of the collection to add images to.
imageDataThe byte[] data of the image to query.
limitThe number of similar results you want returned. Default limit is 10 results, you can specify a maximum limit of 100 results.
customDataOptional custom data.
Returns
bool IBM.Watson.DeveloperCloud.Services.VisualRecognition.v3.VisualRecognition.GetClassifier ( OnGetClassifier  callback,
string  classifierId,
string  customData = default(string) 
)
inline

Gets a classifier by classifierId.

Returns
true, if classifier was gotten, false otherwise.
Parameters
classifierIdClassifier identifier.
callbackCallback.
bool IBM.Watson.DeveloperCloud.Services.VisualRecognition.v3.VisualRecognition.GetClassifiers ( OnGetClassifiers  callback,
string  customData = default(string) 
)
inline

Gets a list of all classifiers.

Returns
true, if classifiers was gotten, false otherwise.
Parameters
callbackCallback.
customDataCustomData.
bool IBM.Watson.DeveloperCloud.Services.VisualRecognition.v3.VisualRecognition.GetCollection ( OnGetCollection  callback,
string  collectionID,
string  customData = default(string) 
)
inline

Retrieve information about a specific collection. Only user-created collections can be specified.

Parameters
callbackThe callback.
collectionIDThe requested collection identifier.
customDataCustom data.
Returns
Returns true if succeess, false if failure.
bool IBM.Watson.DeveloperCloud.Services.VisualRecognition.v3.VisualRecognition.GetCollectionImages ( OnGetCollectionImages  callback,
string  collectionID,
string  customData = default(string) 
)
inline

List 100 images in a collection

Parameters
callbackThe callback.
collectionIDThe requested collection identifier.
customDataCustom data.
Returns
Returns true if succeess, false if failure.
bool IBM.Watson.DeveloperCloud.Services.VisualRecognition.v3.VisualRecognition.GetCollections ( OnGetCollections  callback,
string  customData = default(string) 
)
inline

Get all collections.

Parameters
callbackThe callback.
customDataCustom data.
Returns
Returns true if succeess, false if failure.
bool IBM.Watson.DeveloperCloud.Services.VisualRecognition.v3.VisualRecognition.GetImage ( OnGetImageDetails  callback,
string  collectionID,
string  imageID,
string  customData = default(string) 
)
inline

List an image's details.

Parameters
callbackThe callback.
collectionIDThe requested collection identifier.
customDataCustom data.
Returns
Returns true if succeess, false if failure.
bool IBM.Watson.DeveloperCloud.Services.VisualRecognition.v3.VisualRecognition.GetMetadata ( OnGetImageMetadata  callback,
string  collectionID,
string  imageID,
string  customData = default(string) 
)
inline

List image metadata..

Parameters
callbackThe callback.
collectionIDThe requested collection identifier.
imageIDThe requested image identifier.
customDataCustom data.
Returns
Returns true if succeess, false if failure.
string IBM.Watson.DeveloperCloud.Services.VisualRecognition.v3.VisualRecognition.GetServiceID ( )
inline
delegate byte [] IBM.Watson.DeveloperCloud.Services.VisualRecognition.v3.VisualRecognition.LoadFileDelegate ( string  filename)

The delegate for loading a file, used by TrainClassifier().

Parameters
filenameThe filename to load.
Returns
Should return a byte array of the file contents or null of failure.
delegate void IBM.Watson.DeveloperCloud.Services.VisualRecognition.v3.VisualRecognition.OnAddCollectionImage ( CollectionsConfig  config,
string  data 
)

This callback is used by the AddCollectionImage() method.

Parameters
configThe collection config.
dataOptional data
delegate void IBM.Watson.DeveloperCloud.Services.VisualRecognition.v3.VisualRecognition.OnClassify ( ClassifyTopLevelMultiple  classify,
string  data 
)

This callback is used by the Classify() method.

Parameters
classifyReturned classification.
dataOptional data
delegate void IBM.Watson.DeveloperCloud.Services.VisualRecognition.v3.VisualRecognition.OnCreateCollection ( CreateCollection  collection,
string  data 
)

This callback is used by the CreateCollection() method.

Parameters
collectionThe created collection.
dataOptional data
delegate void IBM.Watson.DeveloperCloud.Services.VisualRecognition.v3.VisualRecognition.OnDeleteClassifier ( bool  success,
string  data 
)

This callback is used by the DeleteClassifier() method.

Parameters
successSuccess or failure of the delete call.
dataOptional data
delegate void IBM.Watson.DeveloperCloud.Services.VisualRecognition.v3.VisualRecognition.OnDeleteCollection ( bool  success,
string  data 
)

This callback is used by the DeleteCollection() method.

Parameters
successSuccess of the delete call.
dataOptional data
delegate void IBM.Watson.DeveloperCloud.Services.VisualRecognition.v3.VisualRecognition.OnDeleteCollectionImage ( bool  success,
string  data 
)

This callback is used by the DeleteCollectionImage() method.

Parameters
successSuccess or failure of deleting collection image.
dataOptional data
delegate void IBM.Watson.DeveloperCloud.Services.VisualRecognition.v3.VisualRecognition.OnDeleteImageMetadata ( bool  success,
string  data 
)

This callback is used by the DeleteImageMetadata() method.

Parameters
successSuccess of the delete call.
dataOptional data
delegate void IBM.Watson.DeveloperCloud.Services.VisualRecognition.v3.VisualRecognition.OnDetectFaces ( FacesTopLevelMultiple  faces,
string  data 
)

This callback is used by the DetectFaces() method.

Parameters
facesFaces Detected.
dataOptional data
delegate void IBM.Watson.DeveloperCloud.Services.VisualRecognition.v3.VisualRecognition.OnFindSimilar ( SimilarImagesConfig  similarImages,
string  data 
)

This callback is used by the FindSimilar() method.

Parameters
similarImages
dataOptional data
delegate void IBM.Watson.DeveloperCloud.Services.VisualRecognition.v3.VisualRecognition.OnGetClassifier ( GetClassifiersPerClassifierVerbose  classifier,
string  data 
)

Callback used by the GetClassifier() method.

Parameters
classifierThe classifier found by ID.
dataOptional data
delegate void IBM.Watson.DeveloperCloud.Services.VisualRecognition.v3.VisualRecognition.OnGetClassifiers ( GetClassifiersTopLevelBrief  classifiers,
string  data 
)

The callback used by the GetClassifiers() method.

Parameters
classifiersA brief description of classifiers.
dataOptional data
delegate void IBM.Watson.DeveloperCloud.Services.VisualRecognition.v3.VisualRecognition.OnGetCollection ( CreateCollection  collection,
string  data 
)

This callback is used y the GetCollection() method.

Parameters
collectionThe collection.
dataOptional data
delegate void IBM.Watson.DeveloperCloud.Services.VisualRecognition.v3.VisualRecognition.OnGetCollectionImages ( GetCollectionImages  images,
string  data 
)

This callback is used by the GetCollectionImages() method.

Parameters
imagesCollection images.
dataOptional data
delegate void IBM.Watson.DeveloperCloud.Services.VisualRecognition.v3.VisualRecognition.OnGetCollections ( GetCollections  collections,
string  data 
)

This callback is used by the GetCollections() method.

Parameters
collectionsCollections.
dataOptional data
delegate void IBM.Watson.DeveloperCloud.Services.VisualRecognition.v3.VisualRecognition.OnGetImageDetails ( GetCollectionsBrief  image,
string  data 
)

This callback is used by the GetImageDetails() method.

Parameters
imageThe image details.
dataOptional data
delegate void IBM.Watson.DeveloperCloud.Services.VisualRecognition.v3.VisualRecognition.OnGetImageMetadata ( object  metadata,
string  data 
)

This callback is used by the GetImageMetadata() method.

Parameters
metadata
dataOptional data
delegate void IBM.Watson.DeveloperCloud.Services.VisualRecognition.v3.VisualRecognition.OnRecognizeText ( TextRecogTopLevelMultiple  text,
string  data 
)

This callback is used by the RecognizeText() method.

Parameters
textText Recognized.
dataOptional data
delegate void IBM.Watson.DeveloperCloud.Services.VisualRecognition.v3.VisualRecognition.OnTrainClassifier ( GetClassifiersPerClassifierVerbose  classifier,
string  data 
)

Callback used by the TrainClassifier() method.

Parameters
classifierThe classifier created.
dataOptional data
bool IBM.Watson.DeveloperCloud.Services.VisualRecognition.v3.VisualRecognition.RecognizeText ( OnRecognizeText  callback,
string  url,
string  customData = default(string) 
)
inline

Recognizes text given an image url.

Returns
true, if text was recognized, false otherwise.
Parameters
urlURL.
callbackCallback.
customDataCustom data.
bool IBM.Watson.DeveloperCloud.Services.VisualRecognition.v3.VisualRecognition.RecognizeText ( string  imagePath,
OnRecognizeText  callback,
string  customData = default(string) 
)
inline

Recognizes text in a given image.

Returns
true, if text was recognized, false otherwise.
Parameters
callbackCallback.
imagePathImage path.
customDataCustom data.
bool IBM.Watson.DeveloperCloud.Services.VisualRecognition.v3.VisualRecognition.RecognizeText ( OnRecognizeText  callback,
byte[]  imageData = default(byte[]),
string  customData = default(string) 
)
inline

Recognizes text in image bytedata.

Parameters
callbackCallback.
imageDataImage's byte array data.
customDataCustom data.
Returns
bool IBM.Watson.DeveloperCloud.Services.VisualRecognition.v3.VisualRecognition.TrainClassifier ( OnTrainClassifier  callback,
string  classifierName,
Dictionary< string, string >  positiveExamples,
string  negativeExamplesPath = default(string),
string  mimeType = "application/zip",
string  customData = default(string) 
)
inline

Trains a classifier. Training requires a total of at least two zip files: Two positive example zips with at least 10 positive examples each or one zip file of 10 positive examples and a zip file of 10 negative examples. The total size of all files must be below 256mb. Additional training can be done by using UpdateClassifier.

Returns
true, if classifier was trained, false otherwise.
Parameters
callbackCallback.
classifierNameClassifier name.
positiveExamplesDictionary of class name and positive example paths.
negativeExamplesPathNegative example file path.
mimeTypeMime type of the positive examples and negative examples data. Use GetMimeType to get Mimetype from filename.
bool IBM.Watson.DeveloperCloud.Services.VisualRecognition.v3.VisualRecognition.TrainClassifier ( OnTrainClassifier  callback,
string  classifierName,
Dictionary< string, byte[]>  positiveExamplesData,
byte[]  negativeExamplesData = null,
string  mimeType = "application/zip",
string  customData = default(string) 
)
inline

Trains a classifier

Parameters
callbackCallback.
classifierNameClassifier name.
positiveExamplesDataDictionary of class name and class training zip or image byte data.
negativeExamplesDataNegative examples zip or image byte data.
mimeTypeMime type of the positive examples and negative examples data.
Returns
bool IBM.Watson.DeveloperCloud.Services.VisualRecognition.v3.VisualRecognition.UpdateClassifier ( OnTrainClassifier  callback,
string  classifierID,
string  classifierName,
Dictionary< string, string >  positiveExamples,
string  negativeExamplesPath = default(string),
string  mimeType = "application/zip",
string  customData = default(string) 
)
inline

Updates a trained classifier. The total size of all files must be below 256mb.

Returns
true, if classifier was updated, false otherwise.
Parameters
callbackCallback.
classifierIDClassifier identifier.
classifierNameClassifier name.
positiveExamplesDictionary of class name and positive example paths.
negativeExamplesPathNegative example file path.
mimeTypeMimetype of the file. Use GetMimeType to get Mimetype from filename.
bool IBM.Watson.DeveloperCloud.Services.VisualRecognition.v3.VisualRecognition.UpdateClassifier ( OnTrainClassifier  callback,
string  classifierID,
string  classifierName,
Dictionary< string, byte[]>  positiveExamplesData,
byte[]  negativeExamplesData = null,
string  mimeType = "application/zip",
string  customData = default(string) 
)
inline

Updates a classifier using byte data.

Parameters
callbackCallback.
classifierIDClassifier identifier.
classifierNameClassifier name.
positiveExamplesDataDictionary of class name and class training zip or image byte data.
negativeExamplesDataNegative examples zip or image byte data.
mimeTypeMimetype of the file. Use GetMimeType to get Mimetype from filename.
Returns

Property Documentation

Credentials IBM.Watson.DeveloperCloud.Services.VisualRecognition.v3.VisualRecognition.Credentials
getset

Gets and sets the credentials of the service. Replace the default endpoint if endpoint is defined.

LoadFileDelegate IBM.Watson.DeveloperCloud.Services.VisualRecognition.v3.VisualRecognition.LoadFile
getset

Set this property to overload the internal file loading of this class.

string IBM.Watson.DeveloperCloud.Services.VisualRecognition.v3.VisualRecognition.Url
getset

Gets and sets the endpoint URL for the service.

string IBM.Watson.DeveloperCloud.Services.VisualRecognition.v3.VisualRecognition.VersionDate
getset

Gets and sets the versionDate of the service.


The documentation for this class was generated from the following file: