Face Tools Nodes
Face Tools nodes MediaPipe से चेहरे detect करते हैं और workflows में चेहरों को पहचानने, mask करने और निकालने के लिए utilities देते हैं। मौजूदा nodes segmentation category में हैं और version 1.2.2 इस्तेमाल करते हैं।
FaceIdentifier
Section titled “FaceIdentifier”FaceIdentifier input इमेज की एक copy output करता है जिसमें हर चेहरे पर detect किए गए face IDs छपे होते हैं। जब आपको FaceMask या FaceOff से किसी खास चेहरे को target करना हो, तो इसे सबसे पहले इस्तेमाल करें।
Face IDs 0 से गिने जाते हैं। इमेज बदलने पर detection का क्रम बदल सकता है, इसलिए इमेज एडिट करने के बाद FaceIdentifier फिर से चलाएँ।
| Input | विवरण |
|---|---|
| Image | चेहरे detect करने के लिए इमेज। |
| Minimum Confidence | Face detection के लिए न्यूनतम confidence। अगर detection fail हो रहा है तो इसे कम करें। |
| Chunk | Full-image face detection को छोड़कर chunking इस्तेमाल करें। अगर पूरी इमेज में कोई चेहरा नहीं मिलता, तो chunking अपने-आप भी इस्तेमाल होती है। |
आउटपुट
Section titled “आउटपुट”| Output | विवरण |
|---|---|
| Image | Detect किए गए चेहरों पर face ID numbers के साथ input इमेज। |
| Width | Output इमेज की width, pixels में। |
| Height | Output इमेज की height, pixels में। |
FaceMask
Section titled “FaceMask”FaceMask input इमेज पर detect किए गए चेहरों के लिए एक mask बनाता है।
सभी detect किए गए चेहरों को mask करने के लिए Face IDs खाली छोड़ें, या खास चेहरों को target करने के लिए 0,2,7 जैसी comma से अलग की गई सूची दें। IDs ढूँढने के लिए FaceIdentifier इस्तेमाल करें।
अगर detection थोड़ा बड़ा या छोटा है, तो mask को X और Y offsets से adjust किया जा सकता है। Detect किए गए चेहरों को छोड़कर बाकी सब पर असर डालने के लिए Invert Mask enable करें।
| Input | विवरण |
|---|---|
| Image | चेहरे detect करने के लिए इमेज। |
| Face IDs | Mask करने के लिए face IDs की comma से अलग की गई सूची। सभी detect किए गए चेहरों को mask करने के लिए खाली छोड़ें। |
| Minimum Confidence | Face detection के लिए न्यूनतम confidence। अगर detection fail हो रहा है तो इसे कम करें। |
| X Offset | Face mask के X-axis के लिए offset। |
| Y Offset | Face mask के Y-axis के लिए offset। |
| Chunk | Full-image face detection को छोड़कर chunking इस्तेमाल करें। अगर पूरी इमेज में कोई चेहरा नहीं मिलता, तो chunking अपने-आप भी इस्तेमाल होती है। |
| Invert Mask | Mask को invert करने के लिए toggle। |
आउटपुट
Section titled “आउटपुट”| Output | विवरण |
|---|---|
| Image | मूल इमेज, RGBA में बदली हुई। |
| Width | Output इमेज की width, pixels में। |
| Height | Output इमेज की height, pixels में। |
| Mask | जनरेट किया गया face mask। |
FaceOff
Section titled “FaceOff”FaceOff detect किए गए एक चेहरे को एक bounded इमेज में निकालता है और एक मेल खाता mask और paste coordinates लौटाता है। किसी खास चेहरे को target करने से पहले face ID ढूँढने के लिए FaceIdentifier इस्तेमाल करें।
Padding detect किए गए चेहरे के चारों ओर के bounding box को बढ़ाता है। इससे आगे की processing को ज़्यादा context मिलता है और bounded इमेज का size बढ़ता है, जबकि चेहरा crop के अंदर अपनी जगह पर रहता है।
| Input | विवरण |
|---|---|
| Image | Face detection के लिए इमेज। |
| Face ID | Process करने के लिए face ID, 0 से गिना गया। कई चेहरे supported नहीं हैं। |
| Minimum Confidence | Face detection के लिए न्यूनतम confidence। अगर detection fail हो रहा है तो इसे कम करें। |
| X Offset | Mask का X-axis offset। |
| Y Offset | Mask का Y-axis offset। |
| Padding | Mask के चारों ओर सभी axes पर padding, pixels में। |
| Chunk | Full-image face detection को छोड़कर chunking इस्तेमाल करें। अगर पूरी इमेज में कोई चेहरा नहीं मिलता, तो chunking अपने-आप भी इस्तेमाल होती है। |
आउटपुट
Section titled “आउटपुट”| Output | विवरण |
|---|---|
| Image | Bounded face इमेज। अगर कोई चेहरा नहीं मिलता, तो मूल इमेज आगे भेज दी जाती है। |
| Width | Output इमेज की width, pixels में। |
| Height | Output इमेज की height, pixels में। |
| Mask | Bounded इमेज से मेल खाता mask। |
| X | Bounding box के बाएँ किनारे का X coordinate। |
| Y | Bounding box के ऊपरी किनारे का Y coordinate। |
- FaceIdentifier में और IDs इस्तेमाल करने वाले FaceMask या FaceOff node में एक ही Minimum Confidence value इस्तेमाल करें।
- अगर सभी target चेहरे detect नहीं होते, तो Chunk enable करें। Full-image detection और chunked detection अलग-अलग results दे सकते हैं।
- Detection fail होने पर Minimum Confidence कम करें, लेकिन false positives पर नज़र रखें।
- अगर mask बहुत बड़ा, बहुत छोटा या खिसका हुआ है, तो X और Y offsets adjust करें।
- जब निकाले गए चेहरे को आसपास के ज़्यादा context की ज़रूरत हो, तो FaceOff padding जोड़ें।
- भारी face paint, चेहरे को ढकने वाले बाल, extreme angles या दूसरी रुकावटों पर face detection fail हो सकता है।