12.9 azcv faces

20210317

The faces command asks the AI to identify faces in the photo, returning the bounding box, and recognising whether the face is male or female, and the age. One line of text is returned for each face identified so by counting the number of lines of text we count the number of faces found. The text output from the AI also allows us to communicate the results on to other processes.

$ ml faces azcv https://bit.ly/38GgwPP
118 159 212 253,Male,39
492 111 582 201,Male,54
18 153 102 237,Female,55
386 166 467 247,Female,33
235 158 311 234,Female,18
323 163 391 231,Female,8

A typical example of further processing the output from the command is to pipe the results into a command that will draw the bounding boxes onto the photo itself. We see the resulting photo above, on the right. To do that yourself have a look at the Section on pipelines, that is Section ??.



Your donation will support ongoing availability and give you access to the PDF version of this book. Desktop Survival Guides include Data Science, GNU/Linux, and MLHub. Books available on Amazon include Data Mining with Rattle and Essentials of Data Science. Popular open source software includes rattle, wajig, and mlhub. Hosted by Togaware, a pioneer of free and open source software since 1984. Copyright © 1995-2022 Graham.Williams@togaware.com Creative Commons Attribution-ShareAlike 4.0