Learn how to write code to open the output image with the default viewer.
- [Instructor] So, at this point,…we've essentially solved the problem…by submitting our image to the API,…but one of the questions that was asked specifically…was to say how many faces were detected in the image?…And so I'll come here to my foreach,…start at zero, foreach rectangle, count++,…and then I can say Console, use the dollar notation again,…number of faces detected, it's just a count.…
And so our console application will run,…you specify your apiKey and the filename,…and the text that you get back is number of faces detected.…I'm going to press Ctrl + F5 to run without the debugger.…I'm running without the debugger,…once the application exits,…Visual Studio makes it prompt us to say…Press any key to continue,…so you can see the result in your console window.…And in this case, we can see Number of faces detected,…seven for this particular image.…Press the space bar to close.…Now, in my case I am running on Windows,…this might not work for your platform,…but you may have a way to launch an application…
Skill Level Intermediate
1. Problem 1: Pond Oreille
2. Problem 2: Where Am I?
3. Problem 3: Eight Queens
4. Problem 4: Accessing Peripherals
5. Problem 5: Facial Recognition
6. Problem 6: Real-Time Information Dashboard
Next steps2m 46s
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.