@@ -295,7 +295,7 @@ private void OnGetClassifier(GetClassifiersPerClassifierVerbose classifier)
295295}
296296```
297297##### Training classifiers
298- Train a new classifier by uploading image data. Two compressed zip files containing at least two positive exampel 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 sucessful call, training the classifier takes a few minutes.
298+ 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.
299299
300300``` cs
301301private VisualRecognition m_VisualRecognition = new VisualRecognition ();
@@ -382,7 +382,7 @@ private void OnClassify(ClassifyTopLevelMultiple classify)
382382 Log .Debug (" ExampleVisualRecognition" , " Classification failed!" );
383383 }
384384}
385- ```
385+ ```
386386
387387###### Classify an image by sending an image
388388
@@ -433,7 +433,7 @@ private string m_imageURL = "https://upload.wikimedia.org/wikipedia/commons/e/e9
433433void Start ()
434434{
435435 if (! m_VisualRecognition .DetectFaces (m_imageURL , OnDetectFaces ))
436- Log .Debug (" ExampleVisualRecogntiion " , " Detect faces failed!" );
436+ Log .Debug (" ExampleVisualRecognition " , " Detect faces failed!" );
437437}
438438
439439private void OnDetectFaces (FacesTopLevelMultiple multipleImages )
@@ -446,10 +446,10 @@ private void OnDetectFaces(FacesTopLevelMultiple multipleImages)
446446 Log .Debug (" ExampleVisualRecognition" , " \t source_url: {0}, resolved_url: {1}" , faces .source_url , faces .resolved_url );
447447 foreach (OneFaceResult face in faces .faces )
448448 {
449- Log .Debug (" ExampleVisulaRecognition " , " \t\t Face location: {0}, {1}, {2}, {3}" , face .face_location .left , face .face_location .top , face .face_location .width , face .face_location .height );
450- Log .Debug (" ExampleVisulaRecognition " , " \t\t Gender: {0}, Score: {1}" , face .gender .gender , face .gender .score );
451- Log .Debug (" ExampleVisulaRecognition " , " \t\t Age Min: {0}, Age Max: {1}, Score: {2}" , face .age .min , face .age .max , face .age .score );
452- Log .Debug (" ExampleVisulaRecognition " , " \t\t Name: {0}, Score: {1}, Type Heiarchy : {2}" , face .identity .name , face .identity .score , face .identity .type_hierarchy );
449+ Log .Debug (" ExampleVisualRecognition " , " \t\t Face location: {0}, {1}, {2}, {3}" , face .face_location .left , face .face_location .top , face .face_location .width , face .face_location .height );
450+ Log .Debug (" ExampleVisualRecognition " , " \t\t Gender: {0}, Score: {1}" , face .gender .gender , face .gender .score );
451+ Log .Debug (" ExampleVisualRecognition " , " \t\t Age Min: {0}, Age Max: {1}, Score: {2}" , face .age .min , face .age .max , face .age .score );
452+ Log .Debug (" ExampleVisualRecognition " , " \t\t Name: {0}, Score: {1}, Type Hierarchy : {2}" , face .identity .name , face .identity .score , face .identity .type_hierarchy );
453453 }
454454 }
455455 }
@@ -458,7 +458,7 @@ private void OnDetectFaces(FacesTopLevelMultiple multipleImages)
458458 Log .Debug (" ExampleVisualRecognition" , " Detect faces failed!" );
459459 }
460460}
461- ```
461+ ```
462462
463463###### Detect faces by sending an image
464464
@@ -482,10 +482,10 @@ private void OnDetectFaces(FacesTopLevelMultiple multipleImages)
482482 Log .Debug (" ExampleVisualRecognition" , " \t source_url: {0}, resolved_url: {1}" , faces .source_url , faces .resolved_url );
483483 foreach (OneFaceResult face in faces .faces )
484484 {
485- Log .Debug (" ExampleVisulaRecognition " , " \t\t Face location: {0}, {1}, {2}, {3}" , face .face_location .left , face .face_location .top , face .face_location .width , face .face_location .height );
486- Log .Debug (" ExampleVisulaRecognition " , " \t\t Gender: {0}, Score: {1}" , face .gender .gender , face .gender .score );
487- Log .Debug (" ExampleVisulaRecognition " , " \t\t Age Min: {0}, Age Max: {1}, Score: {2}" , face .age .min , face .age .max , face .age .score );
488- Log .Debug (" ExampleVisulaRecognition " , " \t\t Name: {0}, Score: {1}, Type Heiarchy : {2}" , face .identity .name , face .identity .score , face .identity .type_hierarchy );
485+ Log .Debug (" ExampleVisualRecognition " , " \t\t Face location: {0}, {1}, {2}, {3}" , face .face_location .left , face .face_location .top , face .face_location .width , face .face_location .height );
486+ Log .Debug (" ExampleVisualRecognition " , " \t\t Gender: {0}, Score: {1}" , face .gender .gender , face .gender .score );
487+ Log .Debug (" ExampleVisualRecognition " , " \t\t Age Min: {0}, Age Max: {1}, Score: {2}" , face .age .min , face .age .max , face .age .score );
488+ Log .Debug (" ExampleVisualRecognition " , " \t\t Name: {0}, Score: {1}, Type Hierarchy : {2}" , face .identity .name , face .identity .score , face .identity .type_hierarchy );
489489 }
490490 }
491491 }
@@ -522,9 +522,9 @@ private void OnRecognizeText(TextRecogTopLevelMultiple multipleImages)
522522 Log .Debug (" ExampleVisualRecognition" , " \t text: {0}" , texts .text );
523523 foreach (TextRecogOneWord text in texts .words )
524524 {
525- Log .Debug (" ExampleVisulaRecognition " , " \t\t text location: {0}, {1}, {2}, {3}" , text .location .left , text .location .top , text .location .width , text .location .height );
526- Log .Debug (" ExampleVisulaRecognition " , " \t\t Line number: {0}" , text .line_number );
527- Log .Debug (" ExampleVisulaRecognition " , " \t\t word: {0}, Score: {1}" , text .word , text .score );
525+ Log .Debug (" ExampleVisualRecognition " , " \t\t text location: {0}, {1}, {2}, {3}" , text .location .left , text .location .top , text .location .width , text .location .height );
526+ Log .Debug (" ExampleVisualRecognition " , " \t\t Line number: {0}" , text .line_number );
527+ Log .Debug (" ExampleVisualRecognition " , " \t\t word: {0}, Score: {1}" , text .word , text .score );
528528 }
529529 }
530530 }
@@ -533,7 +533,7 @@ private void OnRecognizeText(TextRecogTopLevelMultiple multipleImages)
533533 Log .Debug (" ExampleVisualRecognition" , " RecognizeText failed!" );
534534 }
535535}
536- ```
536+ ```
537537
538538###### Recognize text by sending an image
539539
@@ -558,9 +558,9 @@ private void OnRecognizeText(TextRecogTopLevelMultiple multipleImages)
558558 Log .Debug (" ExampleVisualRecognition" , " \t text: {0}" , texts .text );
559559 foreach (TextRecogOneWord text in texts .words )
560560 {
561- Log .Debug (" ExampleVisulaRecognition " , " \t\t text location: {0}, {1}, {2}, {3}" , text .location .left , text .location .top , text .location .width , text .location .height );
562- Log .Debug (" ExampleVisulaRecognition " , " \t\t Line number: {0}" , text .line_number );
563- Log .Debug (" ExampleVisulaRecognition " , " \t\t word: {0}, Score: {1}" , text .word , text .score );
561+ Log .Debug (" ExampleVisualRecognition " , " \t\t text location: {0}, {1}, {2}, {3}" , text .location .left , text .location .top , text .location .width , text .location .height );
562+ Log .Debug (" ExampleVisualRecognition " , " \t\t Line number: {0}" , text .line_number );
563+ Log .Debug (" ExampleVisualRecognition " , " \t\t word: {0}, Score: {1}" , text .word , text .score );
564564 }
565565 }
566566 }
0 commit comments