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.
Asked
Active
Viewed 149 times
0
m_goldberg
- 107,779
- 16
- 103
- 257
user5601
- 3,573
- 2
- 24
- 56
1 Answers
2
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.
Carl Lange
- 13,065
- 1
- 36
- 70

ImageCaseswill 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. – Carl Lange Feb 27 '19 at 14:59