MCPcopy Create free account
hub / github.com/KAlO2/PerfectShow / MouthOnNose

Function MouthOnNose

jni/stasm/eyedet.cpp:571–579  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

569}
570
571static bool MouthOnNose( // true if mouth is probably a mouth false detect on the nostrils
572 const Rect& mouth, // in: left eyes found by eye detector
573 const Rect& facerect, // in:
574 const Rect& mouth_searchrect) // in:
575{
576 return mouth.x < // near top of search rect?
577 mouth_searchrect.x + .20 * mouth_searchrect.height &&
578 double(mouth.width) / facerect.width < .28;
579}
580
581static void SelectMouth( // return index of the best mouth in the list of mouths
582 int& imouth_best, // out: index into mouths, -1 if none

Callers 1

SelectMouthFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected