Identify People in a Photo
Identify People in a Photo
img = [image];faces = FindFaces[img, {40, 50}];newimg = Show[img, Graphics[Table[
{EdgeForm[{Thick, Hue[Rescale[i, {0, Length[faces]}]]}], FaceForm[], Rectangle@@faces[[i]]}, {i, Length[faces]}]]]legend[layout_] := SwatchLegend[Table[Hue[Rescale[i, {0, Length[faces]}]], {i, Length[faces]}], {"Mark", "Cynthia", "Michelle", "Adrian", "Rachel"}, LegendMarkerSize -> Medium, LabelStyle -> {GrayLevel[0.3], 16, Bold}, LegendLayout -> layout]legend["Row"]Legended[newimg, legend["Column"]]Legended[newimg, Placed[legend["Row"], Below]]