FindFaces
doesn't work when people are far away from the camera. I'm looking for a single accurate method of detecting one or more people in an images, at all scales.
In version 12, functions such as ImageCases
and ImageBoundingBoxes
exist that will do this job better than FindFaces
. I'm pretty certain it is using YOLO under the hood - I'm not sure any other network makes sense.
Anyway, here is how you use it:
i = Import["http://img.burrard-lucas.com/nepal/full/bhaktapur_street_scene.jpg"];
ImageBoundingBoxes[i, Entity["Concept", "Person::93r37"], AcceptanceThreshold -> .2] // HighlightImage[i, #]&
This will at least do a better job than FindFaces
would (not least because not everybody is facing the camera at all times ;) )
In pre-12 versions, you can create this functionality yourself using the YOLO v2 network directly.
ImageCases
will be upgraded in v12 apparently. I asked in one of the livestreams, and apparently it uses some variant of YOLO under the hood, so I wouldn't necessarily expect major gains if it doesn't currently work for you. $\endgroup$ – Carl Lange Feb 27 '19 at 14:59