Discover how the FindFaces program accepts a filename as an argument. The file is examined by the online Watson service, provided by IBM. JSON data is output, reporting the number of faces. The code also creates a second JPEG file, with the found faces highlighted.
- [Instructor] To test my solution I'll try…what I think is the most challenging of the sample images,…the group, which has the most faces.…If you're going to use a file name…that has faces in it ensure that you enclose the full name…in double quotes, and you wait.…The code outputs its json data,…which reports 11 faces.…This data is courtesy if IBMs Watson,…which is an online intelligence…that examines images and reports all sorts…of delightful details.…In the folder window you see…that the code has created a duplicate file…with the suffix -faces.…
I'll preview the original on the Mac,…and then you see the results generated,…where boxes are drawn around each of the faces found.…I'm gonna do the same thing with the business image,…but I'm gonna activate the programs verbose switch…so that you can see some feedback as the code runs.…It's uploading and processing.…And here's the json string provided by Watson.…It finds faces, genders and ages.…
Watson is pretty cool.…I'll preview the original image,…and then there are the boxes.…
Skill Level Intermediate
1. Summarize the Weather
2. Geolocation with C
3. Eight Queens with C
4. Build a Musical Instrument with C
5. Face Recognition with C
6. Web Dashboards with C
Next steps1m 2s
- 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.