Skip to content

Commit b68c4b2

Browse files
authored
Merge pull request #137 from watson-developer-cloud/feature-cameraWidget
Feature camera widget
2 parents ad15336 + 1437511 commit b68c4b2

24 files changed

Lines changed: 3309 additions & 36 deletions

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ _2016-08-26_
88
* Fix: Abstracted custom voice model methods in `Text to Speech` service.
99
* Fix: Error when pasting credentials from the new Bluemix site into the `Config Editor`.
1010
* New: Added `CameraWidget` and `CameraDisplayWidget` to get video from device camera.
11+
* New: Added test scene for using the device camera with the `Visual Recognition` service.
1112

1213
## Version 0.8.0
1314
_2016-08-12_

Config.json.enc

0 Bytes
Binary file not shown.

Examples/ServiceExamples/Scripts/ExampleVisualRecognition.cs

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -194,10 +194,14 @@ private void OnDetectFaces(FacesTopLevelMultiple multipleImages, string data)
194194
Log.Debug("ExampleVisualRecognition", "\tsource_url: {0}, resolved_url: {1}", faces.source_url, faces.resolved_url);
195195
foreach (OneFaceResult face in faces.faces)
196196
{
197-
Log.Debug("ExampleVisulaRecognition", "\t\tFace location: {0}, {1}, {2}, {3}", face.face_location.left, face.face_location.top, face.face_location.width, face.face_location.height);
198-
Log.Debug("ExampleVisulaRecognition", "\t\tGender: {0}, Score: {1}", face.gender.gender, face.gender.score);
199-
Log.Debug("ExampleVisulaRecognition", "\t\tAge Min: {0}, Age Max: {1}, Score: {2}", face.age.min, face.age.max, face.age.score);
200-
Log.Debug("ExampleVisulaRecognition", "\t\tName: {0}, Score: {1}, Type Heiarchy: {2}", face.identity.name, face.identity.score, face.identity.type_hierarchy);
197+
if(face.face_location != null)
198+
Log.Debug("ExampleVisulaRecognition", "\t\tFace location: {0}, {1}, {2}, {3}", face.face_location.left, face.face_location.top, face.face_location.width, face.face_location.height);
199+
if(face.gender != null)
200+
Log.Debug("ExampleVisulaRecognition", "\t\tGender: {0}, Score: {1}", face.gender.gender, face.gender.score);
201+
if(face.age != null)
202+
Log.Debug("ExampleVisulaRecognition", "\t\tAge Min: {0}, Age Max: {1}, Score: {2}", face.age.min, face.age.max, face.age.score);
203+
if(face.identity != null)
204+
Log.Debug("ExampleVisulaRecognition", "\t\tName: {0}, Score: {1}, Type Heiarchy: {2}", face.identity.name, face.identity.score, face.identity.type_hierarchy);
201205
}
202206
}
203207
}

0 commit comments

Comments
 (0)