Skip to content

Commit 691a18f

Browse files
committed
updated readme and changelog
1 parent 3f5eabb commit 691a18f

File tree

2 files changed

+39
-0
lines changed

2 files changed

+39
-0
lines changed

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
Change Log
22
==========
3+
## Version 0.7.0
4+
_2016-07-29_
5+
6+
* New: Visual Recognition: Added retraining functionality.
7+
* New: Visual Recognition: Use byteArray data to classify, detect faces and recognize text.
8+
* Fix: Updated integration testing.
9+
10+
311
## Version 0.6.1
412
_2016-07-17_
513

README.md

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -440,6 +440,7 @@ private void OnGetClassifier(GetClassifiersPerClassifierVerbose classifier)
440440
}
441441
}
442442
```
443+
443444
##### Training classifiers
444445
Train a new classifier by uploading image data. Two compressed zip files containing at least two positive example files or one positive and one negative example file. The prefix of the positive example file is used as the classname for the new classifier `<Class Name>_positive_examples`. Negative examples zip must be named `negative_examples`. After a successful call, training the classifier takes a few minutes.
445446

@@ -466,6 +467,36 @@ private void OnTrainClassifier(GetClassifiersPerClassifierVerbose classifier)
466467
}
467468
}
468469
```
470+
471+
##### Updating a classifier
472+
Update an existing classifier by adding new classes, or by adding new images to existing classes. To update the existing classifier, use several compressed `.zip` files, including files containing positive or negative images `.jpg` or `.png`. You must supply at least one compressed file, with additional positive or negative examples.
473+
474+
Compressed files containing positive examples are used to add or create `classes` that define the updated classifier. The prefix that you specify for each positive example parameter is used as the class name within the classifier. The `_positive_examples` suffix is required. There is no limit on the number of positive example files you can upload in a single call.
475+
The compressed file containing negative examples is not used to create a class within the created classifier, but does define what the new classifier is not. Negative example files should contain images that do not depict the subject of any of the positive examples. You can only specify one negative example file in a single call.
476+
477+
```cs
478+
private VisualRecognition m_VisualRecognition = new VisualRecognition();
479+
480+
void Start()
481+
{
482+
string m_positiveExamplesPath = Application.dataPath + "/Watson/Examples/ServiceExamples/TestData/<Class Name>_positive_examples.zip";
483+
if(!m_VisualRecognition.UpdateClassifier(OnUpdateClassifier, "<ClassifierID>", "<Classifier Name>", "<Class Name>", m_positiveExamplesPath))
484+
Log.Debug("ExampleVisualRecognition", "Update classifier failed!");
485+
}
486+
487+
private void OnUpdateClassifier(GetClassifiersPerClassifierVerbose classifier)
488+
{
489+
if(classifier != null)
490+
{
491+
Log.Debug("ExampleVisualRecognition", "Classifier is retraining! " + classifier);
492+
}
493+
else
494+
{
495+
Log.Debug("ExampleVisualRecognition", "Failed to update classifier!");
496+
}
497+
}
498+
```
499+
469500
##### Deleting classifiers
470501
Delete a classifier by Classifier ID
471502

0 commit comments

Comments
 (0)