MCPcopy Create free account
hub / github.com/MasteringOpenCV/code / detectLargestObject

Function detectLargestObject

Chapter8_FaceRecognition/detectObject.cpp:88–111  ·  view source on GitHub ↗

Search for just a single object in the image, such as the largest face, storing the result into 'largestObject'. Can use Haar cascades or LBP cascades for Face Detection, or even eye, mouth, or car detection. Input is temporarily shrunk to 'scaledWidth' for much faster detection, since 200 is enough to find faces. Note: detectLargestObject() should be faster than detectManyObjects().

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 2

detectBothEyesFunction · 0.85
getPreprocessedFaceFunction · 0.85

Calls 2

detectObjectsCustomFunction · 0.85
sizeMethod · 0.45

Tested by

no test coverage detected