Skip to content

Commit 843f511

Browse files
committed
updaetd inline documentation to account for mimetype
1 parent b5f3506 commit 843f511

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

Scripts/Services/VisualRecognition/VisualRecognition.cs

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -815,6 +815,7 @@ private void OnGetClassifierResp(RESTConnector.Request req, RESTConnector.Respon
815815
/// <param name="classifierName">Classifier name.</param>
816816
/// <param name="positiveExamples">Dictionary of class name and positive example paths.</param>
817817
/// <param name="negativeExamplesPath">Negative example file path.</param>
818+
/// <param name="mimeType">Mime type of the positive examples and negative examples data. Use GetMimeType to get Mimetype from filename.</param>
818819
public bool TrainClassifier(OnTrainClassifier callback, string classifierName, Dictionary<string, string> positiveExamples, string negativeExamplesPath = default(string), string mimeType = "application/zip", string customData = default(string))
819820
{
820821
if (string.IsNullOrEmpty(mp_ApiKey))
@@ -859,8 +860,9 @@ private void OnGetClassifierResp(RESTConnector.Request req, RESTConnector.Respon
859860
/// </summary>
860861
/// <param name="callback">Callback.</param>
861862
/// <param name="classifierName">Classifier name.</param>
862-
/// <param name="positiveExamplesData">Dictionary of class name and class training zip byte data.</param>
863-
/// <param name="negativeExamplesData">Negative examples zip byte data.</param>
863+
/// <param name="positiveExamplesData">Dictionary of class name and class training zip or image byte data.</param>
864+
/// <param name="negativeExamplesData">Negative examples zip or image byte data.</param>
865+
/// <param name="mimeType">Mime type of the positive examples and negative examples data.</param>
864866
/// <returns></returns>
865867
public bool TrainClassifier(OnTrainClassifier callback, string classifierName, Dictionary<string, byte[]> positiveExamplesData, byte[] negativeExamplesData = null, string mimeType = "application/zip", string customData = default(string))
866868
{
@@ -906,10 +908,6 @@ public class TrainClassifierReq : RESTConnector.Request
906908
/// </summary>
907909
public string Data { get; set; }
908910
/// <summary>
909-
/// Are the training files zip files or image files
910-
/// </summary>
911-
public bool IsZip { get; set; }
912-
/// <summary>
913911
/// The OnTrainClassifier callback delegate.
914912
/// </summary>
915913
public OnTrainClassifier Callback { get; set; }
@@ -1002,8 +1000,8 @@ private void OnTrainClassifierResp(RESTConnector.Request req, RESTConnector.Resp
10021000
/// <param name="callback">Callback.</param>
10031001
/// <param name="classifierID">Classifier identifier.</param>
10041002
/// <param name="classifierName">Classifier name.</param>
1005-
/// <param name="positiveExamplesData">Dictionary of class name and class training zip byte data.</param>
1006-
/// <param name="negativeExamplesData">Negative examples zip byte data.</param>
1003+
/// <param name="positiveExamplesData">Dictionary of class name and class training zip or image byte data.</param>
1004+
/// <param name="negativeExamplesData">Negative examples zip or image byte data.</param>
10071005
/// <param name="mimeType">Mimetype of the file. Use GetMimeType to get Mimetype from filename.</param>
10081006
/// <returns></returns>
10091007
public bool UpdateClassifier(OnTrainClassifier callback, string classifierID, string classifierName, Dictionary<string, byte[]> positiveExamplesData, byte[] negativeExamplesData = null, string mimeType = "application/zip", string customData = default(string))

0 commit comments

Comments
 (0)