Skip to content

Watson Unity SDK release 0.7.0 #121

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 69 commits into from
Jul 29, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
69 commits
Select commit Hold shift + click to select a range
60abd73
logging integration test log on success or fail
mediumTaj Jun 24, 2016
e5c045d
log before exit
mediumTaj Jun 24, 2016
5222fc9
Merge branch 'develop' into feature-97-integrationTesting
mediumTaj Jul 18, 2016
aac6aa9
run travisIntegrationTest instead of UnitTest, log in the system cons…
mediumTaj Jul 18, 2016
85d738e
logging to system console, increased timeout
mediumTaj Jul 18, 2016
46b3a11
hide debugging in restconnector, log to system if in batch mode only
mediumTaj Jul 18, 2016
2601ef6
removed quit from unit test batchmode call, decreased timeout
mediumTaj Jul 18, 2016
71718bc
added step to download and install Unity Test Tools into the Assets d…
mediumTaj Jul 19, 2016
bb2016b
removed installation of test tools
mediumTaj Jul 19, 2016
10f49c5
timeout changes to visual recognition
mediumTaj Jul 19, 2016
7360c76
removed check for batchmode in Logger because it errored if not in ma…
mediumTaj Jul 20, 2016
66fd105
added a pause before deleting cluster in integration test
mediumTaj Jul 20, 2016
b1f6492
encrypt credentials
mediumTaj Jul 20, 2016
971693d
revised installSDK script because of build error in Travis
mediumTaj Jul 20, 2016
95fd708
clone from feature-97 branch instead of develop
mediumTaj Jul 20, 2016
bd76687
edited vr zip files to remove macos directory
mediumTaj Jul 21, 2016
39ad596
* TouchEventManager is changing to have ability to handle all 3 diffe…
ereneld Jul 21, 2016
7649237
ifdef UnityEditor code in ExampleRetrieveAndRank because of build err…
mediumTaj Jul 22, 2016
5bfebcf
encrypt credentials
mediumTaj Jul 22, 2016
6c24b40
Merge pull request #114 from watson-developer-cloud/hotfix-exampleRet…
mediumTaj Jul 22, 2016
113aa7a
encrypt credentials
mediumTaj Jul 22, 2016
dc7c69f
merge in develop
mediumTaj Jul 22, 2016
272e8f6
encrypt config
mediumTaj Jul 22, 2016
b4ff19e
* fix one finger / two finger dragging with three different collider …
ereneld Jul 22, 2016
e9c6161
Merge pull request #115 from watson-developer-cloud/feature-113-touch…
mediumTaj Jul 22, 2016
ecbbf8d
* Uncommented debug logging
ereneld Jul 22, 2016
9d93495
Merge branch 'develop' into feature-113-touchmanager
ereneld Jul 22, 2016
14bd910
Merge pull request #116 from watson-developer-cloud/feature-113-touch…
mediumTaj Jul 25, 2016
c235462
Merge branch 'develop' into feature-106-visualRecognitionRetraining
mediumTaj Jul 25, 2016
bde5fff
add custom data to vr calls
mediumTaj Jul 25, 2016
3781745
expose classify by bytedata
mediumTaj Jul 25, 2016
73516b6
fixed example
mediumTaj Jul 25, 2016
d999574
revised training to take multiple positive zips, added retraining cap…
mediumTaj Jul 25, 2016
8980eff
encrypt credentials
mediumTaj Jul 26, 2016
0a34c13
Merge branch 'feature-97-integrationTesting' of https://github.com/wa…
mediumTaj Jul 26, 2016
9b761f5
ncrypt config
mediumTaj Jul 26, 2016
783f251
updating integration test
mediumTaj Jul 26, 2016
1919963
added examples for retraining
mediumTaj Jul 26, 2016
3f5eabb
updating unit tests
mediumTaj Jul 26, 2016
691a18f
updated readme and changelog
mediumTaj Jul 26, 2016
9c95c23
encrypt config
mediumTaj Jul 26, 2016
e20dd1c
merged in develop
mediumTaj Jul 26, 2016
30ea0d3
encrypt credentials
mediumTaj Jul 26, 2016
0721b36
merge in feature-106-visualRecognitionRetraining
mediumTaj Jul 26, 2016
3c8a922
orig cleanup and encrypt config
mediumTaj Jul 26, 2016
3ad4aa5
encrypt config
mediumTaj Jul 27, 2016
282d712
cleanup existing data from failed integration tests before running in…
mediumTaj Jul 28, 2016
50961d2
encrypt credentials
mediumTaj Jul 28, 2016
7cacbcd
give a little time between delete calls
mediumTaj Jul 28, 2016
ad0198d
removed travis wait
mediumTaj Jul 28, 2016
8aea53e
add travis wait to test function
mediumTaj Jul 28, 2016
f7e1cf1
moved travisWait into yml
mediumTaj Jul 28, 2016
314e2f0
moved wait back
mediumTaj Jul 28, 2016
7902a72
missing arg when searching for existing collections, set timeout in t…
mediumTaj Jul 28, 2016
57286b1
only test each method once
mediumTaj Jul 28, 2016
9197a12
forgot the test
mediumTaj Jul 28, 2016
5c5d4b2
logging delete clusters
mediumTaj Jul 28, 2016
5893804
logging success in deletExtraConfig
mediumTaj Jul 28, 2016
5c1b902
timer between delete calls
mediumTaj Jul 29, 2016
8d936fa
Merge pull request #119 from watson-developer-cloud/feature-106-visua…
mediumTaj Jul 29, 2016
9e2b3af
Merge branch 'develop' into feature-97-integrationTesting
mediumTaj Jul 29, 2016
95a0eb1
ifdef out create/delete in integration test. it works fine in editor …
mediumTaj Jul 29, 2016
4d5f4ef
Merge pull request #112 from watson-developer-cloud/feature-97-integr…
mediumTaj Jul 29, 2016
8d02566
change remote sdk url back to develop, encrypt credentials
mediumTaj Jul 29, 2016
9a7854d
increase timeout for integration tests to 2 min each test
mediumTaj Jul 29, 2016
727dbbb
Merge pull request #120 from watson-developer-cloud/hotfix-reviseRemo…
mediumTaj Jul 29, 2016
96c49b5
looking for errant local variables designated as member variabloes, c…
mediumTaj Jul 29, 2016
0d30255
quit unity after integration test, new ranker id
mediumTaj Jul 29, 2016
9175439
Merge pull request #122 from watson-developer-cloud/hotfix-memberVari…
mediumTaj Jul 29, 2016
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ install:
script:
- ./Travis/createProject.sh
- ./Travis/installSDK.sh
- ./Travis/runTests.sh
- travis_wait 15 ./Travis/runTests.sh
- ./Travis/build.sh
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
Change Log
==========
## Version 0.7.0
_2016-07-29_

* New: Visual Recognition: Added retraining functionality.
* New: Visual Recognition: Use byteArray data to classify, detect faces and recognize text.
* Fix: Updated integration testing.


## Version 0.6.1
_2016-07-17_

Expand Down
Binary file modified Config.json.enc
Binary file not shown.
4 changes: 2 additions & 2 deletions Examples/ServiceExamples/Scripts/ExampleDIalog.cs.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion Examples/ServiceExamples/Scripts/ExamplePersonalityInsights.cs
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@

public class ExamplePersonalityInsights : MonoBehaviour {
PersonalityInsights m_personalityInsights = new PersonalityInsights();
private string testString = "Facing certain defeat at the hands of a room-size I.B.M. computer on Wednesday evening, Ken Jennings, famous for winning 74 games in a row on the TV quiz show, acknowledged the obvious. \"I, for one, welcome our new computer overlords,\" he wrote on his video screen, borrowing a line from a \"Simpsons\" episode.\n\nFrom now on, if the answer is \"the computer champion on \"Jeopardy!,\" the question will be, \"What is Watson?\"\n\nFor I.B.M., the showdown was not merely a well-publicized stunt and a $1 million prize, but proof that the company has taken a big step toward a world in which intelligent machines will understand and respond to humans, and perhaps inevitably, replace some of them.\n\nWatson, specifically, is a \"question answering machine\" of a type that artificial intelligence researchers have struggled with for decades — a computer akin to the one on \"Star Trek\" that can understand questions posed in natural language and answer them.\n\nWatson showed itself to be imperfect, but researchers at I.B.M. and other companies are already developing uses for Watson's technologies that could have a significant impact on the way doctors practice and consumers buy products.\n\n\"Cast your mind back 20 years and who would have thought this was possible?\" said Edward Feigenbaum, a Stanford University computer scientist and a pioneer in the field.\n\nIn its \"Jeopardy!\" project, I.B.M. researchers were tackling a game that requires not only encyclopedic recall, but also the ability to untangle convoluted and often opaque statements, a modicum of luck, and quick, strategic button pressing.\n\nThe contest, which was taped in January here at the company's T. J. Watson Research Laboratory before an audience of I.B.M. executives and company clients, played out in three televised episodes concluding Wednesday. At the end of the first day, Watson was in a tie with Brad Rutter, another ace human player, at $5,000 each, with Mr. Jennings trailing with $2,000.\n\nBut on the second day, Watson went on a tear. By night's end, Watson had a commanding lead with a total of $35,734, compared with Mr. Rutter's $10,400 and Mr. Jennings's $4,800.\n\nVictory was not cemented until late in the third match, when Watson was in Nonfiction. \"Same category for $1,200,\" it said in a manufactured tenor, and lucked into a Daily Double. Mr. Jennings grimaced.\n\nEven later in the match, however, had Mr. Jennings won another key Daily Double it might have come down to Final Jeopardy, I.B.M. researchers acknowledged.\n\nThe final tally was $77,147 to Mr. Jennings's $24,000 and Mr. Rutter's $21,600.\n\nMore than anything, the contest was a vindication for the academic field of artificial intelligence, which began with great promise in the 1960s with the vision of creating a thinking machine and which became the laughingstock of Silicon Valley in the 1980s, when a series of heavily financed start-up companies went bankrupt.\n\nDespite its intellectual prowess, Watson was by no means omniscient. On Tuesday evening during Final Jeopardy, the category was U.S. Cities and the clue was: \"Its largest airport is named for a World War II hero; its second largest for a World War II battle.\"\n\nWatson drew guffaws from many in the television audience when it responded \"What is Toronto?????\"\n\nThe string of question marks indicated that the system had very low confidence in its response, I.B.M. researchers said, but because it was Final Jeopardy, it was forced to give a response. The machine did not suffer much damage. It had wagered just $947 on its result. (The correct answer is, \"What is Chicago?\")\n\n\"We failed to deeply understand what was going on there,\" said David Ferrucci, an I.B.M. researcher who led the development of Watson. \"The reality is that there's lots of data where the title is U.S. cities and the answers are countries, European cities, people, mayors. Even though it says U.S. cities, we had very little confidence that that's the distinguishing feature.\"\n\nThe researchers also acknowledged that the machine had benefited from the \"buzzer factor.\"\n\nBoth Mr. Jennings and Mr. Rutter are accomplished at anticipating the light that signals it is possible to \"buzz in,\" and can sometimes get in with virtually zero lag time. The danger is to buzz too early, in which case the contestant is penalized and \"locked out\" for roughly a quarter of a second.\n\nWatson, on the other hand, does not anticipate the light, but has a weighted scheme that allows it, when it is highly confident, to hit the buzzer in as little as 10 milliseconds, making it very hard for humans to beat. When it was less confident, it took longer to buzz in. In the second round, Watson beat the others to the buzzer in 24 out of 30 Double Jeopardy questions.\n\n\"It sort of wants to get beaten when it doesn't have high confidence,\" Dr. Ferrucci said. \"It doesn't want to look stupid.\"\n\nBoth human players said that Watson's button pushing skill was not necessarily an unfair advantage. \"I beat Watson a couple of times,\" Mr. Rutter said.\n\nWhen Watson did buzz in, it made the most of it. Showing the ability to parse language, it responded to, \"A recent best seller by Muriel Barbery is called 'This of the Hedgehog,' \" with \"What is Elegance?\"\n\nIt showed its facility with medical diagnosis. With the answer: \"You just need a nap. You don't have this sleep disorder that can make sufferers nod off while standing up,\" Watson replied, \"What is narcolepsy?\"\n\nThe coup de grâce came with the answer, \"William Wilkenson's 'An Account of the Principalities of Wallachia and Moldavia' inspired this author's most famous novel.\" Mr. Jennings wrote, correctly, Bram Stoker, but realized that he could not catch up with Watson's winnings and wrote out his surrender.\n\nBoth players took the contest and its outcome philosophically.\n\n\"I had a great time and I would do it again in a heartbeat,\" said Mr. Jennings. \"It's not about the results; this is about being part of the future.\"\n\nFor I.B.M., the future will happen very quickly, company executives said. On Thursday it plans to announce that it will collaborate with Columbia University and the University of Maryland to create a physician's assistant service that will allow doctors to query a cybernetic assistant. The company also plans to work with Nuance Communications Inc. to add voice recognition to the physician's assistant, possibly making the service available in as little as 18 months.\n\n\"I have been in medical education for 40 years and we're still a very memory-based curriculum,\" said Dr. Herbert Chase, a professor of clinical medicine at Columbia University who is working with I.B.M. on the physician's assistant. \"The power of Watson- like tools will cause us to reconsider what it is we want students to do.\"\n\nI.B.M. executives also said they are in discussions with a major consumer electronics retailer to develop a version of Watson, named after I.B.M.'s founder, Thomas J. Watson, that would be able to interact with consumers on a variety of subjects like buying decisions and technical support.\n\nDr. Ferrucci sees none of the fears that have been expressed by theorists and science fiction writers about the potential of computers to usurp humans.\n\n\"People ask me if this is HAL,\" he said, referring to the computer in \"2001: A Space Odyssey.\" \"HAL's not the focus; the focus is on the computer on 'Star Trek,' where you have this intelligent information seek dialogue, where you can ask follow-up questions and the computer can look at all the evidence and tries to ask follow-up questions. That's very cool.\"";

void Start ()
{
Expand Down
12 changes: 9 additions & 3 deletions Examples/ServiceExamples/Scripts/ExampleRetrieveAndRank.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,10 @@
using IBM.Watson.DeveloperCloud.Services.RetrieveAndRank.v1;
using IBM.Watson.DeveloperCloud.Logging;
using IBM.Watson.DeveloperCloud.Utilities;
using UnityEditor;
using System.IO;
#if UNITY_EDITOR
using UnityEditor;
#endif

public class ExampleRetrieveAndRank : MonoBehaviour
{
Expand Down Expand Up @@ -222,7 +224,8 @@ private void OnDeleteClusterConfig(bool success, string data)

private void OnGetClusterConfig(byte[] respData, string data)
{
if(respData != null)
#if UNITY_EDITOR
if (respData != null)
{
Log.Debug("ExampleRetrieveAndRank", "OnGetClusterConfig | success!");
string currentDirectory = Application.dataPath;
Expand All @@ -235,7 +238,10 @@ private void OnGetClusterConfig(byte[] respData, string data)
}
else
Log.Debug("ExampleRetrieveAndRank", "OnGetClusterConfig | respData is null!");
}
#else
Log.Debug("ExampleRetrieveAndRank", "Not in editor - skipping download.");
#endif
}

private void OnSaveConfig(bool success, string data)
{
Expand Down
1 change: 0 additions & 1 deletion Examples/ServiceExamples/Scripts/ExampleToneAnalyzer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
*
*/


using UnityEngine;
using System.Collections;
using IBM.Watson.DeveloperCloud.Services.ToneAnalyzer.v3;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
*
*/


using UnityEngine;
using System.Collections;
using System.Collections.Generic;
Expand Down
131 changes: 71 additions & 60 deletions Examples/ServiceExamples/Scripts/ExampleVisualRecognition.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@

using UnityEngine;
using System.Collections;
using System.Collections.Generic;
using IBM.Watson.DeveloperCloud.Services.VisualRecognition.v3;
using IBM.Watson.DeveloperCloud.Logging;
using IBM.Watson.DeveloperCloud.Utilities;
Expand All @@ -34,61 +35,71 @@ void Start()
{
LogSystem.InstallDefaultReactors();

// Get all classifiers
if (!m_VisualRecognition.GetClassifiers(OnGetClassifiers))
Log.Debug("ExampleVisualRecognition", "Getting classifiers failed!");
//
// Find classifier by name
m_VisualRecognition.FindClassifier(m_classifierName, OnFindClassifier);

// Find classifier by ID
if (!m_VisualRecognition.GetClassifier(m_classifierID, OnGetClassifier))
Log.Debug("ExampleVisualRecognition", "Getting classifier failed!");

// Delete classifier by ID
if (!m_VisualRecognition.DeleteClassifier(m_classifierToDelete, OnDeleteClassifier))
Log.Debug("ExampleVisualRecognition", "Deleting classifier failed!");

// Train classifier
string m_positiveExamplesPath = Application.dataPath + "/Watson/Examples/ServiceExamples/TestData/visual-recognition-classifiers/giraffe_positive_examples.zip";
string m_negativeExamplesPath = Application.dataPath + "/Watson/Examples/ServiceExamples/TestData/visual-recognition-classifiers/negative_examples.zip";
if (!m_VisualRecognition.TrainClassifier("unity-test-classifier5", "giraffe", m_positiveExamplesPath, m_negativeExamplesPath, OnTrainClassifier))
Log.Debug("ExampleVisualRecognition", "Train classifier failed!");

// Classify get
if (!m_VisualRecognition.Classify(m_imageURL, OnClassify))
Log.Debug("ExampleVisualRecognition", "Classify image failed!");

// Classify post image
string m_imagesPath = Application.dataPath + "/Watson/Examples/ServiceExamples/TestData/visual-recognition-classifiers/obama.jpg";
string[] m_owners = { "IBM", "me" };
string[] m_classifierIDs = { "default" };
if (!m_VisualRecognition.Classify(OnClassify, m_imagesPath, m_owners, m_classifierIDs, 0.5f))
Log.Debug("ExampleVisualRecognition", "Classify image failed!");


// Detect faces get
if (!m_VisualRecognition.DetectFaces(m_imageURL, OnDetectFaces))
Log.Debug("ExampleVisualRecogntiion", "Detect faces failed!");

// Detect faces post image
string m_faceExamplePath = Application.dataPath + "/Watson/Examples/ServiceExamples/TestData/visual-recognition-classifiers/obama.jpg";
if (!m_VisualRecognition.DetectFaces(OnDetectFaces, m_faceExamplePath))
Log.Debug("ExampleVisualRecognition", "Detect faces failed!");



// Recognize text get
if (!m_VisualRecognition.RecognizeText(m_imageTextURL, OnRecognizeText))
Log.Debug("ExampleVisualRecognition", "Recognize text failed!");

// Recognize text post image
string m_textExamplePath = Application.dataPath + "/Watson/Examples/ServiceExamples/TestData/visual-recognition-classifiers/from_platos_apology.png";
if (!m_VisualRecognition.RecognizeText(OnRecognizeText, m_textExamplePath))
Log.Debug("ExampleVisualRecognition", "Recognize text failed!");
//// Get all classifiers
//Log.Debug("ExampleVisualRecognition", "Attempting to get all classifiers");
//if (!m_VisualRecognition.GetClassifiers(OnGetClassifiers))
// Log.Debug("ExampleVisualRecognition", "Getting classifiers failed!");

//// Find classifier by name
//Log.Debug("ExampleVisualRecognition", "Attempting to find classifier by name");
//m_VisualRecognition.FindClassifier(OnFindClassifier, m_classifierName);

//// Find classifier by ID
//Log.Debug("ExampleVisualRecognition", "Attempting to find classifier by ID");
//if (!m_VisualRecognition.GetClassifier(OnGetClassifier, m_classifierID))
// Log.Debug("ExampleVisualRecognition", "Getting classifier failed!");

//// Delete classifier by ID
//Log.Debug("ExampleVisualRecognition", "Attempting to delete classifier");
//if (!m_VisualRecognition.DeleteClassifier(OnDeleteClassifier, m_classifierToDelete))
// Log.Debug("ExampleVisualRecognition", "Deleting classifier failed!");

//// Train classifier
//Log.Debug("ExampleVisualRecognition", "Attempting to train classifier");
//string positiveExamplesPath = Application.dataPath + "/Watson/Examples/ServiceExamples/TestData/visual-recognition-classifiers/giraffe_positive_examples.zip";
//string negativeExamplesPath = Application.dataPath + "/Watson/Examples/ServiceExamples/TestData/visual-recognition-classifiers/negative_examples.zip";
//Dictionary<string, string> positiveExamples = new Dictionary<string, string>();
//positiveExamples.Add("giraffe", positiveExamplesPath);
//if (!m_VisualRecognition.TrainClassifier(OnTrainClassifier, "unity-test-classifier-example", positiveExamples, negativeExamplesPath))
// Log.Debug("ExampleVisualRecognition", "Train classifier failed!");

//// Classify get
//Log.Debug("ExampleVisualRecognition", "Attempting to get classify via URL");
//if (!m_VisualRecognition.Classify(m_imageURL, OnClassify))
// Log.Debug("ExampleVisualRecognition", "Classify image failed!");

//// Classify post image
//Log.Debug("ExampleVisualRecognition", "Attempting to classify via image on file system");
//string imagesPath = Application.dataPath + "/Watson/Examples/ServiceExamples/TestData/visual-recognition-classifiers/obama.jpg";
//string[] owners = { "IBM", "me" };
//string[] classifierIDs = { "default" };
//if (!m_VisualRecognition.Classify(OnClassify, imagesPath, owners, classifierIDs, 0.5f))
// Log.Debug("ExampleVisualRecognition", "Classify image failed!");

//// Detect faces get
//Log.Debug("ExampleVisualRecognition", "Attempting to detect faces via URL");
//if (!m_VisualRecognition.DetectFaces(m_imageURL, OnDetectFaces))
// Log.Debug("ExampleVisualRecogntiion", "Detect faces failed!");

//// Detect faces post image
//Log.Debug("ExampleVisualRecognition", "Attempting to detect faces via image");
//string faceExamplePath = Application.dataPath + "/Watson/Examples/ServiceExamples/TestData/visual-recognition-classifiers/obama.jpg";
//if (!m_VisualRecognition.DetectFaces(OnDetectFaces, faceExamplePath))
// Log.Debug("ExampleVisualRecognition", "Detect faces failed!");

//// Recognize text get
//Log.Debug("ExampleVisualRecognition", "Attempting to recognizeText via URL");
//if (!m_VisualRecognition.RecognizeText(m_imageTextURL, OnRecognizeText))
// Log.Debug("ExampleVisualRecognition", "Recognize text failed!");

//// Recognize text post image
//Log.Debug("ExampleVisualRecognition", "Attempting to recognizeText via image");
//string textExamplePath = Application.dataPath + "/Watson/Examples/ServiceExamples/TestData/visual-recognition-classifiers/from_platos_apology.png";
//if (!m_VisualRecognition.RecognizeText(OnRecognizeText, textExamplePath))
// Log.Debug("ExampleVisualRecognition", "Recognize text failed!");
}

private void OnGetClassifiers(GetClassifiersTopLevelBrief classifiers)
private void OnGetClassifiers(GetClassifiersTopLevelBrief classifiers, string data)
{
if (classifiers != null && classifiers.classifiers.Length > 0)
{
Expand All @@ -103,7 +114,7 @@ private void OnGetClassifiers(GetClassifiersTopLevelBrief classifiers)
}
}

private void OnFindClassifier(GetClassifiersPerClassifierVerbose classifier)
private void OnFindClassifier(GetClassifiersPerClassifierVerbose classifier, string data)
{
if (classifier != null)
{
Expand All @@ -115,7 +126,7 @@ private void OnFindClassifier(GetClassifiersPerClassifierVerbose classifier)
}
}

private void OnGetClassifier(GetClassifiersPerClassifierVerbose classifier)
private void OnGetClassifier(GetClassifiersPerClassifierVerbose classifier, string data)
{
if (classifier != null)
{
Expand All @@ -127,7 +138,7 @@ private void OnGetClassifier(GetClassifiersPerClassifierVerbose classifier)
}
}

private void OnDeleteClassifier(bool success)
private void OnDeleteClassifier(bool success, string data)
{
if (success)
{
Expand All @@ -139,7 +150,7 @@ private void OnDeleteClassifier(bool success)
}
}

private void OnTrainClassifier(GetClassifiersPerClassifierVerbose classifier)
private void OnTrainClassifier(GetClassifiersPerClassifierVerbose classifier, string data)
{
if (classifier != null)
{
Expand All @@ -151,7 +162,7 @@ private void OnTrainClassifier(GetClassifiersPerClassifierVerbose classifier)
}
}

private void OnClassify(ClassifyTopLevelMultiple classify)
private void OnClassify(ClassifyTopLevelMultiple classify, string data)
{
if (classify != null)
{
Expand All @@ -173,7 +184,7 @@ private void OnClassify(ClassifyTopLevelMultiple classify)
}
}

private void OnDetectFaces(FacesTopLevelMultiple multipleImages)
private void OnDetectFaces(FacesTopLevelMultiple multipleImages, string data)
{
if (multipleImages != null)
{
Expand All @@ -196,7 +207,7 @@ private void OnDetectFaces(FacesTopLevelMultiple multipleImages)
}
}

private void OnRecognizeText(TextRecogTopLevelMultiple multipleImages)
private void OnRecognizeText(TextRecogTopLevelMultiple multipleImages, string data)
{
if (multipleImages != null)
{
Expand Down
Binary file not shown.
Binary file modified Examples/ServiceExamples/TestData/visual-recognition-classifiers/negative_examples.zip
100644 → 100755
Binary file not shown.
Binary file not shown.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading